M32R Linux: Fill 'collect_regset' in regset structure.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ba199d7d
AA
12014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4 platform-independent and don't write to read-only input buffer.
5 (m32r_linux_collect_gregset): New function.
6 (m32r_linux_gregset): Add collect method.
7
0006a9da
AA
82014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
9
10 * hppa-linux-tdep.c (greg_map): Rename to...
11 (hppa_linux_gregmap): ... this. Also convert to
12 regcache_map_entry format.
13 (hppa_linux_supply_regset): Delete function.
14 (hppa_linux_supply_fpregset): Delete function. Move logic to...
15 (hppa_linux_fpregmap): ... this new register map.
16 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
17 register map, replace supply method by regcache_supply_regset, and
18 add collect method regcache_collect_regset.
19
901e1b23
AA
202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
21
22 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
23 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
24 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
25 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
26 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
27 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
28 (frv_linux_supply_gregset): Replace main logic by call to
29 regcache_supply_regset, but keep clearing gr32-gr63.
30 (frv_linux_supply_fpregset): Delete function.
31 (frv_linux_gregset): Refer to appropriate register map and add
32 regcache_collect_regset as the collect method.
33 (frv_linux_fpregset): Likewise. Also exchange the supply method
34 by regcache_supply_regset.
35
1d6e7555
AA
362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
37
38 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
39 by call to alpha_supply_int_regs.
40 (alpha_linux_collect_gregset): New function.
41 (alpha_linux_supply_fpregset): Replace logic by call to
42 alpha_supply_fp_regs.
43 (alpha_linux_collect_fpregset): New function.
44 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
45
d4d793bf
AA
462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
47
48 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
49 by call to regcache_collect_regset.
50 (supply_gregset, supply_fpregset): Call regcache_supply_regset
51 instead of aarch64_linux_supply_gregset/_fpregset.
52 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
53 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
54 header file instead.
55 (aarch64_linux_supply_gregset, supply_gregset_from_core)
56 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
57 functions. Move logic to ...
58 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
59 register maps.
60 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
61 refer to new register maps, replace *_regset_from_core by
62 regcache_supply_regset, and also use regcache_collect_regset.
63 * aarch64-linux-tdep.h: Include "regset.h".
64 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
65 Delete prototypes.
66 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
67 macros, moved from C source file.
68 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
69 variable declarations.
70
99b7da5d
AA
712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
72
73 * s390-linux-nat.c: Include "regset.h".
74 (regmap_gregset): Delete macro.
75 (s390_64_regmap_gregset): New register map for
76 regcache_supply/_collect_regset.
77 (s390_64_gregset): New regset.
78 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
79 (regmap_fpregset): Delete macro.
80 (s390_native_supply, s390_native_collect): Delete functions.
81 (supply_gregset, fill_gregset): Replace s390-specific regmap
82 handling by a call to regcache_supply/_collect_regset.
83 (supply_fpregset, fill_fpregset): Call regcache_supply/
84 _collect_regset instead of s390_native_supply/_collect.
85 (fetch_regset, store_regset): Likewise. Also change the last
86 parameter to a regset instead of a regmap.
87 (s390_linux_fetch_inferior_registers)
88 (390_linux_store_inferior_registers): Adjust last parameter in
89 calls to fetch_regset and store_regset.
90 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
91 (s390_gregmap): ... this. Also make static const and convert to
92 regcache_map_entry format.
93 (s390x_regmap_gregset): Delete.
94 (s390_regmap_fpregset): Rename to...
95 (s390_fpregmap): ... this. Make static const and convert to
96 regcache_map_entry format.
97 (s390_regmap_upper, s390_regmap_last_break)
98 (s390x_regmap_last_break, s390_regmap_system_call)
99 (s390_regmap_tdb): Likewise.
100 (s390_supply_regset, s390_collect_regset): Remove functions.
101 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
102 s390_supply_regset.
103 (s390_gregset, s390_fpregset, s390_upper_regset)
104 (s390_last_break_regset, s390x_last_break_regset)
105 (s390_system_call_regset, s390_tdb_regset): Make global and
106 replace s390_supply/_collect_regset by regcache_supply/
107 _collect_regset.
108 (s390x_gregset): Delete.
109 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
110 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
111 (s390_regmap_fpregset, s390_regmap_last_break)
112 (s390x_regmap_last_break, s390_regmap_system_call)
113 (s390_regmap_tdb): Delete global variable declarations.
114 (s390_gregset, s390_fpregset, s390_last_break_regset)
115 (s390x_last_break_regset, s390_system_call_regset)
116 (s390_tdb_regset): New global variable declarations.
117
0b309272
AA
1182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
119
120 * regcache.c: Include "regset.h".
121 (regcache_transfer_regset): New local function.
122 (regcache_supply_regset, regcache_collect_regset): New functions.
123 * regcache.h (struct regcache_map_entry): New structure.
124 (REGCACHE_MAP_SKIP): New enum value.
125 (regcache_supply_regset, regcache_collect_regset): New prototypes.
126
7fefa8d7
AA
1272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
128
129 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
130 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
131 (ppc_linux_collect_gregset ): Likewise.
132 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
133 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
134 (ppc_collect_vrregset): Likewise.
135 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
136 Likewise.
137
96c4f946
YQ
1382014-08-07 Yao Qi <yao@codesourcery.com>
139
140 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
141 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
142 * remote.c (remote_read_bytes): Likewise.
143
fffbe6a8
YQ
1442014-08-07 Yao Qi <yao@codesourcery.com>
145
146 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
147
5ee8a82c
YQ
1482014-08-07 Yao Qi <yao@codesourcery.com>
149
150 PR remote/17230
151 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
152 TARGET_XFER_OK instead of 0.
153
bb974a24
GB
1542014-08-07 Gary Benson <gbenson@redhat.com>
155
156 * common/common-defs.h: Include errno.h.
157 * defs.h: Do not include errno.h.
158 * ada-typeprint.c: Likewise.
159 * c-typeprint.c: Likewise.
160 * core-regset.c: Likewise.
161 * corefile.c: Likewise.
162 * corelow.c: Likewise.
163 * event-loop.c: Likewise.
164 * f-typeprint.c: Likewise.
165 * gnu-nat.c: Likewise.
166 * go32-nat.c: Likewise.
167 * i386gnu-nat.c: Likewise.
168 * m2-typeprint.c: Likewise.
169 * nat/linux-btrace.c: Likewise.
170 * p-typeprint.c: Likewise.
171 * procfs.c: Likewise.
172 * remote-sim.c: Likewise.
173 * rs6000-nat.c: Likewise.
174 * target.c: Likewise.
175 * typeprint.c: Likewise.
176 * ui-file.c: Likewise.
177 * valops.c: Likewise.
178 * valprint.c: Likewise.
179
6d3d12eb
GB
1802014-08-07 Gary Benson <gbenson@redhat.com>
181
182 * common/common-defs.h: Include string.h.
183 * aarch64-tdep.c: Do not include string.h.
184 * ada-exp.y: Likewise.
185 * ada-lang.c: Likewise.
186 * ada-lex.l: Likewise.
187 * ada-typeprint.c: Likewise.
188 * ada-valprint.c: Likewise.
189 * aix-thread.c: Likewise.
190 * alpha-linux-tdep.c: Likewise.
191 * alpha-mdebug-tdep.c: Likewise.
192 * alpha-nat.c: Likewise.
193 * alpha-osf1-tdep.c: Likewise.
194 * alpha-tdep.c: Likewise.
195 * alphanbsd-tdep.c: Likewise.
196 * amd64-dicos-tdep.c: Likewise.
197 * amd64-linux-tdep.c: Likewise.
198 * amd64-nat.c: Likewise.
199 * amd64-sol2-tdep.c: Likewise.
200 * amd64fbsd-tdep.c: Likewise.
201 * amd64obsd-tdep.c: Likewise.
202 * arch-utils.c: Likewise.
203 * arm-linux-nat.c: Likewise.
204 * arm-linux-tdep.c: Likewise.
205 * arm-tdep.c: Likewise.
206 * arm-wince-tdep.c: Likewise.
207 * armbsd-tdep.c: Likewise.
208 * armnbsd-nat.c: Likewise.
209 * armnbsd-tdep.c: Likewise.
210 * armobsd-tdep.c: Likewise.
211 * avr-tdep.c: Likewise.
212 * ax-gdb.c: Likewise.
213 * ax-general.c: Likewise.
214 * bcache.c: Likewise.
215 * bfin-tdep.c: Likewise.
216 * breakpoint.c: Likewise.
217 * build-id.c: Likewise.
218 * buildsym.c: Likewise.
219 * c-exp.y: Likewise.
220 * c-lang.c: Likewise.
221 * c-typeprint.c: Likewise.
222 * c-valprint.c: Likewise.
223 * charset.c: Likewise.
224 * cli-out.c: Likewise.
225 * cli/cli-cmds.c: Likewise.
226 * cli/cli-decode.c: Likewise.
227 * cli/cli-dump.c: Likewise.
228 * cli/cli-interp.c: Likewise.
229 * cli/cli-logging.c: Likewise.
230 * cli/cli-script.c: Likewise.
231 * cli/cli-setshow.c: Likewise.
232 * cli/cli-utils.c: Likewise.
233 * coffread.c: Likewise.
234 * common/agent.c: Likewise.
235 * common/buffer.c: Likewise.
236 * common/buffer.h: Likewise.
237 * common/common-utils.c: Likewise.
238 * common/filestuff.c: Likewise.
239 * common/filestuff.c: Likewise.
240 * common/format.c: Likewise.
241 * common/print-utils.c: Likewise.
242 * common/rsp-low.c: Likewise.
243 * common/signals.c: Likewise.
244 * common/vec.h: Likewise.
245 * common/xml-utils.c: Likewise.
246 * core-regset.c: Likewise.
247 * corefile.c: Likewise.
248 * corelow.c: Likewise.
249 * cp-abi.c: Likewise.
250 * cp-name-parser.y: Likewise.
251 * cp-support.c: Likewise.
252 * cp-valprint.c: Likewise.
253 * cris-tdep.c: Likewise.
254 * d-exp.y: Likewise.
255 * darwin-nat.c: Likewise.
256 * dbxread.c: Likewise.
257 * dcache.c: Likewise.
258 * demangle.c: Likewise.
259 * dicos-tdep.c: Likewise.
260 * disasm.c: Likewise.
261 * doublest.c: Likewise.
262 * dsrec.c: Likewise.
263 * dummy-frame.c: Likewise.
264 * dwarf2-frame.c: Likewise.
265 * dwarf2loc.c: Likewise.
266 * dwarf2read.c: Likewise.
267 * elfread.c: Likewise.
268 * environ.c: Likewise.
269 * eval.c: Likewise.
270 * event-loop.c: Likewise.
271 * exceptions.c: Likewise.
272 * exec.c: Likewise.
273 * expprint.c: Likewise.
274 * f-exp.y: Likewise.
275 * f-lang.c: Likewise.
276 * f-typeprint.c: Likewise.
277 * f-valprint.c: Likewise.
278 * fbsd-nat.c: Likewise.
279 * findcmd.c: Likewise.
280 * findvar.c: Likewise.
281 * fork-child.c: Likewise.
282 * frame.c: Likewise.
283 * frv-linux-tdep.c: Likewise.
284 * frv-tdep.c: Likewise.
285 * gdb.c: Likewise.
286 * gdb_bfd.c: Likewise.
287 * gdbarch.c: Likewise.
288 * gdbarch.sh: Likewise.
289 * gdbtypes.c: Likewise.
290 * gnu-nat.c: Likewise.
291 * gnu-v2-abi.c: Likewise.
292 * gnu-v3-abi.c: Likewise.
293 * go-exp.y: Likewise.
294 * go-lang.c: Likewise.
295 * go32-nat.c: Likewise.
296 * guile/guile.c: Likewise.
297 * guile/scm-auto-load.c: Likewise.
298 * hppa-hpux-tdep.c: Likewise.
299 * hppa-linux-nat.c: Likewise.
300 * hppanbsd-tdep.c: Likewise.
301 * hppaobsd-tdep.c: Likewise.
302 * i386-cygwin-tdep.c: Likewise.
303 * i386-dicos-tdep.c: Likewise.
304 * i386-linux-tdep.c: Likewise.
305 * i386-nto-tdep.c: Likewise.
306 * i386-sol2-tdep.c: Likewise.
307 * i386-tdep.c: Likewise.
308 * i386bsd-tdep.c: Likewise.
309 * i386gnu-nat.c: Likewise.
310 * i386nbsd-tdep.c: Likewise.
311 * i386obsd-tdep.c: Likewise.
312 * i387-tdep.c: Likewise.
313 * ia64-libunwind-tdep.c: Likewise.
314 * ia64-linux-nat.c: Likewise.
315 * inf-child.c: Likewise.
316 * inf-ptrace.c: Likewise.
317 * inf-ttrace.c: Likewise.
318 * infcall.c: Likewise.
319 * infcmd.c: Likewise.
320 * inflow.c: Likewise.
321 * infrun.c: Likewise.
322 * interps.c: Likewise.
323 * iq2000-tdep.c: Likewise.
324 * irix5-nat.c: Likewise.
325 * jv-exp.y: Likewise.
326 * jv-lang.c: Likewise.
327 * jv-typeprint.c: Likewise.
328 * jv-valprint.c: Likewise.
329 * language.c: Likewise.
330 * linux-fork.c: Likewise.
331 * linux-nat.c: Likewise.
332 * lm32-tdep.c: Likewise.
333 * m2-exp.y: Likewise.
334 * m2-typeprint.c: Likewise.
335 * m32c-tdep.c: Likewise.
336 * m32r-linux-nat.c: Likewise.
337 * m32r-linux-tdep.c: Likewise.
338 * m32r-rom.c: Likewise.
339 * m32r-tdep.c: Likewise.
340 * m68hc11-tdep.c: Likewise.
341 * m68k-tdep.c: Likewise.
342 * m68kbsd-tdep.c: Likewise.
343 * m68klinux-nat.c: Likewise.
344 * m68klinux-tdep.c: Likewise.
345 * m88k-tdep.c: Likewise.
346 * machoread.c: Likewise.
347 * macrocmd.c: Likewise.
348 * main.c: Likewise.
349 * mdebugread.c: Likewise.
350 * mem-break.c: Likewise.
351 * memattr.c: Likewise.
352 * memory-map.c: Likewise.
353 * mep-tdep.c: Likewise.
354 * mi/mi-cmd-break.c: Likewise.
355 * mi/mi-cmd-disas.c: Likewise.
356 * mi/mi-cmd-env.c: Likewise.
357 * mi/mi-cmd-stack.c: Likewise.
358 * mi/mi-cmd-var.c: Likewise.
359 * mi/mi-cmds.c: Likewise.
360 * mi/mi-console.c: Likewise.
361 * mi/mi-getopt.c: Likewise.
362 * mi/mi-interp.c: Likewise.
363 * mi/mi-main.c: Likewise.
364 * mi/mi-parse.c: Likewise.
365 * microblaze-rom.c: Likewise.
366 * microblaze-tdep.c: Likewise.
367 * mingw-hdep.c: Likewise.
368 * minidebug.c: Likewise.
369 * minsyms.c: Likewise.
370 * mips-irix-tdep.c: Likewise.
371 * mips-linux-tdep.c: Likewise.
372 * mips-tdep.c: Likewise.
373 * mips64obsd-tdep.c: Likewise.
374 * mipsnbsd-tdep.c: Likewise.
375 * mipsread.c: Likewise.
376 * mn10300-linux-tdep.c: Likewise.
377 * mn10300-tdep.c: Likewise.
378 * monitor.c: Likewise.
379 * moxie-tdep.c: Likewise.
380 * mt-tdep.c: Likewise.
381 * nat/linux-btrace.c: Likewise.
382 * nat/linux-osdata.c: Likewise.
383 * nat/linux-procfs.c: Likewise.
384 * nat/linux-ptrace.c: Likewise.
385 * nat/linux-waitpid.c: Likewise.
386 * nbsd-tdep.c: Likewise.
387 * nios2-linux-tdep.c: Likewise.
388 * nto-procfs.c: Likewise.
389 * nto-tdep.c: Likewise.
390 * objc-lang.c: Likewise.
391 * objfiles.c: Likewise.
392 * opencl-lang.c: Likewise.
393 * osabi.c: Likewise.
394 * osdata.c: Likewise.
395 * p-exp.y: Likewise.
396 * p-lang.c: Likewise.
397 * p-typeprint.c: Likewise.
398 * parse.c: Likewise.
399 * posix-hdep.c: Likewise.
400 * ppc-linux-nat.c: Likewise.
401 * ppc-sysv-tdep.c: Likewise.
402 * ppcfbsd-tdep.c: Likewise.
403 * ppcnbsd-tdep.c: Likewise.
404 * ppcobsd-tdep.c: Likewise.
405 * printcmd.c: Likewise.
406 * procfs.c: Likewise.
407 * prologue-value.c: Likewise.
408 * python/py-auto-load.c: Likewise.
409 * python/py-gdb-readline.c: Likewise.
410 * ravenscar-thread.c: Likewise.
411 * regcache.c: Likewise.
412 * registry.c: Likewise.
413 * remote-fileio.c: Likewise.
414 * remote-m32r-sdi.c: Likewise.
415 * remote-mips.c: Likewise.
416 * remote-notif.c: Likewise.
417 * remote-sim.c: Likewise.
418 * remote.c: Likewise.
419 * reverse.c: Likewise.
420 * rs6000-aix-tdep.c: Likewise.
421 * ser-base.c: Likewise.
422 * ser-go32.c: Likewise.
423 * ser-mingw.c: Likewise.
424 * ser-pipe.c: Likewise.
425 * ser-tcp.c: Likewise.
426 * ser-unix.c: Likewise.
427 * serial.c: Likewise.
428 * sh-tdep.c: Likewise.
429 * sh64-tdep.c: Likewise.
430 * shnbsd-tdep.c: Likewise.
431 * skip.c: Likewise.
432 * sol-thread.c: Likewise.
433 * solib-dsbt.c: Likewise.
434 * solib-frv.c: Likewise.
435 * solib-osf.c: Likewise.
436 * solib-som.c: Likewise.
437 * solib-spu.c: Likewise.
438 * solib-target.c: Likewise.
439 * solib.c: Likewise.
440 * somread.c: Likewise.
441 * source.c: Likewise.
442 * sparc-nat.c: Likewise.
443 * sparc-sol2-tdep.c: Likewise.
444 * sparc-tdep.c: Likewise.
445 * sparc64-tdep.c: Likewise.
446 * sparc64fbsd-tdep.c: Likewise.
447 * sparc64nbsd-tdep.c: Likewise.
448 * sparcnbsd-tdep.c: Likewise.
449 * spu-linux-nat.c: Likewise.
450 * spu-multiarch.c: Likewise.
451 * spu-tdep.c: Likewise.
452 * stabsread.c: Likewise.
453 * stack.c: Likewise.
454 * std-regs.c: Likewise.
455 * symfile.c: Likewise.
456 * symmisc.c: Likewise.
457 * symtab.c: Likewise.
458 * target.c: Likewise.
459 * thread.c: Likewise.
460 * tilegx-linux-nat.c: Likewise.
461 * tilegx-tdep.c: Likewise.
462 * top.c: Likewise.
463 * tracepoint.c: Likewise.
464 * tui/tui-command.c: Likewise.
465 * tui/tui-data.c: Likewise.
466 * tui/tui-disasm.c: Likewise.
467 * tui/tui-file.c: Likewise.
468 * tui/tui-layout.c: Likewise.
469 * tui/tui-out.c: Likewise.
470 * tui/tui-regs.c: Likewise.
471 * tui/tui-source.c: Likewise.
472 * tui/tui-stack.c: Likewise.
473 * tui/tui-win.c: Likewise.
474 * tui/tui-windata.c: Likewise.
475 * tui/tui-winsource.c: Likewise.
476 * typeprint.c: Likewise.
477 * ui-file.c: Likewise.
478 * ui-out.c: Likewise.
479 * user-regs.c: Likewise.
480 * utils.c: Likewise.
481 * v850-tdep.c: Likewise.
482 * valarith.c: Likewise.
483 * valops.c: Likewise.
484 * valprint.c: Likewise.
485 * value.c: Likewise.
486 * varobj.c: Likewise.
487 * vax-tdep.c: Likewise.
488 * vaxnbsd-tdep.c: Likewise.
489 * vaxobsd-tdep.c: Likewise.
490 * windows-nat.c: Likewise.
491 * xcoffread.c: Likewise.
492 * xml-support.c: Likewise.
493 * xstormy16-tdep.c: Likewise.
494 * xtensa-linux-nat.c: Likewise.
495
dccbb609
GB
4962014-08-07 Gary Benson <gbenson@redhat.com>
497
498 * common/common-defs.h: Include gdb_assert.h.
499 * aarch64-tdep.c: Do not include gdb_assert.h.
500 * addrmap.c: Likewise.
501 * aix-thread.c: Likewise.
502 * alpha-linux-tdep.c: Likewise.
503 * alpha-mdebug-tdep.c: Likewise.
504 * alphanbsd-tdep.c: Likewise.
505 * amd64-nat.c: Likewise.
506 * amd64-tdep.c: Likewise.
507 * amd64bsd-nat.c: Likewise.
508 * amd64fbsd-nat.c: Likewise.
509 * amd64fbsd-tdep.c: Likewise.
510 * amd64nbsd-nat.c: Likewise.
511 * amd64nbsd-tdep.c: Likewise.
512 * amd64obsd-nat.c: Likewise.
513 * amd64obsd-tdep.c: Likewise.
514 * arch-utils.c: Likewise.
515 * arm-tdep.c: Likewise.
516 * armbsd-tdep.c: Likewise.
517 * auxv.c: Likewise.
518 * bcache.c: Likewise.
519 * bfin-tdep.c: Likewise.
520 * blockframe.c: Likewise.
521 * breakpoint.c: Likewise.
522 * bsd-kvm.c: Likewise.
523 * bsd-uthread.c: Likewise.
524 * buildsym.c: Likewise.
525 * c-exp.y: Likewise.
526 * c-lang.c: Likewise.
527 * charset.c: Likewise.
528 * cleanups.c: Likewise.
529 * cli-out.c: Likewise.
530 * cli/cli-decode.c: Likewise.
531 * cli/cli-dump.c: Likewise.
532 * cli/cli-logging.c: Likewise.
533 * cli/cli-script.c: Likewise.
534 * cli/cli-utils.c: Likewise.
535 * coffread.c: Likewise.
536 * common/common-utils.c: Likewise.
537 * common/queue.h: Likewise.
538 * common/signals.c: Likewise.
539 * common/vec.h: Likewise.
540 * complaints.c: Likewise.
541 * completer.c: Likewise.
542 * corelow.c: Likewise.
543 * cp-abi.c: Likewise.
544 * cp-name-parser.y: Likewise.
545 * cp-namespace.c: Likewise.
546 * cp-support.c: Likewise.
547 * cris-tdep.c: Likewise.
548 * dbxread.c: Likewise.
549 * dictionary.c: Likewise.
550 * doublest.c: Likewise.
551 * dsrec.c: Likewise.
552 * dummy-frame.c: Likewise.
553 * dwarf2-frame-tailcall.c: Likewise.
554 * dwarf2-frame.c: Likewise.
555 * dwarf2expr.c: Likewise.
556 * dwarf2loc.c: Likewise.
557 * dwarf2read.c: Likewise.
558 * eval.c: Likewise.
559 * event-loop.c: Likewise.
560 * exceptions.c: Likewise.
561 * expprint.c: Likewise.
562 * f-valprint.c: Likewise.
563 * fbsd-nat.c: Likewise.
564 * findvar.c: Likewise.
565 * frame-unwind.c: Likewise.
566 * frame.c: Likewise.
567 * frv-tdep.c: Likewise.
568 * gcore.c: Likewise.
569 * gdb-dlfcn.c: Likewise.
570 * gdb_bfd.c: Likewise.
571 * gdbarch.c: Likewise.
572 * gdbarch.sh: Likewise.
573 * gdbtypes.c: Likewise.
574 * gnu-nat.c: Likewise.
575 * gnu-v3-abi.c: Likewise.
576 * go-lang.c: Likewise.
577 * guile/scm-exception.c: Likewise.
578 * guile/scm-gsmob.c: Likewise.
579 * guile/scm-lazy-string.c: Likewise.
580 * guile/scm-math.c: Likewise.
581 * guile/scm-pretty-print.c: Likewise.
582 * guile/scm-safe-call.c: Likewise.
583 * guile/scm-utils.c: Likewise.
584 * guile/scm-value.c: Likewise.
585 * h8300-tdep.c: Likewise.
586 * hppa-hpux-nat.c: Likewise.
587 * hppa-tdep.c: Likewise.
588 * hppanbsd-tdep.c: Likewise.
589 * hppaobsd-tdep.c: Likewise.
590 * i386-darwin-nat.c: Likewise.
591 * i386-darwin-tdep.c: Likewise.
592 * i386-nto-tdep.c: Likewise.
593 * i386-tdep.c: Likewise.
594 * i386bsd-nat.c: Likewise.
595 * i386fbsd-tdep.c: Likewise.
596 * i386gnu-nat.c: Likewise.
597 * i386nbsd-tdep.c: Likewise.
598 * i386obsd-tdep.c: Likewise.
599 * i387-tdep.c: Likewise.
600 * ia64-libunwind-tdep.c: Likewise.
601 * ia64-tdep.c: Likewise.
602 * inf-ptrace.c: Likewise.
603 * inf-ttrace.c: Likewise.
604 * infcall.c: Likewise.
605 * infcmd.c: Likewise.
606 * infrun.c: Likewise.
607 * inline-frame.c: Likewise.
608 * interps.c: Likewise.
609 * jv-lang.c: Likewise.
610 * jv-typeprint.c: Likewise.
611 * linux-fork.c: Likewise.
612 * linux-nat.c: Likewise.
613 * linux-thread-db.c: Likewise.
614 * m32c-tdep.c: Likewise.
615 * m32r-linux-nat.c: Likewise.
616 * m32r-tdep.c: Likewise.
617 * m68k-tdep.c: Likewise.
618 * m68kbsd-nat.c: Likewise.
619 * m68kbsd-tdep.c: Likewise.
620 * m88k-tdep.c: Likewise.
621 * machoread.c: Likewise.
622 * macroexp.c: Likewise.
623 * macrotab.c: Likewise.
624 * maint.c: Likewise.
625 * mdebugread.c: Likewise.
626 * memory-map.c: Likewise.
627 * mep-tdep.c: Likewise.
628 * mi/mi-common.c: Likewise.
629 * microblaze-tdep.c: Likewise.
630 * mingw-hdep.c: Likewise.
631 * mips-linux-nat.c: Likewise.
632 * mips-linux-tdep.c: Likewise.
633 * mips-tdep.c: Likewise.
634 * mips64obsd-tdep.c: Likewise.
635 * mipsnbsd-tdep.c: Likewise.
636 * mn10300-linux-tdep.c: Likewise.
637 * mn10300-tdep.c: Likewise.
638 * moxie-tdep.c: Likewise.
639 * mt-tdep.c: Likewise.
640 * nat/linux-btrace.c: Likewise.
641 * nat/linux-osdata.c: Likewise.
642 * nat/linux-ptrace.c: Likewise.
643 * nat/mips-linux-watch.c: Likewise.
644 * nios2-linux-tdep.c: Likewise.
645 * nios2-tdep.c: Likewise.
646 * objc-lang.c: Likewise.
647 * objfiles.c: Likewise.
648 * obsd-nat.c: Likewise.
649 * opencl-lang.c: Likewise.
650 * osabi.c: Likewise.
651 * parse.c: Likewise.
652 * ppc-linux-nat.c: Likewise.
653 * ppc-sysv-tdep.c: Likewise.
654 * ppcfbsd-nat.c: Likewise.
655 * ppcfbsd-tdep.c: Likewise.
656 * ppcnbsd-nat.c: Likewise.
657 * ppcnbsd-tdep.c: Likewise.
658 * ppcobsd-nat.c: Likewise.
659 * ppcobsd-tdep.c: Likewise.
660 * printcmd.c: Likewise.
661 * procfs.c: Likewise.
662 * prologue-value.c: Likewise.
663 * psymtab.c: Likewise.
664 * python/py-lazy-string.c: Likewise.
665 * python/py-value.c: Likewise.
666 * regcache.c: Likewise.
667 * reggroups.c: Likewise.
668 * registry.c: Likewise.
669 * remote-sim.c: Likewise.
670 * remote.c: Likewise.
671 * rs6000-aix-tdep.c: Likewise.
672 * rs6000-tdep.c: Likewise.
673 * s390-linux-tdep.c: Likewise.
674 * score-tdep.c: Likewise.
675 * ser-base.c: Likewise.
676 * ser-mingw.c: Likewise.
677 * sh-tdep.c: Likewise.
678 * sh64-tdep.c: Likewise.
679 * solib-darwin.c: Likewise.
680 * solib-spu.c: Likewise.
681 * solib-svr4.c: Likewise.
682 * source.c: Likewise.
683 * sparc-nat.c: Likewise.
684 * sparc-sol2-tdep.c: Likewise.
685 * sparc-tdep.c: Likewise.
686 * sparc64-sol2-tdep.c: Likewise.
687 * sparc64-tdep.c: Likewise.
688 * sparc64fbsd-tdep.c: Likewise.
689 * sparc64nbsd-tdep.c: Likewise.
690 * sparc64obsd-tdep.c: Likewise.
691 * sparcnbsd-tdep.c: Likewise.
692 * sparcobsd-tdep.c: Likewise.
693 * spu-multiarch.c: Likewise.
694 * spu-tdep.c: Likewise.
695 * stabsread.c: Likewise.
696 * stack.c: Likewise.
697 * symfile.c: Likewise.
698 * symtab.c: Likewise.
699 * target-descriptions.c: Likewise.
700 * target-memory.c: Likewise.
701 * target.c: Likewise.
702 * tic6x-linux-tdep.c: Likewise.
703 * tic6x-tdep.c: Likewise.
704 * tilegx-linux-nat.c: Likewise.
705 * tilegx-tdep.c: Likewise.
706 * top.c: Likewise.
707 * tramp-frame.c: Likewise.
708 * tui/tui-out.c: Likewise.
709 * tui/tui-winsource.c: Likewise.
710 * ui-out.c: Likewise.
711 * user-regs.c: Likewise.
712 * utils.c: Likewise.
713 * v850-tdep.c: Likewise.
714 * valops.c: Likewise.
715 * value.c: Likewise.
716 * varobj.c: Likewise.
717 * vax-nat.c: Likewise.
718 * xml-syscall.c: Likewise.
719 * xml-tdesc.c: Likewise.
720 * xstormy16-tdep.c: Likewise.
721 * xtensa-linux-nat.c: Likewise.
722 * xtensa-tdep.c: Likewise.
723
e76df0d0
GB
7242014-08-07 Gary Benson <gbenson@redhat.com>
725
726 * common/common-defs.h: Include common-utils.h.
727 * defs.h: Do not include common-utils.h.
728 * common/gdb_assert.h: Likewise.
729 * darwin-nat.h: Likewise.
730 * nat/linux-btrace.c: Likewise.
731 * target/waitstatus.h: Likewise.
732
4cb9c816
GB
7332014-08-07 Gary Benson <gbenson@redhat.com>
734
735 * common/common-defs.h: Include ptid.h.
736 * defs.h: Do not include ptid.h.
737 * inferior.h: Likewise.
738 * infrun.h: Likewise.
739 * nat/linux-btrace.h: Likewise.
740 * nat/linux-osdata.h: Likewise.
741 * target/waitstatus.h: Likewise.
742
3995eeee
GB
7432014-08-07 Gary Benson <gbenson@redhat.com>
744
745 * common/common-defs.h: Include gdb_locale.h.
746 * defs.h: Do not include gdb_locale.h.
747
cb9f1a9b
GB
7482014-08-07 Gary Benson <gbenson@redhat.com>
749
750 * common/common-defs.h: Include gdb/signals.h.
751 * defs.h: Do not include gdb/signals.h.
752
a5fceff8
GB
7532014-08-07 Gary Benson <gbenson@redhat.com>
754
755 * common/common-defs.h: Include pathmax.h.
756 * defs.h: Do not include pathmax.h.
757
b9391142
GB
7582014-08-07 Gary Benson <gbenson@redhat.com>
759
760 * common/common-defs.h: Include libiberty.h.
761 * defs.h: Do not include libiberty.h.
762 * common/queue.h: Likewise.
763 * cp-name-parser.y: Likewise.
764 * mi/mi-cmd-catch.c: Likewise.
765 * python/python.c: Likewise.
766
0e443c87
GB
7672014-08-07 Gary Benson <gbenson@redhat.com>
768
769 * common/common-defs.h: Include ansidecl.h.
770 * defs.h: Do not include ansidecl.h.
771 * common/buffer.h: Likewise.
772 * common/common-utils.h: Likewise.
773
8ebb3f56
GB
7742014-08-07 Gary Benson <gbenson@redhat.com>
775
776 * common/common-defs.h: Include stddef.h.
777 * defs.h: Do not include stddef.h.
778 * common/common-utils.h: Likewise.
779 * amd64fbsd-nat.c: Likewise.
780 * bcache.c: Likewise.
781 * charset.c: Likewise.
782 * common/buffer.h: Likewise.
783 * common/vec.h: Likewise.
784 * i386bsd-nat.c: Likewise.
785 * nat/linux-btrace.h: Likewise.
786 * ppcfbsd-nat.c: Likewise.
787 * ppcnbsd-tdep.h: Likewise.
788 * ppcobsd-nat.c: Likewise.
789 * ppcobsd-tdep.h: Likewise.
790 * python/py-gdb-readline.c: Likewise.
791
8980bdf6
GB
7922014-08-07 Gary Benson <gbenson@redhat.com>
793
794 * common/common-defs.h: Include stdarg.h.
795 * defs.h: Do not include stdarg.h.
796 * ada-lang.c: Likewise.
797 * common/common-utils.h: Likewise.
798 * guile/scm-string.c: Likewise.
799 * guile/scm-utils.c: Likewise.
800 * m32c-tdep.c: Likewise.
801
d7096f71
GB
8022014-08-07 Gary Benson <gbenson@redhat.com>
803
804 * common/common-defs.h: Include stdlib.h.
805 * defs.h: Do not include stdlib.h.
806 * addrmap.c: Likewise.
807 * bcache.c: Likewise.
808 * common/buffer.c: Likewise.
809 * common/common-utils.c: Likewise.
810 * cp-name-parser.y: Likewise.
811 * go32-nat.c: Likewise.
812 * mn10300-linux-tdep.c: Likewise.
813 * nat/linux-osdata.c: Likewise.
814 * tui/tui.c: Likewise.
815 * windows-nat.c: Likewise.
816
d02f550d
GB
8172014-08-07 Gary Benson <gbenson@redhat.com>
818
819 * common/common-defs.h: Include stdio.h.
820 * defs.h: Do not include stdio.h.
821 * ada-lang.c: Likewise.
822 * common/buffer.c: Likewise.
823 * common/common-utils.c: Likewise.
824 * cp-name-parser.y: Likewise.
825 * gnu-nat.c: Likewise.
826 * go32-nat.c: Likewise.
827 * i386gnu-nat.c: Likewise.
828 * proc-api.c: Likewise.
829 * proc-events.c: Likewise.
830 * proc-flags.c: Likewise.
831 * proc-why.c: Likewise.
832 * python/python-internal.h: Likewise.
833 * target-memory.c: Likewise.
834 * tui/tui-io.c: Likewise.
835 * tui/tui.c: Likewise.
836
b6d7a4bf
SM
8372014-08-06 Simon Marchi <simon.marchi@ericsson.com>
838
839 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
840 (scan_dyntag_auxv): Same.
841
af19829b
YQ
8422014-08-06 Yao Qi <yao@codesourcery.com>
843
844 * amd64-linux-nat.c: Remove duplicated include
845 "x86-linux-nat.h".
846 * i386-linux-nat.c: Likewise.
847
8e07a239
YQ
8482014-08-06 Yao Qi <yao@codesourcery.com>
849
850 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
851 operand" with "Special opcode" in comments.
852
7bfe8241
GB
8532014-08-05 Gary Benson <gbenson@redhat.com>
854
855 * interps.c (initialize_interps): Remove prototype.
856 (interpreter_initialized): Remove static global.
857 (interp_add): Do not call initialize_interps.
858 (initialize_interps): Remove function.
859
d6c95504
GB
8602014-08-05 Gary Benson <gbenson@redhat.com>
861
862 * utils.c (vwarning): Remove spurious va_end.
863
241fd515
AM
8642014-08-05 Alan Modra <amodra@gmail.com>
865
866 * charset.c (convert_between_encodings): Cast result of obstack_base.
867 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
868 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
869 (read_unwind_info): Use size_t for some locals.
870 * jit.c (finalize_symtab): Likewise.
871 * utils.c (hashtab_obstack_allocate): Likewise.
872 * symmisc.c (print_objfile_statistics): Update format strings.
873
dc304a94
JK
8742014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
875
876 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
877 (Changes in GDB 7.8): ... here.
878
3cecbbbe
TT
8792014-08-04 Tom Tromey <tromey@redhat.com>
880
881 * target.c (set_targetdebug): New function.
882 (initialize_targets): Pass set_targetdebug when creating "set
883 debug target".
884
6908c509
JB
8852014-08-01 Joel Brobecker <brobecker@adacore.com>
886
887 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
888 if detecting a variable-sized field that is not the last field.
889 Fix struct type length computation.
890
53e8f97d
JB
8912014-08-01 Joel Brobecker <brobecker@adacore.com>
892
893 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
894 Add debug trace.
895
e068c55d
JB
8962014-08-01 Joel Brobecker <brobecker@adacore.com>
897
898 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
899 Remove "+ 8" offset in computation of CHAIN_VMA.
900
4d4ca2a1
DE
9012014-07-31 Doug Evans <dje@google.com>
902
903 * inflow.c (child_terminal_inferior): Add comment.
904 (child_terminal_ours_for_output): Add comment.
905 (child_terminal_ours): Add comment.
906 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
907 (linux_nat_terminal_ours): Add comment.
908
462f517e
GB
9092014-07-31 Gary Benson <gbenson@redhat.com>
910
911 * common/btrace-common.h: Do not include defs.h or server.h.
912 * nat/mips-linux-watch.h: Likewise.
913 * gdb-dlfcn.h: Do not include defs.h.
914 * tracefile.h: Likewise.
915
74228e77
RM
9162014-07-30 Roland McGrath <mcgrathr@google.com>
917
918 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
919
014f9477
TT
9202014-07-30 Tom Tromey <tromey@redhat.com>
921
922 * bsd-kvm.c (bsd_kvm_open): Constify.
923 * corelow.c (core_open): Constify.
924 * ctf.c (ctf_open): Constify.
925 * dbug-rom.c (dbug_open): Constify.
926 * exec.c (exec_open): Constify.
927 * m32r-rom.c (m32r_open, mon2000_open): Constify.
928 * microblaze-rom.c (picobug_open): Constify.
929 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
930 Constify.
931 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
932 * record-btrace.c (record_btrace_open): Constify.
933 * record-full.c (record_full_core_open_1, record_full_open_1)
934 (record_full_open): Constify.
935 * remote-m32r-sdi.c (m32r_open): Constify.
936 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
937 (rockhopper_open, lsi_open): Constify.
938 * remote-sim.c (gdbsim_open): Constify.
939 * remote.c (remote_open, extended_remote_open, remote_open_1):
940 Constify.
941 * target.h (struct target_ops) <to_open>: Make "arg" const.
942 * tracefile-tfile.c (tfile_open): Constify.
943
e799154c
TT
9442014-07-30 Tom Tromey <tromey@redhat.com>
945
946 * breakpoint.c (map_breakpoint_numbers): Update.
947 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
948 (get_number_const): New function.
949 (get_number): Rewrite using get_number_const.
950 (init_number_or_range): Make "string" const.
951 (number_is_in_list): Make "list" const.
952 * cli/cli-utils.h (get_number_const): Declare.
953 (struct get_number_or_range_state) <string, end_ptr>: Now const.
954 (init_number_or_range, number_is_in_list): Update.
955 * printcmd.c (map_display_numbers): Update.
956 * value.c (value_from_history_ref): Constify.
957 * value.h (value_from_history_ref): Update.
958
5f08566b
TT
9592014-07-30 Tom Tromey <tromey@redhat.com>
960
961 * corefile.c (hook_type, call_extra_exec_file_hooks)
962 (specify_exec_file_hook): Constify.
963 * exec.c (exec_file_attach): Make "filename" const.
964 * gdbcore.h (deprecated_exec_file_display_hook)
965 (specify_exec_file_hook, exec_file_attach): Constify.
966 * main.c (captured_main): Use catch_command_errors_const.
967
8981c758
TT
9682014-07-30 Tom Tromey <tromey@redhat.com>
969
970 * target.c (open_target): New function.
971 (add_target_with_completer, add_deprecated_target_alias): Use
972 set_cmd_sfunc, set_cmd_context.
973 (debug_to_open): Remove.
974 (setup_target_debug): Update.
975
a1c7835a
YQ
9762014-07-30 Yao Qi <yao@codesourcery.com>
977
978 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
979 comments.
980 * parse.c (exp_iterate): Update comments.
981
976411d6
GB
9822014-07-30 Gary Benson <gbenson@redhat.com>
983
984 * common/common-defs.h: New file.
985 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
986 * defs.h: Include common-defs.h.
987 Do not include config.h or build-gnulib/config.h.
988
5d4848a4
GB
9892014-07-30 Gary Benson <gbenson@redhat.com>
990
991 * common/common-utils.h: Do not include config.h.
992 * nat/linux-btrace.h: Likewise.
993
d41f6d8e
GB
9942014-07-30 Gary Benson <gbenson@redhat.com>
995
996 * btrace.c: Include defs.h.
997 * common/ptid.c: Include defs.h or server.h as appropriate.
998 * nat/mips-linux-watch.c: Likewise.
999
84202f9c
TT
10002014-07-29 Tom Tromey <tromey@redhat.com>
1001
1002 * target.c (target_is_pushed): Simplify.
1003
2530441c
JB
10042014-07-29 Joel Brobecker <brobecker@adacore.com>
1005
1006 GDB 7.8 released.
1007
7e09a223
YQ
10082014-07-29 Yao Qi <yao@codesourcery.com>
1009
1010 PR gdb/17206
1011 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1012
7ebdbe92
DE
10132014-07-28 Doug Evans <xdje42@gmail.com>
1014
1015 PR guile/17203
1016 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1017 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1018 parameters.
1019
f347ffc9
WN
10202014-07-28 Will Newton <will.newton@linaro.org>
1021
1022 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1023 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1024 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1025 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1026 (THUMB2_EABI_SYSCALL): Likewise.
1027 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1028 struct tramp_frame.
1029 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1030 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1031
37c5f1f7
DE
10322014-07-27 Doug Evans <xdje42@gmail.com>
1033
1034 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1035
0c3abbc7
DE
10362014-07-27 Doug Evans <xdje42@gmail.com>
1037
1038 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1039
e76c5d17
DE
10402014-07-26 Ludovic Courtès <ludo@gnu.org>
1041 Doug Evans <xdje42@gmail.com>
1042
1043 PR guile/17146
1044 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1045 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1046 * configure.ac: Try to use guild to compile an scm file, if it fails
1047 then disable guile support.
1048 * configure: Regenerate.
1049 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1050 GUILE_FILE_LIST.
1051 (GUILE_COMPILED_FILES): New variable.
1052 (GUILE_FILES) Update.
1053 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1054 (stamp-guile): Compile scm files.
1055 * guile/guile.c (boot_guile_support): New function.
1056 (standard_throw_args_p): New function.
1057 (print_standard_throw_error, print_throw_error): New functions.
1058 (handle_boot_error): New function.
1059 (initialize_scheme_side): Rewrite to call boot_guile_support.
1060 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1061 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1062
186fcde0
DE
10632014-07-26 Ludovic Courtès <ludo@gnu.org>
1064 Doug Evans <xdje42@gmail.com>
1065
1066 PR guile/17146
1067 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1068 * guile/lib/gdb/support.scm: New file.
1069 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1070 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1071 All uses updated.
1072 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1073 All uses updated.
1074 (%assert-type): Ditto, and renamed to assert-type.
1075 (%exception-print-style): Delete.
1076
4df42755
DE
10772014-07-26 Doug Evans <xdje42@gmail.com>
1078
1079 PR build/17105
1080 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1081 * configure: Regenerate.
1082 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1083 PYTHON_FILES.
1084 (PYTHON_FILES): New variable.
1085 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1086 (GUILE_FILES): New variable.
1087 (stamp-python, install-python, uninstall-python): Handle empty
1088 file list.
1089 (stamp-guile, install-guile, uninstall-guile): Ditto.
1090
ee7333ae
DE
10912014-07-26 Doug Evans <xdje42@gmail.com>
1092
1093 PR guile/17177
1094 * guile/lib/gdb.scm (pretty-printers): Export.
1095 (set-pretty-printers!): Export.
1096 * guile/lib/gdb/printing.scm (gdb module): Update.
1097 (prepend-pretty-printer!, append-pretty-printer!): Update.
1098 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1099 (pretty_printer_list_var): Delete.
1100 (pretty_printer_list): New static global.
1101 (gdbscm_pretty_printers): New function.
1102 (gdbscm_set_pretty_printers_x): New function.
1103 (ppscm_find_pretty_printer_from_gdb): Update.
1104 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1105 (gdbscm_initialize_pretty_printers): Update.
1106
74edf516
DE
11072014-07-26 Doug Evans <xdje42@gmail.com>
1108
1109 PR 17185
1110 * configure.ac: Add check for header gc/gc.h.
1111 Add check for function setenv.
1112 * configure: Regenerate.
1113 * config.in: Regenerate.
1114 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1115
d54398a7
MR
11162014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1117
1118 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1119 variation in gdbarch matching.
1120
ab16fce8
TT
11212014-07-25 Tom Tromey <tromey@redhat.com>
1122
1123 * exec.c (using_exec_ops): Remove.
1124 (exec_close_1): Update. Remove extraneous block, reindent.
1125 (add_target_sections): Use target_is_pushed.
1126
88056fbb
PA
11272014-07-25 Pedro Alves <palves@redhat.com>
1128
1129 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1130 * monitor.c (monitor_create_inferior): Likewise.
1131 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1132 * remote-sim.c (gdbsim_create_inferior): Likewise.
1133 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1134 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1135 * windows-nat.c (do_initial_windows_stuff): Likewise.
1136
70509625
PA
11372014-07-25 Pedro Alves <palves@redhat.com>
1138
1139 * NEWS: Mention signal passing and "signal" command changes.
1140 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1141 comment.
1142 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1143 call.
1144 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1145 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1146 (jump_command): Adjust clear_proceed_status call.
1147 (signal_command): Warn if other thread that are resumed have
1148 signals that will be delivered. Adjust clear_proceed_status call.
1149 (until_next_command, finish_command)
1150 (proceed_after_attach_callback, attach_command_post_wait)
1151 (attach_command): Adjust clear_proceed_status call.
1152 * infrun.c (proceed_after_vfork_done): Likewise.
1153 (proceed_after_attach_callback): Adjust comment.
1154 (clear_proceed_status_thread): Clear stop_signal if not in pass
1155 state.
1156 (clear_proceed_status_callback): Delete.
1157 (clear_proceed_status): New 'step' parameter. Only clear the
1158 proceed status of threads the command being prepared is about to
1159 resume.
1160 (proceed): If passed in an explicit signal, override stop_signal
1161 with it. Don't pass the last stop signal to the thread we're
1162 resuming.
1163 (init_wait_for_inferior): Adjust clear_proceed_status call.
1164 (switch_back_to_stepped_thread): Clear the signal if it should not
1165 be passed.
1166 * infrun.h (clear_proceed_status): New 'step' parameter.
1167 (user_visible_resume_ptid): Add comment.
1168 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1169 signal is in pass state.
1170 * remote.c (append_pending_thread_resumptions): Likewise.
1171 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1172
d8be2939
TT
11732014-07-25 Tom Tromey <tromey@redhat.com>
1174
1175 * target.h (target_stopped_data_address)
1176 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1177 parentheses.
1178
7d0d9d2b
PL
11792014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1180
1181 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1182 comments.
1183 (avr_pointer_to_address): Likewise.
1184
e9e7f724
TT
11852014-07-24 Tom Tromey <tromey@redhat.com>
1186
1187 * monitor.c (compile_pattern): Update.
1188 * target.h (struct target_ops) <to_shortname, to_longname,
1189 to_doc>: Now const.
1190
1947513d
TT
11912014-07-24 Tom Tromey <tromey@redhat.com>
1192
1193 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1194 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1195 (add_info_alias, add_com): Make "doc" const.
1196 (print_doc_line): Make "str" const.
1197 (delete_cmd): Update.
1198 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1199 (print_doc_line): Update.
1200 * cli/cli-script.c (document_command): Update.
1201 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1202 (add_com, add_info, add_info_alias): Update.
1203 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1204 * python/py-cmd.c (cmdpy_destroyer): Update.
1205
64e61d29
TT
12062014-07-24 Tom Tromey <tromey@redhat.com>
1207
1208 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1209 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1210 (help_cmd_list): Constify.
1211 (lookup_cmd): Update.
1212 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1213 const.
1214 (help_cmd_list, apropos_cmd): Update.
1215 * cli/cli-script.c (show_user): Update.
1216 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1217 * cli/cli-setshow.h (cmd_show_list): Update.
1218 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1219 (cmd_show_list): Update.
1220 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1221 * python/py-cmd.c (cmdpy_destroyer): Update.
1222
429e55ea
TT
12232014-07-24 Tom Tromey <tromey@redhat.com>
1224
1225 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1226 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1227 const.
1228 * command.h (deprecate_cmd): Update.
1229 * maint.c (maintenance_do_deprecate): Add casts.
1230
64669f3b
TT
12312014-07-24 Tom Tromey <tromey@redhat.com>
1232
1233 * cli/cli-decode.c (help_cmd): Make parameter "const".
1234 * cli/cli-decode.h (help_cmd): Update.
1235
d3d3328b
TT
12362014-07-24 Tom Tromey <tromey@redhat.com>
1237
1238 * stack.c (up_silently_base, down_silently_base): Make argument
1239 const.
1240
414842dc
TT
12412014-07-24 Tom Tromey <tromey@redhat.com>
1242
1243 * solib.c (solib_add): Make "pattern" const.
1244 * solib.h (solib_add): Update.
1245
baa336ce
TT
12462014-07-24 Tom Tromey <tromey@redhat.com>
1247
1248 * remote.c (remote_serial_open, print_packet, putpkt)
1249 (putpkt_binary): Constify.
1250 * remote.h (putpkt): Update.
1251
5a19e2d0
TT
12522014-07-24 Tom Tromey <tromey@redhat.com>
1253
1254 * monitor.c (monitor_open): Make "args" const.
1255 * monitor.h (monitor_open): Update.
1256
fc4baa5e
TT
12572014-07-24 Tom Tromey <tromey@redhat.com>
1258
1259 * maint.c (match_bfd_flags): Make "string" const.
1260 (print_bfd_section_info): Remove casts.
1261 (print_objfile_section_info): Make "string" const.
1262
0d5f0dbe
TT
12632014-07-24 Tom Tromey <tromey@redhat.com>
1264
1265 * inf-child.c (inf_child_open_target): Make "arg" const.
1266 * inf-child.h (inf_child_open_target): Update.
1267
41c77899
TT
12682014-07-24 Tom Tromey <tromey@redhat.com>
1269
1270 * environ.c (unset_in_environ): Make "var" const.
1271 * environ.h (unset_in_environ): Update.
1272
93db0d79
TT
12732014-07-24 Tom Tromey <tromey@redhat.com>
1274
1275 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1276 Make "cmd" const.
1277 (scan_filename_with_cleanup): Likewise.
1278 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1279 Make arguments const.
1280 (restore_command): Update.
1281
36d6eb95
PA
12822014-07-24 Pedro Alves <palves@redhat.com>
1283
1284 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1285
8009206a
TT
12862014-07-24 Tom Tromey <tromey@redhat.com>
1287 Gary Benson <gbenson@redhat.com>
1288
1289 * nat/linux-ptrace.c (additional_flags): New global.
1290 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1291 additional_flags; don't check GDBSERVER.
1292 (linux_ptrace_set_additional_flags): New function.
1293 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1294 Declare.
1295 * linux-nat.c (_initialize_linux_nat): Call
1296 linux_ptrace_set_additional_flags.
1297
a7068b60
TT
12982014-07-24 Tom Tromey <tromey@redhat.com>
1299
1300 * make-target-delegates (munge_type, write_debugmethod): New
1301 functions.
1302 (debug_names): New global.
1303 ($TARGET_DEBUG_PRINTER): New global.
1304 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1305 name.
1306 Write debug methods. Generate init_debug_target.
1307 * target-debug.h: New file.
1308 * target-delegates.c: Rebuild.
1309 * target.c: Include target-debug.h.
1310 (debug_target): Hoist definition.
1311 (target_kill, target_get_section_table, target_memory_map)
1312 (target_flash_erase, target_flash_done, target_detach)
1313 (target_disconnect, target_wait, target_resume)
1314 (target_pass_signals, target_program_signals, target_follow_fork)
1315 (target_mourn_inferior, target_search_memory)
1316 (target_thread_address_space, target_close)
1317 (target_find_new_threads, target_core_of_thread)
1318 (target_verify_memory, target_insert_mask_watchpoint)
1319 (target_remove_mask_watchpoint): Remove targetdebug code.
1320 (debug_to_post_attach, debug_to_prepare_to_store)
1321 (debug_to_files_info, debug_to_insert_breakpoint)
1322 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1323 (debug_to_region_ok_for_hw_watchpoint)
1324 (debug_to_can_accel_watchpoint_condition)
1325 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1326 (debug_to_watchpoint_addr_within_range)
1327 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1328 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1329 (debug_to_terminal_init, debug_to_terminal_inferior)
1330 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1331 (debug_to_terminal_save_ours, debug_to_terminal_info)
1332 (debug_to_load, debug_to_post_startup_inferior)
1333 (debug_to_insert_fork_catchpoint)
1334 (debug_to_remove_fork_catchpoint)
1335 (debug_to_insert_vfork_catchpoint)
1336 (debug_to_remove_vfork_catchpoint)
1337 (debug_to_insert_exec_catchpoint)
1338 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1339 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1340 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1341 (setup_target_debug): Call init_debug_target.
1342 * target.h (TARGET_DEBUG_PRINTER): New macro.
1343 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1344 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1345
2c51604d
GB
13462014-07-24 Gary Benson <gbenson@redhat.com>
1347
1348 * exceptions.h (throw_vfatal): Renamed to...
1349 (throw_vquit): New declaration.
1350 (throw_quit): Likewise.
1351 * exceptions.c (throw_vfatal): Renamed to...
1352 (throw_vquit): New function.
1353 (throw_quit): Likewise.
1354 (throw_error): Call throw_verror rather than throw_it.
1355 * utils.h (vfatal): Removed.
1356 (fatal): Likewise.
1357 * utils.c (vfatal): Removed.
1358 (fatal): Likewise.
1359 (internal_verror): Replaced call to fatal with call to throw_quit.
1360 (quit): Replaced calls to fatal with calls to throw_quit.
1361
34211963
ME
13622014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1363
1364 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1365 target_read_code.
1366
a52b4d3e
ME
13672014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1368
1369 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1370 less than zero in conditional expression.
1371
a8bdc56b
TT
13722014-07-23 Tom Tromey <tromey@redhat.com>
1373
1374 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1375 ($INTRO_PART): Don't match whitespace.
1376 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1377 argument matching.
1378 ($METHOD): Add $METHOD_TRAILER.
1379 (trim): Rewrite.
1380 (scan_target_h): New sub.
1381 Change main loop not to collect state.
1382 * target-delegates.c: Rebuild.
1383
91b52240
GB
13842014-07-23 Gary Benson <gbenson@redhat.com>
1385
1386 * cp-support.c (gdb_demangle): Fix build on systems without
1387 sigaltstack.
1388
45326f6f
JK
13892014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1390
1391 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1392 for reference entry value target data value.
1393
e214cf6c
JK
13942014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1395
1396 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1397 value_available_contents_eq.
1398
bddbbedd
PA
13992014-07-22 Pedro Alves <palves@redhat.com>
1400
1401 * value.c (allocate_optimized_out_value): Don't mark value as
1402 non-lazy.
1403
45c71484
JW
14042014-07-22 Jiong Wang <jiong.wang@arm.com>
1405
1406 * MAINTAINERS (Write After Approval): Update my email address.
1407
9597b22a
DE
14082014-07-20 Doug Evans <dje@google.com>
1409
1410 PR server/17147
1411 * remote.c (putpkt_binary): Add text to error message.
1412
91101fe5
YQ
14132014-07-20 Yao Qi <yao@codesourcery.com>
1414
1415 * eval.c: Remove "Chill" from comments.
1416 * gdbtypes.h: Likewise.
1417 * symtab.h: Likewise.
1418
c9402c95
YQ
14192014-07-20 Yao Qi <yao@codesourcery.com>
1420
1421 * std-operator.def: Update comments to TERNOP_SLICE.
1422
ae8fddda
YQ
14232014-07-20 Yao Qi <yao@codesourcery.com>
1424
1425 * std-operator.def: Remove BINOP_RANGE.
1426 * breakpoint.c (watchpoint_exp_is_const): Update.
1427 * expprint.c (dump_subexp_body_standard): Likewise.
1428 * eval.c (init_array_element): Remove dead code.
1429 (evaluate_subexp_standard): Likewise.
1430
9c816640
YQ
14312014-07-20 Yao Qi <yao@codesourcery.com>
1432
1433 * std-operator.def: Remove BINOP_IN.
1434 * breakpoint.c (watchpoint_exp_is_const): Update.
1435 * eval.c (evaluate_subexp_standard): Likewise.
1436 * expprint.c (dump_subexp_body_standard): Likewise.
1437
164224e9
ME
14382014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1439
1440 * microblaze-tdep.c (microblaze_register_names): Add
1441 the rshr and rslr register names.
1442 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1443 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1444 Use of tdesc_numbered_register. Use of
1445 microblaze_register_g_packet_guesses. Use of
1446 tdesc_use_registers. Use of set_gdbarch_register_type.
1447 (microblaze_register_g_packet_guesses): New.
1448 * microblaze-tdep.h (microblaze_reg_num): Add
1449 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1450 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1451 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1452 * features/microblaze-core.xml: New file.
1453 * features/microblaze-stack-protect.xml: New file.
1454 * features/microblaze-with-stack-protect.c: New file.
1455 * features/microblaze-with-stack-protect.xml: New file.
1456 * features/microblaze.xml: New file.
1457 * features/microblaze.c: New file.
1458 * features/Makefile (microblaze-with-stack-protect): Add
1459 microblaze-with-stack-protect microblaze and microblaze-expedite.
1460 * regformats/microblaze-with-stack-protect.dat: New file.
1461 * regformats/microblaze.dat: New file.
1462 * doc/gdb.texinfo (MicroBlaze Features): Added.
1463
e8b2341c
TT
14642014-07-18 Tom Tromey <tromey@redhat.com>
1465
1466 * exec.c (exec_ops): Now static.
1467 * exec.h (exec_ops): Don't declare.
1468
44e89118
TT
14692014-07-18 Tom Tromey <tromey@redhat.com>
1470
1471 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1472 to find_target_beneath.
1473 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1474 find_target_beneath.
1475 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1476
b0ed115f
TT
14772014-07-18 Tom Tromey <tromey@redhat.com>
1478
1479 PR gdb/17130:
1480 * utils.c (quit): Use target_supports_terminal_ours.
1481 * target.h (target_supports_terminal_ours): Declare.
1482 * target.c (target_supports_delete_record): Don't check
1483 to_delete_record against NULL.
1484 (target_supports_terminal_ours): New function.
1485
e75fdfca
TT
14862014-07-18 Tom Tromey <tromey@redhat.com>
1487
1488 PR gdb/17130:
1489 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1490 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1491 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1492 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1493 * windows-nat.c (windows_xfer_partial): Always delegate.
1494 * record-btrace.c (record_btrace_xfer_partial): Simplify
1495 delegation.
1496 (record_btrace_fetch_registers, record_btrace_store_registers)
1497 (record_btrace_prepare_to_store, record_btrace_resume)
1498 (record_btrace_wait, record_btrace_find_new_threads)
1499 (record_btrace_thread_alive): Likewise.
1500 * procfs.c (procfs_xfer_partial): Always delegate.
1501 * corelow.c (core_xfer_partial): Always delegate.
1502 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1503
83814951
TT
15042014-07-18 Tom Tromey <tromey@redhat.com>
1505
1506 * exec.c (exec_make_note_section): Move earlier.
1507
b8b8facf
DE
15082014-07-17 Doug Evans <dje@google.com>
1509
74b49205 1510 PR gdb/17170
b8b8facf
DE
1511 * maint.c (count_symtabs_and_blocks): Handle NULL
1512 current_program_space.
1513 (report_command_stats): Check global enabled flag in addition to
1514 recorded enabled flag.
1515 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1516
69ff6be5
PA
15172014-07-16 Pedro Alves <palves@redhat.com>
1518
1519 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1520
252db1b5
TT
15212014-07-16 Tom Tromey <tromey@redhat.com>
1522
1523 * target.h (struct target_ops) <to_delete_record>: Reformat
1524 comment.
1525
a432721e
TT
15262014-07-16 Tom Tromey <tromey@redhat.com>
1527
1528 * target-delegates.c: Rebuild.
1529
487d9753
PL
15302014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1531
1532 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1533 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1534 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1535 (avr_pointer_to_address): Likewise.
1536 (avr_address_class_type_flags): New function.
1537 (avr_address_class_type_flags_to_name): Likewise.
1538 (avr_address_class_name_to_type_flags): Likewise.
1539 (avr_gdbarch_init): Set address_class_type_flags,
1540 address_class_type_flags_to_name and
1541 address_class_name_to_type_flags.
1542
57745c90
PA
15432014-07-15 Pedro Alves <palves@redhat.com>
1544
1545 * linux-nat.c (kill_callback): Save errno and work with saved
1546 copy.
1547
2d40be18
SM
15482014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1549
1550 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1551
572f6555
EBM
15522014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1553
1554 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1555 breakpoint support correctly.
1556
cc1c52ad
PA
15572014-07-14 Pedro Alves <palves@redhat.com>
1558
1559 * utils.c (prompt_for_continue): Call target_terminal_ours.
1560
1e973570
PA
15612014-07-14 Pedro Alves <palves@redhat.com>
1562
1563 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1564 catch_errors. Don't re-enable stdin or notify observers where,
1565 and rethrow error.
1566 (fetch_inferior_event_wrapper): Delete.
1567
93d6eb10
PA
15682014-07-14 Pedro Alves <palves@redhat.com>
1569
1570 PR gdb/17072
1571 * top.c: Include "inf-loop.h".
1572 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1573 field.
1574 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1575 was async before.
1576 (gdb_readline_wrapper): Store whether the target is async, and
1577 make it sync.
1578
0017922d
PA
15792014-07-14 Pedro Alves <palves@redhat.com>
1580
1581 PR gdb/17072
1582 * top.c (gdb_readline_wrapper_line): Tweak comment.
1583 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1584 the input handler callback.
1585
94696ad3
PA
15862014-07-14 Pedro Alves <palves@redhat.com>
1587
1588 PR gdb/17072
1589 * main.c: Include event-top.h.
1590 (handle_command_errors): New function.
1591 (catch_command_errors, catch_command_errors_const): Use it.
1592
9d1e69a2
PA
15932014-07-14 Pedro Alves <palves@redhat.com>
1594
1595 * exceptions.c (catch_command_errors, catch_command_errors_const):
1596 Moved to main.c.
1597 * exceptions.h (catch_command_errors_ftype)
1598 (catch_command_errors_const_ftype): Moved to main.c.
1599 (catch_command_errors, catch_command_errors_const): Delete
1600 declarations.
1601 * main.c (catch_command_errors_ftype)
1602 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1603 (catch_command_errors, catch_command_errors_const)): Moved here
1604 from exceptions.c and make static.
1605
feefc97b
PA
16062014-07-14 Pedro Alves <palves@redhat.com>
1607
1608 * exceptions.c (print_any_exception): Delete.
1609 (catch_exceptions_with_msg): Use exception_print instead of
1610 print_any_exception.
1611 (catch_errors): Use exception_fprintf instead of
1612 print_any_exception.
1613 (catch_command_errors, catch_command_errors_const): Use
1614 exception_print instead of print_any_exception.
1615
c933f875
PA
16162014-07-14 Pedro Alves <palves@redhat.com>
1617
1618 * infcall.c (run_inferior_call): Set 'sync_execution' while
1619 running the inferior call.
1620
feb6f816
PA
16212014-07-14 Pedro Alves <palves@redhat.com>
1622
1623 * value.c (value_contents_equal): Delete function.
1624 * value.h (value_contents_equal): Delete declaration.
1625
d98b7a16
TT
16262014-07-14 Tom Tromey <tromey@redhat.com>
1627
1628 PR exp/17106:
1629 * gdbtypes.c (is_dynamic_type_internal): New function, from
1630 is_dynamic_type.
1631 (is_dynamic_type): Rewrite.
1632 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1633 (resolve_dynamic_struct): Likewise.
1634 (resolve_dynamic_type_internal): New function, from
1635 resolve_dynamic_type.
1636 (resolve_dynamic_type): Rewrite.
1637
548740d6
TT
16382014-07-14 Tom Tromey <tromey@redhat.com>
1639
1640 * target.c (target_require_runnable): Also check record_stratum.
1641 Update comment.
1642
808f7ab1
YQ
16432014-07-11 Yao Qi <yao@codesourcery.com>
1644
1645 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1646 thumb_instruction_restores_sp return true.
1647
540314bd
YQ
16482014-07-11 Yao Qi <yao@codesourcery.com>
1649
1650 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1651 (thumb_in_function_epilogue_p): Call
1652 thumb_instruction_restores_sp.
1653
1db01f22
YQ
16542014-07-11 Yao Qi <yao@codesourcery.com>
1655
1656 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1657 'add sp, #imm'.
1658 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1659
3116063b
GB
16602014-07-11 Gary Benson <gbenson@redhat.com>
1661
1662 * amd64-linux-nat.c (gdbcore.h): Remove include.
1663 (regset.h): Likewise.
1664 (nat/linux-btrace.h): Likewise.
1665 (btrace.h): Likewise.
1666 (gdb_assert.h): Likewise.
1667 (string.h): Likewise.
1668 (sys/uio.h): Likewise.
1669 (sys/debugreg.h): Likewise.
1670 (sys/syscall.h): Likewise.
1671 (sys/procfs.h): Likewise.
1672 (sys/user.h): Likewise.
1673 (asm/ptrace.h): Likewise.
1674 (i386-nat.h): Likewise.
1675 * i386-linux-nat.c (i386-nat.h): Likewise.
1676 (regset.h): Likewise.
1677 (target.h): Likewise.
1678 (linux-nat.h): Likewise.
1679 (nat/linux-btrace.h): Likewise.
1680 (btrace.h): Likewise.
1681 (gdb_assert.h): Likewise.
1682 (string.h): Likewise.
1683 (sys/uio.h): Likewise.
1684 (sys/user.h): Likewise.
1685 (sys/procfs.h): Likewise.
1686 (sys/reg.h): Likewise.
1687 (sys/debugreg.h): Likewise.
1688 (ORIG_EAX): Remove definition.
1689
040baaf6
GB
16902014-07-11 Gary Benson <gbenson@redhat.com>
1691
1692 * i386-linux-nat.h: New file.
1693 * x86-linux-nat.h: Likewise.
1694 * x86-linux-nat.c: Likewise.
1695 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1696 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1697 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1698 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1699 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1700 (PTRACE_SETREGSET): Likewise.
1701 (arch_lwp_info): Now in x86-linux-nat.c.
1702 (have_ptrace_getregset): Now in x86-linux-nat.h.
1703 (x86_linux_dr_get): Now in x86-linux-nat.c.
1704 (x86_linux_dr_set): Likewise.
1705 (x86_linux_dr_get_addr): Likewise.
1706 (x86_linux_dr_get_control): Likewise.
1707 (x86_linux_dr_get_status): Likewise.
1708 (update_debug_registers_callback): Likewise.
1709 (x86_linux_dr_set_control): Likewise.
1710 (x86_linux_dr_set_addr): Likewise.
1711 (x86_linux_prepare_to_resume): Likewise.
1712 (x86_linux_new_thread): Likewise.
1713 (x86_linux_new_fork): Likewise.
1714 (x86_linux_get_thread_area): Likewise.
1715 (super_post_startup_inferior): Likewise.
1716 (x86_linux_child_post_startup_inferior): Likewise.
1717 (AMD64_LINUX_USER64_CS): Likewise.
1718 (AMD64_LINUX_X32_DS): Likewise.
1719 (x86_linux_read_description): Likewise.
1720 (x86_linux_enable_btrace): Likewise.
1721 (x86_linux_disable_btrace): Likewise.
1722 (x86_linux_teardown_btrace): Likewise.
1723 (x86_linux_read_btrace): Likewise.
1724 (x86_linux_create_target): Likewise.
1725 (x86_linux_add_target): Likewise.
1726 * i386-linux-nat.c (x86-linux-nat.h): New include.
1727 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1728 (PTRACE_SETREGSET): Likewise.
1729 (arch_lwp_info): Now in x86-linux-nat.c.
1730 (have_ptrace_getregset): Now in x86-linux-nat.h.
1731 (x86_linux_dr_get): Now in x86-linux-nat.c.
1732 (x86_linux_dr_set): Likewise.
1733 (x86_linux_dr_get_addr): Likewise.
1734 (x86_linux_dr_get_control): Likewise.
1735 (x86_linux_dr_get_status): Likewise.
1736 (update_debug_registers_callback): Likewise.
1737 (x86_linux_dr_set_control): Likewise.
1738 (x86_linux_dr_set_addr): Likewise.
1739 (x86_linux_prepare_to_resume): Likewise.
1740 (x86_linux_new_thread): Likewise.
1741 (x86_linux_new_fork): Likewise.
1742 (x86_linux_get_thread_area): Likewise.
1743 (super_post_startup_inferior): Likewise.
1744 (x86_linux_child_post_startup_inferior): Likewise.
1745 (AMD64_LINUX_USER64_CS): Likewise.
1746 (AMD64_LINUX_X32_DS): Likewise.
1747 (x86_linux_read_description): Likewise.
1748 (x86_linux_enable_btrace): Likewise.
1749 (x86_linux_disable_btrace): Likewise.
1750 (x86_linux_teardown_btrace): Likewise.
1751 (x86_linux_read_btrace): Likewise.
1752 (x86_linux_create_target): Likewise.
1753 (x86_linux_add_target): Likewise.
1754
1aa7e42c
GB
17552014-07-11 Gary Benson <gbenson@redhat.com>
1756
1757 * amd64-linux-nat.c: Comment and whitespace changes.
1758 * i386-linux-nat.c: Comment and whitespace changes.
1759
c1e246a0
GB
17602014-07-11 Gary Benson <gbenson@redhat.com>
1761
1762 * amd64-linux-nat.c (x86_linux_create_target): New function.
1763 (x86_linux_add_target): Likewise.
1764 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1765 * i386-linux-nat.c (x86_linux_create_target): New function.
1766 (x86_linux_add_target): Likewise.
1767 (_initialize_i386_linux_nat): Delegate to the above new functions.
1768
8c420b8d
GB
17692014-07-11 Gary Benson <gbenson@redhat.com>
1770
1771 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1772 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1773 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1774 (ps_get_thread_area): Delegate to the above.
1775
cb1da100
GB
17762014-07-11 Gary Benson <gbenson@redhat.com>
1777
1778 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1779 x86_linux_read_description. All uses updated. amd64-specific
1780 code conditionalized. Conditionalized i386-specific code added.
1781 Redundant cast removed.
1782 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1783 x86_linux_read_description. All uses updated. i386-specific
1784 code conditionalized. Conditionalized amd64-specific code added.
1785 One sizeof replaced with the actual type it is describing.
1786
2acf3cd0
GB
17872014-07-11 Gary Benson <gbenson@redhat.com>
1788
1789 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1790 x86_linux_dr_get. All uses updated.
1791 (amd64_linux_dr_set): Renamed to
1792 x86_linux_dr_set. All uses updated.
1793 (amd64_linux_dr_get_addr): Renamed to
1794 x86_linux_dr_get_addr. All uses updated.
1795 (amd64_linux_dr_get_control): Renamed to
1796 x86_linux_dr_get_control. All uses updated.
1797 (amd64_linux_dr_get_status): Renamed to
1798 x86_linux_dr_get_status. All uses updated.
1799 (amd64_linux_dr_set_control): Renamed to
1800 x86_linux_dr_set_control. All uses updated.
1801 (amd64_linux_dr_set_addr): Renamed to
1802 x86_linux_dr_set_addr. All uses updated.
1803 (amd64_linux_prepare_to_resume): Renamed to
1804 x86_linux_prepare_to_resume. All uses updated.
1805 (amd64_linux_new_thread): Renamed to
1806 x86_linux_new_thread. All uses updated.
1807 (amd64_linux_new_fork): Renamed to
1808 x86_linux_new_fork. All uses updated.
1809 (amd64_linux_child_post_startup_inferior): Renamed to
1810 x86_linux_child_post_startup_inferior. All uses updated.
1811 (amd64_linux_enable_btrace): Renamed to
1812 x86_linux_enable_btrace. All uses updated.
1813 (amd64_linux_disable_btrace): Renamed to
1814 x86_linux_disable_btrace. All uses updated.
1815 (amd64_linux_teardown_btrace): Renamed to
1816 x86_linux_teardown_btrace. All uses updated.
1817 (amd64_linux_read_btrace): Renamed to
1818 x86_linux_read_btrace. All uses updated.
1819 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1820 x86_linux_dr_get. All uses updated.
1821 (i386_linux_dr_set): Renamed to
1822 x86_linux_dr_set. All uses updated.
1823 (i386_linux_dr_get_addr): Renamed to
1824 x86_linux_dr_get_addr. All uses updated.
1825 (i386_linux_dr_get_control): Renamed to
1826 x86_linux_dr_get_control. All uses updated.
1827 (i386_linux_dr_get_status): Renamed to
1828 x86_linux_dr_get_status. All uses updated.
1829 (i386_linux_dr_set_control): Renamed to
1830 x86_linux_dr_set_control. All uses updated.
1831 (i386_linux_dr_set_addr): Renamed to
1832 x86_linux_dr_set_addr. All uses updated.
1833 (i386_linux_prepare_to_resume): Renamed to
1834 x86_linux_prepare_to_resume. All uses updated.
1835 (i386_linux_new_thread): Renamed to
1836 x86_linux_new_thread. All uses updated.
1837 (i386_linux_new_fork): Renamed to
1838 x86_linux_new_fork. All uses updated.
1839 (i386_linux_child_post_startup_inferior): Renamed to
1840 x86_linux_child_post_startup_inferior. All uses updated.
1841 (i386_linux_enable_btrace): Renamed to
1842 x86_linux_enable_btrace. All uses updated.
1843 (i386_linux_disable_btrace): Renamed to
1844 x86_linux_disable_btrace. All uses updated.
1845 (i386_linux_teardown_btrace): Renamed to
1846 x86_linux_teardown_btrace. All uses updated.
1847 (i386_linux_read_btrace): Renamed to
1848 x86_linux_read_btrace. All uses updated.
1849
b9c1d481
AS
18502014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1851
1852 * remote.c (extended_remote_post_attach): New function.
1853 (init_extended_remote_ops): Install it as to_post_attach method.
1854
7180e04a
PA
18552014-07-09 Pedro Alves <palves@redhat.com>
1856
1857 * infcmd.c (attach_command_post_wait): Don't call
1858 target_terminal_inferior here.
1859 (attach_command): Call it here instead.
1860
9a9a7608
AB
18612014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1862
1863 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1864 field.
1865 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1866 from varobj.c, with additional checks.
1867 (c_varobj_ops): Fill in is_path_expr_parent field.
1868 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1869 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1870 field.
1871 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1872 ops method.
1873 (varobj_default_is_path_expr_parent): New function.
1874 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1875 (varobj_default_is_path_expr_parent): Declare new function.
1876
1f267ae3
MM
18772014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1878
1879 * infcmd.c (finish_backward): Turn internal error into normal error.
1880
b2ee242b
PA
18812014-07-07 Pedro Alves <palves@redhat.com>
1882
8a869bca 1883 PR gdb/17096
b2ee242b
PA
1884 * remote.c (async_handle_remote_sigint)
1885 (async_handle_remote_sigint_twice): Call
1886 gdb_call_async_signal_handler instead of
1887 mark_async_signal_handler.
1888
38e229b2
TT
18892014-07-07 Tom Tromey <tromey@redhat.com>
1890
1891 * target-delegates.c: Rebuild.
1892 * target.c (target_info_record): Remove.
1893 * record.c (info_record_command): Unconditionally call
1894 to_info_record.
1895 * target.h (struct target_ops) <to_info_record>: Use
1896 TARGET_DEFAULT_IGNORE.
1897 (target_info_record): Remove.
1898
f0f9ff95
TT
18992014-07-07 Tom Tromey <tromey@redhat.com>
1900
1901 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1902 TARGET_DEFAULT_NORETURN.
1903 * target.c (generic_tls_error): New function.
1904 (target_translate_tls_address): Don't search target stack.
1905 * target-delegates.c: Rebuild.
1906 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1907 stack.
1908 * linux-thread-db.c (thread_db_get_thread_local_address):
1909 Unconditionally call beneath target.
1910
4a5be5ee
MK
19112014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1912
1913 * cli/cli-logging.c (pop_output_files): Assign targerr to
1914 gdb_stdtargerr.
1915
92c3b204
AB
19162014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * MAINTAINERS (Write After Approval): Update my email address.
1919
9b11e3a7
GB
19202014-07-02 Gary Benson <gbenson@redhat.com>
1921
1922 * proc-service.c (ps_xfer_memory): Update comment.
1923 (ps_pstop): Remove unused function.
1924 (ps_pcontinue): Likewise.
1925 (ps_lstop): Likewise.
1926 (ps_lcontinue): Likewise.
1927 (ps_lgetxregsize): Likewise.
1928 (ps_lgetxregs): Likewise.
1929 (ps_lsetxregs): Likewise.
1930 (ps_plog): Likewise.
1931 (ps_ptread): Likewise.
1932 (ps_ptwrite): Likewise.
1933
cf363f18
MW
19342014-07-01 Mark Wielaard <mjw@redhat.com>
1935
1936 * dwarf2read.c (add_array_cv_type): New function.
1937 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1938 (read_tag_volatile_type): Likewise.
1939
82ae6c8d
TT
19402014-07-01 Tom Tromey <tromey@redhat.com>
1941
1942 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1943 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1944 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1945 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1946 * command.h (cmd_cfunc_ftype): Move earlier.
1947 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1948 (add_com, add_info): Use cmd_cfunc_ftype.
1949
96142726
TT
19502014-06-30 Tom Tromey <tromey@redhat.com>
1951
1952 * symtab.c (operator_chars): Make parameters and return type
1953 const.
1954 (file_matches): Make "files" const.
1955 (struct search_symbols_data) <files>: Now const.
1956 (search_symbols): Make "regexp" and "files" parameters const.
1957 Update.
1958 (symtab_symbol_info): Remove cast.
1959 (rbreak_command): Update.
1960 * symtab.h (search_symbols): Update.
1961
b67a2c6f
YQ
19622014-06-27 Yao Qi <yao@codesourcery.com>
1963
1964 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1965 Change parameter type to 'struct thread_info *'. Caller
1966 updated.
1967 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1968 Update declaration.
1969 * dummy-frame.c (struct dummy_frame_id): New.
1970 (dummy_frame_id_eq): New function.
1971 (struct dummy_frame) <id>: Change its type to 'struct
1972 dummy_frame_id'.
1973 (dummy_frame_push): Add parameter ptid and save it in
1974 dummy_frame_id.
1975 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1976 inferior_ptid.
1977 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1978 to inferior_ptid.
1979 (lookup_dummy_frame): Change parameter type to 'struct
1980 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1981 instead of frame_id_eq.
1982 (dummy_frame_pop): Add parameter ptid. Callers updated.
1983 Update comments. Compose dummy_frame_id and pass it to
1984 lookup_dummy_frame.
1985 (dummy_frame_discard): Add parameter ptid.
1986 (dummy_frame_sniffer): Compose dummy_frame_id and call
1987 dummy_frame_id_eq instead of frame_id_eq.
1988 (fprint_dummy_frames): Print ptid.
1989 * dummy-frame.h: Remove comments.
1990 (dummy_frame_push): Add ptid in declaration.
1991 (dummy_frame_pop, dummy_frame_discard): Likewise.
1992
5b10184c
TT
19932014-06-26 Tom Tromey <tromey@redhat.com>
1994
1995 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1996 * command.h (error_no_arg): Update.
1997
06900326
TT
19982014-06-26 Tom Tromey <tromey@redhat.com>
1999
2000 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2001 (do_show_command): Make "arg" const.
2002 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2003
c2bcbb1d
TT
20042014-06-26 Tom Tromey <tromey@redhat.com>
2005
2006 * record-full.c (record_full_get_bookmark): Make "args" const.
2007 (record_full_goto_bookmark): Make "raw_bookmark" const.
2008 * record.c (record_goto): New function.
2009 (cmd_record_goto): Use it. Now static.
2010 * record.h (record_goto): Declare.
2011 (cmd_record_goto): Remove declaration.
2012 * target-delegates.c: Rebuild.
2013 * target.h (struct target_ops) <to_get_bookmark,
2014 to_goto_bookmark>: Make parameter const.
2015
9cbe5fff
TT
20162014-06-26 Tom Tromey <tromey@redhat.com>
2017
2018 * defs.h (generic_load): Update.
2019 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2020 * monitor.c (monitor_load): Make "args" const.
2021 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2022 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2023 const.
2024 (mips_load): Make "file" const.
2025 * remote-sim.c (gdbsim_load): Make "args" const.
2026 * remote.c (remote_load): Make "name" const.
2027 * symfile.c (generic_load): Make "args" const.
2028 * target-delegates.c: Rebuild.
2029 * target.c (target_load): Make "arg" const.
2030 (debug_to_load): Make "args" const.
2031 * target.h (struct target_ops) <to_load>: Make parameter const.
2032 (target_load): Update.
2033
34a68019
TT
20342014-06-26 Tom Tromey <tromey@redhat.com>
2035
2036 PR symtab/16902:
2037 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2038 (dwarf2_physname, read_partial_die)
2039 (guess_partial_die_structure_name, fixup_partial_die)
2040 (guess_full_die_structure_name, anonymous_struct_prefix)
2041 (dwarf2_name): Use per-BFD obstack.
2042
efc889c1
YQ
20432014-06-26 Yao Qi <yao@codesourcery.com>
2044
2045 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2046 dummyframe and this_id into inner block below.
2047
4395285e
YQ
20482014-06-26 Yao Qi <yao@codesourcery.com>
2049
2050 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2051 with "signal_pass[0]" in the initialization of signal_pass.
2052
aef92902
MM
20532014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2054
2055 * record-btrace.c (record_btrace_generating_corefile)
2056 (record_btrace_prepare_to_generate_core)
2057 (record_btrace_done_generating_core): New.
2058 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2059 (record_btrace_store_registers, record_btrace_prepare_to_store):
2060 Forward request when generating a core file.
2061 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2062 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2063 to_done_generating_core.
2064
5fff78c4
MM
20652014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2066
2067 * target.h (target_ops) <to_prepare_to_generate_core>
2068 <to_done_generating_core>: New.
2069 (target_prepare_to_generate_core, target_done_generating_core): New.
2070 * target.c (target_prepare_to_generate_core)
2071 (target_done_generating_core): New.
2072 * target-delegates.c: Regenerate.
2073 * gcore.c: (write_gcore_file): Rename to ...
2074 (write_gcore_file_1): ...this.
2075 (write_gcore_file): Call target_prepare_to_generate_core
2076 and target_done_generating_core.
2077
1d1f1ccb
MM
20782014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2079
2080 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2081 * gcore.c (write_gcore_file): Free memory returned from
2082 make_corefile_notes.
2083 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2084 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2085
3343ef86
YQ
20862014-06-24 Yao Qi <yao@codesourcery.com>
2087
2088 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2089 (arm_linux_init_abi): Set skip_trampoline_code with
2090 gdbarch_skip_trampoline_code instead of
2091 find_solib_trampoline_target.
2092
18d18ac8
YQ
20932014-06-24 Yao Qi <yao@codesourcery.com>
2094
2095 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2096 arm_skip_bx_reg returns non-zero.
2097
80d8d390
YQ
20982014-06-24 Yao Qi <yao@codesourcery.com>
2099
2100 * arm-tdep.c (arm_skip_bx_reg): New function.
2101 (arm_skip_stub): Call arm_skip_bx_reg.
2102
6a18a01c
DB
21032014-06-23 Don Breazeal <donb@codesourcery.com>
2104
2105 * MAINTAINERS: Add myself as write-after-approval maintainer.
2106
8e9db26e
PA
21072014-06-23 Pedro Alves <palves@redhat.com>
2108
2109 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2110 DR_CONTROL before setting DR0..DR3.
2111 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2112 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2113 bits of DR_CONTROL related to the debug register slot being
2114 disabled. If all slots are vacant, clear local slowdown as well,
2115 and assert DR_CONTROL is 0.
2116
70afc5b7
SC
21172014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2118
2119 * python/lib/gdb/command/xmethods.py
2120 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2121 current progspace only if the string "progspace" matches LOCUS_RE.
2122
840ed64d
JK
21232014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2124
2125 Fix --with-system-readline with readline-6.3 patch 5.
2126 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2127 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2128 types.
2129
26f2dc30
TT
21302014-06-20 Tom Tromey <tromey@redhat.com>
2131
2132 * dwarf2read.c (dw2_get_real_path): Use correct type in
2133 OBSTACK_CALLOC.
2134 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2135
125f8a3d
GB
21362014-06-20 Gary Benson <gbenson@redhat.com>
2137
2138 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2139 * common/glibc_thread_db.h: Likewise.
2140 * common/i386-cpuid.h: Likewise.
2141 * common/i386-gcc-cpuid.h: Likewise.
2142 * common/linux-btrace.h: Likewise.
2143 * common/linux-osdata.h: Likewise.
2144 * common/linux-procfs.h: Likewise.
2145 * common/linux-ptrace.h: Likewise.
2146 * common/mips-linux-watch.h: Likewise.
2147 * common/linux-btrace.c: Moved to nat.
2148 * common/linux-osdata.c: Likewise.
2149 * common/linux-procfs.c: Likewise.
2150 * common/linux-ptrace.c: Likewise.
2151 * common/mips-linux-watch.c: Likewise.
2152 * nat/gdb_thread_db.h: Moved from common.
2153 * nat/glibc_thread_db.h: Likewise.
2154 * nat/i386-cpuid.h: Likewise.
2155 * nat/i386-gcc-cpuid.h: Likewise.
2156 * nat/linux-btrace.c: Likewise.
2157 * nat/linux-btrace.h: Likewise.
2158 * nat/linux-osdata.c: Likewise.
2159 * nat/linux-osdata.h: Likewise.
2160 * nat/linux-procfs.c: Likewise.
2161 * nat/linux-procfs.h: Likewise.
2162 * nat/linux-ptrace.c: Likewise.
2163 * nat/linux-ptrace.h: Likewise.
2164 * nat/mips-linux-watch.c: Likewise.
2165 * nat/mips-linux-watch.h: Likewise.
2166 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2167 (object file files): Reordered.
2168 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2169 of glibc_thread_db.h.
2170
42995dbd
GB
21712014-06-20 Gary Benson <gbenson@redhat.com>
2172
2173 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2174 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2175 (i386_dr_low): Likewise.
2176 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2177 (i386_dr_low_set_addr): Likewise.
2178 (i386_dr_low_get_addr): Likewise.
2179 (i386_dr_low_can_set_control): Likewise.
2180 (i386_dr_low_set_control): Likewise.
2181 (i386_dr_low_get_control): Likewise.
2182 (i386_dr_low_get_status): Likewise.
2183 (i386_get_debug_register_length): Likewise.
2184 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2185 (i386_dr_low): Likewise.
2186 * nat/i386-dregs.c (i386-low.h): Remove include.
2187 (i386-nat.h): Likewise.
2188 (nat/i386-dregs.h): New include.
2189 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2190 (i386_dr_low_set_addr): Likewise.
2191 (i386_dr_low_get_addr): Likewise.
2192 (i386_dr_low_can_set_control): Likewise.
2193 (i386_dr_low_set_control): Likewise.
2194 (i386_dr_low_get_control): Likewise.
2195 (i386_dr_low_get_status): Likewise.
2196 (i386_get_debug_register_length): Likewise.
2197 (debug_hw_points): Likewise.
2198
3ed9baed
IB
21992014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2200
2201 * Makefile.in (SFILES): Add d-exp.y.
2202 (YYFILES): Add d-exp.c.
2203 (YYOBJ): Add d-exp.o.
2204 (local-maintainer-clean): Delete d-exp.c.
2205 * d-exp.y: New file.
2206 * d-lang.h (d_parse): New declaration.
2207 (d_error): New declaration.
2208 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2209 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2210 PREC_ORDER operators.
2211 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2212
78c164b0
YQ
22132014-06-19 Yao Qi <yao@codesourcery.com>
2214
2215 * gdbthread.h (any_running): Remove the declaration.
2216 * thread.c (any_running): Remove.
2217
f6e29b6e
YQ
22182014-06-19 Yao Qi <yao@codesourcery.com>
2219
2220 * gdbthread.h (struct thread_info) <state>: Change its type to
2221 'enum thread_state'. Update comments.
2222
034f788c
PA
22232014-06-19 Pedro Alves <palves@redhat.com>
2224
2225 * gdbthread.h (ALL_THREADS): Delete.
2226 (ALL_NON_EXITED_THREADS): New macro.
2227 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2228 instead of ALL_THREADS.
2229 * infrun.c (find_thread_needs_step_over)
2230 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2231 instead of ALL_THREADS.
2232 * record-btrace.c (record_btrace_open)
2233 (record_btrace_stop_recording, record_btrace_close)
2234 (record_btrace_is_replaying, record_btrace_resume)
2235 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2236 * remote.c (append_pending_thread_resumptions): Likewise.
2237 * thread.c (thread_apply_all_command): Likewise.
2238
46e33252
GB
22392014-06-19 Gary Benson <gbenson@redhat.com>
2240
2241 * i386-nat.c (i386_stopped_by_watchpoint):
2242 Use i386_dr_stopped_by_watchpoint.
2243 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2244 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2245
3a8ee006
GB
22462014-06-19 Gary Benson <gbenson@redhat.com>
2247
2248 * nat/i386-dregs.c: New file.
2249 * Makefile.in (i386-dregs.o): New rule.
2250 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2251 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2252 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2253 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2254 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2255 * config/i386/go32.mh (NATDEPFILES): Likewise.
2256 * config/i386/linux.mh (NATDEPFILES): Likewise.
2257 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2258 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2259 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2260 * i386-nat.h (debug_hw_points): New declaration.
2261 * i386-nat.c (breakpoint.h): Remove include.
2262 (command.h): Likewise.
2263 (target.h): Likewise.
2264 (gdb_assert.h): Likewise.
2265 (debug_hw_points): Made nonstatic.
2266 (debug_printf): Now in i386-dregs.c.
2267 (TARGET_HAS_DR_LEN_8): Likewise.
2268 (DR_CONTROL_SHIFT): Likewise.
2269 (DR_CONTROL_SIZE): Likewise.
2270 (DR_RW_EXECUTE): Likewise.
2271 (DR_RW_WRITE): Likewise.
2272 (DR_RW_READ): Likewise.
2273 (DR_RW_IORW): Likewise.
2274 (DR_LEN_1): Likewise.
2275 (DR_LEN_2): Likewise.
2276 (DR_LEN_4): Likewise.
2277 (DR_LEN_8): Likewise.
2278 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2279 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2280 (DR_ENABLE_SIZE): Likewise.
2281 (DR_LOCAL_SLOWDOWN): Likewise.
2282 (DR_GLOBAL_SLOWDOWN): Likewise.
2283 (DR_CONTROL_RESERVED): Likewise.
2284 (I386_DR_CONTROL_MASK): Likewise.
2285 (I386_DR_VACANT): Likewise.
2286 (I386_DR_LOCAL_ENABLE): Likewise.
2287 (I386_DR_GLOBAL_ENABLE): Likewise.
2288 (I386_DR_DISABLE): Likewise.
2289 (I386_DR_SET_RW_LEN): Likewise.
2290 (I386_DR_GET_RW_LEN): Likewise.
2291 (I386_DR_WATCH_HIT): Likewise.
2292 (i386_wp_op_t): Likewise.
2293 (i386_show_dr): Likewise.
2294 (i386_length_and_rw_bits): Likewise.
2295 (i386_insert_aligned_watchpoint): Likewise.
2296 (i386_remove_aligned_watchpoint): Likewise.
2297 (i386_handle_nonaligned_watchpoint): Likewise.
2298 (i386_update_inferior_debug_regs): Likewise.
2299 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2300 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2301 (i386_region_ok_for_watchpoint):
2302 Use i386_dr_region_ok_for_watchpoint.
2303 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2304
322a8e06
GB
23052014-06-19 Gary Benson <gbenson@redhat.com>
2306
2307 * i386-nat.c (i386_insert_hw_breakpoint): Use
2308 i386_insert_watchpoint.
2309 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2310
8f26655c
GB
23112014-06-19 Gary Benson <gbenson@redhat.com>
2312
2313 * i386-nat.c (i386_dr_show): Renamed to
2314 i386_show_dr and made static. All uses updated.
2315 (i386_dr_length_and_rw_bits): Renamed to
2316 i386_length_and_rw_bits and made static.
2317 All uses updated.
2318 (i386_dr_insert_aligned_watchpoint): Renamed to
2319 i386_insert_aligned_watchpoint and made static.
2320 All uses updated.
2321 (i386_dr_remove_aligned_watchpoint): Renamed to
2322 i386_remove_aligned_watchpoint and made static.
2323 All uses updated.
2324 (i386_dr_update_inferior_debug_regs): Renamed to
2325 i386_update_inferior_debug_regs and made static.
2326 All uses updated.
2327 * nat/i386-dregs.h (i386_dr_show): Removed.
2328 (i386_dr_length_and_rw_bits): Likewise.
2329 (i386_dr_insert_aligned_watchpoint): Likewise.
2330 (i386_dr_remove_aligned_watchpoint): Likewise.
2331 (i386_dr_update_inferior_debug_regs): Likewise.
2332
992c7d70
GB
23332014-06-19 Gary Benson <gbenson@redhat.com>
2334
2335 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2336 * configure: Regenerate.
2337 * config.in: Likewise.
2338 * main.c (signal.h): New include.
2339 (setup_alternate_signal_stack): New function.
2340 (captured_main): Call the above.
2341 * cp-support.c (signal.h): New include.
2342 (catch_demangler_crashes): New flag.
2343 (SIGJMP_BUF): New define.
2344 (SIGSETJMP): Likewise.
2345 (SIGLONGJMP): Likewise.
2346 (gdb_demangle_jmp_buf): New static global.
2347 (gdb_demangle_attempt_core_dump): Likewise.
2348 (gdb_demangle_signal_handler): New function.
2349 (gdb_demangle): If catch_demangler_crashes is set, install the
2350 above signal handler before calling bfd_demangle, and restore
2351 the original signal handler afterwards. Display the offending
2352 symbol and call demangler_warning the first time a segmentation
2353 fault is caught.
2354 (_initialize_cp_support): New maint set/show command.
2355
eae7090b
GB
23562014-06-19 Gary Benson <gbenson@redhat.com>
2357
2358 * utils.h (resource_limit_kind): New enum.
2359 (can_dump_core): New declaration.
2360 (warn_cant_dump_core): Likewise.
2361 (dump_core): Likewise.
2362 * utils.c (dump_core): Made nonstatic. Added new
2363 parameter "limit_kind".
2364 (can_dump_core): Made nonstatic. Moved printing code to...
2365 (warn_cant_dump_core): New function.
2366 (can_dump_core_warn): Likewise.
2367 (internal_vproblem): Replace calls to can_dump_core with
2368 calls to can_dump_core_warn. Supply new argument to each.
2369
57fcfb1b
GB
23702014-06-19 Gary Benson <gbenson@redhat.com>
2371
2372 * utils.h (demangler_vwarning): New declaration.
2373 (demangler_warning): Likewise.
2374 * utils.c (struct internal_problem)
2375 <user_settable_should_quit>: New field.
2376 <user_settable_should_dump_core>: Likewise
2377 (internal_error_problem): Add values for above new fields.
2378 (internal_warning_problem): Likewise.
2379 (demangler_warning_problem): New static global.
2380 (demangler_vwarning): New function.
2381 (demangler_warning): Likewise.
2382 (add_internal_problem_command): Selectively add commands.
2383 (_initialize_utils): New internal problem command.
2384 * maint.c (maintenance_demangler_warning): New function.
2385 (_initialize_maint_cmds): New command.
2386
17a40b44
TT
23872014-06-18 Tom Tromey <tromey@redhat.com>
2388
2389 * f-valprint.c (info_common_command_for_block): Update.
2390 * symtab.h (struct general_symbol_info) <common_block>: Now
2391 const.
2392
346d1dfe
TT
23932014-06-18 Tom Tromey <tromey@redhat.com>
2394
2395 * symtab.h (struct symtab) <blockvector>: Now const.
2396 * ada-lang.c (ada_add_global_exceptions): Update.
2397 * buildsym.c (augment_type_symtab): Update.
2398 * dwarf2read.c (dw2_lookup_symbol): Update.
2399 * jit.c (finalize_symtab): Update.
2400 * jv-lang.c (add_class_symtab_symbol): Update.
2401 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2402 Update.
2403 * objfiles.c (objfile_relocate1): Update.
2404 * psymtab.c (lookup_symbol_aux_psymtabs)
2405 (maintenance_check_psymtabs): Update.
2406 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2407 Update.
2408 * spu-tdep.c (spu_catch_start): Update.
2409 * symmisc.c (dump_symtab_1): Update.
2410 * symtab.c (lookup_global_symbol_from_objfile)
2411 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2412 (basic_lookup_transparent_type_quick)
2413 (basic_lookup_transparent_type, find_pc_sect_symtab)
2414 (find_pc_sect_line, search_symbols): Update.
2415 * block.c (find_block_in_blockvector): Make "bl" const.
2416 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2417 const.
2418 (blockvector_contains_pc): Make "bv" const.
2419 (block_for_pc_sect): Update.
2420 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2421 (blockvector_contains_pc): Update.
2422 * breakpoint.c (resolve_sal_pc): Update.
2423 * inline-frame.c (block_starting_point_at): Update.
2424
1834676b
TT
24252014-06-18 Tom Tromey <tromey@redhat.com>
2426
2427 * completer.c (complete_line): Make "line_buffer" const.
2428 * completer.h (complete_line): Update.
2429
ac1a991b
TT
24302014-06-18 Tom Tromey <tromey@redhat.com>
2431
2432 * symtab.c (add_macro_name): Remove unneeded cast.
2433
5bc98e52
TT
24342014-06-18 Tom Tromey <tromey@redhat.com>
2435
2436 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2437 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2438
8236def8
TT
24392014-06-18 Tom Tromey <tromey@redhat.com>
2440
2441 * probe.c (info_probes_for_ops): Make "arg" const.
2442 * probe.h (info_probes_for_ops): Update.
2443
3977b71f
TT
24442014-06-18 Tom Tromey <tromey@redhat.com>
2445
2446 * varobj.c (varobj_create): Update.
2447 * valops.c (value_of_this): Update.
2448 * tracepoint.c (add_local_symbols, scope_info): Update.
2449 * symtab.h (struct general_symbol_info) <block>: Now const.
2450 * symtab.c (skip_prologue_sal)
2451 (default_make_symbol_completion_list_break_on)
2452 (skip_prologue_using_sal): Update.
2453 * stack.h (iterate_over_block_locals)
2454 (iterate_over_block_local_vars): Update.
2455 * stack.c (print_frame_args): Update.
2456 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2457 parameter const.
2458 (get_selected_block): Make return type const.
2459 * python/py-frame.c (frapy_block): Update.
2460 * python/py-block.c (gdbpy_block_for_pc): Update.
2461 * p-exp.y (%union) <bval>: Now const.
2462 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2463 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2464 * m2-exp.y (%union) <bval>: Now const.
2465 * linespec.c (get_current_search_block): Make return type const.
2466 (create_sals_line_offset, find_label_symbols): Update.
2467 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2468 Update.
2469 (block_starting_point_at): Make "block" const.
2470 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2471 (check_exception_resume): Update.
2472 * guile/scm-frame.c (gdbscm_frame_block): Update.
2473 * guile/scm-block.c (gdbscm_lookup_block): Update.
2474 * frame.h (get_frame_block): Update.
2475 (get_selected_block): Make return type const.
2476 * frame.c (frame_id_inner): Update.
2477 * f-valprint.c (info_common_command_for_block)
2478 (info_common_command): Update.
2479 * dwarf2loc.c (dwarf2_find_location_expression)
2480 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2481 (locexpr_describe_location_piece): Update.
2482 * c-exp.y (%union) <bval>: Now const.
2483 * breakpoint.c (resolve_sal_pc): Update.
2484 * blockframe.c (get_frame_block):Make return type const.
2485 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2486 (block_innermost_frame): Update.
2487 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2488 (block_for_pc, block_for_pc_sect): Update.
2489 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2490 'pblock' const.
2491 (block_for_pc_sect, block_for_pc): Make return type const.
2492 * ax-gdb.c (gen_expr): Update.
2493 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2494 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2495 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2496 (ada_read_var_value): Update.
2497 * ada-exp.y (struct name_info) <block>: Now const.
2498 (%union): Likewise.
2499 (block_lookup): Constify.
2500
b9228891
GB
25012014-06-18 Gary Benson <gbenson@redhat.com>
2502
2503 * nat/i386-dregs.h: New file.
2504 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2505 * i386-nat.h (i386-dregs.h): New include.
2506 (DR_FIRSTADDR): Now in i386-dregs.h.
2507 (DR_LASTADDR): Likewise.
2508 (DR_NADDR): Likewise.
2509 (DR_STATUS): Likewise.
2510 (DR_CONTROL): Likewise.
2511 (i386_debug_reg_state): Likewise.
2512 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2513
a1aa2221
LM
25142014-06-18 Don Breazeal <donb@codesourcery.com>
2515
2516 * breakpoint.c (set_longjmp_breakpoint): Call
2517 momentary_breakpoint_from_master with additional argument.
2518 (set_longjmp_breakpoint_for_call_dummy): Call
2519 momentary_breakpoint_from_master with additional argument.
2520 (set_std_terminate_breakpoint): Call
2521 momentary_breakpoint_from_master with additional argument.
2522 (momentary_breakpoint_from_master): Add argument to function
2523 definition and use it to initialize structure member flag.
74228e77 2524 (clone_momentary_breakpoint): Call
a1aa2221
LM
2525 momentary_breakpoint_from_master with additional argument.
2526 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2527 member flags set in momentary_breakpoint_from_master.
2528
4be83cc2
GB
25292014-06-18 Gary Benson <gbenson@redhat.com>
2530
2531 * i386-nat.c (i386_show_dr): Renamed to
2532 i386_dr_show and made nonstatic. All uses updated.
2533 (i386_length_and_rw_bits): Renamed to
2534 i386_dr_length_and_rw_bits and made nonstatic.
2535 All uses updated.
2536 (i386_insert_aligned_watchpoint): Renamed to
2537 i386_dr_insert_aligned_watchpoint and made nonstatic.
2538 All uses updated.
2539 (i386_remove_aligned_watchpoint): Renamed to
2540 i386_dr_remove_aligned_watchpoint and made nonstatic.
2541 All uses updated.
2542 (i386_update_inferior_debug_regs): Renamed to
2543 i386_dr_update_inferior_debug_regs and made nonstatic.
2544 All uses updated.
2545
131aa0d4
GB
25462014-06-18 Gary Benson <gbenson@redhat.com>
2547
2548 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2549 (i386_dr_low_can_set_control): Likewise.
2550 (i386_dr_low_set_addr): Likewise.
2551 (i386_dr_low_set_control): Likewise.
2552 (i386_dr_low_get_addr): Likewise.
2553 (i386_dr_low_get_status): Likewise.
2554 (i386_dr_low_get_control): Likewise.
2555 (i386_insert_aligned_watchpoint): Use new macros.
2556 (i386_update_inferior_debug_regs): Likewise.
2557 (i386_stopped_data_address): Likewise.
2558
d9305f7f
GB
25592014-06-18 Gary Benson <gbenson@redhat.com>
2560
2561 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2562 New parameter. All uses updated.
2563
ea008da4
GB
25642014-06-18 Gary Benson <gbenson@redhat.com>
2565
2566 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2567 All uses updated.
2568
1b6d4134
GB
25692014-06-18 Gary Benson <gbenson@redhat.com>
2570
2571 * i386-nat.c (debug_printf): New macro.
2572 (i386_get_debug_register_length): Likewise.
2573 (TARGET_HAS_DR_LEN_8): Use above macro.
2574 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2575 and printf_unfiltered. Use phex to format values.
2576
9b4550ef
GB
25772014-06-18 Gary Benson <gbenson@redhat.com>
2578
2579 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2580 Make const.
2581
6e62758f
GB
25822014-06-18 Gary Benson <gbenson@redhat.com>
2583
2584 * i386-nat.c: Comment changes.
2585
51c79e94
GB
25862014-06-18 Gary Benson <gbenson@redhat.com>
2587
2588 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2589
3e11889a
GB
25902014-06-18 Gary Benson <gbenson@redhat.com>
2591
2592 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2593 (i386_insert_aligned_watchpoint): Likewise.
2594 (i386_remove_aligned_watchpoint): Likewise.
2595 (i386_handle_nonaligned_watchpoint): Likewise.
2596
fc6e2f03
GB
25972014-06-18 Gary Benson <gbenson@redhat.com>
2598
2599 * i386-nat.c: Whitespace changes.
2600
2afe7d50
SB
26012014-06-17 Samuel Bronson <naesten@gmail.com>
2602
2603 * MAINTAINERS: Update Roland McGrath's email address.
2604 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2605 Red Hat a while ago, and giving me a current address.
2afe7d50 2606
3bca49ee
TT
26072014-06-17 Tom Tromey <tromey@redhat.com>
2608
2609 * utils.h (savestring): Remove declaration.
2610
6e366df1
TT
26112014-06-17 Tom Tromey <tromey@redhat.com>
2612
2613 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2614
6be47f0c
KS
26152014-06-16 Keith Seitz <keiths@redhat.com>
2616
2617 PR mi/15863
2618 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2619 to update the varobj if inferior_ptid is null_ptid.
2620
7bc112c1
TT
26212014-06-16 Tom Tromey <tromey@redhat.com>
2622
2623 * target.h (struct target_ops) <to_info_proc>: Make parameter
2624 const.
2625 (target_info_proc): Update.
2626 * target.c (target_info_proc): Make "args" const.
2627 * procfs.c (procfs_info_proc): Update.
2628 * linux-tdep.c (linux_info_proc): Update.
2629 (linux_core_info_proc_mappings): Make "args" const.
2630 (linux_core_info_proc): Update.
2631 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2632 * gdbarch.c: Rebuild.
2633 * gdbarch.h: Rebuild.
2634 * corelow.c (core_info_proc): Update.
2635
fee354ee
TT
26362014-06-16 Tom Tromey <tromey@redhat.com>
2637
2638 * target.h (struct target_ops) <to_disconnect>: Make parameter
2639 const.
2640 (target_disconnect): Update.
2641 * target.c (target_disconnect): Make "args" const.
2642 * target-delegates.c: Rebuild.
2643 * remote.c (remote_disconnect): Update.
2644 * record.h (record_disconnect): Update.
2645 * record.c (record_disconnect): Update.
2646 * inf-child.c (inf_child_disconnect): Update.
2647
a30bf1f1
TT
26482014-06-16 Tom Tromey <tromey@redhat.com>
2649
2650 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2651 * target.c (debug_to_rcmd, default_rcmd): Update.
2652 * target-delegates.c: Rebuild.
2653 * remote.c (remote_rcmd): Update.
2654 * monitor.c (monitor_rcmd): Update.
2655
d03de421
PA
26562014-06-16 Pedro Alves <palves@redhat.com>
2657
2658 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2659 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2660 have OBJF_SHARED set.
2661 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2662 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2663 instead of OBJF_USERLOADED.
2664 * objfiles.h (OBJF_SHARED): Update comment.
2665 (userloaded_objfile_contains_address_p): Rename to ...
2666 (shared_objfile_contains_address_p): ... this, and update
2667 comments.
2668 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2669 new objfile.
2670 (remove_symbol_file_command): Skip objfiles that don't have
2671 OBJF_SHARED set.
2672
99f4262f
TT
26732014-06-16 Tom Tromey <tromey@redhat.com>
2674
2675 * minsyms.h (prim_record_minimal_symbol)
2676 (prim_record_minimal_symbol_and_info): Update comments.
2677
97d66cc6
EZ
26782014-06-14 Eli Zaretskii <eliz@gnu.org>
2679
2680 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2681 or --without-guile, according to how GDB was built.
2682
635c7e8a
TT
26832014-06-13 Tom Tromey <tromey@redhat.com>
2684
2685 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2686 to help_list.
2687 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2688 to help_list.
2689 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2690 help_list.
2691 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2692 help_list.Pass all_commands, not -1, to help_list.
2693 * cli/cli-dump.c (dump_command, append_command)
2694 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2695 (binary_dump_command, binary_append_command): Pass all_commands,
2696 not -1, to help_list.
2697 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2698 -1, to help_list.
2699 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2700 -1, to help_list.
2701 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2702 help_list.
2703 * top.c (set_history): Pass all_commands, not -1, to help_list.
2704 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2705 all_commands, not -1, to help_list.
2706 * symfile.c (overlay_command): Pass all_commands, not -1, to
2707 help_list.
2708 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2709 help_list.
2710 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2711 help_list.
2712 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2713 -1, to help_list.
2714 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2715 not -1, to help_list.
2716 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2717 not -1, to help_list.
2718 * maint.c (maintenance_command, maintenance_info_command)
2719 (maintenance_print_command, maintenance_set_cmd): Pass
2720 all_commands, not -1, to help_list.
2721 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2722 help_list.
2723 * language.c (set_check): Pass all_commands, not -1, to help_list.
2724 * infcmd.c (unset_command): Pass all_commands, not -1, to
2725 help_list.
2726 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2727 help_list.
2728 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2729 help_list.
2730 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2731 help_list.
2732 * breakpoint.c (save_command): Pass all_commands, not -1, to
2733 help_list.
2734 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2735 all_commands, not -1, to help_list.
2736
b94ade42
PL
27372014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2738
2739 * regcache.c (struct register_to_invalidate): New structure.
2740 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2741 functions.
2742 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2743
31f628ae
YQ
27442014-06-12 Yao Qi <yao@codesourcery.com>
2745
2746 * varobj.c (varobj_get_num_children): Call
2747 varobj_is_dynamic_p.
2748 (varobj_list_children): Likewise.
2749 (varobj_update): Likewise. Update comments.
2750
cde5ef40
YQ
27512014-06-12 Yao Qi <yao@codesourcery.com>
2752
2753 * varobj.c (varobj_pretty_printed_p): Rename to ...
2754 (varobj_is_dynamic_p): ... this. New function.
2755 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2756 (varobj_is_dynamic_p): Declare.
2757 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2758 (mi_print_value_p, varobj_update_one): Likewise.
2759
576ea091
YQ
27602014-06-12 Pedro Alves <pedro@codesourcery.com>
2761 Yao Qi <yao@codesourcery.com>
2762
2763 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2764 (varobj_get_iterator): Wrap up code for pretty-printer by
2765 "#if HAVE_PYTHON" and "#endif".
2766 (update_dynamic_varobj_children): Likewise.
2767
827f100c
YQ
27682014-06-12 Pedro Alves <pedro@codesourcery.com>
2769 Yao Qi <yao@codesourcery.com>
2770
2771 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2772 gdb_python_initialized is false. Move some code from varobj.c.
2773 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2774 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2775 (struct varobj_item): Moved to varobj-iter.h".
2776 (varobj_clear_saved_item): New function.
2777 (update_dynamic_varobj_children): Move python-related code to
2778 py-varobj.c.
2779 (free_variable): Call varobj_clear_saved_item and
2780 varobj_iter_delete.
2781
e5250216
YQ
27822014-06-12 Pedro Alves <pedro@codesourcery.com>
2783 Yao Qi <yao@codesourcery.com>
2784
2785 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2786 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2787 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2788 (py-varobj.o): New rule.
2789 * python/py-varobj.c: New file.
2790 * python/python-internal.h (py_varobj_get_iterator): Declare.
2791 * varobj-iter.h: New file.
2792 * varobj.c: Include "varobj-iter.h"
2793 (struct varobj) <child_iter>: Change its type from "PyObject *"
2794 to "struct varobj_iter *".
2795 <saved_item>: Likewise.
2796 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2797 [HAVE_PYTHON] (varobj_get_iterator): New function.
2798 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2799 python-specific code to python/py-varobj.c.
2800 (install_visualizer): Call varobj_iter_delete instead of
2801 Py_XDECREF.
2802 * varobj.h (varobj_ensure_python_env): Declare.
2803
5a2e0d6e
YQ
28042014-06-12 Yao Qi <yao@codesourcery.com>
2805
2806 * varobj.c (struct varobj_item): New structure.
2807 (create_child_with_value): Update declaration.
2808 (varobj_add_child): Replace arguments 'name' and 'value' with
2809 'item'. All callers updated.
2810 (install_dynamic_child): Likewise.
2811 (update_dynamic_varobj_children): Likewise.
2812 (varobj_add_child): Likewise.
2813 (create_child_with_value): Likewise.
2814
919b9a93
JB
28152014-06-11 Joel Brobecker <brobecker@adacore.com>
2816
2817 * NEWS: Create a new section for the next release branch.
2818 Rename the section of the current branch, now that it has
2819 been cut.
2820
71a55bdf
JB
28212014-06-11 Joel Brobecker <brobecker@adacore.com>
2822
2823 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2824 * version.in: Bump version to 7.8.50.DATE-cvs.
2825
364fe1f7
PA
28262014-06-11 Pedro Alves <palves@redhat.com>
2827
2828 PR remote/17028
2829 * ser-mingw.c (net_windows_socket_check_pending): New function.
2830 (net_windows_select_thread): Ignore spurious wakeups. Use
2831 net_windows_socket_check_pending.
2832 (net_windows_wait_handle): Check for pending events with
2833 ioctlsocket, through net_windows_socket_check_pending, instead of
2834 checking the socket's event.
2835
5a6c7709
SC
28362014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2837
2838 * python/python-internal.h (gdb_PyObject_GetAttrString)
2839 (gdb_PyObject_HasAttrString): New inline function definitions.
2840 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2841 char * of the second argument to PyObject_GetAttrString.
74228e77 2842
0e58ee40
JB
28432014-06-10 Joel Brobecker <brobecker@adacore.com>
2844
2845 * serial.c (serial_write): Fix index of character to be printed
2846 in call to serial_logchar when serial debug traces are enabled.
2847
d190df30
JB
28482014-06-10 Joel Brobecker <brobecker@adacore.com>
2849
2850 * gdbtypes (resolve_dynamic_range): Add function description.
2851
b4b01d36
PA
28522014-06-09 Pedro Alves <palves@redhat.com>
2853
2854 * linux-nat.c (linux_child_follow_fork): Initialize status with
2855 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2856 inner block. Only pass the signal to PTRACE_DETACH if in pass
2857 state.
2858
3657956b
GB
28592014-06-09 Gary Benson <gbenson@redhat.com>
2860
2861 * common/signals.c (gdb_signal_from_host): Reorder to separate
2862 the always-available ANSI-standard signals from the signals that
2863 require checking.
2864 (do_gdb_signal_to_host): Likewise.
2865 * proc-events.c (signal_table): Likewise.
2866
c077881a
HZ
28672014-06-08 Hui Zhu <hui@codesourcery.com>
2868
2869 * common/linux-ptrace.c (linux_disable_event_reporting): New
2870 function.
2871 * common/linux-ptrace.h (linux_disable_event_reporting): New
2872 declaration.
2873 * linux-nat.c (linux_child_follow_fork): Do a single step before
2874 detach.
2875
4186eb54
KS
28762014-06-07 Keith Seitz <keiths@redhat.com>
2877
2878 Revert:
2879 PR c++/16253
2880 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2881 from symbol_matches_domain in symtab.c. All local callers
2882 of symbol_matches_domain updated.
2883 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2884 search STRUCT_DOMAIN.
2885 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2886 independently. standard_lookup will do that automatically.
2887 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2888 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2889 (cp_lookup_symbol_in_namespace): Likewise.
2890 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2891 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2892 may return a STRUCT_DOMAIN match.
2893 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2894 * cp-support.c: Include language.h.
2895 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2896 VAR_DOMAIN.
2897 * psymtab.c (match_partial_symbol): Compare the requested
2898 domain with the symbol's domain directly.
2899 (lookup_partial_symbol): Likewise.
2900 * symtab.c (lookup_symbol_in_language): Explain when/why
2901 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2902 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2903 appropriate languages.
2904 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2905 and moved to ada-lang.c
2906 (lookup_block_symbol): Explain that this function only returns
2907 symbol matching the requested DOMAIN.
2908 Compare the requested domain with the symbol's domain directly.
2909 (iterate_over_symbols): Compare the requested domain with the
2910 symbol's domain directly.
2911 * symtab.h (symbol_matches_domain): Remove.
2912
25326a28 29132014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2914
2915 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2916 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2917 (gdbscm_guile_version_is_at_least): Declare.
2918 (gdbscm_scm_string_to_int): Declare.
2919 * guile/guile.c (gdbscm_guile_major_version): New global.
2920 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2921 (guile_datadir): New static global.
2922 (gdbscm_guile_data_directory): New function.
2923 (initialize_scheme_side): Update.
2924 (misc_guile_functions): Add guile-data-directory.
2925 (initialize_gdb_module): Fetch guile version number.
2926 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2927 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2928 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2929 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2930 comments.
2931 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2932 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2933 * guile/scm-value.c (gdbscm_value_to_string): Only call
2934 scm_port_conversion_strategy if Guile version >= 2.0.6.
2935
0a770bb2 29362014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2937
2938 * main.c (print_gdb_help): Add -q and --silent.
2939
73ba372c
GB
29402014-06-06 Gary Benson <gbenson@redhat.com>
2941
2942 * common/signals.c: Remove preprocessor conditionals for
2943 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2944 SIGSEGV and SIGTERM.
2945 * proc-events.c: Likewise.
2946
c33b2f12
MM
29472014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2948
2949 * symfile.c (symfile_free_objfile): Remove restriction to
2950 OBJF_USERLOADED.
2951 * symfile-mem.c (symbol_file_add_from_memory): Call
2952 add_target_sections_of_objfile.
2953
fb934770
LC
29542014-06-05 Ludovic Courtès <ludo@gnu.org>
2955
2956 * guile/scm-value.c (gdbscm_history_append_x): Use
2957 'vlscm_get_value_smob_arg_unsafe' instead of
2958 'vlscm_scm_to_value'.
2959
6ef284bd
SM
29602014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2961
2962 PR mi/15806
2963 * utils.c (printchar): Don't escape at all if quoter is NUL.
2964 Update function documentation to clarify effect of parameter
2965 QUOTER.
2966 * remote.c (escape_buffer): Pass '\\' as the quoter to
2967 fputstrn_unfiltered.
2968 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2969 generate the output.
2970 (mi_solib_unloaded): Same.
2971
270c9937
JB
29722014-06-05 Joel Brobecker <brobecker@adacore.com>
2973
2974 * development.sh: Delete.
2975 * Makefile.in (config.status): Adjust dependency on development.sh.
2976 * configure.ac: Adjust development.sh source call.
2977 * configure: Regenerate.
2978
16f691fb
DE
29792014-06-04 Doug Evans <xdje42@gmail.com>
2980
2981 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2982 is_scheme_bkpt, spec.
2983 (bpscm_make_breakpoint_smob): Initialize new members.
2984 (gdbscm_create_breakpoint_x): Split into two ...
2985 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2986 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2987 (scheme_function breakpoint_functions): Update.
2988 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2989 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2990 register-breakpoint!.
2991
ef7cab6b
JB
29922014-06-04 Joel Brobecker <brobecker@adacorer.com>
2993
2994 PR server/17023
2995 * mem-break.c (z_type_supported): Return zero if
2996 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2997
012370f6
TT
29982014-06-04 Tom Tromey <tromey@redhat.com>
2999
3000 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3001 value_from_contents_and_address_unresolved.
3002 (ada_template_to_fixed_record_type_1): Likewise.
3003 (ada_which_variant_applies): Likewise.
3004 * value.h (value_from_contents_and_address_unresolved): Declare.
3005 * value.c (value_from_contents_and_address_unresolved): New
3006 function.
3007 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3008 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3009 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3010
92e2a17f
TT
30112014-06-04 Tom Tromey <tromey@redhat.com>
3012
3013 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3014
c0939df1
TT
30152014-06-04 Tom Tromey <tromey@redhat.com>
3016
3017 * procfs.c (procfs_attach): Make "args" const.
3018 * windows-nat.c (windows_attach): Make "args" const.
3019 * nto-procfs.c (procfs_attach): Make "args" const.
3020 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3021 * go32-nat.c (go32_attach): Make "args" const.
3022 * gnu-nat.c (gnu_attach): Make "args" const.
3023 * darwin-nat.c (darwin_attach): Make "args" const.
3024 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3025 * linux-nat.c (linux_nat_attach): Make "args" const.
3026 * remote.c (extended_remote_attach_1, extended_remote_attach):
3027 Make "args" const.
3028 * target.h (struct target_ops) <to_attach>: Make "args" const.
3029 (find_default_attach): Likewise.
3030 * utils.c (parse_pid_to_attach): Make "args" const.
3031 * utils.h (parse_pid_to_attach): Update.
3032
8eaff7cd
TT
30332014-06-04 Tom Tromey <tromey@redhat.com>
3034
3035 * target-delegates.c: Rebuild.
3036 * target.c (default_thread_address_space): New function.
3037 (target_thread_address_space): Simplify.
3038 * target.h (struct target_ops) <to_thread_address_space>: Add
3039 TARGET_DEFAULT_FUNC.
3040
1913f160
DE
30412014-06-04 Doug Evans <xdje42@gmail.com>
3042
3043 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3044
70ad5bff
MM
30452014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3046
3047 * record-btrace.c: Include event-loop.h and inf-loop.h.
3048 (record_btrace_resume_exec_dir)
3049 (record_btrace_async_inferior_event_handler)
3050 (record_btrace_handle_async_inferior_event): New.
3051 (record_btrace_open): Create async event handler.
3052 (record_btrace_close): Delete async event handler.
3053 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3054 Mark async event handler.
3055 (record_btrace_execution_direction): New.
3056 (init_record_btrace_ops): Initialize to_execution_direction.
3057
b6210538
DE
30582014-06-03 Doug Evans <xdje42@gmail.com>
3059
3060 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3061 (gdbscm_make_parameter): Ditto.
3062
a5b1fd27
DE
30632014-06-03 Doug Evans <dje@google.com>
3064
3065 * exec.c (exec_close_1): Call clear_section_table instead of
3066 resize_section_table.
3067 (clear_section_table): New function.
3068 (resize_section_table): Make static. Rename arg num_added to
3069 adjustment.
3070 * exec.h (clear_section_table): Declare.
3071 (resize_section_table): Delete.
3072 * progspace.c (release_program_space): Call clear_section_table
3073 instead of resize_section_table.
3074
0c6e92a5
SC
30752014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3076
3077 * NEWS (Python Scripting): Add entry about the new xmethods
3078 feature.
3079
883964a7
SC
30802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3081
3082 * python/py-xmethods.c: New file.
3083 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3084 (objfpy_dealloc): XDECREF on the new xmethods field.
3085 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3086 field.
3087 (objfpy_get_xmethods): New function.
3088 (objfile_getset): New entry 'xmethods'.
3089 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3090 (pspy_dealloc): XDECREF on the new xmethods field.
3091 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3092 field.
3093 (pspy_get_xmethods): New function.
3094 (pspace_getset): New entry 'xmethods'.
3095 * python/python-internal.h: Add declarations for new functions.
3096 * python/python.c (_initialize_python): Invoke
3097 gdbpy_initialize_xmethods.
3098 * python/lib/gdb/__init__.py (xmethods): New
3099 attribute.
3100 * python/lib/gdb/xmethod.py: New file.
3101 * python/lib/gdb/command/xmethods.py: New file.
3102
58992dc5
SC
31032014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3104
3105 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3106 best match method returned by find_overload_match is an xmethod.
3107 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3108 the best matching operator returned by find_overload_match is an
3109 xmethod.
3110 * valops.c: #include "extension.h".
3111 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3112 Return void. The list of matching source methods is returned in
3113 "fn_list" and a vector of matching debug method workers is
3114 returned in "xm_worker_vec". Update all callers.
3115 (value_find_oload_method_list): Likewise.
3116 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3117 non-NULL, then the index of the best matching method in this
3118 vector is returned. Update all callers.
3119 (find_overload_match): Include xmethods while performing overload
3120 resolution.
3121
e81e7f5e
SC
31222014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3123
3124 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3125 * extension-priv.h (struct extension_language_ops): Add the
3126 xmethod interface.
3127 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3128 get_matching_xmethod_workers, get_xmethod_argtypes,
3129 invoke_xmethod, free_xmethod_worker,
3130 free_xmethod_worker_vec): New functions.
3131 * extension.h: #include "common/vec.h".
3132 New function declarations.
3133 (struct xmethod_worker): New struct.
3134 (VEC (xmethod_worker_ptr)): New vector type.
3135 (xmethod_worker_ptr): New typedef.
3136 (xmethod_worker_vec): Likewise.
3137 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3138 builtin_type.
3139 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3140 (struct builtin_type): New field "xmethod".
3141 * valarith.c (value_ptradd): Assert that the value argument is not
3142 lval_xcallable.
3143 * valops.c (value_must_coerce_to_target): Return 0 for
3144 lval_xcallable values.
3145 * value.c (struct value): New field XM_WORKER in the field
3146 LOCATION.
3147 (value_address, value_raw_address): Return 0 for lval_xcallable
3148 values.
3149 (set_value_address): Assert that the value is not an
3150 lval_xcallable.
3151 (value_free): Free the associated xmethod worker when freeing
3152 lval_xcallable values.
3153 (set_value_component_location): Assert that the WHOLE value is not
3154 lval_xcallable.
3155 (value_of_xmethod, call_xmethod): New functions.
3156 * value.h: Declare "struct xmethod_worker".
3157 Declare new functions value_of_xmethod, call_xmethod.
3158
ef370185
JB
31592014-06-03 Joel Brobecker <brobecker@adacore.com>
3160 Pedro Alves <palves@redhat.com>
3161
3162 PR breakpoints/17000
3163 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3164 New function, extracted from software_breakpoint_inserted_here_p.
3165 (software_breakpoint_inserted_here_p): Replace factored out code
3166 by call to find_non_raw_software_breakpoint_inserted_here.
3167 (bp_target_info_copy_insertion_state): New function.
3168 (bkpt_insert_location): Handle the case of a single-step
3169 breakpoint already inserted at the same address.
3170 (bkpt_remove_location): Handle the case of a single-step
3171 breakpoint still inserted at the same address.
3172 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3173 breakpoint already inserted at the same address.
3174 (deprecated_remove_raw_breakpoint): Handle the case of a
3175 non-raw breakpoint still inserted at the same address.
3176 (find_single_step_breakpoint): New function, extracted from
3177 single_step_breakpoint_inserted_here_p.
3178 (find_single_step_breakpoint): New function,
3179 factored out from single_step_breakpoint_inserted_here_p.
3180 (single_step_breakpoint_inserted_here_p): Reimplement.
3181
1e2ccb61
BM
31822014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3183
3184 Pushed by Joel Brobecker <brobecker@adacore.com>
3185 * source.c (show_substitute_path_command): Fix display of matching
3186 substitution rules.
3187
d3448d85
GB
31882014-06-03 Gary Benson <gbenson@redhat.com>
3189
3190 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3191
06eb1586
DE
31922014-06-02 Doug Evans <xdje42@gmail.com>
3193
3194 Add parameter support for Guile.
3195 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3196 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3197 (scm-param.o): New rule.
3198 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3199 (gdbscm_misc_error): Declare.
3200 (gdbscm_canonicalize_command_name): Declare.
3201 (gdbscm_scm_to_host_string): Declare.
3202 (gdbscm_scm_from_host_string): Declare.
3203 (gdbscm_initialize_parameters): Declare.
3204 * guile/guile.c (initialize_gdb_module): Call
3205 gdbscm_initialize_parameters.
3206 * guile/lib/gdb.scm: Export parameter symbols.
3207 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3208 cmdscm_canonicalize_name and made public. All callers updated.
3209 * guile/scm-exception.c (gdbscm_misc_error): New function.
3210 * guile/scm-param.c: New file.
3211 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3212 (gdbscm_scm_to_host_string): New function.
3213 (gdbscm_scm_from_host_string): New function.
3214 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3215
e698b8c4
DE
32162014-06-02 Doug Evans <xdje42@gmail.com>
3217
3218 Add command support for Guile.
3219 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3220 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3221 (scm-cmd.o): New rule.
3222 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3223 (gdbscm_user_error_p): Declare.
3224 (gdbscm_parse_command_name): Declare.
3225 (gdbscm_valid_command_class_p): Declare.
3226 (gdbscm_initialize_commands): Declare.
3227 * guile/guile.c (initialize_gdb_module): Call
3228 gdbscm_initialize_commands.
3229 * guile/lib/gdb.scm: Export command symbols.
3230 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3231 (throw-user-error): New function.
3232 * guile/scm-cmd.c: New file.
3233 * guile/scm-exception.c (user_error_symbol): New static global.
3234 (gdbscm_user_error_p): New function.
3235 (gdbscm_initialize_exceptions): Set user_error_symbol.
3236 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3237
fb1f94b0
PM
32382014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3239
3240 * top.c (command_loop): Handle comments here...
3241 (command_line_input): ... not here.
3242
ded03782
DE
32432014-06-02 Doug Evans <xdje42@gmail.com>
3244
3245 Add progspace support for Guile.
3246 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3247 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3248 (scm-progspace.o): New rule.
3249 * guile/guile-internal.h (pspace_smob): New typedef.
3250 (psscm_pspace_smob_pretty_printers): Declare.
3251 (psscm_pspace_smob_from_pspace): Declare.
3252 (psscm_scm_from_pspace): Declare.
3253 * guile/guile.c (initialize_gdb_module): Call
3254 gdbscm_initialize_pspaces.
3255 * guile/lib/gdb.scm: Export progspace symbols.
3256 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3257 support.
3258 (append-pretty-printer!): Ditto.
3259 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3260 Implement.
3261 * guile/scm-progspace.c: New file.
3262
397998fc
AM
32632014-06-03 Alan Modra <amodra@gmail.com>
3264
3265 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3266 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3267
6aa5f3a6
DE
32682014-06-02 Doug Evans <dje@google.com>
3269
3270 Add support for skeletonless type units.
3271 * dwarf2read.c (struct dwarf2_per_objfile): New member
3272 n_allocated_type_units.
3273 (struct dwarf2_per_objfile) <tu_stats>: New member
3274 nr_all_type_units_reallocs.
3275 (create_signatured_type_table_from_index): Initialize
3276 n_allocated_type_units
3277 (create_all_type_units): Ditto.
3278 (add_type_unit): Move up in file. New arg slot.
3279 All callers updated. Increase space for all_type_units more
3280 efficiently.
3281 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3282 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3283 (lookup_dwp_signatured_type): Ditto.
3284 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3285 All callers updated.
3286 (build_type_psymtabs_1): Leave type_unit_groups as
3287 NULL if no TUs present.
3288 (print_tu_stats): New function.
3289 (process_skeletonless_type_unit): New function.
3290 (process_dwo_file_for_skeletonless_type_units): New
3291 function.
3292 (process_skeletonless_type_units): New function.
3293 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3294 Call print tu_stats if debugging enabled.
3295
41fac0cf
PA
32962014-06-02 Pedro Alves <palves@redhat.com>
3297
3298 * breakpoint.c (build_target_command_list): Don't build a command
3299 list if we have any duplicate location that isn't a dprintf.
3300
cd1608cc
PA
33012014-06-02 Pedro Alves <palves@redhat.com>
3302
3303 * breakpoint.c (dprintf_breakpoint_hit): New function.
3304 (initialize_breakpoint_ops): Install it as dprintf's
3305 breakpoint_hit method.
3306
486ef3b9
JB
33072014-06-02 Joel Brobecker <brobecker@adacore.com>
3308
3309 * source.c (substitute_path_rule_matches): Simplify using
3310 filename_ncmp instead of FILENAME_CMP.
3311
230cd560
JB
33122014-06-02 Joel Brobecker <brobecker@adacore.com>
3313
3314 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3315
16954d5d
LC
33162014-06-01 Ludovic Courtès <ludo@gnu.org>
3317
3318 * configure.ac: When Guile is available, check for the
3319 availability of 'scm_new_smob'.
3320 * configure, config.h.in: Regenerate.
3321 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3322 function.
3323
53e8a631
AB
33242014-05-30 Andrew Burgess <aburgess@broadcom.com>
3325
3326 * frame.c (struct frame_info): Add stop_string field.
3327 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3328 (get_prev_frame_always): Old content moved into
3329 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3330 TRY_CATCH, handle MEMORY_ERROR exceptions.
3331 (frame_stop_reason_string): New function definition.
3332 * frame.h (unwind_stop_reason_to_string): Extend comment to
3333 mention frame_stop_reason_string.
3334 (frame_stop_reason_string): New function declaration.
3335 * stack.c (frame_info): Switch to frame_stop_reason_string.
3336 (backtrace_command_1): Switch to frame_stop_reason_string.
3337 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3338 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3339 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3340
70e38b8e
AB
33412014-05-30 Andrew Burgess <aburgess@broadcom.com>
3342
3343 * frame.c (frame_stop_reason_string): Rename to ...
3344 (unwind_stop_reason_to_string): this.
3345 * frame.h (frame_stop_reason_string): Rename to ...
3346 (unwind_stop_reason_to_string): this.
3347 * stack.c (frame_info): Update call to frame_stop_reason_string.
3348 (backtrace_command_1): Likewise.
3349 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3350 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3351
938f0e2f
AB
33522014-05-30 Andrew Burgess <aburgess@broadcom.com>
3353
3354 * frame.c (remove_prev_frame): New function.
3355 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3356 remove_prev_frame.
3357
a09dd441
PA
33582014-05-29 Pedro Alves <palves@redhat.com>
3359
3360 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3361 and make it const. When a single-step decays to a continue,
3362 clear 'step', not 'hw_step'. Pass whether the caller wanted
3363 to step to user_visible_resume_ptid, not what we ask the
3364 target to do.
3365
bdc36728
PA
33662014-05-29 Pedro Alves <palves@redhat.com>
3367
3368 * infrun.c (process_event_stop_test, handle_step_into_function)
3369 (handle_step_into_function_backward): Adjust.
3370 Don't set the even thread's stop_step and call stop_waiting before
3371 calling end_stepping_range. Instead do that ...
3372 (end_stepping_range): ... here. Take an ecs pointer parameter.
3373
22bcd14b
PA
33742014-05-29 Pedro Alves <palves@redhat.com>
3375
3376 * infrun.c (stop_stepping): Rename to ...
3377 (stop_waiting): ... this.
3378 (proceed): Update comment.
3379 (process_event_stop_test, handle_inferior_event)
3380 (handle_signal_stop, handle_step_into_function)
3381 (handle_step_into_function_backward): Update.
3382
4ae57c05
PA
33832014-05-29 Pedro Alves <palves@redhat.com>
3384
3385 * infcall.c (run_inferior_call): Don't check whether the current
3386 thread is running after the proceed call.
3387
329ea579
PA
33882014-05-29 Pedro Alves <palves@redhat.com>
3389 Tom Tromey <tromey@redhat.com>
3390
3391 * NEWS: Mention "maint set target-async", "set mi-async", and that
3392 background execution commands are now always available.
3393 * target.h (target_async_permitted): Update comment.
3394 * target.c (target_async_permitted, target_async_permitted_1):
3395 Default to 1.
3396 (set_target_async_command): Rename to ...
3397 (maint_set_target_async_command): ... this.
3398 (show_target_async_command): Rename to ...
3399 (maint_show_target_async_command): ... this.
3400 (_initialize_target): Adjust.
3401 * infcmd.c (prepare_execution_command): Make extern.
3402 * inferior.h (prepare_execution_command): Declare.
3403 * infrun.c (set_observer_mode): Leave target async alone.
3404 * mi/mi-interp.c (mi_interpreter_init): Install
3405 mi_on_sync_execution_done as sync_execution_done observer.
3406 (mi_on_sync_execution_done): New function.
3407 (mi_execute_command_input_handler): Don't print the prompt if we
3408 just started a synchronous command with an async target.
3409 (mi_on_resume): Check sync_execution before printing prompt.
3410 * mi/mi-main.h (mi_async_p): Declare.
3411 * mi/mi-main.c: Include gdbcmd.h.
3412 (mi_async_p): New function.
3413 (mi_async, mi_async_1): New globals.
3414 (set_mi_async_command, show_mi_async_command, mi_async): New
3415 functions.
3416 (exec_continue): Call prepare_execution_command.
3417 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3418 (mi_execute_async_cli_command): Use mi_async_p.
3419 (_initialize_mi_main): Install "set mi-async". Make
3420 "target-async" a deprecated alias.
3421
92bcb5f9
PA
34222014-05-29 Pedro Alves <palves@redhat.com>
3423
3424 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3425 (_initialize_cli_interp): Adjust.
3426 * event-loop.c: Include "observer.h".
3427 (start_event_loop): Notify 'command_error' observers instead of
3428 calling display_gdb_prompt. Remove FIXME comment.
3429 * event-top.c (display_gdb_prompt): Remove call into the
3430 interpreters.
3431 * inf-loop.c: Include "observer.h".
3432 (inferior_event_handler): Notify 'command_error' observers instead
3433 of calling display_gdb_prompt.
3434 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3435 observers instead of calling display_gdb_prompt.
3436 * interps.c (interp_set): Don't call display_gdb_prompt.
3437 (current_interp_display_prompt_p): Delete.
3438 * interps.h (interp_prompt_p): Delete declaration.
3439 (interp_prompt_p_ftype): Delete.
3440 (struct interp_procs) <prompt_proc_p>: Delete field.
3441 (current_interp_display_prompt_p): Delete declaration.
3442 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3443 (_initialize_mi_interp): Adjust.
3444 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3445 'command_error' observers.
3446 (tui_on_sync_execution_done, tui_on_command_error): New
3447 functions.
3448 (tui_display_prompt_p): Delete.
3449 (_initialize_tui_interp): Adjust.
3450
fd664c91
PA
34512014-05-29 Pedro Alves <palves@redhat.com>
3452
3453 PR gdb/13860
3454 * cli/cli-interp.c: Include infrun.h and observer.h.
3455 (cli_uiout, cli_interp): New globals.
3456 (cli_on_signal_received, cli_on_end_stepping_range)
3457 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3458 functions.
3459 (cli_interpreter_init): Install them as 'end_stepping_range',
3460 'signal_received' 'signal_exited', 'exited' and 'no_history'
3461 observers.
3462 (_initialize_cli_interp): Remove cli_interp local.
3463 * infrun.c (handle_inferior_event): Call the several stop reason
3464 observers instead of printing the stop reason directly.
3465 (end_stepping_range): New function.
3466 (print_end_stepping_range_reason, print_signal_exited_reason)
3467 (print_exited_reason, print_signal_received_reason)
3468 (print_no_history_reason): Make static, and add an uiout
3469 parameter. Print to that instead of to CURRENT_UIOUT.
3470 * infrun.h (print_end_stepping_range_reason)
3471 (print_signal_exited_reason, print_exited_reason)
3472 (print_signal_received_reason print_no_history_reason): New
3473 declarations.
3474 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3475 'mi_uiout'.
3476 <cli_uiout>: New field.
3477 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3478 uiout for CLI output. Install 'signal_received',
3479 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3480 observers.
3481 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3482 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3483 (mi_on_no_history): New functions.
3484 (ui_out_free_cleanup): Delete function.
3485 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3486 instead use the one already stored in the MI interpreter data.
3487 (mi_ui_out): Adjust.
3488 * tui/tui-interp.c: Include infrun.h and observer.h.
3489 (tui_interp): New global.
3490 (tui_on_signal_received, tui_on_end_stepping_range)
3491 (tui_on_signal_exited, tui_on_exited)
3492 (tui_on_no_history): New functions.
3493 (tui_init): Install them as 'end_stepping_range',
3494 'signal_received' 'signal_exited', 'exited' and 'no_history'
3495 observers.
3496 (_initialize_tui_interp): Delete tui_interp local.
3497
8817a6f2
PA
34982014-05-29 Pedro Alves <palves@redhat.com>
3499
3500 PR gdb/15713
3501 * linux-nat.c (linux_nat_resume_callback): Rename the second
3502 parameter to 'except'. Skip LP if it points to EXCEPT.
3503 (linux_nat_resume): Don't mark the event lwp as not stopped
3504 before resuming sibling lwps. Instead ask
3505 linux_nat_resume_callback to skip the event lwp. Mark it as not
3506 stopped after actually resuming it.
3507 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3508 resuming it.
3509 (wait_lwp): Mark the lwp as stopped here.
3510 (stop_wait_callback): Mark the lwp as not stopped right after
3511 resuming it. Don't mark lwps as stopped here.
3512 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3513 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3514
251bde03
PA
35152014-05-29 Pedro Alves <palves@redhat.com>
3516
3517 PR PR15693
3518 * infrun.c (resume): Determine how much to resume depending on
3519 whether the caller wanted a step, not whether we can hardware step
3520 the target. Mark all threads that we intend to run as running,
3521 unless we're calling an inferior function.
3522 (normal_stop): If the thread is running an infcall, don't finish
3523 thread state.
3524 * target.c (target_resume): Don't mark threads as running here.
3525
7f3c0343
JB
35262014-05-28 Joel Brobecker <brobecker@adacore.com>
3527
3528 * serial.c (_initialize_serial): Remove support for
3529 the "set remotebaud" and "show remotebaud" commands.
3530 * NEWS: Add entry documenting the removal of that command.
3531
ee34b3f9
YQ
35322014-05-28 Yao Qi <yao@codesourcery.com>
3533
3534 * charset.c: Fix typo in comments.
3535
add6c04d
GB
35362014-05-27 Gary Benson <gbenson@redhat.com>
3537
3538 * utils.c (internal_vproblem): Prompt for a bug report.
3539
92c48fc5
AW
35402014-05-26 Andy Wingo <wingo@igalia.com>
3541
3542 * guile/scm-arch.c (arscm_mark_arch_smob):
3543 * guile/scm-block.c (bkscm_mark_block_smob)
3544 (bkscm_mark_block_syms_progress_smob):
3545 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3546 * guile/scm-exception.c (exscm_mark_exception_smob):
3547 * guile/scm-frame.c (frscm_mark_frame_smob):
3548 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3549 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3550 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3551 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3552 (ppscm_mark_pretty_printer_worker_smob):
3553 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3554 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3555 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3556 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3557 mark functions.
3558 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3559 function.
3560
b2715b27
AW
35612014-05-26 Andy Wingo <wingo@igalia.com>
3562 Doug Evans <xdje42@gmail.com>
3563
3564 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3565 empty_base_class. All uses updated.
3566 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3567 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3568 Adapt all callers.
3569 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3570 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3571 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3572 (gdbscm_gsmob_has_property_p, add_property_name)
3573 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3574 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3575 (gdb-object-has-property?, gdb-object-properties): Remove.
3576 (gdb-object-kind): Renamed from gsmob-kind.
3577
214ab2da
AW
35782014-05-26 Andy Wingo <wingo@igalia.com>
3579
3580 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3581 * configure: Regenerate.
3582
589fdceb
MM
35832014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3584
3585 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3586
67b5c0c1
MM
35872014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3588
3589 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3590 (replay_memory_access_read_only, replay_memory_access_read_write)
3591 (replay_memory_access_types, replay_memory_access)
3592 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3593 (cmd_set_record_btrace, cmd_show_record_btrace)
3594 (cmd_show_replay_memory_access): New.
3595 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3596 (record_btrace_remove_breakpoint): Replace
3597 record_btrace_allow_memory_access with replay_memory_access.
3598 (_initialize_record_btrace): Add commands.
3599 * NEWS: Announce it.
3600
036cd381
RR
36012014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3602
3603 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3604
c77c1e42
RR
36052014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3606
3607 * MAINTAINERS (Write After Approval): Move self back from
3608 paper trail.
3609
45741a9c
PA
36102014-05-22 Pedro Alves <palves@redhat.com>
3611
3612 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3613 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3614 (disable_randomization, enum exec_direction_kind)
3615 (execution_direction, stop_registers, start_remote)
3616 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3617 (wait_for_inferior, normal_stop, get_last_target_status)
3618 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3619 (insert_step_resume_breakpoint_at_sal)
3620 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3621 (set_step_info, print_stop_event, signal_stop_state)
3622 (signal_print_state, signal_pass_state, signal_stop_update)
3623 (signal_print_update, signal_pass_update)
3624 (update_signals_program_target, clear_exit_convenience_vars)
3625 (displaced_step_dump_bytes, update_observer_mode)
3626 (signal_catch_update, gdb_signal_from_command): Move
3627 declarations ...
3628 * infrun.h: ... to this new file.
3629 * amd64-tdep.c: Include infrun.h.
3630 * annotate.c: Include infrun.h.
3631 * arch-utils.c: Include infrun.h.
3632 * arm-linux-tdep.c: Include infrun.h.
3633 * arm-tdep.c: Include infrun.h.
3634 * break-catch-sig.c: Include infrun.h.
3635 * breakpoint.c: Include infrun.h.
3636 * common/agent.c: Include infrun.h instead of inferior.h.
3637 * corelow.c: Include infrun.h.
3638 * event-top.c: Include infrun.h.
3639 * go32-nat.c: Include infrun.h.
3640 * i386-tdep.c: Include infrun.h.
3641 * inf-loop.c: Include infrun.h.
3642 * infcall.c: Include infrun.h.
3643 * infcmd.c: Include infrun.h.
3644 * infrun.c: Include infrun.h.
3645 * linux-fork.c: Include infrun.h.
3646 * linux-nat.c: Include infrun.h.
3647 * linux-thread-db.c: Include infrun.h.
3648 * monitor.c: Include infrun.h.
3649 * nto-tdep.c: Include infrun.h.
3650 * procfs.c: Include infrun.h.
3651 * record-btrace.c: Include infrun.h.
3652 * record-full.c: Include infrun.h.
3653 * remote-m32r-sdi.c: Include infrun.h.
3654 * remote-mips.c: Include infrun.h.
3655 * remote-notif.c: Include infrun.h.
3656 * remote-sim.c: Include infrun.h.
3657 * remote.c: Include infrun.h.
3658 * reverse.c: Include infrun.h.
3659 * rs6000-tdep.c: Include infrun.h.
3660 * s390-linux-tdep.c: Include infrun.h.
3661 * solib-irix.c: Include infrun.h.
3662 * solib-osf.c: Include infrun.h.
3663 * solib-svr4.c: Include infrun.h.
3664 * target.c: Include infrun.h.
3665 * top.c: Include infrun.h.
3666 * windows-nat.c: Include infrun.h.
3667 * mi/mi-interp.c: Include infrun.h.
3668 * mi/mi-main.c: Include infrun.h.
3669 * python/py-threadevent.c: Include infrun.h.
3670
98eb56a4
PA
36712014-05-22 Pedro Alves <palves@redhat.com>
3672
3673 * infrun.c (handle_inferior_event): Store the exit code for
3674 --return-child-result here, instead of ...
3675 (print_exited_reason): ... here.
3676
17b2616c
PA
36772014-05-21 Pedro Alves <palves@redhat.com>
3678
3679 PR gdb/13860
3680 * gdbthread.h (struct thread_control_state): New field
3681 `command_interp'.
3682 * infrun.c (follow_fork): Copy the new thread control field to the
3683 child fork thread.
3684 (clear_proceed_status_thread): Clear the new thread control field.
3685 (proceed): Set the new thread control field.
3686 * interps.h (command_interp): Declare.
3687 * interps.c (command_interpreter): New global.
3688 (command_interp): New function.
3689 (interp_exec): Set `command_interpreter' while here.
3690 * cli-out.c (cli_uiout_dtor): New function.
3691 (cli_ui_out_impl): Install it.
3692 * mi/mi-interp.c: Include cli-out.h.
3693 (mi_cmd_interpreter_exec): Add comment.
3694 (restore_current_uiout_cleanup): New function.
3695 (ui_out_free_cleanup): New function.
3696 (mi_on_normal_stop): If finishing an execution command started by
3697 a CLI command, or any kind of breakpoint-like event triggered,
3698 print the stop event to the output (CLI) stream.
3699 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3700
5166082f
PA
37012014-05-21 Pedro Alves <palves@redhat.com>
3702
3703 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3704 current source line having changed.
3705 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3706 * infrun.c (normal_stop): Adjust call to
3707 set_current_sal_from_frame.
3708 * source.c (clear_lines_listed_range): New function.
3709 (set_current_source_symtab_and_line, identify_source_line): Clear
3710 the lines listed range.
3711 (line_info): Handle the first "info line" after the current source
3712 line having changed.
3713 * stack.c (print_stack_frame): Remove center handling.
3714 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3715 center sal.line.
3716
c1ee2fb3
PA
37172014-05-21 Pedro Alves <palves@redhat.com>
3718
3719 * inf-child.c (inf_child_mourn_inferior): New function.
3720 * inf-child.h (inf_child_mourn_inferior): New declaration.
3721 * darwin-nat.c (darwin_mourn_inferior): Use
3722 inf_child_mourn_inferior.
3723 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3724 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3725 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3726 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3727 * windows-nat.c (windows_mourn_inferior): Likewise.
3728
5c6d4fb2
DE
37292014-05-21 Doug Evans <xdje42@gmail.com>
3730
250748cb 3731 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3732
4a2722c5
DE
37332014-05-21 Doug Evans <xdje42@gmail.com>
3734
17292b30 3735 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3736 (gdbscm_out_of_range_error): Ditto.
3737 (gdbscm_memory_error): Ditto.
250748cb
DE
3738 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3739 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3740 (gdbscm_out_of_range_error): Update.
3741 (gdbscm_memory_error): Update.
3742 (gdbscm_scm_to_target_string_unsafe): Delete.
3743
6a3cb8e8
PA
37442014-05-21 Pedro Alves <palves@redhat.com>
3745
3746 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3747 globals.
3748 (inf_child_open_target): New function.
3749 (inf_child_open): Use inf_child_open_target to push the target
3750 instead of erroring out.
3751 (inf_child_disconnect, inf_child_close)
3752 (inf_child_maybe_unpush_target): New functions.
3753 (inf_child_target): Install inf_child_disconnect and
3754 inf_child_close. Store a pointer to the returned object.
3755 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3756 declarations.
3757 * target.c (auto_connect_native_target): New global.
3758 (show_default_run_target): New function.
3759 (find_default_run_target): Return NULL if automatically connecting
3760 to the native target is disabled.
3761 (_initialize_target): Install set/show auto-connect-native-target.
3762 * NEWS: Mention "set auto-connect-native-target", and "target
3763 native".
3764 * linux-nat.c (super_close): New global.
3765 (linux_nat_close): Call super_close.
3766 (linux_nat_add_target): Store a pointer to the base class's
3767 to_close method.
3768 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3769 inf_child_maybe_unpush.
3770 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3771 already pushed.
3772 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3773 the inferior. Use inf_child_maybe_unpush_target.
3774 (inf_ttrace_attach): Don't push the target if it is already
3775 pushed.
3776 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3777 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3778 after mourning the inferior. Use inf_child_maybe_unpush_target.
3779 (darwin_attach_pid): Don't push the target if it is already
3780 pushed.
3781 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3782 mourning the inferior. Use inf_child_maybe_unpush_target.
3783 (gnu_detach): Use inf_child_maybe_unpush_target.
3784 * go32-nat.c (go32_create_inferior): Don't push the target if it
3785 is already pushed.
3786 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3787 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3788 (procfs_open): Rename to ...
3789 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3790 comments. Can target_preopen before changing node. Call
3791 inf_child_open_target to push the target explicitly.
3792 (procfs_attach): Don't push the target if it is already pushed.
3793 (procfs_detach): Use inf_child_maybe_unpush_target.
3794 (procfs_create_inferior): Don't push the target if it is already
3795 pushed.
3796 (nto_native_ops): New global.
3797 (procfs_open): Reimplement.
3798 (procfs_native_open): New function.
3799 (init_procfs_targets): Install procfs_native_open as to_open of
3800 "target native". Store a pointer to the "native" target in
3801 nto_native_ops.
3802 * procfs.c (procfs_attach): Don't push the target if it is already
3803 pushed.
3804 (procfs_detach): Use inf_child_maybe_unpush_target.
3805 (procfs_mourn_inferior): Only unpush the target after mourning the
3806 inferior. Use inf_child_maybe_unpush_target.
3807 (procfs_init_inferior): Don't push the target if it is already
3808 pushed.
3809 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3810 if it is already pushed.
3811
930ee1b1
PA
38122014-05-21 Pedro Alves <palves@redhat.com>
3813
3814 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3815 and "procfs" targets are now called "native" instead.
3816
1f5d1b13
PA
38172014-05-21 Pedro Alves <palves@redhat.com>
3818
3819 * go32-nat.c (go32_open): Delete.
3820 (go32_target): Don't override the to_open method.
3821
132f8e03
PA
38222014-05-21 Pedro Alves <palves@redhat.com>
3823
3824 * nto-procfs.c (procfs_can_run): New function.
3825 (nto_procfs_ops): New global.
3826 (init_procfs_targets): New, based on procfs_target. Install
3827 "target native" in addition to "target procfs".
3828 (_initialize_procfs): Call init_procfs_targets instead of adding
3829 the target here.
3830
03c136c3
PA
38312014-05-21 Pedro Alves <palves@redhat.com>
3832
3833 * windows-nat.c (windows_target): Don't override to_shortname,
3834 to_longname or to_doc.
3835
a635d0f3
PA
38362014-05-21 Pedro Alves <palves@redhat.com>
3837
3838 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3839 to_doc.
3840
4f9b5133
PA
38412014-05-21 Pedro Alves <palves@redhat.com>
3842
3843 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3844 to_shortname, to_longname or to_doc.
3845
bc85afde
PA
38462014-05-21 Pedro Alves <palves@redhat.com>
3847
3848 * go32-nat.c (go32_target): Don't override to_shortname,
3849 to_longname or to_doc.
3850
4ebfc96e
PA
38512014-05-21 Pedro Alves <palves@redhat.com>
3852
3853 * inf-child.c (inf_child_open): Remove mention of "child".
3854 (inf_child_target): Rename target to "native" instead of "child".
3855
2648dfed
AA
38562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3857
3858 * Makefile.in (SFILES): Delete "regset.c".
3859 (COMMON_OBS): Delete "regset.o".
3860 * regset.c: Remove.
3861 * regset.h (regset_alloc): Delete prototype.
3862
b13feb94
AA
38632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3864
3865 * sparc-linux-tdep.c (sparc32_linux_gregset)
3866 (sparc32_linux_fpregset): New static regset structures.
3867 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3868 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3869 'fpregset' fields.
3870 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3871 (sparc64_linux_fpregset): New static regset structures.
3872 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3873 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3874 New static regset structures.
3875 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3876 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3877 New static regset structures.
3878 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3879 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3880 New static regset structures.
3881 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3882 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3883 New static regset structures.
3884 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3885
b4fd25c9
AA
38862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3887
3888 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3889 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3890 register maps ("regmaps") from "*regset" to "*regmap". Do this
3891 for all regmap types and variables.
3892 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3893 (sparc32_linux_supply_core_gregset)
3894 (sparc32_linux_collect_core_gregset)
3895 (sparc32_linux_supply_core_fpregset)
3896 (sparc32_linux_collect_core_fpregset): Likewise.
3897 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3898 (sparc_gregmap, sparc_fpregmap): ... these.
3899 (sparc_supply_gregset, sparc_collect_gregset)
3900 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3901 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3902 (_initialize_sparc_nat): Rename regmaps.
3903 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3904 (sparc_gregmap, sparc_fpregmap): ... these.
3905 (sparc_supply_gregset, sparc_collect_gregset)
3906 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3907 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3908 Rename macros to...
3909 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3910 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3911 Likewise.
3912 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3913 Rename to...
3914 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3915 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3916 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3917 regmaps.
3918 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3919 (sparc32_bsd_fpregset): Rename to...
3920 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3921 (sparc32_bsd_fpregmap): ... these.
3922 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3923 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3924 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3925 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3926 (struct sparc_gregmap, struct sparc_fpregmap)
3927 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3928 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3929 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3930 (sparc32_supply_regset, sparc32_collect_gregset)
3931 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3932 prototypes.
3933 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3934 (sparc64_linux_ptrace_gregmap): ... this.
3935 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3936 (_initialize_sparc64_linux_nat): Rename regmaps.
3937 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3938 (sparc64_linux_core_gregmap): ... this.
3939 (sparc64_linux_supply_core_gregset)
3940 (sparc64_linux_collect_core_gregset)
3941 (sparc64_linux_supply_core_fpregset)
3942 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3943 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3944 (sparc64_sol2_fpregset): Rename to...
3945 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3946 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3947 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3948 regmaps.
3949 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3950 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3951 (sparc64_bsd_fpregset): Rename to...
3952 (struct sparc_gregmap, sparc64_sol2_gregmap)
3953 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3954 (sparc64_bsd_fpregmap): ... these.
3955 (sparc64_supply_gregset, sparc64_collect_gregset)
3956 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3957 prototypes.
3958 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3959 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3960 (sparc64fbsd_gregmap): ... this.
3961 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3962 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3963 Rename regmaps.
3964 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3965 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3966 (sparc64nbsd_collect_fpregset): Likewise.
3967 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3968 (sparc64nbsd_gregmap): ... this.
3969 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3970 regmaps.
3971 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3972 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3973 (sparc64obsd_gregmap): ... this.
3974 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3975 regmaps.
3976 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3977 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3978 (sparc32nbsd_gregmap): ... this.
3979 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3980 regmaps.
3981
8fea3224
AA
39822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3983
3984 * score-tdep.c (score7_linux_gregset): New static regset
3985 structure.
3986 (score7_linux_regset_from_core_section): Remove dynamic regset
3987 allocation.
3988 (score_gdbarch_init): Drop allocation of tdep structure.
3989 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3990
24534243
AA
39912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3992
3993 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3994 regset structures.
3995 (am33_regset_from_core_section): Remove dynamic regset
3996 allocations.
3997
b7195f27
AA
39982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3999
4000 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4001 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4002 structures.
4003 (mips_linux_regset_from_core_section): Remove dynamic regset
4004 allocations.
4005 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4006 'gregset64', 'fpregset', and 'fpregset64'.
4007 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4008 deleted tdep fields.
4009
ecc37a5a
AA
40102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4011
4012 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4013 regset structures.
4014 (amd64_regset_from_core_section): Remove dynamic regset
4015 allocations.
4016 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4017 structure.
4018 (amd64obsd_regset_from_core_section): Remove dynamic regset
4019 allocation.
4020 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4021 Likewise.
4022 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4023 x86-common regset supply function.
4024 * i386-tdep.c (i386_collect_gregset): Make static.
4025 (i386_gregset): New global regset structure.
4026 (i386_fpregset, i386_xstateregset): New static regset structures.
4027 (i386_regset_from_core_section): Remove dynamic regset
4028 allocations.
4029 (i386_gdbarch_init): Remove initialization of tdep fields
4030 'gregset', 'fpregset', and 'xstateregset'.
4031 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4032 'fpregset', and 'xstateregset'.
4033 (i386_collect_gregset): Remove prototype.
4034 (i386_gregset): New declaration.
4035 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4036 structure.
4037 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4038 allocation.
4039
b7611c43
AA
40402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4041
4042 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4043 (arm_linux_vfpregset): New static regset structures.
4044 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4045 regset structures.
4046 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4047 and 'vfpregset' fields.
4048
a069a2bd
AA
40492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4050
4051 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4052 (aarch64_linux_fpregset): New static regset structures.
4053 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4054 of regset structures.
4055 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4056 'fpregset' fields.
4057
09424cff
AA
40582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4059
4060 * regset.h (struct regset): Remove gdbarch field.
4061 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4062 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4063 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4064 Likewise.
4065 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4066 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4067 (ppc32_linux_vsxregset): Likewise.
4068 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4069 via the regcache instead of the regset.
4070 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4071 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4072 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4073 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4074 Likewise.
4075
3ca7dae4
AA
40762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4077
4078 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4079 Constify structures.
4080 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4081 (alphanbsd_aout_gregset): Likewise.
4082 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4083 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4084 Likewise.
4085 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4086 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4087 Likewise.
4088 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4089 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4090 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4091 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4092 * m88k-tdep.c (m88k_gregset): Likewise.
4093 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4094 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4095 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4096 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4097 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4098 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4099 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4100 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4101 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4102 Likewise.
4103 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4104 * sh-tdep.h (sh_corefile_gregset): Likewise.
4105 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4106 * vax-tdep.c (vax_gregset): Likewise.
4107
5876f503
JK
41082014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4109
4110 Fix TLS access for -static -pthread.
4111 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4112 (try_thread_db_load_1): Initialize it.
4113 (thread_db_get_thread_local_address): Call it if LM is zero.
4114 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4115 * target.h (struct target_ops) (to_get_thread_local_address): Add
4116 load_module_addr comment.
4117
0256a6ac
PA
41182014-05-21 Pedro Alves <palves@redhat.com>
4119
4120 * dcache.c (dcache_read_memory_partial): If reading the cache line
4121 fails, fallback to reading just the memory the caller wanted.
4122
227533ac
DE
41232014-05-20 Doug Evans <dje@google.com>
4124
4125 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4126 instead of get_current_arch.
4127
936d2992
PA
41282014-05-20 Pedro Alves <palves@redhat.com>
4129
4130 * NEWS: Mention that compare-sections now works with all targets.
4131
4132 * remote.c (PACKET_qCRC): New enum value.
4133 (remote_verify_memory): Don't send qCRC if the target has no
4134 execution. Use packet_support/packet_ok. If the target doesn't
4135 support the qCRC packet, fallback to a deep memory copy.
4136 (compare_sections_command): Say "target image" instead of "remote
4137 executable".
4138 (_initialize_remote): Add PACKET_qCRC to the list of config
4139 packets that have no associated command. Extend comment.
4140 * target.c (simple_verify_memory, default_verify_memory): New
4141 function.
4142 * target.h (struct target_ops) <to_verify_memory>: Default to
4143 default_verify_memory.
4144 (simple_verify_memory): New declaration.
4145 * target-delegates.c: Regenerate.
4146
e59fa00f
MM
41472014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4148
4149 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4150
f2205de0
HZ
41512014-05-20 Hui Zhu <hui@codesourcery.com>
4152 Yao Qi <yao@codesourcery.com>
4153
4154 PR backtrace/16558
4155 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4156 and change address of sp and pc.
4157
c4e54771
TT
41582014-05-19 Tom Tromey <tromey@redhat.com>
4159
4160 * gdbtypes.c (rank_function): Use XNEWVEC.
4161 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4162
73051182
DE
41632014-05-19 Doug Evans <dje@google.com>
4164
4165 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4166 build_type_unit_groups and moved closer to only caller. Remove
4167 arguments. All references updated. Remove outdated .gdb_index
4168 comment.
4169 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4170 build_type_psymtabs_1.
4171
8832e7e3
DE
41722014-05-19 Doug Evans <dje@google.com>
4173
4174 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4175 n_type_unit_groups, all_type_unit_groups. All uses removed.
4176 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4177 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4178 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4179 (add_type_unit_group_to_table): Delete.
4180
cd8ae15e
DE
41812014-05-19 Doug Evans <dje@google.com>
4182
4183 * eval.c (evaluate_subexp_standard): Add some comments.
4184
08f4850b
DE
41852014-05-17 Doug Evans <xdje42@gmail.com>
4186
4187 * progspace.c (remove_program_space): Delete, unused.
4188 * progspace.h (remove_program_space): Ditto.
4189
bed8455c
DE
41902014-05-17 Doug Evans <xdje42@gmail.com>
4191
4192 * inferior.c (prune_inferiors): Fix comment.
4193 (remove_inferior_command): Call prune_program_spaces.
4194
8d551b02
DE
41952014-05-16 Doug Evans <dje@google.com>
4196
4197 New command line option -D.
4198 * NEWS: Mention it.
4199 * main.c (set_gdb_data_directory): New function.
4200 (captured_main): Recognize -D. Flag error for --data-directory "".
4201 Call set_gdb_data_directory.
4202 (print_gdb_help): Print --data-directory, -D.
4203 * main.h (set_gdb_data_directory): Declare.
4204 * top.c (staged_gdb_datadir): New static global.
4205 (set_gdb_datadir): Call set_gdb_data_directory
4206 (show_gdb_datadir): New function.
4207 (init_main): Update init of data-directory parameter.
4208
18848e28
GF
42092014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4210
4211 Import the "dirfd" gnulib module.
4212 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4213 * gnulib/aclocal.m4: Update.
4214 * gnulib/config.in: Update.
4215 * gnulib/configure: Update.
4216 * gnulib/import/Makefile.am: Update.
4217 * gnulib/import/Makefile.in: Update.
4218 * gnulib/import/dirfd.c: New.
4219 * gnulib/import/m4/dirfd.m4: New.
4220 * gnulib/import/m4/gnulib-cache.m4: Update.
4221 * gnulib/import/m4/gnulib-comp.m4: Update.
4222
95c64f92
YQ
42232014-05-16 Pierre Muller <muller@sourceware.org>
4224 Yao Qi <yao@codesourcery.com>
4225
4226 * valprint.c (print_wchar): Move the code on checking whether
4227 W is a printable wide char to the default branch of switch
4228 statement below. Call wchar_printable instead of gdb_iswprint.
4229
cac395ea
TM
42302014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4231
19679eca 4232 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4233 ldr.w and ldrd instructions.
4234
83655187
DE
42352014-05-15 Doug Evans <dje@google.com>
4236
4237 * dwarf2read.c (read_structure_type): Delete outdated comments.
4238
dd756689
TT
42392014-05-14 Tom Tromey <tromey@redhat.com>
4240
4241 * macrocmd.c (print_macro_definition): Reindent.
4242
75ddda77
DE
42432014-05-13 Doug Evans <xdje42@gmail.com>
4244
4245 * python/py-cmd.c (cmdpy_completer): Add comment.
4246 (completers): Make const.
4247
b0f16a3e
SM
42482014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4249
4250 * infrun.c (resume): Remove should_resume (unused). Move up
4251 declaration of resume_ptid.
4252
033c3379
TT
42532014-05-13 Tom Tromey <tromey@redhat.com>
4254
4255 * language.h (unop_type_check): Remove.
4256 (binop_type_check): Don't declare.
4257
9b44a3a5
AA
42582014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4259
4260 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4261 call to regcache_raw_collect.
4262
303a33fa
SM
42632014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4264
4265 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4266 mi_console->quote as the quoting character.
4267
196100a0
SM
42682014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4269
4270 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4271
f989a1c8
TT
42722014-04-29 Tom Tromey <tromey@redhat.com>
4273
4274 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4275 "show debug varobj".
4276
9404b58f
KM
42772014-05-07 Kyle McMartin <kyle@redhat.com>
4278
4279 Pushed by Joel Brobecker <brobecker@adacore.com>.
4280 * aarch64-tdep.c (aarch64_software_single_step): New function.
4281 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4282 with aarch64_software_single_step.
4283
5e49ba57
JB
42842014-05-05 Joel Brobecker <brobecker@adacore.com>
4285
4286 GDB 7.7.1 released.
4287
c888a17d
KS
42882014-05-05 Keith Seitz <keiths@redhat.com>
4289
4290 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4291 variable or history value is successfully parsed.
4292
290a839c
YQ
42932014-05-05 Yao Qi <yao@codesourcery.com>
4294 Pedro Alves <palves@redhat.com>
4295
4296 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4297 address of blocks that intersects the requested range. Trim
4298 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4299 sections.
4300 * ctf.c (ctf_xfer_partial): Likewise.
4301
91256dc2
YQ
43022014-05-05 Yao Qi <yao@codesourcery.com>
4303
4304 * printcmd.c (display_command): Remove the check to
4305 target_has_execution.
4306
07284463
MK
43072014-05-03 Mark Kettenis <kettenis@gnu.org>
4308
4309 * ppcobsd-nat.c: Include "obsd-nat.h".
4310 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4311 add_target.
4312 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4313
30a1e6cc
SDJ
43142014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4315
4316 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4317 and 16-bit signed and unsigned arguments. Update comment.
4318 (stap_parse_probe_arguments): Extend code to handle such
4319 arguments. Use warning instead of complaint to notify about
4320 unrecognized bitness.
4321
f33da99a
SDJ
43222014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4323
4324 PR breakpoints/16889
4325 * stap-probe.c (stap_parse_probe_arguments): Simplify
4326 check for non-prefixed probes (i.e., probes whose
4327 arguments do not start with "N@"). Always set the
4328 argument type to a sane value.
4329
95cf3b38
DT
43302014-05-01 David Taylor <dtaylor@emc.com>
4331
4332 * remote.c (compare_sections_command): Add -r option to compare
4333 all loadable read-only sections.
4334
1cfdf534
SC
43352014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4336
4337 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4338 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4339 Update all callers.
4340 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4341 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4342 Remove unused CORE_ADDR argument. Update all callers.
4343
ca4f7f8b
PA
43442014-04-29 Pedro Alves <palves@redhat.com>
4345
4346 * remote.c (struct packet_config) <detect>: Extend comment.
4347 (add_packet_config_cmd): Don't set the config's detect or support
4348 fields here.
4349 (init_all_packet_configs): Also initialize the config's 'detect'
4350 field.
4351 (reset_all_packet_configs_support): New function.
4352 (remote_open_1): Call reset_all_packet_configs_support instead of
4353 init_all_packet_configs.
4354 (_initialize_remote): Initialize all packet configs. Assert that
4355 all packets have an associated command, except a few known
4356 outliers.
4357
11c1ba78
JB
43582014-04-28 Joel Brobecker <brobecker@adacore.com>
4359
4360 * dwarf2read.c (read_subrange_type): Handle dynamic
4361 DW_AT_lower_bound attributes.
4362
8739bc53
JB
43632014-04-28 Joel Brobecker <brobecker@adacore.com>
4364
4365 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4366 dynamic bounds before computing its upper bound.
4367 (ada_discrete_type_low_bound): Same as above with the lower bound.
4368
6f8a3220
JB
43692014-04-28 Joel Brobecker <brobecker@adacore.com>
4370
4371 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4372 range types. Adjust the array handling implementation to
4373 take advantage of this change.
4374 (resolve_dynamic_range): New function, mostly extracted from
4375 resolve_dynamic_bounds.
4376 (resolve_dynamic_array): New function, mostly extracted from
4377 resolve_dynamic_bounds.
4378 (resolve_dynamic_bounds): Delete.
4379 (resolve_dynamic_type): Reimplement. Add handling of
4380 TYPE_CODE_RANGE types.
4381
4d072ce4
JB
43822014-04-28 Joel Brobecker <brobecker@adacore.com>
4383
4384 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4385 handling of parallel ___XA types.
4386
52865325
JB
43872014-04-28 Joel Brobecker <brobecker@adacore.com>
4388
4389 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4390 unnecessary second call to static_unwrap_type.
4391
433e77fa
HZ
43922014-04-27 Hui Zhu <hui@codesourcery.com>
4393
4394 * stack.c (print_frame_info): Call do_gdb_disassembly with
4395 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4396
b51a69ee
DE
43972014-04-26 Doug Evans <xdje42@gmail.com>
4398
4399 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4400
7ae1a6a6
PA
44012014-04-25 Pedro Alves <palves@redhat.com>
4402
4403 PR server/16255
4404 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4405 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4406 and newline from built string.
4407 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4408 (linux_ptrace_attach_fail_reason): ... this.
4409 * linux-nat.c (linux_nat_attach): Adjust to use
4410 linux_ptrace_attach_fail_reason.
4411
4082afcc
PA
44122014-04-25 Pedro Alves <palves@redhat.com>
4413
4414 * remote.c (struct remote_state): Remove multi_process_aware,
4415 non_stop_aware, cond_tracepoints, cond_breakpoints,
4416 breakpoint_commands, fast_tracepoints, static_tracepoints,
4417 install_in_trace, disconnected_tracing,
4418 enable_disable_tracepoints, string_tracing, and
4419 augmented_libraries_svr4_read fields.
4420 (remote_multi_process_p): Move further below in the file.
4421 (struct packet_config): Add comments.
4422 (update_packet_config): Delete function.
4423 (show_packet_config_cmd): Use packet_config_support.
4424 (add_packet_config_cmd): Use NULL as set callback.
4425 (packet_ok): "set remote foo-packet"-style commands no longer
4426 change config->supported -- adjust.
4427 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4428 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4429 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4430 (PACKET_QNonStop, PACKET_multiprocess_feature)
4431 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4432 (PACKET_DisconnectedTracing_feature)
4433 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4434 (set_remote_protocol_packet_cmd): Delete function.
4435 (packet_config_support, packet_support): New functions.
4436 (set_remote_protocol_Z_packet_cmd): Don't call
4437 update_packet_config.
4438 (remote_query_attached, remote_pass_signals)
4439 (remote_program_signals, remote_threads_info)
4440 (remote_threads_extra_info, remote_start_remote): Use
4441 packet_support.
4442 (remote_start_remote): Use packet_config_support and
4443 packet_support.
4444 (init_all_packet_configs): Set all packets to unknown support,
4445 instead of calling update_packet_config.
4446 (remote_check_symbols): Use packet_support.
4447 (remote_supported_packet): Unconditionally set the packet config's
4448 support status.
4449 (remote_multi_process_feature, remote_non_stop_feature)
4450 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4451 (remote_breakpoint_commands_feature)
4452 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4453 (remote_install_in_trace_feature)
4454 (remote_disconnected_tracing_feature)
4455 (remote_enable_disable_tracepoint_feature)
4456 (remote_string_tracing_feature)
4457 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4458 (remote_protocol_features): Adjust to use remote_supported_packet
4459 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4460 "ConditionalTracepoints", "ConditionalBreakpoints",
4461 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4462 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4463 "EnableDisableTracepoints", and "tracenz".
4464 (remote_query_supported): Use packet_support.
4465 (remote_open_1): Adjust.
4466 (extended_remote_attach_1): Use packet_support. Switch on the
4467 result of packet_ok instead of checking whether the packet ended
4468 up disabled.
4469 (remote_vcont_resume): Use packet_support.
4470 (remote_resume, remote_stop_ns, fetch_register_using_p)
4471 (remote_prepare_to_store, store_register_using_P)
4472 (check_binary_download, remote_write_bytes): Use packet_support.
4473 (remote_vkill): Use packet_support. Switch on the result of
4474 packet_ok instead of checking whether the packet ended up
4475 disabled.
4476 (extended_remote_supports_disable_randomization): Use
4477 packet_support.
4478 (extended_remote_run): Switch on the result of packet_ok instead
4479 of checking whether the packet ended up disabled.
4480 (remote_insert_breakpoint, remote_remove_breakpoint)
4481 (remote_insert_watchpoint, remote_remove_watchpoint)
4482 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4483 packet_support.
4484 (remote_search_memory): Use packet_config_support.
4485 (remote_get_thread_local_address, remote_get_tib_address)
4486 (remote_hostio_send_command, remote_can_execute_reverse): Use
4487 packet_support.
4488 (remote_supports_cond_tracepoints)
4489 (remote_supports_cond_breakpoints)
4490 (remote_supports_fast_tracepoints)
4491 (remote_supports_static_tracepoints)
4492 (remote_supports_install_in_trace)
4493 (remote_supports_enable_disable_tracepoint)
4494 (remote_supports_string_tracing)
4495 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4496 the packet config says the feature is enabled or disabled.
4497 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4498 (remote_get_trace_status): Use packet_support.
4499 (remote_set_disconnected_tracing): Adjust to check whether the
4500 feature is enabled with packet_support.
4501 (remote_set_trace_buffer_size, remote_use_agent)
4502 (remote_can_use_agent, remote_supports_btrace): Use
4503 packet_support.
4504 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4505 Use packet_config_support.
4506 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4507 the packet config says the feature is enabled or disabled.
4508 (set_range_stepping): Use packet_support.
4509
bdb52a22
TT
45102014-04-25 Tom Tromey <tromey@redhat.com>
4511
4512 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4513 argument.
4514
e9475ead
SA
45152014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4516
4517 * NEWS: Mention support for C99 variable length arrays.
4518
82eacd52
JB
45192014-04-24 Joel Brobecker <brobecker@adacore.com>
4520
4521 * ada-lang.c (standard_exc): Expand introductory comment.
4522
01f9f808
MS
45232014-04-24 Michael Sturm <michael.sturm@mintel.com>
4524 Walfred Tedeschi <walfred.tedeschi@intel.com>
4525
4526 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4527 AVX512 registers.
4528 (amd64_linux_read_description): Add code to handle AVX512 xstate
4529 mask and return respective tdesc.
4530 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4531 and features/i386/x32-avx512-linux.c.
4532 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4533 (amd64_linux_core_read_description): Add code to handle AVX512
4534 xstate mask and return respective tdesc.
4535 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4536 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4537 calculation.
4538 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4539 (tdesc_amd64_avx512_linux): New prototype.
4540 (tdesc_x32_avx512_linux): Likewise.
4541 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4542 features/i386/x32-avx512.c.
4543 (amd64_ymm_avx512_names): New register names for pseudo
4544 registers YMM16-31.
4545 (amd64_ymmh_avx512_names): New register names for raw registers
4546 YMMH16-31.
4547 (amd64_k_names): New register names for K registers.
4548 (amd64_zmmh_names): New register names for ZMM raw registers.
4549 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4550 (amd64_xmm_avx512_names): New register names for XMM16-31
4551 registers.
4552 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4553 registers.
4554 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4555 if feature is present.
4556 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4557 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4558 (AMD64_NUM_REGS): Adjust to new number of registers.
4559 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4560 registers supplied via XSTATE by AVX512 registers.
4561 (i386_linux_read_description): Add case for AVX512.
4562 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4563 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4564 (i386_linux_core_read_description): Add case for AVX512.
4565 (i386_linux_init_abi): Install supported register note section
4566 for AVX512.
4567 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4568 AVX512.
4569 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4570 registers to be number of zmm7h + 1.
4571 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4572 * i386-tdep.c: Include features/i386/i386-avx512.c.
4573 (i386_zmm_names): Add ZMM pseudo register names array.
4574 (i386_zmmh_names): Add ZMM raw register names array.
4575 (i386_k_names): Add K raw register names array.
4576 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4577 registers. AVX512 has 16 more ZMM registers than there are YMM
4578 registers.
4579 (i386_zmmh_regnum_p): Add function to look up register number of
4580 ZMM raw registers.
4581 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4582 (i386_k_regnum_p): Likewise for K raw registers.
4583 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4584 registers added by AVX512.
4585 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4586 registers added by AVX512.
4587 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4588 added by AVX512.
4589 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4590 (i386_pseudo_register_name): Add ZMM pseudo registers.
4591 (i386_zmm_type): Construct and return vector registers type for ZMM
4592 registers.
4593 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4594 ZMM0-31 pseudo registers and K registers.
4595 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4596 and YMM16-31 registers from register cache.
4597 (i386_pseudo_register_write): Add code to write K, ZMM and
4598 YMM16-31 registers.
4599 (i386_register_reggroup_p): Add code to include/exclude AVX512
4600 registers in/from respective register groups.
4601 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4602 registers if feature is present in xcr0.
4603 (i386_gdbarch_init): Add code to initialize AVX512 feature
4604 variables in tdep structure, wire in pseudo registers and call
4605 initialize_tdesc_i386_avx512.
4606 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4607 variables.
4608 (i386_regnum): Add AVX512 registers.
4609 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4610 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4611 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4612 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4613 512 bits wide.
4614 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4615 (i386_ymm_avx512_regnum_p): Likewise.
4616 (i386_k_regnum_p): Likewise.
4617 (i386_zmm_regnum_p): Likewise.
4618 (i386_zmmh_regnum_p): Likewise.
4619 * i387-tdep.c : Update year in copyright notice.
4620 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4621 XSAVE buffer.
4622 (XSAVE_YMM_AVX512_ADDR): New macro.
4623 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4624 XSAVE buffer.
4625 (XSAVE_XMM_AVX512_ADDR): New macro.
4626 (xsave_avx512_k_offset): New table for K register offsets in
4627 XSAVE buffer.
4628 (XSAVE_AVX512_K_ADDR): New macro.
4629 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4630 in XSAVE buffer.
4631 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4632 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4633 buffer.
4634 (i387_collect_xsave): Add code to collect AVX512 registers from
4635 XSAVE buffer.
4636 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4637 of XMM16-31 registers.
4638 (I387_NUM_K_REGS): New define for number of K registers.
4639 (I387_K0_REGNUM): New define for K0 register number.
4640 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4641 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4642 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4643 registers.
4644 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4645 (I387_XMM16_REGNUM): New define for XMM16 register number.
4646 (I387_YMM0_REGNUM): New define for YMM0 register number.
4647 (I387_KEND_REGNUM): New define for last K register number.
4648 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4649 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4650 number.
4651 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4652 number.
4653 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4654 size.
4655 * features/Makefile: Add AVX512 related files.
4656 * features/i386/32bit-avx512.xml: New file.
4657 * features/i386/64bit-avx512.xml: Likewise.
4658 * features/i386/amd64-avx512-linux.c: Likewise.
4659 * features/i386/amd64-avx512-linux.xml: Likewise.
4660 * features/i386/amd64-avx512.c: Likewise.
4661 * features/i386/amd64-avx512.xml: Likewise.
4662 * features/i386/i386-avx512-linux.c: Likewise.
4663 * features/i386/i386-avx512-linux.xml: Likewise.
4664 * features/i386/i386-avx512.c: Likewise.
4665 * features/i386/i386-avx512.xml: Likewise.
4666 * features/i386/x32-avx512-linux.c: Likewise.
4667 * features/i386/x32-avx512-linux.xml: Likewise.
4668 * features/i386/x32-avx512.c: Likewise.
4669 * features/i386/x32-avx512.xml: Likewise.
4670 * regformats/i386/amd64-avx512-linux.dat: New file.
4671 * regformats/i386/amd64-avx512.dat: Likewise.
4672 * regformats/i386/i386-avx512-linux.dat: Likewise.
4673 * regformats/i386/i386-avx512.dat: Likewise.
4674 * regformats/i386/x32-avx512-linux.dat: Likewise.
4675 * regformats/i386/x32-avx512.dat: Likewise.
4676 * NEWS: Add note about new support for AVX512.
4677
4678
08351840
PA
46792014-04-23 Pedro Alves <palves@redhat.com>
4680
4681 * breakpoint.c (insert_bp_location): Tolerate errors if the
4682 breakpoint is set in a user-loaded objfile.
4683 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4684 location is marked shlib_disabled. If the breakpoint is set in a
4685 user-loaded objfile is a GDB-side memory breakpoint, validate it
4686 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4687 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4688 flag.
4689 * mem-break.c (memory_validate_breakpoint): New function.
4690 * objfiles.c (userloaded_objfile_contains_address_p): New
4691 function.
4692 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4693 * target.h (memory_validate_breakpoint): New declaration.
4694
076855f9
PA
46952014-04-23 Pedro Alves <palves@redhat.com>
4696
4697 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4698 the breakpoint is set in a shared library, only suppress
4699 errors for software breakpoints, not hardware breakpoints.
4700
483805cf
PA
47012014-04-22 Pedro Alves <palves@redhat.com>
4702
4703 * infrun.c (schedlock_applies): New function, factored out from
4704 find_thread_needs_step_over.
4705 (find_thread_needs_step_over): Use it.
4706 (switch_back_to_stepped_thread): Always clear trap_expected if the
4707 step over is finished. Return early if scheduler locking applies.
4708 Look for the stepping thread and a potential step-over thread with
4709 a single loop.
4710 (currently_stepping_or_nexting_callback): Delete.
4711
a75fef0e
NC
47122014-04-22 Nick Clifton <nickc@redhat.com>
4713
4714 * NEWS: Mention that ARM sim now supports tracing.
4715
48b6e87e
YQ
47162014-04-22 Yao Qi <yao@codesourcery.com>
4717
4718 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4719 to ...
4720 * tracefile.c (tracefile_fetch_registers): ... it. New
4721 function.
4722 * tracefile.h (tracefile_fetch_registers): Declare.
4723 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4724 tracefile_fetch_registers.
4725
17617f2d
EZ
47262014-04-19 Eli Zaretskii <eliz@gnu.org>
4727
4728 PR gdb/14018
4729 * windows-nat.c (thread_rec): Don't display a warning when
4730 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4731 fails for any reason, set th->suspended to -1, so that we don't
4732 try to resume such a thread. Also, don't return NULL in these
4733 cases, to avoid completely ruin the session due to "PC register is
4734 not available" error.
4735 (do_windows_fetch_inferior_registers): Check errors in
4736 GetThreadContext call.
4737 (windows_continue): Accept an additional argument KILLED; if not
4738 zero, ignore errors in the SetThreadContext call, since the
4739 inferior was killed and is shutting down.
4740 (windows_resume, get_windows_debug_event)
4741 (windows_create_inferior, windows_mourn_inferior)
4742 (windows_kill_inferior): All callers of windows_continue changed
4743 to adjust to its new calling sequence.
4744
5723a6fd
YQ
47452014-04-19 Yao Qi <yao@codesourcery.com>
4746
4747 * ctf.c (ctf_open): Call post_create_inferior.
4748
614d5099
YQ
47492014-04-19 Yao Qi <yao@codesourcery.com>
4750
4751 * ctf.c (handle_id): New static variable.
4752 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4753 value. Get the declaration of event "register" and get length
4754 of field "contents".
4755
dac3e710
YQ
47562014-04-19 Yao Qi <yao@codesourcery.com>
4757
4758 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4759
2bca57ba
SC
47602014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4761
4762 * valops.c (oload_method_static): Remove unnecessary argument
4763 METHOD. Update all callers.
4764
51d48146
PA
47652014-04-18 Pedro alves <palves@redhat.com>
4766 Tom Tromey <tromey@redhat.com>
4767
4768 PR backtrace/15558
4769 * frame.c (get_prev_frame_1): Rename to ...
4770 (get_prev_frame_always): ... this, and make extern. Adjust.
4771 (skip_artificial_frames): Use get_prev_frame_always.
4772 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4773 (get_frame_unwind_stop_reason): Adjust to rename.
4774 * frame.h (get_prev_frame_always): Declare.
4775 * inline-frame.c: Include frame.h.
4776 (inline_frame_this_id): Use get_prev_frame_always.
4777
1bdad2e0
TG
47782014-04-18 Tristan Gingold <gingold@adacore.com>
4779
4780 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4781 code by using bfd_mach_o_get_base_address.
4782
7ce16bd4
UW
47832014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4784
4785 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4786 (spu_ax_pseudo_register_collect): New function.
4787 (spu_ax_pseudo_register_push_stack): Likewise.
4788 (spu_dwarf_reg_to_regnum): Likewise.
4789 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4790
2ed3c037
UW
47912014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4792
4793 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4794 Replace FRAME argument with FRAME_ID.
4795 * gdbarch.c, gdbarch.h: Regenerate.
4796 * findvar.c (default_value_from_register): Add GDBARCH argument;
4797 replace FRAME by FRAME_ID. No longer call get_frame_id.
4798 (value_from_register): Update call to gdbarch_value_from_register.
4799 * value.h (default_value_from_register): Update prototype.
4800 * s390-linux-tdep.c (s390_value_from_register): Update interface
4801 and call to default_value_from_register.
4802 * spu-tdep.c (spu_value_from_register): Likewise.
4803
4804 * findvar.c (address_from_register): Remove TYPE argument.
4805 Do not call value_from_register; use gdbarch_value_from_register
4806 with null_frame_id instead.
4807 * value.h (address_from_register): Update prototype.
4808 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4809 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4810 address_from_register interface change.
4811
71e50e83
YQ
48122014-04-17 Yao Qi <yao@codesourcery.com>
4813
4814 * gdbtypes.h: Update comments to link to types and macros'
4815 definitions.
4816
7a23c549
SC
48172014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4818
4819 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4820
22869d73
KS
48212014-04-16 Keith Seitz <keiths@redhat.com>
4822
4823 PR gdb/15827
4824 * dwarf2read.c (skip_one_die): Check that all relative-offset
4825 sibling DIEs fall within range of the current reader's buffer.
4826 (read_partial_die): Likewise.
4827
c4f87ca6
KS
48282014-04-16 Keith Seitz <keiths@redhat.com>
4829
4830 PR c++/16597
4831 * cp-namespace.c (lookup_symbol_file): If the type name of
4832 `this' is NULL, return immediately.
4833
b50c8614
KS
48342014-04-14 Keith Seitz <keiths@redhat.com>
4835
4836 PR c++/16253
4837 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4838 from symbol_matches_domain in symtab.c. All local callers
4839 of symbol_matches_domain updated.
4840 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4841 search STRUCT_DOMAIN.
4842 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4843 independently. standard_lookup will do that automatically.
4844 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4845 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4846 (cp_lookup_symbol_in_namespace): Likewise.
4847 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4848 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4849 may return a STRUCT_DOMAIN match.
4850 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4851 * cp-support.c: Include language.h.
4852 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4853 VAR_DOMAIN.
4854 * psymtab.c (match_partial_symbol): Compare the requested
4855 domain with the symbol's domain directly.
4856 (lookup_partial_symbol): Likewise.
4857 * symtab.c (lookup_symbol_in_language): Explain when/why
4858 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4859 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4860 appropriate languages.
4861 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4862 and moved to ada-lang.c
4863 (lookup_block_symbol): Explain that this function only returns
4864 symbol matching the requested DOMAIN.
4865 Compare the requested domain with the symbol's domain directly.
4866 (iterate_over_symbols): Compare the requested domain with the
4867 symbol's domain directly.
4868 * symtab.h (symbol_matches_domain): Remove.
4869
3d567982
TT
48702014-04-14 Tom Tromey <tromey@redhat.com>
4871
4872 PR c++/15246:
4873 * c-exp.y (type_aggregate_p): New function.
4874 (qualified_name, classify_inner_name): Use it.
4875 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4876 and TYPE_TARGET_TYPE of an enum type.
4877 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4878 an enum type.
4879 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4880 handle TYPE_DECLARED_CLASS.
4881 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4882 types.
4883 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4884 * valops.c (enum_constant_from_type): New function.
4885 (value_aggregate_elt): Use it.
4886 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4887 TYPE_CODE_ENUM.
4888
c848d642
TT
48892014-04-14 Tom Tromey <tromey@redhat.com>
4890
4891 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4892 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4893 const.
4894 * value.h (value_aggregate_elt): Update.
4895
0626fc76
TT
48962014-04-14 Tom Tromey <tromey@redhat.com>
4897
4898 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4899
5ecaaa66
SA
49002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4901
4902 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4903 (evaluate_subexp_standard): Pass noside argument.
4904 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4905 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4906 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4907 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4908 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4909
1612e0c0
SA
49102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4911
4912 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4913 points to a constant blob.
4914
c451ebe5
SA
49152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4916
4917 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4918 property and store it as the high bound and flag the range accordingly.
4919 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4920 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4921 * gdbtypes.h (enum range_flags): New enum.
4922 (struct range_bounds): Add flags member.
4923
1d42e4c4
SA
49242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4925
4926 * c-typeprint.c (c_type_print_varspec_suffix): Added
4927 check for not yet resolved high bound. If unresolved, print
4928 "variable length" string to the console instead of random
4929 length.
4930
9f1f738a
SA
49312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4932
4933 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4934 value.
4935 (ada_template_to_fixed_record_type_1): Likewise.
4936 (ada_to_fixed_type_1): Likewise.
4937 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4938 (cp_print_value): Likewise.
4939 * d-valprint.c (dynamic_array_type): Likewise.
4940 * findvar.c (address_of_variable): Likewise.
4941 * jv-valprint.c (java_value_print): Likewise.
4942 * valops.c (value_ind): Likewise.
4943 * value.c (coerce_ref): Likewise.
4944
3c8452d4
SA
49452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4946
4947 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4948 value and retrieve the dynamic type size.
4949
4ad88275
SA
49502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4951
4952 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4953 passed to sizeof is dynamic evaluate the argument to compute the length.
4954
80180f79
SA
49552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4956 Joel Brobecker <brobecker@adacore.com>
4957
4958 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4959 (dwarf2_evaluate_property): New function.
4960 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4961 * dwarf2read.c (attr_to_dynamic_prop): New function.
4962 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4963 attribute.
4964 * gdbtypes.c: Include dwarf2loc.h.
4965 (is_dynamic_type): New function.
4966 (resolve_dynamic_type): New function.
4967 (resolve_dynamic_bounds): New function.
4968 (get_type_length): New function.
4969 (check_typedef): Use get_type_length to compute type length.
4970 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4971 (TYPE_LOW_BOUND_KIND): New macro.
4972 (is_dynamic_type): New function prototype.
4973 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4974 to resolve dynamic properties of the type. Update comment.
4975 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4976
a1556843
RH
49772014-04-14 Richard Henderson <rth@redhat.com>
4978
4979 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4980
0be03e84
DE
49812014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4982 Doug Evans <xdje42@gmail.com>
4983
4984 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4985 dereference TYPE_CODE_REF values.
4986
6b662e19
JB
49872014-04-11 Joel Brobecker <brobecker@adacore.com>
4988
4989 Revert the following changes due to regressions:
4990
4991 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4992 (dwarf2_evaluate_property): New function.
4993 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4994 * dwarf2read.c (attr_to_dynamic_prop): New function.
4995 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4996 attribute.
4997 * gdbtypes.c: Include dwarf2loc.h.
4998 (is_dynamic_type): New function.
4999 (resolve_dynamic_type): New function.
5000 (resolve_dynamic_bounds): New function.
5001 (get_type_length): New function.
5002 (check_typedef): Use get_type_length to compute type length.
5003 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5004 (TYPE_LOW_BOUND_KIND): New macro.
5005 (is_dynamic_type): New function prototype.
5006 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5007 to resolve dynamic properties of the type. Update comment.
5008 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5009
5010 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5011 passed to sizeof is dynamic evaluate the argument to compute the length.
5012
5013 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5014 value and retrieve the dynamic type size.
5015
5016 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5017 (ada_template_to_fixed_record_type_1): Likewise.
5018 (ada_to_fixed_type_1): Likewise.
5019 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5020 (cp_print_value): Likewise.
5021 * d-valprint.c (dynamic_array_type): Likewise.
5022 * eval.c (evaluate_subexp_with_coercion): Likewise.
5023 * findvar.c (address_of_variable): Likewise.
5024 * jv-valprint.c (java_value_print): Likewise.
5025 * valops.c (value_ind): Likewise.
5026 * value.c (coerce_ref): Likewise.
5027
5028 * c-typeprint.c (c_type_print_varspec_suffix): Added
5029 check for not yet resolved high bound. If unresolved, print
5030 "variable length" string to the console instead of random
5031 length.
5032
5033 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5034 property and store it as the high bound and flag the range accordingly.
5035 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5036 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5037 * gdbtypes.h (enum range_flags): New enum.
5038 (struct range_bounds): Add flags member.
5039
5040 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5041 points to a constant blob.
5042
5043 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5044 (evaluate_subexp_standard): Pass noside argument.
5045 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5046 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5047 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5048 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5049 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5050
245a5f0b
KS
50512014-04-11 Keith Seitz <keiths@redhat.com>
5052
5053 PR c++/16675
5054 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5055 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5056 reference types.
5057
3bce8237
SA
50582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5059
5060 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5061 (evaluate_subexp_standard): Pass noside argument.
5062 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5063 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5064 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5065 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5066 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5067
92b09522
SA
50682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5069
5070 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5071 points to a constant blob.
5072
e1969afb
SA
50732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5074
5075 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5076 property and store it as the high bound and flag the range accordingly.
5077 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5078 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5079 * gdbtypes.h (enum range_flags): New enum.
5080 (struct range_bounds): Add flags member.
5081
b86138fb
SA
50822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5083
5084 * c-typeprint.c (c_type_print_varspec_suffix): Added
5085 check for not yet resolved high bound. If unresolved, print
5086 "variable length" string to the console instead of random
5087 length.
5088
bcd629a4
SA
50892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5090
5091 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5092 (ada_template_to_fixed_record_type_1): Likewise.
5093 (ada_to_fixed_type_1): Likewise.
5094 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5095 (cp_print_value): Likewise.
5096 * d-valprint.c (dynamic_array_type): Likewise.
5097 * eval.c (evaluate_subexp_with_coercion): Likewise.
5098 * findvar.c (address_of_variable): Likewise.
5099 * jv-valprint.c (java_value_print): Likewise.
5100 * valops.c (value_ind): Likewise.
5101 * value.c (coerce_ref): Likewise.
5102
04b19544
SA
51032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5104
5105 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5106 value and retrieve the dynamic type size.
5107
26cb189f
SA
51082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5109
5110 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5111 passed to sizeof is dynamic evaluate the argument to compute the length.
5112
37c1ab67
SA
51132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5114
5115 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5116 (dwarf2_evaluate_property): New function.
5117 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5118 * dwarf2read.c (attr_to_dynamic_prop): New function.
5119 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5120 attribute.
5121 * gdbtypes.c: Include dwarf2loc.h.
5122 (is_dynamic_type): New function.
5123 (resolve_dynamic_type): New function.
5124 (resolve_dynamic_bounds): New function.
5125 (get_type_length): New function.
5126 (check_typedef): Use get_type_length to compute type length.
5127 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5128 (TYPE_LOW_BOUND_KIND): New macro.
5129 (is_dynamic_type): New function prototype.
5130 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5131 to resolve dynamic properties of the type. Update comment.
5132 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5133
729efb13
SA
51342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5135
5136 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5137 declaring high/low bounds and change uses accordingly. Call
5138 create_range_type instead of create_static_range_type.
5139 * gdbtypes.c (create_range_type): New function.
5140 (create_range_type): Convert bounds into struct bound_prop and pass
5141 them to create_range_type.
5142 * gdbtypes.h (struct bound_prop): New struct.
5143 (create_range_type): New function prototype.
5144 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5145 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5146 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5147 part of the bound.
5148 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5149
0c9c3474
SA
51502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5151
5152 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5153 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5154 * ada-lang.c: All uses of create_range_type updated.
5155 * coffread.c: All uses of create_range_type updated.
5156 * dwarf2read.c: All uses of create_range_type updated.
5157 * f-exp.y: All uses of create_range_type updated.
5158 * m2-valprint.c: All uses of create_range_type updated.
5159 * mdebugread.c: All uses of create_range_type updated.
5160 * stabsread.c: All uses of create_range_type updated.
5161 * valops.c: All uses of create_range_type updated.
5162 * valprint.c: All uses of create_range_type updated.
5163
9d497a19
PA
51642014-04-10 Pedro Alves <palves@redhat.com>
5165
5166 * breakpoint.c (single_step_breakpoints)
5167 (single_step_gdbarch): Move up in the file.
5168 (one_breakpoint_xfer_memory): New function, factored out from ...
5169 (breakpoint_xfer_memory): ... here. Also process single-step
5170 breakpoints.
5171
15a9128a
TG
51722014-04-09 Tristan Gingold <gingold@adacore.com>
5173
5174 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5175 comments.
5176 (darwin_decode_exception_message): Free port only after use.
5177
9c97a070
PL
51782014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5179
5180 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5181 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5182 when setting the size of call_length.
5183
7af389b8
SC
51842014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5185
5186 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5187 dereference TYPE_CODE_REF values.
5188
86ad98c3
JB
51892014-04-07 Joel Brobecker <brobecker@adacore.com>
5190
5191 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5192 end of warning message.
5193
b0aeadb3
DE
51942014-04-03 Doug Evans <dje@google.com>
5195
5196 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5197 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5198
5979d6b6
AM
51992014-04-02 Alan Modra <amodra@gmail.com>
5200
5201 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5202 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5203 (struct symbol_file_add_from_memory_args): Add size field.
5204 (find_vdso_size): New function.
5205 (add_vsyscall_page): Attempt to find vdso size.
5206
0d60c288
DE
52072014-04-01 Doug Evans <dje@google.com>
5208
5209 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5210
a41f2563
TG
52112014-04-01 Tristan Gingold <gingold@adacore.com>
5212
5213 * darwin-nat.c (darwin_encode_reply): Add prototype.
5214 (darwin_decode_exception_message): Reply to unknown inferiors.
5215 (darwin_decode_message): Handle message by id. Ignore message
5216 to unknown inferior.
5217 (darwin_wait): Discard unknown messages, add debug trace.
5218
11a865c8
DE
52192014-03-31 Doug Evans <dje@google.com>
5220
5221 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5222 comp_dir_string.
5223
770e7fc7
DE
52242014-03-31 Doug Evans <dje@google.com>
5225
5226 New option "set print symbol-loading".
5227 * NEWS: Mention it.
5228 * solib.c (solib_read_symbols): Only print symbol loading messages
5229 if requested.
5230 (solib_add): If symbol loading is in "brief" mode, notify user
5231 symbols are being loaded.
5232 (reload_shared_libraries_1): Ditto.
5233 * symfile.c (print_symbol_loading_off): New static global.
5234 (print_symbol_loading_brief): New static global.
5235 (print_symbol_loading_full): New static global.
5236 (print_symbol_loading_enums): New static global.
5237 (print_symbol_loading): New static global.
5238 (print_symbol_loading_p): New function.
5239 (symbol_file_add_with_addrs): Only print symbol loading messages
5240 if requested.
5241 (_initialize_symfile): Register "print symbol-loading" set/show
5242 command.
5243 * symfile.h (print_symbol_loading_p): Declare.
5244
c32c64b7
DE
52452014-03-30 Doug Evans <xdje42@gmail.com>
5246
5247 * infrun.c (set_last_target_status): New function.
5248 (handle_inferior_event): Call it.
5249
7c0bc051
DE
52502014-03-30 Doug Evans <xdje42@gmail.com>
5251
5252 * inferior.h (enum stop_kind): Improve comment.
5253
8776cfe9
JB
52542014-03-28 Joel Brobecker <brobecker@adacore.com>
5255
5256 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5257 a reference, strip the reference layer before calling
5258 the lang_ops value_has_mutated callback.
5259
410a0ff2
SDJ
52602014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 Remove some globals from our parser.
5263 * language.c (unk_lang_parser): Add "struct parser_state"
5264 argument.
5265 * language.h (struct language_defn) <la_parser>: Likewise.
5266 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5267 (initialize_expout): Add "struct parser_state" argument.
5268 Rewrite function to use the parser state.
5269 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5270 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5271 write_exp_elt_longcst, write_exp_elt_dblcst,
5272 write_exp_elt_decfloatcst, write_exp_elt_type,
5273 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5274 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5275 write_dollar_variable): Likewise.
5276 (parse_exp_in_context_1): Use parser state.
5277 (insert_type_address_space): Add "struct parser_state" argument.
5278 Use parser state.
5279 (increase_expout_size): New function.
5280 * parser-defs.h: Forward declare "struct language_defn" and
5281 "struct parser_state".
5282 (expout, expout_size, expout_ptr): Remove extern declarations.
5283 (parse_gdbarch, parse_language): Rewrite macro declarations to
5284 accept the parser state.
5285 (struct parser_state): New struct.
5286 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5287 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5288 write_exp_elt_decfloatcst, write_exp_elt_type,
5289 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5290 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5291 write_exp_msymbol, write_dollar_variable,
5292 mark_struct_expression, insert_type_address_space): Add "struct
5293 parser_state" argument.
5294 (increase_expout_size): New function.
5295 * utils.c (do_clear_parser_state): New function.
5296 (make_cleanup_clear_parser_state): Likewise.
5297 * utils.h (make_cleanup_clear_parser_state): New function
5298 prototype.
5299 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5300 Update calls to write_exp* in order to pass the parser state.
5301 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5302 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5303 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5304 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5305 * stap-probe.c (stap_parse_register_operand): Likewise.
5306 (stap_parse_single_operand): Likewise.
5307 (stap_parse_argument_1): Likewise.
5308 (stap_parse_argument): Use parser state.
5309 * stap-probe.h: Include "parser-defs.h".
5310 (struct stap_parse_info) <pstate>: New field.
5311 * c-exp.y (parse_type): Rewrite to use parser state.
5312 (yyparse): Redefine to c_parse_internal.
5313 (pstate): New global variable.
5314 (parse_number): Add "struct parser_state" argument.
5315 (write_destructor_name): Likewise.
5316 (type_exp): Update calls to write_exp* and similars in order to
5317 use parser state.
5318 (exp1, exp, variable, qualified_name, space_identifier,
5319 typename, typebase): Likewise.
5320 (write_destructor_name, parse_number, lex_one_token,
5321 classify_name, classify_inner_name, c_parse): Add "struct
5322 parser_state" argument. Update function to use parser state.
5323 * c-lang.h: Forward declare "struct parser_state".
5324 (c_parse): Add "struct parser_state" argument.
5325 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5326 (yyparse): Redefine macro to ada_parse_internal.
5327 (pstate): New variable.
5328 (write_int, write_object_renaming, write_var_or_type,
5329 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5330 type_int, type_long, type_long_long, type_float, type_double,
5331 type_long_double, type_char, type_boolean, type_system_address):
5332 Add "struct parser_state" argument.
5333 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5334 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5335 var_or_type, aggregate, aggregate_component_list,
5336 positional_list, others, component_group,
5337 component_associations): Update calls to write_exp* and similar
5338 functions in order to use parser state.
5339 (ada_parse, write_var_from_sym, write_int,
5340 write_exp_op_with_string, write_object_renaming,
5341 find_primitive_type, write_selectors, write_ambiguous_var,
5342 write_var_or_type, write_name_assoc, type_int, type_long,
5343 type_long_long, type_float, type_double, type_long_double,
5344 type_char, type_boolean, type_system_address): Add "struct
5345 parser_state" argument. Adjust function to use parser state.
5346 * ada-lang.c (parse): Likewise.
5347 * ada-lang.h: Forward declare "struct parser_state".
5348 (ada_parse): Add "struct parser_state" argument.
5349 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5350 calls to both functions.
5351 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5352 parser state.
5353 (yyparse): Redefine macro to f_parse_internal.
5354 (pstate): New variable.
5355 (parse_number): Add "struct parser_state" argument.
5356 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5357 and similars in order to use parser state.
5358 (parse_number): Adjust code to use parser state.
5359 (yylex): Likewise.
5360 (f_parse): New function.
5361 * f-lang.h: Forward declare "struct parser_state".
5362 (f_parse): Add "struct parser_state" argument.
5363 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5364 parser state.
5365 (yyparse): Redefine macro for java_parse_internal.
5366 (pstate): New variable.
5367 (push_expression_name, push_expression_name, insert_exp): Add
5368 "struct parser_state" argument.
5369 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5370 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5371 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5372 PostIncrementExpression, PostDecrementExpression,
5373 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5374 UnaryExpressionNotPlusMinus, CastExpression,
5375 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5376 RelationalExpression, EqualityExpression, AndExpression,
5377 ExclusiveOrExpression, InclusiveOrExpression,
5378 ConditionalAndExpression, ConditionalOrExpression,
5379 ConditionalExpression, Assignment, LeftHandSide): Update
5380 calls to write_exp* and similars in order to use parser state.
5381 (parse_number): Ajust code to use parser state.
5382 (yylex): Likewise.
5383 (java_parse): New function.
5384 (push_variable): Add "struct parser_state" argument. Adjust
5385 code to user parser state.
5386 (push_fieldnames, push_qualified_expression_name,
5387 push_expression_name, insert_exp): Likewise.
5388 * jv-lang.h: Forward declare "struct parser_state".
5389 (java_parse): Add "struct parser_state" argument.
5390 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5391 parser state.
5392 (yyparse): Redefine macro to m2_parse_internal.
5393 (pstate): New variable.
5394 (type_exp, exp, fblock, variable, type): Update calls to
5395 write_exp* and similars to use parser state.
5396 (yylex): Likewise.
5397 (m2_parse): New function.
5398 * m2-lang.h: Forward declare "struct parser_state".
5399 (m2_parse): Add "struct parser_state" argument.
5400 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5401 * objc-lang.h: Forward declare "struct parser_state".
5402 (end_msglist): Add "struct parser_state" argument.
5403 * p-exp.y (parse_type): Rewrite macro to use parser state.
5404 (yyparse): Redefine macro to pascal_parse_internal.
5405 (pstate): New variable.
5406 (parse_number): Add "struct parser_state" argument.
5407 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5408 write_exp* and similars in order to use parser state.
5409 (parse_number, yylex): Adjust code to use parser state.
5410 (pascal_parse): New function.
5411 * p-lang.h: Forward declare "struct parser_state".
5412 (pascal_parse): Add "struct parser_state" argument.
5413 * go-exp.y (parse_type): Rewrite macro to use parser state.
5414 (yyparse): Redefine macro to go_parse_internal.
5415 (pstate): New variable.
5416 (parse_number): Add "struct parser_state" argument.
5417 (type_exp, exp1, exp, variable, type): Update calls to
5418 write_exp* and similars in order to use parser state.
5419 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5420 to use parser state.
5421 (go_parse): Likewise.
5422 * go-lang.h: Forward declare "struct parser_state".
5423 (go_parse): Add "struct parser_state" argument.
5424
342587c4
DE
54252014-03-27 Doug Evans <dje@google.com>
5426
5427 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5428
33e80786
DE
54292014-03-27 Doug Evans <dje@google.com>
5430
5431 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5432 Remove argument abbrev_section. All callers updated.
5433
1dbab08b
DE
54342014-03-27 Doug Evans <dje@google.com>
5435
5436 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5437 addr_base, ranges_base.
5438
318d3177
KS
54392014-03-26 Keith Seitz <keiths@redhat.com>
5440
5441 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5442 types, not VAR_DOMAIN.
5443
1e54db15
SL
54442014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5445
5446 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5447 "ra" registers.
5448 * features/nios2-linux.c: Regenerated.
5449 * features/nios2.c: Regenerated.
5450
d3839ede
PA
54512014-03-25 Pedro Alves <palves@redhat.com>
5452
5453 * cli/cli-script.c (script_from_file): Force the interpreter to
5454 sync mode.
5455
7588d2ec
PL
54562014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5457
5458 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5459 small stack allocation.
5460
a6290449
TG
54612014-03-24 Tristan Gingold <gingold@adacore.com>
5462
5463 * darwin-nat.c (exc_server): Remove unused prototype.
5464 (darwin_dump_message): Correctly display data on x86_64.
5465 (darwin_encode_reply): Fix style.
5466 Add comments and fix indentation.
5467
31ae9d24 54682014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5469
5470 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5471
6339bfc4
DE
54722014-03-22 Doug Evans <xdje42@gmail.com>
5473
5474 * infcmd.c: Whitespace fixes.
5475 (interrupt_command): Merge two function comments into one.
5476
0a07590b
DE
54772014-03-22 Doug Evans <xdje42@gmail.com>
5478
5479 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5480 All uses updated.
5481
b55fbac4
YQ
54822014-03-22 Yao Qi <yao@codesourcery.com>
5483
5484 * remote.c (target_read_live_memory): Remove.
5485 (memory_xfer_live_readonly_partial): Rename it to
5486 remote_xfer_live_readonly_partial. Remove argument 'object'.
5487 All callers updated. Call remote_read_bytes_1
5488 instead of target_read_live_memory.
5489 * tracepoint.c (set_traceframe_number): Remove.
5490 (make_cleanup_restore_traceframe_number): Likewise .
5491 * tracepoint.h (set_traceframe_number): Remove declaration.
5492 (make_cleanup_restore_traceframe_number): Likewise.
5493
9217e74e
YQ
54942014-03-22 Yao Qi <yao@codesourcery.com>
5495
5496 * remote.c (remote_read_bytes): Move code on reading from the
5497 remote stub to ...
5498 (remote_read_bytes_1): ... here. New function.
5499
8acf9577
YQ
55002014-03-22 Yao Qi <yao@codesourcery.com>
5501
5502 * ctf.c (ctf_xfer_partial): Check the return value of
5503 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5504 return TARGET_XFER_UNAVAILABLE.
5505 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5506 * target.c (target_read_live_memory): Move it to remote.c.
5507 (memory_xfer_live_readonly_partial): Likewise.
5508 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5509 * remote.c (target_read_live_memory): Moved from target.c.
5510 (memory_xfer_live_readonly_partial): Likewise.
5511 (remote_read_bytes): Factored out from
5512 memory_xfer_partial_1.
5513
feef67ab
DE
55142014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5515
5516 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5517 NULL pointer.
5518
b65dc60b
PA
55192014-03-21 Pedro Alves <palves@redhat.com>
5520
5521 * infrun.c (normal_stop): Extend comment.
5522
b4ab256d
HZ
55232014-03-21 Hui Zhu <hui@codesourcery.com>
5524 Pedro Alves <palves@redhat.com>
5525
5526 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5527 static buffer.
5528 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5529 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5530 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5531
deba7593
MR
55322014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5533
5534 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5535 `z' formatted output modifier.
5536
1bff71c3
SDJ
55372014-03-20 Tom Tromey <tromey@redhat.com>
5538 Sergio Durigan Junior <sergiodj@redhat.com>
5539
5540 * probe.c (parse_probes): Turn assert into an ordinary error.
5541 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5542 exceptions when parsing probes. Rearrange the code for clarity.
5543
90e28950
TT
55442014-03-20 Tom Tromey <tromey@redhat.com>
5545
5546 PR gdb/14135
5547 * top.c (execute_command): Only dispatch events if the command
5548 started the target.
5549
beb460e8
PA
55502014-03-20 Tom Tromey <tromey@redhat.com>
5551
5552 PR cli/15718
5553 * infcall.c: Include event-top.h.
5554 (run_inferior_call): Call async_disable_stdin if needed.
5555
99619bea
PA
55562014-03-20 Pedro Alves <palves@redhat.com>
5557
5558 * infrun.c (prepare_to_proceed): Delete.
5559 (thread_still_needs_step_over): New function.
5560 (find_thread_needs_step_over): New function.
5561 (proceed): If the current thread needs a step-over, set its
5562 steping_over_breakpoint flag. Adjust to use
5563 find_thread_needs_step_over instead of prepare_to_proceed.
5564 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5565 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5566 breakpoint.
5567 (switch_back_to_stepped_thread): Step over breakpoints of all
5568 threads not the stepping thread, before switching back to the
5569 stepping thread.
5570
2adfaa28
PA
55712014-03-20 Pedro Alves <palves@redhat.com>
5572
5573 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5574 extern.
5575 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5576 * infrun.c (saved_singlestep_ptid)
5577 (stepping_past_singlestep_breakpoint): Delete.
5578 (resume): Remove stepping_past_singlestep_breakpoint handling.
5579 (proceed): Store the prev_pc of the stepping thread too.
5580 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5581 singlestep_pc.
5582 (enum infwait_states): Delete infwait_thread_hop_state.
5583 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5584 field.
5585 (handle_inferior_event): Adjust.
5586 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5587 handling and the thread-hop code. Before removing single-step
5588 breakpoints, check whether the thread hit a single-step breakpoint
5589 of another thread. If it did, the trap is not a random signal.
5590 (switch_back_to_stepped_thread): If the event thread hit a
5591 single-step breakpoint, unblock it before switching to the
5592 stepping thread. Handle the case of the stepped thread having
5593 advanced already.
5594 (keep_going): Handle the case of the current thread moving past a
5595 single-step breakpoint.
5596
31e77af2
PA
55972014-03-20 Pedro Alves <palves@redhat.com>
5598
5599 PR breakpoints/7143
5600 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5601 are being stepped over.
5602 (breakpoint_address_match): Make extern.
5603 * breakpoint.h (breakpoint_address_match): New declaration.
5604 * inferior.h (stepping_past_instruction_at): New declaration.
5605 * infrun.c (struct step_over_info): New type.
5606 (step_over_info): New global.
5607 (set_step_over_info, clear_step_over_info)
5608 (stepping_past_instruction_at): New functions.
5609 (handle_inferior_event): Clear the step-over info when
5610 trap_expected is cleared.
5611 (resume): Remove now stale comment.
5612 (clear_proceed_status): Clear step-over info.
5613 (proceed): Adjust step-over handling to set or clear the step-over
5614 info instead of removing all breakpoints.
5615 (handle_signal_stop): When setting up a thread-hop, don't remove
5616 breakpoints here.
5617 (stop_stepping): Clear step-over info.
5618 (keep_going): Adjust step-over handling to set or clear step-over
5619 info and then always inserting breakpoints, instead of removing
5620 all breakpoints when stepping over one.
5621
b9f437de
PA
56222014-03-20 Pedro Alves <palves@redhat.com>
5623
5624 * infrun.c (previous_inferior_ptid): Adjust comment.
5625 (deferred_step_ptid): Delete.
5626 (infrun_thread_ptid_changed, prepare_to_proceed)
5627 (init_wait_for_inferior): Adjust.
5628 (handle_signal_stop): Delete deferred_step_ptid handling.
5629
06c868a8
JK
56302014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5631
5632 PR gdb/15358
5633 * defs.h (sync_quit_force_run): New declaration.
5634 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5635 * event-top.c (async_sigterm_handler): New declaration.
5636 (async_sigterm_token): New variable.
5637 (async_init_signals): Create also async_sigterm_token.
5638 (async_sigterm_handler): New function.
5639 (sync_quit_force_run): New variable.
5640 (handle_sigterm): Replace quit_force call by other calls.
5641 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5642
dea80df0
MR
56432014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5644
5645 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5646 offset into SPE pseudo registers.
5647
0c7e1a46
PA
56482014-03-18 Pedro Alves <palves@redhat.com>
5649
5650 PR gdb/13860
5651 * inferior.h (print_stop_event): Declare.
5652 * infrun.c (print_stop_event): New, factored out from ...
5653 (normal_stop): ... this.
5654 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5655 of bpstat_print/print_stack_frame.
5656
9c1fcd01
TT
56572014-03-17 Tom Tromey <tromey@redhat.com>
5658
5659 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5660
11aa919a
PMR
56612014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5662
5663 * ada-lang.c (decode_constrained_packed_array): Perform a
5664 minimal coercion for reference with coerce_ref instead of
5665 ada_coerce_ref.
5666
d4ccb5e0
TG
56672014-03-17 Tristan Gingold <gingold@adacore.com>
5668
5669 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5670 (darwin_solib_create_inferior_hook): Emit a warning if version
5671 is unhandled.
5672
49840f2a
UW
56732014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5674
5675 * python/py-value.c (get_field_flag): Cast flag_name argument to
5676 PyObject_GetAttrString to support Python 2.4.
5677
ed4123e5
JK
56782014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5679
5680 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5681 (Global Maintainers): Remove Jan Kratochvil.
5682
d6b64346
PA
56832014-03-14 Pedro Alves <palves@redhat.com>
5684
5685 * inferior.h (terminal_ours_for_output): Rename to ...
5686 (child_terminal_ours_for_output): ... this.
5687 (terminal_save_ours): Rename to ...
5688 (child_terminal_save_ours): ... this.
5689 (terminal_ours): Rename to ...
5690 (child_terminal_ours): ... this.
5691 (terminal_inferior): Rename to ...
5692 (child_terminal_inferior): ... this.
5693 (terminal_init_inferior): Rename to ...
5694 (child_terminal_init_inferior): ... this.
5695 (terminal_init_inferior_with_pgrp): Rename to ...
5696 (child_terminal_init_inferior_with_pgrp): ... this.
5697 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5698 (child_terminal_init_with_pgrp): ... this.
5699 (terminal_save_ours): Rename to ...
5700 (child_terminal_save_ours): ... this.
5701 (terminal_init_inferior): Rename to ...
5702 (child_terminal_init): ... this. Adjust.
5703 (terminal_inferior): Rename to ...
5704 (child_terminal_inferior): ... this.
5705 (terminal_ours_for_output): Rename to ...
5706 (child_terminal_ours_for_output): ... this. Adjust.
5707 (terminal_ours): Rename to ...
5708 (child_terminal_ours): ... this.
5709 (terminal_ours_1): Rename to ...
5710 (child_terminal_ours_1): ... this. Adjust.
5711 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5712 * windows-nat.c (do_initial_windows_stuff): Adjust.
5713 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5714 (gnu_terminal_init): ... this. Adjust.
5715 (gnu_target): Adjust.
5716 * inf-child.c (inf_child_target): Adjust.
5717
5a1e8c7a
DE
57182014-03-13 Doug Evans <xdje42@gmail.com>
5719
5720 PR guile/16612
5721 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5722 new eq?-hashtab.
5723
350e1a76
DE
57242014-03-13 Doug Evans <xdje42@gmail.com>
5725
5726 * value.c (record_latest_value): Call release_value_or_incref
5727 instead of release_value.
5728
a69900ae
PA
57292014-03-13 Pedro Alves <palves@redhat.com>
5730
5731 * procfs.c (procfs_target): Don't override to_shortname,
5732 to_longname or to_doc.
5733
5db9f0bd
PA
57342014-03-13 Pedro Alves <palves@redhat.com>
5735
5736 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5737 Unix in user visible strings.
5738
5e3a2c38
SS
57392014-03-12 Stan Shebs <stan@codesourcery.com>
5740
5741 * gdbtypes.h: Annotate comments for Doxygen, add a page
5742 block comment with some general info.
5743
8bc2fe48
PA
57442014-03-12 Pedro Alves <palves@redhat.com>
5745
5746 * infcmd.c (prepare_execution_command): New function, factored out
5747 from several execution commands.
5748 (run_command_1, continue_command, step_1, jump_command)
5749 (signal_command, until_command, advance_command, finish_command)
5750 (attach_command): Use prepare_execution_command.
5751
638c5f49
OJ
57522014-03-12 Omair Javaid <omair.javaid@linaro.org>
5753
5754 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5755 (MAX_BPTS): Define.
5756 (MAX_WPTS): Define.
5757 (struct arm_linux_thread_points): Removed.
5758 (struct arm_linux_process_info): New.
5759 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5760 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5761 (arm_linux_find_breakpoints_by_tid): Removed.
5762 (struct arch_lwp_info): New.
5763 (arm_linux_find_process_pid): New functions.
5764 (arm_linux_add_process): New functions.
5765 (arm_linux_process_info_get): New functions.
5766 (arm_linux_forget_process): New function.
5767 (arm_linux_get_debug_reg_state): New function.
5768 (struct update_registers_data): New.
5769 (update_registers_callback): New function.
5770 (arm_linux_insert_hw_breakpoint1): Updated.
5771 (arm_linux_remove_hw_breakpoint1): Updated.
5772 (arm_linux_insert_hw_breakpoint): Updated.
5773 (arm_linux_remove_hw_breakpoint): Updated.
5774 (arm_linux_insert_watchpoint): Updated.
5775 (arm_linux_remove_watchpoint): Updated.
5776 (arm_linux_new_thread): Updated.
5777 (arm_linux_prepare_to_resume): New function.
5778 (arm_linux_new_fork): New function.
5779 (_initialize_arm_linux_nat): Updated.
5780
6d03af93
PA
57812014-03-12 Pedro Alves <palves@redhat.com>
5782
5783 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5784
b3ccfe11
TT
57852014-03-12 Tom Tromey <tromey@redhat.com>
5786
5787 * inf-child.c (return_zero): New function.
5788 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5789 * aix-thread.c (aix_thread_inferior_created): New function.
5790 (aix_thread_attach): Remove.
5791 (init_aix_thread_ops): Don't set to_attach.
5792 (_initialize_aix_thread): Register inferior_created observer.
5793 * corelow.c (init_core_ops): Don't set to_attach or
5794 to_create_inferior.
5795 * exec.c (init_exec_ops): Don't set to_attach or
5796 to_create_inferior.
5797 * infcmd.c (run_command_1): Use find_run_target. Make direct
5798 target calls.
5799 (attach_command): Use find_attach_target. Make direct target
5800 calls.
5801 * record-btrace.c (init_record_btrace_ops): Don't set
5802 to_create_inferior.
5803 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5804 Remove.
5805 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5806 set to_create_inferior.
5807 * target.c (complete_target_initialization): Add assertion.
5808 (target_create_inferior): Remove.
5809 (find_default_attach, find_default_create_inferior): Remove.
5810 (find_attach_target, find_run_target): New functions.
5811 (find_default_is_async_p, find_default_can_async_p)
5812 (target_supports_non_stop, target_attach): Remove.
5813 (init_dummy_target): Don't set to_create_inferior or
5814 to_supports_non_stop.
5815 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5816 TARGET_DEFAULT_FUNC.
5817 <to_create_inferior>: Add comment.
5818 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5819 TARGET_DEFAULT_RETURN.
5820 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5821 (find_attach_target, find_run_target): Declare.
5822 (target_create_inferior): Remove.
5823 (target_has_execution_1): Update comment.
5824 (target_supports_non_stop): Remove.
5825 * target-delegates.c: Rebuild.
5826
91f83b02
PA
58272014-03-12 Pedro Alves <palves@redhat.com>
5828
5829 * inf-child.h: Update comment to not mention Unix.
5830
f1aea813
PA
58312014-03-12 Pedro Alves <palves@redhat.com>
5832
5833 * inf-child.c: Update top comment to not mention Unix. Add
5834 generic comment describing how this target is meant to be used.
5835 (inf_child_post_attach, inf_child_post_startup_inferior)
5836 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5837 Unix in comment.
5838
ee8e9165
PA
58392014-03-12 Pedro Alves <palves@redhat.com>
5840
5841 * nto-procfs.c: Include inf-child.h.
5842 (procfs_ops): Delete global.
5843 (procfs_can_run): Delete method.
5844 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5845 target pointer instead of referencing procfs_ops.
5846 (procfs_prepare_to_store): Delete.
5847 (init_procfs_ops): Delete function.
5848 (procfs_target): New function, based on init_procfs_ops, but
5849 inherit inf_child_target.
5850 (_initialize_procfs): Use procfs_target.
5851
51a9c8c5
PA
58522014-03-12 Pedro Alves <palves@redhat.com>
5853
5854 * windows-nat.c: Include inf-child.h.
5855 (windows_ops): Delete global.
5856 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5857 methods.
5858 (init_windows_ops): Delete function.
5859 (windows_target): New function, based on init_windows_ops, but
5860 inherit inf_child_target.
5861 (_initialize_windows_nat): Use windows_target. Install x86
5862 specific target methods here.
5863
c1966e26
DE
58642014-03-10 Doug Evans <xdje42@gmail.com>
5865
5866 * guile/guile.c (call_initialize_gdb_module): New function.
5867 (initialize_guile): Replace call to scm_init_guile with call to
5868 scm_with_guile.
5869
023db19c
JB
58702014-03-10 Joel Brobecker <brobecker@adacore.com>
5871
5872 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5873 in call to TYPE_CODE macro.
5874
5ec18f2b
JG
58752014-03-10 Jerome Guitton <guitton@adacore.com>
5876
8668be63
JB
5877 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5878 Resolve tagged types to full view.
5ec18f2b 5879
7d03f2eb
HZ
58802014-03-10 Hui Zhu <hui@codesourcery.com>
5881
5882 * target.h (target_insert_breakpoint): Remove "hardware" from its
5883 comments.
5884
c5164cbc
DE
58852014-03-07 Doug Evans <dje@google.com>
5886
5887 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5888
c4a3fee2
DE
58892014-03-07 Doug Evans <dje@google.com>
5890
5891 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5892 Remove unused local comp_dir_attr. Assert exactly one of
5893 stub_comp_unit_die, stub_comp_dir is non-NULL.
5894
3156469c
JB
58952014-03-07 Joel Brobecker <brobecker@adacore.com>
5896
5897 * target.h (complete_target_initialization, add_target):
5898 Add comment.
5899
c1a7b7c6
PA
59002014-03-07 Pedro Alves <palves@redhat.com>
5901
5902 * go32-nat.c: Include inf-child.h.
5903 (go32_ops): Delete global.
5904 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5905 Delete methods.
5906 (go32_create_inferior): Push the passed in target pointer instead
5907 of referencing go32_ops.
5908 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5909 (go32_target): New function, based on init_go32_ops, but inherit
5910 inf_child_target.
5911 (_initialize_go32_nat): Use go32_target. Move parts of
5912 init_go32_ops here.
5913
d3c1a85f
JB
59142014-03-06 Joel Brobecker <brobecker@adacore.com>
5915
5916 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5917 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5918 SYMBOL_VALUE_ADDRESS.
5919 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5920
5fa1d40e
YQ
59212014-03-06 Yao Qi <yao@codesourcery.com>
5922
5923 * breakpoint.c (get_tracepoint_by_number): Remove argument
5924 optional_p. All callers updated. Adjust comments. Update
5925 output message.
5926 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5927
0c13193f
YQ
59282014-03-06 Yao Qi <yao@codesourcery.com>
5929
5930 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5931 early if get_number returns zero. Use 'p' instead of 'args'.
5932
2217da06
YQ
59332014-03-06 Yao Qi <yao@codesourcery.com>
5934
5935 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5936 message.
5937
cc3da688
YQ
59382014-03-06 Yao Qi <yao@codesourcery.com>
5939
5940 PR breakpoints/16508
5941 * tracepoint.c (check_trace_running): New function.
5942 (trace_find_command): Move code to check_trace_running and
5943 call check_trace_running.
5944 (trace_find_pc_command): Likewise.
5945 (trace_find_tracepoint_command): Likewise.
5946 (trace_find_line_command): Likewise.
5947 (trace_find_range_command): Likewise.
5948 * tracepoint.h (check_trace_running): Likewise.
5949 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5950
6a5f844b
YQ
59512014-03-06 Yao Qi <yao@codesourcery.com>
5952
5953 * target.h (struct target_ops) <to_traceframe_info>: Use
5954 TARGET_DEFAULT_NORETURN (tcomplain ()).
5955 * target-delegates.c: Regenerated.
5956
0f26cec1
PA
59572014-03-05 Pedro Alves <palves@redhat.com>
5958
5959 PR gdb/16575
5960 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5961 void. Update comment.
5962 (dcache_xfer_memory): Delete.
5963 (dcache_read_memory_partial): New, based on the read bits of
5964 dcache_xfer_memory.
5965 (dcache_update): Add status parameter. Use ULONGEST for len, and
5966 adjust. Discard cache lines if the reason for the update was
5967 error.
5968 * dcache.h (dcache_xfer_memory): Delete declaration.
5969 (dcache_read_memory_partial): New declaration.
5970 (dcache_update): Update prototype.
5971 * target.c (raw_memory_xfer_partial): Update the dcache here.
5972 (memory_xfer_partial_1): Don't handle dcache writes here.
5973
b2b255bd
MF
59742014-03-05 Mike Frysinger <vapier@gentoo.org>
5975
5976 * remote-sim.c (gdbsim_load): Add const to prog.
5977
5d9cf8a4
TT
59782014-03-03 Tom Tromey <tromey@redhat.com>
5979
5980 * elfread.c (probe_key): Change to bfd_data.
5981 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5982 now per-BFD, not per-objfile.
5983 * stap-probe.c (stap_probe_destroy): Update comment.
5984 (handle_stap_probe): Allocate on the per-BFD obstack.
5985
729662a5
TT
59862014-03-03 Tom Tromey <tromey@redhat.com>
5987
5988 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5989 * breakpoint.c (create_longjmp_master_breakpoint): Use
5990 get_probe_address.
5991 (add_location_to_breakpoint, bkpt_probe_insert_location)
5992 (bkpt_probe_remove_location): Update.
5993 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5994 * elfread.c (elf_symfile_relocate_probe): Remove.
5995 (elf_probe_fns): Update.
5996 (insert_exception_resume_breakpoint): Change type of "probe"
5997 parameter to bound_probe.
5998 (check_exception_resume): Update.
5999 * objfiles.c (objfile_relocate1): Don't relocate probes.
6000 * probe.c (bound_probe_s): New typedef.
6001 (parse_probes): Use get_probe_address. Set sal's objfile.
6002 (find_probe_by_pc): Return a bound_probe.
6003 (collect_probes): Return a VEC(bound_probe_s).
6004 (compare_probes): Update.
6005 (gen_ui_out_table_header_info): Change type of "probes"
6006 parameter. Update.
6007 (info_probes_for_ops): Update.
6008 (get_probe_address): New function.
6009 (probe_safe_evaluate_at_pc): Update.
6010 * probe.h (struct probe_ops) <get_probe_address>: New field.
6011 <set_semaphore, clear_semaphore>: Add objfile parameter.
6012 (struct probe) <objfile>: Remove field.
6013 <arch>: New field.
6014 <address>: Update comment.
6015 (struct bound_probe): New.
6016 (find_probe_by_pc): Return a bound_probe.
6017 (get_probe_address): Declare.
6018 * solib-svr4.c (struct probe_and_action) <address>: New field.
6019 (hash_probe_and_action, equal_probe_and_action): Update.
6020 (register_solib_event_probe): Add address parameter.
6021 (solib_event_probe_at): Update.
6022 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6023 get_probe_address.
6024 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6025 (stap_get_probe_address): New function.
6026 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6027 (compile_probe_arg): Update.
6028 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6029 address.
6030 (handle_stap_probe): Don't relocate the probe.
6031 (stap_relocate): Remove.
6032 (stap_gen_info_probes_table_values): Update.
6033 (stap_probe_ops): Remove stap_relocate.
6034 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6035 (debug_sym_probe_fns): Update.
6036 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6037 * symtab.c (init_sal): Use memset.
6038 * symtab.h (struct symtab_and_line) <objfile>: New field.
6039 * tracepoint.c (start_tracing, stop_tracing): Update.
6040
ff887920
TT
60412014-03-03 Tom Tromey <tromey@redhat.com>
6042
6043 * probe.h (parse_probes, find_probe_by_pc)
6044 (find_probes_in_objfile): Fix comments.
6045
f0407826
DE
60462014-03-02 Doug Evans <xdje42@gmail.com>
6047
6048 * infrun.c (handle_signal_stop): Replace test for
6049 TARGET_WAITKIND_STOPPED with an assert.
6050
35e6a711
DE
60512014-03-02 Doug Evans <xdje42@gmail.com>
6052
6053 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6054
667f9d0b
DE
60552014-03-02 Doug Evans <xdje42@gmail.com>
6056
6057 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6058
dc92ace0
MK
60592014-03-01 Mark Kettenis <kettenis@gnu.org>
6060
6061 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6062
a900370f
MK
60632014-03-01 Mark Kettenis <kettenis@gnu.org>
6064
6065 * i386obsd-nat.c: Include "obsd-nat.h".
6066 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6067 add_target.
6068 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6069
b72a7981
MK
60702014-03-01 Mark Kettenis <kettenis@gnu.org>
6071
6072 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6073
96c70aba
MK
60742014-03-01 Mark Kettenis <kettenis@gnu.org>
6075
6076 * mips64obsd-nat.c: Include "obsd-nath".
6077 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6078 add_target
6079 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6080
874a80af
MK
60812014-03-01 Mark Kettenis <kettenis@gnu.org>
6082
8fd408f1
MK
6083 * amd64obsd-nat.c: Include "obsd-nat,h.
6084 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6085 add_target.
874a80af
MK
6086 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6087
9cf95373
SC
60882014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6089
6090 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6091 (find_overload_match): Update call to find_oload_champ.
6092 (find_oload_champ_namespace_loop): Likewise
6093
863e4da4
MK
60942014-02-28 Mark Kettenis <kettenis@gnu.org>
6095
025cac40
MK
6096 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6097
1ed586ce
MK
6098 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6099 * config/sparc/obsd64.mh: New file.
6100 * sparc64obsd-nat.c: New file.
6101
863e4da4
MK
6102 * obsd-nat.h: New file.
6103 * obsd-nat.c: New file.
6104 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6105 (ALLDEPFILES): Add obsd-nat.c.
6106
89de4da4
TT
61072014-02-28 Tom Tromey <tromey@redhat.com>
6108
6109 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6110 * cli-out.h (cli_ui_out_impl): Now const.
6111 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6112 * ui-out.c (struct ui_out) <impl>: Now const.
6113 (default_ui_out_impl): Now const.
6114 (ui_out_new): Make 'impl' parameter const.
6115 * ui-out.h (ui_out_new): Update.
6116
c725e7b6
MK
61172014-02-27 Mark Kettenis <kettenis@gnu.org>
6118
6119 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6120
670b46b3
MK
61212014-02-27 Mark Kettenis <kettenis@gnu.org>
6122
6123 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6124
c91550fc
JK
61252014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6126
6127 Additional PR 8882 fix.
6128 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6129
2fa0369e
PA
61302014-02-27 Pedro Alves <palves@redhat.com>
6131
6132 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6133 isn't set.
6134
d632a097
PA
61352014-02-27 Pedro Alves <palves@redhat.com>
6136
6137 PR 12702
6138 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6139 * nat/linux-waitpid.c: Include string.h.
6140 (status_to_str): Moved here and made extern.
6141 * nat/linux-waitpid.h (status_to_str): New declaration.
6142
2ebd5a35
HZ
61432014-02-27 Hui Zhu <hui@codesourcery.com>
6144
6145 PR 12702
6146 * infrun.c (ptid_match): Move ...
6147 * common/ptid.c (ptid_match): ... here.
6148 * inferior.h (ptid_match): Move ...
6149 * common/ptid.h (ptid_match): ... here.
6150
3cdd631f
MK
61512014-02-27 Mark Kettenis <kettenis@gnu.org>
6152
6153 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6154 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6155 gdb_target_obs.
6156
bee30a64
MK
61572014-02-27 Mark Kettenis <kettenis@gnu.org>
6158
6159 * obsd-tdep.c (obsd_auxv_parse): New function.
6160 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6161
6162 * gdbarch.sh (auxv_parse): New.
6163 * gdbarch.h: Regenerated.
6164 * gdbarch.c: Regenerated.
6165 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6166
7a5a839f
LC
61672014-02-26 Ludovic Courtès <ludo@gnu.org>
6168
6169 * guile/scm-value.c (gdbscm_history_append_x): New function.
6170 (value_functions): Add it.
6171
31aa7e4e
JB
61722014-02-27 Joel Brobecker <brobecker@adacore.com>
6173
6174 * dwarf2read.c (attr_value_as_address): New function.
6175 (dwarf2_find_base_address, read_call_site_scope): Use
6176 attr_value_as_address in place of DW_ADDR.
6177 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6178 the low and high addresses. Slight rework of the handling
6179 of the high pc being a constant form, and limit it to
6180 DWARF verson 4 or higher.
6181 (dwarf2_record_block_ranges): Likewise.
6182 (read_partial_die): Likewise.
6183 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6184
9b333ba3
TT
61852014-02-26 Tom Tromey <tromey@redhat.com>
6186
6187 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6188
5f6cac40
TT
61892014-02-26 Tom Tromey <tromey@redhat.com>
6190
6191 * elfread.c (elf_read_minimal_symbols): Return early if
6192 minimal symbols have already been read. Add "ei" parameter.
6193 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6194 * minsyms.c (prim_record_minimal_symbol_full): Update.
6195 * objfiles.h (struct objstats) <n_minsyms>: Move...
6196 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6197 * symmisc.c (print_objfile_statistics): Update.
6198
2750ef27
TT
61992014-02-26 Tom Tromey <tromey@redhat.com>
6200
6201 * elfread.c (elf_read_minimal_symbols): New function, from
6202 elf_symfile_read.
6203 (elf_symfile_read): Call it.
6204
34643a32
TT
62052014-02-26 Tom Tromey <tromey@redhat.com>
6206
6207 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6208 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6209 (lookup_minimal_symbol_solib_trampoline)
6210 (lookup_minimal_symbol_by_pc_section_1)
6211 (lookup_minimal_symbol_and_objfile): Update.
6212 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6213 Don't allocate a minimal symbol if minsyms have already been read.
6214 (build_minimal_symbol_hash_tables): Update.
6215 (install_minimal_symbols): Do nothing if minsyms already read.
6216 Use the per-BFD obstack.
6217 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6218 * objfiles.c (allocate_objfile): Call
6219 terminate_minimal_symbol_table later.
6220 (have_minimal_symbols): Update.
6221 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6222 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6223 Move from struct objfile.
6224 <minsyms_read>: New field.
6225 (struct objfile) <msymbols, minimal_symbol_count,
6226 msymbol_hash, msymbol_demangled_hash>: Move.
6227 (ALL_OBJFILE_MSYMBOLS): Update.
6228 * symfile.c (read_symbols): Set minsyms_read.
6229 (reread_symbols): Update.
6230 * symmisc.c (dump_objfile, dump_msymbols): Update.
6231
2273f0ac
TT
62322014-02-26 Tom Tromey <tromey@redhat.com>
6233
6234 * minsyms.c (msymbols_sort): Remove.
6235 * minsyms.h (msymbols_sort): Remove.
6236 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6237 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6238 * elfread.c (elf_symtab_read): Don't add section offsets.
6239 * xcoffread.c (record_minimal_symbol): Don't add section offset
6240 to minimal symbol address.
6241 * somread.c (text_offset, data_offset): Remove.
6242 (som_symtab_read): Don't add section offsets to minimal symbol
6243 addresses.
6244 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6245 Don't add section offsets to minimal symbols.
6246 * coffread.c (coff_symtab_read): Don't add section offsets
6247 to minimal symbol addresses.
6248 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6249 to minimal symbol addresses.
6250 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6251 section offset to minimal symbol addresses.
6252 * mdebugread.c (parse_partial_symbols): Don't add section
6253 offset to minimal symbol addresses.
6254 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6255 offset to minimal symbol addresses.
6256
77e371c0
TT
62572014-02-26 Tom Tromey <tromey@redhat.com>
6258
6259 * ada-lang.c (ada_main_name): Update.
6260 (ada_add_standard_exceptions): Update.
6261 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6262 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6263 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6264 * auxv.c (ld_so_xfer_auxv): Update.
6265 * avr-tdep.c (avr_scan_prologue): Update.
6266 * ax-gdb.c (gen_var_ref): Update.
6267 * blockframe.c (get_pc_function_start)
6268 (find_pc_partial_function_gnu_ifunc): Update.
6269 * breakpoint.c (create_overlay_event_breakpoint)
6270 (create_longjmp_master_breakpoint)
6271 (create_std_terminate_master_breakpoint)
6272 (create_exception_master_breakpoint): Update.
6273 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6274 * c-valprint.c (c_val_print): Update.
6275 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6276 * common/agent.c (agent_look_up_symbols): Update.
6277 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6278 * dwarf2loc.c (call_site_to_target_addr): Update.
6279 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6280 * elfread.c (elf_gnu_ifunc_record_cache)
6281 (elf_gnu_ifunc_resolve_by_got): Update.
6282 * findvar.c (default_read_var_value): Update.
6283 * frame.c (inside_main_func): Update.
6284 * frv-tdep.c (frv_frame_this_id): Update.
6285 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6286 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6287 Update.
6288 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6289 (hppa_hpux_find_dummy_bpaddr): Update.
6290 * hppa-tdep.c (hppa_symbol_address): Update.
6291 * infcmd.c (until_next_command): Update.
6292 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6293 Update.
6294 * linespec.c (minsym_found, add_minsym): Update.
6295 * linux-nat.c (get_signo): Update.
6296 * linux-thread-db.c (inferior_has_bug): Update.
6297 * m32c-tdep.c (m32c_return_value)
6298 (m32c_m16c_address_to_pointer): Update.
6299 * m32r-tdep.c (m32r_frame_this_id): Update.
6300 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6301 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6302 * maint.c (maintenance_translate_address): Update.
6303 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6304 (frob_address): New function.
6305 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6306 frob_address. Rename parameter to "pc_in".
6307 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6308 addresses.
6309 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6310 Update.
6311 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6312 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6313 * objc-lang.c (find_objc_msgsend): Update.
6314 * objfiles.c (objfile_relocate1): Update.
6315 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6316 * p-valprint.c (pascal_val_print): Update.
6317 * parse.c (write_exp_msymbol): Update.
6318 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6319 (ppc_elfv2_skip_entrypoint): Update.
6320 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6321 * printcmd.c (build_address_symbolic, msym_info)
6322 (address_info): Update.
6323 * proc-service.c (ps_pglobal_lookup): Update.
6324 * psymtab.c (find_pc_sect_psymtab_closer)
6325 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6326 Change msymbol parameter to bound_minimal_symbol.
6327 * ravenscar-thread.c (get_running_thread_id): Update.
6328 * remote.c (remote_check_symbols): Update.
6329 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6330 address.
6331 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6332 * solib-dsbt.c (lm_base): Update.
6333 * solib-frv.c (lm_base, main_got): Update.
6334 * solib-irix.c (locate_base): Update.
6335 * solib-som.c (som_solib_create_inferior_hook)
6336 (link_map_start): Update.
6337 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6338 * solib-svr4.c (elf_locate_base, enable_break): Update.
6339 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6340 (flush_ea_cache): Update.
6341 * stabsread.c (define_symbol, scan_file_globals): Update.
6342 * stack.c (find_frame_funname): Update.
6343 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6344 (debug_qf_find_pc_sect_symtab): Update.
6345 * symfile.c (simple_read_overlay_table)
6346 (simple_overlay_update): Update.
6347 * symfile.h (struct quick_symbol_functions)
6348 <find_pc_sect_symtab>: Change type of msymbol to
6349 bound_minimal_symbol.
6350 * symmisc.c (dump_msymbols): Update.
6351 * symtab.c (find_pc_sect_symtab_via_partial)
6352 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6353 (search_symbols, print_msymbol_info): Update.
6354 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6355 (MSYMBOL_VALUE_ADDRESS): Redefine.
6356 (BMSYMBOL_VALUE_ADDRESS): New macro.
6357 * tracepoint.c (scope_info): Update.
6358 * tui/tui-disasm.c (tui_find_disassembly_address)
6359 (tui_get_begin_asm_address): Update.
6360 * valops.c (find_function_in_inferior): Update.
6361 * value.c (value_static_field, value_fn_field): Update.
6362
3b7344d5
TT
63632014-02-26 Tom Tromey <tromey@redhat.com>
6364
6365 * ada-lang.c (ada_update_initial_language): Update.
6366 (ada_main_name, ada_has_this_exception_support): Update.
6367 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6368 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6369 * arm-tdep.c (arm_skip_stub): Update.
6370 * auxv.c (ld_so_xfer_auxv): Update.
6371 * avr-tdep.c (avr_scan_prologue): Update.
6372 * ax-gdb.c (gen_var_ref): Update.
6373 * breakpoint.c (struct breakpoint_objfile_data)
6374 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6375 type to bound_minimal_symbol.
6376 (create_overlay_event_breakpoint)
6377 (create_longjmp_master_breakpoint)
6378 (create_std_terminate_master_breakpoint)
6379 (create_exception_master_breakpoint): Update.
6380 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6381 * c-exp.y (classify_name): Update.
6382 * coffread.c (coff_symfile_read): Update.
6383 * common/agent.c (agent_look_up_symbols): Update.
6384 * d-lang.c (d_main_name): Update.
6385 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6386 * dec-thread.c (enable_dec_thread): Update.
6387 * dwarf2loc.c (call_site_to_target_addr): Update.
6388 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6389 * eval.c (evaluate_subexp_standard): Update.
6390 * findvar.c (struct minsym_lookup_data) <result>: Change type
6391 to bound_minimal_symbol.
6392 <objfile>: Remove.
6393 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6394 * frame.c (inside_main_func): Update.
6395 * frv-tdep.c (frv_frame_this_id): Update.
6396 * gcore.c (call_target_sbrk): Update.
6397 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6398 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6399 Update.
6400 * go-lang.c (go_main_name): Update.
6401 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6402 (hppa_hpux_find_import_stub_for_addr): Update.
6403 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6404 Update. Change return type.
6405 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6406 type.
6407 * jit.c (jit_breakpoint_re_set_internal): Update.
6408 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6409 Update.
6410 * linux-nat.c (get_signo): Update.
6411 * linux-thread-db.c (inferior_has_bug): Update
6412 * m32c-tdep.c (m32c_return_value)
6413 (m32c_m16c_address_to_pointer): Update.
6414 * m32r-tdep.c (m32r_frame_this_id): Update.
6415 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6416 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6417 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6418 lookup_minimal_symbol. Change return type.
6419 (lookup_minimal_symbol): Remove.
6420 (lookup_bound_minimal_symbol): Update.
6421 (lookup_minimal_symbol_text): Change return type.
6422 (lookup_minimal_symbol_solib_trampoline): Change return type.
6423 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6424 (lookup_minimal_symbol_solib_trampoline): Change return type.
6425 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6426 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6427 (value_nsstring, find_imps): Update.
6428 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6429 * p-lang.c (pascal_main_name): Update.
6430 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6431 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6432 * proc-service.c (ps_pglobal_lookup): Update.
6433 * ravenscar-thread.c (get_running_thread_msymbol): Change
6434 return type.
6435 (has_ravenscar_runtime, get_running_thread_id): Update.
6436 * remote.c (remote_check_symbols): Update.
6437 * sol-thread.c (ps_pglobal_lookup): Update.
6438 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6439 * solib-dsbt.c (lm_base): Update.
6440 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6441 Update.
6442 * solib-irix.c (locate_base): Update.
6443 * solib-som.c (som_solib_create_inferior_hook)
6444 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6445 Update.
6446 * solib-spu.c (spu_enable_break): Update.
6447 * solib-svr4.c (elf_locate_base, enable_break): Update.
6448 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6449 (flush_ea_cache): Update.
6450 * stabsread.c (define_symbol): Update.
6451 * symfile.c (simple_read_overlay_table): Update.
6452 * symtab.c (find_pc_sect_line): Update.
6453 * tracepoint.c (scope_info): Update.
6454 * tui-disasm.c (tui_get_begin_asm_address): Update.
6455 * value.c (value_static_field): Update.
6456
40c1a007
TT
64572014-02-26 Tom Tromey <tromey@redhat.com>
6458
6459 * minsyms.c (prim_record_minimal_symbol_full): Use
6460 SET_MSYMBOL_VALUE_ADDRESS.
6461 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6462 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6463 SET_MSYMBOL_VALUE_ADDRESS.
6464 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6465 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6466
efd66ac6
TT
64672014-02-26 Tom Tromey <tromey@redhat.com>
6468
6469 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6470 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6471 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6472 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6473 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6474 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6475 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6476 * ada-lang.c (ada_main_name): Update.
6477 (ada_lookup_simple_minsym): Update.
6478 (ada_make_symbol_completion_list): Update.
6479 (ada_add_standard_exceptions): Update.
6480 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6481 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6482 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6483 * arm-tdep.c (skip_prologue_function): Update.
6484 (arm_skip_stack_protector, arm_skip_stub): Update.
6485 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6486 (arm_wince_skip_main_prologue): Update.
6487 * auxv.c (ld_so_xfer_auxv): Update.
6488 * avr-tdep.c (avr_scan_prologue): Update.
6489 * ax-gdb.c (gen_var_ref): Update.
6490 * block.c (call_site_for_pc): Update.
6491 * blockframe.c (get_pc_function_start): Update.
6492 (find_pc_partial_function_gnu_ifunc): Update.
6493 * breakpoint.c (create_overlay_event_breakpoint): Update.
6494 (create_longjmp_master_breakpoint): Update.
6495 (create_std_terminate_master_breakpoint): Update.
6496 (create_exception_master_breakpoint): Update.
6497 (resolve_sal_pc): Update.
6498 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6499 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6500 Update.
6501 * c-valprint.c (c_val_print): Update.
6502 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6503 * coffread.c (coff_symfile_read): Update.
6504 * common/agent.c (agent_look_up_symbols): Update.
6505 * dbxread.c (find_stab_function_addr): Update.
6506 (end_psymtab): Update.
6507 * dwarf2loc.c (call_site_to_target_addr): Update.
6508 (func_verify_no_selftailcall): Update.
6509 (tailcall_dump): Update.
6510 (call_site_find_chain_1): Update.
6511 (dwarf_expr_reg_to_entry_parameter): Update.
6512 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6513 (elf_gnu_ifunc_resolve_by_got): Update.
6514 * f-valprint.c (info_common_command): Update.
6515 * findvar.c (read_var_value): Update.
6516 * frame.c (get_prev_frame_1): Update.
6517 (inside_main_func): Update.
6518 * frv-tdep.c (frv_skip_main_prologue): Update.
6519 (frv_frame_this_id): Update.
6520 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6521 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6522 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6523 (gnuv3_skip_trampoline): Update.
6524 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6525 (hppa64_hpux_in_solib_call_trampoline): Update.
6526 (hppa_hpux_skip_trampoline_code): Update.
6527 (hppa64_hpux_search_dummy_call_sequence): Update.
6528 (hppa_hpux_find_import_stub_for_addr): Update.
6529 (hppa_hpux_find_dummy_bpaddr): Update.
6530 * hppa-tdep.c (hppa_symbol_address)
6531 (hppa_lookup_stub_minimal_symbol): Update.
6532 * i386-tdep.c (i386_skip_main_prologue): Update.
6533 (i386_pe_skip_trampoline_code): Update.
6534 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6535 * infcall.c (get_function_name): Update.
6536 * infcmd.c (until_next_command): Update.
6537 * jit.c (jit_breakpoint_re_set_internal): Update.
6538 (jit_inferior_init): Update.
6539 * linespec.c (minsym_found): Update.
6540 (add_minsym): Update.
6541 * linux-fork.c (info_checkpoints_command): Update.
6542 * linux-nat.c (get_signo): Update.
6543 * linux-thread-db.c (inferior_has_bug): Update.
6544 * m32c-tdep.c (m32c_return_value): Update.
6545 (m32c_m16c_address_to_pointer): Update.
6546 (m32c_m16c_pointer_to_address): Update.
6547 * m32r-tdep.c (m32r_frame_this_id): Update.
6548 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6549 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6550 * maint.c (maintenance_translate_address): Update.
6551 * minsyms.c (add_minsym_to_hash_table): Update.
6552 (add_minsym_to_demangled_hash_table): Update.
6553 (msymbol_objfile): Update.
6554 (lookup_minimal_symbol): Update.
6555 (iterate_over_minimal_symbols): Update.
6556 (lookup_minimal_symbol_text): Update.
6557 (lookup_minimal_symbol_by_pc_name): Update.
6558 (lookup_minimal_symbol_solib_trampoline): Update.
6559 (lookup_minimal_symbol_by_pc_section_1): Update.
6560 (lookup_minimal_symbol_and_objfile): Update.
6561 (prim_record_minimal_symbol_full): Update.
6562 (compare_minimal_symbols): Update.
6563 (compact_minimal_symbols): Update.
6564 (build_minimal_symbol_hash_tables): Update.
6565 (install_minimal_symbols): Update.
6566 (terminate_minimal_symbol_table): Update.
6567 (find_solib_trampoline_target): Update.
6568 (minimal_symbol_upper_bound): Update.
6569 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6570 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6571 (mips_skip_pic_trampoline_code): Update.
6572 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6573 * objc-lang.c (selectors_info): Update.
6574 (classes_info): Update.
6575 (find_methods): Update.
6576 (find_imps): Update.
6577 (find_objc_msgsend): Update.
6578 * objfiles.c (objfile_relocate1): Update.
6579 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6580 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6581 * p-valprint.c (pascal_val_print): Update.
6582 * parse.c (write_exp_msymbol): Update.
6583 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6584 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6585 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6586 * printcmd.c (build_address_symbolic): Update.
6587 (sym_info): Update.
6588 (address_info): Update.
6589 * proc-service.c (ps_pglobal_lookup): Update.
6590 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6591 (find_pc_sect_psymtab): Update.
6592 * python/py-framefilter.c (py_print_frame): Update.
6593 * ravenscar-thread.c (get_running_thread_id): Update.
6594 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6595 Update.
6596 * remote.c (remote_check_symbols): Update.
6597 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6598 (rs6000_skip_trampoline_code): Update.
6599 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6600 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6601 * solib-dsbt.c (lm_base): Update.
6602 * solib-frv.c (lm_base): Update.
6603 (main_got): Update.
6604 * solib-irix.c (locate_base): Update.
6605 * solib-som.c (som_solib_create_inferior_hook): Update.
6606 (som_solib_desire_dynamic_linker_symbols): Update.
6607 (link_map_start): Update.
6608 * solib-spu.c (spu_enable_break): Update.
6609 (ocl_enable_break): Update.
6610 * solib-svr4.c (elf_locate_base): Update.
6611 (enable_break): Update.
6612 * spu-tdep.c (spu_get_overlay_table): Update.
6613 (spu_catch_start): Update.
6614 (flush_ea_cache): Update.
6615 * stabsread.c (define_symbol): Update.
6616 (scan_file_globals): Update.
6617 * stack.c (find_frame_funname): Update.
6618 (frame_info): Update.
6619 * symfile.c (simple_read_overlay_table): Update.
6620 (simple_overlay_update): Update.
6621 * symmisc.c (dump_msymbols): Update.
6622 * symtab.c (fixup_section): Update.
6623 (find_pc_sect_line): Update.
6624 (skip_prologue_sal): Update.
6625 (search_symbols): Update.
6626 (print_msymbol_info): Update.
6627 (rbreak_command): Update.
6628 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6629 (completion_list_objc_symbol): Update.
6630 (default_make_symbol_completion_list_break_on): Update.
6631 * tracepoint.c (scope_info): Update.
6632 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6633 (tui_get_begin_asm_address): Update.
6634 * valops.c (find_function_in_inferior): Update.
6635 * value.c (value_static_field): Update.
6636 (value_fn_field): Update.
6637
50e65b17
TT
66382014-02-26 Tom Tromey <tromey@redhat.com>
6639
6640 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6641 bound minimal symbols. Move code that knows about minsym
6642 table layout...
6643 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6644 function.
6645 * minsyms.h (minimal_symbol_upper_bound): Declare.
6646 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6647 minimal_symbol_upper_bound.
6648
1b588015
JB
66492014-02-27 Joel Brobecker <brobecker@adacore.com>
6650
6651 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6652 Use the type's name if its basic type does not have a tag.
6653
dbb9c2b1
JB
66542014-02-27 Joel Brobecker <brobecker@adacore.com>
6655
6656 * dwarf2read.c (read_subrange_type): Add comment.
6657
55426c9d
JB
66582014-02-27 Joel Brobecker <brobecker@adacore.com>
6659
6660 * dwarf2read.c (update_enumeration_type_from_children): New
6661 function, mostly extracted from process_structure_scope.
6662 (read_enumeration_type): Call update_enumeration_type_from_children.
6663 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6664 and flag_flag_enum fields.
6665
f2fce0ca
PA
66662014-02-26 Pedro Alves <palves@redhat.com>
6667
6668 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6669 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6670 to_xfer_partial method.
6671
7a44e40e
PA
66722014-02-26 Pedro Alves <palves@redhat.com>
6673
6674 * target.c (complete_target_initialization): Don't install
6675 default_xfer_partial as to_xfer_partial hook.
6676 (nomemory): Delete.
6677 (update_current_target): Don't INHERIT nor de_fault
6678 deprecated_xfer_memory. Delete de_fault macro.
6679 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6680 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6681 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6682 field.
6683
bd265cd0
PA
66842014-02-26 Pedro Alves <palves@redhat.com>
6685
6686 * go32-nat.c (my_write_child): New function.
6687 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6688 (go32_xfer_partial): New function.
6689 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6690 Instead install a to_xfer_partial hook.
6691
9d46c4e5
PA
66922014-02-26 Pedro Alves <palves@redhat.com>
6693
6694 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6695 to_xfer_partial helper. Rewrite.
6696 (procfs_xfer_partial): New function.
6697 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6698 Install a to_xfer_partial hook.
6699
a1583b1f
PA
67002014-02-26 Pedro Alves <palves@redhat.com>
6701
6702 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6703 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6704 (m32r_xfer_partial): New function.
6705 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6706 Install a to_xfer_partial hook.
6707
6df1b29f
PA
67082014-02-26 Pedro Alves <palves@redhat.com>
6709
6710 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6711 helper.
6712 (mips_xfer_partial): New function.
6713 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6714 hook. Install a to_xfer_partial hook.
6715
dc53a7ad
JB
67162014-02-26 Joel Brobecker <brobecker@adacore.com>
6717
6718 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6719 * gdbtypes.c (create_array_type_with_stride): New function,
6720 renaming create_array_type, but with an added parameter
6721 called "bit_stride".
6722 (create_array_type): Re-implement using
6723 create_array_type_with_stride.
6724 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6725 and DW_AT_bit_stride attributes.
6726
12ab52e9
PA
67272014-02-26 Pedro Alves <palves@redhat.com>
6728
6729 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6730 task-specific breakpoints.
6731
d16461ae
PA
67322014-02-25 Pedro Alves <palves@redhat.com>
6733
6734 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6735 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6736
a8b16220
SS
67372014-02-25 Stan Shebs <stan@codesourcery.com>
6738
6739 * defs.h: Annotate comments for Doxygen.
6740
b9e795ee
TT
67412014-02-25 Tom Tromey <tromey@redhat.com>
6742
6743 * target.h (target_ignore): Don't declare.
6744 * target.c (target_ignore): Remove.
6745
849c862e
JK
67462014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6747
6748 PR gdb/16626
6749 * auto-load.c (auto_load_objfile_script_1): Change filename to
6750 debugfile.
6751
475109d8
JB
67522014-02-25 Joel Brobecker <brobecker@adacore.com>
6753
6754 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6755 documentation. Adjust prototype to match the target_ops
6756 to_xfer_partial method. Adjust implementation accordingly.
6757
e186c3bd
HZ
67582014-02-25 Hui Zhu <hui@codesourcery.com>
6759
6760 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6761 to_traceframe_info.
6762
6d451942
KB
67632014-02-25 Kevin Buettner <kevinb@redhat.com>
6764
041ab8b4 6765 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6766 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6767 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6768 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6769 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6770 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6771 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6772 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6773 New constants.
6774 (rl78_register_type): Use a data pointer type for SP and
6775 new pseudo registers mentioned above. Use a 16 bit integer
6776 type for all other register pairs.
6777 (rl78_register_name, rl78_g10_register_name): Update for
6778 new pseudo registers.
6779 (rl78_pseudo_register_read): Likewise.
6780 (rl78_pseudo_register_write): Likewise.
6781 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6782 to the newly added pseudo registers.
6783
eddf0bae
DE
67842014-02-24 Doug Evans <dje@google.com>
6785
6786 * value.c (record_latest_value): Fix comment.
6787 * printcmd.c (print_command_1): Remove code to handle -1 return from
6788 record_latest_value.
6789
e96027e0
PA
67902014-02-24 Pedro Alves <palves@redhat.com>
6791
6792 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6793 deprecated_xfer_memory hook.
6794 (procfs_xfer_partial): Call procfs_xfer_memory instead
6795 of the deprecated_xfer_memory target hook.
6796 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6797 helper.
6798
0837c976
YZ
67992014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6800
6801 * windows-nat.c (windows_xfer_shared_libraries): Return
6802 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6803 requested object is TARGET_OBJECT_LIBRARIES.
6804
bc113b4e
YQ
68052014-02-24 Yao Qi <yao@codesourcery.com>
6806
6807 * target.h (enum target_xfer_status)
6808 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6809 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6810 explicitly. New.
6811 * corefile.c (memory_error_message): User updated.
6812 * exec.c (section_table_read_available_memory): Likewise.
6813 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6814 * target.c (target_xfer_status_to_string): Likewise.
6815 (raw_memory_xfer_partial): Likewise.
6816 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6817 * valops.c (read_value_memory): Likewise.
6818 * exec.h: Update comments.
6819
01cb8804
YQ
68202014-02-24 Yao Qi <yao@codesourcery.com>
6821
6822 * target.c (target_xfer_status_to_string): Rename argument err
6823 to status.
6824 * target.h (target_xfer_status_to_string): Update declaration.
6825 Replace target_xfer_error_to_string with
6826 target_xfer_status_to_string in comment.
6827
93063aa6
YQ
68282014-02-24 Yao Qi <yao@codesourcery.com>
6829
6830 * mips-linux-nat.c (super_close): Update its type.
6831 (mips_linux_close): Pass 'self' to super_close.
6832
5c328c05
YQ
68332014-02-24 Yao Qi <yao@codesourcery.com>
6834
6835 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6836 * corefile.c (read_memory): Adjusted.
6837 * target.c (target_write_with_progress): Adjusted.
6838
f73023dd
YQ
68392014-02-23 Yao Qi <yao@codesourcery.com>
6840
6841 Revert two patches:
6842
6843 2013-10-25 Yao Qi <yao@codesourcery.com>
6844
6845 * remote.c (remote_traceframe_info): Return early if
6846 traceframe is not selected.
6847
6848 2013-07-19 Yao Qi <yao@codesourcery.com>
6849
6850 * target.c (update_current_target): Change the default action
6851 of 'to_traceframe_info' from tcomplain to return_zero.
6852 * target.h (struct target_ops) <to_traceframe_info>: Add more
6853 comments.
6854
5a2eb0ef
YQ
68552014-02-23 Yao Qi <yao@codesourcery.com>
6856
6857 * valops.c (read_value_memory): Rewrite it. Call
6858 target_xfer_partial in a loop.
6859 * exec.h (section_table_available_memory): Remove declaration.
6860 Move comments to ...
6861 * exec.c (section_table_available_memory): ... here. Make it
6862 static.
6863
1ee79381
YQ
68642014-02-23 Yao Qi <yao@codesourcery.com>
6865
6866 * exec.c (section_table_read_available_memory): New function.
6867 * exec.h (section_table_read_available_memory): Declare.
6868 * ctf.c (ctf_xfer_partial): Call
6869 section_table_read_available_memory.
6870 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6871
1ca49d37
YQ
68722014-02-23 Yao Qi <yao@codesourcery.com>
6873
6874 * ctf.c (ctf_xfer_partial): Move code to ...
6875 * exec.c (exec_read_partial_read_only): ... it. New function.
6876 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6877 * tracefile.c: Include "exec.h".
6878 * exec.h (exec_read_partial_read_only): Declare.
6879
a283690e
YQ
68802014-02-23 Yao Qi <yao@codesourcery.com>
6881
6882 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6883 (tfile_has_memory): Remove.
6884 (init_tfile_ops): Don't set fields to_has_all_memory and
6885 to_has_memory of tfile_ops.
6886 * tracefile.c (tracefile_has_all_memory): New function.
6887 (tracefile_has_memory): New function.
6888 (init_tracefile_ops): Initialize fields to_has_all_memory and
6889 to_has_memory of 'ops'.
6890
12e03cd0
YQ
68912014-02-23 Yao Qi <yao@codesourcery.com>
6892
6893 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6894 (ctf_thread_alive, ctf_get_trace_status): Remove.
6895 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6896 init_tracefile_ops.
6897 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6898 (tfile_has_stack, tfile_has_registers): Remove.
6899 (tfile_thread_alive): Remove.
6900 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6901 init_tracefile_ops.
6902 * tracefile.c (tracefile_has_stack): New function.
6903 (tracefile_has_registers): New function.
6904 (tracefile_thread_alive): New function.
6905 (tracefile_get_trace_status): New function.
6906 (init_tracefile_ops): New function.
6907 * tracefile.h (init_tracefile_ops): Declare.
6908
11395323
YQ
69092014-02-23 Yao Qi <yao@codesourcery.com>
6910
6911 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6912 (O_LARGEFILE): Likewise.
6913 (tfile_ops): Likewise.
6914 (TRACE_HEADER_SIZE): Likewise.
6915 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6916 (cur_data_size): Likewise.
6917 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6918 (tfile_close, tfile_files_info): Likewise.
6919 (tfile_get_trace_status): Likewise.
6920 (tfile_get_tracepoint_status): Likewise.
6921 (tfile_get_traceframe_address): Likewise.
6922 (tfile_trace_find, match_blocktype): Likewise.
6923 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6924 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6925 (tfile_get_trace_state_variable_value): Likewise.
6926 (tfile_has_all_memory, tfile_has_memory): Likewise.
6927 (tfile_has_stack, tfile_has_registers): Likewise.
6928 (tfile_thread_alive, build_traceframe_info): Likewise.
6929 (tfile_traceframe_info, init_tfile_ops): Likewise.
6930 (_initialize_tracepoint): Don't call init_tfile_ops
6931 and add_target_with_completer.
6932 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6933 exec.h, completer.h and filenames.h.
6934 (_initialize_tracefile_tfile): New function.
6935
7951c4eb
YQ
69362014-02-23 Yao Qi <yao@codesourcery.com>
6937
6938 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6939 tracefile-tfile.o.
6940 (HFILES_NO_SRCDIR): Add tracefile.h.
6941 * ctf.c: Include "tracefile.h".
6942 * tracefile.h: New file.
6943 * tracefile.c: New file
6944 * tracefile-tfile.c: New file.
6945 * tracepoint.c: Include "tracefile.h".
6946 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6947 (stop_reason_names): Add const.
6948 (trace_file_writer_xfree): Move it to tracefile.c.
6949 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6950 (trace_save_ctf): Likewise.
6951 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6952 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6953 (tfile_write_header, tfile_write_regblock_type): Likewise.
6954 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6955 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6956 (tfile_write_raw_data, tfile_end): Likewise.
6957 (tfile_trace_file_writer_new): Likewise.
6958 (free_uploaded_tp): Make it extern.
6959 (free_uploaded_tsv): Make it extern.
6960 (_initialize_tracepoint): Move code to register command 'tsave'
6961 to tracefile.c.
6962 * tracepoint.h (stop_reason_names): Declare.
6963 (struct trace_frame_write_ops): Move it to tracefile.h.
6964 (struct trace_file_write_ops): Likewise.
6965 (struct trace_file_writer): Likewise.
6966 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6967
184cd072
JK
69682014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6969
6970 PR gdb/16594
6971 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6972 process name.
6973 (get_cores_used_by_process): New parameter num_cores, use it.
6974 (linux_xfer_osdata_processes): Pass num_cores to it.
6975 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6976 process name.
6977
c63528fc
AK
69782014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6979
6980 * target.c (memory_xfer_partial): Fix length arg in call to
6981 breakpoint_xfer_memory.
6982
d7b30f67
SDJ
69832014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6984
6985 PR tdep/16397
6986 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6987 number comes after the + or - signs. Adjust length of register
6988 name to be extracted.
6989
8838afaf
TT
69902014-02-20 Tom Tromey <tromey@redhat.com>
6991
6992 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6993 (ada_varobj_ops): Mark "extern".
6994
05227d14
TT
69952014-02-20 Tom Tromey <tromey@redhat.com>
6996
6997 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6998
1254eefc
DE
69992014-02-20 Doug Evans <xdje42@gmail.com>
7000
7001 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7002 All callers updated.
7003 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7004 All callers updated.
7005 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7006 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7007
adde2bff
DE
70082014-02-20 lin zuojian <manjian2006@gmail.com>
7009 Joel Brobecker <brobecker@adacore.com>
7010 Doug Evans <xdje42@gmail.com>
7011
7012 PR symtab/16581
7013 * dwarf2read.c (struct die_info): New member in_process.
7014 (reset_die_in_process): New function.
7015 (process_die): Set it at the start, reset when returning.
7016 (inherit_abstract_dies): Only call process_die if origin_child_die
7017 not already being processed.
7018
3be75f87
JB
70192014-02-20 Joel Brobecker <brobecker@adacore.com>
7020
7021 * windows-nat.c (handle_unload_dll): Add function documentation.
7022 (do_initial_windows_stuff): Add comment explaining why we wait
7023 until after inferior initialization has finished before
7024 processing all DLLs.
7025
47f7ffdb
JB
70262014-02-20 Joel Brobecker <brobecker@adacore.com>
7027
7028 * windows-nat.c (get_module_name): Delete.
7029 (windows_get_exec_module_filename): New function, mostly
7030 inspired from get_module_name.
7031 (windows_pid_to_exec_file): Replace call to get_module_name
7032 by call to windows_get_exec_module_filename.
7033
1cd9feab
JB
70342014-02-20 Joel Brobecker <brobecker@adacore.com>
7035
7036 * windows-nat.c (handle_load_dll): Rewrite this function's
7037 introductory comment. Remove code using get_module_name
7038 to get the DLL's name.
7039
ea39ad35
JB
70402014-02-20 Joel Brobecker <brobecker@adacore.com>
7041
7042 * windows-nat.c (get_windows_debug_event): Ignore
7043 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7044 if windows_initialization_done == 0.
7045 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7046 Adjust implementation to always load all DLLs.
7047 (do_initial_windows_stuff): Replace call to
7048 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7049
95060284
JB
70502014-02-20 Joel Brobecker <brobecker@adacore.com>
7051
7052 * windows-nat.c (_initialize_windows_nat): Deprecate the
7053 "dll-symbols" command. Turn the "add-shared-symbol-files"
7054 and "assf" aliases into commands, and deprecate them as well.
7055 * NEWS: Add entry explaining that "dll-symbols" and its two
7056 aliases are now deprecated.
7057
8d4fdb12
JB
70582014-02-20 Joel Brobecker <brobecker@adacore.com>
7059
7060 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7061 new-line in debug string. Remove trailing spaces.
7062
1b281443
SS
70632014-02-19 Stan Shebs <stan@codesourcery.com>
7064
7065 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7066
f7bd0f78
SC
70672014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7068
7069 * NEWS: Add entry for the new feature
7070 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7071 and class values.
7072
399ebc3d
SS
70732014-02-19 Stan Shebs <stan@codesourcery.com>
7074
7075 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7076
c658158d
PA
70772014-02-19 Pedro Alves <palves@redhat.com>
7078
7079 * common/ptid.h (struct ptid): Mention that process_stratum
7080 targets should prefer ptid.lwp.
7081
ba348170
PA
70822014-02-19 Pedro Alves <palves@redhat.com>
7083
7084 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7085 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7086 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7087 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7088 store remote thread ids rather than ptid.tid.
7089 (_initialize_remote): Adjust.
7090
ac01945b
TT
70912014-02-19 Tom Tromey <tromey@redhat.com>
7092
7093 * target.c (target_get_unwinder): Rewrite.
7094 (target_get_tailcall_unwinder): Rewrite.
7095 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7096 (record_btrace_to_get_tailcall_unwinder): New function.
7097 (init_record_btrace_ops): Update.
7098 * target.h (struct target_ops) <to_get_unwinder,
7099 to_get_tailcall_unwinder>: Now function pointers. Use
7100 TARGET_DEFAULT_RETURN.
7101
8476dc92
TT
71022014-02-19 Tom Tromey <tromey@redhat.com>
7103
7104 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7105 argument.
7106 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7107
c0eca49f
TT
71082014-02-19 Tom Tromey <tromey@redhat.com>
7109
7110 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7111 directly.
7112 * target-delegates.c: Rebuild.
7113 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7114 TARGET_DEFAULT_FUNC.
7115 * target.c (default_target_decr_pc_after_break): Rename from
7116 forward_target_decr_pc_after_break. Simplify.
7117 (target_decr_pc_after_break): Rely on delegation.
7118
596b6b39
TT
71192014-02-19 Tom Tromey <tromey@redhat.com>
7120
7121 * target.c (update_current_target): Do not INHERIT to_doc or
7122 to_magic. Do not de_fault to_open or to_close.
7123
b427c1bc
TT
71242014-02-19 Tom Tromey <tromey@redhat.com>
7125
7126 * gcore.h (objfile_find_memory_regions): Declare.
7127 * gcore.c (objfile_find_memory_regions): No longer static. Add
7128 "self" argument.
7129 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7130 * exec.c: Include gcore.h.
7131 (exec_set_find_memory_regions): Remove.
7132 (exec_find_memory_regions): Remove.
7133 (exec_do_find_memory_regions): Remove.
7134 (init_exec_ops): Update.
7135 * defs.h (exec_set_find_memory_regions): Remove.
7136
9b144037
TT
71372014-02-19 Tom Tromey <tromey@redhat.com>
7138
7139 * target-delegates.c: Rebuild.
7140 * target.h (struct target_ops) <to_extra_thread_info,
7141 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7142 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7143 not 0, in TARGET_DEFAULT_RETURN.
7144
555bbdeb
TT
71452014-02-19 Tom Tromey <tromey@redhat.com>
7146
7147 * target.c (complete_target_initialization): Remove casts. Use
7148 return_zero_has_execution.
7149 (return_zero): Add "ignore" argument.
7150 (return_zero_has_execution): New function.
7151 (init_dummy_target): Remove casts. Use
7152 return_zero_has_execution.
7153
be4ddd36
TT
71542014-02-19 Tom Tromey <tromey@redhat.com>
7155
7156 * target.c (update_current_target): Update comments. Do not
7157 INHERIT to_stratum.
7158
2117c711
TT
71592014-02-19 Tom Tromey <tromey@redhat.com>
7160
7161 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7162 needed.
7163 * corelow.c (core_read_description): Delegate when needed.
7164 * remote.c (remote_read_description): Delegate when needed.
7165 * target-delegates.c: Rebuild.
7166 * target.c (target_read_description): Rewrite.
7167 * target.h (struct target_ops) <to_read_description>: Update
7168 comment. Use TARGET_DEFAULT_RETURN.
7169
e88ef65c
TT
71702014-02-19 Tom Tromey <tromey@redhat.com>
7171
7172 * target-delegates.c: Rebuild.
7173 * target.c (update_current_target): Don't inherit or default
7174 to_can_run.
7175 (find_default_run_target): Check against delegate_can_run.
7176 * target.h (struct target_ops) <to_can_run>: Use
7177 TARGET_DEFAULT_RETURN.
7178
86a0854a
TT
71792014-02-19 Tom Tromey <tromey@redhat.com>
7180
7181 * target-delegates.c: Rebuild.
7182 * target.c (target_disconnect): Unconditionally delegate.
7183 * target.h (struct target_ops) <to_disconnect>: Use
7184 TARGET_DEFAULT_NORETURN.
7185
ee97f592
TT
71862014-02-19 Tom Tromey <tromey@redhat.com>
7187
7188 * record.c (record_stop): Unconditionally delegate.
7189 * target-delegates.c: Rebuild.
7190 * target.c (target_stop_recording): Unconditionally delegate.
7191 * target.h (struct target_ops) <to_stop_recording>: Use
7192 TARGET_DEFAULT_IGNORE.
7193
6dc7fcf4
TT
71942014-02-19 Tom Tromey <tromey@redhat.com>
7195
7196 * target-delegates.c: Rebuild.
7197 * target.c (target_enable_btrace): Unconditionally delegate.
7198 * target.h (struct target_ops) <to_enable_btrace>: Use
7199 TARGET_DEFAULT_NORETURN.
7200
eb5b20d4
TT
72012014-02-19 Tom Tromey <tromey@redhat.com>
7202
7203 * target-delegates.c: Rebuild.
7204 * target.c (target_read_btrace): Unconditionally delegate.
7205 * target.h (struct target_ops) <to_read_btrace>: Use
7206 TARGET_DEFAULT_NORETURN.
7207
9ace480d
TT
72082014-02-19 Tom Tromey <tromey@redhat.com>
7209
7210 * target-delegates.c: Rebuild.
7211 * target.c (target_teardown_btrace): Unconditionally delegate.
7212 * target.h (struct target_ops) <to_teardown_btrace>: Use
7213 TARGET_DEFAULT_NORETURN.
7214
8dc292d3
TT
72152014-02-19 Tom Tromey <tromey@redhat.com>
7216
7217 * target-delegates.c: Rebuild.
7218 * target.c (target_disable_btrace): Unconditionally delegate.
7219 * target.h (struct target_ops) <to_disable_btrace>: Use
7220 TARGET_DEFAULT_NORETURN.
7221
58a5184e
TT
72222014-02-19 Tom Tromey <tromey@redhat.com>
7223
7224 * target-delegates.c: Rebuild.
7225 * target.c (default_search_memory): New function.
7226 (simple_search_memory): Update comment.
7227 (target_search_memory): Unconditionally delegate.
7228 * target.h (struct target_ops) <to_search_memory>: Use
7229 TARGET_DEFAULT_FUNC.
7230
8de71aab
TT
72312014-02-19 Tom Tromey <tromey@redhat.com>
7232
7233 * auxv.c (default_auxv_parse): No longer static.
7234 (target_auxv_parse): Unconditionally delegate.
7235 * auxv.h (default_auxv_parse): Declare.
7236 * target-delegates.c: Rebuild.
7237 * target.c: Include auxv.h.
7238 * target.h (struct target_ops) <to_auxv_parse>: Use
7239 TARGET_DEFAULT_FUNC.
7240
6b2c5a57
TT
72412014-02-19 Tom Tromey <tromey@redhat.com>
7242
7243 * target-delegates.c: Rebuild.
7244 * target.c (target_memory_map): Unconditionally delegate.
7245 * target.h (struct target_ops) <to_memory_map>: Use
7246 TARGET_DEFAULT_RETURN.
7247
cbffc065
TT
72482014-02-19 Tom Tromey <tromey@redhat.com>
7249
7250 * target-delegates.c: Rebuild.
7251 * target.c (target_thread_alive): Unconditionally delegate.
7252 * target.h (struct target_ops) <to_thread_alive>: Use
7253 TARGET_DEFAULT_RETURN.
7254
f09e2107
TT
72552014-02-19 Tom Tromey <tromey@redhat.com>
7256
7257 * target-delegates.c: Rebuild.
7258 * target.c (target_save_record): Unconditionally delegate.
7259 * target.h (struct target_ops) <to_save_record>: Use
7260 TARGET_DEFAULT_NORETURN.
7261
07366925
TT
72622014-02-19 Tom Tromey <tromey@redhat.com>
7263
7264 * target-delegates.c: Rebuild.
7265 * target.c (target_delete_record): Unconditionally delegate.
7266 * target.h (struct target_ops) <to_delete_record>: Use
7267 TARGET_DEFAULT_NORETURN.
7268
dd2e9d25
TT
72692014-02-19 Tom Tromey <tromey@redhat.com>
7270
7271 * target-delegates.c: Rebuild.
7272 * target.c (target_record_is_replaying): Unconditionally
7273 delegate.
7274 * target.h (struct target_ops) <to_record_is_replaying>: Use
7275 TARGET_DEFAULT_RETURN.
7276
671e76cc
TT
72772014-02-19 Tom Tromey <tromey@redhat.com>
7278
7279 * target-delegates.c: Rebuild.
7280 * target.c (target_goto_record_begin): Unconditionally delegate.
7281 * target.h (struct target_ops) <to_goto_record_begin>: Use
7282 TARGET_DEFAULT_NORETURN.
7283
e9179bb3
TT
72842014-02-19 Tom Tromey <tromey@redhat.com>
7285
7286 * target-delegates.c: Rebuild.
7287 * target.c (target_goto_record_end): Unconditionally delegate.
7288 * target.h (struct target_ops) <to_goto_record_end>: Use
7289 TARGET_DEFAULT_NORETURN.
7290
05969c84
TT
72912014-02-19 Tom Tromey <tromey@redhat.com>
7292
7293 * target-delegates.c: Rebuild.
7294 * target.c (target_goto_record): Unconditionally delegate.
7295 * target.h (struct target_ops) <to_goto_record>: Use
7296 TARGET_DEFAULT_NORETURN.
7297
3679abfa
TT
72982014-02-19 Tom Tromey <tromey@redhat.com>
7299
7300 * target-delegates.c: Rebuild.
7301 * target.c (target_insn_history): Unconditionally delegate.
7302 * target.h (struct target_ops) <to_insn_history>: Use
7303 TARGET_DEFAULT_NORETURN.
7304
8444ab58
TT
73052014-02-19 Tom Tromey <tromey@redhat.com>
7306
7307 * target-delegates.c: Rebuild.
7308 * target.c (target_insn_history_from): Unconditionally delegate.
7309 * target.h (struct target_ops) <to_insn_history_from>: Use
7310 TARGET_DEFAULT_NORETURN.
7311
c29302cc
TT
73122014-02-19 Tom Tromey <tromey@redhat.com>
7313
7314 * target-delegates.c: Rebuild.
7315 * target.c (target_insn_history_range): Unconditionally delegate.
7316 * target.h (struct target_ops) <to_insn_history_range>: Use
7317 TARGET_DEFAULT_NORETURN.
7318
170049d4
TT
73192014-02-19 Tom Tromey <tromey@redhat.com>
7320
7321 * target-delegates.c: Rebuild.
7322 * target.c (target_call_history): Unconditionally delegate.
7323 * target.h (struct target_ops) <to_call_history>: Use
7324 TARGET_DEFAULT_NORETURN.
7325
16fc27d6
TT
73262014-02-19 Tom Tromey <tromey@redhat.com>
7327
7328 * target-delegates.c: Rebuild.
7329 * target.c (target_call_history_from): Unconditionally delegate.
7330 * target.h (struct target_ops) <to_call_history_from>: Use
7331 TARGET_DEFAULT_NORETURN.
7332
115d9817
TT
73332014-02-19 Tom Tromey <tromey@redhat.com>
7334
7335 * target-delegates.c: Rebuild.
7336 * target.c (target_call_history_range): Unconditionally delegate.
7337 * target.h (struct target_ops) <to_call_history_range>: Use
7338 TARGET_DEFAULT_NORETURN.
7339
eb276a6b
TT
73402014-02-19 Tom Tromey <tromey@redhat.com>
7341
7342 * target-delegates.c: Rebuild.
7343 * target.c (target_verify_memory): Unconditionally delegate.
7344 * target.h (struct target_ops) <to_verify_memory>: Use
7345 TARGET_DEFAULT_NORETURN.
7346
9e538d0d
TT
73472014-02-19 Tom Tromey <tromey@redhat.com>
7348
7349 * target-delegates.c: Rebuild.
7350 * target.c (target_core_of_thread): Unconditionally delegate.
7351 * target.h (struct target_ops) <to_core_of_thread>: Use
7352 TARGET_DEFAULT_RETURN.
7353
f6fb2925
TT
73542014-02-19 Tom Tromey <tromey@redhat.com>
7355
7356 * target-delegates.c: Rebuild.
7357 * target.c (target_flash_done): Unconditionally delegate.
7358 * target.h (struct target_ops) <to_flash_done>: Use
7359 TARGET_DEFAULT_NORETURN.
7360
e8a6c6ac
TT
73612014-02-19 Tom Tromey <tromey@redhat.com>
7362
7363 * target-delegates.c: Rebuild.
7364 * target.c (target_flash_erase): Unconditionally delegate.
7365 * target.h (struct target_ops) <to_flash_erase>: Use
7366 TARGET_DEFAULT_NORETURN.
7367
7e35c012
TT
73682014-02-19 Tom Tromey <tromey@redhat.com>
7369
7370 * target-delegates.c: Rebuild.
7371 * target.c (target_get_section_table): Unconditionally delegate.
7372 * target.h (struct target_ops) <to_get_section_table>: Use
7373 TARGET_DEFAULT_RETURN.
7374
770234d3
TT
73752014-02-19 Tom Tromey <tromey@redhat.com>
7376
7377 * target-delegates.c: Rebuild.
7378 * target.c (target_pid_to_str): Unconditionally delegate.
7379 (init_dummy_target): Don't initialize to_pid_to_str.
7380 (default_pid_to_str): Rename from dummy_pid_to_str.
7381 * target.h (struct target_ops) <to_pid_to_str>: Use
7382 TARGET_DEFAULT_FUNC.
7383
09b0dc2b
TT
73842014-02-19 Tom Tromey <tromey@redhat.com>
7385
7386 * target-delegates.c: Rebuild.
7387 * target.c (target_find_new_threads): Unconditionally delegate.
7388 * target.h (struct target_ops) <to_find_new_threads>: Use
7389 TARGET_DEFAULT_RETURN.
7390
7d4f8efa
TT
73912014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target-delegates.c: Rebuild.
7394 * target.c (target_program_signals): Unconditionally delegate.
7395 * target.h (struct target_ops) <to_program_signals>: Use
7396 TARGET_DEFAULT_IGNORE.
7397
035cad7f
TT
73982014-02-19 Tom Tromey <tromey@redhat.com>
7399
7400 * target-delegates.c: Rebuild.
7401 * target.c (target_pass_signals): Unconditionally delegate.
7402 * target.h (struct target_ops) <to_pass_signals>: Use
7403 TARGET_DEFAULT_IGNORE.
7404
8d657035
TT
74052014-02-19 Tom Tromey <tromey@redhat.com>
7406
7407 * target-delegates.c: Rebuild.
7408 * target.c (default_mourn_inferior): New function.
7409 (target_mourn_inferior): Unconditionally delegate.
7410 * target.h (struct target_ops) <to_mourn_inferior>: Use
7411 TARGET_DEFAULT_FUNC.
7412
098dba18
TT
74132014-02-19 Tom Tromey <tromey@redhat.com>
7414
7415 * target-delegates.c: Rebuild.
7416 * target.c (default_follow_fork): New function.
7417 (target_follow_fork): Unconditionally delegate.
7418 * target.h (struct target_ops) <to_follow_fork>: Use
7419 TARGET_DEFAULT_FUNC.
7420
423a4807
TT
74212014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target-delegates.c: Rebuild.
7424 * target.c (target_kill): Unconditionally delegate.
7425 * target.h (struct target_ops) <to_kill>: Use
7426 TARGET_DEFAULT_NORETURN.
7427
6c7e5e5c
TT
74282014-02-19 Tom Tromey <tromey@redhat.com>
7429
7430 * target-delegates.c: Rebuild.
7431 * target.c (target_masked_watch_num_registers): Unconditionally
7432 delegate.
7433 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7434 Use TARGET_DEFAULT_RETURN.
7435
8b1c364c
TT
74362014-02-19 Tom Tromey <tromey@redhat.com>
7437
7438 * target-delegates.c: Rebuild.
7439 * target.c (target_remove_mask_watchpoint): Unconditionally
7440 delegate.
7441 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7442 TARGET_DEFAULT_RETURN.
7443
cd4ae029
TT
74442014-02-19 Tom Tromey <tromey@redhat.com>
7445
7446 * target-delegates.c: Rebuild.
7447 * target.c (target_insert_mask_watchpoint): Unconditionally
7448 delegate.
7449 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7450 TARGET_DEFAULT_RETURN.
7451
a134316b
TT
74522014-02-19 Tom Tromey <tromey@redhat.com>
7453
7454 * target-delegates.c: Rebuild.
7455 * target.c (target_ranged_break_num_registers): Unconditionally
7456 delegate.
7457 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7458 Use TARGET_DEFAULT_RETURN.
7459
ad5989bd
TT
74602014-02-19 Tom Tromey <tromey@redhat.com>
7461
7462 * target-delegates.c: Rebuild.
7463 * target.c (target_fetch_registers): Unconditionally delegate.
7464 * target.h (struct target_ops) <to_fetch_registers>: Use
7465 TARGET_DEFAULT_NORETURN.
7466
46ee7e8d
TT
74672014-02-19 Tom Tromey <tromey@redhat.com>
7468
7469 * target-delegates.c: Rebuild.
7470 * target.c (update_current_target): Don't inherit or default
7471 to_stop.
7472 * target.h (struct target_ops) <to_stop>: Use
7473 TARGET_DEFAULT_IGNORE.
7474
843f59ed
TT
74752014-02-19 Tom Tromey <tromey@redhat.com>
7476
7477 * target-delegates.c: Rebuild.
7478 * target.c (update_current_target): Don't inherit or default
7479 to_can_run_breakpoint_commands.
7480 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7481 Use TARGET_DEFAULT_RETURN.
7482
ccfde2a0
TT
74832014-02-19 Tom Tromey <tromey@redhat.com>
7484
7485 * target-delegates.c: Rebuild.
7486 * target.c (update_current_target): Don't inherit or default
7487 to_supports_evaluation_of_breakpoint_conditions.
7488 * target.h (struct target_ops)
7489 <to_supports_evaluation_of_breakpoint_conditions>: Use
7490 TARGET_DEFAULT_RETURN.
7491
0de91722
TT
74922014-02-19 Tom Tromey <tromey@redhat.com>
7493
7494 * target-delegates.c: Rebuild.
7495 * target.c (update_current_target): Don't inherit or default
7496 to_augmented_libraries_svr4_read.
7497 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7498 Use TARGET_DEFAULT_RETURN.
7499
9a7d8b48
TT
75002014-02-19 Tom Tromey <tromey@redhat.com>
7501
7502 * target-delegates.c: Rebuild.
7503 * target.c (update_current_target): Don't inherit or default
7504 to_can_use_agent.
7505 * target.h (struct target_ops) <to_can_use_agent>: Use
7506 TARGET_DEFAULT_RETURN.
7507
d9db5b21
TT
75082014-02-19 Tom Tromey <tromey@redhat.com>
7509
7510 * target-delegates.c: Rebuild.
7511 * target.c (update_current_target): Don't inherit or default
7512 to_use_agent.
7513 * target.h (struct target_ops) <to_use_agent>: Use
7514 TARGET_DEFAULT_NORETURN.
7515
92155eeb
TT
75162014-02-19 Tom Tromey <tromey@redhat.com>
7517
7518 * target-delegates.c: Rebuild.
7519 * target.c (update_current_target): Don't inherit or default
7520 to_traceframe_info.
7521 (return_null): Remove.
7522 * target.h (struct target_ops) <to_traceframe_info>: Use
7523 TARGET_DEFAULT_RETURN.
7524
d6522a22
TT
75252014-02-19 Tom Tromey <tromey@redhat.com>
7526
7527 * target-delegates.c: Rebuild.
7528 * target.c (update_current_target): Don't inherit or default
7529 to_static_tracepoint_markers_by_strid.
7530 * target.h (struct target_ops)
7531 <to_static_tracepoint_markers_by_strid>: Use
7532 TARGET_DEFAULT_NORETURN.
7533
4c3e4425
TT
75342014-02-19 Tom Tromey <tromey@redhat.com>
7535
7536 * target-delegates.c: Rebuild.
7537 * target.c (update_current_target): Don't inherit or default
7538 to_static_tracepoint_marker_at.
7539 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7540 Use TARGET_DEFAULT_RETURN.
7541
dcd6917f
TT
75422014-02-19 Tom Tromey <tromey@redhat.com>
7543
7544 * target-delegates.c: Rebuild.
7545 * target.c (update_current_target): Don't inherit or default
7546 to_set_permissions.
7547 * target.h (struct target_ops) <to_set_permissions>: Use
7548 TARGET_DEFAULT_IGNORE.
7549
22bcceee
TT
75502014-02-19 Tom Tromey <tromey@redhat.com>
7551
7552 * target-delegates.c: Rebuild.
7553 * target.c (update_current_target): Don't inherit or default
7554 to_get_tib_address.
7555 * target.h (struct target_ops) <to_get_tib_address>: Use
7556 TARGET_DEFAULT_NORETURN.
7557
8586ccaa
TT
75582014-02-19 Tom Tromey <tromey@redhat.com>
7559
7560 * target-delegates.c: Rebuild.
7561 * target.c (update_current_target): Don't inherit or default
7562 to_set_trace_notes.
7563 * target.h (struct target_ops) <to_set_trace_notes>: Use
7564 TARGET_DEFAULT_RETURN.
7565
91df8d1d
TT
75662014-02-19 Tom Tromey <tromey@redhat.com>
7567
7568 * target-delegates.c: Rebuild.
7569 * target.c (update_current_target): Don't initialize
7570 to_set_trace_buffer_size.
7571 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7572 TARGET_DEFAULT_IGNORE.
7573
8d526939
TT
75742014-02-19 Tom Tromey <tromey@redhat.com>
7575
7576 * target-delegates.c: Rebuild.
7577 * target.c (update_current_target): Don't inherit or default
7578 to_set_circular_trace_buffer.
7579 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7580 TARGET_DEFAULT_IGNORE.
7581
0bcfeddf
TT
75822014-02-19 Tom Tromey <tromey@redhat.com>
7583
7584 * target-delegates.c: Rebuild.
7585 * target.c (update_current_target): Don't inherit or default
7586 to_set_disconnected_tracing.
7587 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7588 TARGET_DEFAULT_IGNORE.
7589
9249843f
TT
75902014-02-19 Tom Tromey <tromey@redhat.com>
7591
7592 * target-delegates.c: Rebuild.
7593 * target.c (update_current_target): Don't inherit or default
7594 to_get_min_fast_tracepoint_insn_len.
7595 (return_minus_one): Remove.
7596 * target.h (struct target_ops)
7597 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7598
ace92e7d
TT
75992014-02-19 Tom Tromey <tromey@redhat.com>
7600
7601 * target-delegates.c: Rebuild.
7602 * target.c (update_current_target): Don't inherit or default
7603 to_get_raw_trace_data.
7604 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7605 TARGET_DEFAULT_NORETURN.
7606
08120467
TT
76072014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * target-delegates.c: Rebuild.
7610 * target.c (update_current_target): Don't inherit or default
7611 to_upload_trace_state_variables.
7612 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7613 Use TARGET_DEFAULT_RETURN.
7614
1e949b00
TT
76152014-02-19 Tom Tromey <tromey@redhat.com>
7616
7617 * target-delegates.c: Rebuild.
7618 * target.c (update_current_target): Don't inherit or default
7619 to_upload_tracepoints.
7620 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7621 TARGET_DEFAULT_RETURN.
7622
a2e6c147
TT
76232014-02-19 Tom Tromey <tromey@redhat.com>
7624
7625 * target-delegates.c: Rebuild.
7626 * target.c (update_current_target): Don't inherit or default
7627 to_save_trace_data.
7628 * target.h (struct target_ops) <to_save_trace_data>: Use
7629 TARGET_DEFAULT_NORETURN.
7630
959bcd0b
TT
76312014-02-19 Tom Tromey <tromey@redhat.com>
7632
7633 * target-delegates.c: Rebuild.
7634 * target.c (update_current_target): Don't inherit or default
7635 to_get_trace_state_variable_value.
7636 * target.h (struct target_ops)
7637 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7638
afc94e66
TT
76392014-02-19 Tom Tromey <tromey@redhat.com>
7640
7641 * target-delegates.c: Rebuild.
7642 * target.c (update_current_target): Don't inherit or default
7643 to_trace_find.
7644 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7645
e51c07ea
TT
76462014-02-19 Tom Tromey <tromey@redhat.com>
7647
7648 * target-delegates.c: Rebuild.
7649 * target.c (update_current_target): Don't inherit or default
7650 to_trace_stop.
7651 * target.h (struct target_ops) <to_trace_stop>: Use
7652 TARGET_DEFAULT_NORETURN.
7653
6fea14cd
TT
76542014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * target-delegates.c: Rebuild.
7657 * target.c (update_current_target): Don't inherit or default
7658 to_get_tracepoint_status.
7659 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7660 TARGET_DEFAULT_NORETURN.
7661
4072d4ff
TT
76622014-02-19 Tom Tromey <tromey@redhat.com>
7663
7664 * target-delegates.c: Rebuild.
7665 * target.c (update_current_target): Don't inherit or default
7666 to_get_trace_status.
7667 * target.h (struct target_ops) <to_get_trace_status>: Use
7668 TARGET_DEFAULT_RETURN.
7669
25da2e80
TT
76702014-02-19 Tom Tromey <tromey@redhat.com>
7671
7672 * target-delegates.c: Rebuild.
7673 * target.c (update_current_target): Don't inherit or default
7674 to_trace_start.
7675 * target.h (struct target_ops) <to_trace_start>: Use
7676 TARGET_DEFAULT_NORETURN.
7677
86dd181d
TT
76782014-02-19 Tom Tromey <tromey@redhat.com>
7679
7680 * target-delegates.c: Rebuild.
7681 * target.c (update_current_target): Don't inherit or default
7682 to_trace_set_readonly_regions.
7683 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7684 Use TARGET_DEFAULT_NORETURN.
7685
05c41993
TT
76862014-02-19 Tom Tromey <tromey@redhat.com>
7687
7688 * target-delegates.c: Rebuild.
7689 * target.c (update_current_target): Don't inherit or default
7690 to_disable_tracepoint.
7691 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7692 TARGET_DEFAULT_NORETURN.
7693
151f70f1
TT
76942014-02-19 Tom Tromey <tromey@redhat.com>
7695
7696 * target-delegates.c: Rebuild.
7697 * target.c (update_current_target): Don't inherit or default
7698 to_enable_tracepoint.
7699 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7700 TARGET_DEFAULT_NORETURN.
7701
94eb98b9
TT
77022014-02-19 Tom Tromey <tromey@redhat.com>
7703
7704 * target-delegates.c: Rebuild.
7705 * target.c (update_current_target): Don't inherit or default
7706 to_download_trace_state_variable.
7707 * target.h (struct target_ops) <to_download_trace_state_variable>:
7708 Use TARGET_DEFAULT_NORETURN.
7709
719acc4a
TT
77102014-02-19 Tom Tromey <tromey@redhat.com>
7711
7712 * target-delegates.c: Rebuild.
7713 * target.c (update_current_target): Don't inherit or default
7714 to_can_download_tracepoint.
7715 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7716 TARGET_DEFAULT_RETURN.
7717
9a980a22
TT
77182014-02-19 Tom Tromey <tromey@redhat.com>
7719
7720 * target-delegates.c: Rebuild.
7721 * target.c (update_current_target): Don't inherit or default
7722 to_download_tracepoint.
7723 * target.h (struct target_ops) <to_download_tracepoint>: Use
7724 TARGET_DEFAULT_NORETURN.
7725
5536135b
TT
77262014-02-19 Tom Tromey <tromey@redhat.com>
7727
7728 * target-delegates.c: Rebuild.
7729 * target.c (update_current_target): Don't inherit or default
7730 to_trace_init.
7731 * target.h (struct target_ops) <to_trace_init>: Use
7732 TARGET_DEFAULT_RETURN.
7733
9409d39e
TT
77342014-02-19 Tom Tromey <tromey@redhat.com>
7735
7736 * target-delegates.c: Rebuild.
7737 * target.c (update_current_target): Don't inherit or default
7738 to_supports_string_tracing.
7739 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7740 TARGET_DEFAULT_RETURN.
7741
aab1b22d
TT
77422014-02-19 Tom Tromey <tromey@redhat.com>
7743
7744 * target-delegates.c: Rebuild.
7745 * target.c (update_current_target): Don't inherit or default
7746 to_supports_enable_disable_tracepoint.
7747 * target.h (struct target_ops)
7748 <to_supports_enable_disable_tracepoint>: Use
7749 TARGET_DEFAULT_RETURN.
7750
a7304748
TT
77512014-02-19 Tom Tromey <tromey@redhat.com>
7752
7753 * target-delegates.c: Rebuild.
7754 * target.c (update_current_target): Don't inherit or default
7755 to_supports_multi_process.
7756 * target.h (struct target_ops) <to_supports_multi_process>: Use
7757 TARGET_DEFAULT_RETURN.
7758
4229b31d
TT
77592014-02-19 Tom Tromey <tromey@redhat.com>
7760
7761 * target-delegates.c: Rebuild.
7762 * target.c (update_current_target): Don't inherit or default
7763 to_get_ada_task_ptid.
7764 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7765 TARGET_DEFAULT_FUNC.
7766
43eba180
TT
77672014-02-19 Tom Tromey <tromey@redhat.com>
7768
7769 * target-delegates.c: Rebuild.
7770 * target.c (update_current_target): Don't inherit or default
7771 to_thread_architecture.
7772 * target.h (struct target_ops) <to_thread_architecture>: Use
7773 TARGET_DEFAULT_FUNC.
7774
fe31bf5b
TT
77752014-02-19 Tom Tromey <tromey@redhat.com>
7776
7777 * target-delegates.c: Rebuild.
7778 * target.c (update_current_target): Don't inherit or default
7779 to_execution_direction.
7780 * target.h (struct target_ops) <to_execution_direction>: Use
7781 TARGET_DEFAULT_FUNC.
7782
53e1cfc7
TT
77832014-02-19 Tom Tromey <tromey@redhat.com>
7784
7785 * target-delegates.c: Rebuild.
7786 * target.c (update_current_target): Don't inherit or default
7787 to_can_execute_reverse.
7788 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7789 TARGET_DEFAULT_RETURN.
7790 (target_can_execute_reverse): Unconditionally delegate.
7791
9bb9d61d
TT
77922014-02-19 Tom Tromey <tromey@redhat.com>
7793
7794 * target-delegates.c: Rebuild.
7795 * target.c (update_current_target): Don't inherit or default
7796 to_goto_bookmark.
7797 (dummy_goto_bookmark): Remove.
7798 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7799 * target.h (struct target_ops) <to_goto_bookmark>: Use
7800 TARGET_DEFAULT_NORETURN.
7801
3dbafbbb
TT
78022014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target-delegates.c: Rebuild.
7805 * target.c (update_current_target): Don't inherit or default
7806 to_get_bookmark.
7807 (dummy_get_bookmark): Remove.
7808 (init_dummy_target): Don't inherit or default to_get_bookmark.
7809 * target.h (struct target_ops) <to_get_bookmark>: Use
7810 TARGET_DEFAULT_NORETURN
7811
16f796b1
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_make_corefile_notes.
7817 (init_dummy_target): Don't initialize to_make_corefile_notes.
7818 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7819 TARGET_DEFAULT_FUNC.
7820
0b5a2719
TT
78212014-02-19 Tom Tromey <tromey@redhat.com>
7822
7823 * target-delegates.c: Rebuild.
7824 * target.c (update_current_target): Don't inherit or default
7825 to_find_memory_regions.
7826 (init_dummy_target): Don't initialize to_find_memory_regions.
7827 * target.h (struct target_ops) <to_find_memory_regions>: Use
7828 TARGET_DEFAULT_FUNC.
7829
d9cb0195
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * target-delegates.c: Rebuild.
7833 * target.c (update_current_target): Don't inherit or default
7834 to_log_command.
7835 * target.h (struct target_ops) <to_log_command>: Use
7836 TARGET_DEFAULT_IGNORE.
7837 (target_log_command): Unconditionally delegate.
7838
830ca330
TT
78392014-02-19 Tom Tromey <tromey@redhat.com>
7840
7841 * target-delegates.c: Rebuild.
7842 * target.c (update_current_target): Don't inherit or default
7843 to_pid_to_exec_file.
7844 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7845 TARGET_DEFAULT_RETURN.
7846
825828fc
TT
78472014-02-19 Tom Tromey <tromey@redhat.com>
7848
7849 * target-delegates.c: Rebuild.
7850 * target.c (update_current_target): Don't inherit or default
7851 to_thread_name.
7852 (target_thread_name): Unconditionally delegate.
7853 * target.h (struct target_ops) <to_thread_name>: Use
7854 TARGET_DEFAULT_RETURN.
7855
4a7e6dda
TT
78562014-02-19 Tom Tromey <tromey@redhat.com>
7857
7858 * target-delegates.c: Rebuild.
7859 * target.c (update_current_target): Don't inherit or default
7860 to_extra_thread_info.
7861 * target.h (struct target_ops) <to_extra_thread_info>: Use
7862 TARGET_DEFAULT_RETURN.
7863
0db88c1d
TT
78642014-02-19 Tom Tromey <tromey@redhat.com>
7865
7866 * target-delegates.c: Rebuild.
7867 * target.c (update_current_target): Don't inherit or default
7868 to_has_exited.
7869 * target.h (struct target_ops) <to_has_exited>: Use
7870 TARGET_DEFAULT_RETURN..
7871
6a9fa051
TT
78722014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target-delegates.c: Rebuild.
7875 * target.c (update_current_target): Don't inherit or default
7876 to_set_syscall_catchpoint.
7877 (return_one): Remove.
7878 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7879 TARGET_DEFAULT_RETURN.
7880
62f64d7a
TT
78812014-02-19 Tom Tromey <tromey@redhat.com>
7882
7883 * target-delegates.c: Rebuild.
7884 * target.c (update_current_target): Don't inherit or default
7885 to_insert_exec_catchpoint.
7886 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7887 TARGET_DEFAULT_RETURN.
7888
cda0f38c
TT
78892014-01-08 Tom Tromey <tromey@redhat.com>
7890
7891 * target-delegates.c: Rebuild.
7892 * target.c (update_current_target): Don't inherit or default
7893 to_insert_exec_catchpoint.
7894 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7895 TARGET_DEFAULT_RETURN.
7896
95c3375e
TT
78972014-02-19 Tom Tromey <tromey@redhat.com>
7898
7899 * target-delegates.c: Rebuild.
7900 * target.c (update_current_target): Don't inherit or default
7901 to_remove_vfork_catchpoint.
7902 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7903 TARGET_DEFAULT_RETURN.
7904
7e18a8dc
TT
79052014-02-19 Tom Tromey <tromey@redhat.com>
7906
7907 * target-delegates.c: Rebuild.
7908 * target.c (update_current_target): Don't inherit or default
7909 to_insert_vfork_catchpoint.
7910 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7911 TARGET_DEFAULT_RETURN.
7912
e1a21fb7
TT
79132014-02-19 Tom Tromey <tromey@redhat.com>
7914
7915 * target-delegates.c: Rebuild.
7916 * target.c (update_current_target): Don't inherit or default
7917 to_remove_fork_catchpoint.
7918 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7919 TARGET_DEFAULT_RETURN.
7920
5958ebeb
TT
79212014-02-19 Tom Tromey <tromey@redhat.com>
7922
7923 * target-delegates.c: Rebuild.
7924 * target.c (update_current_target): Don't inherit or default
7925 to_insert_fork_catchpoint.
7926 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7927 TARGET_DEFAULT_RETURN.
7928
340ba4bf
TT
79292014-02-19 Tom Tromey <tromey@redhat.com>
7930
7931 * target-delegates.c: Rebuild.
7932 * target.c (update_current_target): Don't inherit or default
7933 to_post_startup_inferior.
7934 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7935 TARGET_DEFAULT_IGNORE.
7936
7634da87
TT
79372014-02-19 Tom Tromey <tromey@redhat.com>
7938
7939 * target-delegates.c: Rebuild.
7940 * target.c (update_current_target): Don't inherit or default
7941 to_load.
7942 * target.h (struct target_ops) <to_load>: Use
7943 TARGET_DEFAULT_NORETURN.
7944
e19e919f
TT
79452014-02-19 Tom Tromey <tromey@redhat.com>
7946
7947 * target-delegates.c: Rebuild.
7948 * target.c (update_current_target): Don't inherit or default
7949 to_terminal_info.
7950 * target.h (struct target_ops) <to_terminal_info>: Use
7951 TARGET_DEFAULT_FUNC.
7952
c6ea8f79
TT
79532014-02-19 Tom Tromey <tromey@redhat.com>
7954
7955 * target-delegates.c: Rebuild.
7956 * target.c (update_current_target): Don't inherit or default
7957 to_terminal_save_ours.
7958 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7959 TARGET_DEFAULT_IGNORE.
7960
e4a733f1
TT
79612014-02-19 Tom Tromey <tromey@redhat.com>
7962
7963 * target-delegates.c: Rebuild.
7964 * target.c (update_current_target): Don't inherit or default
7965 to_terminal_ours.
7966 * target.h (struct target_ops) <to_terminal_ours>: Use
7967 TARGET_DEFAULT_IGNORE.
7968
74fcbef9
TT
79692014-02-19 Tom Tromey <tromey@redhat.com>
7970
7971 * target-delegates.c: Rebuild.
7972 * target.c (update_current_target): Don't inherit or default
7973 to_terminal_ours_for_output.
7974 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7975 TARGET_DEFAULT_IGNORE.
7976
ddeaacc9
TT
79772014-02-19 Tom Tromey <tromey@redhat.com>
7978
7979 * target-delegates.c: Rebuild.
7980 * target.c (update_current_target): Don't inherit or default
7981 to_terminal_inferior.
7982 * target.h (struct target_ops) <to_terminal_inferior>: Use
7983 TARGET_DEFAULT_IGNORE.
7984
0343661d
TT
79852014-02-19 Tom Tromey <tromey@redhat.com>
7986
7987 * target-delegates.c: Rebuild.
7988 * target.c (update_current_target): Don't inherit or default
7989 to_terminal_init.
7990 * target.h (struct target_ops) <to_terminal_init>: Use
7991 TARGET_DEFAULT_IGNORE.
7992
77cdffe9
TT
79932014-02-19 Tom Tromey <tromey@redhat.com>
7994
7995 * target-delegates.c: Rebuild.
7996 * target.c (update_current_target): Don't inherit or default
7997 to_can_accel_watchpoint_condition.
7998 * target.h (struct target_ops)
7999 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8000
d03655e4
TT
80012014-02-19 Tom Tromey <tromey@redhat.com>
8002
8003 * target-delegates.c: Rebuild.
8004 * target.c (update_current_target): Don't inherit or default
8005 to_region_ok_for_hw_watchpoint.
8006 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8007 Use TARGET_DEFAULT_FUNC.
8008
65f160a9
TT
80092014-02-19 Tom Tromey <tromey@redhat.com>
8010
8011 * target-delegates.c: Rebuild.
8012 * target.c (update_current_target): Don't inherit or default
8013 to_watchpoint_addr_within_range.
8014 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8015 Use TARGET_DEFAULT_FUNC.
8016
61dd109f
TT
80172014-02-19 Tom Tromey <tromey@redhat.com>
8018
8019 * target-delegates.c: Rebuild.
8020 * target.c (update_current_target): Don't inherit or default
8021 to_remove_watchpoint.
8022 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8023 TARGET_DEFAULT_NORETURN.
8024
016facd4
TT
80252014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * target-delegates.c: Rebuild.
8028 * target.c (update_current_target): Don't inherit or default
8029 to_insert_watchpoint.
8030 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8031 TARGET_DEFAULT_RETURN.
8032
418dabac
TT
80332014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8037 to_remove_hw_breakpoint.
8038 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8039 TARGET_DEFAULT_RETURN.
8040
61b371f9
TT
80412014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8045 to_insert_hw_breakpoint.
8046 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8047 TARGET_DEFAULT_RETURN.
8048
52b51d06
TT
80492014-02-19 Tom Tromey <tromey@redhat.com>
8050
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8053 to_can_use_hw_breakpoint.
8054 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8055 TARGET_DEFAULT_RETURN.
8056
f86e59b2
TT
80572014-02-19 Tom Tromey <tromey@redhat.com>
8058
8059 * target-delegates.c: Rebuild.
8060 * target.c (update_current_target): Don't inherit or default
8061 to_files_info.
8062 * target.h (struct target_ops) <to_files_info>: Use
8063 TARGET_DEFAULT_IGNORE.
8064
6c628163
TT
80652014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * target-delegates.c: Rebuild.
8068 * target.c (update_current_target): Don't inherit or default
8069 to_store.
8070 * target.h (struct target_ops) <to_store>: Use
8071 TARGET_DEFAULT_NORETURN.
8072
bebd3233
TT
80732014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * target-delegates.c: Rebuild.
8076 * target.c (update_current_target): Don't inherit or default
8077 to_post_attach.
8078 * target.h (struct target_ops) <to_post_attach>: Use
8079 TARGET_DEFAULT_IGNORE.
8080
a53f3625
TT
80812014-02-19 Tom Tromey <tromey@redhat.com>
8082
8083 * target-delegates.c: Rebuild.
8084 * target.c (update_current_target): Don't inherit or default
8085 to_rcmd.
8086 (default_rcmd): New function.
8087 (do_monitor_command): Unconditionally delegate.
8088 * target.h (struct target_ops) <to_rmcd>: Use
8089 TARGET_DEFAULT_FUNC.
8090
e9a29200
TT
80912014-02-19 Tom Tromey <tromey@redhat.com>
8092
8093 * target-delegates.c: Rebuild.
8094 * target.c (init_dummy_target): Don't initialize to_attach.
8095 (target_attach): Unconditionally delegate.
8096 * target.h (struct target_ops) <to_attach>: Use
8097 TARGET_DEFAULT_FUNC.
8098
09da0d0a
TT
80992014-02-19 Tom Tromey <tromey@redhat.com>
8100
8101 * target-delegates.c: Rebuild.
8102 * target.c (target_detach): Unconditionally delegate.
8103 (init_dummy_target): Don't initialize to_detach.
8104 * target.h (struct target_ops) <to_detach>: Use
8105 TARGET_DEFAULT_IGNORE.
8106
5436ff03
TT
81072014-02-19 Tom Tromey <tromey@redhat.com>
8108
8109 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8110 Add argument.
8111 (target_augmented_libraries_svr4_read): Add argument.
8112 * target.c (update_current_target): Update.
8113 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8114 argument.
8115
f0d960ea
TT
81162014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target.h (struct target_ops) <to_call_history_range>: Add
8119 argument.
8120 * target.c (target_call_history_range): Add argument.
8121 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8122 argument.
8123 (record_btrace_call_history_from): Update.
8124
ec0aea04
TT
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target.h (struct target_ops) <to_call_history_from>: Add
8128 argument.
8129 * target.c (target_call_history_from): Add argument.
8130 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8131 argument.
8132
5df2fcba
TT
81332014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * target.h (struct target_ops) <to_call_history>: Add argument.
8136 * target.c (target_call_history): Add argument.
8137 * record-btrace.c (record_btrace_call_history): Add 'self'
8138 argument.
8139
4e99c6b7
TT
81402014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target.h (struct target_ops) <to_insn_history_range>: Add
8143 argument.
8144 * target.c (target_insn_history_range): Add argument.
8145 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8146 argument.
8147 (record_btrace_insn_history_from): Update.
8148
9abc3ff3
TT
81492014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target.h (struct target_ops) <to_insn_history_from>: Add
8152 argument.
8153 * target.c (target_insn_history_from): Add argument.
8154 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8155 argument.
8156
7a6c5609
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target.h (struct target_ops) <to_insn_history>: Add argument.
8160 * target.c (target_insn_history): Add argument.
8161 * record-btrace.c (record_btrace_insn_history): Add 'self'
8162 argument.
8163
606183ac
TT
81642014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target.h (struct target_ops) <to_goto_record>: Add argument.
8167 * target.c (target_goto_record): Add argument.
8168 * record-full.c (record_full_goto): Add 'self' argument.
8169 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8170
307a1b91
TT
81712014-02-19 Tom Tromey <tromey@redhat.com>
8172
8173 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8174 * target.c (target_goto_record_end): Add argument.
8175 * record-full.c (record_full_goto_end): Add 'self' argument.
8176 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8177
08475817
TT
81782014-02-19 Tom Tromey <tromey@redhat.com>
8179
8180 * target.h (struct target_ops) <to_goto_record_begin>: Add
8181 argument.
8182 * target.c (target_goto_record_begin): Add argument.
8183 * record-full.c (record_full_goto_begin): Add 'self' argument.
8184 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8185 argument.
8186
1c63c994
TT
81872014-02-19 Tom Tromey <tromey@redhat.com>
8188
8189 * target.h (struct target_ops) <to_record_is_replaying>: Add
8190 argument.
8191 * target.c (target_record_is_replaying): Add argument.
8192 * record-full.c (record_full_is_replaying): Add 'self' argument.
8193 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8194 argument.
8195 (record_btrace_xfer_partial, record_btrace_store_registers)
8196 (record_btrace_prepare_to_store, record_btrace_resume)
8197 (record_btrace_wait, record_btrace_decr_pc_after_break)
8198 (record_btrace_find_new_threads, record_btrace_thread_alive):
8199 Update.
8200
d1b55219
TT
82012014-02-19 Tom Tromey <tromey@redhat.com>
8202
8203 * target.h (struct target_ops) <to_delete_record>: Add argument.
8204 * target.c (target_delete_record): Add argument.
8205 * record-full.c (record_full_delete): Add 'self' argument.
8206
1390f529
TT
82072014-02-19 Tom Tromey <tromey@redhat.com>
8208
8209 * target.h (struct target_ops) <to_save_record>: Add argument.
8210 * target.c (target_save_record): Add argument.
8211 * record-full.c (record_full_save): Add 'self' argument.
8212 (record_full_save): Add 'self' argument.
8213
630d6a4a
TT
82142014-02-19 Tom Tromey <tromey@redhat.com>
8215
8216 * target.h (struct target_ops) <to_info_record>: Add argument.
8217 * target.c (target_info_record): Add argument.
8218 * record.c (info_record_command): Add argument.
8219 * record-full.c (record_full_info): Add 'self' argument.
8220 * record-btrace.c (record_btrace_info): Add 'self' argument.
8221
c6cd7c02
TT
82222014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8225 * target.c (target_stop_recording): Add argument.
8226 * record.c (record_stop): Add argument.
8227 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8228 argument.
8229
39c49f83
TT
82302014-02-19 Tom Tromey <tromey@redhat.com>
8231
8232 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8233 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8234 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8235 argument.
8236 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8237 (_initialize_amd64_linux_nat): Use it.
8238 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8239 (_initialize_i386_linux_nat): Use it.
8240
1777056d
TT
82412014-02-19 Tom Tromey <tromey@redhat.com>
8242
8243 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8244 * target.c (target_teardown_btrace): Add argument.
8245 * remote.c (remote_teardown_btrace): Add 'self' argument.
8246 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8247 argument.
8248 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8249 argument.
8250
25e95349
TT
82512014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8254 * target.c (target_disable_btrace): Add argument.
8255 * remote.c (remote_disable_btrace): Add 'self' argument.
8256 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8257 argument.
8258 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8259 argument.
8260
e3c49f88
TT
82612014-02-19 Tom Tromey <tromey@redhat.com>
8262
8263 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8264 * target.c (target_enable_btrace): Add argument.
8265 * remote.c (remote_enable_btrace): Add 'self' argument.
8266 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8267 argument.
8268 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8269 argument.
8270
fe38f897
TT
82712014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8274 (target_can_use_agent): Add argument.
8275 * target.c (update_current_target): Update.
8276 * remote.c (remote_can_use_agent): Add 'self' argument.
8277 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8278
2c152180
TT
82792014-02-19 Tom Tromey <tromey@redhat.com>
8280
8281 * target.h (struct target_ops) <to_use_agent>: Add argument.
8282 (target_use_agent): Add argument.
8283 * target.c (update_current_target): Update.
8284 * remote.c (remote_use_agent): Add 'self' argument.
8285 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8286
a893e81f
TT
82872014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8290 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8291 (target_traceframe_info): Add argument.
8292 * target.c (update_current_target): Update.
8293 * remote.c (remote_traceframe_info): Add 'self' argument.
8294 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8295
c686c57f
TT
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target.h (target_static_tracepoint_markers_by_strid): Add
8299 argument.
8300 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8301 'self' argument.
8302 * target.c (update_current_target): Update.
8303 * remote.c (struct target_ops)
8304 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8305 * linux-nat.c (struct target_ops)
8306 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8307
61fc905d
TT
83082014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8311 Add argument.
8312 (target_static_tracepoint_marker_at): Add argument.
8313 * target.c (update_current_target): Update.
8314 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8315 argument.
8316
c378d69d
TT
83172014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8320 (target_set_permissions): Add argument.
8321 * target.c (update_current_target): Update.
8322 * remote.c (remote_set_permissions): Add 'self' argument.
8323 (remote_start_remote): Update.
8324
bd7ae0f5
TT
83252014-02-19 Tom Tromey <tromey@redhat.com>
8326
8327 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8328 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8329 (target_get_tib_address): Add argument.
8330 * target.c (update_current_target): Update.
8331 * remote.c (remote_get_tib_address): Add 'self' argument.
8332
d9e68a2c
TT
83332014-02-19 Tom Tromey <tromey@redhat.com>
8334
8335 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8336 (target_set_trace_notes): Add argument.
8337 * target.c (update_current_target): Update.
8338 * remote.c (remote_set_trace_notes): Add 'self' argument.
8339
4da384be
TT
83402014-02-19 Tom Tromey <tromey@redhat.com>
8341
8342 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8343 argument.
8344 (target_set_trace_buffer_size): Add argument.
8345 * target.c (update_current_target): Update.
8346 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8347
736d5b1f
TT
83482014-02-19 Tom Tromey <tromey@redhat.com>
8349
8350 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8351 argument.
8352 (target_set_circular_trace_buffer): Add argument.
8353 * target.c (update_current_target): Update.
8354 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8355 argument.
8356
37b25738
TT
83572014-02-19 Tom Tromey <tromey@redhat.com>
8358
8359 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8360 argument.
8361 (target_set_disconnected_tracing): Add argument.
8362 * target.c (update_current_target): Update.
8363 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8364
0e67620a
TT
83652014-02-19 Tom Tromey <tromey@redhat.com>
8366
8367 * target.h (struct target_ops)
8368 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8369 (target_get_min_fast_tracepoint_insn_len): Add argument.
8370 * target.c (update_current_target): Update.
8371 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8372 argument.
8373
88ee6f45
TT
83742014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8377 argument.
8378 (target_get_raw_trace_data): Add argument.
8379 * target.c (update_current_target): Update.
8380 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8381
181e3713
TT
83822014-02-19 Tom Tromey <tromey@redhat.com>
8383
8384 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8385 Add argument.
8386 (target_upload_trace_state_variables): Add argument.
8387 * target.c (update_current_target): Update.
8388 * remote.c (remote_upload_trace_state_variables): Add 'self'
8389 argument.
8390 (remote_start_remote): Update.
8391
ab6617cc
TT
83922014-02-19 Tom Tromey <tromey@redhat.com>
8393
8394 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8395 argument.
8396 (target_upload_tracepoints): Add argument.
8397 * target.c (update_current_target): Update.
8398 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8399 (remote_start_remote): Update.
8400
dc3decaf
TT
84012014-02-19 Tom Tromey <tromey@redhat.com>
8402
8403 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8404 (target_save_trace_data): Add argument.
8405 * target.c (update_current_target): Update.
8406 * remote.c (remote_save_trace_data): Add 'self' argument.
8407
4011015b
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8411 argument.
8412 * target.h (struct target_ops)
8413 <to_get_trace_state_variable_value>: Add argument.
8414 (target_get_trace_state_variable_value): Add argument.
8415 * target.c (update_current_target): Update.
8416 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8417 argument.
8418 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8419
bd4c6793
TT
84202014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8423 * target.h (struct target_ops) <to_trace_find>: Add argument.
8424 (target_trace_find): Add argument.
8425 * target.c (update_current_target): Update.
8426 * remote.c (remote_trace_find): Add 'self' argument.
8427 * ctf.c (ctf_trace_find): Add 'self' argument.
8428
74499f1b
TT
84292014-02-19 Tom Tromey <tromey@redhat.com>
8430
8431 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8432 (target_trace_stop): Add argument.
8433 * target.c (update_current_target): Update.
8434 * remote.c (remote_trace_stop): Add 'self' argument.
8435
db90e85c
TT
84362014-02-19 Tom Tromey <tromey@redhat.com>
8437
8438 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8439 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8440 argument.
8441 (target_get_tracepoint_status): Add argument.
8442 * target.c (update_current_target): Update.
8443 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8444
8bd200f1
TT
84452014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8448 * target.h (struct target_ops) <to_get_trace_status>: Add
8449 argument.
8450 (target_get_trace_status): Add argument.
8451 * target.c (update_current_target): Update.
8452 * remote.c (remote_get_trace_status): Add 'self' argument.
8453 (remote_start_remote, remote_can_download_tracepoint): Update.
8454 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8455
e2d1aae3
TT
84562014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target.h (struct target_ops) <to_trace_start>: Add argument.
8459 (target_trace_start): Add argument.
8460 * target.c (update_current_target): Update.
8461 * remote.c (remote_trace_start): Add 'self' argument.
8462
583f9a86
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8466 Add argument.
8467 (target_trace_set_readonly_regions): Add argument.
8468 * target.c (update_current_target): Update.
8469 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8470 argument.
8471
780b049c
TT
84722014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8475 argument.
8476 (target_disable_tracepoint): Add argument.
8477 * target.c (update_current_target): Update.
8478 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8479
46670d57
TT
84802014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8483 argument.
8484 (target_enable_tracepoint): Add argument.
8485 * target.c (update_current_target): Update.
8486 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8487
559d2b81
TT
84882014-02-19 Tom Tromey <tromey@redhat.com>
8489
8490 * target.h (struct target_ops) <to_download_trace_state_variable>:
8491 Add argument.
8492 (target_download_trace_state_variable): Add argument.
8493 * target.c (update_current_target): Update.
8494 * remote.c (remote_download_trace_state_variable): Add 'self'
8495 argument.
8496
a52a8357
TT
84972014-02-19 Tom Tromey <tromey@redhat.com>
8498
8499 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8500 argument.
8501 (target_can_download_tracepoint): Add argument.
8502 * target.c (update_current_target): Update.
8503 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8504
548f7808
TT
85052014-02-19 Tom Tromey <tromey@redhat.com>
8506
8507 * target.h (struct target_ops) <to_download_tracepoint>: Add
8508 argument.
8509 (target_download_tracepoint): Add argument.
8510 * target.c (update_current_target): Update.
8511 * remote.c (remote_download_tracepoint): Add 'self' argument.
8512
ecae04e1
TT
85132014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target.h (struct target_ops) <to_trace_init>: Add argument.
8516 (target_trace_init): Add argument.
8517 * target.c (update_current_target): Update.
8518 * remote.c (remote_trace_init): Add 'self' argument.
8519
fab5aa7c
TT
85202014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8523 * target.c (target_fileio_readlink): Add argument.
8524 * remote.c (remote_hostio_readlink): Add 'self' argument.
8525 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8526
dbbca37d
TT
85272014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8530 * target.c (target_fileio_unlink): Add argument.
8531 * remote.c (remote_hostio_unlink): Add 'self' argument.
8532 (remote_file_delete): Update.
8533 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8534
df39ea25
TT
85352014-02-19 Tom Tromey <tromey@redhat.com>
8536
8537 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8538 * target.c (target_fileio_close): Add argument.
8539 * remote.c (remote_hostio_close): Add 'self' argument.
8540 (remote_hostio_close_cleanup): Update.
8541 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8542 Update.
8543 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8544
a3be983c
TT
85452014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8548 * target.c (target_fileio_pread): Add argument.
8549 * remote.c (remote_hostio_pread): Add 'self' argument.
8550 (remote_bfd_iovec_pread, remote_file_get): Update.
8551 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8552
0d866f62
TT
85532014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8556 * target.c (target_fileio_pwrite): Add argument.
8557 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8558 (remote_file_put): Update.
8559 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8560
cd897586
TT
85612014-02-19 Tom Tromey <tromey@redhat.com>
8562
8563 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8564 * target.c (target_fileio_open): Add argument.
8565 * remote.c (remote_hostio_open): Add 'self' argument.
8566 (remote_bfd_iovec_open): Add 'self' argument.
8567 (remote_file_put): Add 'self' argument.
8568 (remote_file_get): Add 'self' argument.
8569 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8570
78eff0ec
TT
85712014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8574 Add argument.
8575 (target_can_run_breakpoint_commands): Add argument.
8576 * target.c (update_current_target): Update.
8577 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8578 argument.
8579 (remote_insert_breakpoint): Add 'self' argument.
8580 (remote_insert_hw_breakpoint): Add 'self' argument.
8581 (remote_can_run_breakpoint_commands): Add 'self' argument.
8582
efcc2da7
TT
85832014-02-19 Tom Tromey <tromey@redhat.com>
8584
8585 * target.h (struct target_ops)
8586 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8587 (target_supports_evaluation_of_breakpoint_conditions): Add
8588 argument.
8589 * target.c (update_current_target): Update.
8590 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8591 argument.
8592 (remote_insert_breakpoint): Add 'self' argument.
8593 (remote_insert_hw_breakpoint): Add 'self' argument.
8594 (remote_supports_cond_breakpoints): Add 'self' argument.
8595
6de37a3a
TT
85962014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8599 argument.
8600 (target_supports_string_tracing): Add argument.
8601 * target.c (update_current_target): Update.
8602 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8603
2bfc0540
TT
86042014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target.h (struct target_ops)
8607 <to_supports_disable_randomization>: Add argument.
8608 * target.c (find_default_supports_disable_randomization): Add
8609 argument.
8610 (target_supports_disable_randomization): Add argument.
8611 (find_default_supports_disable_randomization): Add 'self'
8612 argument.
8613 * remote.c (extended_remote_supports_disable_randomization): Add
8614 'self' argument.
8615 (remote_supports_disable_randomization): Add 'self' argument.
8616 (extended_remote_create_inferior): Update.
8617 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8618 'self' argument.
8619
7d178d6a
TT
86202014-02-19 Tom Tromey <tromey@redhat.com>
8621
8622 * target.h (struct target_ops)
8623 <to_supports_enable_disable_tracepoint>: Add argument.
8624 (target_supports_enable_disable_tracepoint): Add argument.
8625 * target.c (update_current_target): Update.
8626 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8627 argument.
8628
86ce2668
TT
86292014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target.h (struct target_ops) <to_supports_multi_process>: Add
8632 argument.
8633 (target_supports_multi_process): Add argument.
8634 * target.c (update_current_target): Update.
8635 * remote.c (remote_supports_multi_process): Add 'self' argument.
8636 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8637 argument.
8638 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8639 argument.
8640
4c612759
TT
86412014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target.h (struct target_ops) <to_execution_direction>: Add
8644 argument.
8645 (target_execution_direction): Add argument.
8646 * target.c (default_execution_direction): Add 'self' argument.
8647 * record-full.c (record_full_execution_direction): Add 'self'
8648 argument.
8649
19db3e69
TT
86502014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8653 argument.
8654 (target_can_execute_reverse): Add argument.
8655 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8656 * record-full.c (record_full_can_execute_reverse): Add 'self'
8657 argument.
8658 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8659 argument.
8660
1e6b91a4
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8664 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8665 argument.
8666 (target_get_ada_task_ptid): Add argument.
8667 * target.c (update_current_target): Update.
8668 (default_get_ada_task_ptid): Add 'self' argument.
8669 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8670 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8671 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8672 argument.
8673 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8674 argument.
8675 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8676 argument.
8677 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8678 argument.
8679 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8680 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8681 argument.
8682
3c80fb48
TT
86832014-02-19 Tom Tromey <tromey@redhat.com>
8684
8685 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8686 (target_goto_bookmark): Add argument.
8687 * target.c (dummy_goto_bookmark): Add 'self' argument.
8688 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8689
dd0e2830
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8693 (target_get_bookmark): Add argument.
8694 * target.c (dummy_get_bookmark): Add 'self' argument.
8695 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8696
fc6691b2
TT
86972014-02-19 Tom Tromey <tromey@redhat.com>
8698
8699 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8700 argument.
8701 (target_make_corefile_notes): Add argument.
8702 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8703 * procfs.c (procfs_make_note_section): Add 'self' argument.
8704 (procfs_make_note_section): Add 'self' argument.
8705 (procfs_make_note_section): Add 'self' argument.
8706 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8707 argument.
8708 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8709 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8710 * exec.c (exec_make_note_section): Add 'self' argument.
8711 (exec_make_note_section): Add 'self' argument.
8712
2e73927c
TT
87132014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target.h (struct target_ops) <to_find_memory_regions>: Add
8716 argument.
8717 (target_find_memory_regions): Add argument.
8718 * target.c (dummy_find_memory_regions): Add 'self' argument.
8719 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8720 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8721 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8722 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8723 * exec. (exec_do_find_memory_regions): New global.
8724 (exec_set_find_memory_regions): Rewrite.
8725 (exec_find_memory_regions): New function.
8726 (init_exec_ops): Use exec_find_memory_regions.
8727
2a9a2795
TT
87282014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target.h (struct target_ops) <to_supports_non_stop>: Add
8731 argument.
8732 * target.c (find_default_supports_non_stop): Add argument.
8733 (target_supports_non_stop): Add argument.
8734 (find_default_supports_non_stop): Add 'self' argument.
8735 * remote.c (remote_supports_non_stop): Add 'self' argument.
8736 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8737
4ab76ea3
TT
87382014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target.h (struct target_ops) <to_log_command>: Add argument.
8741 (target_log_command): Add argument.
8742 * serial.h (serial_log_command): Add 'self' argument.
8743 * serial.c (serial_log_command): Add 'self' argument.
8744
8dd27370
TT
87452014-02-19 Tom Tromey <tromey@redhat.com>
8746
8747 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8748 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8749 argument.
8750 (target_pid_to_exec_file): Add argument.
8751 * target.c (debug_to_pid_to_exec_file): Add argument.
8752 (update_current_target): Update.
8753 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8754 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8755 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8756 (linux_handle_extended_wait): Update.
8757 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8758 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8759 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8760 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8761
1aac633b
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target.h (struct target_ops) <to_rcmd>: Add argument.
8765 (target_rcmd): Add argument.
8766 * target.c (debug_to_rcmd): Add argument.
8767 (update_current_target, do_monitor_command): Update.
8768 * remote.c (remote_rcmd): Add 'self' argument.
8769 * monitor.c (monitor_rcmd): Add 'self' argument.
8770
1eab8a48
TT
87712014-02-19 Tom Tromey <tromey@redhat.com>
8772
8773 * windows-nat.c (windows_stop): Add 'self' argument.
8774 * target.h (struct target_ops) <to_stop>: Add argument.
8775 * target.c (target_stop): Add argument.
8776 (debug_to_stop): Add argument.
8777 (update_current_target): Update.
8778 * remote.c (remote_stop): Add 'self' argument.
8779 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8780 (gdbsim_cntrl_c): Update.
8781 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8782 * procfs.c (procfs_stop): Add 'self' argument.
8783 * nto-procfs.c (procfs_stop): Add 'self' argument.
8784 * monitor.c (monitor_stop): Add 'self' argument.
8785 (monitor_open): Update.
8786 * linux-nat.c (linux_nat_stop): Add argument.
8787 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8788 * gnu-nat.c (gnu_stop): Add 'self' argument.
8789 * darwin-nat.c (darwin_stop): Add 'self' argument.
8790
503a628d
TT
87912014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target.h (struct target_ops) <to_thread_name>: Add argument.
8794 * target.c (target_thread_name): Add argument.
8795 (update_current_target): Update.
8796 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8797
c15906d8
TT
87982014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * target.h (struct target_ops) <to_extra_thread_info>: Add
8801 argument.
8802 (target_extra_thread_info): Add argument.
8803 * target.c (update_current_target): Update.
8804 * remote.c (remote_threads_extra_info): Add 'self' argument.
8805 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8806 argument.
8807 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8808 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8809 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8810 argument.
8811 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8812 argument.
8813 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8814 argument.
8815 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8816 argument.
8817
daf5e9b6
TT
88182014-02-19 Tom Tromey <tromey@redhat.com>
8819
8820 * target.h (struct target_ops) <to_program_signals>: Add argument.
8821 * target.c (target_program_signals): Add argument.
8822 * remote.c (remote_program_signals): Add 'self' argument.
8823
94bedb42
TT
88242014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8827 * target.c (target_pass_signals): Add argument.
8828 * remote.c (remote_pass_signals): Add 'self' argument.
8829 (remote_start_remote): Update.
8830 * procfs.c (procfs_pass_signals): Add 'self' argument.
8831 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8832 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8833 (linux_nat_create_inferior, linux_nat_attach): Update.
8834
da82bd6b
TT
88352014-02-19 Tom Tromey <tromey@redhat.com>
8836
8837 * windows-nat.c (windows_can_run): Add 'self' argument.
8838 * target.h (struct target_ops) <to_can_run>: Add argument.
8839 (target_can_run): Add argument.
8840 * target.c (debug_to_can_run): Add argument.
8841 (update_current_target): Update.
8842 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8843 * inf-child.c (inf_child_can_run): Add 'self' argument.
8844 * go32-nat.c (go32_can_run): Add 'self' argument.
8845
d796e1d6
TT
88462014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target.h (struct target_ops) <to_has_exited>: Add argument.
8849 (target_has_exited): Add argument.
8850 * target.c (debug_to_has_exited): Add argument.
8851 (update_current_target): Update.
8852
ff214e67
TT
88532014-02-19 Tom Tromey <tromey@redhat.com>
8854
8855 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8856 argument.
8857 (target_set_syscall_catchpoint): Add argument.
8858 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8859 argument.
8860 * target.c (update_current_target): Update.
8861
758e29d2
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8865 argument.
8866 (target_remove_exec_catchpoint): Add argument.
8867 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8868 (update_current_target): Update.
8869 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8870 argument.
8871
ba025e51
TT
88722014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8875 argument.
8876 (target_insert_exec_catchpoint): Add argument.
8877 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8878 (update_current_target): Update.
8879 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8880 argument.
8881
e98cf0cd
TT
88822014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8885 argument.
8886 (target_remove_vfork_catchpoint): Add argument.
8887 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8888 (update_current_target): Update.
8889 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8890 argument.
8891
3ecc7da0
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8895 argument.
8896 (target_insert_vfork_catchpoint): Add argument.
8897 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8898 (update_current_target): Update.
8899 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8900 argument.
8901
973fc227
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8905 argument.
8906 (target_remove_fork_catchpoint): Add argument.
8907 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8908 (update_current_target): Update.
8909 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8910 argument.
8911
a863b201
TT
89122014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8915 argument.
8916 (target_insert_fork_catchpoint): Add argument.
8917 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8918 (update_current_target): Update.
8919 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8920 argument.
8921
2e97a79e
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8925 argument.
8926 (target_post_startup_inferior): Add argument.
8927 * target.c (debug_to_post_startup_inferior): Add argument.
8928 (update_current_target): Update.
8929 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8930 argument.
8931 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8932 argument.
8933 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8934 argument.
8935 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8936 argument.
8937 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8938 'self' argument.
8939 (super_post_startup_inferior): Likewise.
8940 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8941 'self' argument.
8942 (super_post_startup_inferior): Likewise.
8943 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8944 Add 'self' argument.
8945 (super_post_startup_inferior): Likewise.
8946
71a9f134
TT
89472014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target.h (struct target_ops) <to_load>: Add argument.
8950 * target.c (target_load): Add argument.
8951 (debug_to_load): Add argument.
8952 (update_current_target): Update.
8953 * remote.c (remote_load): Add 'self' argument.
8954 * remote-sim.c (gdbsim_load): Add 'self' argument.
8955 * remote-mips.c (mips_load): Add 'self' argument.
8956 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8957 * monitor.c (monitor_load): Add 'self' argument.
8958 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8959
0a4f40a2
TT
89602014-02-19 Tom Tromey <tromey@redhat.com>
8961
8962 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8963 (target_terminal_info): Add argument.
8964 * target.c (debug_to_terminal_info): Add argument.
8965 (default_terminal_info): Likewise.
8966 * inflow.c (child_terminal_info): Add 'self' argument.
8967 * inferior.h (child_terminal_info): Add 'self' argument.
8968 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8969
ae3bd431
TT
89702014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8973 argument.
8974 (target_terminal_save_ours): Add argument.
8975 * target.c (debug_to_terminal_save_ours): Add argument.
8976 (update_current_target): Update.
8977 * inflow.c (terminal_save_ours): Add 'self' argument.
8978 * inferior.h (terminal_save_ours): Add 'self' argument.
8979
e3594fd1
TT
89802014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8983 (target_terminal_ours): Add argument.
8984 * target.c (debug_to_terminal_ours): Add argument.
8985 (update_current_target): Update.
8986 * remote.c (remote_terminal_ours): Add 'self' argument.
8987 (remote_close): Update.
8988 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8989 * inflow.c (terminal_ours): Add 'self' argument.
8990 * inferior.h (terminal_ours): Add 'self' argument.
8991 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8992
2e1e1a19
TT
89932014-02-19 Pedro Alves <palves@redhat.com>
8994 Tom Tromey <tromey@redhat.com>
8995
8996 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8997 argument.
8998 (target_terminal_ours_for_output): Add argument.
8999 * target.c (debug_to_terminal_ours_for_output): Add argument.
9000 (update_current_target): Update.
9001 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9002 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9003 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9004
d2f640d4
TT
90052014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target.h (struct target_ops) <to_terminal_inferior>: Add
9008 argument.
9009 * target.c (target_terminal_inferior): Add argument.
9010 (update_current_target): Update.
9011 * remote.c (remote_terminal_inferior): Add 'self' argument.
9012 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9013 * inflow.c (terminal_inferior): Add 'self' argument.
9014 * inferior.h (terminal_inferior): Add 'self' argument.
9015 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9016 (go32_terminal_inferior): Add 'self' argument.
9017
c42bf286
TT
90182014-02-19 Tom Tromey <tromey@redhat.com>
9019
9020 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9021 (target_terminal_init): Add argument.
9022 * target.c (debug_to_terminal_init): Add argument.
9023 (update_current_target): Update.
9024 * inflow.c (terminal_init_inferior): Add 'self' argument.
9025 * inferior.h (terminal_init_inferior): Add 'self' argument.
9026 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9027 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9028
c3a5ff89
TT
90292014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target.h (struct target_ops)
9032 <to_can_accel_watchpoint_condition>: Add argument.
9033 (target_can_accel_watchpoint_condition): Add argument.
9034 * target.c (debug_to_can_accel_watchpoint_condition): Add
9035 argument.
9036 (update_current_target): Update.
9037 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9038 'self' argument.
9039
31568a15
TT
90402014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9043 Add argument.
9044 (target_region_ok_for_hw_watchpoint): Add argument.
9045 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9046 (default_region_ok_for_hw_watchpoint): Add argument.
9047 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9048 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9049 argument.
9050 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9051 argument.
9052 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9053 argument.
9054 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9055 'self' argument.
9056 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9057 'self' argument.
9058 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9059 'self' argument.
9060 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9061 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9062 'self' argument.
9063 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9064 Add 'self' argument.
9065
7bb99c53
TT
90662014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9069 argument.
9070 (target_insert_watchpoint): Add argument.
9071 * target.c (debug_to_insert_watchpoint): Add argument.
9072 (update_current_target): Update.
9073 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9074 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9075 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9076 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9077 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9078 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9079 argument.
9080 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9081 (procfs_insert_hw_watchpoint): Add 'self' argument.
9082 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9083 argument.
9084 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9085 argument.
9086 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9087 argument.
9088 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9089 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9090 argument.
9091 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9092 'self' argument.
9093
11b5219a
TT
90942014-02-19 Tom Tromey <tromey@redhat.com>
9095
9096 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9097 argument.
9098 (target_remove_watchpoint): Add argument.
9099 * target.c (debug_to_remove_watchpoint): Add argument.
9100 (update_current_target): Update.
9101 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9102 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9103 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9104 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9105 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9106 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9107 argument.
9108 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9109 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9110 argument.
9111 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9112 argument.
9113 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9114 argument.
9115 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9116 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9117 argument.
9118 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9119 'self' argument.
9120
a64dc96c
TT
91212014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9124 argument.
9125 (target_remove_hw_breakpoint): Add argument.
9126 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9127 (update_current_target): Update.
9128 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9129 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9130 argument.
9131 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9132 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9133 argument.
9134 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9135 'self' argument.
9136
23a26771
TT
91372014-02-19 Tom Tromey <tromey@redhat.com>
9138
9139 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9140 argument.
9141 (target_insert_hw_breakpoint): Add argument.
9142 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9143 (update_current_target): Update.
9144 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9145 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9146 argument.
9147 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9148 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9149 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9150 argument.
9151 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9152 'self' argument.
9153
5461485a
TT
91542014-02-19 Tom Tromey <tromey@redhat.com>
9155
9156 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9157 argument.
9158 (target_can_use_hardware_watchpoint): Add argument.
9159 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9160 (update_current_target): Update.
9161 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9162 argument.
9163 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9164 argument.
9165 * remote.c (remote_check_watch_resources): Add 'self' argument.
9166 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9167 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9168 argument.
9169 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9170 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9171 argument.
9172 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9173 argument.
9174 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9175 argument.
9176 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9177 argument.
9178 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9179 argument.
9180 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9181 argument.
9182 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9183 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9184 argument.
9185 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9186 'self' argument.
9187
f045800c
TT
91882014-02-19 Tom Tromey <tromey@redhat.com>
9189
9190 * target.h (struct target_ops) <to_post_attach>: Add argument.
9191 (target_post_attach): Add argument.
9192 * target.c (debug_to_post_attach): Add argument.
9193 (update_current_target): Update.
9194 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9195 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9196 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9197 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9198 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9199
de90e03d
TT
92002014-02-19 Tom Tromey <tromey@redhat.com>
9201
9202 * windows-nat.c (windows_close): Add 'self' argument.
9203 * tracepoint.c (tfile_close): Add 'self' argument.
9204 * target.h (struct target_ops) <to_close>: Add argument.
9205 * target.c (target_close): Add argument.
9206 (update_current_target): Update.
9207 * remote.c (remote_close): Add 'self' argument.
9208 * remote-sim.c (gdbsim_close): Add 'self' argument.
9209 * remote-mips.c (mips_close): Add 'self' argument.
9210 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9211 * record-full.c (record_full_close): Add 'self' argument.
9212 * record-btrace.c (record_btrace_close): Add 'self' argument.
9213 * monitor.h (monitor_close): Add 'self' argument.
9214 * monitor.c (monitor_close): Add 'self' argument.
9215 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9216 * linux-nat.c (linux_nat_close): Add argument.
9217 * go32-nat.c (go32_close): Add 'self' argument.
9218 * exec.c (exec_close_1): Add 'self' argument.
9219 * ctf.c (ctf_close): Add 'self' argument.
9220 * corelow.c (core_close): Add 'self' argument.
9221 (core_close_cleanup): Update.
9222 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9223 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9224
9dd130a0
TT
92252014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * remote.c (remote_load): New function.
9228 (init_remote_ops): Use it.
9229
46917d26
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9233 argument.
9234 * common/linux-btrace.h (linux_supports_btrace): Update.
9235 * remote.c (remote_supports_btrace): Add "self" argument.
9236 * target-delegates.c: Rebuild.
9237 * target.c (target_supports_btrace): Remove.
9238 * target.h (struct target_ops) <to_supports_btrace>: Add
9239 target_ops argument.
9240 (target_supports_btrace): New define.
9241
6b84065d
TT
92422014-02-19 Tom Tromey <tromey@redhat.com>
9243
9244 * record-full.c (record_full_beneath_to_resume_ops)
9245 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9246 (record_full_beneath_to_wait)
9247 (record_full_beneath_to_store_registers_ops)
9248 (record_full_beneath_to_store_registers)
9249 (record_full_beneath_to_xfer_partial_ops)
9250 (record_full_beneath_to_xfer_partial)
9251 (record_full_beneath_to_insert_breakpoint_ops)
9252 (record_full_beneath_to_insert_breakpoint)
9253 (record_full_beneath_to_remove_breakpoint_ops)
9254 (record_full_beneath_to_remove_breakpoint)
9255 (record_full_beneath_to_stopped_by_watchpoint)
9256 (record_full_beneath_to_stopped_data_address)
9257 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9258 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9259 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9260 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9261 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9262 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9263 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9264 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9265 (record_full_resume, record_full_wait_1)
9266 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9267 (record_full_store_registers, record_full_xfer_partial)
9268 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9269 (record_full_async, record_full_core_xfer_partial): Use target
9270 delegation.
9271 * target-delegates.c: Rebuild.
9272 * target.c (current_xfer_partial): Remove.
9273 (update_current_target): Do not INHERIT or de_fault
9274 to_insert_breakpoint, to_remove_breakpoint,
9275 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9276 to_is_async_p, to_async. Do not set to_xfer_partial field.
9277 (default_xfer_partial): Simplify.
9278 (current_xfer_partial): Remove.
9279 (target_wait, target_resume): Simplify.
9280 (find_default_can_async_p, find_default_is_async_p): Update.
9281 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9282 to_xfer_partial, to_stopped_by_watchpoint,
9283 to_stopped_data_address.
9284 (target_store_registers): Simplify.
9285 (forward_target_remove_breakpoint)
9286 (forward_target_insert_breakpoint): Remove.
9287 (target_remove_breakpoint, target_insert_breakpoint)
9288 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9289 * target.h (struct target_ops) <to_resume, to_wait,
9290 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9291 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9292 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9293 markup.
9294 (forward_target_remove_breakpoint)
9295 (forward_target_insert_breakpoint): Remove.
9296 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9297 directly.
9298 (record_btrace_insert_breakpoint): Delegate directly.
9299
1101cb7b
TT
93002014-02-19 Tom Tromey <tromey@redhat.com>
9301
9302 PR build/7701:
9303 * target-delegates.c: New file.
9304 * target.c: Include target-delegates.c.
9305 (init_dummy_target): Call install_dummy_methods.
9306 (complete_target_initialization): Call install_delegators.
9307 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9308 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9309 * make-target-delegates: New file.
9310
8b06beed
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * record.c (find_record_target): Use find_target_at.
9314 * target.c (find_target_at): New function.
9315 * target.h (find_target_at): Declare.
9316
6a109b6b
TT
93172014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9320 Add 'ops' argument.
9321 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9322 'ops' argument.
9323 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9324 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9325 'ops' argument.
9326 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9327 argument.
9328 * linux-nat.c (save_sigtrap): Update.
9329 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9330 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9331 (linux_nat_close): Update.
9332 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9333 argument.
9334 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9335 argument.
9336 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9337 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9338 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9339 (tmp_to_async): Add 'ops' argument.
9340 (record_full_stopped_by_watchpoint, record_full_async)
9341 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9342 argument.
9343 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9344 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9345 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9346 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9347 (remote_is_async_p, remote_async): Add 'ops' argument.
9348 (remote_stopped_data_address): Update.
9349 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9350 * target.c (update_current_target)
9351 (find_default_can_async_p, find_default_is_async_p): Update.
9352 (init_dummy_target): Update.
9353 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9354 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9355 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9356 (target_can_async_p, target_is_async_p, target_async)
9357 (target_stopped_by_watchpoint): Update.
9358
e095146b
YQ
93592014-02-19 Yao Qi <yao@codesourcery.com>
9360
9361 PR gdb/16220
9362 * gdbarch.sh: Remove startup_gdbarch.
9363 * gdbarch.c: Regenerated.
9364 * gdbarch.h: Likewise.
9365
bc3c6b36
KB
93662014-02-17 Kevin Buettner <kevinb@redhat.com>
9367
9368 * rl78-tdep.c (rl78_g10_register_name): New function.
9369 (rl78_return_value): Add g10 support.
9370 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9371 g10.
9372
98dc0167 93732014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9374
9375 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9376 (SUBDIR_GUILE_SRCS): Ditto.
9377 (scm-gsmob.o): Ditto.
9378
842c05cd
YQ
93792014-02-17 Yao Qi <yao@codesourcery.com>
9380
9381 * gnu-nat.c (ILL_RPC): Declare defined function.
9382
25c0bd04
YQ
93832014-02-17 Yao Qi <yao@codesourcery.com>
9384
9385 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9386 mach_msg_type_number_t.
9387 (gnu_write_inferior): Likewise.
9388
a9a758e3
YQ
93892014-02-17 Yao Qi <yao@codesourcery.com>
9390
9391 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9392 in format string.
9393 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9394 (inf_validate_procs, inf_signal): Likewise.
9395 (S_exception_raise_request): Likewise.
9396 (do_mach_notify_dead_name): Likewise.
9397 (steal_exc_port): Likewise.
9398 (gnu_read_inferior): Change 'copy_count''s type to
9399 mach_msg_type_number_t.
9400 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9401 format string.
9402
bae8023e
TS
94032014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9404
c82f56d9
TS
9405 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9406 flag. Adjust all users; in particular...
9407 (gnu_wait): ..., don't decrement its value in here...
9408 (gnu_create_inferior): ..., and instead set the flag in here,
9409 around the startup_inferior call, and call that one with
9410 START_INFERIOR_TRAPS_EXPECTED.
9411
3398af6a
TS
9412 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9413 (ILL_RPC): ... new macro.
9414 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9415 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9416 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9417 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9418 functions with ILL_RPC macro.
9419 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9420 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9421 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9422 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9423 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9424 (S_proc_getlogin_reply, S_proc_getsid_reply)
9425 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9426 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9427 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9428 (S_proc_getnports_reply, S_proc_is_important_reply)
9429 (S_proc_get_code_reply): New stub functions, generated with
9430 ILL_RPC macro.
9431
d47642c9
TS
9432 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9433 collected the type check structures.
9434
bae8023e
TS
9435 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9436
8a55ffb0
DE
94372014-02-14 Doug Evans <dje@google.com>
9438
9439 * target.c (target_write_partial): Fix result type.
9440
c2853f3d
JM
94412014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9442
9443 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9444 the proper offsets to access fpregset_t.
9445
ac61d2db
SA
94462014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9447
9448 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9449 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9450 * h8300-tdep.c (setmachinelist): Remove global.
9451 * hppa-tdep.c (hppa_sigtramp): Remove global.
9452 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9453 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9454 * ravenscar-thread.c (update_target_observer): Remove global.
9455 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9456
9d2d0b8b
TT
94572014-02-12 Tom Tromey <tromey@redhat.com>
9458
9459 * common/rsp-low.c: Update comments.
9460 * common/rsp-low.h: Update comments.
9461
a7191e8b
TT
94622014-02-12 Tom Tromey <tromey@redhat.com>
9463
9464 * common/rsp-low.c (convert_ascii_to_int): Remove.
9465 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9466
ff0e980e
TT
94672014-02-12 Tom Tromey <tromey@redhat.com>
9468
9469 * common/rsp-low.h (unhexify): Don't declare.
9470 * common/rsp-low.c (unhexify): Remove.
9471
e9371aff
TT
94722014-02-12 Tom Tromey <tromey@redhat.com>
9473
9474 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9475 * common/rsp-low.c (convert_int_to_ascii): Remove.
9476
971dc0b8
TT
94772014-02-12 Tom Tromey <tromey@redhat.com>
9478
9479 * common/rsp-low.h (hexify): Don't declare.
9480 * common/rsp-low.c (hexify): Remove.
9481
0a822afb
TT
94822014-02-12 Tom Tromey <tromey@redhat.com>
9483
9484 * common/rsp-low.c (hexify): Never take strlen of argument.
9485
9f1b45b0
TT
94862014-02-12 Tom Tromey <tromey@redhat.com>
9487
9488 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9489 * remote.c (extended_remote_run, remote_rcmd)
9490 (remote_download_trace_state_variable, remote_save_trace_data)
9491 (remote_set_trace_notes): Update.
9492 * tracepoint.c (encode_source_string, tfile_write_status)
9493 (tfile_write_uploaded_tsv): Update.
9494
9c3d6531
TT
94952014-02-12 Tom Tromey <tromey@redhat.com>
9496
9497 * tracepoint.c: Include rsp-low.h.
9498 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9499 * remote.c: Include rsp-low.h.
9500 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9501 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9502 (remote_unescape_input): Move to common/rsp-low.c.
9503 * common/rsp-low.h: New file.
9504 * common/rsp-low.c: New file.
9505 * Makefile.in (SFILES): Add common/rsp-low.c.
9506 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9507 (COMMON_OBS): Add rsp-low.o.
9508 (rsp-low.o): New target.
9509
01fd3ea5
TT
95102014-02-12 Tom Tromey <tromey@redhat.com>
9511
9512 * utils.h: Include print-utils.h.
9513 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9514 (int_string, core_addr_to_string, core_addr_to_string_nz)
9515 (hex_string, hex_string_custom): Don't declare.
9516 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9517 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9518 (hex_string_custom, int_string, core_addr_to_string)
9519 (core_addr_to_string_nz, host_address_to_string): Move to
9520 common/print-utils.c.
9521 * common/print-utils.h: New file.
9522 * common/print-utils.c: New file
9523 * Makefile.in (SFILES): Add common/print-utils.c.
9524 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9525 (COMMON_OBS): Add print-utils.o.
9526 (print-utils.o): New target.
9527
9fb50108
TT
95282014-02-12 Tom Tromey <tromey@redhat.com>
9529
9530 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9531
0548b5db
MK
95322014-02-12 Mark Kettenis <kettenis@gnu.org>
9533
9534 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9535
493443a4
MK
95362014-02-12 Mark Kettenis <kettenis@gnu.org>
9537
9538 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9539 if a PT_IO ptrace request returns sucessfully but indicates that 0
9540 bytes were transferred.
9541
706d0883
PA
95422014-02-12 Pedro Alves <palves@redhat.com>
9543 Kevin Buettner <kevinb@redhat.com>
9544
9545 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9546 TYPE_INSTANCE_FLAG_CODE_SPACE.
9547
5caa2f0b
PA
95482014-02-12 Pedro Alves <palves@redhat.com>
9549
9550 * h8300-tdep.c (pseudo_from_raw_register)
9551 (raw_from_pseudo_register): New functions.
9552 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9553 them.
9554
76fd5f74
PA
95552014-02-12 Pedro Alves <palves@redhat.com>
9556
9557 * h8300-tdep.c (h8300_register_sim_regno): New function.
9558 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9559 gdbarch_register_sim_regno hook.
9560
8f008406
SA
95612014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9562
9563 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9564
195abc10
SA
95652014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9566
9567 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9568
93ffa5b9
MK
95692014-02-12 Mark Kettenis <kettenis@gnu.org>
9570
9571 * obsd-tdep.h (obsd_init_abi): New prototype.
9572 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9573 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9574 (obsd_init_abi): New functions.
9575 * i386obsd-tdep.c: Include "obsd-tdep.h".
9576 (i386obsd_init_abi): Call obsd_init_abi.
9577 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9578 (amd64obsd_init_abi): Call obsd_init_abi.
9579 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9580 obsd-tdep.c to gdb_target_obs.
9581
49caec94
JM
95822014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9583
9584 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9585 double float arguments to 16-byte in the argument slots.
9586
e1402065
DE
95872014-02-11 Doug Evans <xdje42@gmail.com>
9588
9589 * configure.ac: Don't crash if pkg-config is not found and guile
9590 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9591 in guile checks.
9592 * configure: Regenerate.
9593
edcc890f
YQ
95942014-02-11 Yao Qi <yao@codesourcery.com>
9595
9596 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9597 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9598 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9599 * gnu-nat.c (gnu_xfer_memory): Likewise.
9600 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9601 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9602 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9603 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9604
9b409511
YQ
96052014-02-11 Yao Qi <yao@codesourcery.com>
9606
9607 * target.h (enum target_xfer_error): Rename to ...
9608 (enum target_xfer_status): ... it. New. All users updated.
9609 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9610 New.
9611 (TARGET_XFER_STATUS_ERROR_P): New macro.
9612 (target_xfer_error_to_string): Remove declaration.
9613 (target_xfer_status_to_string): Declare.
9614 (target_xfer_partial_ftype): Adjust it.
9615 (struct target_ops) <to_xfer_partial>: Return
9616 target_xfer_status. Add argument xfered_len. Update
9617 comments.
9618 * target.c (target_xfer_error_to_string): Rename to ...
9619 (target_xfer_status_to_string): ... it. New. All callers
9620 updated.
9621 (target_read_live_memory): Likewise. Call target_xfer_partial
9622 instead of target_read.
9623 (memory_xfer_live_readonly_partial): Return
9624 target_xfer_status. Add argument xfered_len.
9625 (raw_memory_xfer_partial): Likewise.
9626 (memory_xfer_partial_1): Likewise.
9627 (memory_xfer_partial): Likewise.
9628 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9629 properly. Update debug message.
9630 (default_xfer_partial, current_xfer_partial): Likewise.
9631 (target_write_partial): Likewise.
9632 (target_read_partial): Likewise. All callers updated.
9633 (read_whatever_is_readable): Likewise.
9634 (target_write_with_progress): Likewise.
9635 (target_read_alloc_1): Likewise.
9636
9637 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9638 * auxv.c (procfs_xfer_auxv): Likewise.
9639 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9640 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9641 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9642 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9643 * corefile.c (read_memory): Adjust.
9644 * corelow.c (core_xfer_partial): Likewise.
9645 * ctf.c (ctf_xfer_partial): Likewise.
9646 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9647 updated.
9648 (darwin_xfer_partial): Likewise.
9649 * exec.c (section_table_xfer_memory_partial): Likewise. All
9650 callers updated.
9651 (exec_xfer_partial): Likewise.
9652 * exec.h (section_table_xfer_memory_partial): Update
9653 declaration.
9654 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9655 negative.
9656 (gnu_xfer_partial): Likewise.
9657 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9658 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9659 (ia64_hpux_xfer_solib_got): Likewise.
9660 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9661 type of 'partial_len' to ULONGEST.
9662 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9663 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9664 (linux_nat_xfer_partial): Likewise.
9665 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9666 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9667 * monitor.c (monitor_xfer_memory): Likewise.
9668 (monitor_xfer_partial): Likewise.
9669 * procfs.c (procfs_xfer_partial): Likewise.
9670 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9671 * record-full.c (record_full_xfer_partial): Likewise.
9672 (record_full_core_xfer_partial): Likewise.
9673 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9674 (gdbsim_xfer_partial): Likewise.
9675 * remote.c (remote_write_bytes_aux): Likewise. All callers
9676 updated.
9677 (remote_write_bytes, remote_read_bytes): Likewise. All
9678 callers updated.
9679 (remote_flash_erase): Likewise. All callers updated.
9680 (remote_write_qxfer): Likewise. All callers updated.
9681 (remote_read_qxfer): Likewise. All callers updated.
9682 (remote_xfer_partial): Likewise.
9683 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9684 (rs6000_xfer_shared_libraries): Likewise.
9685 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9686 (sol_thread_xfer_partial): Likewise.
9687 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9688 (sparc_xfer_partial): Likewise.
9689 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9690 updated.
9691 (spu_xfer_partial): Likewise.
9692 * spu-multiarch.c (spu_xfer_partial): Likewise.
9693 * tracepoint.c (tfile_xfer_partial): Likewise.
9694 * windows-nat.c (windows_xfer_memory): Likewise.
9695 (windows_xfer_shared_libraries): Likewise.
9696 (windows_xfer_partial): Likewise.
9697 * valprint.c: Replace 'target_xfer_error' with
9698 'target_xfer_status' in comments.
9699
a8e63083
JB
97002014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9701
9702 Checked in by Joel Brobecker <brobecker@adacore.com>.
9703 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9704
e86b67d3
JB
97052014-02-11 Joel Brobecker <brobecker@adacore.com>
9706
9707 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9708 function parameters.
9709
4b7d1f7f
WN
97102014-02-10 Will Newton <will.newton@linaro.org>
9711
9712 * elfread.c (elf_rel_plt_read): Look for a .got section if
9713 looking up .got.plt fails.
9714 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9715 on address passed to elf_gnu_ifunc_record_cache.
9716 (elf_gnu_ifunc_resolve_addr): Likewise.
9717 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9718
961842b2
JM
97192014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9720
9721 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9722 (X_RETTURN): New macro.
9723 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9724
9725 * sparc64-tdep.c (sparc64_init_abi): Hook
9726 sparc_in_function_epilogue_p.
9727
3f03e7b1
GB
97282014-02-10 Gary Benson <gbenson@redhat.com>
9729
9730 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9731 Rename name_matcher to symbol_matcher.
9732
96f861ef
GB
97332014-02-10 Gary Benson <gbenson@redhat.com>
9734
9735 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9736 Use expand_symtabs_file_matcher_ftype and
9737 expand_symtabs_symbol_matcher_ftype.
9738
ee01b665
JB
97392014-02-10 Joel Brobecker <brobecker@adacore.com>
9740
9741 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9742 (struct ada_symbol_cache): New.
9743 (ada_free_symbol_cache): Forward declare.
9744 (struct ada_pspace_data): New.
9745 (ada_pspace_data_handle): New static global.
9746 (get_ada_pspace_data, ada_pspace_data_cleanup)
9747 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9748 (cache_space, cache): Delete, now folded inside struct
9749 ada_pspace_data.
9750 (ada_get_symbol_cache): New function.
9751 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9752 implementation.
9753 (_initialize_ada_language): Remove initialization of cache_space.
9754 Move call to observer_attach_inferior_exit up, grouping it
9755 with the other observer registrations inside this function.
9756 Rename command to be more general. Add call to
9757 register_program_space_data_with_cleanup.
9758
143adbbf
JB
97592014-02-10 Joel Brobecker <brobecker@adacore.com>
9760
9761 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9762 ada_new_objfile_observer.
9763 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9764 (_initialize_tasks): Update uses of ada_new_objfile_observer
9765 and ada_tasks_normal_stop_observer.
9766
aa4fb036
JB
97672014-02-10 Joel Brobecker <brobecker@adacore.com>
9768
9769 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9770 returned by the 'Length attribute to integer.
9771
9dee8cc6
JB
97722014-02-10 Joel Brobecker <brobecker@adacore.com>
9773
9774 * ada-lang.c (_initialize_ada_language): Initialize
9775 cache_space obstack.
9776
3d9434b5
JB
97772014-02-10 Joel Brobecker <brobecker@adacore.com>
9778
9779 * ada-lang.c (HASH_SIZE): New macro.
9780 (struct cache_entry): New type.
9781 (cache_space, cache): New static globals.
9782 (ada_clear_symbol_cache, find_entry): New functions.
9783 (lookup_cached_symbol, cache_symbol): Implement.
9784 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9785 (_initialize_ada_language): Attach ada_new_objfile_observer
9786 and ada_free_objfile_observer.
9787
f0c5f9b2
JB
97882014-02-10 Joel Brobecker <brobecker@adacore.com>
9789
9790 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9791 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9792 struct block * parameter.
9793 (ada_lookup_symbol_list_worker): Constify local variable "block".
9794 Remove cast which is no longer necessary.
9795
ed3ef339
DE
97962014-02-10 Doug Evans <xdje42@gmail.com>
9797
9798 Add Guile as an extension language.
9799 * NEWS: Mention Guile scripting.
9800 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9801 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9802 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9803 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9804 (CLIBS): Add GUILE_LIBS.
9805 (install-guile): New rule.
9806 (guile.o): New rule.
9807 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9808 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9809 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9810 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9811 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9812 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9813 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9814 * configure.ac: New option --with-guile.
9815 * configure: Regenerate.
9816 * config.in: Regenerate.
9817 * auto-load.c: Remove #include "python/python.h". Add #include
9818 "gdb/section-scripts.h".
9819 (source_section_scripts): Handle Guile scripts.
9820 (_initialize_auto_load): Add name of Guile objfile script to
9821 scripts-directory help text.
9822 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9823 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9824 (struct breakpoint): New member scm_bp_object.
9825 * defs.h (enum command_control_type): New value guile_control.
9826 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9827 "extension.h".
9828 (show_user): Update comment.
9829 (_initialize_cli_cmds): Update help text for "show user". Update help
9830 text for max-user-call-depth.
9831 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9832 "extension.h".
9833 (multi_line_command_p): Add guile_control.
9834 (print_command_lines): Handle guile_control.
9835 (execute_control_command, recurse_read_control_structure): Ditto.
9836 (process_next_line): Recognize "guile" commands.
9837 * disasm.c (gdb_disassemble_info): Make non-static.
9838 * disasm.h: #include "dis-asm.h".
9839 (struct gdbarch): Add forward decl.
9840 (gdb_disassemble_info): Declare.
9841 * extension.c: #include "guile/guile.h".
9842 (extension_languages): Add guile.
9843 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9844 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9845 * gdbtypes.c (get_unsigned_type_max): New function.
9846 (get_signed_type_minmax): New function.
9847 * gdbtypes.h (get_unsigned_type_max): Declare.
9848 (get_signed_type_minmax): Declare.
9849 * guile/README: New file.
9850 * guile/guile-internal.h: New file.
9851 * guile/guile.c: New file.
9852 * guile/guile.h: New file.
9853 * guile/scm-arch.c: New file.
9854 * guile/scm-auto-load.c: New file.
9855 * guile/scm-block.c: New file.
9856 * guile/scm-breakpoint.c: New file.
9857 * guile/scm-disasm.c: New file.
9858 * guile/scm-exception.c: New file.
9859 * guile/scm-frame.c: New file.
9860 * guile/scm-gsmob.c: New file.
9861 * guile/scm-iterator.c: New file.
9862 * guile/scm-lazy-string.c: New file.
9863 * guile/scm-math.c: New file.
9864 * guile/scm-objfile.c: New file.
9865 * guile/scm-ports.c: New file.
9866 * guile/scm-pretty-print.c: New file.
9867 * guile/scm-safe-call.c: New file.
9868 * guile/scm-string.c: New file.
9869 * guile/scm-symbol.c: New file.
9870 * guile/scm-symtab.c: New file.
9871 * guile/scm-type.c: New file.
9872 * guile/scm-utils.c: New file.
9873 * guile/scm-value.c: New file.
9874 * guile/lib/gdb.scm: New file.
9875 * guile/lib/gdb/boot.scm: New file.
9876 * guile/lib/gdb/experimental.scm: New file.
9877 * guile/lib/gdb/init.scm: New file.
9878 * guile/lib/gdb/iterator.scm: New file.
9879 * guile/lib/gdb/printing.scm: New file.
9880 * guile/lib/gdb/types.scm: New file.
9881 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9882 (VPATH): Add $(GUILE_SRCDIR).
9883 (GUILE_DIR): New variable.
9884 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9885 (all): Add stamp-guile dependency.
9886 (stamp-guile): New rule.
9887 (clean-guile, install-guile, uninstall-guile): New rules.
9888 (install-only): Add install-guile dependency.
9889 (uninstall): Add uninstall-guile dependency.
9890 (clean): Add clean-guile dependency.
9891
ac020ec5
DE
98922014-02-09 Doug Evans <xdje42@gmail.com>
9893
9894 Revert this patch (which I approved, mea culpa).
9895
9896 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9897
9898 * Makefile.in (all-lib): Remove.
9899 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9900
2a081c59
JK
99012014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9902
9903 Fix Python stack corruption.
9904 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9905 gdb_py_longest.
9906
0a6bd22d
MK
99072014-02-08 Mark Kettenis <kettenis@gnu.org>
9908
9909 * Makefile.in (all-lib): Remove.
9910 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9911
1a860409
DE
99122014-02-07 Doug Evans <dje@google.com>
9913
9914 * extension-priv.h (extension_language_script_ops): Add comment.
9915 (extension_language_ops): Add comment.
caf5a491 9916 (active_ext_lang_state): Fix typo in comment.
1a860409 9917
d137e6dc
PA
99182014-02-07 Pedro Alves <palves@redhat.com>
9919
0dcb32c3 9920 PR breakpoints/16292
d137e6dc
PA
9921 * infrun.c (handle_signal_stop) <signal arrives while stepping
9922 over a breakpoint>: Switch back to the stepping thread.
9923
ce6d0892
YQ
99242014-02-07 Yao Qi <yao@codesourcery.com>
9925
9926 * target.c (target_xfer_partial): Return zero if LEN is zero.
9927
2ed4b548
YQ
99282014-02-07 Yao Qi <yao@codesourcery.com>
9929
9930 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9931 (ld_so_xfer_auxv): Likewise.
9932 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9933 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9934 * corelow.c (core_xfer_partial): Likewise.
9935 * ctf.c (ctf_xfer_partial): Likewise.
9936 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9937 (darwin_xfer_partial): Likewise.
9938 * exec.c (exec_xfer_partial): Likewise.
9939 * gnu-nat.c (gnu_xfer_partial): Likewise.
9940 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9941 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9942 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9943 * linux-nat.c (linux_xfer_siginfo): Likewise.
9944 (linux_proc_xfer_spu): Likewise.
9945 * procfs.c (procfs_xfer_partial): Likewise.
9946 * record-full.c (record_full_xfer_partial): Likewise.
9947 (record_full_core_xfer_partial): Likewise.
9948 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9949 * remote.c (remote_write_qxfer): Likewise.
9950 (remote_write_qxfer, remote_read_qxfer): Likewise.
9951 (remote_xfer_partial): Likewise.
9952 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9953 (rs6000_xfer_shared_libraries): Likewise.
9954 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9955 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9956 (spu_xfer_partial): Likewise.
9957 * target.c (memory_xfer_partial_1): Likewise.
9958 * tracepoint.c (tfile_xfer_partial): Likewise.
9959 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9960 (windows_xfer_partial): Likewise.
9961
c09f20e4
YQ
99622014-02-07 Yao Qi <yao@codesourcery.com>
9963
9964 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9965 comments.
9966 (core_xfer_shared_libraries_aix): Likewise.
9967 * gdbarch.c, gdbarch.h: Regenerated.
9968 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9969 ULONGEST. Change 'len_avail' type to ULONGEST.
9970 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9971 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9972 declaration.
9973 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9974
8635b3bf
YQ
99752014-02-07 Yao Qi <yao@codesourcery.com>
9976
9977 * corefile.c (memory_error): Get 'exception' from ERR and pass
9978 'exception' to throw_error.
9979
6dddc817
DE
99802014-02-06 Doug Evans <xdje42@gmail.com>
9981
9982 * configure.ac (libpython checking): Remove all but python.o from
9983 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9984 * configure: Regenerate.
9985
9986 * Makefile.in (SFILES): Add extension.c.
9987 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9988 (COMMON_OBS): Add extension.o.
9989 * extension.h: New file.
9990 * extension-priv.h: New file.
9991 * extension.c: New file.
9992
9993 * python/python-internal.h: #include "extension.h".
9994 (gdbpy_auto_load_enabled): Declare.
9995 (gdbpy_apply_val_pretty_printer): Declare.
9996 (gdbpy_apply_frame_filter): Declare.
9997 (gdbpy_preserve_values): Declare.
9998 (gdbpy_breakpoint_cond_says_stop): Declare.
9999 (gdbpy_breakpoint_has_cond): Declare.
10000 (void source_python_script_for_objfile): Delete.
10001 * python/python.c: #include "extension-priv.h".
10002 Delete inclusion of "observer.h".
10003 (extension_language_python): Moved here and renamed from
10004 script_language_python in py-auto-load.c.
10005 Redefined to be of type extension_language_defn.
10006 (python_extension_script_ops): New global.
10007 (python_extension_ops): New global.
10008 (struct python_env): New member previous_active.
10009 (restore_python_env): Call restore_active_ext_lang.
10010 (ensure_python_env): Call set_active_ext_lang.
10011 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10012 New arg extlang.
10013 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10014 New arg extlang.
10015 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10016 New arg extlang.
10017 (gdbpy_eval_from_control_command): Renamed from
10018 eval_python_from_control_command, made static. New arg extlang.
10019 (gdbpy_source_script) Renamed from source_python_script, made static.
10020 New arg extlang.
10021 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10022 result to int. New arg extlang.
10023 (gdbpy_source_objfile_script): Renamed from
10024 source_python_script_for_objfile, made static. New arg extlang.
10025 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10026 static. New args extlang, extlang_printers. Change result type to
10027 "void".
10028 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10029 static. New arg extlang. Rename arg printers to extlang_printers
10030 and change type to ext_lang_type_printers *.
10031 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10032 static. Replace argument arg with extlang, extlang_printers.
10033 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10034 (!HAVE_PYTHON, source_python_script): Delete.
10035 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10036 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10037 (!HAVE_PYTHON, start_type_printers): Delete.
10038 (!HAVE_PYTHON, apply_type_printers): Delete.
10039 (!HAVE_PYTHON, free_type_printers): Delete.
10040 (_initialize_python): Delete call to observer_attach_before_prompt.
10041 (finalize_python): Set/restore active extension language.
10042 (gdbpy_finish_initialization) Renamed from
10043 finish_python_initialization, made static. New arg extlang.
10044 (gdbpy_initialized): New function.
10045 * python/python.h: #include "extension.h". Delete #include
10046 "value.h", "mi/mi-cmds.h".
10047 (extension_language_python): Declare.
10048 (GDBPY_AUTO_FILE_NAME): Delete.
10049 (enum py_bt_status): Moved to extension.h and renamed to
10050 ext_lang_bt_status.
10051 (enum frame_filter_flags): Moved to extension.h.
10052 (enum py_frame_args): Moved to extension.h and renamed to
10053 ext_lang_frame_args.
10054 (finish_python_initialization): Delete.
10055 (eval_python_from_control_command): Delete.
10056 (source_python_script): Delete.
10057 (apply_val_pretty_printer): Delete.
10058 (apply_frame_filter): Delete.
10059 (preserve_python_values): Delete.
10060 (gdbpy_script_language_defn): Delete.
10061 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10062 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10063
10064 * auto-load.c: #include "extension.h".
10065 (GDB_AUTO_FILE_NAME): Delete.
10066 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10067 (script_language_gdb): Delete, moved to extension.c and renamed to
10068 extension_language_gdb.
10069 (source_gdb_script_for_objfile): Delete.
10070 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10071 (loaded_script): Change type of language member to
10072 struct extension_language_defn *.
10073 (init_loaded_scripts_info): Initialize
10074 unsupported_script_warning_printed.
10075 (maybe_add_script): Make static. Change type of language arg to
10076 struct extension_language_defn *.
10077 (clear_section_scripts): Reset unsupported_script_warning_printed.
10078 (auto_load_objfile_script_1): Rewrite to use extension language API.
10079 (auto_load_objfile_script): Make public. Remove support-compiled-in
10080 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10081 (source_section_scripts): Rewrite to use extension language API.
10082 (load_auto_scripts_for_objfile): Rewrite to use
10083 auto_load_scripts_for_objfile.
10084 (collect_matching_scripts_data): Change type of language member to
10085 struct extension_language_defn *.
10086 (auto_load_info_scripts): Change type of language arg to
10087 struct extension_language_defn *.
10088 (unsupported_script_warning_print): New function.
10089 (script_not_found_warning_print): Make static.
10090 (_initialize_auto_load): Rewrite construction of scripts-directory
10091 help.
10092 * auto-load.h (struct objfile): Add forward decl.
10093 (struct script_language): Delete.
10094 (struct auto_load_pspace_info): Add forward decl.
10095 (struct extension_language_defn): Add forward decl.
10096 (maybe_add_script): Delete.
10097 (auto_load_objfile_script): Declare.
10098 (script_not_found_warning_print): Delete.
10099 (auto_load_info_scripts): Update prototype.
10100 (auto_load_gdb_scripts_enabled): Declare.
10101 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10102 auto_load_python_scripts_enabled and made public.
10103 (script_language_python): Delete, moved to python.c.
10104 (gdbpy_script_language_defn): Delete.
10105 (info_auto_load_python_scripts): Update to use
10106 extension_language_python.
10107
10108 * breakpoint.c (condition_command): Replace call to
10109 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10110 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10111 with call to breakpoint_ext_lang_cond_says_stop.
10112 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10113 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10114 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10115 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10116 New arg slang.
10117 (local_setattro): Print name of extension language with existing
10118 stop condition.
10119
10120 * valprint.c (val_print, value_print): Update to call
10121 apply_ext_lang_val_pretty_printer.
10122 * cp-valprint.c (cp_print_value): Update call to
10123 apply_ext_lang_val_pretty_printer.
10124 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10125 (gdbpy_apply_val_pretty_printer): Renamed from
10126 apply_val_pretty_printer. New arg extlang.
10127 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10128
10129 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10130 extension language API.
10131 * cli/cli-script.c (execute_control_command): Update to call
10132 eval_ext_lang_from_control_command.
10133
10134 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10135 enum ext_lang_bt_status values. Update call to
10136 apply_ext_lang_frame_filter.
10137 (mi_cmd_stack_list_locals): Ditto.
10138 (mi_cmd_stack_list_args): Ditto.
10139 (mi_cmd_stack_list_variables): Ditto.
10140 * mi/mi-main.c: Delete #include "python/python-internal.h".
10141 Add #include "extension.h".
10142 (mi_cmd_list_features): Replace reference to python internal variable
10143 gdb_python_initialized with call to ext_lang_initialized_p.
10144
10145 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10146 Update to use enum ext_lang_frame_args. Update to call
10147 apply_ext_lang_frame_filter.
10148 * python/py-framefilter.c (extract_sym): Update to use enum
10149 ext_lang_bt_status.
10150 (extract_value, py_print_type, py_print_value): Ditto.
10151 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10152 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10153 (py_print_frame): Ditto.
10154 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10155 New arg extlang. Update to use enum ext_lang_bt_status.
10156
10157 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10158 finish_python_initialization. Replace with call to
10159 finish_ext_lang_initialization.
10160
10161 * typeprint.c (do_free_global_table): Update to call
10162 free_ext_lang_type_printers.
10163 (create_global_typedef_table): Update to call
10164 start_ext_lang_type_printers.
10165 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10166 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10167 (type_print_options): Change type of global_printers from "void *"
10168 to "struct ext_lang_type_printers *".
10169
10170 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10171 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10172 (gdbpy_preserve_values): Renamed from preserve_python_values.
10173 New arg extlang.
10174 (!HAVE_PYTHON, preserve_python_values): Delete.
10175
10176 * utils.c (quit_flag): Delete, moved to extension.c.
10177 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10178 extension.c.
10179
10180 * eval.c: Delete #include "python/python.h".
10181 * main.c: Delete #include "python/python.h".
10182
10183 * defs.h: Update comment.
10184
6af79985
JB
101852014-02-06 Joel Brobecker <brobecker@adacore.com>
10186
10187 GDB 7.7 released.
10188
12c5175d
MK
101892014-02-05 Mark Kettenis <kettenis@gnu.org>
10190
10191 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10192 defined.
10193
8dc5b319
YQ
101942014-02-05 Yao Qi <yao@codesourcery.com>
10195
10196 * remote.c (remote_pass_signals): Remove local 'buf' and use
10197 rs->buf.
10198 (remote_program_signals): Likewise.
10199
de7b2893
YQ
102002014-02-05 Yao Qi <yao@codesourcery.com>
10201
10202 * ctf.c: Include "inferior.h" and "gdbthread.h".
10203 (CTF_PID): A new macro.
10204 (ctf_open): Call inferior_appeared and add_thread_silent.
10205 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10206 (ctf_thread_alive): New function.
10207 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10208
66d032ac
YQ
102092014-02-05 Yao Qi <yao@codesourcery.com>
10210
10211 Revert this patch:
10212
10213 2013-05-24 Yao Qi <yao@codesourcery.com>
10214
10215 * tracepoint.c (TFILE_PID): Remove.
10216 (tfile_open): Don't add thread and inferior.
10217 (tfile_close): Don't set 'inferior_ptid'. Don't call
10218 exit_inferior_silent.
10219 (tfile_thread_alive): Remove.
10220 (init_tfile_ops): Don't set field 'to_thread_alive' of
10221 tfile_ops.
10222
f4ccffad
CE
102232014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10224
10225 * remote.c (remote_start_remote): Call remote_check_symbols even
10226 if only symbol-file (not file) has been given.
10227
591a12a1
UW
102282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10229
10230 * gdbarch.sh (skip_entrypoint): New callback.
10231 * gdbarch.c, gdbarch.h: Regenerate.
10232 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10233 * infrun.c (fill_in_stop_func): Likewise.
10234 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10235 (ppc_elfv2_elf_make_msymbol_special): New function.
10236 (ppc_elfv2_skip_entrypoint): Likewise.
10237 (ppc_linux_init_abi): Install them for ELFv2.
10238
cc0e89c5
UW
102392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10240
10241 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10242 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10243 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10244 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10245 structures returned in GPRs.
10246
52f548e4
UW
102472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10248
10249 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10250 offset to the stack parameter list for the ELFv2 ABI.
10251
d4094b6a
UW
102522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10253
10254 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10255 set_gdbarch_convert_from_func_ptr_addr and
10256 set_gdbarch_elf_make_msymbol_special for ELFv1.
10257 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10258 function descriptors on ELFv1.
10259 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10260 set up r12 at function entry.
10261
cd453cd0
UW
102622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10263
10264 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10265 (struct gdbarch_tdep): New member elf_abi.
10266
10267 * rs6000-tdep.c: Include "elf/ppc64.h".
10268 (rs6000_gdbarch_init): Detect ELF ABI version.
10269
0ff3e01f
UW
102702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10271
10272 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10273 within a register pair holding a DFP 128-bit value on little-endian.
10274 (ppc64_sysv_abi_return_value_base): Likewise.
10275 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10276 (dfp_pseudo_register_write): Likewise.
10277
5b757e5d
UW
102782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10279
10280 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10281 offset on little-endian when passing _Decimal32.
10282 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10283
084ee545
UW
102842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10285
10286 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10287 of the overlapped FP register within the VSX register on little-
10288 endian platforms.
10289 (efpr_pseudo_register_write): Likewise.
10290
d63167af
UW
102912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10292
10293 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10294 offset on little-endian when passing small structures.
10295
e765b44c
UW
102962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10297
10298 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10299 (struct ppc64_sysv_argpos): New data structure.
10300 (ppc64_sysv_abi_push_float): Remove.
10301 (ppc64_sysv_abi_push_val): New function.
10302 (ppc64_sysv_abi_push_integer): Likewise.
10303 (ppc64_sysv_abi_push_freg): Likewise.
10304 (ppc64_sysv_abi_push_vreg): Likewise.
10305 (ppc64_sysv_abi_push_param): Likewise.
10306 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10307 (ppc64_sysv_abi_return_value_base): New function.
10308 (ppc64_sysv_abi_return_value): Refactor to use it.
10309
36c24d95
UW
103102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10311
10312 * NEWS: Document new target powerpc64le-*-linux*.
10313
26fd9228
MK
103142014-02-04 Mark Kettenis <kettenis@gnu.org>
10315
10316 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10317 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10318 core dumps.
10319 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10320 register set used in ELF core dumps. Add floating-point register set.
10321
c5bb7362
KB
103222014-02-03 Kevin Buettner <kevinb@redhat.com>
10323
74228e77 10324 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10325 dwarf2_to_gdb[] table using symbolic constants. Adjust
10326 penultimate entry from number representing the PC register
10327 to symbolic constant representing the MDR register. Add
10328 constant for the PC register to the end of the table.
10329
af09351e
MK
103302014-02-03 Mark Kettenis <kettenis@gnu.org>
10331
10332 * bsd-kvm.c: Include <sys/param.h>
10333
8507e05d
MK
103342014-02-03 Mark Kettenis <kettenis@gnu.org>
10335
10336 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10337
ae56bfb8
JB
103382014-01-31 Joel Brobecker <brobecker@adacore.com>
10339
10340 * ada-lang.h (clear_ada_sym_cache): Delete.
10341
718ee4dc
UW
103422014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10343
10344 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10345
401e27fd
JM
103462014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10347
10348 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10349 the sigreturn register save area only if the syscall is
10350 sigreturn.
10351
a7c88acd
JB
103522014-01-29 Joel Brobecker <brobecker@adacore.com>
10353
10354 * valops.c (value_slice): Minor reformatting.
10355
fa0079ea
UW
103562014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10357
10358 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10359
c6044dd1
JB
103602014-01-28 Joel Brobecker <brobecker@adacore.com>
10361
10362 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10363 New static globals.
10364 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10365 (ada_ignore_descriptive_types_p): New static global.
10366 (find_parallel_type_by_descriptive_type): Return immediately
10367 if ada_ignore_descriptive_types_p is set.
10368 (_initialize_ada_language): Register new commands "maintenance
10369 set ada", "maintenance show ada", "maintenance set ada
10370 ignore-descriptive-types" and "maintenance show ada
10371 ignore-descriptive-types".
10372 * NEWS: Add entry for new "maint ada set/show
10373 ignore-descriptive-types" commands.
10374
568e808b
MM
103752014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10376
10377 * record-btrace.c (record_btrace_close): Call btrace_teardown
10378 for all threads.
10379
467d141b
JB
103802014-01-27 Joel Brobecker <brobecker@adacore.com>
10381
10382 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10383 "ui-out.h".
10384
fb151210
JB
103852014-01-27 Joel Brobecker <brobecker@adacore.com>
10386
10387 * ada-typeprint (type_is_full_subrange_of_target_type):
10388 New function.
10389 (print_range): Add parameter bounds_prefered_p. If not set,
10390 try printing range types using the name of their base type.
10391 (print_range_type): Add parameter bounds_prefered_p.
10392 Use it in call to print_range.
10393 (print_array_type, ada_print_type): Update calls to print_range
10394 and print_range_type.
10395
aba02109
JB
103962014-01-27 Joel Brobecker <brobecker@adacore.com>
10397
10398 * ada-typeprint.c (print_array_type, print_choices, print_range)
10399 (print_range_bound, print_dynamic_range_bound, print_range_type):
10400 Remove declaration.
10401
e62e21fd
JB
104022014-01-27 Joel Brobecker <brobecker@adacore.com>
10403
10404 * ada-typeprint.c (print_range): Add missing empty line
10405 after local declaration.
10406
859cf5d1
JB
104072014-01-27 Joel Brobecker <brobecker@adacore.com>
10408
10409 * ada-valprint.c (print_optional_low_bound): Get index_type's
10410 target type for as long as it is a TYPE_CODE_RANGE.
10411
25790f6f
JB
104122014-01-27 Joel Brobecker <brobecker@adacore.com>
10413
10414 * procfs.c (procfs_make_note_section): Remove assertion and
10415 associated comment.
10416
6b6aa828
YQ
104172014-01-24 Yao Qi <yao@codesourcery.com>
10418
10419 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10420 * corelow.c (get_core_siginfo): Likewise.
10421
5d6df423
YQ
104222014-01-24 Yao Qi <yao@codesourcery.com>
10423
10424 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10425 ULONGEST. Don't check 'len' is negative.
10426 (remote_write_bytes): Change type of 'len' to ULONGEST.
10427
83b645b8
TT
104282014-01-23 Tom Tromey <tromey@redhat.com>
10429
10430 PR python/16485:
10431 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10432 Handle exception from frame.block.
10433 (FrameVars.fetch_frame_locals): Likewise.
10434
0740f8d8
TT
104352014-01-23 Tom Tromey <tromey@redhat.com>
10436
10437 PR python/16487:
10438 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10439 on a NULL pointer. Move "goto error" to correct place.
10440
21909fa1
TT
104412014-01-23 Tom Tromey <tromey@redhat.com>
10442
10443 PR python/16491:
10444 * python/py-framefilter.c (apply_frame_filter): Call
10445 ensure_python_env after computing gdbarch.
10446
17fde6d0
YQ
104472014-01-23 Yao Qi <yao@codesourcery.com>
10448
10449 * target.c (raw_memory_xfer_partial): Change argument type
10450 from void * to gdb_byte *.
10451 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10452
87ce2a04
DE
104532014-01-22 Doug Evans <dje@google.com>
10454
10455 New gdbserver option --debug-format=timestamp.
10456 * NEWS: Mention it.
10457
237b092b
AA
104582014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10459
10460 * syscalls/s390x-linux.xml: New file.
10461 * syscalls/s390-linux.xml: New file.
10462 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10463 (XML_SYSCALL_FILENAME_S390X): Likewise.
10464 (op_svc): New enum value for SVC opcode.
10465 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10466 (s390_linux_get_syscall_number): New function.
10467 (s390_gdbarch_init): Register '*get_syscall_number' and the
10468 syscall xml file name.
10469 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10470 "s390-linux.xml" and "s390x-linux.xml".
10471 * NEWS: Announce new feature.
10472
54bff650
BS
104732014-01-22 Baruch Siach <baruch@tkos.co.il>
10474
10475 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10476
14e361d7
PA
104772014-01-22 Pedro Alves <palves@redhat.com>
10478
10479 * xtensa-config.c: Include defs.h.
10480
46bbb3ed
JB
104812014-01-22 Joel Brobecker <brobecker@adacore.com>
10482
10483 * common/common-utils.h: Add "ARI:" comment beside __func__
10484 reference.
10485
3a80edfc
JB
104862014-01-22 Joel Brobecker <brobecker@adacore.com>
10487
10488 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10489 documentation a bit.
10490
4869db5e
RM
104912014-01-21 Roland McGrath <mcgrathr@google.com>
10492
10493 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10494 * configure: Regenerate.
10495 * aclocal.m4: Regenerate.
10496 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10497 New substituted variables.
10498 (install-strip): New target.
10499 (INSTALL_SCRIPT): New substituted variable.
10500 (FLAGS_TO_PASS): Add it.
10501 (install-only): Use $(INSTALL_SCRIPT) rather than
10502 $(INSTALL_PROGRAM) for gcore.
10503
9ea4267d
TT
105042014-01-20 Tom Tromey <tromey@redhat.com>
10505
10506 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10507 together.
10508
1f2bdf09
TT
105092014-01-20 Tom Tromey <tromey@redhat.com>
10510
10511 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10512 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10513 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10514 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10515 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10516 (struct cmd_list_element) <flags>: Remove.
10517 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10518 doc_allocated>: New fields.
10519 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10520 bitfields.
10521 * maint.c (maintenance_do_deprecate): Update.
10522 * top.c (execute_command): Update.
10523
e671835b
BS
105242014-01-20 Baruch Siach <baruch@tkos.co.il>
10525
10526 * xtensa-linux-nat.c: Include asm/ptrace.h.
10527
50367cd2
IB
105282014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10529
10530 * Makefile.in (SFILES): Add d-support.c.
10531 (COMMON_OBS): Add d-support.o.
10532 * d-lang.h (d_parse_symbol): Add comment, now defined in
10533 d-support.c.
10534 * d-lang.c (parse_call_convention)
10535 (parse_attributes, parse_function_types)
10536 (parse_function_args, parse_type, parse_identifier)
10537 (call_convention_p, d_parse_symbol): Move functions to ...
10538 * d-support.c: ... New file.
10539
ec9f644a
IB
105402014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10541
10542 * d-lang.h (d_parse_symbol): Add declaration.
10543 * d-lang.c (extract_identifiers)
10544 (extract_type_info): Remove functions.
10545 (parse_call_convention, parse_attributes)
10546 (parse_function_types, parse_function_args)
10547 (parse_type, parse_identifier, call_convention_p)
10548 (d_parse_symbol): New functions.
10549 (d_demangle): Use d_parse_symbol to demangle D symbols.
10550
94b1b47e
IB
105512014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10552
10553 * d-lang.h (struct builtin_d_type): New data type.
10554 (builtin_d_type): Add declaration.
10555 * d-lang.c (d_language_arch_info, build_d_types)
10556 (builtin_d_type): New functions.
10557 (enum d_primitive_types): New data type.
10558 (d_language_defn): Change c_language_arch_info to
10559 d_language_arch_info.
10560 (d_type_data): New static variable.
10561 (_initialize_d_language): Initialize d_type_data.
10562
63778547
IB
105632014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10564
10565 * d-lang.h (d_main_name): Add declaration.
10566 * d-lang.c (d_main_name): New function.
10567 * symtab.c (find_main_name): Add call to d_main_name.
10568
3271ba66
IB
105692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10570
10571 * d-lang.c (d_language_defn): Change macro_expansion_c to
10572 macro_expansion_no.
10573
d36b3012
IB
105742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10575
10576 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10577
c90a6fb7
SDJ
105782014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10579
10580 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10581 gdb_exception" declaration.
10582 * remote.c (getpkt_or_notif_sane): Likewise.
10583
749234e5
DE
105842014-01-17 Doug Evans <dje@google.com>
10585
10586 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10587 function, contents of dirnames_to_char_ptr_vec_append moved here.
10588 (delim_string_to_char_ptr_vec): New function.
10589 (dirnames_to_char_ptr_vec_append): Rewrite.
10590 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10591
df049a58
DE
105922014-01-17 Doug Evans <dje@google.com>
10593
10594 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10595 and moved here ...
10596 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10597 #include "common-utils.h".
10598 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10599 * common/vec.h (VEC_ASSERT_PASS): Update.
10600 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10601 (MACH_CHECK_ERROR): Update.
10602
69f97648
SM
106032014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10604
10605 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10606 comments.
10607 * gdbarch.h: Regenerate.
10608
98b1cfdc
TT
106092014-01-16 Tom Tromey <tromey@redhat.com>
10610
10611 * value.c (struct value) <regnum>: Move earlier.
10612
77a19445
TT
106132014-01-16 Tom Tromey <tromey@redhat.com>
10614
10615 * remote.c (extended_remote_create_inferior): Rename from
10616 extended_remote_create_inferior_1. Add "ops" argument. Remove
10617 old implementation.
10618
62261490
PA
106192014-01-16 Pedro Alves <palves@redhat.com>
10620
10621 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10622 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10623 the backchain.
10624
4d65956b
DE
106252014-01-16 Doug Evans <dje@google.com>
10626
10627 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10628
52834460
MM
106292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10630
10631 * btrace.h (btrace_thread_flag): New.
10632 (struct btrace_thread_info) <flags>: New.
10633 * record-btrace.c (record_btrace_resume_thread)
10634 (record_btrace_find_thread_to_move, btrace_step_no_history)
10635 (btrace_step_stopped, record_btrace_start_replaying)
10636 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10637 (record_btrace_find_resume_thread): New.
10638 (record_btrace_resume, record_btrace_wait): Extend.
10639 (record_btrace_can_execute_reverse): New.
10640 (record_btrace_open): Fail in non-stop mode.
10641 (record_btrace_set_replay): Split into this, ...
10642 (record_btrace_stop_replaying): ... this, ...
10643 (record_btrace_clear_histories): ... and this.
10644 (init_record_btrace_ops): Init to_can_execute_reverse.
10645 * NEWS: Announce it.
10646
118e6252
MM
106472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10648
10649 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10650 (forward_target_decr_pc_after_break)
10651 (target_decr_pc_after_break): New.
10652 * target.c (forward_target_decr_pc_after_break)
10653 (target_decr_pc_after_break): New.
10654 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10655 instead of gdbarch_decr_pc_after_break.
10656 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10657 instead of gdbarch_decr_pc_after_break.
10658 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10659 instead of gdbarch_decr_pc_after_break.
10660 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10661 instead of gdbarch_decr_pc_after_break.
10662 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10663 instead of gdbarch_decr_pc_after_break.
10664 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10665 instead of gdbarch_decr_pc_after_break.
10666
6e07b1d2
MM
106672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10668
10669 * btrace.c: Include regcache.h.
10670 (btrace_add_pc): New.
10671 (btrace_enable): Call btrace_add_pc.
10672 (btrace_is_empty): New.
10673 * btrace.h (btrace_is_empty): New.
10674 * record-btrace.c (require_btrace, record_btrace_info): Call
10675 btrace_is_empty.
10676
969c39fb
MM
106772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10678
10679 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10680 Support delta reads.
10681 (linux_disable_btrace): Change return type.
10682 * common/linux-btrace.h (linux_read_btrace): Change parameters
10683 and return type to allow error reporting. Update users.
10684 (linux_disable_btrace): Change return type. Update users.
10685 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10686 New.
10687 (btrace_error): New.
10688 (btrace_block) <begin>: Comment on BEGIN == 0.
10689 * btrace.c (btrace_compute_ftrace): Start from the end of
10690 the current trace.
10691 (btrace_stitch_trace, btrace_clear_history): New.
10692 (btrace_fetch): Read delta trace, return if replaying.
10693 (btrace_clear): Move clear history code to btrace_clear_history.
10694 (parse_xml_btrace): Throw an error if parsing failed.
10695 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10696 and return type to allow error reporting.
10697 (target_read_btrace): Change parameters and return type to allow
10698 error reporting.
10699 * target.c (target_read_btrace): Update.
10700 * remote.c (remote_read_btrace): Support delta reads. Pass
10701 errors on.
10702 * NEWS: Announce it.
10703
0b722aec
MM
107042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10705
10706 * record.h (record_btrace_frame_unwind)
10707 (record_btrace_tailcall_frame_unwind): New declarations.
10708 * dwarf2-frame: Include record.h
10709 (dwarf2_frame_cfa): Throw an error for btrace frames.
10710 * record-btrace.c: Include hashtab.h.
10711 (btrace_get_bfun_name): New.
10712 (btrace_call_history): Call btrace_get_bfun_name.
10713 (struct btrace_frame_cache): New.
10714 (bfcache): New.
10715 (bfcache_hash, bfcache_eq, bfcache_new): New.
10716 (btrace_get_frame_function): New.
10717 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10718 (record_btrace_frame_this_id): Compute own id.
10719 (record_btrace_frame_prev_register): Provide PC, throw_error
10720 for all other registers.
10721 (record_btrace_frame_sniffer): Detect btrace frames.
10722 (record_btrace_tailcall_frame_sniffer): New.
10723 (record_btrace_frame_dealloc_cache): New.
10724 (record_btrace_frame_unwind): Add new functions.
10725 (record_btrace_tailcall_frame_unwind): New.
10726 (_initialize_record_btrace): Allocate cache.
10727 * btrace.c (btrace_clear): Call reinit_frame_cache.
10728 * NEWS: Announce it.
10729
066ce621
MM
107302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10731
10732 * record-btrace.c (record_btrace_set_replay)
10733 (record_btrace_goto_begin, record_btrace_goto_end)
10734 (record_btrace_goto): New.
10735 (init_record_btrace_ops): Initialize them.
10736 * NEWS: Announce it.
10737
e2887aa3
MM
107382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10739
10740 * record-btrace.c (record_btrace_find_new_threads)
10741 (record_btrace_thread_alive): New.
10742 (init_record_btrace_ops): Initialize to_find_new_threads and
10743 to_thread_alive.
10744
b2f4cfde
MM
107452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10746
10747 * record-btrace.c (record_btrace_resume): New.
10748 (record_btrace_wait): New.
10749 (init_record_btrace_ops): Initialize to_wait and to_resume.
10750
633785ff
MM
107512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10752
10753 * record-btrace.c (record_btrace_xfer_partial)
10754 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10755 (record_btrace_allow_memory_access): New.
10756 (init_record_btrace_ops): Initialize new methods.
10757 * target.c (raw_memory_xfer_partial): Bail out if target reports
10758 that this memory is not available.
10759
3db08215
MM
107602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10761
10762 * target.h (target_ops) <to_insert_breakpoint>
10763 <to_remove_breakpoint>: Add target_ops parameter.
10764 (forward_target_insert_breakpoint): New.
10765 (forward_target_remove_breakpoint): New.
10766 (memory_remove_breakpoint, memory_insert_breakpoint):
10767 Add target_ops parameter.
10768 * target.c (target_insert_breakpoint): Split into this and ...
10769 (forward_target_insert_breakpoint): ... this.
10770 (target_remove_breakpoint): Split into this and ...
10771 (forward_target_remove_breakpoint): ... this.
10772 (debug_to_insert_breakpoint): Add target_ops parameter.
10773 Call forward_target_insert_breakpoint.
10774 (debug_to_remove_breakpoint): Add target_ops parameter.
10775 Call forward_target_remove_breakpoint.
10776 (update_current_target): Do not inherit or default to_insert_breakpoint
10777 and to_remove_breakpoint.
10778 * corelow.c (ignore): Add target_ops parameter.
10779 * exec.c (ignore): Add target_ops parameter.
10780 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10781 Add target_ops parameter.
10782 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10783 Add target_ops parameter.
10784 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10785 Add target_ops parameter.
10786 * record-full.c (record_full_beneath_to_insert_breakpoint)
10787 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10788 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10789 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10790 (record_full_core_remove_breakpoint): Add target_ops parameter.
10791 Update users.
10792 (record_full_beneath_to_insert_breakpoint_ops)
10793 (record_full_beneath_to_remove_breakpoint_ops)
10794 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10795 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10796 tmp_to_remove_breakpoint_ops,
10797 record_full_beneath_to_insert_breakpoint_ops, and
10798 record_full_beneath_to_remove_breakpoint_ops.
10799 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10800 (m32r_remove_breakpoint): Add target_ops parameter.
10801 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10802 Add target_ops parameter.
10803 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10804 Add target_ops parameter.
10805
cecac1ab
MM
108062014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10807 Markus Metzger <markus.t.metzger@intel.com>
10808
10809 * record-btrace.c: Include frame-unwind.h.
10810 (record_btrace_frame_unwind_stop_reason)
10811 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10812 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10813 New.
10814 (init_record_btrace_ops): Install it.
10815
824344ca
MM
108162014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10817
10818 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10819 get_prev_frame_1.
10820
32261e52
MM
108212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10822
10823 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10824 earlier.
10825
ea001bdc
MM
108262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10827
10828 * frame-unwind.c: Include target.h.
10829 (frame_unwind_try_unwinder): New function with code from ...
10830 (frame_unwind_find_by_frame): ... here. New variable
10831 unwinder_from_target, call also target_get_unwinder)
10832 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10833 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10834 * target.h (struct target_ops): New fields to_get_unwinder and
10835 to_get_tailcall_unwinder.
10836 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10837
1f3ef581
MM
108382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10839
10840 * record-btrace.c (record_btrace_fetch_registers)
10841 (record_btrace_store_registers)
10842 (record_btrace_to_prepare_to_store): New.
10843 (init_record_btrace_ops): Add the above.
10844
f32dbf8c
MM
108452014-01-16 Tom Tromey <tromey@redhat.com>
10846
10847 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10848 * target.h (struct target_ops) <to_prepare_to_store>: Add
10849 argument.
10850 (target_prepare_to_store): Add argument.
10851 * target.c (debug_to_prepare_to_store): Add argument.
10852 (update_current_target): Update.
10853 * remote.c (remote_prepare_to_store): Add 'self' argument.
10854 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10855 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10856 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10857 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10858 argument.
10859 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10860 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10861 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10862 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10863 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10864
07bbe694
MM
108652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10866
10867 * btrace.h (replay) <replay>: New.
10868 (btrace_is_replaying): New.
10869 * btrace.c (btrace_clear): Free replay iterator.
10870 (btrace_is_replaying): New.
10871 * record-btrace.c (record_btrace_is_replaying): New.
10872 (record_btrace_info): Print insn number if replaying.
10873 (record_btrace_insn_history): Start at replay position.
10874 (record_btrace_call_history): Start at replay position.
10875 (init_record_btrace_ops): Init to_record_is_replaying.
10876
0688d04e
MM
108772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10878
10879 * record-btrace.c (record_btrace_insn_history_range): Include
10880 end.
10881 (record_btrace_insn_history_from): Adjust range.
10882 (record_btrace_call_history_range): Include
10883 end.
10884 (record_btrace_call_history_from): Adjust range.
10885 * NEWS: Announce changes.
10886
8710b709
MM
108872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10888
10889 * record.h (enum record_print_flag)
10890 <record_print_indent_calls>: New.
10891 * record.c (get_call_history_modifiers): Recognize /c modifier.
10892 (_initialize_record): Document /c modifier.
10893 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10894 Reorder fields. Optionally indent the function name. Update
10895 all users.
10896 * NEWS: Announce changes.
10897
d0fa7535
MM
108982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10899
10900 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10901
5de9129b
MM
109022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10903
10904 * btrace.c (ftrace_new_function): Start counting at one.
10905 * record-btrace.c (record_btrace_info): Adjust number of calls
10906 and insns.
10907 * NEWS: Announce it.
10908
7acbe133
MM
109092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10910
10911 * record-btrace.c (btrace_call_history_insn_range): Print
10912 insn range as [begin, end].
10913
23a7fe75
MM
109142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10915
10916 * btrace.h (struct btrace_func_link): New.
10917 (enum btrace_function_flag): New.
10918 (struct btrace_inst): Rename to ...
10919 (struct btrace_insn): ...this. Update all users.
10920 (struct btrace_func) <ibegin, iend>: Remove.
10921 (struct btrace_func_link): New.
10922 (struct btrace_func): Rename to ...
10923 (struct btrace_function): ...this. Update all users.
10924 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10925 (number, level, flags>: New.
10926 (struct btrace_insn_iterator): Rename to ...
10927 (struct btrace_insn_history): ...this.
10928 Update all users.
10929 (struct btrace_insn_iterator, btrace_call_iterator): New.
10930 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10931 (struct btrace_target_info) <begin, end, level>
10932 <insn_history, call_history>: New.
10933 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10934 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10935 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10936 (btrace_call_number, btrace_call_begin, btrace_call_end)
10937 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10938 (btrace_find_function_by_number, btrace_set_insn_history)
10939 (btrace_set_call_history): New.
10940 * btrace.c (btrace_init_insn_iterator)
10941 (btrace_init_func_iterator, compute_itrace): Remove.
10942 (ftrace_print_function_name, ftrace_print_filename)
10943 (ftrace_skip_file): Change
10944 parameter to const.
10945 (ftrace_init_func): Remove.
10946 (ftrace_debug): Use new btrace_function fields.
10947 (ftrace_function_switched): Also consider gaining and
10948 losing symbol information).
10949 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10950 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10951 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10952 New.
10953 (ftrace_new_function): Move. Remove debug print.
10954 (ftrace_update_lines, ftrace_update_insns): New.
10955 (ftrace_update_function): Check for call, ret, and jump.
10956 (compute_ftrace): Renamed to ...
10957 (btrace_compute_ftrace): ...this. Rewritten to compute call
10958 stack.
10959 (btrace_fetch, btrace_clear): Updated.
10960 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10961 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10962 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10963 (btrace_call_number, btrace_call_begin, btrace_call_end)
10964 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10965 (btrace_find_function_by_number, btrace_set_insn_history)
10966 (btrace_set_call_history): New.
10967 * record-btrace.c (require_btrace): Use new btrace thread
10968 info fields.
10969 (record_btrace_info, btrace_insn_history)
10970 (record_btrace_insn_history, record_btrace_insn_history_range):
10971 Use new btrace thread info fields and new iterator.
10972 (btrace_func_history_src_line): Rename to ...
10973 (btrace_call_history_src_line): ...this. Use new btrace
10974 thread info fields.
10975 (btrace_func_history): Rename to ...
10976 (btrace_call_history): ...this. Use new btrace thread info
10977 fields and new iterator.
10978 (record_btrace_call_history, record_btrace_call_history_range):
10979 Use new btrace thread info fields and new iterator.
10980
8372a7cb
MM
109812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10982
10983 * frame.h (frame_id_build_unavailable_stack_special): New.
10984 * frame.c (frame_id_build_unavailable_stack_special): New.
10985
c2170eef
MM
109862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10987
10988 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10989 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10990 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10991 to gdbarch.
10992 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10993 (i386_insn_is_jump, i386_jmp_p): New.
10994 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10995 insn_is_jump to gdbarch.
10996 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10997 * gdbarch.h: Regenerated.
10998 * gdbarch.c: Regenerated.
10999 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11000 (default_insn_is_jump): New.
11001 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11002 (default_insn_is_jump): New.
11003
864089d2
MM
110042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11005
11006 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11007 Change to ...
11008 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11009 (btrace_read_type) <btrace_read_new>: Change to ...
11010 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11011
ed9edfb5
MM
110122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11013
11014 * common/linux-btrace.c (linux_read_btrace): Free trace from
11015 previous iteration.
11016
fbcbc3fd
DE
110172014-01-15 Doug Evans <dje@google.com>
11018
11019 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11020 uint32_t.
11021
3d548a53
TT
110222014-01-15 Tom Tromey <tromey@redhat.com>
11023
11024 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11025 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11026 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11027 (set_objfile_main_name): New function.
11028 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11029 language_of_main>: New fields.
11030 (set_objfile_main_name): Declare.
11031 * symtab.c (find_main_name): Loop over objfiles to find the main
11032 name and language.
11033 (set_main_name): Now static.
11034 (get_main_info): Add comment.
11035 * symtab.h (set_main_name): Don't declare.
11036
32ac0d11
TT
110372014-01-15 Tom Tromey <tromey@redhat.com>
11038
11039 * symtab.c (main_progspace_key): New global.
11040 (struct main_info): New.
11041 (name_of_main, language_of_main): Remove.
11042 (get_main_info, main_info_cleanup): New function.
11043 (set_main_name, main_name, main_language): Use get_main_info.
11044 (_initialize_symtab): Initialize main_progspace_key.
11045
9e6c82ad
TT
110462014-01-15 Tom Tromey <tromey@redhat.com>
11047
11048 * dbxread.c (process_one_symbol): Update.
11049 * dwarf2read.c (read_partial_die): Update.
11050 * symfile.c (set_initial_language): Call main_language.
11051 * symtab.c (language_of_main): Now static.
11052 (set_main_name): Add 'lang' parameter.
11053 (find_main_name): Update.
11054 (main_language): New function.
11055 (symtab_observer_executable_changed): Update.
11056 * symtab.h (set_main_name): Update.
11057 (language_of_main): Remove.
11058 (main_language): Declare.
11059
6ef55de7
TT
110602014-01-15 Tom Tromey <tromey@redhat.com>
11061
11062 * symfile.c (init_entry_point_info): Use new "initialized" field.
11063 Update.
11064 * objfiles.h (struct entry_point) <initialized>: New field.
11065 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11066 (struct objfile) <ei>: ...here. Remove.
11067 * objfiles.c (entry_point_address_query): Update.
11068
53eddfa6
TT
110692014-01-15 Tom Tromey <tromey@redhat.com>
11070
11071 * objfiles.c (entry_point_address_query): Relocate entry point
11072 address.
11073 (objfile_relocate1): Do not relocate entry point address.
11074 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11075 <the_bfd_section_index>: New field.
11076 * symfile.c (init_entry_point_info): Find the entry point's
11077 section.
11078
d56e56aa
TT
110792014-01-15 Tom Tromey <tromey@redhat.com>
11080
11081 * solib-frv.c (enable_break): Use entry_point_address_query.
11082
33a97bbe
OJ
110832014-01-15 Omair Javaid <omair.javaid@linaro.org>
11084
11085 * NEWS: Add note on improved process record-replay on
11086 arm*-linux* targets.
11087
c6ec2b30
OJ
110882014-01-15 Omair Javaid <omair.javaid@linaro.org>
11089
11090 * arm-tdep.c (enum arm_record_result): New enum.
11091 (arm_record_unsupported_insn): New function.
11092 (arm_record_coproc_data_proc): Removed.
11093 (thumb2_record_ld_st_multiple): New function.
11094 (thumb2_record_ld_st_dual_ex_tbb): New function.
11095 (thumb2_record_data_proc_sreg_mimm): New function.
11096 (thumb2_record_ps_dest_generic): New function.
11097 (thumb2_record_branch_misc_cntrl): New function.
11098 (thumb2_record_str_single_data): New function.
11099 (thumb2_record_ld_mem_hints): New function.
11100 (thumb2_record_ld_word): New function.
11101 (thumb2_record_lmul_lmla_div): New function.
11102 (thumb2_record_decode_insn_handler): New function.
11103 (decode_insn): Add thumb32 instruction handlers.
11104
97dfe206
OJ
111052014-01-15 Omair Javaid <omair.javaid@linaro.org>
11106
11107 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11108 (struct arm_linux_record_tdep): Declare.
11109 (arm_canonicalize_syscall): New function.
11110 (arm_all_but_pc_registers_record): New function.
11111 (arm_linux_syscall_record): New function.
11112 (arm_linux_init_abi): Add syscall recording constructs.
11113 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11114 decoding. (arm_record_coproc_data_proc): Update arm syscall
11115 decoding.
11116 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11117 <arm_syscall_record>: New field.
11118 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11119 gdb_target_obs.
11120
9904a494
OJ
111212014-01-15 Omair Javaid <omair.javaid@linaro.org>
11122
11123 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11124 register for push instruction recording.
11125
f969241e
OJ
111262014-01-15 Omair Javaid <omair.javaid@linaro.org>
11127
11128 * arm-tdep.c (thumb_record_misc): Update to correct logical
11129 error while recording ldm, ldmia and pop instructions.
11130
bfbbec00
OJ
111312014-01-15 Omair Javaid <omair.javaid@linaro.org>
11132
11133 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11134
e40adcc9
PA
111352014-01-15 Pedro Alves <palves@redhat.com>
11136
11137 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11138 (go32_resume, go32_fetch_registers, store_register)
11139 (go32_store_registers, go32_prepare_to_store)
11140 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11141 (go32_create_inferior, go32_can_run, go32_terminal_init)
11142 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11143 declarations.
11144
b0a16e66
TT
111452014-01-15 Tom Tromey <tromey@redhat.com>
11146
11147 * target.h (async_callback_ftype): New typedef.
11148 (struct target_ops) <to_async>: Use it.
11149
bf7105a4
JB
111502014-01-15 Joel Brobecker <brobecker@adacore.com>
11151
11152 * python/py-value.c (get_field_type): Remove unnecessary curly
11153 braces for single-statement if block.
11154
a8f35c2e
JB
111552014-01-15 Joel Brobecker <brobecker@adacore.com>
11156
11157 * python/py-type.c (convert_field): Add missing empty line
11158 after declarations.
11159
bb4142cf
DE
111602014-01-14 Doug Evans <dje@google.com>
11161
11162 * symfile.h (expand_symtabs_matching): Renamed from
11163 expand_partial_symbol_names. Update prototype.
11164 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11165 * symfile.c (expand_symtabs_matching): Renamed from
11166 expand_partial_symbol_names. New args file_matcher, kind.
11167 Rename arg fun to symbol_matcher.
11168 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11169 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11170 ada_expand_partial_symbol_name.
11171 (ada_make_symbol_completion_list): Update to call
11172 expand_symtabs_matching.
11173 (ada_add_global_exceptions): Call expand_symtabs_matching.
11174 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11175 call map_symbol_filenames.
11176 * symtab.c (sources_info): Update to call map_symbol_filenames.
11177 (search_symbols): Call expand_symtabs_matching.
11178 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11179 (default_make_symbol_completion_list_break_on): Update to call
11180 expand_symtabs_matching.
11181 (make_source_files_completion_list): Update to call
11182 map_symbol_filenames.
11183
206f2a57
DE
111842014-01-14 Doug Evans <dje@google.com>
11185
11186 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11187 (expand_symtabs_symbol_matcher_ftype): New typedef.
11188 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11189 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11190 * symfile.c (expand_partial_symbol_names): Update to use
11191 expand_symtabs_symbol_matcher_ftype.
11192 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11193 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11194 Arg name_matcher renamed to symbol_matcher.
11195 * psymtab.c (recursively_search_psymtabs): Update to use
11196 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11197 sym_matcher.
11198 (expand_symtabs_matching_via_partial): Update to use
11199 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11200 Arg name_matcher renamed to symbol_matcher.
11201
540c2971
DE
112022014-01-14 Doug Evans <dje@google.com>
11203
11204 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11205 (map_partial_symbol_filenames): Ditto.
11206 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11207 (map_partial_symbol_filenames): Ditto.
11208 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11209 (map_partial_symbol_filenames): Ditto.
11210 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11211 (map_partial_symbol_filenames): Ditto.
11212 * symtab.c: Delete #include "psymtab.h".
11213
8213266a
PA
112142014-01-14 Pedro Alves <palves@redhat.com>
11215 Tom Tromey <tromey@redhat.com>
11216
11217 * infrun.c (use_displaced_stepping): Use find_record_target
11218 instead of RECORD_IS_USED.
11219 (adjust_pc_after_break): Use record_full_is_used instead of
11220 RECORD_IS_USED.
11221 * record-btrace.c (record_btrace_open): Call record_preopen
11222 instead of checking RECORD_IS_USED.
11223 * record-full.c (record_full_shortname)
11224 (record_full_core_shortname): New globals.
11225 (record_full_is_used): New function.
11226 (find_full_open): Call record_preopen instead of checking
11227 RECORD_IS_USED.
11228 (init_record_full_ops): Set the target's shortname to
11229 record_full_shortname.
11230 (init_record_full_core_ops): Set the target's shortname to
11231 record_full_core_shortname.
11232 * record-full.h (record_full_is_used): Declare.
11233 * record.c (find_record_target): Make extern.
11234 (record_preopen): New function.
11235 * record.h (RECORD_IS_USED): Delete macro.
11236 (find_record_target, record_preopen): Declare functions.
11237
7ec1862d
YQ
112382014-01-14 Yao Qi <yao@codesourcery.com>
11239
11240 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11241 'len''s type to ULONGEST.
11242 (core_xfer_shared_libraries_aix): Likewise.
11243 * gdbarch.c, gdbarch.h: Regenerated.
11244 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11245 Change type of 'len' to ULONGEST.
11246 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11247 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11248
dea80a27
YQ
112492014-01-14 Yao Qi <yao@codesourcery.com>
11250
11251 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11252 type of 'len' to ULONGEST.
11253 (linux_xfer_osdata_processgroups): Likewise.
11254 (linux_xfer_osdata_threads): Likewise.
11255 (linux_xfer_osdata_fds): Likewise.
11256 (linux_xfer_osdata_isockets): Likewise.
11257 (linux_xfer_osdata_shm): Likewise.
11258 (linux_xfer_osdata_sem): Likewise.
11259 (linux_xfer_osdata_msg): Likewise.
11260 (linux_common_xfer_osdata): Likewise.
11261 (struct osdata_type) <getter>: Likewise.
11262 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11263 the declaration.
11264
b55e14c7
YQ
112652014-01-14 Yao Qi <yao@codesourcery.com>
11266
11267 * target.h (target_xfer_partial_ftype): Update.
11268 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11269 ULONGEST.
11270 * aix-thread.c (aix_thread_xfer_partial): Change type of
11271 argument 'len' to ULONGEST.
11272 * auxv.c (procfs_xfer_auxv): Likewise.
11273 (ld_so_xfer_auxv): Likewise.
11274 (memory_xfer_auxv): Likewise.
11275 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11276 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11277 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11278 * corelow.c (core_xfer_partial): Likewise.
11279 * ctf.c (ctf_xfer_partial): Likewise.
11280 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11281 '%u'.
11282 (darwin_read_dyld_info): Likewise.
11283 (darwin_xfer_partial): Likewise.
11284 * exec.c (section_table_xfer_memory_partial): Likewise.
11285 (exec_xfer_partial): Likewise.
11286 * exec.h (section_table_xfer_memory_partial): Update
11287 declaration.
11288 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11289 instead of plongest.
11290 (gnu_xfer_partial): Likewise.
11291 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11292 (ia64_hpux_xfer_solib_got): Likewise.
11293 (ia64_hpux_xfer_partial): Likewise.
11294 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11295 * inf-ptrace.c (inf_ptrace_xfer_partial):
11296 * inf-ttrace.c (inf_ttrace_xfer_partial):
11297 * linux-nat.c (linux_xfer_siginfo): Likewise.
11298 (linux_nat_xfer_partial): Likewise.
11299 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11300 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11301 * monitor.c (monitor_xfer_memory): Likewise.
11302 (monitor_xfer_partial): Likewise.
11303 * procfs.c (procfs_xfer_partial): Likewise.
11304 * record-full.c (record_full_xfer_partial): Likewise.
11305 (record_full_core_xfer_partial): Likewise.
11306 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11307 instead of plongest.
11308 (gdbsim_xfer_partial): Likewise.
11309 * remote.c (remote_xfer_partial): Likewise.
11310 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11311 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11312 declaration.
11313 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11314 (rs6000_xfer_shared_libraries): Likewise.
11315 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11316 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11317 (sparc_xfer_partial): Likewise.
11318 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11319 (spu_xfer_partial): Likewise.
11320 * spu-multiarch.c (spu_xfer_partial): Likewise.
11321 * target.c (target_read_live_memory): Likewise.
11322 (memory_xfer_live_readonly_partial): Likewise.
11323 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11324 (target_xfer_partial, default_xfer_partial): Likewise.
11325 (current_xfer_partial): Likewise.
11326 * tracepoint.c (tfile_xfer_partial): Likewise.
11327 * windows-nat.c (windows_xfer_memory): Likewise. Call
11328 pulongest instead of plongest.
11329 (windows_xfer_partial): Likewise.
11330 (windows_xfer_shared_libraries): Likewise.
11331
05804640
YQ
113322014-01-14 Yao Qi <yao@codesourcery.com>
11333
11334 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11335 target_xfer_partial_ftype.
11336
b5b08fb4
SC
113372014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11338
11339 PR python/15464
11340 PR python/16113
11341 * valops.c (value_struct_elt_bitpos): New function
11342 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11343 object to 'None' if the field name is an empty string ("").
11344 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11345 attribute to look for a field when 'name' is 'None'.
11346 (get_field_type): New function
11347
13aaf454
DE
113482014-01-13 Doug Evans <dje@google.com>
11349
11350 PR symtab/16426
11351 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11352 (try_open_dwop_file): Ditto.
11353 * gdb_bfd.c: #include "vec.h".
11354 (bfdp): New typedef.
11355 (struct gdb_bfd_data): New member included_bfds.
11356 (gdb_bfd_unref): Unref all included bfds.
11357 (gdb_bfd_record_inclusion): New function.
11358 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11359
c2cec97c
TT
113602014-01-13 Tom Tromey <tromey@redhat.com>
11361
11362 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11363
78e5999d
TT
113642014-01-13 Tom Tromey <tromey@redhat.com>
11365
11366 * defs.h (use_windows): Remove.
11367 * gdb.c (main): Update.
11368 * main.c (captured_main, gdb_main): Update.
11369 * main.h (struct captured_main_args) <use_windows>: Remove.
11370 * top.c (use_windows): Remove.
11371
f2052bbe
TT
113722014-01-13 Tom Tromey <tromey@redhat.com>
11373
11374 * defs.h (deprecated_flush_hook): Remove.
11375
fde4f8ed
JK
113762014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11377
11378 PR threads/16216
11379 * linux-thread-db.c (try_thread_db_load): Add parameter
11380 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11381 (try_thread_db_load_from_pdir_1): Move it there from here.
11382 (try_thread_db_load_from_sdir): Update caller.
11383 (try_thread_db_load_from_dir): Move it there from here.
11384
bdf61915
PP
113852014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11386
11387 * regformats/regdat.sh: Always rewrite the register file.
11388
f71e1a8d
PA
113892014-01-13 Pedro Alves <palves@redhat.com>
11390
11391 * Makefile.in (CHECK_HEADERS): New variable.
11392 (check-headers:): New rule.
11393
42c85435
TT
113942014-01-13 Tom Tromey <tromey@redhat.com>
11395
11396 * cli/cli-setshow.c (do_set_command): Update.
11397 * defs.h (deprecated_set_hook): Remove.
11398 * top.c (deprecated_set_hook): Remove.
11399
f8de5129
PA
114002014-01-13 Pedro Alves <palves@redhat.com>
11401
11402 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11403 the tracepoint if the PC is a pseudo-register.
11404
fc270c35
TT
114052014-01-13 Tom Tromey <tromey@redhat.com>
11406
11407 * defs.h (XCALLOC): Remove.
11408 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11409 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11410 * dwarf2loc.c (allocate_piece_closure): Likewise.
11411 * elfread.c (elf_symfile_segments): Likewise.
11412 (elf_symfile_segments): Likewise.
11413 * gdbtypes.c (copy_type_recursive): Likewise.
11414 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11415 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11416 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11417 XCALLOC.
11418 * mt-tdep.c (mt_gdbarch_init): Likewise.
11419 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11420 XCALLOC.
11421 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11422 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11423 * registry.c (registry_alloc_data): Likewise.
11424 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11425 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11426 * serial.c (serial_fdopen_ops): Likewise.
11427 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11428 XCALLOC.
11429 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11430 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11431 not XCALLOC.
11432
70ba0933
TT
114332014-01-13 Tom Tromey <tromey@redhat.com>
11434
11435 * defs.h (XMALLOC): Remove.
11436 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11437 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11438 * cli-out.c (struct ui_out *): Likewise.
11439 * cli/cli-dump.c (add_dump_command): Likewise.
11440 (add_dump_command): Likewise.
11441 * complaints.c (get_complaints): Likewise.
11442 (find_complaint): Likewise.
11443 * dwarf2-frame.c (execute_cfa_program): Likewise.
11444 * dwarf2read.c (abbrev_table_read_table): Likewise.
11445 * gdbarch.sh: Likewise.
11446 * gdbarch.c: Rebuild.
11447 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11448 * interps.c (interp_new): Likewise.
11449 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11450 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11451 * mi/mi-console.c (mi_console_file_new): Likewise.
11452 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11453 * mi/mi-out.c (mi_out_new): Likewise.
11454 * mi/mi-parse.c (mi_parse): Likewise.
11455 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11456 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11457 * observer.c (xalloc_observer_list_node): Likewise.
11458 * regcache.c (regcache_xmalloc_1): Likewise.
11459 * reggroups.c (reggroup_new): Likewise.
11460 (_initialize_reggroup): Likewise.
11461 * registry.c (register_data_with_cleanup): Likewise.
11462 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11463 * ser-base.c (serial_ttystate): Likewise.
11464 * ser-mingw.c (make_pipe_state): Likewise.
11465 * ser-pipe.c (pipe_open): Likewise.
11466 * serial.c (serial_open): Likewise.
11467 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11468 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11469 (tui_alloc_win_info): Likewise.
11470 (tui_add_content_elements): Likewise.
11471 * tui/tui-file.c (tui_file_new): Likewise.
11472 * tui/tui-out.c (tui_out_new): Likewise.
11473 * ui-file.c (mem_file_new): Likewise.
11474 * ui-out.c (push_level): Likewise.
11475 (make_cleanup_ui_out_end): Likewise.
11476 (append_header_to_list): Likewise.
11477 (ui_out_new): Likewise.
11478 * user-regs.c (user_reg_add_builtin): Likewise.
11479
41bf6aca
TT
114802014-01-13 Tom Tromey <tromey@redhat.com>
11481
11482 * defs.h (XZALLOC): Remove.
11483 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11484 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11485 (get_ada_tasks_inferior_data): Likewise.
11486 * auto-load.c (get_auto_load_pspace_data): Likewise.
11487 * auxv.c (get_auxv_inferior_data): Likewise.
11488 * bfd-target.c (target_bfd_reopen): Likewise.
11489 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11490 (deprecated_insert_raw_breakpoint): Likewise.
11491 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11492 * corelow.c (core_open): Likewise.
11493 * darwin-nat.c (darwin_check_new_threads): Likewise.
11494 (darwin_attach_pid): Likewise.
11495 * dummy-frame.c (dummy_frame_push): Likewise.
11496 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11497 * dwarf2loc.c (allocate_piece_closure): Likewise.
11498 * elfread.c (elf_symfile_segments): Likewise.
11499 * eval.c (ptrmath_type_p): Likewise.
11500 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11501 * gdbtypes.c (alloc_type_arch): Likewise.
11502 (alloc_type_instance): Likewise.
11503 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11504 * inf-child.c (inf_child_can_use_agent): Likewise.
11505 * inflow.c (get_inflow_inferior_data): Likewise.
11506 * infrun.c (save_infcall_suspend_state): Likewise.
11507 * jit.c (jit_reader_load): Likewise.
11508 (get_jit_objfile_data): Likewise.
11509 (get_jit_program_space_data): Likewise.
11510 (jit_object_open_impl): Likewise.
11511 (jit_symtab_open_impl): Likewise.
11512 (jit_block_open_impl): Likewise.
11513 (jit_frame_sniffer): Likewise.
11514 * linux-fork.c (add_fork): Likewise.
11515 * maint.c (make_command_stats_cleanup): Likewise.
11516 * objfiles.c (get_objfile_pspace_data): Likewise.
11517 * opencl-lang.c (struct lval_closure): Likewise.
11518 * osdata.c (osdata_start_osdata): Likewise.
11519 * progspace.c (new_address_space): Likewise.
11520 (add_program_space): Likewise.
11521 * remote-sim.c (get_sim_inferior_data): Likewise.
11522 * sh-tdep.c (sh_gdbarch_init): Likewise.
11523 * skip.c (Ignore): Likewise.
11524 (skip_delete_command): Likewise.
11525 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11526 (library_list_start_library): Likewise.
11527 (solib_aix_current_sos): Likewise.
11528 * solib-darwin.c (get_darwin_info): Likewise.
11529 (darwin_current_sos): Likewise.
11530 * solib-dsbt.c (get_dsbt_info): Likewise.
11531 * solib-ia64-hpux.c (new_so_list): Likewise.
11532 (ia64_hpux_get_solib_linkage_addr): Likewise.
11533 * solib-spu.c (append_ocl_sos): Likewise.
11534 (spu_current_sos): Likewise.
11535 * solib-svr4.c (get_svr4_info): Likewise.
11536 (svr4_keep_data_in_core): Likewise.
11537 (library_list_start_library): Likewise.
11538 (svr4_default_sos): Likewise.
11539 (svr4_read_so_list): Likewise.
11540 * solib-target.c (library_list_start_library): Likewise.
11541 (solib_target_current_sos): Likewise.
11542 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11543 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11544 * symfile.c (default_symfile_segments): Likewise.
11545 * target-descriptions.c (tdesc_data_init): Likewise.
11546 (tdesc_create_reg): Likewise.
11547 (struct tdesc_type *): Likewise.
11548 (tdesc_create_vector): Likewise.
11549 (tdesc_set_struct_size): Likewise.
11550 (struct tdesc_type *): Likewise.
11551 (tdesc_free_feature): Likewise.
11552 (tdesc_create_feature): Likewise.
11553 * windows-nat.c (windows_add_thread): Likewise.
11554 (windows_make_so): Likewise.
11555 * xml-support.c (gdb_xml_body_text): Likewise.
11556 (gdb_xml_create_parser_and_cleanup): Likewise.
11557 (xml_process_xincludes): Likewise.
11558 * xml-syscall.c (allocate_syscalls_info): Likewise.
11559 (syscall_create_syscall_desc): Likewise.
11560
5acfdbae
SDJ
115612014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11562
11563 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11564 function, with code from i386_stap_parse_special_token.
11565 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11566 (i386_stap_parse_special_token): Move code to the two functions
11567 above; simplify it.
11568
0000e5cc
PA
115692014-01-09 Pedro Alves <palves@redhat.com>
11570 Hui Zhu <hui@codesourcery.com>
11571
11572 PR gdb/16101
11573 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11574 bp_err_string. Don't mark the location shlib_disabled if the
11575 error thrown wasn't a generic or memory error. Catch errors
11576 thrown while inserting breakpoints in overlayed code. Output
11577 error message of software breakpoints.
11578 * remote.c (remote_insert_breakpoint): If this breakpoint has
11579 target-side commands but this stub doesn't support Z0 packets,
11580 throw NOT_SUPPORTED_ERROR error.
11581 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11582 * target.h (target_insert_breakpoint): Extend comment.
11583 (target_insert_hw_breakpoint): Add comment.
11584
b7ea362b
PA
115852014-01-08 Pedro Alves <palves@redhat.com>
11586
11587 * remote.c (remote_add_thread): Add threads silently if starting
11588 up.
11589 (remote_notice_new_inferior): If in all-stop, and starting up,
11590 don't call notice_new_inferior.
11591 (get_current_thread): New function, factored out from ...
11592 (add_current_inferior_and_thread): ... this. Adjust.
11593 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11594 found any thread, then select the remote's current thread as GDB's
11595 current thread too.
11596
b7bba001
JB
115972014-01-08 Joel Brobecker <brobecker@adacore.com>
11598
11599 * NEWS: Create a new section for the next release branch.
11600 Rename the section of the current branch, now that it has
11601 been cut.
11602
16dfbded
JB
116032014-01-08 Joel Brobecker <brobecker@adacore.com>
11604
11605 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11606 * version.in: Bump version to 7.7.50.DATE-cvs.
11607
22c90ac1
YQ
116082014-01-08 Yao Qi <yao@codesourcery.com>
11609
11610 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11611 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11612 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11613
d64ad97c
YQ
116142014-01-08 Yao Qi <yao@codesourcery.com>
11615
11616 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11617 return value of bfd_get_filename to symbol_file_add_from_bfd.
11618
f93ba80c
PM
116192014-01-08 Pierre Muller <muller@sourceware.org>
11620
11621 Fix PR16201.
11622 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11623 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11624 to prim_record_mininal_symbol_and_info.
11625 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11626 in call to prim_record_minimal_symbol_and_info.
11627 (read_pe_exported_syms): Set index field of section_data.
11628
a4d9ba85
AP
116292014-01-07 Andrew Pinski <apinski@cavium.com>
11630
11631 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11632 * features/aarch64.c: Regenerate.
11633
1b67eb02
AS
116342014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11635
11636 * target.c (return_null): Define.
11637 (update_current_target): Use it instead of return_zero for
11638 functions that return a pointer.
11639
5e3f4fab
EBM
116402014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11641
11642 * source.c (add_path): Fix check for duplicated paths in the previously
11643 included paths.
11644
e2616788
HK
116452014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11646
11647 * ada-lang.c: Remove duplicated include statements.
11648 * alphabsd-nat.c: Ditto.
11649 * amd64-darwin-tdep.c: Ditto.
11650 * amd64fbsd-nat.c: Ditto.
11651 * auto-load.c: Ditto.
11652 * ax-gdb.c: Ditto.
11653 * breakpoint.c: Ditto.
11654 * dbxread.c: Ditto.
11655 * fork-child.c: Ditto.
11656 * gdb_usleep.c: Ditto.
11657 * i386-darwin-tdep.c: Ditto.
11658 * i386fbsd-nat.c: Ditto.
11659 * infcmd.c: Ditto.
11660 * inferior.c: Ditto.
11661 * jv-lang.c: Ditto.
11662 * linux-nat.c: Ditto.
11663 * linux-tdep.c: Ditto.
11664 * m68kbsd-nat.c: Ditto.
11665 * m68klinux-nat.c: Ditto.
11666 * microblaze-tdep.c: Ditto.
11667 * mips-linux-tdep.c: Ditto.
11668 * mn10300-tdep.c: Ditto.
11669 * nto-tdep.c: Ditto.
11670 * opencl-lang.c: Ditto.
11671 * osdata.c: Ditto.
11672 * printcmd.c: Ditto.
11673 * regcache.c: Ditto.
11674 * remote-m32r-sdi.c: Ditto.
11675 * remote.c: Ditto.
11676 * symfile.c: Ditto.
11677 * symtab.c: Ditto.
11678 * tilegx-linux-nat.c: Ditto.
11679 * tilegx-tdep.c: Ditto.
11680 * tracepoint.c: Ditto.
11681 * valops.c: Ditto.
11682 * vaxbsd-nat.c: Ditto.
11683 * windows-nat.c: Ditto.
11684 * xtensa-tdep.c: Ditto.
11685
bd1f7788
YQ
116862014-01-07 Yao Qi <yao@codesourcery.com>
11687
11688 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11689
79301218
JB
116902014-01-07 Yao Qi <yao@codesourcery.com>
11691 Joel Brobecker <brobecker@adacore.com>
11692
11693 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11694 (pdc_write_regs): Likewise.
11695 (fetch_regs_kernel_thread): Likewise.
11696 (store_regs_kernel_thread): Likewise.
11697
116982014-01-07 Joel Brobecker <brobecker@adacore.com>
11699
11700 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11701 tagged type objects to their actual type.
11702
8e355c5d
JB
117032014-01-07 Joel Brobecker <brobecker@adacore.com>
11704
11705 * ada-valprint.c (print_field_values): Add "language" parameter.
11706 Update calls to print_field_values and print_variant_part.
11707 Pass new parameter "language" in call to val_print instead
11708 of "current_language". Replace call to ada_val_print by call
11709 to val_print.
11710 (print_variant_part): Add "language" parameter.
11711 (ada_val_print_struct_union): Update call to print_field_values.
11712
4fbf5aa5
JB
117132014-01-07 Joel Brobecker <brobecker@adacore.com>
11714
11715 * ada-valprint.c (ui_memcpy): Delete.
11716 (ada_print_floating): Update documentation. Add empty line
11717 between between function documentation and implementation.
11718 Delete variable "buffer". Use ui_file_xstrdup in place of
11719 ui_file_put. Minor adjustments following this change.
11720
71855601
JB
117212014-01-07 Joel Brobecker <brobecker@adacore.com>
11722
11723 * ada-valprint.c (ada_val_print_string): New function,
11724 extracted from ada_val_print_array.
11725 (ada_val_print_array): Replace extracted code by call
11726 to ada_val_print_string followed by a return. Move
11727 "else" branch to the function's top block.
11728
4eb27a30
JB
117292014-01-07 Joel Brobecker <brobecker@adacore.com>
11730
11731 * ada-valprint.c (ada_val_print_array): Move implementation
11732 down. Rename parameter "offset" and "val" into "offset_aligned"
11733 and "original_value" respectively. Add parameter "offset".
11734
34b27950
JB
117352014-01-07 Joel Brobecker <brobecker@adacore.com>
11736
11737 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11738 re-organizing the code. Change the "???" message printed
11739 when target type is a TYPE_CODE_UNDEF into
11740 "<ref to undefined type>".
11741
079e4591
JB
117422014-01-07 Joel Brobecker <brobecker@adacore.com>
11743
11744 * ada-valprint.c (print_record): Delete, implementation inlined...
11745 (ada_val_print_struct_union): ... here. Remove call to
11746 ada_check_typedef in inlined implementation.
11747
8004dfd1
JB
117482014-01-07 Joel Brobecker <brobecker@adacore.com>
11749
11750 * ada-valprint.c (ada_val_print_gnat_array): New function,
11751 extracted from ada_val_print_1;
11752 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11753 (ada_val_print_flt, ada_val_print_struct_union)
11754 (ada_val_print_ref): Likewise.
11755 (ada_val_print_1): Delete variables i and elttype.
11756 Replace extracted-out code by call to corresponding
11757 new functions.
11758
760a2db0
JB
117592014-01-07 Joel Brobecker <brobecker@adacore.com>
11760
11761 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11762
3a92c861
JB
117632014-01-07 Joel Brobecker <brobecker@adacore.com>
11764
11765 * ada-valprint.c (ada_val_print_1): Replace calls to
11766 ada_val_print_1 by calls to val_print.
11767
cd1630f9
JB
117682014-01-07 Joel Brobecker <brobecker@adacore.com>
11769
11770 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11771 Update calls to self accordingly. Replace calls to c_val_print
11772 by calls to val_print.
11773
bdf779a0
JB
117742014-01-07 Joel Brobecker <brobecker@adacore.com>
11775
11776 * ada-valprint.c (print_record): Delete declaration.
11777 (adjust_type_signedness, ada_val_print_1): Likewise.
11778 (ada_val_print): Move function implementation down.
11779 (print_variant_part, print_field_values, print_record):
11780 Move function implementation up.
11781
c0d48811
JB
117822014-01-07 Joel Brobecker <brobecker@adacore.com>
11783
11784 * python/py-type.c (typy_get_name): New function.
11785 (type_object_getset): Add entry for attribute "name".
11786 * NEWS: Add entry mentioning this new attribute.
11787
c26e9cbb
YQ
117882014-01-07 Yao Qi <yao@codesourcery.com>
11789
11790 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11791 statement.
11792
0cc6f43d
YQ
117932014-01-07 Yao Qi <yao@codesourcery.com>
11794
11795 * gnu-nat.c (info_port_rights): Add qualifier const to
11796 argument args.
11797
eec03155
YQ
117982014-01-07 Yao Qi <yao@codesourcery.com>
11799
11800 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11801
f04a82ef
YQ
118022014-01-07 Yao Qi <yao@codesourcery.com>
11803
11804 * gnu-nat.c (make_inf) Update declaration.
11805 (make_inf): Make it static.
11806 (inf_set_traced): Likewise.
11807 (inf_port_to_thread, inf_task_died_status): Likewise.
11808
d57dda0a
YQ
118092014-01-07 Yao Qi <yao@codesourcery.com>
11810
11811 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11812
3aa8c969
YQ
118132014-01-07 Yao Qi <yao@codesourcery.com>
11814
11815 * gnu-nat.c (_initialize_gnu_nat): Declare.
11816
94123b4f
YQ
118172014-01-07 Yao Qi <yao@codesourcery.com>
11818
11819 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11820 'enum bfd_endian'.
11821 (struct gdbarch_info) <byte_order>: Change type to
11822 'enum bfd_endian'.
11823 <byte_order_for_code>: Likewise.
11824 * gdbarch.c, gdbarch.h: Regenerated.
11825
dc81d70a
TT
118262014-01-06 Sasha Smundak <asmundak@google.com>
11827
11828 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11829
cc2f3c35
TT
118302014-01-06 Tom Tromey <tromey@redhat.com>
11831
11832 * doublest.c (convert_doublest_to_floatformat): Use const, not
11833 CONST.
11834 * somread.c (som_symtab_read): Likewise.
11835
adcf2eed
HZ
118362014-01-07 Hui Zhu <hui@codesourcery.com>
11837
11838 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11839 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11840 (gdb_bfd_fopen): Ditto.
11841 (gdb_bfd_openr): Ditto.
11842 (gdb_bfd_openw): Ditto.
11843 (gdb_bfd_openr_iovec): Ditto.
11844 (gdb_bfd_fdopenr): Ditto.
11845 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11846 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11847 with xstrdup.
11848 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11849 with xstrdup.
11850 * symfile-mem.c (symbol_file_add_from_memory): Removed
11851 gdb_bfd_stash_filename.
11852
50722198
DE
118532014-01-03 Doug Evans <dje@google.com>
11854
11855 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11856 output.
11857
2fa4b862
JB
118582014-01-01 Joel Brobecker <brobecker@adacore.com>
11859
11860 Update year range in copyright notice of all files.
11861
28498c42
JB
118622014-01-01 Joel Brobecker <brobecker@adacore.com>
11863
11864 * top.c (print_gdb_version): Set copyright year to 2014.
11865
7b6e1046
JB
118662014-01-01 Joel Brobecker <brobecker@adacore.com>
11867
11868 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11869
df96af55 11870For older changes see ChangeLog-2013.
c906108c
SS
11871\f
11872Local Variables:
11873mode: change-log
11874left-margin: 8
11875fill-column: 74
11876version-control: never
57da7796 11877coding: utf-8
c906108c 11878End:
This page took 2.187912 seconds and 4 git commands to generate.