Fix xmethod Python so that it works with Python3.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
940df408
SC
12014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2
3 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4 'items' methods instead of 'iteritems' method on dictionaries.
5
699ca60a
DE
62014-08-15 Doug Evans <dje@google.com>
7
8 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
9 closer to use.
10
37780ee5
DE
112014-08-15 Doug Evans <dje@google.com>
12
13 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
14
0ad93d4f
DE
152014-08-15 Doug Evans <dje@google.com>
16
17 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
18
20d8c372
DE
192014-08-15 Doug Evans <dje@google.com>
20
21 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
22 unused.
23
cb039ba4
EZ
242014-08-15 Eli Zaretskii <eliz@gnu.org>
25
26 * dcache.h: Include target.h, to avoid compile time warnings.
27
eb7a547a
JB
282014-08-15 Joel Brobecker <brobecker@adacore.com>
29
30 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
31 frame_info" partial declaration.
32 * gdbarch.h: Regenerate.
33
783cecc8
YQ
342014-08-15 Yao Qi <yao@codesourcery.com>
35
36 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
37 Add parameter 'decode_for_pst_p'. Callers update.
38
65c749e7
YQ
392014-08-13 Yao Qi <yao@codesourcery.com>
40
41 PR build/17104
42 * configure.ac: Use local variable 'pos'.
43 * configure: Regenerated.
44
d769e349
DE
452014-08-11 Doug Evans <dje@google.com>
46
47 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
48 message, it is redundant with "Reading symbols from ..." message.
49
24f1235e
DE
502014-08-10 Doug Evans <xdje42@gmail.com>
51
52 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
53
dcd2e6ef
YQ
542014-08-09 Yao Qi <yao@codesourcery.com>
55
56 PR remote/9053
57 * remote.c (remote_xfer_partial): Remove dead code.
58
070bdf0b
AA
592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
60
61 * ia64-linux-tdep.c: Include "regset.h".
62 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
63 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
64 (ia64_linux_supply_fpregset): New function.
65 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
66 (ia64_linux_regset_from_core_section): New function.
67 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
68 method.
69
08f9f542
AA
702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
71
72 * m68klinux-tdep.c: Include "regset.h".
73 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
74 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
75 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
76 (m68k_linux_regset_from_core_section): New function.
77 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
78 method.
79
8f1cee41
AA
802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
81
82 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
83 function. Move logic to...
84 (tilegx_linux_regmap): ... this new register map.
85 (tilegx_linux_regset): Refer to register map, replace supply
86 method by regcache_supply_regset, and add collect method.
87 * tilegx-tdep.h (enum tilegx_regnum): New enum value
88 TILEGX_FIRST_EASY_REGNUM.
89
c5741217
AA
902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
93 that calls regcache_supply_regset and handles the EPC register
94 separately. Move main logic to...
95 (score7_linux_gregmap): ... this new register map.
96 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
97 (score7_linux_gregset): Refer to register map. Add collect method.
98 (score7_linux_regset_from_core_section): Replace
99 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
100 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
101 (struct regset): Delete unused forward declaraction.
102 (struct pt_regs): Delete structure definition.
103 (elf_gregset_t): Delete typedef.
104
81580573
AA
1052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
106
107 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
108 (nios2_core_regset): Add collect method.
109
ba199d7d
AA
1102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
111
112 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
113 platform-independent and don't write to read-only input buffer.
114 (m32r_linux_collect_gregset): New function.
115 (m32r_linux_gregset): Add collect method.
116
0006a9da
AA
1172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
118
119 * hppa-linux-tdep.c (greg_map): Rename to...
120 (hppa_linux_gregmap): ... this. Also convert to
121 regcache_map_entry format.
122 (hppa_linux_supply_regset): Delete function.
123 (hppa_linux_supply_fpregset): Delete function. Move logic to...
124 (hppa_linux_fpregmap): ... this new register map.
125 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
126 register map, replace supply method by regcache_supply_regset, and
127 add collect method regcache_collect_regset.
128
901e1b23
AA
1292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
130
131 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
132 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
133 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
134 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
135 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
136 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
137 (frv_linux_supply_gregset): Replace main logic by call to
138 regcache_supply_regset, but keep clearing gr32-gr63.
139 (frv_linux_supply_fpregset): Delete function.
140 (frv_linux_gregset): Refer to appropriate register map and add
141 regcache_collect_regset as the collect method.
142 (frv_linux_fpregset): Likewise. Also exchange the supply method
143 by regcache_supply_regset.
144
1d6e7555
AA
1452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
146
147 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
148 by call to alpha_supply_int_regs.
149 (alpha_linux_collect_gregset): New function.
150 (alpha_linux_supply_fpregset): Replace logic by call to
151 alpha_supply_fp_regs.
152 (alpha_linux_collect_fpregset): New function.
153 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
154
d4d793bf
AA
1552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
156
157 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
158 by call to regcache_collect_regset.
159 (supply_gregset, supply_fpregset): Call regcache_supply_regset
160 instead of aarch64_linux_supply_gregset/_fpregset.
161 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
162 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
163 header file instead.
164 (aarch64_linux_supply_gregset, supply_gregset_from_core)
165 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
166 functions. Move logic to ...
167 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
168 register maps.
169 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
170 refer to new register maps, replace *_regset_from_core by
171 regcache_supply_regset, and also use regcache_collect_regset.
172 * aarch64-linux-tdep.h: Include "regset.h".
173 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
174 Delete prototypes.
175 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
176 macros, moved from C source file.
177 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
178 variable declarations.
179
99b7da5d
AA
1802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
181
182 * s390-linux-nat.c: Include "regset.h".
183 (regmap_gregset): Delete macro.
184 (s390_64_regmap_gregset): New register map for
185 regcache_supply/_collect_regset.
186 (s390_64_gregset): New regset.
187 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
188 (regmap_fpregset): Delete macro.
189 (s390_native_supply, s390_native_collect): Delete functions.
190 (supply_gregset, fill_gregset): Replace s390-specific regmap
191 handling by a call to regcache_supply/_collect_regset.
192 (supply_fpregset, fill_fpregset): Call regcache_supply/
193 _collect_regset instead of s390_native_supply/_collect.
194 (fetch_regset, store_regset): Likewise. Also change the last
195 parameter to a regset instead of a regmap.
196 (s390_linux_fetch_inferior_registers)
197 (390_linux_store_inferior_registers): Adjust last parameter in
198 calls to fetch_regset and store_regset.
199 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
200 (s390_gregmap): ... this. Also make static const and convert to
201 regcache_map_entry format.
202 (s390x_regmap_gregset): Delete.
203 (s390_regmap_fpregset): Rename to...
204 (s390_fpregmap): ... this. Make static const and convert to
205 regcache_map_entry format.
206 (s390_regmap_upper, s390_regmap_last_break)
207 (s390x_regmap_last_break, s390_regmap_system_call)
208 (s390_regmap_tdb): Likewise.
209 (s390_supply_regset, s390_collect_regset): Remove functions.
210 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
211 s390_supply_regset.
212 (s390_gregset, s390_fpregset, s390_upper_regset)
213 (s390_last_break_regset, s390x_last_break_regset)
214 (s390_system_call_regset, s390_tdb_regset): Make global and
215 replace s390_supply/_collect_regset by regcache_supply/
216 _collect_regset.
217 (s390x_gregset): Delete.
218 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
219 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
220 (s390_regmap_fpregset, s390_regmap_last_break)
221 (s390x_regmap_last_break, s390_regmap_system_call)
222 (s390_regmap_tdb): Delete global variable declarations.
223 (s390_gregset, s390_fpregset, s390_last_break_regset)
224 (s390x_last_break_regset, s390_system_call_regset)
225 (s390_tdb_regset): New global variable declarations.
226
0b309272
AA
2272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
228
229 * regcache.c: Include "regset.h".
230 (regcache_transfer_regset): New local function.
231 (regcache_supply_regset, regcache_collect_regset): New functions.
232 * regcache.h (struct regcache_map_entry): New structure.
233 (REGCACHE_MAP_SKIP): New enum value.
234 (regcache_supply_regset, regcache_collect_regset): New prototypes.
235
7fefa8d7
AA
2362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
237
238 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
239 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
240 (ppc_linux_collect_gregset ): Likewise.
241 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
242 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
243 (ppc_collect_vrregset): Likewise.
244 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
245 Likewise.
246
96c4f946
YQ
2472014-08-07 Yao Qi <yao@codesourcery.com>
248
249 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
250 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
251 * remote.c (remote_read_bytes): Likewise.
252
fffbe6a8
YQ
2532014-08-07 Yao Qi <yao@codesourcery.com>
254
255 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
256
5ee8a82c
YQ
2572014-08-07 Yao Qi <yao@codesourcery.com>
258
259 PR remote/17230
260 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
261 TARGET_XFER_OK instead of 0.
262
bb974a24
GB
2632014-08-07 Gary Benson <gbenson@redhat.com>
264
265 * common/common-defs.h: Include errno.h.
266 * defs.h: Do not include errno.h.
267 * ada-typeprint.c: Likewise.
268 * c-typeprint.c: Likewise.
269 * core-regset.c: Likewise.
270 * corefile.c: Likewise.
271 * corelow.c: Likewise.
272 * event-loop.c: Likewise.
273 * f-typeprint.c: Likewise.
274 * gnu-nat.c: Likewise.
275 * go32-nat.c: Likewise.
276 * i386gnu-nat.c: Likewise.
277 * m2-typeprint.c: Likewise.
278 * nat/linux-btrace.c: Likewise.
279 * p-typeprint.c: Likewise.
280 * procfs.c: Likewise.
281 * remote-sim.c: Likewise.
282 * rs6000-nat.c: Likewise.
283 * target.c: Likewise.
284 * typeprint.c: Likewise.
285 * ui-file.c: Likewise.
286 * valops.c: Likewise.
287 * valprint.c: Likewise.
288
6d3d12eb
GB
2892014-08-07 Gary Benson <gbenson@redhat.com>
290
291 * common/common-defs.h: Include string.h.
292 * aarch64-tdep.c: Do not include string.h.
293 * ada-exp.y: Likewise.
294 * ada-lang.c: Likewise.
295 * ada-lex.l: Likewise.
296 * ada-typeprint.c: Likewise.
297 * ada-valprint.c: Likewise.
298 * aix-thread.c: Likewise.
299 * alpha-linux-tdep.c: Likewise.
300 * alpha-mdebug-tdep.c: Likewise.
301 * alpha-nat.c: Likewise.
302 * alpha-osf1-tdep.c: Likewise.
303 * alpha-tdep.c: Likewise.
304 * alphanbsd-tdep.c: Likewise.
305 * amd64-dicos-tdep.c: Likewise.
306 * amd64-linux-tdep.c: Likewise.
307 * amd64-nat.c: Likewise.
308 * amd64-sol2-tdep.c: Likewise.
309 * amd64fbsd-tdep.c: Likewise.
310 * amd64obsd-tdep.c: Likewise.
311 * arch-utils.c: Likewise.
312 * arm-linux-nat.c: Likewise.
313 * arm-linux-tdep.c: Likewise.
314 * arm-tdep.c: Likewise.
315 * arm-wince-tdep.c: Likewise.
316 * armbsd-tdep.c: Likewise.
317 * armnbsd-nat.c: Likewise.
318 * armnbsd-tdep.c: Likewise.
319 * armobsd-tdep.c: Likewise.
320 * avr-tdep.c: Likewise.
321 * ax-gdb.c: Likewise.
322 * ax-general.c: Likewise.
323 * bcache.c: Likewise.
324 * bfin-tdep.c: Likewise.
325 * breakpoint.c: Likewise.
326 * build-id.c: Likewise.
327 * buildsym.c: Likewise.
328 * c-exp.y: Likewise.
329 * c-lang.c: Likewise.
330 * c-typeprint.c: Likewise.
331 * c-valprint.c: Likewise.
332 * charset.c: Likewise.
333 * cli-out.c: Likewise.
334 * cli/cli-cmds.c: Likewise.
335 * cli/cli-decode.c: Likewise.
336 * cli/cli-dump.c: Likewise.
337 * cli/cli-interp.c: Likewise.
338 * cli/cli-logging.c: Likewise.
339 * cli/cli-script.c: Likewise.
340 * cli/cli-setshow.c: Likewise.
341 * cli/cli-utils.c: Likewise.
342 * coffread.c: Likewise.
343 * common/agent.c: Likewise.
344 * common/buffer.c: Likewise.
345 * common/buffer.h: Likewise.
346 * common/common-utils.c: Likewise.
347 * common/filestuff.c: Likewise.
348 * common/filestuff.c: Likewise.
349 * common/format.c: Likewise.
350 * common/print-utils.c: Likewise.
351 * common/rsp-low.c: Likewise.
352 * common/signals.c: Likewise.
353 * common/vec.h: Likewise.
354 * common/xml-utils.c: Likewise.
355 * core-regset.c: Likewise.
356 * corefile.c: Likewise.
357 * corelow.c: Likewise.
358 * cp-abi.c: Likewise.
359 * cp-name-parser.y: Likewise.
360 * cp-support.c: Likewise.
361 * cp-valprint.c: Likewise.
362 * cris-tdep.c: Likewise.
363 * d-exp.y: Likewise.
364 * darwin-nat.c: Likewise.
365 * dbxread.c: Likewise.
366 * dcache.c: Likewise.
367 * demangle.c: Likewise.
368 * dicos-tdep.c: Likewise.
369 * disasm.c: Likewise.
370 * doublest.c: Likewise.
371 * dsrec.c: Likewise.
372 * dummy-frame.c: Likewise.
373 * dwarf2-frame.c: Likewise.
374 * dwarf2loc.c: Likewise.
375 * dwarf2read.c: Likewise.
376 * elfread.c: Likewise.
377 * environ.c: Likewise.
378 * eval.c: Likewise.
379 * event-loop.c: Likewise.
380 * exceptions.c: Likewise.
381 * exec.c: Likewise.
382 * expprint.c: Likewise.
383 * f-exp.y: Likewise.
384 * f-lang.c: Likewise.
385 * f-typeprint.c: Likewise.
386 * f-valprint.c: Likewise.
387 * fbsd-nat.c: Likewise.
388 * findcmd.c: Likewise.
389 * findvar.c: Likewise.
390 * fork-child.c: Likewise.
391 * frame.c: Likewise.
392 * frv-linux-tdep.c: Likewise.
393 * frv-tdep.c: Likewise.
394 * gdb.c: Likewise.
395 * gdb_bfd.c: Likewise.
396 * gdbarch.c: Likewise.
397 * gdbarch.sh: Likewise.
398 * gdbtypes.c: Likewise.
399 * gnu-nat.c: Likewise.
400 * gnu-v2-abi.c: Likewise.
401 * gnu-v3-abi.c: Likewise.
402 * go-exp.y: Likewise.
403 * go-lang.c: Likewise.
404 * go32-nat.c: Likewise.
405 * guile/guile.c: Likewise.
406 * guile/scm-auto-load.c: Likewise.
407 * hppa-hpux-tdep.c: Likewise.
408 * hppa-linux-nat.c: Likewise.
409 * hppanbsd-tdep.c: Likewise.
410 * hppaobsd-tdep.c: Likewise.
411 * i386-cygwin-tdep.c: Likewise.
412 * i386-dicos-tdep.c: Likewise.
413 * i386-linux-tdep.c: Likewise.
414 * i386-nto-tdep.c: Likewise.
415 * i386-sol2-tdep.c: Likewise.
416 * i386-tdep.c: Likewise.
417 * i386bsd-tdep.c: Likewise.
418 * i386gnu-nat.c: Likewise.
419 * i386nbsd-tdep.c: Likewise.
420 * i386obsd-tdep.c: Likewise.
421 * i387-tdep.c: Likewise.
422 * ia64-libunwind-tdep.c: Likewise.
423 * ia64-linux-nat.c: Likewise.
424 * inf-child.c: Likewise.
425 * inf-ptrace.c: Likewise.
426 * inf-ttrace.c: Likewise.
427 * infcall.c: Likewise.
428 * infcmd.c: Likewise.
429 * inflow.c: Likewise.
430 * infrun.c: Likewise.
431 * interps.c: Likewise.
432 * iq2000-tdep.c: Likewise.
433 * irix5-nat.c: Likewise.
434 * jv-exp.y: Likewise.
435 * jv-lang.c: Likewise.
436 * jv-typeprint.c: Likewise.
437 * jv-valprint.c: Likewise.
438 * language.c: Likewise.
439 * linux-fork.c: Likewise.
440 * linux-nat.c: Likewise.
441 * lm32-tdep.c: Likewise.
442 * m2-exp.y: Likewise.
443 * m2-typeprint.c: Likewise.
444 * m32c-tdep.c: Likewise.
445 * m32r-linux-nat.c: Likewise.
446 * m32r-linux-tdep.c: Likewise.
447 * m32r-rom.c: Likewise.
448 * m32r-tdep.c: Likewise.
449 * m68hc11-tdep.c: Likewise.
450 * m68k-tdep.c: Likewise.
451 * m68kbsd-tdep.c: Likewise.
452 * m68klinux-nat.c: Likewise.
453 * m68klinux-tdep.c: Likewise.
454 * m88k-tdep.c: Likewise.
455 * machoread.c: Likewise.
456 * macrocmd.c: Likewise.
457 * main.c: Likewise.
458 * mdebugread.c: Likewise.
459 * mem-break.c: Likewise.
460 * memattr.c: Likewise.
461 * memory-map.c: Likewise.
462 * mep-tdep.c: Likewise.
463 * mi/mi-cmd-break.c: Likewise.
464 * mi/mi-cmd-disas.c: Likewise.
465 * mi/mi-cmd-env.c: Likewise.
466 * mi/mi-cmd-stack.c: Likewise.
467 * mi/mi-cmd-var.c: Likewise.
468 * mi/mi-cmds.c: Likewise.
469 * mi/mi-console.c: Likewise.
470 * mi/mi-getopt.c: Likewise.
471 * mi/mi-interp.c: Likewise.
472 * mi/mi-main.c: Likewise.
473 * mi/mi-parse.c: Likewise.
474 * microblaze-rom.c: Likewise.
475 * microblaze-tdep.c: Likewise.
476 * mingw-hdep.c: Likewise.
477 * minidebug.c: Likewise.
478 * minsyms.c: Likewise.
479 * mips-irix-tdep.c: Likewise.
480 * mips-linux-tdep.c: Likewise.
481 * mips-tdep.c: Likewise.
482 * mips64obsd-tdep.c: Likewise.
483 * mipsnbsd-tdep.c: Likewise.
484 * mipsread.c: Likewise.
485 * mn10300-linux-tdep.c: Likewise.
486 * mn10300-tdep.c: Likewise.
487 * monitor.c: Likewise.
488 * moxie-tdep.c: Likewise.
489 * mt-tdep.c: Likewise.
490 * nat/linux-btrace.c: Likewise.
491 * nat/linux-osdata.c: Likewise.
492 * nat/linux-procfs.c: Likewise.
493 * nat/linux-ptrace.c: Likewise.
494 * nat/linux-waitpid.c: Likewise.
495 * nbsd-tdep.c: Likewise.
496 * nios2-linux-tdep.c: Likewise.
497 * nto-procfs.c: Likewise.
498 * nto-tdep.c: Likewise.
499 * objc-lang.c: Likewise.
500 * objfiles.c: Likewise.
501 * opencl-lang.c: Likewise.
502 * osabi.c: Likewise.
503 * osdata.c: Likewise.
504 * p-exp.y: Likewise.
505 * p-lang.c: Likewise.
506 * p-typeprint.c: Likewise.
507 * parse.c: Likewise.
508 * posix-hdep.c: Likewise.
509 * ppc-linux-nat.c: Likewise.
510 * ppc-sysv-tdep.c: Likewise.
511 * ppcfbsd-tdep.c: Likewise.
512 * ppcnbsd-tdep.c: Likewise.
513 * ppcobsd-tdep.c: Likewise.
514 * printcmd.c: Likewise.
515 * procfs.c: Likewise.
516 * prologue-value.c: Likewise.
517 * python/py-auto-load.c: Likewise.
518 * python/py-gdb-readline.c: Likewise.
519 * ravenscar-thread.c: Likewise.
520 * regcache.c: Likewise.
521 * registry.c: Likewise.
522 * remote-fileio.c: Likewise.
523 * remote-m32r-sdi.c: Likewise.
524 * remote-mips.c: Likewise.
525 * remote-notif.c: Likewise.
526 * remote-sim.c: Likewise.
527 * remote.c: Likewise.
528 * reverse.c: Likewise.
529 * rs6000-aix-tdep.c: Likewise.
530 * ser-base.c: Likewise.
531 * ser-go32.c: Likewise.
532 * ser-mingw.c: Likewise.
533 * ser-pipe.c: Likewise.
534 * ser-tcp.c: Likewise.
535 * ser-unix.c: Likewise.
536 * serial.c: Likewise.
537 * sh-tdep.c: Likewise.
538 * sh64-tdep.c: Likewise.
539 * shnbsd-tdep.c: Likewise.
540 * skip.c: Likewise.
541 * sol-thread.c: Likewise.
542 * solib-dsbt.c: Likewise.
543 * solib-frv.c: Likewise.
544 * solib-osf.c: Likewise.
545 * solib-som.c: Likewise.
546 * solib-spu.c: Likewise.
547 * solib-target.c: Likewise.
548 * solib.c: Likewise.
549 * somread.c: Likewise.
550 * source.c: Likewise.
551 * sparc-nat.c: Likewise.
552 * sparc-sol2-tdep.c: Likewise.
553 * sparc-tdep.c: Likewise.
554 * sparc64-tdep.c: Likewise.
555 * sparc64fbsd-tdep.c: Likewise.
556 * sparc64nbsd-tdep.c: Likewise.
557 * sparcnbsd-tdep.c: Likewise.
558 * spu-linux-nat.c: Likewise.
559 * spu-multiarch.c: Likewise.
560 * spu-tdep.c: Likewise.
561 * stabsread.c: Likewise.
562 * stack.c: Likewise.
563 * std-regs.c: Likewise.
564 * symfile.c: Likewise.
565 * symmisc.c: Likewise.
566 * symtab.c: Likewise.
567 * target.c: Likewise.
568 * thread.c: Likewise.
569 * tilegx-linux-nat.c: Likewise.
570 * tilegx-tdep.c: Likewise.
571 * top.c: Likewise.
572 * tracepoint.c: Likewise.
573 * tui/tui-command.c: Likewise.
574 * tui/tui-data.c: Likewise.
575 * tui/tui-disasm.c: Likewise.
576 * tui/tui-file.c: Likewise.
577 * tui/tui-layout.c: Likewise.
578 * tui/tui-out.c: Likewise.
579 * tui/tui-regs.c: Likewise.
580 * tui/tui-source.c: Likewise.
581 * tui/tui-stack.c: Likewise.
582 * tui/tui-win.c: Likewise.
583 * tui/tui-windata.c: Likewise.
584 * tui/tui-winsource.c: Likewise.
585 * typeprint.c: Likewise.
586 * ui-file.c: Likewise.
587 * ui-out.c: Likewise.
588 * user-regs.c: Likewise.
589 * utils.c: Likewise.
590 * v850-tdep.c: Likewise.
591 * valarith.c: Likewise.
592 * valops.c: Likewise.
593 * valprint.c: Likewise.
594 * value.c: Likewise.
595 * varobj.c: Likewise.
596 * vax-tdep.c: Likewise.
597 * vaxnbsd-tdep.c: Likewise.
598 * vaxobsd-tdep.c: Likewise.
599 * windows-nat.c: Likewise.
600 * xcoffread.c: Likewise.
601 * xml-support.c: Likewise.
602 * xstormy16-tdep.c: Likewise.
603 * xtensa-linux-nat.c: Likewise.
604
dccbb609
GB
6052014-08-07 Gary Benson <gbenson@redhat.com>
606
607 * common/common-defs.h: Include gdb_assert.h.
608 * aarch64-tdep.c: Do not include gdb_assert.h.
609 * addrmap.c: Likewise.
610 * aix-thread.c: Likewise.
611 * alpha-linux-tdep.c: Likewise.
612 * alpha-mdebug-tdep.c: Likewise.
613 * alphanbsd-tdep.c: Likewise.
614 * amd64-nat.c: Likewise.
615 * amd64-tdep.c: Likewise.
616 * amd64bsd-nat.c: Likewise.
617 * amd64fbsd-nat.c: Likewise.
618 * amd64fbsd-tdep.c: Likewise.
619 * amd64nbsd-nat.c: Likewise.
620 * amd64nbsd-tdep.c: Likewise.
621 * amd64obsd-nat.c: Likewise.
622 * amd64obsd-tdep.c: Likewise.
623 * arch-utils.c: Likewise.
624 * arm-tdep.c: Likewise.
625 * armbsd-tdep.c: Likewise.
626 * auxv.c: Likewise.
627 * bcache.c: Likewise.
628 * bfin-tdep.c: Likewise.
629 * blockframe.c: Likewise.
630 * breakpoint.c: Likewise.
631 * bsd-kvm.c: Likewise.
632 * bsd-uthread.c: Likewise.
633 * buildsym.c: Likewise.
634 * c-exp.y: Likewise.
635 * c-lang.c: Likewise.
636 * charset.c: Likewise.
637 * cleanups.c: Likewise.
638 * cli-out.c: Likewise.
639 * cli/cli-decode.c: Likewise.
640 * cli/cli-dump.c: Likewise.
641 * cli/cli-logging.c: Likewise.
642 * cli/cli-script.c: Likewise.
643 * cli/cli-utils.c: Likewise.
644 * coffread.c: Likewise.
645 * common/common-utils.c: Likewise.
646 * common/queue.h: Likewise.
647 * common/signals.c: Likewise.
648 * common/vec.h: Likewise.
649 * complaints.c: Likewise.
650 * completer.c: Likewise.
651 * corelow.c: Likewise.
652 * cp-abi.c: Likewise.
653 * cp-name-parser.y: Likewise.
654 * cp-namespace.c: Likewise.
655 * cp-support.c: Likewise.
656 * cris-tdep.c: Likewise.
657 * dbxread.c: Likewise.
658 * dictionary.c: Likewise.
659 * doublest.c: Likewise.
660 * dsrec.c: Likewise.
661 * dummy-frame.c: Likewise.
662 * dwarf2-frame-tailcall.c: Likewise.
663 * dwarf2-frame.c: Likewise.
664 * dwarf2expr.c: Likewise.
665 * dwarf2loc.c: Likewise.
666 * dwarf2read.c: Likewise.
667 * eval.c: Likewise.
668 * event-loop.c: Likewise.
669 * exceptions.c: Likewise.
670 * expprint.c: Likewise.
671 * f-valprint.c: Likewise.
672 * fbsd-nat.c: Likewise.
673 * findvar.c: Likewise.
674 * frame-unwind.c: Likewise.
675 * frame.c: Likewise.
676 * frv-tdep.c: Likewise.
677 * gcore.c: Likewise.
678 * gdb-dlfcn.c: Likewise.
679 * gdb_bfd.c: Likewise.
680 * gdbarch.c: Likewise.
681 * gdbarch.sh: Likewise.
682 * gdbtypes.c: Likewise.
683 * gnu-nat.c: Likewise.
684 * gnu-v3-abi.c: Likewise.
685 * go-lang.c: Likewise.
686 * guile/scm-exception.c: Likewise.
687 * guile/scm-gsmob.c: Likewise.
688 * guile/scm-lazy-string.c: Likewise.
689 * guile/scm-math.c: Likewise.
690 * guile/scm-pretty-print.c: Likewise.
691 * guile/scm-safe-call.c: Likewise.
692 * guile/scm-utils.c: Likewise.
693 * guile/scm-value.c: Likewise.
694 * h8300-tdep.c: Likewise.
695 * hppa-hpux-nat.c: Likewise.
696 * hppa-tdep.c: Likewise.
697 * hppanbsd-tdep.c: Likewise.
698 * hppaobsd-tdep.c: Likewise.
699 * i386-darwin-nat.c: Likewise.
700 * i386-darwin-tdep.c: Likewise.
701 * i386-nto-tdep.c: Likewise.
702 * i386-tdep.c: Likewise.
703 * i386bsd-nat.c: Likewise.
704 * i386fbsd-tdep.c: Likewise.
705 * i386gnu-nat.c: Likewise.
706 * i386nbsd-tdep.c: Likewise.
707 * i386obsd-tdep.c: Likewise.
708 * i387-tdep.c: Likewise.
709 * ia64-libunwind-tdep.c: Likewise.
710 * ia64-tdep.c: Likewise.
711 * inf-ptrace.c: Likewise.
712 * inf-ttrace.c: Likewise.
713 * infcall.c: Likewise.
714 * infcmd.c: Likewise.
715 * infrun.c: Likewise.
716 * inline-frame.c: Likewise.
717 * interps.c: Likewise.
718 * jv-lang.c: Likewise.
719 * jv-typeprint.c: Likewise.
720 * linux-fork.c: Likewise.
721 * linux-nat.c: Likewise.
722 * linux-thread-db.c: Likewise.
723 * m32c-tdep.c: Likewise.
724 * m32r-linux-nat.c: Likewise.
725 * m32r-tdep.c: Likewise.
726 * m68k-tdep.c: Likewise.
727 * m68kbsd-nat.c: Likewise.
728 * m68kbsd-tdep.c: Likewise.
729 * m88k-tdep.c: Likewise.
730 * machoread.c: Likewise.
731 * macroexp.c: Likewise.
732 * macrotab.c: Likewise.
733 * maint.c: Likewise.
734 * mdebugread.c: Likewise.
735 * memory-map.c: Likewise.
736 * mep-tdep.c: Likewise.
737 * mi/mi-common.c: Likewise.
738 * microblaze-tdep.c: Likewise.
739 * mingw-hdep.c: Likewise.
740 * mips-linux-nat.c: Likewise.
741 * mips-linux-tdep.c: Likewise.
742 * mips-tdep.c: Likewise.
743 * mips64obsd-tdep.c: Likewise.
744 * mipsnbsd-tdep.c: Likewise.
745 * mn10300-linux-tdep.c: Likewise.
746 * mn10300-tdep.c: Likewise.
747 * moxie-tdep.c: Likewise.
748 * mt-tdep.c: Likewise.
749 * nat/linux-btrace.c: Likewise.
750 * nat/linux-osdata.c: Likewise.
751 * nat/linux-ptrace.c: Likewise.
752 * nat/mips-linux-watch.c: Likewise.
753 * nios2-linux-tdep.c: Likewise.
754 * nios2-tdep.c: Likewise.
755 * objc-lang.c: Likewise.
756 * objfiles.c: Likewise.
757 * obsd-nat.c: Likewise.
758 * opencl-lang.c: Likewise.
759 * osabi.c: Likewise.
760 * parse.c: Likewise.
761 * ppc-linux-nat.c: Likewise.
762 * ppc-sysv-tdep.c: Likewise.
763 * ppcfbsd-nat.c: Likewise.
764 * ppcfbsd-tdep.c: Likewise.
765 * ppcnbsd-nat.c: Likewise.
766 * ppcnbsd-tdep.c: Likewise.
767 * ppcobsd-nat.c: Likewise.
768 * ppcobsd-tdep.c: Likewise.
769 * printcmd.c: Likewise.
770 * procfs.c: Likewise.
771 * prologue-value.c: Likewise.
772 * psymtab.c: Likewise.
773 * python/py-lazy-string.c: Likewise.
774 * python/py-value.c: Likewise.
775 * regcache.c: Likewise.
776 * reggroups.c: Likewise.
777 * registry.c: Likewise.
778 * remote-sim.c: Likewise.
779 * remote.c: Likewise.
780 * rs6000-aix-tdep.c: Likewise.
781 * rs6000-tdep.c: Likewise.
782 * s390-linux-tdep.c: Likewise.
783 * score-tdep.c: Likewise.
784 * ser-base.c: Likewise.
785 * ser-mingw.c: Likewise.
786 * sh-tdep.c: Likewise.
787 * sh64-tdep.c: Likewise.
788 * solib-darwin.c: Likewise.
789 * solib-spu.c: Likewise.
790 * solib-svr4.c: Likewise.
791 * source.c: Likewise.
792 * sparc-nat.c: Likewise.
793 * sparc-sol2-tdep.c: Likewise.
794 * sparc-tdep.c: Likewise.
795 * sparc64-sol2-tdep.c: Likewise.
796 * sparc64-tdep.c: Likewise.
797 * sparc64fbsd-tdep.c: Likewise.
798 * sparc64nbsd-tdep.c: Likewise.
799 * sparc64obsd-tdep.c: Likewise.
800 * sparcnbsd-tdep.c: Likewise.
801 * sparcobsd-tdep.c: Likewise.
802 * spu-multiarch.c: Likewise.
803 * spu-tdep.c: Likewise.
804 * stabsread.c: Likewise.
805 * stack.c: Likewise.
806 * symfile.c: Likewise.
807 * symtab.c: Likewise.
808 * target-descriptions.c: Likewise.
809 * target-memory.c: Likewise.
810 * target.c: Likewise.
811 * tic6x-linux-tdep.c: Likewise.
812 * tic6x-tdep.c: Likewise.
813 * tilegx-linux-nat.c: Likewise.
814 * tilegx-tdep.c: Likewise.
815 * top.c: Likewise.
816 * tramp-frame.c: Likewise.
817 * tui/tui-out.c: Likewise.
818 * tui/tui-winsource.c: Likewise.
819 * ui-out.c: Likewise.
820 * user-regs.c: Likewise.
821 * utils.c: Likewise.
822 * v850-tdep.c: Likewise.
823 * valops.c: Likewise.
824 * value.c: Likewise.
825 * varobj.c: Likewise.
826 * vax-nat.c: Likewise.
827 * xml-syscall.c: Likewise.
828 * xml-tdesc.c: Likewise.
829 * xstormy16-tdep.c: Likewise.
830 * xtensa-linux-nat.c: Likewise.
831 * xtensa-tdep.c: Likewise.
832
e76df0d0
GB
8332014-08-07 Gary Benson <gbenson@redhat.com>
834
835 * common/common-defs.h: Include common-utils.h.
836 * defs.h: Do not include common-utils.h.
837 * common/gdb_assert.h: Likewise.
838 * darwin-nat.h: Likewise.
839 * nat/linux-btrace.c: Likewise.
840 * target/waitstatus.h: Likewise.
841
4cb9c816
GB
8422014-08-07 Gary Benson <gbenson@redhat.com>
843
844 * common/common-defs.h: Include ptid.h.
845 * defs.h: Do not include ptid.h.
846 * inferior.h: Likewise.
847 * infrun.h: Likewise.
848 * nat/linux-btrace.h: Likewise.
849 * nat/linux-osdata.h: Likewise.
850 * target/waitstatus.h: Likewise.
851
3995eeee
GB
8522014-08-07 Gary Benson <gbenson@redhat.com>
853
854 * common/common-defs.h: Include gdb_locale.h.
855 * defs.h: Do not include gdb_locale.h.
856
cb9f1a9b
GB
8572014-08-07 Gary Benson <gbenson@redhat.com>
858
859 * common/common-defs.h: Include gdb/signals.h.
860 * defs.h: Do not include gdb/signals.h.
861
a5fceff8
GB
8622014-08-07 Gary Benson <gbenson@redhat.com>
863
864 * common/common-defs.h: Include pathmax.h.
865 * defs.h: Do not include pathmax.h.
866
b9391142
GB
8672014-08-07 Gary Benson <gbenson@redhat.com>
868
869 * common/common-defs.h: Include libiberty.h.
870 * defs.h: Do not include libiberty.h.
871 * common/queue.h: Likewise.
872 * cp-name-parser.y: Likewise.
873 * mi/mi-cmd-catch.c: Likewise.
874 * python/python.c: Likewise.
875
0e443c87
GB
8762014-08-07 Gary Benson <gbenson@redhat.com>
877
878 * common/common-defs.h: Include ansidecl.h.
879 * defs.h: Do not include ansidecl.h.
880 * common/buffer.h: Likewise.
881 * common/common-utils.h: Likewise.
882
8ebb3f56
GB
8832014-08-07 Gary Benson <gbenson@redhat.com>
884
885 * common/common-defs.h: Include stddef.h.
886 * defs.h: Do not include stddef.h.
887 * common/common-utils.h: Likewise.
888 * amd64fbsd-nat.c: Likewise.
889 * bcache.c: Likewise.
890 * charset.c: Likewise.
891 * common/buffer.h: Likewise.
892 * common/vec.h: Likewise.
893 * i386bsd-nat.c: Likewise.
894 * nat/linux-btrace.h: Likewise.
895 * ppcfbsd-nat.c: Likewise.
896 * ppcnbsd-tdep.h: Likewise.
897 * ppcobsd-nat.c: Likewise.
898 * ppcobsd-tdep.h: Likewise.
899 * python/py-gdb-readline.c: Likewise.
900
8980bdf6
GB
9012014-08-07 Gary Benson <gbenson@redhat.com>
902
903 * common/common-defs.h: Include stdarg.h.
904 * defs.h: Do not include stdarg.h.
905 * ada-lang.c: Likewise.
906 * common/common-utils.h: Likewise.
907 * guile/scm-string.c: Likewise.
908 * guile/scm-utils.c: Likewise.
909 * m32c-tdep.c: Likewise.
910
d7096f71
GB
9112014-08-07 Gary Benson <gbenson@redhat.com>
912
913 * common/common-defs.h: Include stdlib.h.
914 * defs.h: Do not include stdlib.h.
915 * addrmap.c: Likewise.
916 * bcache.c: Likewise.
917 * common/buffer.c: Likewise.
918 * common/common-utils.c: Likewise.
919 * cp-name-parser.y: Likewise.
920 * go32-nat.c: Likewise.
921 * mn10300-linux-tdep.c: Likewise.
922 * nat/linux-osdata.c: Likewise.
923 * tui/tui.c: Likewise.
924 * windows-nat.c: Likewise.
925
d02f550d
GB
9262014-08-07 Gary Benson <gbenson@redhat.com>
927
928 * common/common-defs.h: Include stdio.h.
929 * defs.h: Do not include stdio.h.
930 * ada-lang.c: Likewise.
931 * common/buffer.c: Likewise.
932 * common/common-utils.c: Likewise.
933 * cp-name-parser.y: Likewise.
934 * gnu-nat.c: Likewise.
935 * go32-nat.c: Likewise.
936 * i386gnu-nat.c: Likewise.
937 * proc-api.c: Likewise.
938 * proc-events.c: Likewise.
939 * proc-flags.c: Likewise.
940 * proc-why.c: Likewise.
941 * python/python-internal.h: Likewise.
942 * target-memory.c: Likewise.
943 * tui/tui-io.c: Likewise.
944 * tui/tui.c: Likewise.
945
b6d7a4bf
SM
9462014-08-06 Simon Marchi <simon.marchi@ericsson.com>
947
948 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
949 (scan_dyntag_auxv): Same.
950
af19829b
YQ
9512014-08-06 Yao Qi <yao@codesourcery.com>
952
953 * amd64-linux-nat.c: Remove duplicated include
954 "x86-linux-nat.h".
955 * i386-linux-nat.c: Likewise.
956
8e07a239
YQ
9572014-08-06 Yao Qi <yao@codesourcery.com>
958
959 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
960 operand" with "Special opcode" in comments.
961
7bfe8241
GB
9622014-08-05 Gary Benson <gbenson@redhat.com>
963
964 * interps.c (initialize_interps): Remove prototype.
965 (interpreter_initialized): Remove static global.
966 (interp_add): Do not call initialize_interps.
967 (initialize_interps): Remove function.
968
d6c95504
GB
9692014-08-05 Gary Benson <gbenson@redhat.com>
970
971 * utils.c (vwarning): Remove spurious va_end.
972
241fd515
AM
9732014-08-05 Alan Modra <amodra@gmail.com>
974
975 * charset.c (convert_between_encodings): Cast result of obstack_base.
976 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
977 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
978 (read_unwind_info): Use size_t for some locals.
979 * jit.c (finalize_symtab): Likewise.
980 * utils.c (hashtab_obstack_allocate): Likewise.
981 * symmisc.c (print_objfile_statistics): Update format strings.
982
dc304a94
JK
9832014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
984
985 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
986 (Changes in GDB 7.8): ... here.
987
3cecbbbe
TT
9882014-08-04 Tom Tromey <tromey@redhat.com>
989
990 * target.c (set_targetdebug): New function.
991 (initialize_targets): Pass set_targetdebug when creating "set
992 debug target".
993
6908c509
JB
9942014-08-01 Joel Brobecker <brobecker@adacore.com>
995
996 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
997 if detecting a variable-sized field that is not the last field.
998 Fix struct type length computation.
999
53e8f97d
JB
10002014-08-01 Joel Brobecker <brobecker@adacore.com>
1001
1002 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1003 Add debug trace.
1004
e068c55d
JB
10052014-08-01 Joel Brobecker <brobecker@adacore.com>
1006
1007 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1008 Remove "+ 8" offset in computation of CHAIN_VMA.
1009
4d4ca2a1
DE
10102014-07-31 Doug Evans <dje@google.com>
1011
1012 * inflow.c (child_terminal_inferior): Add comment.
1013 (child_terminal_ours_for_output): Add comment.
1014 (child_terminal_ours): Add comment.
1015 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1016 (linux_nat_terminal_ours): Add comment.
1017
462f517e
GB
10182014-07-31 Gary Benson <gbenson@redhat.com>
1019
1020 * common/btrace-common.h: Do not include defs.h or server.h.
1021 * nat/mips-linux-watch.h: Likewise.
1022 * gdb-dlfcn.h: Do not include defs.h.
1023 * tracefile.h: Likewise.
1024
74228e77
RM
10252014-07-30 Roland McGrath <mcgrathr@google.com>
1026
1027 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1028
014f9477
TT
10292014-07-30 Tom Tromey <tromey@redhat.com>
1030
1031 * bsd-kvm.c (bsd_kvm_open): Constify.
1032 * corelow.c (core_open): Constify.
1033 * ctf.c (ctf_open): Constify.
1034 * dbug-rom.c (dbug_open): Constify.
1035 * exec.c (exec_open): Constify.
1036 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1037 * microblaze-rom.c (picobug_open): Constify.
1038 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1039 Constify.
1040 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1041 * record-btrace.c (record_btrace_open): Constify.
1042 * record-full.c (record_full_core_open_1, record_full_open_1)
1043 (record_full_open): Constify.
1044 * remote-m32r-sdi.c (m32r_open): Constify.
1045 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1046 (rockhopper_open, lsi_open): Constify.
1047 * remote-sim.c (gdbsim_open): Constify.
1048 * remote.c (remote_open, extended_remote_open, remote_open_1):
1049 Constify.
1050 * target.h (struct target_ops) <to_open>: Make "arg" const.
1051 * tracefile-tfile.c (tfile_open): Constify.
1052
e799154c
TT
10532014-07-30 Tom Tromey <tromey@redhat.com>
1054
1055 * breakpoint.c (map_breakpoint_numbers): Update.
1056 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1057 (get_number_const): New function.
1058 (get_number): Rewrite using get_number_const.
1059 (init_number_or_range): Make "string" const.
1060 (number_is_in_list): Make "list" const.
1061 * cli/cli-utils.h (get_number_const): Declare.
1062 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1063 (init_number_or_range, number_is_in_list): Update.
1064 * printcmd.c (map_display_numbers): Update.
1065 * value.c (value_from_history_ref): Constify.
1066 * value.h (value_from_history_ref): Update.
1067
5f08566b
TT
10682014-07-30 Tom Tromey <tromey@redhat.com>
1069
1070 * corefile.c (hook_type, call_extra_exec_file_hooks)
1071 (specify_exec_file_hook): Constify.
1072 * exec.c (exec_file_attach): Make "filename" const.
1073 * gdbcore.h (deprecated_exec_file_display_hook)
1074 (specify_exec_file_hook, exec_file_attach): Constify.
1075 * main.c (captured_main): Use catch_command_errors_const.
1076
8981c758
TT
10772014-07-30 Tom Tromey <tromey@redhat.com>
1078
1079 * target.c (open_target): New function.
1080 (add_target_with_completer, add_deprecated_target_alias): Use
1081 set_cmd_sfunc, set_cmd_context.
1082 (debug_to_open): Remove.
1083 (setup_target_debug): Update.
1084
a1c7835a
YQ
10852014-07-30 Yao Qi <yao@codesourcery.com>
1086
1087 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1088 comments.
1089 * parse.c (exp_iterate): Update comments.
1090
976411d6
GB
10912014-07-30 Gary Benson <gbenson@redhat.com>
1092
1093 * common/common-defs.h: New file.
1094 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1095 * defs.h: Include common-defs.h.
1096 Do not include config.h or build-gnulib/config.h.
1097
5d4848a4
GB
10982014-07-30 Gary Benson <gbenson@redhat.com>
1099
1100 * common/common-utils.h: Do not include config.h.
1101 * nat/linux-btrace.h: Likewise.
1102
d41f6d8e
GB
11032014-07-30 Gary Benson <gbenson@redhat.com>
1104
1105 * btrace.c: Include defs.h.
1106 * common/ptid.c: Include defs.h or server.h as appropriate.
1107 * nat/mips-linux-watch.c: Likewise.
1108
84202f9c
TT
11092014-07-29 Tom Tromey <tromey@redhat.com>
1110
1111 * target.c (target_is_pushed): Simplify.
1112
2530441c
JB
11132014-07-29 Joel Brobecker <brobecker@adacore.com>
1114
1115 GDB 7.8 released.
1116
7e09a223
YQ
11172014-07-29 Yao Qi <yao@codesourcery.com>
1118
1119 PR gdb/17206
1120 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1121
7ebdbe92
DE
11222014-07-28 Doug Evans <xdje42@gmail.com>
1123
1124 PR guile/17203
1125 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1126 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1127 parameters.
1128
f347ffc9
WN
11292014-07-28 Will Newton <will.newton@linaro.org>
1130
1131 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1132 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1133 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1134 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1135 (THUMB2_EABI_SYSCALL): Likewise.
1136 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1137 struct tramp_frame.
1138 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1139 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1140
37c5f1f7
DE
11412014-07-27 Doug Evans <xdje42@gmail.com>
1142
1143 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1144
0c3abbc7
DE
11452014-07-27 Doug Evans <xdje42@gmail.com>
1146
1147 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1148
e76c5d17
DE
11492014-07-26 Ludovic Courtès <ludo@gnu.org>
1150 Doug Evans <xdje42@gmail.com>
1151
1152 PR guile/17146
1153 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1154 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1155 * configure.ac: Try to use guild to compile an scm file, if it fails
1156 then disable guile support.
1157 * configure: Regenerate.
1158 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1159 GUILE_FILE_LIST.
1160 (GUILE_COMPILED_FILES): New variable.
1161 (GUILE_FILES) Update.
1162 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1163 (stamp-guile): Compile scm files.
1164 * guile/guile.c (boot_guile_support): New function.
1165 (standard_throw_args_p): New function.
1166 (print_standard_throw_error, print_throw_error): New functions.
1167 (handle_boot_error): New function.
1168 (initialize_scheme_side): Rewrite to call boot_guile_support.
1169 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1170 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1171
186fcde0
DE
11722014-07-26 Ludovic Courtès <ludo@gnu.org>
1173 Doug Evans <xdje42@gmail.com>
1174
1175 PR guile/17146
1176 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1177 * guile/lib/gdb/support.scm: New file.
1178 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1179 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1180 All uses updated.
1181 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1182 All uses updated.
1183 (%assert-type): Ditto, and renamed to assert-type.
1184 (%exception-print-style): Delete.
1185
4df42755
DE
11862014-07-26 Doug Evans <xdje42@gmail.com>
1187
1188 PR build/17105
1189 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1190 * configure: Regenerate.
1191 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1192 PYTHON_FILES.
1193 (PYTHON_FILES): New variable.
1194 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1195 (GUILE_FILES): New variable.
1196 (stamp-python, install-python, uninstall-python): Handle empty
1197 file list.
1198 (stamp-guile, install-guile, uninstall-guile): Ditto.
1199
ee7333ae
DE
12002014-07-26 Doug Evans <xdje42@gmail.com>
1201
1202 PR guile/17177
1203 * guile/lib/gdb.scm (pretty-printers): Export.
1204 (set-pretty-printers!): Export.
1205 * guile/lib/gdb/printing.scm (gdb module): Update.
1206 (prepend-pretty-printer!, append-pretty-printer!): Update.
1207 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1208 (pretty_printer_list_var): Delete.
1209 (pretty_printer_list): New static global.
1210 (gdbscm_pretty_printers): New function.
1211 (gdbscm_set_pretty_printers_x): New function.
1212 (ppscm_find_pretty_printer_from_gdb): Update.
1213 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1214 (gdbscm_initialize_pretty_printers): Update.
1215
74edf516
DE
12162014-07-26 Doug Evans <xdje42@gmail.com>
1217
1218 PR 17185
1219 * configure.ac: Add check for header gc/gc.h.
1220 Add check for function setenv.
1221 * configure: Regenerate.
1222 * config.in: Regenerate.
1223 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1224
d54398a7
MR
12252014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1226
1227 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1228 variation in gdbarch matching.
1229
ab16fce8
TT
12302014-07-25 Tom Tromey <tromey@redhat.com>
1231
1232 * exec.c (using_exec_ops): Remove.
1233 (exec_close_1): Update. Remove extraneous block, reindent.
1234 (add_target_sections): Use target_is_pushed.
1235
88056fbb
PA
12362014-07-25 Pedro Alves <palves@redhat.com>
1237
1238 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1239 * monitor.c (monitor_create_inferior): Likewise.
1240 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1241 * remote-sim.c (gdbsim_create_inferior): Likewise.
1242 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1243 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1244 * windows-nat.c (do_initial_windows_stuff): Likewise.
1245
70509625
PA
12462014-07-25 Pedro Alves <palves@redhat.com>
1247
1248 * NEWS: Mention signal passing and "signal" command changes.
1249 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1250 comment.
1251 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1252 call.
1253 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1254 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1255 (jump_command): Adjust clear_proceed_status call.
1256 (signal_command): Warn if other thread that are resumed have
1257 signals that will be delivered. Adjust clear_proceed_status call.
1258 (until_next_command, finish_command)
1259 (proceed_after_attach_callback, attach_command_post_wait)
1260 (attach_command): Adjust clear_proceed_status call.
1261 * infrun.c (proceed_after_vfork_done): Likewise.
1262 (proceed_after_attach_callback): Adjust comment.
1263 (clear_proceed_status_thread): Clear stop_signal if not in pass
1264 state.
1265 (clear_proceed_status_callback): Delete.
1266 (clear_proceed_status): New 'step' parameter. Only clear the
1267 proceed status of threads the command being prepared is about to
1268 resume.
1269 (proceed): If passed in an explicit signal, override stop_signal
1270 with it. Don't pass the last stop signal to the thread we're
1271 resuming.
1272 (init_wait_for_inferior): Adjust clear_proceed_status call.
1273 (switch_back_to_stepped_thread): Clear the signal if it should not
1274 be passed.
1275 * infrun.h (clear_proceed_status): New 'step' parameter.
1276 (user_visible_resume_ptid): Add comment.
1277 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1278 signal is in pass state.
1279 * remote.c (append_pending_thread_resumptions): Likewise.
1280 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1281
d8be2939
TT
12822014-07-25 Tom Tromey <tromey@redhat.com>
1283
1284 * target.h (target_stopped_data_address)
1285 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1286 parentheses.
1287
7d0d9d2b
PL
12882014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1289
1290 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1291 comments.
1292 (avr_pointer_to_address): Likewise.
1293
e9e7f724
TT
12942014-07-24 Tom Tromey <tromey@redhat.com>
1295
1296 * monitor.c (compile_pattern): Update.
1297 * target.h (struct target_ops) <to_shortname, to_longname,
1298 to_doc>: Now const.
1299
1947513d
TT
13002014-07-24 Tom Tromey <tromey@redhat.com>
1301
1302 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1303 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1304 (add_info_alias, add_com): Make "doc" const.
1305 (print_doc_line): Make "str" const.
1306 (delete_cmd): Update.
1307 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1308 (print_doc_line): Update.
1309 * cli/cli-script.c (document_command): Update.
1310 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1311 (add_com, add_info, add_info_alias): Update.
1312 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1313 * python/py-cmd.c (cmdpy_destroyer): Update.
1314
64e61d29
TT
13152014-07-24 Tom Tromey <tromey@redhat.com>
1316
1317 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1318 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1319 (help_cmd_list): Constify.
1320 (lookup_cmd): Update.
1321 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1322 const.
1323 (help_cmd_list, apropos_cmd): Update.
1324 * cli/cli-script.c (show_user): Update.
1325 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1326 * cli/cli-setshow.h (cmd_show_list): Update.
1327 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1328 (cmd_show_list): Update.
1329 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1330 * python/py-cmd.c (cmdpy_destroyer): Update.
1331
429e55ea
TT
13322014-07-24 Tom Tromey <tromey@redhat.com>
1333
1334 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1335 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1336 const.
1337 * command.h (deprecate_cmd): Update.
1338 * maint.c (maintenance_do_deprecate): Add casts.
1339
64669f3b
TT
13402014-07-24 Tom Tromey <tromey@redhat.com>
1341
1342 * cli/cli-decode.c (help_cmd): Make parameter "const".
1343 * cli/cli-decode.h (help_cmd): Update.
1344
d3d3328b
TT
13452014-07-24 Tom Tromey <tromey@redhat.com>
1346
1347 * stack.c (up_silently_base, down_silently_base): Make argument
1348 const.
1349
414842dc
TT
13502014-07-24 Tom Tromey <tromey@redhat.com>
1351
1352 * solib.c (solib_add): Make "pattern" const.
1353 * solib.h (solib_add): Update.
1354
baa336ce
TT
13552014-07-24 Tom Tromey <tromey@redhat.com>
1356
1357 * remote.c (remote_serial_open, print_packet, putpkt)
1358 (putpkt_binary): Constify.
1359 * remote.h (putpkt): Update.
1360
5a19e2d0
TT
13612014-07-24 Tom Tromey <tromey@redhat.com>
1362
1363 * monitor.c (monitor_open): Make "args" const.
1364 * monitor.h (monitor_open): Update.
1365
fc4baa5e
TT
13662014-07-24 Tom Tromey <tromey@redhat.com>
1367
1368 * maint.c (match_bfd_flags): Make "string" const.
1369 (print_bfd_section_info): Remove casts.
1370 (print_objfile_section_info): Make "string" const.
1371
0d5f0dbe
TT
13722014-07-24 Tom Tromey <tromey@redhat.com>
1373
1374 * inf-child.c (inf_child_open_target): Make "arg" const.
1375 * inf-child.h (inf_child_open_target): Update.
1376
41c77899
TT
13772014-07-24 Tom Tromey <tromey@redhat.com>
1378
1379 * environ.c (unset_in_environ): Make "var" const.
1380 * environ.h (unset_in_environ): Update.
1381
93db0d79
TT
13822014-07-24 Tom Tromey <tromey@redhat.com>
1383
1384 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1385 Make "cmd" const.
1386 (scan_filename_with_cleanup): Likewise.
1387 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1388 Make arguments const.
1389 (restore_command): Update.
1390
36d6eb95
PA
13912014-07-24 Pedro Alves <palves@redhat.com>
1392
1393 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1394
8009206a
TT
13952014-07-24 Tom Tromey <tromey@redhat.com>
1396 Gary Benson <gbenson@redhat.com>
1397
1398 * nat/linux-ptrace.c (additional_flags): New global.
1399 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1400 additional_flags; don't check GDBSERVER.
1401 (linux_ptrace_set_additional_flags): New function.
1402 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1403 Declare.
1404 * linux-nat.c (_initialize_linux_nat): Call
1405 linux_ptrace_set_additional_flags.
1406
a7068b60
TT
14072014-07-24 Tom Tromey <tromey@redhat.com>
1408
1409 * make-target-delegates (munge_type, write_debugmethod): New
1410 functions.
1411 (debug_names): New global.
1412 ($TARGET_DEBUG_PRINTER): New global.
1413 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1414 name.
1415 Write debug methods. Generate init_debug_target.
1416 * target-debug.h: New file.
1417 * target-delegates.c: Rebuild.
1418 * target.c: Include target-debug.h.
1419 (debug_target): Hoist definition.
1420 (target_kill, target_get_section_table, target_memory_map)
1421 (target_flash_erase, target_flash_done, target_detach)
1422 (target_disconnect, target_wait, target_resume)
1423 (target_pass_signals, target_program_signals, target_follow_fork)
1424 (target_mourn_inferior, target_search_memory)
1425 (target_thread_address_space, target_close)
1426 (target_find_new_threads, target_core_of_thread)
1427 (target_verify_memory, target_insert_mask_watchpoint)
1428 (target_remove_mask_watchpoint): Remove targetdebug code.
1429 (debug_to_post_attach, debug_to_prepare_to_store)
1430 (debug_to_files_info, debug_to_insert_breakpoint)
1431 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1432 (debug_to_region_ok_for_hw_watchpoint)
1433 (debug_to_can_accel_watchpoint_condition)
1434 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1435 (debug_to_watchpoint_addr_within_range)
1436 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1437 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1438 (debug_to_terminal_init, debug_to_terminal_inferior)
1439 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1440 (debug_to_terminal_save_ours, debug_to_terminal_info)
1441 (debug_to_load, debug_to_post_startup_inferior)
1442 (debug_to_insert_fork_catchpoint)
1443 (debug_to_remove_fork_catchpoint)
1444 (debug_to_insert_vfork_catchpoint)
1445 (debug_to_remove_vfork_catchpoint)
1446 (debug_to_insert_exec_catchpoint)
1447 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1448 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1449 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1450 (setup_target_debug): Call init_debug_target.
1451 * target.h (TARGET_DEBUG_PRINTER): New macro.
1452 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1453 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1454
2c51604d
GB
14552014-07-24 Gary Benson <gbenson@redhat.com>
1456
1457 * exceptions.h (throw_vfatal): Renamed to...
1458 (throw_vquit): New declaration.
1459 (throw_quit): Likewise.
1460 * exceptions.c (throw_vfatal): Renamed to...
1461 (throw_vquit): New function.
1462 (throw_quit): Likewise.
1463 (throw_error): Call throw_verror rather than throw_it.
1464 * utils.h (vfatal): Removed.
1465 (fatal): Likewise.
1466 * utils.c (vfatal): Removed.
1467 (fatal): Likewise.
1468 (internal_verror): Replaced call to fatal with call to throw_quit.
1469 (quit): Replaced calls to fatal with calls to throw_quit.
1470
34211963
ME
14712014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1472
1473 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1474 target_read_code.
1475
a52b4d3e
ME
14762014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1477
1478 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1479 less than zero in conditional expression.
1480
a8bdc56b
TT
14812014-07-23 Tom Tromey <tromey@redhat.com>
1482
1483 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1484 ($INTRO_PART): Don't match whitespace.
1485 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1486 argument matching.
1487 ($METHOD): Add $METHOD_TRAILER.
1488 (trim): Rewrite.
1489 (scan_target_h): New sub.
1490 Change main loop not to collect state.
1491 * target-delegates.c: Rebuild.
1492
91b52240
GB
14932014-07-23 Gary Benson <gbenson@redhat.com>
1494
1495 * cp-support.c (gdb_demangle): Fix build on systems without
1496 sigaltstack.
1497
45326f6f
JK
14982014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1499
1500 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1501 for reference entry value target data value.
1502
e214cf6c
JK
15032014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1504
1505 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1506 value_available_contents_eq.
1507
bddbbedd
PA
15082014-07-22 Pedro Alves <palves@redhat.com>
1509
1510 * value.c (allocate_optimized_out_value): Don't mark value as
1511 non-lazy.
1512
45c71484
JW
15132014-07-22 Jiong Wang <jiong.wang@arm.com>
1514
1515 * MAINTAINERS (Write After Approval): Update my email address.
1516
9597b22a
DE
15172014-07-20 Doug Evans <dje@google.com>
1518
1519 PR server/17147
1520 * remote.c (putpkt_binary): Add text to error message.
1521
91101fe5
YQ
15222014-07-20 Yao Qi <yao@codesourcery.com>
1523
1524 * eval.c: Remove "Chill" from comments.
1525 * gdbtypes.h: Likewise.
1526 * symtab.h: Likewise.
1527
c9402c95
YQ
15282014-07-20 Yao Qi <yao@codesourcery.com>
1529
1530 * std-operator.def: Update comments to TERNOP_SLICE.
1531
ae8fddda
YQ
15322014-07-20 Yao Qi <yao@codesourcery.com>
1533
1534 * std-operator.def: Remove BINOP_RANGE.
1535 * breakpoint.c (watchpoint_exp_is_const): Update.
1536 * expprint.c (dump_subexp_body_standard): Likewise.
1537 * eval.c (init_array_element): Remove dead code.
1538 (evaluate_subexp_standard): Likewise.
1539
9c816640
YQ
15402014-07-20 Yao Qi <yao@codesourcery.com>
1541
1542 * std-operator.def: Remove BINOP_IN.
1543 * breakpoint.c (watchpoint_exp_is_const): Update.
1544 * eval.c (evaluate_subexp_standard): Likewise.
1545 * expprint.c (dump_subexp_body_standard): Likewise.
1546
164224e9
ME
15472014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1548
1549 * microblaze-tdep.c (microblaze_register_names): Add
1550 the rshr and rslr register names.
1551 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1552 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1553 Use of tdesc_numbered_register. Use of
1554 microblaze_register_g_packet_guesses. Use of
1555 tdesc_use_registers. Use of set_gdbarch_register_type.
1556 (microblaze_register_g_packet_guesses): New.
1557 * microblaze-tdep.h (microblaze_reg_num): Add
1558 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1559 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1560 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1561 * features/microblaze-core.xml: New file.
1562 * features/microblaze-stack-protect.xml: New file.
1563 * features/microblaze-with-stack-protect.c: New file.
1564 * features/microblaze-with-stack-protect.xml: New file.
1565 * features/microblaze.xml: New file.
1566 * features/microblaze.c: New file.
1567 * features/Makefile (microblaze-with-stack-protect): Add
1568 microblaze-with-stack-protect microblaze and microblaze-expedite.
1569 * regformats/microblaze-with-stack-protect.dat: New file.
1570 * regformats/microblaze.dat: New file.
1571 * doc/gdb.texinfo (MicroBlaze Features): Added.
1572
e8b2341c
TT
15732014-07-18 Tom Tromey <tromey@redhat.com>
1574
1575 * exec.c (exec_ops): Now static.
1576 * exec.h (exec_ops): Don't declare.
1577
44e89118
TT
15782014-07-18 Tom Tromey <tromey@redhat.com>
1579
1580 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1581 to find_target_beneath.
1582 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1583 find_target_beneath.
1584 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1585
b0ed115f
TT
15862014-07-18 Tom Tromey <tromey@redhat.com>
1587
1588 PR gdb/17130:
1589 * utils.c (quit): Use target_supports_terminal_ours.
1590 * target.h (target_supports_terminal_ours): Declare.
1591 * target.c (target_supports_delete_record): Don't check
1592 to_delete_record against NULL.
1593 (target_supports_terminal_ours): New function.
1594
e75fdfca
TT
15952014-07-18 Tom Tromey <tromey@redhat.com>
1596
1597 PR gdb/17130:
1598 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1599 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1600 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1601 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1602 * windows-nat.c (windows_xfer_partial): Always delegate.
1603 * record-btrace.c (record_btrace_xfer_partial): Simplify
1604 delegation.
1605 (record_btrace_fetch_registers, record_btrace_store_registers)
1606 (record_btrace_prepare_to_store, record_btrace_resume)
1607 (record_btrace_wait, record_btrace_find_new_threads)
1608 (record_btrace_thread_alive): Likewise.
1609 * procfs.c (procfs_xfer_partial): Always delegate.
1610 * corelow.c (core_xfer_partial): Always delegate.
1611 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1612
83814951
TT
16132014-07-18 Tom Tromey <tromey@redhat.com>
1614
1615 * exec.c (exec_make_note_section): Move earlier.
1616
b8b8facf
DE
16172014-07-17 Doug Evans <dje@google.com>
1618
74b49205 1619 PR gdb/17170
b8b8facf
DE
1620 * maint.c (count_symtabs_and_blocks): Handle NULL
1621 current_program_space.
1622 (report_command_stats): Check global enabled flag in addition to
1623 recorded enabled flag.
1624 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1625
69ff6be5
PA
16262014-07-16 Pedro Alves <palves@redhat.com>
1627
1628 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1629
252db1b5
TT
16302014-07-16 Tom Tromey <tromey@redhat.com>
1631
1632 * target.h (struct target_ops) <to_delete_record>: Reformat
1633 comment.
1634
a432721e
TT
16352014-07-16 Tom Tromey <tromey@redhat.com>
1636
1637 * target-delegates.c: Rebuild.
1638
487d9753
PL
16392014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1640
1641 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1642 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1643 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1644 (avr_pointer_to_address): Likewise.
1645 (avr_address_class_type_flags): New function.
1646 (avr_address_class_type_flags_to_name): Likewise.
1647 (avr_address_class_name_to_type_flags): Likewise.
1648 (avr_gdbarch_init): Set address_class_type_flags,
1649 address_class_type_flags_to_name and
1650 address_class_name_to_type_flags.
1651
57745c90
PA
16522014-07-15 Pedro Alves <palves@redhat.com>
1653
1654 * linux-nat.c (kill_callback): Save errno and work with saved
1655 copy.
1656
2d40be18
SM
16572014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1658
1659 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1660
572f6555
EBM
16612014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1662
1663 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1664 breakpoint support correctly.
1665
cc1c52ad
PA
16662014-07-14 Pedro Alves <palves@redhat.com>
1667
1668 * utils.c (prompt_for_continue): Call target_terminal_ours.
1669
1e973570
PA
16702014-07-14 Pedro Alves <palves@redhat.com>
1671
1672 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1673 catch_errors. Don't re-enable stdin or notify observers where,
1674 and rethrow error.
1675 (fetch_inferior_event_wrapper): Delete.
1676
93d6eb10
PA
16772014-07-14 Pedro Alves <palves@redhat.com>
1678
1679 PR gdb/17072
1680 * top.c: Include "inf-loop.h".
1681 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1682 field.
1683 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1684 was async before.
1685 (gdb_readline_wrapper): Store whether the target is async, and
1686 make it sync.
1687
0017922d
PA
16882014-07-14 Pedro Alves <palves@redhat.com>
1689
1690 PR gdb/17072
1691 * top.c (gdb_readline_wrapper_line): Tweak comment.
1692 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1693 the input handler callback.
1694
94696ad3
PA
16952014-07-14 Pedro Alves <palves@redhat.com>
1696
1697 PR gdb/17072
1698 * main.c: Include event-top.h.
1699 (handle_command_errors): New function.
1700 (catch_command_errors, catch_command_errors_const): Use it.
1701
9d1e69a2
PA
17022014-07-14 Pedro Alves <palves@redhat.com>
1703
1704 * exceptions.c (catch_command_errors, catch_command_errors_const):
1705 Moved to main.c.
1706 * exceptions.h (catch_command_errors_ftype)
1707 (catch_command_errors_const_ftype): Moved to main.c.
1708 (catch_command_errors, catch_command_errors_const): Delete
1709 declarations.
1710 * main.c (catch_command_errors_ftype)
1711 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1712 (catch_command_errors, catch_command_errors_const)): Moved here
1713 from exceptions.c and make static.
1714
feefc97b
PA
17152014-07-14 Pedro Alves <palves@redhat.com>
1716
1717 * exceptions.c (print_any_exception): Delete.
1718 (catch_exceptions_with_msg): Use exception_print instead of
1719 print_any_exception.
1720 (catch_errors): Use exception_fprintf instead of
1721 print_any_exception.
1722 (catch_command_errors, catch_command_errors_const): Use
1723 exception_print instead of print_any_exception.
1724
c933f875
PA
17252014-07-14 Pedro Alves <palves@redhat.com>
1726
1727 * infcall.c (run_inferior_call): Set 'sync_execution' while
1728 running the inferior call.
1729
feb6f816
PA
17302014-07-14 Pedro Alves <palves@redhat.com>
1731
1732 * value.c (value_contents_equal): Delete function.
1733 * value.h (value_contents_equal): Delete declaration.
1734
d98b7a16
TT
17352014-07-14 Tom Tromey <tromey@redhat.com>
1736
1737 PR exp/17106:
1738 * gdbtypes.c (is_dynamic_type_internal): New function, from
1739 is_dynamic_type.
1740 (is_dynamic_type): Rewrite.
1741 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1742 (resolve_dynamic_struct): Likewise.
1743 (resolve_dynamic_type_internal): New function, from
1744 resolve_dynamic_type.
1745 (resolve_dynamic_type): Rewrite.
1746
548740d6
TT
17472014-07-14 Tom Tromey <tromey@redhat.com>
1748
1749 * target.c (target_require_runnable): Also check record_stratum.
1750 Update comment.
1751
808f7ab1
YQ
17522014-07-11 Yao Qi <yao@codesourcery.com>
1753
1754 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1755 thumb_instruction_restores_sp return true.
1756
540314bd
YQ
17572014-07-11 Yao Qi <yao@codesourcery.com>
1758
1759 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1760 (thumb_in_function_epilogue_p): Call
1761 thumb_instruction_restores_sp.
1762
1db01f22
YQ
17632014-07-11 Yao Qi <yao@codesourcery.com>
1764
1765 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1766 'add sp, #imm'.
1767 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1768
3116063b
GB
17692014-07-11 Gary Benson <gbenson@redhat.com>
1770
1771 * amd64-linux-nat.c (gdbcore.h): Remove include.
1772 (regset.h): Likewise.
1773 (nat/linux-btrace.h): Likewise.
1774 (btrace.h): Likewise.
1775 (gdb_assert.h): Likewise.
1776 (string.h): Likewise.
1777 (sys/uio.h): Likewise.
1778 (sys/debugreg.h): Likewise.
1779 (sys/syscall.h): Likewise.
1780 (sys/procfs.h): Likewise.
1781 (sys/user.h): Likewise.
1782 (asm/ptrace.h): Likewise.
1783 (i386-nat.h): Likewise.
1784 * i386-linux-nat.c (i386-nat.h): Likewise.
1785 (regset.h): Likewise.
1786 (target.h): Likewise.
1787 (linux-nat.h): Likewise.
1788 (nat/linux-btrace.h): Likewise.
1789 (btrace.h): Likewise.
1790 (gdb_assert.h): Likewise.
1791 (string.h): Likewise.
1792 (sys/uio.h): Likewise.
1793 (sys/user.h): Likewise.
1794 (sys/procfs.h): Likewise.
1795 (sys/reg.h): Likewise.
1796 (sys/debugreg.h): Likewise.
1797 (ORIG_EAX): Remove definition.
1798
040baaf6
GB
17992014-07-11 Gary Benson <gbenson@redhat.com>
1800
1801 * i386-linux-nat.h: New file.
1802 * x86-linux-nat.h: Likewise.
1803 * x86-linux-nat.c: Likewise.
1804 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1805 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1806 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1807 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1808 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1809 (PTRACE_SETREGSET): Likewise.
1810 (arch_lwp_info): Now in x86-linux-nat.c.
1811 (have_ptrace_getregset): Now in x86-linux-nat.h.
1812 (x86_linux_dr_get): Now in x86-linux-nat.c.
1813 (x86_linux_dr_set): Likewise.
1814 (x86_linux_dr_get_addr): Likewise.
1815 (x86_linux_dr_get_control): Likewise.
1816 (x86_linux_dr_get_status): Likewise.
1817 (update_debug_registers_callback): Likewise.
1818 (x86_linux_dr_set_control): Likewise.
1819 (x86_linux_dr_set_addr): Likewise.
1820 (x86_linux_prepare_to_resume): Likewise.
1821 (x86_linux_new_thread): Likewise.
1822 (x86_linux_new_fork): Likewise.
1823 (x86_linux_get_thread_area): Likewise.
1824 (super_post_startup_inferior): Likewise.
1825 (x86_linux_child_post_startup_inferior): Likewise.
1826 (AMD64_LINUX_USER64_CS): Likewise.
1827 (AMD64_LINUX_X32_DS): Likewise.
1828 (x86_linux_read_description): Likewise.
1829 (x86_linux_enable_btrace): Likewise.
1830 (x86_linux_disable_btrace): Likewise.
1831 (x86_linux_teardown_btrace): Likewise.
1832 (x86_linux_read_btrace): Likewise.
1833 (x86_linux_create_target): Likewise.
1834 (x86_linux_add_target): Likewise.
1835 * i386-linux-nat.c (x86-linux-nat.h): New include.
1836 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1837 (PTRACE_SETREGSET): Likewise.
1838 (arch_lwp_info): Now in x86-linux-nat.c.
1839 (have_ptrace_getregset): Now in x86-linux-nat.h.
1840 (x86_linux_dr_get): Now in x86-linux-nat.c.
1841 (x86_linux_dr_set): Likewise.
1842 (x86_linux_dr_get_addr): Likewise.
1843 (x86_linux_dr_get_control): Likewise.
1844 (x86_linux_dr_get_status): Likewise.
1845 (update_debug_registers_callback): Likewise.
1846 (x86_linux_dr_set_control): Likewise.
1847 (x86_linux_dr_set_addr): Likewise.
1848 (x86_linux_prepare_to_resume): Likewise.
1849 (x86_linux_new_thread): Likewise.
1850 (x86_linux_new_fork): Likewise.
1851 (x86_linux_get_thread_area): Likewise.
1852 (super_post_startup_inferior): Likewise.
1853 (x86_linux_child_post_startup_inferior): Likewise.
1854 (AMD64_LINUX_USER64_CS): Likewise.
1855 (AMD64_LINUX_X32_DS): Likewise.
1856 (x86_linux_read_description): Likewise.
1857 (x86_linux_enable_btrace): Likewise.
1858 (x86_linux_disable_btrace): Likewise.
1859 (x86_linux_teardown_btrace): Likewise.
1860 (x86_linux_read_btrace): Likewise.
1861 (x86_linux_create_target): Likewise.
1862 (x86_linux_add_target): Likewise.
1863
1aa7e42c
GB
18642014-07-11 Gary Benson <gbenson@redhat.com>
1865
1866 * amd64-linux-nat.c: Comment and whitespace changes.
1867 * i386-linux-nat.c: Comment and whitespace changes.
1868
c1e246a0
GB
18692014-07-11 Gary Benson <gbenson@redhat.com>
1870
1871 * amd64-linux-nat.c (x86_linux_create_target): New function.
1872 (x86_linux_add_target): Likewise.
1873 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1874 * i386-linux-nat.c (x86_linux_create_target): New function.
1875 (x86_linux_add_target): Likewise.
1876 (_initialize_i386_linux_nat): Delegate to the above new functions.
1877
8c420b8d
GB
18782014-07-11 Gary Benson <gbenson@redhat.com>
1879
1880 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1881 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1882 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1883 (ps_get_thread_area): Delegate to the above.
1884
cb1da100
GB
18852014-07-11 Gary Benson <gbenson@redhat.com>
1886
1887 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1888 x86_linux_read_description. All uses updated. amd64-specific
1889 code conditionalized. Conditionalized i386-specific code added.
1890 Redundant cast removed.
1891 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1892 x86_linux_read_description. All uses updated. i386-specific
1893 code conditionalized. Conditionalized amd64-specific code added.
1894 One sizeof replaced with the actual type it is describing.
1895
2acf3cd0
GB
18962014-07-11 Gary Benson <gbenson@redhat.com>
1897
1898 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1899 x86_linux_dr_get. All uses updated.
1900 (amd64_linux_dr_set): Renamed to
1901 x86_linux_dr_set. All uses updated.
1902 (amd64_linux_dr_get_addr): Renamed to
1903 x86_linux_dr_get_addr. All uses updated.
1904 (amd64_linux_dr_get_control): Renamed to
1905 x86_linux_dr_get_control. All uses updated.
1906 (amd64_linux_dr_get_status): Renamed to
1907 x86_linux_dr_get_status. All uses updated.
1908 (amd64_linux_dr_set_control): Renamed to
1909 x86_linux_dr_set_control. All uses updated.
1910 (amd64_linux_dr_set_addr): Renamed to
1911 x86_linux_dr_set_addr. All uses updated.
1912 (amd64_linux_prepare_to_resume): Renamed to
1913 x86_linux_prepare_to_resume. All uses updated.
1914 (amd64_linux_new_thread): Renamed to
1915 x86_linux_new_thread. All uses updated.
1916 (amd64_linux_new_fork): Renamed to
1917 x86_linux_new_fork. All uses updated.
1918 (amd64_linux_child_post_startup_inferior): Renamed to
1919 x86_linux_child_post_startup_inferior. All uses updated.
1920 (amd64_linux_enable_btrace): Renamed to
1921 x86_linux_enable_btrace. All uses updated.
1922 (amd64_linux_disable_btrace): Renamed to
1923 x86_linux_disable_btrace. All uses updated.
1924 (amd64_linux_teardown_btrace): Renamed to
1925 x86_linux_teardown_btrace. All uses updated.
1926 (amd64_linux_read_btrace): Renamed to
1927 x86_linux_read_btrace. All uses updated.
1928 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1929 x86_linux_dr_get. All uses updated.
1930 (i386_linux_dr_set): Renamed to
1931 x86_linux_dr_set. All uses updated.
1932 (i386_linux_dr_get_addr): Renamed to
1933 x86_linux_dr_get_addr. All uses updated.
1934 (i386_linux_dr_get_control): Renamed to
1935 x86_linux_dr_get_control. All uses updated.
1936 (i386_linux_dr_get_status): Renamed to
1937 x86_linux_dr_get_status. All uses updated.
1938 (i386_linux_dr_set_control): Renamed to
1939 x86_linux_dr_set_control. All uses updated.
1940 (i386_linux_dr_set_addr): Renamed to
1941 x86_linux_dr_set_addr. All uses updated.
1942 (i386_linux_prepare_to_resume): Renamed to
1943 x86_linux_prepare_to_resume. All uses updated.
1944 (i386_linux_new_thread): Renamed to
1945 x86_linux_new_thread. All uses updated.
1946 (i386_linux_new_fork): Renamed to
1947 x86_linux_new_fork. All uses updated.
1948 (i386_linux_child_post_startup_inferior): Renamed to
1949 x86_linux_child_post_startup_inferior. All uses updated.
1950 (i386_linux_enable_btrace): Renamed to
1951 x86_linux_enable_btrace. All uses updated.
1952 (i386_linux_disable_btrace): Renamed to
1953 x86_linux_disable_btrace. All uses updated.
1954 (i386_linux_teardown_btrace): Renamed to
1955 x86_linux_teardown_btrace. All uses updated.
1956 (i386_linux_read_btrace): Renamed to
1957 x86_linux_read_btrace. All uses updated.
1958
b9c1d481
AS
19592014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1960
1961 * remote.c (extended_remote_post_attach): New function.
1962 (init_extended_remote_ops): Install it as to_post_attach method.
1963
7180e04a
PA
19642014-07-09 Pedro Alves <palves@redhat.com>
1965
1966 * infcmd.c (attach_command_post_wait): Don't call
1967 target_terminal_inferior here.
1968 (attach_command): Call it here instead.
1969
9a9a7608
AB
19702014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1973 field.
1974 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1975 from varobj.c, with additional checks.
1976 (c_varobj_ops): Fill in is_path_expr_parent field.
1977 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1978 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1979 field.
1980 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1981 ops method.
1982 (varobj_default_is_path_expr_parent): New function.
1983 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1984 (varobj_default_is_path_expr_parent): Declare new function.
1985
1f267ae3
MM
19862014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1987
1988 * infcmd.c (finish_backward): Turn internal error into normal error.
1989
b2ee242b
PA
19902014-07-07 Pedro Alves <palves@redhat.com>
1991
8a869bca 1992 PR gdb/17096
b2ee242b
PA
1993 * remote.c (async_handle_remote_sigint)
1994 (async_handle_remote_sigint_twice): Call
1995 gdb_call_async_signal_handler instead of
1996 mark_async_signal_handler.
1997
38e229b2
TT
19982014-07-07 Tom Tromey <tromey@redhat.com>
1999
2000 * target-delegates.c: Rebuild.
2001 * target.c (target_info_record): Remove.
2002 * record.c (info_record_command): Unconditionally call
2003 to_info_record.
2004 * target.h (struct target_ops) <to_info_record>: Use
2005 TARGET_DEFAULT_IGNORE.
2006 (target_info_record): Remove.
2007
f0f9ff95
TT
20082014-07-07 Tom Tromey <tromey@redhat.com>
2009
2010 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2011 TARGET_DEFAULT_NORETURN.
2012 * target.c (generic_tls_error): New function.
2013 (target_translate_tls_address): Don't search target stack.
2014 * target-delegates.c: Rebuild.
2015 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2016 stack.
2017 * linux-thread-db.c (thread_db_get_thread_local_address):
2018 Unconditionally call beneath target.
2019
4a5be5ee
MK
20202014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2021
2022 * cli/cli-logging.c (pop_output_files): Assign targerr to
2023 gdb_stdtargerr.
2024
92c3b204
AB
20252014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2026
2027 * MAINTAINERS (Write After Approval): Update my email address.
2028
9b11e3a7
GB
20292014-07-02 Gary Benson <gbenson@redhat.com>
2030
2031 * proc-service.c (ps_xfer_memory): Update comment.
2032 (ps_pstop): Remove unused function.
2033 (ps_pcontinue): Likewise.
2034 (ps_lstop): Likewise.
2035 (ps_lcontinue): Likewise.
2036 (ps_lgetxregsize): Likewise.
2037 (ps_lgetxregs): Likewise.
2038 (ps_lsetxregs): Likewise.
2039 (ps_plog): Likewise.
2040 (ps_ptread): Likewise.
2041 (ps_ptwrite): Likewise.
2042
cf363f18
MW
20432014-07-01 Mark Wielaard <mjw@redhat.com>
2044
2045 * dwarf2read.c (add_array_cv_type): New function.
2046 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2047 (read_tag_volatile_type): Likewise.
2048
82ae6c8d
TT
20492014-07-01 Tom Tromey <tromey@redhat.com>
2050
2051 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2052 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2053 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2054 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2055 * command.h (cmd_cfunc_ftype): Move earlier.
2056 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2057 (add_com, add_info): Use cmd_cfunc_ftype.
2058
96142726
TT
20592014-06-30 Tom Tromey <tromey@redhat.com>
2060
2061 * symtab.c (operator_chars): Make parameters and return type
2062 const.
2063 (file_matches): Make "files" const.
2064 (struct search_symbols_data) <files>: Now const.
2065 (search_symbols): Make "regexp" and "files" parameters const.
2066 Update.
2067 (symtab_symbol_info): Remove cast.
2068 (rbreak_command): Update.
2069 * symtab.h (search_symbols): Update.
2070
b67a2c6f
YQ
20712014-06-27 Yao Qi <yao@codesourcery.com>
2072
2073 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2074 Change parameter type to 'struct thread_info *'. Caller
2075 updated.
2076 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2077 Update declaration.
2078 * dummy-frame.c (struct dummy_frame_id): New.
2079 (dummy_frame_id_eq): New function.
2080 (struct dummy_frame) <id>: Change its type to 'struct
2081 dummy_frame_id'.
2082 (dummy_frame_push): Add parameter ptid and save it in
2083 dummy_frame_id.
2084 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2085 inferior_ptid.
2086 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2087 to inferior_ptid.
2088 (lookup_dummy_frame): Change parameter type to 'struct
2089 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2090 instead of frame_id_eq.
2091 (dummy_frame_pop): Add parameter ptid. Callers updated.
2092 Update comments. Compose dummy_frame_id and pass it to
2093 lookup_dummy_frame.
2094 (dummy_frame_discard): Add parameter ptid.
2095 (dummy_frame_sniffer): Compose dummy_frame_id and call
2096 dummy_frame_id_eq instead of frame_id_eq.
2097 (fprint_dummy_frames): Print ptid.
2098 * dummy-frame.h: Remove comments.
2099 (dummy_frame_push): Add ptid in declaration.
2100 (dummy_frame_pop, dummy_frame_discard): Likewise.
2101
5b10184c
TT
21022014-06-26 Tom Tromey <tromey@redhat.com>
2103
2104 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2105 * command.h (error_no_arg): Update.
2106
06900326
TT
21072014-06-26 Tom Tromey <tromey@redhat.com>
2108
2109 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2110 (do_show_command): Make "arg" const.
2111 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2112
c2bcbb1d
TT
21132014-06-26 Tom Tromey <tromey@redhat.com>
2114
2115 * record-full.c (record_full_get_bookmark): Make "args" const.
2116 (record_full_goto_bookmark): Make "raw_bookmark" const.
2117 * record.c (record_goto): New function.
2118 (cmd_record_goto): Use it. Now static.
2119 * record.h (record_goto): Declare.
2120 (cmd_record_goto): Remove declaration.
2121 * target-delegates.c: Rebuild.
2122 * target.h (struct target_ops) <to_get_bookmark,
2123 to_goto_bookmark>: Make parameter const.
2124
9cbe5fff
TT
21252014-06-26 Tom Tromey <tromey@redhat.com>
2126
2127 * defs.h (generic_load): Update.
2128 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2129 * monitor.c (monitor_load): Make "args" const.
2130 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2131 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2132 const.
2133 (mips_load): Make "file" const.
2134 * remote-sim.c (gdbsim_load): Make "args" const.
2135 * remote.c (remote_load): Make "name" const.
2136 * symfile.c (generic_load): Make "args" const.
2137 * target-delegates.c: Rebuild.
2138 * target.c (target_load): Make "arg" const.
2139 (debug_to_load): Make "args" const.
2140 * target.h (struct target_ops) <to_load>: Make parameter const.
2141 (target_load): Update.
2142
34a68019
TT
21432014-06-26 Tom Tromey <tromey@redhat.com>
2144
2145 PR symtab/16902:
2146 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2147 (dwarf2_physname, read_partial_die)
2148 (guess_partial_die_structure_name, fixup_partial_die)
2149 (guess_full_die_structure_name, anonymous_struct_prefix)
2150 (dwarf2_name): Use per-BFD obstack.
2151
efc889c1
YQ
21522014-06-26 Yao Qi <yao@codesourcery.com>
2153
2154 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2155 dummyframe and this_id into inner block below.
2156
4395285e
YQ
21572014-06-26 Yao Qi <yao@codesourcery.com>
2158
2159 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2160 with "signal_pass[0]" in the initialization of signal_pass.
2161
aef92902
MM
21622014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2163
2164 * record-btrace.c (record_btrace_generating_corefile)
2165 (record_btrace_prepare_to_generate_core)
2166 (record_btrace_done_generating_core): New.
2167 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2168 (record_btrace_store_registers, record_btrace_prepare_to_store):
2169 Forward request when generating a core file.
2170 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2171 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2172 to_done_generating_core.
2173
5fff78c4
MM
21742014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2175
2176 * target.h (target_ops) <to_prepare_to_generate_core>
2177 <to_done_generating_core>: New.
2178 (target_prepare_to_generate_core, target_done_generating_core): New.
2179 * target.c (target_prepare_to_generate_core)
2180 (target_done_generating_core): New.
2181 * target-delegates.c: Regenerate.
2182 * gcore.c: (write_gcore_file): Rename to ...
2183 (write_gcore_file_1): ...this.
2184 (write_gcore_file): Call target_prepare_to_generate_core
2185 and target_done_generating_core.
2186
1d1f1ccb
MM
21872014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2188
2189 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2190 * gcore.c (write_gcore_file): Free memory returned from
2191 make_corefile_notes.
2192 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2193 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2194
3343ef86
YQ
21952014-06-24 Yao Qi <yao@codesourcery.com>
2196
2197 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2198 (arm_linux_init_abi): Set skip_trampoline_code with
2199 gdbarch_skip_trampoline_code instead of
2200 find_solib_trampoline_target.
2201
18d18ac8
YQ
22022014-06-24 Yao Qi <yao@codesourcery.com>
2203
2204 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2205 arm_skip_bx_reg returns non-zero.
2206
80d8d390
YQ
22072014-06-24 Yao Qi <yao@codesourcery.com>
2208
2209 * arm-tdep.c (arm_skip_bx_reg): New function.
2210 (arm_skip_stub): Call arm_skip_bx_reg.
2211
6a18a01c
DB
22122014-06-23 Don Breazeal <donb@codesourcery.com>
2213
2214 * MAINTAINERS: Add myself as write-after-approval maintainer.
2215
8e9db26e
PA
22162014-06-23 Pedro Alves <palves@redhat.com>
2217
2218 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2219 DR_CONTROL before setting DR0..DR3.
2220 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2221 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2222 bits of DR_CONTROL related to the debug register slot being
2223 disabled. If all slots are vacant, clear local slowdown as well,
2224 and assert DR_CONTROL is 0.
2225
70afc5b7
SC
22262014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2227
2228 * python/lib/gdb/command/xmethods.py
2229 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2230 current progspace only if the string "progspace" matches LOCUS_RE.
2231
840ed64d
JK
22322014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 Fix --with-system-readline with readline-6.3 patch 5.
2235 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2236 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2237 types.
2238
26f2dc30
TT
22392014-06-20 Tom Tromey <tromey@redhat.com>
2240
2241 * dwarf2read.c (dw2_get_real_path): Use correct type in
2242 OBSTACK_CALLOC.
2243 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2244
125f8a3d
GB
22452014-06-20 Gary Benson <gbenson@redhat.com>
2246
2247 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2248 * common/glibc_thread_db.h: Likewise.
2249 * common/i386-cpuid.h: Likewise.
2250 * common/i386-gcc-cpuid.h: Likewise.
2251 * common/linux-btrace.h: Likewise.
2252 * common/linux-osdata.h: Likewise.
2253 * common/linux-procfs.h: Likewise.
2254 * common/linux-ptrace.h: Likewise.
2255 * common/mips-linux-watch.h: Likewise.
2256 * common/linux-btrace.c: Moved to nat.
2257 * common/linux-osdata.c: Likewise.
2258 * common/linux-procfs.c: Likewise.
2259 * common/linux-ptrace.c: Likewise.
2260 * common/mips-linux-watch.c: Likewise.
2261 * nat/gdb_thread_db.h: Moved from common.
2262 * nat/glibc_thread_db.h: Likewise.
2263 * nat/i386-cpuid.h: Likewise.
2264 * nat/i386-gcc-cpuid.h: Likewise.
2265 * nat/linux-btrace.c: Likewise.
2266 * nat/linux-btrace.h: Likewise.
2267 * nat/linux-osdata.c: Likewise.
2268 * nat/linux-osdata.h: Likewise.
2269 * nat/linux-procfs.c: Likewise.
2270 * nat/linux-procfs.h: Likewise.
2271 * nat/linux-ptrace.c: Likewise.
2272 * nat/linux-ptrace.h: Likewise.
2273 * nat/mips-linux-watch.c: Likewise.
2274 * nat/mips-linux-watch.h: Likewise.
2275 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2276 (object file files): Reordered.
2277 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2278 of glibc_thread_db.h.
2279
42995dbd
GB
22802014-06-20 Gary Benson <gbenson@redhat.com>
2281
2282 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2283 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2284 (i386_dr_low): Likewise.
2285 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2286 (i386_dr_low_set_addr): Likewise.
2287 (i386_dr_low_get_addr): Likewise.
2288 (i386_dr_low_can_set_control): Likewise.
2289 (i386_dr_low_set_control): Likewise.
2290 (i386_dr_low_get_control): Likewise.
2291 (i386_dr_low_get_status): Likewise.
2292 (i386_get_debug_register_length): Likewise.
2293 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2294 (i386_dr_low): Likewise.
2295 * nat/i386-dregs.c (i386-low.h): Remove include.
2296 (i386-nat.h): Likewise.
2297 (nat/i386-dregs.h): New include.
2298 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2299 (i386_dr_low_set_addr): Likewise.
2300 (i386_dr_low_get_addr): Likewise.
2301 (i386_dr_low_can_set_control): Likewise.
2302 (i386_dr_low_set_control): Likewise.
2303 (i386_dr_low_get_control): Likewise.
2304 (i386_dr_low_get_status): Likewise.
2305 (i386_get_debug_register_length): Likewise.
2306 (debug_hw_points): Likewise.
2307
3ed9baed
IB
23082014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2309
2310 * Makefile.in (SFILES): Add d-exp.y.
2311 (YYFILES): Add d-exp.c.
2312 (YYOBJ): Add d-exp.o.
2313 (local-maintainer-clean): Delete d-exp.c.
2314 * d-exp.y: New file.
2315 * d-lang.h (d_parse): New declaration.
2316 (d_error): New declaration.
2317 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2318 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2319 PREC_ORDER operators.
2320 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2321
78c164b0
YQ
23222014-06-19 Yao Qi <yao@codesourcery.com>
2323
2324 * gdbthread.h (any_running): Remove the declaration.
2325 * thread.c (any_running): Remove.
2326
f6e29b6e
YQ
23272014-06-19 Yao Qi <yao@codesourcery.com>
2328
2329 * gdbthread.h (struct thread_info) <state>: Change its type to
2330 'enum thread_state'. Update comments.
2331
034f788c
PA
23322014-06-19 Pedro Alves <palves@redhat.com>
2333
2334 * gdbthread.h (ALL_THREADS): Delete.
2335 (ALL_NON_EXITED_THREADS): New macro.
2336 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2337 instead of ALL_THREADS.
2338 * infrun.c (find_thread_needs_step_over)
2339 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2340 instead of ALL_THREADS.
2341 * record-btrace.c (record_btrace_open)
2342 (record_btrace_stop_recording, record_btrace_close)
2343 (record_btrace_is_replaying, record_btrace_resume)
2344 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2345 * remote.c (append_pending_thread_resumptions): Likewise.
2346 * thread.c (thread_apply_all_command): Likewise.
2347
46e33252
GB
23482014-06-19 Gary Benson <gbenson@redhat.com>
2349
2350 * i386-nat.c (i386_stopped_by_watchpoint):
2351 Use i386_dr_stopped_by_watchpoint.
2352 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2353 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2354
3a8ee006
GB
23552014-06-19 Gary Benson <gbenson@redhat.com>
2356
2357 * nat/i386-dregs.c: New file.
2358 * Makefile.in (i386-dregs.o): New rule.
2359 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2360 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2361 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2362 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2363 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2364 * config/i386/go32.mh (NATDEPFILES): Likewise.
2365 * config/i386/linux.mh (NATDEPFILES): Likewise.
2366 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2367 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2368 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2369 * i386-nat.h (debug_hw_points): New declaration.
2370 * i386-nat.c (breakpoint.h): Remove include.
2371 (command.h): Likewise.
2372 (target.h): Likewise.
2373 (gdb_assert.h): Likewise.
2374 (debug_hw_points): Made nonstatic.
2375 (debug_printf): Now in i386-dregs.c.
2376 (TARGET_HAS_DR_LEN_8): Likewise.
2377 (DR_CONTROL_SHIFT): Likewise.
2378 (DR_CONTROL_SIZE): Likewise.
2379 (DR_RW_EXECUTE): Likewise.
2380 (DR_RW_WRITE): Likewise.
2381 (DR_RW_READ): Likewise.
2382 (DR_RW_IORW): Likewise.
2383 (DR_LEN_1): Likewise.
2384 (DR_LEN_2): Likewise.
2385 (DR_LEN_4): Likewise.
2386 (DR_LEN_8): Likewise.
2387 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2388 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2389 (DR_ENABLE_SIZE): Likewise.
2390 (DR_LOCAL_SLOWDOWN): Likewise.
2391 (DR_GLOBAL_SLOWDOWN): Likewise.
2392 (DR_CONTROL_RESERVED): Likewise.
2393 (I386_DR_CONTROL_MASK): Likewise.
2394 (I386_DR_VACANT): Likewise.
2395 (I386_DR_LOCAL_ENABLE): Likewise.
2396 (I386_DR_GLOBAL_ENABLE): Likewise.
2397 (I386_DR_DISABLE): Likewise.
2398 (I386_DR_SET_RW_LEN): Likewise.
2399 (I386_DR_GET_RW_LEN): Likewise.
2400 (I386_DR_WATCH_HIT): Likewise.
2401 (i386_wp_op_t): Likewise.
2402 (i386_show_dr): Likewise.
2403 (i386_length_and_rw_bits): Likewise.
2404 (i386_insert_aligned_watchpoint): Likewise.
2405 (i386_remove_aligned_watchpoint): Likewise.
2406 (i386_handle_nonaligned_watchpoint): Likewise.
2407 (i386_update_inferior_debug_regs): Likewise.
2408 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2409 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2410 (i386_region_ok_for_watchpoint):
2411 Use i386_dr_region_ok_for_watchpoint.
2412 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2413
322a8e06
GB
24142014-06-19 Gary Benson <gbenson@redhat.com>
2415
2416 * i386-nat.c (i386_insert_hw_breakpoint): Use
2417 i386_insert_watchpoint.
2418 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2419
8f26655c
GB
24202014-06-19 Gary Benson <gbenson@redhat.com>
2421
2422 * i386-nat.c (i386_dr_show): Renamed to
2423 i386_show_dr and made static. All uses updated.
2424 (i386_dr_length_and_rw_bits): Renamed to
2425 i386_length_and_rw_bits and made static.
2426 All uses updated.
2427 (i386_dr_insert_aligned_watchpoint): Renamed to
2428 i386_insert_aligned_watchpoint and made static.
2429 All uses updated.
2430 (i386_dr_remove_aligned_watchpoint): Renamed to
2431 i386_remove_aligned_watchpoint and made static.
2432 All uses updated.
2433 (i386_dr_update_inferior_debug_regs): Renamed to
2434 i386_update_inferior_debug_regs and made static.
2435 All uses updated.
2436 * nat/i386-dregs.h (i386_dr_show): Removed.
2437 (i386_dr_length_and_rw_bits): Likewise.
2438 (i386_dr_insert_aligned_watchpoint): Likewise.
2439 (i386_dr_remove_aligned_watchpoint): Likewise.
2440 (i386_dr_update_inferior_debug_regs): Likewise.
2441
992c7d70
GB
24422014-06-19 Gary Benson <gbenson@redhat.com>
2443
2444 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2445 * configure: Regenerate.
2446 * config.in: Likewise.
2447 * main.c (signal.h): New include.
2448 (setup_alternate_signal_stack): New function.
2449 (captured_main): Call the above.
2450 * cp-support.c (signal.h): New include.
2451 (catch_demangler_crashes): New flag.
2452 (SIGJMP_BUF): New define.
2453 (SIGSETJMP): Likewise.
2454 (SIGLONGJMP): Likewise.
2455 (gdb_demangle_jmp_buf): New static global.
2456 (gdb_demangle_attempt_core_dump): Likewise.
2457 (gdb_demangle_signal_handler): New function.
2458 (gdb_demangle): If catch_demangler_crashes is set, install the
2459 above signal handler before calling bfd_demangle, and restore
2460 the original signal handler afterwards. Display the offending
2461 symbol and call demangler_warning the first time a segmentation
2462 fault is caught.
2463 (_initialize_cp_support): New maint set/show command.
2464
eae7090b
GB
24652014-06-19 Gary Benson <gbenson@redhat.com>
2466
2467 * utils.h (resource_limit_kind): New enum.
2468 (can_dump_core): New declaration.
2469 (warn_cant_dump_core): Likewise.
2470 (dump_core): Likewise.
2471 * utils.c (dump_core): Made nonstatic. Added new
2472 parameter "limit_kind".
2473 (can_dump_core): Made nonstatic. Moved printing code to...
2474 (warn_cant_dump_core): New function.
2475 (can_dump_core_warn): Likewise.
2476 (internal_vproblem): Replace calls to can_dump_core with
2477 calls to can_dump_core_warn. Supply new argument to each.
2478
57fcfb1b
GB
24792014-06-19 Gary Benson <gbenson@redhat.com>
2480
2481 * utils.h (demangler_vwarning): New declaration.
2482 (demangler_warning): Likewise.
2483 * utils.c (struct internal_problem)
2484 <user_settable_should_quit>: New field.
2485 <user_settable_should_dump_core>: Likewise
2486 (internal_error_problem): Add values for above new fields.
2487 (internal_warning_problem): Likewise.
2488 (demangler_warning_problem): New static global.
2489 (demangler_vwarning): New function.
2490 (demangler_warning): Likewise.
2491 (add_internal_problem_command): Selectively add commands.
2492 (_initialize_utils): New internal problem command.
2493 * maint.c (maintenance_demangler_warning): New function.
2494 (_initialize_maint_cmds): New command.
2495
17a40b44
TT
24962014-06-18 Tom Tromey <tromey@redhat.com>
2497
2498 * f-valprint.c (info_common_command_for_block): Update.
2499 * symtab.h (struct general_symbol_info) <common_block>: Now
2500 const.
2501
346d1dfe
TT
25022014-06-18 Tom Tromey <tromey@redhat.com>
2503
2504 * symtab.h (struct symtab) <blockvector>: Now const.
2505 * ada-lang.c (ada_add_global_exceptions): Update.
2506 * buildsym.c (augment_type_symtab): Update.
2507 * dwarf2read.c (dw2_lookup_symbol): Update.
2508 * jit.c (finalize_symtab): Update.
2509 * jv-lang.c (add_class_symtab_symbol): Update.
2510 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2511 Update.
2512 * objfiles.c (objfile_relocate1): Update.
2513 * psymtab.c (lookup_symbol_aux_psymtabs)
2514 (maintenance_check_psymtabs): Update.
2515 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2516 Update.
2517 * spu-tdep.c (spu_catch_start): Update.
2518 * symmisc.c (dump_symtab_1): Update.
2519 * symtab.c (lookup_global_symbol_from_objfile)
2520 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2521 (basic_lookup_transparent_type_quick)
2522 (basic_lookup_transparent_type, find_pc_sect_symtab)
2523 (find_pc_sect_line, search_symbols): Update.
2524 * block.c (find_block_in_blockvector): Make "bl" const.
2525 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2526 const.
2527 (blockvector_contains_pc): Make "bv" const.
2528 (block_for_pc_sect): Update.
2529 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2530 (blockvector_contains_pc): Update.
2531 * breakpoint.c (resolve_sal_pc): Update.
2532 * inline-frame.c (block_starting_point_at): Update.
2533
1834676b
TT
25342014-06-18 Tom Tromey <tromey@redhat.com>
2535
2536 * completer.c (complete_line): Make "line_buffer" const.
2537 * completer.h (complete_line): Update.
2538
ac1a991b
TT
25392014-06-18 Tom Tromey <tromey@redhat.com>
2540
2541 * symtab.c (add_macro_name): Remove unneeded cast.
2542
5bc98e52
TT
25432014-06-18 Tom Tromey <tromey@redhat.com>
2544
2545 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2546 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2547
8236def8
TT
25482014-06-18 Tom Tromey <tromey@redhat.com>
2549
2550 * probe.c (info_probes_for_ops): Make "arg" const.
2551 * probe.h (info_probes_for_ops): Update.
2552
3977b71f
TT
25532014-06-18 Tom Tromey <tromey@redhat.com>
2554
2555 * varobj.c (varobj_create): Update.
2556 * valops.c (value_of_this): Update.
2557 * tracepoint.c (add_local_symbols, scope_info): Update.
2558 * symtab.h (struct general_symbol_info) <block>: Now const.
2559 * symtab.c (skip_prologue_sal)
2560 (default_make_symbol_completion_list_break_on)
2561 (skip_prologue_using_sal): Update.
2562 * stack.h (iterate_over_block_locals)
2563 (iterate_over_block_local_vars): Update.
2564 * stack.c (print_frame_args): Update.
2565 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2566 parameter const.
2567 (get_selected_block): Make return type const.
2568 * python/py-frame.c (frapy_block): Update.
2569 * python/py-block.c (gdbpy_block_for_pc): Update.
2570 * p-exp.y (%union) <bval>: Now const.
2571 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2572 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2573 * m2-exp.y (%union) <bval>: Now const.
2574 * linespec.c (get_current_search_block): Make return type const.
2575 (create_sals_line_offset, find_label_symbols): Update.
2576 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2577 Update.
2578 (block_starting_point_at): Make "block" const.
2579 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2580 (check_exception_resume): Update.
2581 * guile/scm-frame.c (gdbscm_frame_block): Update.
2582 * guile/scm-block.c (gdbscm_lookup_block): Update.
2583 * frame.h (get_frame_block): Update.
2584 (get_selected_block): Make return type const.
2585 * frame.c (frame_id_inner): Update.
2586 * f-valprint.c (info_common_command_for_block)
2587 (info_common_command): Update.
2588 * dwarf2loc.c (dwarf2_find_location_expression)
2589 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2590 (locexpr_describe_location_piece): Update.
2591 * c-exp.y (%union) <bval>: Now const.
2592 * breakpoint.c (resolve_sal_pc): Update.
2593 * blockframe.c (get_frame_block):Make return type const.
2594 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2595 (block_innermost_frame): Update.
2596 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2597 (block_for_pc, block_for_pc_sect): Update.
2598 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2599 'pblock' const.
2600 (block_for_pc_sect, block_for_pc): Make return type const.
2601 * ax-gdb.c (gen_expr): Update.
2602 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2603 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2604 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2605 (ada_read_var_value): Update.
2606 * ada-exp.y (struct name_info) <block>: Now const.
2607 (%union): Likewise.
2608 (block_lookup): Constify.
2609
b9228891
GB
26102014-06-18 Gary Benson <gbenson@redhat.com>
2611
2612 * nat/i386-dregs.h: New file.
2613 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2614 * i386-nat.h (i386-dregs.h): New include.
2615 (DR_FIRSTADDR): Now in i386-dregs.h.
2616 (DR_LASTADDR): Likewise.
2617 (DR_NADDR): Likewise.
2618 (DR_STATUS): Likewise.
2619 (DR_CONTROL): Likewise.
2620 (i386_debug_reg_state): Likewise.
2621 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2622
a1aa2221
LM
26232014-06-18 Don Breazeal <donb@codesourcery.com>
2624
2625 * breakpoint.c (set_longjmp_breakpoint): Call
2626 momentary_breakpoint_from_master with additional argument.
2627 (set_longjmp_breakpoint_for_call_dummy): Call
2628 momentary_breakpoint_from_master with additional argument.
2629 (set_std_terminate_breakpoint): Call
2630 momentary_breakpoint_from_master with additional argument.
2631 (momentary_breakpoint_from_master): Add argument to function
2632 definition and use it to initialize structure member flag.
74228e77 2633 (clone_momentary_breakpoint): Call
a1aa2221
LM
2634 momentary_breakpoint_from_master with additional argument.
2635 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2636 member flags set in momentary_breakpoint_from_master.
2637
4be83cc2
GB
26382014-06-18 Gary Benson <gbenson@redhat.com>
2639
2640 * i386-nat.c (i386_show_dr): Renamed to
2641 i386_dr_show and made nonstatic. All uses updated.
2642 (i386_length_and_rw_bits): Renamed to
2643 i386_dr_length_and_rw_bits and made nonstatic.
2644 All uses updated.
2645 (i386_insert_aligned_watchpoint): Renamed to
2646 i386_dr_insert_aligned_watchpoint and made nonstatic.
2647 All uses updated.
2648 (i386_remove_aligned_watchpoint): Renamed to
2649 i386_dr_remove_aligned_watchpoint and made nonstatic.
2650 All uses updated.
2651 (i386_update_inferior_debug_regs): Renamed to
2652 i386_dr_update_inferior_debug_regs and made nonstatic.
2653 All uses updated.
2654
131aa0d4
GB
26552014-06-18 Gary Benson <gbenson@redhat.com>
2656
2657 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2658 (i386_dr_low_can_set_control): Likewise.
2659 (i386_dr_low_set_addr): Likewise.
2660 (i386_dr_low_set_control): Likewise.
2661 (i386_dr_low_get_addr): Likewise.
2662 (i386_dr_low_get_status): Likewise.
2663 (i386_dr_low_get_control): Likewise.
2664 (i386_insert_aligned_watchpoint): Use new macros.
2665 (i386_update_inferior_debug_regs): Likewise.
2666 (i386_stopped_data_address): Likewise.
2667
d9305f7f
GB
26682014-06-18 Gary Benson <gbenson@redhat.com>
2669
2670 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2671 New parameter. All uses updated.
2672
ea008da4
GB
26732014-06-18 Gary Benson <gbenson@redhat.com>
2674
2675 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2676 All uses updated.
2677
1b6d4134
GB
26782014-06-18 Gary Benson <gbenson@redhat.com>
2679
2680 * i386-nat.c (debug_printf): New macro.
2681 (i386_get_debug_register_length): Likewise.
2682 (TARGET_HAS_DR_LEN_8): Use above macro.
2683 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2684 and printf_unfiltered. Use phex to format values.
2685
9b4550ef
GB
26862014-06-18 Gary Benson <gbenson@redhat.com>
2687
2688 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2689 Make const.
2690
6e62758f
GB
26912014-06-18 Gary Benson <gbenson@redhat.com>
2692
2693 * i386-nat.c: Comment changes.
2694
51c79e94
GB
26952014-06-18 Gary Benson <gbenson@redhat.com>
2696
2697 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2698
3e11889a
GB
26992014-06-18 Gary Benson <gbenson@redhat.com>
2700
2701 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2702 (i386_insert_aligned_watchpoint): Likewise.
2703 (i386_remove_aligned_watchpoint): Likewise.
2704 (i386_handle_nonaligned_watchpoint): Likewise.
2705
fc6e2f03
GB
27062014-06-18 Gary Benson <gbenson@redhat.com>
2707
2708 * i386-nat.c: Whitespace changes.
2709
2afe7d50
SB
27102014-06-17 Samuel Bronson <naesten@gmail.com>
2711
2712 * MAINTAINERS: Update Roland McGrath's email address.
2713 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2714 Red Hat a while ago, and giving me a current address.
2afe7d50 2715
3bca49ee
TT
27162014-06-17 Tom Tromey <tromey@redhat.com>
2717
2718 * utils.h (savestring): Remove declaration.
2719
6e366df1
TT
27202014-06-17 Tom Tromey <tromey@redhat.com>
2721
2722 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2723
6be47f0c
KS
27242014-06-16 Keith Seitz <keiths@redhat.com>
2725
2726 PR mi/15863
2727 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2728 to update the varobj if inferior_ptid is null_ptid.
2729
7bc112c1
TT
27302014-06-16 Tom Tromey <tromey@redhat.com>
2731
2732 * target.h (struct target_ops) <to_info_proc>: Make parameter
2733 const.
2734 (target_info_proc): Update.
2735 * target.c (target_info_proc): Make "args" const.
2736 * procfs.c (procfs_info_proc): Update.
2737 * linux-tdep.c (linux_info_proc): Update.
2738 (linux_core_info_proc_mappings): Make "args" const.
2739 (linux_core_info_proc): Update.
2740 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2741 * gdbarch.c: Rebuild.
2742 * gdbarch.h: Rebuild.
2743 * corelow.c (core_info_proc): Update.
2744
fee354ee
TT
27452014-06-16 Tom Tromey <tromey@redhat.com>
2746
2747 * target.h (struct target_ops) <to_disconnect>: Make parameter
2748 const.
2749 (target_disconnect): Update.
2750 * target.c (target_disconnect): Make "args" const.
2751 * target-delegates.c: Rebuild.
2752 * remote.c (remote_disconnect): Update.
2753 * record.h (record_disconnect): Update.
2754 * record.c (record_disconnect): Update.
2755 * inf-child.c (inf_child_disconnect): Update.
2756
a30bf1f1
TT
27572014-06-16 Tom Tromey <tromey@redhat.com>
2758
2759 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2760 * target.c (debug_to_rcmd, default_rcmd): Update.
2761 * target-delegates.c: Rebuild.
2762 * remote.c (remote_rcmd): Update.
2763 * monitor.c (monitor_rcmd): Update.
2764
d03de421
PA
27652014-06-16 Pedro Alves <palves@redhat.com>
2766
2767 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2768 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2769 have OBJF_SHARED set.
2770 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2771 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2772 instead of OBJF_USERLOADED.
2773 * objfiles.h (OBJF_SHARED): Update comment.
2774 (userloaded_objfile_contains_address_p): Rename to ...
2775 (shared_objfile_contains_address_p): ... this, and update
2776 comments.
2777 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2778 new objfile.
2779 (remove_symbol_file_command): Skip objfiles that don't have
2780 OBJF_SHARED set.
2781
99f4262f
TT
27822014-06-16 Tom Tromey <tromey@redhat.com>
2783
2784 * minsyms.h (prim_record_minimal_symbol)
2785 (prim_record_minimal_symbol_and_info): Update comments.
2786
97d66cc6
EZ
27872014-06-14 Eli Zaretskii <eliz@gnu.org>
2788
2789 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2790 or --without-guile, according to how GDB was built.
2791
635c7e8a
TT
27922014-06-13 Tom Tromey <tromey@redhat.com>
2793
2794 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2795 to help_list.
2796 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2797 to help_list.
2798 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2799 help_list.
2800 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2801 help_list.Pass all_commands, not -1, to help_list.
2802 * cli/cli-dump.c (dump_command, append_command)
2803 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2804 (binary_dump_command, binary_append_command): Pass all_commands,
2805 not -1, to help_list.
2806 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2807 -1, to help_list.
2808 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2809 -1, to help_list.
2810 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2811 help_list.
2812 * top.c (set_history): Pass all_commands, not -1, to help_list.
2813 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2814 all_commands, not -1, to help_list.
2815 * symfile.c (overlay_command): Pass all_commands, not -1, to
2816 help_list.
2817 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2818 help_list.
2819 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2820 help_list.
2821 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2822 -1, to help_list.
2823 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2824 not -1, to help_list.
2825 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2826 not -1, to help_list.
2827 * maint.c (maintenance_command, maintenance_info_command)
2828 (maintenance_print_command, maintenance_set_cmd): Pass
2829 all_commands, not -1, to help_list.
2830 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2831 help_list.
2832 * language.c (set_check): Pass all_commands, not -1, to help_list.
2833 * infcmd.c (unset_command): Pass all_commands, not -1, to
2834 help_list.
2835 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2836 help_list.
2837 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2838 help_list.
2839 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2840 help_list.
2841 * breakpoint.c (save_command): Pass all_commands, not -1, to
2842 help_list.
2843 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2844 all_commands, not -1, to help_list.
2845
b94ade42
PL
28462014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2847
2848 * regcache.c (struct register_to_invalidate): New structure.
2849 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2850 functions.
2851 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2852
31f628ae
YQ
28532014-06-12 Yao Qi <yao@codesourcery.com>
2854
2855 * varobj.c (varobj_get_num_children): Call
2856 varobj_is_dynamic_p.
2857 (varobj_list_children): Likewise.
2858 (varobj_update): Likewise. Update comments.
2859
cde5ef40
YQ
28602014-06-12 Yao Qi <yao@codesourcery.com>
2861
2862 * varobj.c (varobj_pretty_printed_p): Rename to ...
2863 (varobj_is_dynamic_p): ... this. New function.
2864 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2865 (varobj_is_dynamic_p): Declare.
2866 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2867 (mi_print_value_p, varobj_update_one): Likewise.
2868
576ea091
YQ
28692014-06-12 Pedro Alves <pedro@codesourcery.com>
2870 Yao Qi <yao@codesourcery.com>
2871
2872 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2873 (varobj_get_iterator): Wrap up code for pretty-printer by
2874 "#if HAVE_PYTHON" and "#endif".
2875 (update_dynamic_varobj_children): Likewise.
2876
827f100c
YQ
28772014-06-12 Pedro Alves <pedro@codesourcery.com>
2878 Yao Qi <yao@codesourcery.com>
2879
2880 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2881 gdb_python_initialized is false. Move some code from varobj.c.
2882 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2883 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2884 (struct varobj_item): Moved to varobj-iter.h".
2885 (varobj_clear_saved_item): New function.
2886 (update_dynamic_varobj_children): Move python-related code to
2887 py-varobj.c.
2888 (free_variable): Call varobj_clear_saved_item and
2889 varobj_iter_delete.
2890
e5250216
YQ
28912014-06-12 Pedro Alves <pedro@codesourcery.com>
2892 Yao Qi <yao@codesourcery.com>
2893
2894 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2895 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2896 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2897 (py-varobj.o): New rule.
2898 * python/py-varobj.c: New file.
2899 * python/python-internal.h (py_varobj_get_iterator): Declare.
2900 * varobj-iter.h: New file.
2901 * varobj.c: Include "varobj-iter.h"
2902 (struct varobj) <child_iter>: Change its type from "PyObject *"
2903 to "struct varobj_iter *".
2904 <saved_item>: Likewise.
2905 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2906 [HAVE_PYTHON] (varobj_get_iterator): New function.
2907 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2908 python-specific code to python/py-varobj.c.
2909 (install_visualizer): Call varobj_iter_delete instead of
2910 Py_XDECREF.
2911 * varobj.h (varobj_ensure_python_env): Declare.
2912
5a2e0d6e
YQ
29132014-06-12 Yao Qi <yao@codesourcery.com>
2914
2915 * varobj.c (struct varobj_item): New structure.
2916 (create_child_with_value): Update declaration.
2917 (varobj_add_child): Replace arguments 'name' and 'value' with
2918 'item'. All callers updated.
2919 (install_dynamic_child): Likewise.
2920 (update_dynamic_varobj_children): Likewise.
2921 (varobj_add_child): Likewise.
2922 (create_child_with_value): Likewise.
2923
919b9a93
JB
29242014-06-11 Joel Brobecker <brobecker@adacore.com>
2925
2926 * NEWS: Create a new section for the next release branch.
2927 Rename the section of the current branch, now that it has
2928 been cut.
2929
71a55bdf
JB
29302014-06-11 Joel Brobecker <brobecker@adacore.com>
2931
2932 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2933 * version.in: Bump version to 7.8.50.DATE-cvs.
2934
364fe1f7
PA
29352014-06-11 Pedro Alves <palves@redhat.com>
2936
2937 PR remote/17028
2938 * ser-mingw.c (net_windows_socket_check_pending): New function.
2939 (net_windows_select_thread): Ignore spurious wakeups. Use
2940 net_windows_socket_check_pending.
2941 (net_windows_wait_handle): Check for pending events with
2942 ioctlsocket, through net_windows_socket_check_pending, instead of
2943 checking the socket's event.
2944
5a6c7709
SC
29452014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2946
2947 * python/python-internal.h (gdb_PyObject_GetAttrString)
2948 (gdb_PyObject_HasAttrString): New inline function definitions.
2949 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2950 char * of the second argument to PyObject_GetAttrString.
74228e77 2951
0e58ee40
JB
29522014-06-10 Joel Brobecker <brobecker@adacore.com>
2953
2954 * serial.c (serial_write): Fix index of character to be printed
2955 in call to serial_logchar when serial debug traces are enabled.
2956
d190df30
JB
29572014-06-10 Joel Brobecker <brobecker@adacore.com>
2958
2959 * gdbtypes (resolve_dynamic_range): Add function description.
2960
b4b01d36
PA
29612014-06-09 Pedro Alves <palves@redhat.com>
2962
2963 * linux-nat.c (linux_child_follow_fork): Initialize status with
2964 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2965 inner block. Only pass the signal to PTRACE_DETACH if in pass
2966 state.
2967
3657956b
GB
29682014-06-09 Gary Benson <gbenson@redhat.com>
2969
2970 * common/signals.c (gdb_signal_from_host): Reorder to separate
2971 the always-available ANSI-standard signals from the signals that
2972 require checking.
2973 (do_gdb_signal_to_host): Likewise.
2974 * proc-events.c (signal_table): Likewise.
2975
c077881a
HZ
29762014-06-08 Hui Zhu <hui@codesourcery.com>
2977
2978 * common/linux-ptrace.c (linux_disable_event_reporting): New
2979 function.
2980 * common/linux-ptrace.h (linux_disable_event_reporting): New
2981 declaration.
2982 * linux-nat.c (linux_child_follow_fork): Do a single step before
2983 detach.
2984
4186eb54
KS
29852014-06-07 Keith Seitz <keiths@redhat.com>
2986
2987 Revert:
2988 PR c++/16253
2989 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2990 from symbol_matches_domain in symtab.c. All local callers
2991 of symbol_matches_domain updated.
2992 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2993 search STRUCT_DOMAIN.
2994 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2995 independently. standard_lookup will do that automatically.
2996 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2997 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2998 (cp_lookup_symbol_in_namespace): Likewise.
2999 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3000 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3001 may return a STRUCT_DOMAIN match.
3002 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3003 * cp-support.c: Include language.h.
3004 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3005 VAR_DOMAIN.
3006 * psymtab.c (match_partial_symbol): Compare the requested
3007 domain with the symbol's domain directly.
3008 (lookup_partial_symbol): Likewise.
3009 * symtab.c (lookup_symbol_in_language): Explain when/why
3010 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3011 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3012 appropriate languages.
3013 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3014 and moved to ada-lang.c
3015 (lookup_block_symbol): Explain that this function only returns
3016 symbol matching the requested DOMAIN.
3017 Compare the requested domain with the symbol's domain directly.
3018 (iterate_over_symbols): Compare the requested domain with the
3019 symbol's domain directly.
3020 * symtab.h (symbol_matches_domain): Remove.
3021
25326a28 30222014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3023
3024 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3025 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3026 (gdbscm_guile_version_is_at_least): Declare.
3027 (gdbscm_scm_string_to_int): Declare.
3028 * guile/guile.c (gdbscm_guile_major_version): New global.
3029 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3030 (guile_datadir): New static global.
3031 (gdbscm_guile_data_directory): New function.
3032 (initialize_scheme_side): Update.
3033 (misc_guile_functions): Add guile-data-directory.
3034 (initialize_gdb_module): Fetch guile version number.
3035 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3036 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3037 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3038 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3039 comments.
3040 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3041 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3042 * guile/scm-value.c (gdbscm_value_to_string): Only call
3043 scm_port_conversion_strategy if Guile version >= 2.0.6.
3044
0a770bb2 30452014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3046
3047 * main.c (print_gdb_help): Add -q and --silent.
3048
73ba372c
GB
30492014-06-06 Gary Benson <gbenson@redhat.com>
3050
3051 * common/signals.c: Remove preprocessor conditionals for
3052 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3053 SIGSEGV and SIGTERM.
3054 * proc-events.c: Likewise.
3055
c33b2f12
MM
30562014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3057
3058 * symfile.c (symfile_free_objfile): Remove restriction to
3059 OBJF_USERLOADED.
3060 * symfile-mem.c (symbol_file_add_from_memory): Call
3061 add_target_sections_of_objfile.
3062
fb934770
LC
30632014-06-05 Ludovic Courtès <ludo@gnu.org>
3064
3065 * guile/scm-value.c (gdbscm_history_append_x): Use
3066 'vlscm_get_value_smob_arg_unsafe' instead of
3067 'vlscm_scm_to_value'.
3068
6ef284bd
SM
30692014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3070
3071 PR mi/15806
3072 * utils.c (printchar): Don't escape at all if quoter is NUL.
3073 Update function documentation to clarify effect of parameter
3074 QUOTER.
3075 * remote.c (escape_buffer): Pass '\\' as the quoter to
3076 fputstrn_unfiltered.
3077 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3078 generate the output.
3079 (mi_solib_unloaded): Same.
3080
270c9937
JB
30812014-06-05 Joel Brobecker <brobecker@adacore.com>
3082
3083 * development.sh: Delete.
3084 * Makefile.in (config.status): Adjust dependency on development.sh.
3085 * configure.ac: Adjust development.sh source call.
3086 * configure: Regenerate.
3087
16f691fb
DE
30882014-06-04 Doug Evans <xdje42@gmail.com>
3089
3090 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3091 is_scheme_bkpt, spec.
3092 (bpscm_make_breakpoint_smob): Initialize new members.
3093 (gdbscm_create_breakpoint_x): Split into two ...
3094 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3095 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3096 (scheme_function breakpoint_functions): Update.
3097 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3098 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3099 register-breakpoint!.
3100
ef7cab6b
JB
31012014-06-04 Joel Brobecker <brobecker@adacorer.com>
3102
3103 PR server/17023
3104 * mem-break.c (z_type_supported): Return zero if
3105 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3106
012370f6
TT
31072014-06-04 Tom Tromey <tromey@redhat.com>
3108
3109 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3110 value_from_contents_and_address_unresolved.
3111 (ada_template_to_fixed_record_type_1): Likewise.
3112 (ada_which_variant_applies): Likewise.
3113 * value.h (value_from_contents_and_address_unresolved): Declare.
3114 * value.c (value_from_contents_and_address_unresolved): New
3115 function.
3116 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3117 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3118 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3119
92e2a17f
TT
31202014-06-04 Tom Tromey <tromey@redhat.com>
3121
3122 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3123
c0939df1
TT
31242014-06-04 Tom Tromey <tromey@redhat.com>
3125
3126 * procfs.c (procfs_attach): Make "args" const.
3127 * windows-nat.c (windows_attach): Make "args" const.
3128 * nto-procfs.c (procfs_attach): Make "args" const.
3129 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3130 * go32-nat.c (go32_attach): Make "args" const.
3131 * gnu-nat.c (gnu_attach): Make "args" const.
3132 * darwin-nat.c (darwin_attach): Make "args" const.
3133 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3134 * linux-nat.c (linux_nat_attach): Make "args" const.
3135 * remote.c (extended_remote_attach_1, extended_remote_attach):
3136 Make "args" const.
3137 * target.h (struct target_ops) <to_attach>: Make "args" const.
3138 (find_default_attach): Likewise.
3139 * utils.c (parse_pid_to_attach): Make "args" const.
3140 * utils.h (parse_pid_to_attach): Update.
3141
8eaff7cd
TT
31422014-06-04 Tom Tromey <tromey@redhat.com>
3143
3144 * target-delegates.c: Rebuild.
3145 * target.c (default_thread_address_space): New function.
3146 (target_thread_address_space): Simplify.
3147 * target.h (struct target_ops) <to_thread_address_space>: Add
3148 TARGET_DEFAULT_FUNC.
3149
1913f160
DE
31502014-06-04 Doug Evans <xdje42@gmail.com>
3151
3152 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3153
70ad5bff
MM
31542014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3155
3156 * record-btrace.c: Include event-loop.h and inf-loop.h.
3157 (record_btrace_resume_exec_dir)
3158 (record_btrace_async_inferior_event_handler)
3159 (record_btrace_handle_async_inferior_event): New.
3160 (record_btrace_open): Create async event handler.
3161 (record_btrace_close): Delete async event handler.
3162 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3163 Mark async event handler.
3164 (record_btrace_execution_direction): New.
3165 (init_record_btrace_ops): Initialize to_execution_direction.
3166
b6210538
DE
31672014-06-03 Doug Evans <xdje42@gmail.com>
3168
3169 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3170 (gdbscm_make_parameter): Ditto.
3171
a5b1fd27
DE
31722014-06-03 Doug Evans <dje@google.com>
3173
3174 * exec.c (exec_close_1): Call clear_section_table instead of
3175 resize_section_table.
3176 (clear_section_table): New function.
3177 (resize_section_table): Make static. Rename arg num_added to
3178 adjustment.
3179 * exec.h (clear_section_table): Declare.
3180 (resize_section_table): Delete.
3181 * progspace.c (release_program_space): Call clear_section_table
3182 instead of resize_section_table.
3183
0c6e92a5
SC
31842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3185
3186 * NEWS (Python Scripting): Add entry about the new xmethods
3187 feature.
3188
883964a7
SC
31892014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3190
3191 * python/py-xmethods.c: New file.
3192 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3193 (objfpy_dealloc): XDECREF on the new xmethods field.
3194 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3195 field.
3196 (objfpy_get_xmethods): New function.
3197 (objfile_getset): New entry 'xmethods'.
3198 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3199 (pspy_dealloc): XDECREF on the new xmethods field.
3200 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3201 field.
3202 (pspy_get_xmethods): New function.
3203 (pspace_getset): New entry 'xmethods'.
3204 * python/python-internal.h: Add declarations for new functions.
3205 * python/python.c (_initialize_python): Invoke
3206 gdbpy_initialize_xmethods.
3207 * python/lib/gdb/__init__.py (xmethods): New
3208 attribute.
3209 * python/lib/gdb/xmethod.py: New file.
3210 * python/lib/gdb/command/xmethods.py: New file.
3211
58992dc5
SC
32122014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3213
3214 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3215 best match method returned by find_overload_match is an xmethod.
3216 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3217 the best matching operator returned by find_overload_match is an
3218 xmethod.
3219 * valops.c: #include "extension.h".
3220 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3221 Return void. The list of matching source methods is returned in
3222 "fn_list" and a vector of matching debug method workers is
3223 returned in "xm_worker_vec". Update all callers.
3224 (value_find_oload_method_list): Likewise.
3225 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3226 non-NULL, then the index of the best matching method in this
3227 vector is returned. Update all callers.
3228 (find_overload_match): Include xmethods while performing overload
3229 resolution.
3230
e81e7f5e
SC
32312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3232
3233 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3234 * extension-priv.h (struct extension_language_ops): Add the
3235 xmethod interface.
3236 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3237 get_matching_xmethod_workers, get_xmethod_argtypes,
3238 invoke_xmethod, free_xmethod_worker,
3239 free_xmethod_worker_vec): New functions.
3240 * extension.h: #include "common/vec.h".
3241 New function declarations.
3242 (struct xmethod_worker): New struct.
3243 (VEC (xmethod_worker_ptr)): New vector type.
3244 (xmethod_worker_ptr): New typedef.
3245 (xmethod_worker_vec): Likewise.
3246 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3247 builtin_type.
3248 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3249 (struct builtin_type): New field "xmethod".
3250 * valarith.c (value_ptradd): Assert that the value argument is not
3251 lval_xcallable.
3252 * valops.c (value_must_coerce_to_target): Return 0 for
3253 lval_xcallable values.
3254 * value.c (struct value): New field XM_WORKER in the field
3255 LOCATION.
3256 (value_address, value_raw_address): Return 0 for lval_xcallable
3257 values.
3258 (set_value_address): Assert that the value is not an
3259 lval_xcallable.
3260 (value_free): Free the associated xmethod worker when freeing
3261 lval_xcallable values.
3262 (set_value_component_location): Assert that the WHOLE value is not
3263 lval_xcallable.
3264 (value_of_xmethod, call_xmethod): New functions.
3265 * value.h: Declare "struct xmethod_worker".
3266 Declare new functions value_of_xmethod, call_xmethod.
3267
ef370185
JB
32682014-06-03 Joel Brobecker <brobecker@adacore.com>
3269 Pedro Alves <palves@redhat.com>
3270
3271 PR breakpoints/17000
3272 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3273 New function, extracted from software_breakpoint_inserted_here_p.
3274 (software_breakpoint_inserted_here_p): Replace factored out code
3275 by call to find_non_raw_software_breakpoint_inserted_here.
3276 (bp_target_info_copy_insertion_state): New function.
3277 (bkpt_insert_location): Handle the case of a single-step
3278 breakpoint already inserted at the same address.
3279 (bkpt_remove_location): Handle the case of a single-step
3280 breakpoint still inserted at the same address.
3281 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3282 breakpoint already inserted at the same address.
3283 (deprecated_remove_raw_breakpoint): Handle the case of a
3284 non-raw breakpoint still inserted at the same address.
3285 (find_single_step_breakpoint): New function, extracted from
3286 single_step_breakpoint_inserted_here_p.
3287 (find_single_step_breakpoint): New function,
3288 factored out from single_step_breakpoint_inserted_here_p.
3289 (single_step_breakpoint_inserted_here_p): Reimplement.
3290
1e2ccb61
BM
32912014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3292
3293 Pushed by Joel Brobecker <brobecker@adacore.com>
3294 * source.c (show_substitute_path_command): Fix display of matching
3295 substitution rules.
3296
d3448d85
GB
32972014-06-03 Gary Benson <gbenson@redhat.com>
3298
3299 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3300
06eb1586
DE
33012014-06-02 Doug Evans <xdje42@gmail.com>
3302
3303 Add parameter support for Guile.
3304 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3305 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3306 (scm-param.o): New rule.
3307 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3308 (gdbscm_misc_error): Declare.
3309 (gdbscm_canonicalize_command_name): Declare.
3310 (gdbscm_scm_to_host_string): Declare.
3311 (gdbscm_scm_from_host_string): Declare.
3312 (gdbscm_initialize_parameters): Declare.
3313 * guile/guile.c (initialize_gdb_module): Call
3314 gdbscm_initialize_parameters.
3315 * guile/lib/gdb.scm: Export parameter symbols.
3316 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3317 cmdscm_canonicalize_name and made public. All callers updated.
3318 * guile/scm-exception.c (gdbscm_misc_error): New function.
3319 * guile/scm-param.c: New file.
3320 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3321 (gdbscm_scm_to_host_string): New function.
3322 (gdbscm_scm_from_host_string): New function.
3323 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3324
e698b8c4
DE
33252014-06-02 Doug Evans <xdje42@gmail.com>
3326
3327 Add command support for Guile.
3328 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3329 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3330 (scm-cmd.o): New rule.
3331 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3332 (gdbscm_user_error_p): Declare.
3333 (gdbscm_parse_command_name): Declare.
3334 (gdbscm_valid_command_class_p): Declare.
3335 (gdbscm_initialize_commands): Declare.
3336 * guile/guile.c (initialize_gdb_module): Call
3337 gdbscm_initialize_commands.
3338 * guile/lib/gdb.scm: Export command symbols.
3339 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3340 (throw-user-error): New function.
3341 * guile/scm-cmd.c: New file.
3342 * guile/scm-exception.c (user_error_symbol): New static global.
3343 (gdbscm_user_error_p): New function.
3344 (gdbscm_initialize_exceptions): Set user_error_symbol.
3345 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3346
fb1f94b0
PM
33472014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3348
3349 * top.c (command_loop): Handle comments here...
3350 (command_line_input): ... not here.
3351
ded03782
DE
33522014-06-02 Doug Evans <xdje42@gmail.com>
3353
3354 Add progspace support for Guile.
3355 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3356 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3357 (scm-progspace.o): New rule.
3358 * guile/guile-internal.h (pspace_smob): New typedef.
3359 (psscm_pspace_smob_pretty_printers): Declare.
3360 (psscm_pspace_smob_from_pspace): Declare.
3361 (psscm_scm_from_pspace): Declare.
3362 * guile/guile.c (initialize_gdb_module): Call
3363 gdbscm_initialize_pspaces.
3364 * guile/lib/gdb.scm: Export progspace symbols.
3365 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3366 support.
3367 (append-pretty-printer!): Ditto.
3368 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3369 Implement.
3370 * guile/scm-progspace.c: New file.
3371
397998fc
AM
33722014-06-03 Alan Modra <amodra@gmail.com>
3373
3374 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3375 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3376
6aa5f3a6
DE
33772014-06-02 Doug Evans <dje@google.com>
3378
3379 Add support for skeletonless type units.
3380 * dwarf2read.c (struct dwarf2_per_objfile): New member
3381 n_allocated_type_units.
3382 (struct dwarf2_per_objfile) <tu_stats>: New member
3383 nr_all_type_units_reallocs.
3384 (create_signatured_type_table_from_index): Initialize
3385 n_allocated_type_units
3386 (create_all_type_units): Ditto.
3387 (add_type_unit): Move up in file. New arg slot.
3388 All callers updated. Increase space for all_type_units more
3389 efficiently.
3390 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3391 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3392 (lookup_dwp_signatured_type): Ditto.
3393 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3394 All callers updated.
3395 (build_type_psymtabs_1): Leave type_unit_groups as
3396 NULL if no TUs present.
3397 (print_tu_stats): New function.
3398 (process_skeletonless_type_unit): New function.
3399 (process_dwo_file_for_skeletonless_type_units): New
3400 function.
3401 (process_skeletonless_type_units): New function.
3402 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3403 Call print tu_stats if debugging enabled.
3404
41fac0cf
PA
34052014-06-02 Pedro Alves <palves@redhat.com>
3406
3407 * breakpoint.c (build_target_command_list): Don't build a command
3408 list if we have any duplicate location that isn't a dprintf.
3409
cd1608cc
PA
34102014-06-02 Pedro Alves <palves@redhat.com>
3411
3412 * breakpoint.c (dprintf_breakpoint_hit): New function.
3413 (initialize_breakpoint_ops): Install it as dprintf's
3414 breakpoint_hit method.
3415
486ef3b9
JB
34162014-06-02 Joel Brobecker <brobecker@adacore.com>
3417
3418 * source.c (substitute_path_rule_matches): Simplify using
3419 filename_ncmp instead of FILENAME_CMP.
3420
230cd560
JB
34212014-06-02 Joel Brobecker <brobecker@adacore.com>
3422
3423 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3424
16954d5d
LC
34252014-06-01 Ludovic Courtès <ludo@gnu.org>
3426
3427 * configure.ac: When Guile is available, check for the
3428 availability of 'scm_new_smob'.
3429 * configure, config.h.in: Regenerate.
3430 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3431 function.
3432
53e8a631
AB
34332014-05-30 Andrew Burgess <aburgess@broadcom.com>
3434
3435 * frame.c (struct frame_info): Add stop_string field.
3436 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3437 (get_prev_frame_always): Old content moved into
3438 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3439 TRY_CATCH, handle MEMORY_ERROR exceptions.
3440 (frame_stop_reason_string): New function definition.
3441 * frame.h (unwind_stop_reason_to_string): Extend comment to
3442 mention frame_stop_reason_string.
3443 (frame_stop_reason_string): New function declaration.
3444 * stack.c (frame_info): Switch to frame_stop_reason_string.
3445 (backtrace_command_1): Switch to frame_stop_reason_string.
3446 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3447 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3448 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3449
70e38b8e
AB
34502014-05-30 Andrew Burgess <aburgess@broadcom.com>
3451
3452 * frame.c (frame_stop_reason_string): Rename to ...
3453 (unwind_stop_reason_to_string): this.
3454 * frame.h (frame_stop_reason_string): Rename to ...
3455 (unwind_stop_reason_to_string): this.
3456 * stack.c (frame_info): Update call to frame_stop_reason_string.
3457 (backtrace_command_1): Likewise.
3458 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3459 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3460
938f0e2f
AB
34612014-05-30 Andrew Burgess <aburgess@broadcom.com>
3462
3463 * frame.c (remove_prev_frame): New function.
3464 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3465 remove_prev_frame.
3466
a09dd441
PA
34672014-05-29 Pedro Alves <palves@redhat.com>
3468
3469 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3470 and make it const. When a single-step decays to a continue,
3471 clear 'step', not 'hw_step'. Pass whether the caller wanted
3472 to step to user_visible_resume_ptid, not what we ask the
3473 target to do.
3474
bdc36728
PA
34752014-05-29 Pedro Alves <palves@redhat.com>
3476
3477 * infrun.c (process_event_stop_test, handle_step_into_function)
3478 (handle_step_into_function_backward): Adjust.
3479 Don't set the even thread's stop_step and call stop_waiting before
3480 calling end_stepping_range. Instead do that ...
3481 (end_stepping_range): ... here. Take an ecs pointer parameter.
3482
22bcd14b
PA
34832014-05-29 Pedro Alves <palves@redhat.com>
3484
3485 * infrun.c (stop_stepping): Rename to ...
3486 (stop_waiting): ... this.
3487 (proceed): Update comment.
3488 (process_event_stop_test, handle_inferior_event)
3489 (handle_signal_stop, handle_step_into_function)
3490 (handle_step_into_function_backward): Update.
3491
4ae57c05
PA
34922014-05-29 Pedro Alves <palves@redhat.com>
3493
3494 * infcall.c (run_inferior_call): Don't check whether the current
3495 thread is running after the proceed call.
3496
329ea579
PA
34972014-05-29 Pedro Alves <palves@redhat.com>
3498 Tom Tromey <tromey@redhat.com>
3499
3500 * NEWS: Mention "maint set target-async", "set mi-async", and that
3501 background execution commands are now always available.
3502 * target.h (target_async_permitted): Update comment.
3503 * target.c (target_async_permitted, target_async_permitted_1):
3504 Default to 1.
3505 (set_target_async_command): Rename to ...
3506 (maint_set_target_async_command): ... this.
3507 (show_target_async_command): Rename to ...
3508 (maint_show_target_async_command): ... this.
3509 (_initialize_target): Adjust.
3510 * infcmd.c (prepare_execution_command): Make extern.
3511 * inferior.h (prepare_execution_command): Declare.
3512 * infrun.c (set_observer_mode): Leave target async alone.
3513 * mi/mi-interp.c (mi_interpreter_init): Install
3514 mi_on_sync_execution_done as sync_execution_done observer.
3515 (mi_on_sync_execution_done): New function.
3516 (mi_execute_command_input_handler): Don't print the prompt if we
3517 just started a synchronous command with an async target.
3518 (mi_on_resume): Check sync_execution before printing prompt.
3519 * mi/mi-main.h (mi_async_p): Declare.
3520 * mi/mi-main.c: Include gdbcmd.h.
3521 (mi_async_p): New function.
3522 (mi_async, mi_async_1): New globals.
3523 (set_mi_async_command, show_mi_async_command, mi_async): New
3524 functions.
3525 (exec_continue): Call prepare_execution_command.
3526 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3527 (mi_execute_async_cli_command): Use mi_async_p.
3528 (_initialize_mi_main): Install "set mi-async". Make
3529 "target-async" a deprecated alias.
3530
92bcb5f9
PA
35312014-05-29 Pedro Alves <palves@redhat.com>
3532
3533 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3534 (_initialize_cli_interp): Adjust.
3535 * event-loop.c: Include "observer.h".
3536 (start_event_loop): Notify 'command_error' observers instead of
3537 calling display_gdb_prompt. Remove FIXME comment.
3538 * event-top.c (display_gdb_prompt): Remove call into the
3539 interpreters.
3540 * inf-loop.c: Include "observer.h".
3541 (inferior_event_handler): Notify 'command_error' observers instead
3542 of calling display_gdb_prompt.
3543 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3544 observers instead of calling display_gdb_prompt.
3545 * interps.c (interp_set): Don't call display_gdb_prompt.
3546 (current_interp_display_prompt_p): Delete.
3547 * interps.h (interp_prompt_p): Delete declaration.
3548 (interp_prompt_p_ftype): Delete.
3549 (struct interp_procs) <prompt_proc_p>: Delete field.
3550 (current_interp_display_prompt_p): Delete declaration.
3551 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3552 (_initialize_mi_interp): Adjust.
3553 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3554 'command_error' observers.
3555 (tui_on_sync_execution_done, tui_on_command_error): New
3556 functions.
3557 (tui_display_prompt_p): Delete.
3558 (_initialize_tui_interp): Adjust.
3559
fd664c91
PA
35602014-05-29 Pedro Alves <palves@redhat.com>
3561
3562 PR gdb/13860
3563 * cli/cli-interp.c: Include infrun.h and observer.h.
3564 (cli_uiout, cli_interp): New globals.
3565 (cli_on_signal_received, cli_on_end_stepping_range)
3566 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3567 functions.
3568 (cli_interpreter_init): Install them as 'end_stepping_range',
3569 'signal_received' 'signal_exited', 'exited' and 'no_history'
3570 observers.
3571 (_initialize_cli_interp): Remove cli_interp local.
3572 * infrun.c (handle_inferior_event): Call the several stop reason
3573 observers instead of printing the stop reason directly.
3574 (end_stepping_range): New function.
3575 (print_end_stepping_range_reason, print_signal_exited_reason)
3576 (print_exited_reason, print_signal_received_reason)
3577 (print_no_history_reason): Make static, and add an uiout
3578 parameter. Print to that instead of to CURRENT_UIOUT.
3579 * infrun.h (print_end_stepping_range_reason)
3580 (print_signal_exited_reason, print_exited_reason)
3581 (print_signal_received_reason print_no_history_reason): New
3582 declarations.
3583 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3584 'mi_uiout'.
3585 <cli_uiout>: New field.
3586 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3587 uiout for CLI output. Install 'signal_received',
3588 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3589 observers.
3590 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3591 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3592 (mi_on_no_history): New functions.
3593 (ui_out_free_cleanup): Delete function.
3594 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3595 instead use the one already stored in the MI interpreter data.
3596 (mi_ui_out): Adjust.
3597 * tui/tui-interp.c: Include infrun.h and observer.h.
3598 (tui_interp): New global.
3599 (tui_on_signal_received, tui_on_end_stepping_range)
3600 (tui_on_signal_exited, tui_on_exited)
3601 (tui_on_no_history): New functions.
3602 (tui_init): Install them as 'end_stepping_range',
3603 'signal_received' 'signal_exited', 'exited' and 'no_history'
3604 observers.
3605 (_initialize_tui_interp): Delete tui_interp local.
3606
8817a6f2
PA
36072014-05-29 Pedro Alves <palves@redhat.com>
3608
3609 PR gdb/15713
3610 * linux-nat.c (linux_nat_resume_callback): Rename the second
3611 parameter to 'except'. Skip LP if it points to EXCEPT.
3612 (linux_nat_resume): Don't mark the event lwp as not stopped
3613 before resuming sibling lwps. Instead ask
3614 linux_nat_resume_callback to skip the event lwp. Mark it as not
3615 stopped after actually resuming it.
3616 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3617 resuming it.
3618 (wait_lwp): Mark the lwp as stopped here.
3619 (stop_wait_callback): Mark the lwp as not stopped right after
3620 resuming it. Don't mark lwps as stopped here.
3621 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3622 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3623
251bde03
PA
36242014-05-29 Pedro Alves <palves@redhat.com>
3625
3626 PR PR15693
3627 * infrun.c (resume): Determine how much to resume depending on
3628 whether the caller wanted a step, not whether we can hardware step
3629 the target. Mark all threads that we intend to run as running,
3630 unless we're calling an inferior function.
3631 (normal_stop): If the thread is running an infcall, don't finish
3632 thread state.
3633 * target.c (target_resume): Don't mark threads as running here.
3634
7f3c0343
JB
36352014-05-28 Joel Brobecker <brobecker@adacore.com>
3636
3637 * serial.c (_initialize_serial): Remove support for
3638 the "set remotebaud" and "show remotebaud" commands.
3639 * NEWS: Add entry documenting the removal of that command.
3640
ee34b3f9
YQ
36412014-05-28 Yao Qi <yao@codesourcery.com>
3642
3643 * charset.c: Fix typo in comments.
3644
add6c04d
GB
36452014-05-27 Gary Benson <gbenson@redhat.com>
3646
3647 * utils.c (internal_vproblem): Prompt for a bug report.
3648
92c48fc5
AW
36492014-05-26 Andy Wingo <wingo@igalia.com>
3650
3651 * guile/scm-arch.c (arscm_mark_arch_smob):
3652 * guile/scm-block.c (bkscm_mark_block_smob)
3653 (bkscm_mark_block_syms_progress_smob):
3654 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3655 * guile/scm-exception.c (exscm_mark_exception_smob):
3656 * guile/scm-frame.c (frscm_mark_frame_smob):
3657 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3658 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3659 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3660 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3661 (ppscm_mark_pretty_printer_worker_smob):
3662 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3663 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3664 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3665 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3666 mark functions.
3667 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3668 function.
3669
b2715b27
AW
36702014-05-26 Andy Wingo <wingo@igalia.com>
3671 Doug Evans <xdje42@gmail.com>
3672
3673 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3674 empty_base_class. All uses updated.
3675 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3676 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3677 Adapt all callers.
3678 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3679 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3680 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3681 (gdbscm_gsmob_has_property_p, add_property_name)
3682 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3683 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3684 (gdb-object-has-property?, gdb-object-properties): Remove.
3685 (gdb-object-kind): Renamed from gsmob-kind.
3686
214ab2da
AW
36872014-05-26 Andy Wingo <wingo@igalia.com>
3688
3689 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3690 * configure: Regenerate.
3691
589fdceb
MM
36922014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3693
3694 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3695
67b5c0c1
MM
36962014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3697
3698 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3699 (replay_memory_access_read_only, replay_memory_access_read_write)
3700 (replay_memory_access_types, replay_memory_access)
3701 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3702 (cmd_set_record_btrace, cmd_show_record_btrace)
3703 (cmd_show_replay_memory_access): New.
3704 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3705 (record_btrace_remove_breakpoint): Replace
3706 record_btrace_allow_memory_access with replay_memory_access.
3707 (_initialize_record_btrace): Add commands.
3708 * NEWS: Announce it.
3709
036cd381
RR
37102014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3711
3712 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3713
c77c1e42
RR
37142014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3715
3716 * MAINTAINERS (Write After Approval): Move self back from
3717 paper trail.
3718
45741a9c
PA
37192014-05-22 Pedro Alves <palves@redhat.com>
3720
3721 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3722 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3723 (disable_randomization, enum exec_direction_kind)
3724 (execution_direction, stop_registers, start_remote)
3725 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3726 (wait_for_inferior, normal_stop, get_last_target_status)
3727 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3728 (insert_step_resume_breakpoint_at_sal)
3729 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3730 (set_step_info, print_stop_event, signal_stop_state)
3731 (signal_print_state, signal_pass_state, signal_stop_update)
3732 (signal_print_update, signal_pass_update)
3733 (update_signals_program_target, clear_exit_convenience_vars)
3734 (displaced_step_dump_bytes, update_observer_mode)
3735 (signal_catch_update, gdb_signal_from_command): Move
3736 declarations ...
3737 * infrun.h: ... to this new file.
3738 * amd64-tdep.c: Include infrun.h.
3739 * annotate.c: Include infrun.h.
3740 * arch-utils.c: Include infrun.h.
3741 * arm-linux-tdep.c: Include infrun.h.
3742 * arm-tdep.c: Include infrun.h.
3743 * break-catch-sig.c: Include infrun.h.
3744 * breakpoint.c: Include infrun.h.
3745 * common/agent.c: Include infrun.h instead of inferior.h.
3746 * corelow.c: Include infrun.h.
3747 * event-top.c: Include infrun.h.
3748 * go32-nat.c: Include infrun.h.
3749 * i386-tdep.c: Include infrun.h.
3750 * inf-loop.c: Include infrun.h.
3751 * infcall.c: Include infrun.h.
3752 * infcmd.c: Include infrun.h.
3753 * infrun.c: Include infrun.h.
3754 * linux-fork.c: Include infrun.h.
3755 * linux-nat.c: Include infrun.h.
3756 * linux-thread-db.c: Include infrun.h.
3757 * monitor.c: Include infrun.h.
3758 * nto-tdep.c: Include infrun.h.
3759 * procfs.c: Include infrun.h.
3760 * record-btrace.c: Include infrun.h.
3761 * record-full.c: Include infrun.h.
3762 * remote-m32r-sdi.c: Include infrun.h.
3763 * remote-mips.c: Include infrun.h.
3764 * remote-notif.c: Include infrun.h.
3765 * remote-sim.c: Include infrun.h.
3766 * remote.c: Include infrun.h.
3767 * reverse.c: Include infrun.h.
3768 * rs6000-tdep.c: Include infrun.h.
3769 * s390-linux-tdep.c: Include infrun.h.
3770 * solib-irix.c: Include infrun.h.
3771 * solib-osf.c: Include infrun.h.
3772 * solib-svr4.c: Include infrun.h.
3773 * target.c: Include infrun.h.
3774 * top.c: Include infrun.h.
3775 * windows-nat.c: Include infrun.h.
3776 * mi/mi-interp.c: Include infrun.h.
3777 * mi/mi-main.c: Include infrun.h.
3778 * python/py-threadevent.c: Include infrun.h.
3779
98eb56a4
PA
37802014-05-22 Pedro Alves <palves@redhat.com>
3781
3782 * infrun.c (handle_inferior_event): Store the exit code for
3783 --return-child-result here, instead of ...
3784 (print_exited_reason): ... here.
3785
17b2616c
PA
37862014-05-21 Pedro Alves <palves@redhat.com>
3787
3788 PR gdb/13860
3789 * gdbthread.h (struct thread_control_state): New field
3790 `command_interp'.
3791 * infrun.c (follow_fork): Copy the new thread control field to the
3792 child fork thread.
3793 (clear_proceed_status_thread): Clear the new thread control field.
3794 (proceed): Set the new thread control field.
3795 * interps.h (command_interp): Declare.
3796 * interps.c (command_interpreter): New global.
3797 (command_interp): New function.
3798 (interp_exec): Set `command_interpreter' while here.
3799 * cli-out.c (cli_uiout_dtor): New function.
3800 (cli_ui_out_impl): Install it.
3801 * mi/mi-interp.c: Include cli-out.h.
3802 (mi_cmd_interpreter_exec): Add comment.
3803 (restore_current_uiout_cleanup): New function.
3804 (ui_out_free_cleanup): New function.
3805 (mi_on_normal_stop): If finishing an execution command started by
3806 a CLI command, or any kind of breakpoint-like event triggered,
3807 print the stop event to the output (CLI) stream.
3808 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3809
5166082f
PA
38102014-05-21 Pedro Alves <palves@redhat.com>
3811
3812 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3813 current source line having changed.
3814 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3815 * infrun.c (normal_stop): Adjust call to
3816 set_current_sal_from_frame.
3817 * source.c (clear_lines_listed_range): New function.
3818 (set_current_source_symtab_and_line, identify_source_line): Clear
3819 the lines listed range.
3820 (line_info): Handle the first "info line" after the current source
3821 line having changed.
3822 * stack.c (print_stack_frame): Remove center handling.
3823 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3824 center sal.line.
3825
c1ee2fb3
PA
38262014-05-21 Pedro Alves <palves@redhat.com>
3827
3828 * inf-child.c (inf_child_mourn_inferior): New function.
3829 * inf-child.h (inf_child_mourn_inferior): New declaration.
3830 * darwin-nat.c (darwin_mourn_inferior): Use
3831 inf_child_mourn_inferior.
3832 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3833 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3834 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3835 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3836 * windows-nat.c (windows_mourn_inferior): Likewise.
3837
5c6d4fb2
DE
38382014-05-21 Doug Evans <xdje42@gmail.com>
3839
250748cb 3840 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3841
4a2722c5
DE
38422014-05-21 Doug Evans <xdje42@gmail.com>
3843
17292b30 3844 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3845 (gdbscm_out_of_range_error): Ditto.
3846 (gdbscm_memory_error): Ditto.
250748cb
DE
3847 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3848 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3849 (gdbscm_out_of_range_error): Update.
3850 (gdbscm_memory_error): Update.
3851 (gdbscm_scm_to_target_string_unsafe): Delete.
3852
6a3cb8e8
PA
38532014-05-21 Pedro Alves <palves@redhat.com>
3854
3855 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3856 globals.
3857 (inf_child_open_target): New function.
3858 (inf_child_open): Use inf_child_open_target to push the target
3859 instead of erroring out.
3860 (inf_child_disconnect, inf_child_close)
3861 (inf_child_maybe_unpush_target): New functions.
3862 (inf_child_target): Install inf_child_disconnect and
3863 inf_child_close. Store a pointer to the returned object.
3864 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3865 declarations.
3866 * target.c (auto_connect_native_target): New global.
3867 (show_default_run_target): New function.
3868 (find_default_run_target): Return NULL if automatically connecting
3869 to the native target is disabled.
3870 (_initialize_target): Install set/show auto-connect-native-target.
3871 * NEWS: Mention "set auto-connect-native-target", and "target
3872 native".
3873 * linux-nat.c (super_close): New global.
3874 (linux_nat_close): Call super_close.
3875 (linux_nat_add_target): Store a pointer to the base class's
3876 to_close method.
3877 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3878 inf_child_maybe_unpush.
3879 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3880 already pushed.
3881 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3882 the inferior. Use inf_child_maybe_unpush_target.
3883 (inf_ttrace_attach): Don't push the target if it is already
3884 pushed.
3885 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3886 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3887 after mourning the inferior. Use inf_child_maybe_unpush_target.
3888 (darwin_attach_pid): Don't push the target if it is already
3889 pushed.
3890 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3891 mourning the inferior. Use inf_child_maybe_unpush_target.
3892 (gnu_detach): Use inf_child_maybe_unpush_target.
3893 * go32-nat.c (go32_create_inferior): Don't push the target if it
3894 is already pushed.
3895 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3896 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3897 (procfs_open): Rename to ...
3898 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3899 comments. Can target_preopen before changing node. Call
3900 inf_child_open_target to push the target explicitly.
3901 (procfs_attach): Don't push the target if it is already pushed.
3902 (procfs_detach): Use inf_child_maybe_unpush_target.
3903 (procfs_create_inferior): Don't push the target if it is already
3904 pushed.
3905 (nto_native_ops): New global.
3906 (procfs_open): Reimplement.
3907 (procfs_native_open): New function.
3908 (init_procfs_targets): Install procfs_native_open as to_open of
3909 "target native". Store a pointer to the "native" target in
3910 nto_native_ops.
3911 * procfs.c (procfs_attach): Don't push the target if it is already
3912 pushed.
3913 (procfs_detach): Use inf_child_maybe_unpush_target.
3914 (procfs_mourn_inferior): Only unpush the target after mourning the
3915 inferior. Use inf_child_maybe_unpush_target.
3916 (procfs_init_inferior): Don't push the target if it is already
3917 pushed.
3918 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3919 if it is already pushed.
3920
930ee1b1
PA
39212014-05-21 Pedro Alves <palves@redhat.com>
3922
3923 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3924 and "procfs" targets are now called "native" instead.
3925
1f5d1b13
PA
39262014-05-21 Pedro Alves <palves@redhat.com>
3927
3928 * go32-nat.c (go32_open): Delete.
3929 (go32_target): Don't override the to_open method.
3930
132f8e03
PA
39312014-05-21 Pedro Alves <palves@redhat.com>
3932
3933 * nto-procfs.c (procfs_can_run): New function.
3934 (nto_procfs_ops): New global.
3935 (init_procfs_targets): New, based on procfs_target. Install
3936 "target native" in addition to "target procfs".
3937 (_initialize_procfs): Call init_procfs_targets instead of adding
3938 the target here.
3939
03c136c3
PA
39402014-05-21 Pedro Alves <palves@redhat.com>
3941
3942 * windows-nat.c (windows_target): Don't override to_shortname,
3943 to_longname or to_doc.
3944
a635d0f3
PA
39452014-05-21 Pedro Alves <palves@redhat.com>
3946
3947 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3948 to_doc.
3949
4f9b5133
PA
39502014-05-21 Pedro Alves <palves@redhat.com>
3951
3952 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3953 to_shortname, to_longname or to_doc.
3954
bc85afde
PA
39552014-05-21 Pedro Alves <palves@redhat.com>
3956
3957 * go32-nat.c (go32_target): Don't override to_shortname,
3958 to_longname or to_doc.
3959
4ebfc96e
PA
39602014-05-21 Pedro Alves <palves@redhat.com>
3961
3962 * inf-child.c (inf_child_open): Remove mention of "child".
3963 (inf_child_target): Rename target to "native" instead of "child".
3964
2648dfed
AA
39652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3966
3967 * Makefile.in (SFILES): Delete "regset.c".
3968 (COMMON_OBS): Delete "regset.o".
3969 * regset.c: Remove.
3970 * regset.h (regset_alloc): Delete prototype.
3971
b13feb94
AA
39722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3973
3974 * sparc-linux-tdep.c (sparc32_linux_gregset)
3975 (sparc32_linux_fpregset): New static regset structures.
3976 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3977 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3978 'fpregset' fields.
3979 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3980 (sparc64_linux_fpregset): New static regset structures.
3981 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3982 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3983 New static regset structures.
3984 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3985 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3986 New static regset structures.
3987 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3988 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3989 New static regset structures.
3990 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3991 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3992 New static regset structures.
3993 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3994
b4fd25c9
AA
39952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3996
3997 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3998 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3999 register maps ("regmaps") from "*regset" to "*regmap". Do this
4000 for all regmap types and variables.
4001 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4002 (sparc32_linux_supply_core_gregset)
4003 (sparc32_linux_collect_core_gregset)
4004 (sparc32_linux_supply_core_fpregset)
4005 (sparc32_linux_collect_core_fpregset): Likewise.
4006 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4007 (sparc_gregmap, sparc_fpregmap): ... these.
4008 (sparc_supply_gregset, sparc_collect_gregset)
4009 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4010 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4011 (_initialize_sparc_nat): Rename regmaps.
4012 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4013 (sparc_gregmap, sparc_fpregmap): ... these.
4014 (sparc_supply_gregset, sparc_collect_gregset)
4015 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4016 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4017 Rename macros to...
4018 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4019 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4020 Likewise.
4021 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4022 Rename to...
4023 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4024 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4025 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4026 regmaps.
4027 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4028 (sparc32_bsd_fpregset): Rename to...
4029 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4030 (sparc32_bsd_fpregmap): ... these.
4031 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4032 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4033 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4034 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4035 (struct sparc_gregmap, struct sparc_fpregmap)
4036 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4037 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4038 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4039 (sparc32_supply_regset, sparc32_collect_gregset)
4040 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4041 prototypes.
4042 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4043 (sparc64_linux_ptrace_gregmap): ... this.
4044 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4045 (_initialize_sparc64_linux_nat): Rename regmaps.
4046 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4047 (sparc64_linux_core_gregmap): ... this.
4048 (sparc64_linux_supply_core_gregset)
4049 (sparc64_linux_collect_core_gregset)
4050 (sparc64_linux_supply_core_fpregset)
4051 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4052 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4053 (sparc64_sol2_fpregset): Rename to...
4054 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4055 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4056 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4057 regmaps.
4058 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4059 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4060 (sparc64_bsd_fpregset): Rename to...
4061 (struct sparc_gregmap, sparc64_sol2_gregmap)
4062 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4063 (sparc64_bsd_fpregmap): ... these.
4064 (sparc64_supply_gregset, sparc64_collect_gregset)
4065 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4066 prototypes.
4067 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4068 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4069 (sparc64fbsd_gregmap): ... this.
4070 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4071 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4072 Rename regmaps.
4073 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4074 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4075 (sparc64nbsd_collect_fpregset): Likewise.
4076 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4077 (sparc64nbsd_gregmap): ... this.
4078 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4079 regmaps.
4080 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4081 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4082 (sparc64obsd_gregmap): ... this.
4083 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4084 regmaps.
4085 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4086 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4087 (sparc32nbsd_gregmap): ... this.
4088 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4089 regmaps.
4090
8fea3224
AA
40912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4092
4093 * score-tdep.c (score7_linux_gregset): New static regset
4094 structure.
4095 (score7_linux_regset_from_core_section): Remove dynamic regset
4096 allocation.
4097 (score_gdbarch_init): Drop allocation of tdep structure.
4098 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4099
24534243
AA
41002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4101
4102 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4103 regset structures.
4104 (am33_regset_from_core_section): Remove dynamic regset
4105 allocations.
4106
b7195f27
AA
41072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4108
4109 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4110 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4111 structures.
4112 (mips_linux_regset_from_core_section): Remove dynamic regset
4113 allocations.
4114 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4115 'gregset64', 'fpregset', and 'fpregset64'.
4116 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4117 deleted tdep fields.
4118
ecc37a5a
AA
41192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4120
4121 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4122 regset structures.
4123 (amd64_regset_from_core_section): Remove dynamic regset
4124 allocations.
4125 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4126 structure.
4127 (amd64obsd_regset_from_core_section): Remove dynamic regset
4128 allocation.
4129 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4130 Likewise.
4131 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4132 x86-common regset supply function.
4133 * i386-tdep.c (i386_collect_gregset): Make static.
4134 (i386_gregset): New global regset structure.
4135 (i386_fpregset, i386_xstateregset): New static regset structures.
4136 (i386_regset_from_core_section): Remove dynamic regset
4137 allocations.
4138 (i386_gdbarch_init): Remove initialization of tdep fields
4139 'gregset', 'fpregset', and 'xstateregset'.
4140 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4141 'fpregset', and 'xstateregset'.
4142 (i386_collect_gregset): Remove prototype.
4143 (i386_gregset): New declaration.
4144 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4145 structure.
4146 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4147 allocation.
4148
b7611c43
AA
41492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4150
4151 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4152 (arm_linux_vfpregset): New static regset structures.
4153 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4154 regset structures.
4155 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4156 and 'vfpregset' fields.
4157
a069a2bd
AA
41582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4159
4160 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4161 (aarch64_linux_fpregset): New static regset structures.
4162 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4163 of regset structures.
4164 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4165 'fpregset' fields.
4166
09424cff
AA
41672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4168
4169 * regset.h (struct regset): Remove gdbarch field.
4170 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4171 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4172 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4173 Likewise.
4174 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4175 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4176 (ppc32_linux_vsxregset): Likewise.
4177 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4178 via the regcache instead of the regset.
4179 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4180 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4181 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4182 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4183 Likewise.
4184
3ca7dae4
AA
41852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4186
4187 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4188 Constify structures.
4189 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4190 (alphanbsd_aout_gregset): Likewise.
4191 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4192 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4193 Likewise.
4194 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4195 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4196 Likewise.
4197 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4198 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4199 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4200 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4201 * m88k-tdep.c (m88k_gregset): Likewise.
4202 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4203 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4204 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4205 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4206 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4207 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4208 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4209 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4210 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4211 Likewise.
4212 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4213 * sh-tdep.h (sh_corefile_gregset): Likewise.
4214 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4215 * vax-tdep.c (vax_gregset): Likewise.
4216
5876f503
JK
42172014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4218
4219 Fix TLS access for -static -pthread.
4220 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4221 (try_thread_db_load_1): Initialize it.
4222 (thread_db_get_thread_local_address): Call it if LM is zero.
4223 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4224 * target.h (struct target_ops) (to_get_thread_local_address): Add
4225 load_module_addr comment.
4226
0256a6ac
PA
42272014-05-21 Pedro Alves <palves@redhat.com>
4228
4229 * dcache.c (dcache_read_memory_partial): If reading the cache line
4230 fails, fallback to reading just the memory the caller wanted.
4231
227533ac
DE
42322014-05-20 Doug Evans <dje@google.com>
4233
4234 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4235 instead of get_current_arch.
4236
936d2992
PA
42372014-05-20 Pedro Alves <palves@redhat.com>
4238
4239 * NEWS: Mention that compare-sections now works with all targets.
4240
4241 * remote.c (PACKET_qCRC): New enum value.
4242 (remote_verify_memory): Don't send qCRC if the target has no
4243 execution. Use packet_support/packet_ok. If the target doesn't
4244 support the qCRC packet, fallback to a deep memory copy.
4245 (compare_sections_command): Say "target image" instead of "remote
4246 executable".
4247 (_initialize_remote): Add PACKET_qCRC to the list of config
4248 packets that have no associated command. Extend comment.
4249 * target.c (simple_verify_memory, default_verify_memory): New
4250 function.
4251 * target.h (struct target_ops) <to_verify_memory>: Default to
4252 default_verify_memory.
4253 (simple_verify_memory): New declaration.
4254 * target-delegates.c: Regenerate.
4255
e59fa00f
MM
42562014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4257
4258 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4259
f2205de0
HZ
42602014-05-20 Hui Zhu <hui@codesourcery.com>
4261 Yao Qi <yao@codesourcery.com>
4262
4263 PR backtrace/16558
4264 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4265 and change address of sp and pc.
4266
c4e54771
TT
42672014-05-19 Tom Tromey <tromey@redhat.com>
4268
4269 * gdbtypes.c (rank_function): Use XNEWVEC.
4270 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4271
73051182
DE
42722014-05-19 Doug Evans <dje@google.com>
4273
4274 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4275 build_type_unit_groups and moved closer to only caller. Remove
4276 arguments. All references updated. Remove outdated .gdb_index
4277 comment.
4278 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4279 build_type_psymtabs_1.
4280
8832e7e3
DE
42812014-05-19 Doug Evans <dje@google.com>
4282
4283 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4284 n_type_unit_groups, all_type_unit_groups. All uses removed.
4285 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4286 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4287 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4288 (add_type_unit_group_to_table): Delete.
4289
cd8ae15e
DE
42902014-05-19 Doug Evans <dje@google.com>
4291
4292 * eval.c (evaluate_subexp_standard): Add some comments.
4293
08f4850b
DE
42942014-05-17 Doug Evans <xdje42@gmail.com>
4295
4296 * progspace.c (remove_program_space): Delete, unused.
4297 * progspace.h (remove_program_space): Ditto.
4298
bed8455c
DE
42992014-05-17 Doug Evans <xdje42@gmail.com>
4300
4301 * inferior.c (prune_inferiors): Fix comment.
4302 (remove_inferior_command): Call prune_program_spaces.
4303
8d551b02
DE
43042014-05-16 Doug Evans <dje@google.com>
4305
4306 New command line option -D.
4307 * NEWS: Mention it.
4308 * main.c (set_gdb_data_directory): New function.
4309 (captured_main): Recognize -D. Flag error for --data-directory "".
4310 Call set_gdb_data_directory.
4311 (print_gdb_help): Print --data-directory, -D.
4312 * main.h (set_gdb_data_directory): Declare.
4313 * top.c (staged_gdb_datadir): New static global.
4314 (set_gdb_datadir): Call set_gdb_data_directory
4315 (show_gdb_datadir): New function.
4316 (init_main): Update init of data-directory parameter.
4317
18848e28
GF
43182014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4319
4320 Import the "dirfd" gnulib module.
4321 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4322 * gnulib/aclocal.m4: Update.
4323 * gnulib/config.in: Update.
4324 * gnulib/configure: Update.
4325 * gnulib/import/Makefile.am: Update.
4326 * gnulib/import/Makefile.in: Update.
4327 * gnulib/import/dirfd.c: New.
4328 * gnulib/import/m4/dirfd.m4: New.
4329 * gnulib/import/m4/gnulib-cache.m4: Update.
4330 * gnulib/import/m4/gnulib-comp.m4: Update.
4331
95c64f92
YQ
43322014-05-16 Pierre Muller <muller@sourceware.org>
4333 Yao Qi <yao@codesourcery.com>
4334
4335 * valprint.c (print_wchar): Move the code on checking whether
4336 W is a printable wide char to the default branch of switch
4337 statement below. Call wchar_printable instead of gdb_iswprint.
4338
cac395ea
TM
43392014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4340
19679eca 4341 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4342 ldr.w and ldrd instructions.
4343
83655187
DE
43442014-05-15 Doug Evans <dje@google.com>
4345
4346 * dwarf2read.c (read_structure_type): Delete outdated comments.
4347
dd756689
TT
43482014-05-14 Tom Tromey <tromey@redhat.com>
4349
4350 * macrocmd.c (print_macro_definition): Reindent.
4351
75ddda77
DE
43522014-05-13 Doug Evans <xdje42@gmail.com>
4353
4354 * python/py-cmd.c (cmdpy_completer): Add comment.
4355 (completers): Make const.
4356
b0f16a3e
SM
43572014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4358
4359 * infrun.c (resume): Remove should_resume (unused). Move up
4360 declaration of resume_ptid.
4361
033c3379
TT
43622014-05-13 Tom Tromey <tromey@redhat.com>
4363
4364 * language.h (unop_type_check): Remove.
4365 (binop_type_check): Don't declare.
4366
9b44a3a5
AA
43672014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4368
4369 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4370 call to regcache_raw_collect.
4371
303a33fa
SM
43722014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4373
4374 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4375 mi_console->quote as the quoting character.
4376
196100a0
SM
43772014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4378
4379 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4380
f989a1c8
TT
43812014-04-29 Tom Tromey <tromey@redhat.com>
4382
4383 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4384 "show debug varobj".
4385
9404b58f
KM
43862014-05-07 Kyle McMartin <kyle@redhat.com>
4387
4388 Pushed by Joel Brobecker <brobecker@adacore.com>.
4389 * aarch64-tdep.c (aarch64_software_single_step): New function.
4390 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4391 with aarch64_software_single_step.
4392
5e49ba57
JB
43932014-05-05 Joel Brobecker <brobecker@adacore.com>
4394
4395 GDB 7.7.1 released.
4396
c888a17d
KS
43972014-05-05 Keith Seitz <keiths@redhat.com>
4398
4399 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4400 variable or history value is successfully parsed.
4401
290a839c
YQ
44022014-05-05 Yao Qi <yao@codesourcery.com>
4403 Pedro Alves <palves@redhat.com>
4404
4405 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4406 address of blocks that intersects the requested range. Trim
4407 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4408 sections.
4409 * ctf.c (ctf_xfer_partial): Likewise.
4410
91256dc2
YQ
44112014-05-05 Yao Qi <yao@codesourcery.com>
4412
4413 * printcmd.c (display_command): Remove the check to
4414 target_has_execution.
4415
07284463
MK
44162014-05-03 Mark Kettenis <kettenis@gnu.org>
4417
4418 * ppcobsd-nat.c: Include "obsd-nat.h".
4419 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4420 add_target.
4421 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4422
30a1e6cc
SDJ
44232014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4424
4425 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4426 and 16-bit signed and unsigned arguments. Update comment.
4427 (stap_parse_probe_arguments): Extend code to handle such
4428 arguments. Use warning instead of complaint to notify about
4429 unrecognized bitness.
4430
f33da99a
SDJ
44312014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4432
4433 PR breakpoints/16889
4434 * stap-probe.c (stap_parse_probe_arguments): Simplify
4435 check for non-prefixed probes (i.e., probes whose
4436 arguments do not start with "N@"). Always set the
4437 argument type to a sane value.
4438
95cf3b38
DT
44392014-05-01 David Taylor <dtaylor@emc.com>
4440
4441 * remote.c (compare_sections_command): Add -r option to compare
4442 all loadable read-only sections.
4443
1cfdf534
SC
44442014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4445
4446 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4447 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4448 Update all callers.
4449 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4450 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4451 Remove unused CORE_ADDR argument. Update all callers.
4452
ca4f7f8b
PA
44532014-04-29 Pedro Alves <palves@redhat.com>
4454
4455 * remote.c (struct packet_config) <detect>: Extend comment.
4456 (add_packet_config_cmd): Don't set the config's detect or support
4457 fields here.
4458 (init_all_packet_configs): Also initialize the config's 'detect'
4459 field.
4460 (reset_all_packet_configs_support): New function.
4461 (remote_open_1): Call reset_all_packet_configs_support instead of
4462 init_all_packet_configs.
4463 (_initialize_remote): Initialize all packet configs. Assert that
4464 all packets have an associated command, except a few known
4465 outliers.
4466
11c1ba78
JB
44672014-04-28 Joel Brobecker <brobecker@adacore.com>
4468
4469 * dwarf2read.c (read_subrange_type): Handle dynamic
4470 DW_AT_lower_bound attributes.
4471
8739bc53
JB
44722014-04-28 Joel Brobecker <brobecker@adacore.com>
4473
4474 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4475 dynamic bounds before computing its upper bound.
4476 (ada_discrete_type_low_bound): Same as above with the lower bound.
4477
6f8a3220
JB
44782014-04-28 Joel Brobecker <brobecker@adacore.com>
4479
4480 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4481 range types. Adjust the array handling implementation to
4482 take advantage of this change.
4483 (resolve_dynamic_range): New function, mostly extracted from
4484 resolve_dynamic_bounds.
4485 (resolve_dynamic_array): New function, mostly extracted from
4486 resolve_dynamic_bounds.
4487 (resolve_dynamic_bounds): Delete.
4488 (resolve_dynamic_type): Reimplement. Add handling of
4489 TYPE_CODE_RANGE types.
4490
4d072ce4
JB
44912014-04-28 Joel Brobecker <brobecker@adacore.com>
4492
4493 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4494 handling of parallel ___XA types.
4495
52865325
JB
44962014-04-28 Joel Brobecker <brobecker@adacore.com>
4497
4498 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4499 unnecessary second call to static_unwrap_type.
4500
433e77fa
HZ
45012014-04-27 Hui Zhu <hui@codesourcery.com>
4502
4503 * stack.c (print_frame_info): Call do_gdb_disassembly with
4504 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4505
b51a69ee
DE
45062014-04-26 Doug Evans <xdje42@gmail.com>
4507
4508 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4509
7ae1a6a6
PA
45102014-04-25 Pedro Alves <palves@redhat.com>
4511
4512 PR server/16255
4513 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4514 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4515 and newline from built string.
4516 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4517 (linux_ptrace_attach_fail_reason): ... this.
4518 * linux-nat.c (linux_nat_attach): Adjust to use
4519 linux_ptrace_attach_fail_reason.
4520
4082afcc
PA
45212014-04-25 Pedro Alves <palves@redhat.com>
4522
4523 * remote.c (struct remote_state): Remove multi_process_aware,
4524 non_stop_aware, cond_tracepoints, cond_breakpoints,
4525 breakpoint_commands, fast_tracepoints, static_tracepoints,
4526 install_in_trace, disconnected_tracing,
4527 enable_disable_tracepoints, string_tracing, and
4528 augmented_libraries_svr4_read fields.
4529 (remote_multi_process_p): Move further below in the file.
4530 (struct packet_config): Add comments.
4531 (update_packet_config): Delete function.
4532 (show_packet_config_cmd): Use packet_config_support.
4533 (add_packet_config_cmd): Use NULL as set callback.
4534 (packet_ok): "set remote foo-packet"-style commands no longer
4535 change config->supported -- adjust.
4536 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4537 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4538 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4539 (PACKET_QNonStop, PACKET_multiprocess_feature)
4540 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4541 (PACKET_DisconnectedTracing_feature)
4542 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4543 (set_remote_protocol_packet_cmd): Delete function.
4544 (packet_config_support, packet_support): New functions.
4545 (set_remote_protocol_Z_packet_cmd): Don't call
4546 update_packet_config.
4547 (remote_query_attached, remote_pass_signals)
4548 (remote_program_signals, remote_threads_info)
4549 (remote_threads_extra_info, remote_start_remote): Use
4550 packet_support.
4551 (remote_start_remote): Use packet_config_support and
4552 packet_support.
4553 (init_all_packet_configs): Set all packets to unknown support,
4554 instead of calling update_packet_config.
4555 (remote_check_symbols): Use packet_support.
4556 (remote_supported_packet): Unconditionally set the packet config's
4557 support status.
4558 (remote_multi_process_feature, remote_non_stop_feature)
4559 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4560 (remote_breakpoint_commands_feature)
4561 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4562 (remote_install_in_trace_feature)
4563 (remote_disconnected_tracing_feature)
4564 (remote_enable_disable_tracepoint_feature)
4565 (remote_string_tracing_feature)
4566 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4567 (remote_protocol_features): Adjust to use remote_supported_packet
4568 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4569 "ConditionalTracepoints", "ConditionalBreakpoints",
4570 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4571 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4572 "EnableDisableTracepoints", and "tracenz".
4573 (remote_query_supported): Use packet_support.
4574 (remote_open_1): Adjust.
4575 (extended_remote_attach_1): Use packet_support. Switch on the
4576 result of packet_ok instead of checking whether the packet ended
4577 up disabled.
4578 (remote_vcont_resume): Use packet_support.
4579 (remote_resume, remote_stop_ns, fetch_register_using_p)
4580 (remote_prepare_to_store, store_register_using_P)
4581 (check_binary_download, remote_write_bytes): Use packet_support.
4582 (remote_vkill): Use packet_support. Switch on the result of
4583 packet_ok instead of checking whether the packet ended up
4584 disabled.
4585 (extended_remote_supports_disable_randomization): Use
4586 packet_support.
4587 (extended_remote_run): Switch on the result of packet_ok instead
4588 of checking whether the packet ended up disabled.
4589 (remote_insert_breakpoint, remote_remove_breakpoint)
4590 (remote_insert_watchpoint, remote_remove_watchpoint)
4591 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4592 packet_support.
4593 (remote_search_memory): Use packet_config_support.
4594 (remote_get_thread_local_address, remote_get_tib_address)
4595 (remote_hostio_send_command, remote_can_execute_reverse): Use
4596 packet_support.
4597 (remote_supports_cond_tracepoints)
4598 (remote_supports_cond_breakpoints)
4599 (remote_supports_fast_tracepoints)
4600 (remote_supports_static_tracepoints)
4601 (remote_supports_install_in_trace)
4602 (remote_supports_enable_disable_tracepoint)
4603 (remote_supports_string_tracing)
4604 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4605 the packet config says the feature is enabled or disabled.
4606 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4607 (remote_get_trace_status): Use packet_support.
4608 (remote_set_disconnected_tracing): Adjust to check whether the
4609 feature is enabled with packet_support.
4610 (remote_set_trace_buffer_size, remote_use_agent)
4611 (remote_can_use_agent, remote_supports_btrace): Use
4612 packet_support.
4613 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4614 Use packet_config_support.
4615 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4616 the packet config says the feature is enabled or disabled.
4617 (set_range_stepping): Use packet_support.
4618
bdb52a22
TT
46192014-04-25 Tom Tromey <tromey@redhat.com>
4620
4621 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4622 argument.
4623
e9475ead
SA
46242014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4625
4626 * NEWS: Mention support for C99 variable length arrays.
4627
82eacd52
JB
46282014-04-24 Joel Brobecker <brobecker@adacore.com>
4629
4630 * ada-lang.c (standard_exc): Expand introductory comment.
4631
01f9f808
MS
46322014-04-24 Michael Sturm <michael.sturm@mintel.com>
4633 Walfred Tedeschi <walfred.tedeschi@intel.com>
4634
4635 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4636 AVX512 registers.
4637 (amd64_linux_read_description): Add code to handle AVX512 xstate
4638 mask and return respective tdesc.
4639 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4640 and features/i386/x32-avx512-linux.c.
4641 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4642 (amd64_linux_core_read_description): Add code to handle AVX512
4643 xstate mask and return respective tdesc.
4644 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4645 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4646 calculation.
4647 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4648 (tdesc_amd64_avx512_linux): New prototype.
4649 (tdesc_x32_avx512_linux): Likewise.
4650 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4651 features/i386/x32-avx512.c.
4652 (amd64_ymm_avx512_names): New register names for pseudo
4653 registers YMM16-31.
4654 (amd64_ymmh_avx512_names): New register names for raw registers
4655 YMMH16-31.
4656 (amd64_k_names): New register names for K registers.
4657 (amd64_zmmh_names): New register names for ZMM raw registers.
4658 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4659 (amd64_xmm_avx512_names): New register names for XMM16-31
4660 registers.
4661 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4662 registers.
4663 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4664 if feature is present.
4665 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4666 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4667 (AMD64_NUM_REGS): Adjust to new number of registers.
4668 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4669 registers supplied via XSTATE by AVX512 registers.
4670 (i386_linux_read_description): Add case for AVX512.
4671 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4672 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4673 (i386_linux_core_read_description): Add case for AVX512.
4674 (i386_linux_init_abi): Install supported register note section
4675 for AVX512.
4676 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4677 AVX512.
4678 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4679 registers to be number of zmm7h + 1.
4680 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4681 * i386-tdep.c: Include features/i386/i386-avx512.c.
4682 (i386_zmm_names): Add ZMM pseudo register names array.
4683 (i386_zmmh_names): Add ZMM raw register names array.
4684 (i386_k_names): Add K raw register names array.
4685 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4686 registers. AVX512 has 16 more ZMM registers than there are YMM
4687 registers.
4688 (i386_zmmh_regnum_p): Add function to look up register number of
4689 ZMM raw registers.
4690 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4691 (i386_k_regnum_p): Likewise for K raw registers.
4692 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4693 registers added by AVX512.
4694 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4695 registers added by AVX512.
4696 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4697 added by AVX512.
4698 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4699 (i386_pseudo_register_name): Add ZMM pseudo registers.
4700 (i386_zmm_type): Construct and return vector registers type for ZMM
4701 registers.
4702 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4703 ZMM0-31 pseudo registers and K registers.
4704 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4705 and YMM16-31 registers from register cache.
4706 (i386_pseudo_register_write): Add code to write K, ZMM and
4707 YMM16-31 registers.
4708 (i386_register_reggroup_p): Add code to include/exclude AVX512
4709 registers in/from respective register groups.
4710 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4711 registers if feature is present in xcr0.
4712 (i386_gdbarch_init): Add code to initialize AVX512 feature
4713 variables in tdep structure, wire in pseudo registers and call
4714 initialize_tdesc_i386_avx512.
4715 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4716 variables.
4717 (i386_regnum): Add AVX512 registers.
4718 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4719 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4720 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4721 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4722 512 bits wide.
4723 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4724 (i386_ymm_avx512_regnum_p): Likewise.
4725 (i386_k_regnum_p): Likewise.
4726 (i386_zmm_regnum_p): Likewise.
4727 (i386_zmmh_regnum_p): Likewise.
4728 * i387-tdep.c : Update year in copyright notice.
4729 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4730 XSAVE buffer.
4731 (XSAVE_YMM_AVX512_ADDR): New macro.
4732 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4733 XSAVE buffer.
4734 (XSAVE_XMM_AVX512_ADDR): New macro.
4735 (xsave_avx512_k_offset): New table for K register offsets in
4736 XSAVE buffer.
4737 (XSAVE_AVX512_K_ADDR): New macro.
4738 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4739 in XSAVE buffer.
4740 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4741 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4742 buffer.
4743 (i387_collect_xsave): Add code to collect AVX512 registers from
4744 XSAVE buffer.
4745 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4746 of XMM16-31 registers.
4747 (I387_NUM_K_REGS): New define for number of K registers.
4748 (I387_K0_REGNUM): New define for K0 register number.
4749 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4750 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4751 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4752 registers.
4753 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4754 (I387_XMM16_REGNUM): New define for XMM16 register number.
4755 (I387_YMM0_REGNUM): New define for YMM0 register number.
4756 (I387_KEND_REGNUM): New define for last K register number.
4757 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4758 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4759 number.
4760 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4761 number.
4762 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4763 size.
4764 * features/Makefile: Add AVX512 related files.
4765 * features/i386/32bit-avx512.xml: New file.
4766 * features/i386/64bit-avx512.xml: Likewise.
4767 * features/i386/amd64-avx512-linux.c: Likewise.
4768 * features/i386/amd64-avx512-linux.xml: Likewise.
4769 * features/i386/amd64-avx512.c: Likewise.
4770 * features/i386/amd64-avx512.xml: Likewise.
4771 * features/i386/i386-avx512-linux.c: Likewise.
4772 * features/i386/i386-avx512-linux.xml: Likewise.
4773 * features/i386/i386-avx512.c: Likewise.
4774 * features/i386/i386-avx512.xml: Likewise.
4775 * features/i386/x32-avx512-linux.c: Likewise.
4776 * features/i386/x32-avx512-linux.xml: Likewise.
4777 * features/i386/x32-avx512.c: Likewise.
4778 * features/i386/x32-avx512.xml: Likewise.
4779 * regformats/i386/amd64-avx512-linux.dat: New file.
4780 * regformats/i386/amd64-avx512.dat: Likewise.
4781 * regformats/i386/i386-avx512-linux.dat: Likewise.
4782 * regformats/i386/i386-avx512.dat: Likewise.
4783 * regformats/i386/x32-avx512-linux.dat: Likewise.
4784 * regformats/i386/x32-avx512.dat: Likewise.
4785 * NEWS: Add note about new support for AVX512.
4786
4787
08351840
PA
47882014-04-23 Pedro Alves <palves@redhat.com>
4789
4790 * breakpoint.c (insert_bp_location): Tolerate errors if the
4791 breakpoint is set in a user-loaded objfile.
4792 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4793 location is marked shlib_disabled. If the breakpoint is set in a
4794 user-loaded objfile is a GDB-side memory breakpoint, validate it
4795 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4796 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4797 flag.
4798 * mem-break.c (memory_validate_breakpoint): New function.
4799 * objfiles.c (userloaded_objfile_contains_address_p): New
4800 function.
4801 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4802 * target.h (memory_validate_breakpoint): New declaration.
4803
076855f9
PA
48042014-04-23 Pedro Alves <palves@redhat.com>
4805
4806 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4807 the breakpoint is set in a shared library, only suppress
4808 errors for software breakpoints, not hardware breakpoints.
4809
483805cf
PA
48102014-04-22 Pedro Alves <palves@redhat.com>
4811
4812 * infrun.c (schedlock_applies): New function, factored out from
4813 find_thread_needs_step_over.
4814 (find_thread_needs_step_over): Use it.
4815 (switch_back_to_stepped_thread): Always clear trap_expected if the
4816 step over is finished. Return early if scheduler locking applies.
4817 Look for the stepping thread and a potential step-over thread with
4818 a single loop.
4819 (currently_stepping_or_nexting_callback): Delete.
4820
a75fef0e
NC
48212014-04-22 Nick Clifton <nickc@redhat.com>
4822
4823 * NEWS: Mention that ARM sim now supports tracing.
4824
48b6e87e
YQ
48252014-04-22 Yao Qi <yao@codesourcery.com>
4826
4827 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4828 to ...
4829 * tracefile.c (tracefile_fetch_registers): ... it. New
4830 function.
4831 * tracefile.h (tracefile_fetch_registers): Declare.
4832 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4833 tracefile_fetch_registers.
4834
17617f2d
EZ
48352014-04-19 Eli Zaretskii <eliz@gnu.org>
4836
4837 PR gdb/14018
4838 * windows-nat.c (thread_rec): Don't display a warning when
4839 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4840 fails for any reason, set th->suspended to -1, so that we don't
4841 try to resume such a thread. Also, don't return NULL in these
4842 cases, to avoid completely ruin the session due to "PC register is
4843 not available" error.
4844 (do_windows_fetch_inferior_registers): Check errors in
4845 GetThreadContext call.
4846 (windows_continue): Accept an additional argument KILLED; if not
4847 zero, ignore errors in the SetThreadContext call, since the
4848 inferior was killed and is shutting down.
4849 (windows_resume, get_windows_debug_event)
4850 (windows_create_inferior, windows_mourn_inferior)
4851 (windows_kill_inferior): All callers of windows_continue changed
4852 to adjust to its new calling sequence.
4853
5723a6fd
YQ
48542014-04-19 Yao Qi <yao@codesourcery.com>
4855
4856 * ctf.c (ctf_open): Call post_create_inferior.
4857
614d5099
YQ
48582014-04-19 Yao Qi <yao@codesourcery.com>
4859
4860 * ctf.c (handle_id): New static variable.
4861 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4862 value. Get the declaration of event "register" and get length
4863 of field "contents".
4864
dac3e710
YQ
48652014-04-19 Yao Qi <yao@codesourcery.com>
4866
4867 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4868
2bca57ba
SC
48692014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4870
4871 * valops.c (oload_method_static): Remove unnecessary argument
4872 METHOD. Update all callers.
4873
51d48146
PA
48742014-04-18 Pedro alves <palves@redhat.com>
4875 Tom Tromey <tromey@redhat.com>
4876
4877 PR backtrace/15558
4878 * frame.c (get_prev_frame_1): Rename to ...
4879 (get_prev_frame_always): ... this, and make extern. Adjust.
4880 (skip_artificial_frames): Use get_prev_frame_always.
4881 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4882 (get_frame_unwind_stop_reason): Adjust to rename.
4883 * frame.h (get_prev_frame_always): Declare.
4884 * inline-frame.c: Include frame.h.
4885 (inline_frame_this_id): Use get_prev_frame_always.
4886
1bdad2e0
TG
48872014-04-18 Tristan Gingold <gingold@adacore.com>
4888
4889 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4890 code by using bfd_mach_o_get_base_address.
4891
7ce16bd4
UW
48922014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4893
4894 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4895 (spu_ax_pseudo_register_collect): New function.
4896 (spu_ax_pseudo_register_push_stack): Likewise.
4897 (spu_dwarf_reg_to_regnum): Likewise.
4898 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4899
2ed3c037
UW
49002014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4901
4902 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4903 Replace FRAME argument with FRAME_ID.
4904 * gdbarch.c, gdbarch.h: Regenerate.
4905 * findvar.c (default_value_from_register): Add GDBARCH argument;
4906 replace FRAME by FRAME_ID. No longer call get_frame_id.
4907 (value_from_register): Update call to gdbarch_value_from_register.
4908 * value.h (default_value_from_register): Update prototype.
4909 * s390-linux-tdep.c (s390_value_from_register): Update interface
4910 and call to default_value_from_register.
4911 * spu-tdep.c (spu_value_from_register): Likewise.
4912
4913 * findvar.c (address_from_register): Remove TYPE argument.
4914 Do not call value_from_register; use gdbarch_value_from_register
4915 with null_frame_id instead.
4916 * value.h (address_from_register): Update prototype.
4917 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4918 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4919 address_from_register interface change.
4920
71e50e83
YQ
49212014-04-17 Yao Qi <yao@codesourcery.com>
4922
4923 * gdbtypes.h: Update comments to link to types and macros'
4924 definitions.
4925
7a23c549
SC
49262014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4927
4928 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4929
22869d73
KS
49302014-04-16 Keith Seitz <keiths@redhat.com>
4931
4932 PR gdb/15827
4933 * dwarf2read.c (skip_one_die): Check that all relative-offset
4934 sibling DIEs fall within range of the current reader's buffer.
4935 (read_partial_die): Likewise.
4936
c4f87ca6
KS
49372014-04-16 Keith Seitz <keiths@redhat.com>
4938
4939 PR c++/16597
4940 * cp-namespace.c (lookup_symbol_file): If the type name of
4941 `this' is NULL, return immediately.
4942
b50c8614
KS
49432014-04-14 Keith Seitz <keiths@redhat.com>
4944
4945 PR c++/16253
4946 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4947 from symbol_matches_domain in symtab.c. All local callers
4948 of symbol_matches_domain updated.
4949 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4950 search STRUCT_DOMAIN.
4951 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4952 independently. standard_lookup will do that automatically.
4953 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4954 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4955 (cp_lookup_symbol_in_namespace): Likewise.
4956 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4957 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4958 may return a STRUCT_DOMAIN match.
4959 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4960 * cp-support.c: Include language.h.
4961 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4962 VAR_DOMAIN.
4963 * psymtab.c (match_partial_symbol): Compare the requested
4964 domain with the symbol's domain directly.
4965 (lookup_partial_symbol): Likewise.
4966 * symtab.c (lookup_symbol_in_language): Explain when/why
4967 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4968 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4969 appropriate languages.
4970 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4971 and moved to ada-lang.c
4972 (lookup_block_symbol): Explain that this function only returns
4973 symbol matching the requested DOMAIN.
4974 Compare the requested domain with the symbol's domain directly.
4975 (iterate_over_symbols): Compare the requested domain with the
4976 symbol's domain directly.
4977 * symtab.h (symbol_matches_domain): Remove.
4978
3d567982
TT
49792014-04-14 Tom Tromey <tromey@redhat.com>
4980
4981 PR c++/15246:
4982 * c-exp.y (type_aggregate_p): New function.
4983 (qualified_name, classify_inner_name): Use it.
4984 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4985 and TYPE_TARGET_TYPE of an enum type.
4986 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4987 an enum type.
4988 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4989 handle TYPE_DECLARED_CLASS.
4990 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4991 types.
4992 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4993 * valops.c (enum_constant_from_type): New function.
4994 (value_aggregate_elt): Use it.
4995 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4996 TYPE_CODE_ENUM.
4997
c848d642
TT
49982014-04-14 Tom Tromey <tromey@redhat.com>
4999
5000 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5001 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5002 const.
5003 * value.h (value_aggregate_elt): Update.
5004
0626fc76
TT
50052014-04-14 Tom Tromey <tromey@redhat.com>
5006
5007 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5008
5ecaaa66
SA
50092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5010
5011 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5012 (evaluate_subexp_standard): Pass noside argument.
5013 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5014 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5015 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5016 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5017 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5018
1612e0c0
SA
50192014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5020
5021 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5022 points to a constant blob.
5023
c451ebe5
SA
50242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5025
5026 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5027 property and store it as the high bound and flag the range accordingly.
5028 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5029 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5030 * gdbtypes.h (enum range_flags): New enum.
5031 (struct range_bounds): Add flags member.
5032
1d42e4c4
SA
50332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5034
5035 * c-typeprint.c (c_type_print_varspec_suffix): Added
5036 check for not yet resolved high bound. If unresolved, print
5037 "variable length" string to the console instead of random
5038 length.
5039
9f1f738a
SA
50402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5041
5042 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5043 value.
5044 (ada_template_to_fixed_record_type_1): Likewise.
5045 (ada_to_fixed_type_1): Likewise.
5046 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5047 (cp_print_value): Likewise.
5048 * d-valprint.c (dynamic_array_type): Likewise.
5049 * findvar.c (address_of_variable): Likewise.
5050 * jv-valprint.c (java_value_print): Likewise.
5051 * valops.c (value_ind): Likewise.
5052 * value.c (coerce_ref): Likewise.
5053
3c8452d4
SA
50542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5055
5056 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5057 value and retrieve the dynamic type size.
5058
4ad88275
SA
50592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5060
5061 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5062 passed to sizeof is dynamic evaluate the argument to compute the length.
5063
80180f79
SA
50642014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5065 Joel Brobecker <brobecker@adacore.com>
5066
5067 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5068 (dwarf2_evaluate_property): New function.
5069 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5070 * dwarf2read.c (attr_to_dynamic_prop): New function.
5071 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5072 attribute.
5073 * gdbtypes.c: Include dwarf2loc.h.
5074 (is_dynamic_type): New function.
5075 (resolve_dynamic_type): New function.
5076 (resolve_dynamic_bounds): New function.
5077 (get_type_length): New function.
5078 (check_typedef): Use get_type_length to compute type length.
5079 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5080 (TYPE_LOW_BOUND_KIND): New macro.
5081 (is_dynamic_type): New function prototype.
5082 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5083 to resolve dynamic properties of the type. Update comment.
5084 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5085
a1556843
RH
50862014-04-14 Richard Henderson <rth@redhat.com>
5087
5088 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5089
0be03e84
DE
50902014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5091 Doug Evans <xdje42@gmail.com>
5092
5093 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5094 dereference TYPE_CODE_REF values.
5095
6b662e19
JB
50962014-04-11 Joel Brobecker <brobecker@adacore.com>
5097
5098 Revert the following changes due to regressions:
5099
5100 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5101 (dwarf2_evaluate_property): New function.
5102 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5103 * dwarf2read.c (attr_to_dynamic_prop): New function.
5104 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5105 attribute.
5106 * gdbtypes.c: Include dwarf2loc.h.
5107 (is_dynamic_type): New function.
5108 (resolve_dynamic_type): New function.
5109 (resolve_dynamic_bounds): New function.
5110 (get_type_length): New function.
5111 (check_typedef): Use get_type_length to compute type length.
5112 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5113 (TYPE_LOW_BOUND_KIND): New macro.
5114 (is_dynamic_type): New function prototype.
5115 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5116 to resolve dynamic properties of the type. Update comment.
5117 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5118
5119 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5120 passed to sizeof is dynamic evaluate the argument to compute the length.
5121
5122 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5123 value and retrieve the dynamic type size.
5124
5125 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5126 (ada_template_to_fixed_record_type_1): Likewise.
5127 (ada_to_fixed_type_1): Likewise.
5128 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5129 (cp_print_value): Likewise.
5130 * d-valprint.c (dynamic_array_type): Likewise.
5131 * eval.c (evaluate_subexp_with_coercion): Likewise.
5132 * findvar.c (address_of_variable): Likewise.
5133 * jv-valprint.c (java_value_print): Likewise.
5134 * valops.c (value_ind): Likewise.
5135 * value.c (coerce_ref): Likewise.
5136
5137 * c-typeprint.c (c_type_print_varspec_suffix): Added
5138 check for not yet resolved high bound. If unresolved, print
5139 "variable length" string to the console instead of random
5140 length.
5141
5142 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5143 property and store it as the high bound and flag the range accordingly.
5144 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5145 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5146 * gdbtypes.h (enum range_flags): New enum.
5147 (struct range_bounds): Add flags member.
5148
5149 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5150 points to a constant blob.
5151
5152 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5153 (evaluate_subexp_standard): Pass noside argument.
5154 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5155 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5156 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5157 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5158 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5159
245a5f0b
KS
51602014-04-11 Keith Seitz <keiths@redhat.com>
5161
5162 PR c++/16675
5163 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5164 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5165 reference types.
5166
3bce8237
SA
51672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5168
5169 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5170 (evaluate_subexp_standard): Pass noside argument.
5171 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5172 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5173 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5174 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5175 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5176
92b09522
SA
51772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5178
5179 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5180 points to a constant blob.
5181
e1969afb
SA
51822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5183
5184 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5185 property and store it as the high bound and flag the range accordingly.
5186 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5187 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5188 * gdbtypes.h (enum range_flags): New enum.
5189 (struct range_bounds): Add flags member.
5190
b86138fb
SA
51912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5192
5193 * c-typeprint.c (c_type_print_varspec_suffix): Added
5194 check for not yet resolved high bound. If unresolved, print
5195 "variable length" string to the console instead of random
5196 length.
5197
bcd629a4
SA
51982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5199
5200 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5201 (ada_template_to_fixed_record_type_1): Likewise.
5202 (ada_to_fixed_type_1): Likewise.
5203 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5204 (cp_print_value): Likewise.
5205 * d-valprint.c (dynamic_array_type): Likewise.
5206 * eval.c (evaluate_subexp_with_coercion): Likewise.
5207 * findvar.c (address_of_variable): Likewise.
5208 * jv-valprint.c (java_value_print): Likewise.
5209 * valops.c (value_ind): Likewise.
5210 * value.c (coerce_ref): Likewise.
5211
04b19544
SA
52122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5213
5214 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5215 value and retrieve the dynamic type size.
5216
26cb189f
SA
52172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5218
5219 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5220 passed to sizeof is dynamic evaluate the argument to compute the length.
5221
37c1ab67
SA
52222014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5223
5224 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5225 (dwarf2_evaluate_property): New function.
5226 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5227 * dwarf2read.c (attr_to_dynamic_prop): New function.
5228 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5229 attribute.
5230 * gdbtypes.c: Include dwarf2loc.h.
5231 (is_dynamic_type): New function.
5232 (resolve_dynamic_type): New function.
5233 (resolve_dynamic_bounds): New function.
5234 (get_type_length): New function.
5235 (check_typedef): Use get_type_length to compute type length.
5236 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5237 (TYPE_LOW_BOUND_KIND): New macro.
5238 (is_dynamic_type): New function prototype.
5239 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5240 to resolve dynamic properties of the type. Update comment.
5241 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5242
729efb13
SA
52432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5244
5245 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5246 declaring high/low bounds and change uses accordingly. Call
5247 create_range_type instead of create_static_range_type.
5248 * gdbtypes.c (create_range_type): New function.
5249 (create_range_type): Convert bounds into struct bound_prop and pass
5250 them to create_range_type.
5251 * gdbtypes.h (struct bound_prop): New struct.
5252 (create_range_type): New function prototype.
5253 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5254 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5255 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5256 part of the bound.
5257 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5258
0c9c3474
SA
52592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5260
5261 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5262 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5263 * ada-lang.c: All uses of create_range_type updated.
5264 * coffread.c: All uses of create_range_type updated.
5265 * dwarf2read.c: All uses of create_range_type updated.
5266 * f-exp.y: All uses of create_range_type updated.
5267 * m2-valprint.c: All uses of create_range_type updated.
5268 * mdebugread.c: All uses of create_range_type updated.
5269 * stabsread.c: All uses of create_range_type updated.
5270 * valops.c: All uses of create_range_type updated.
5271 * valprint.c: All uses of create_range_type updated.
5272
9d497a19
PA
52732014-04-10 Pedro Alves <palves@redhat.com>
5274
5275 * breakpoint.c (single_step_breakpoints)
5276 (single_step_gdbarch): Move up in the file.
5277 (one_breakpoint_xfer_memory): New function, factored out from ...
5278 (breakpoint_xfer_memory): ... here. Also process single-step
5279 breakpoints.
5280
15a9128a
TG
52812014-04-09 Tristan Gingold <gingold@adacore.com>
5282
5283 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5284 comments.
5285 (darwin_decode_exception_message): Free port only after use.
5286
9c97a070
PL
52872014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5288
5289 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5290 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5291 when setting the size of call_length.
5292
7af389b8
SC
52932014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5294
5295 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5296 dereference TYPE_CODE_REF values.
5297
86ad98c3
JB
52982014-04-07 Joel Brobecker <brobecker@adacore.com>
5299
5300 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5301 end of warning message.
5302
b0aeadb3
DE
53032014-04-03 Doug Evans <dje@google.com>
5304
5305 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5306 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5307
5979d6b6
AM
53082014-04-02 Alan Modra <amodra@gmail.com>
5309
5310 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5311 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5312 (struct symbol_file_add_from_memory_args): Add size field.
5313 (find_vdso_size): New function.
5314 (add_vsyscall_page): Attempt to find vdso size.
5315
0d60c288
DE
53162014-04-01 Doug Evans <dje@google.com>
5317
5318 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5319
a41f2563
TG
53202014-04-01 Tristan Gingold <gingold@adacore.com>
5321
5322 * darwin-nat.c (darwin_encode_reply): Add prototype.
5323 (darwin_decode_exception_message): Reply to unknown inferiors.
5324 (darwin_decode_message): Handle message by id. Ignore message
5325 to unknown inferior.
5326 (darwin_wait): Discard unknown messages, add debug trace.
5327
11a865c8
DE
53282014-03-31 Doug Evans <dje@google.com>
5329
5330 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5331 comp_dir_string.
5332
770e7fc7
DE
53332014-03-31 Doug Evans <dje@google.com>
5334
5335 New option "set print symbol-loading".
5336 * NEWS: Mention it.
5337 * solib.c (solib_read_symbols): Only print symbol loading messages
5338 if requested.
5339 (solib_add): If symbol loading is in "brief" mode, notify user
5340 symbols are being loaded.
5341 (reload_shared_libraries_1): Ditto.
5342 * symfile.c (print_symbol_loading_off): New static global.
5343 (print_symbol_loading_brief): New static global.
5344 (print_symbol_loading_full): New static global.
5345 (print_symbol_loading_enums): New static global.
5346 (print_symbol_loading): New static global.
5347 (print_symbol_loading_p): New function.
5348 (symbol_file_add_with_addrs): Only print symbol loading messages
5349 if requested.
5350 (_initialize_symfile): Register "print symbol-loading" set/show
5351 command.
5352 * symfile.h (print_symbol_loading_p): Declare.
5353
c32c64b7
DE
53542014-03-30 Doug Evans <xdje42@gmail.com>
5355
5356 * infrun.c (set_last_target_status): New function.
5357 (handle_inferior_event): Call it.
5358
7c0bc051
DE
53592014-03-30 Doug Evans <xdje42@gmail.com>
5360
5361 * inferior.h (enum stop_kind): Improve comment.
5362
8776cfe9
JB
53632014-03-28 Joel Brobecker <brobecker@adacore.com>
5364
5365 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5366 a reference, strip the reference layer before calling
5367 the lang_ops value_has_mutated callback.
5368
410a0ff2
SDJ
53692014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5370
5371 Remove some globals from our parser.
5372 * language.c (unk_lang_parser): Add "struct parser_state"
5373 argument.
5374 * language.h (struct language_defn) <la_parser>: Likewise.
5375 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5376 (initialize_expout): Add "struct parser_state" argument.
5377 Rewrite function to use the parser state.
5378 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5379 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5380 write_exp_elt_longcst, write_exp_elt_dblcst,
5381 write_exp_elt_decfloatcst, write_exp_elt_type,
5382 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5383 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5384 write_dollar_variable): Likewise.
5385 (parse_exp_in_context_1): Use parser state.
5386 (insert_type_address_space): Add "struct parser_state" argument.
5387 Use parser state.
5388 (increase_expout_size): New function.
5389 * parser-defs.h: Forward declare "struct language_defn" and
5390 "struct parser_state".
5391 (expout, expout_size, expout_ptr): Remove extern declarations.
5392 (parse_gdbarch, parse_language): Rewrite macro declarations to
5393 accept the parser state.
5394 (struct parser_state): New struct.
5395 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5396 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5397 write_exp_elt_decfloatcst, write_exp_elt_type,
5398 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5399 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5400 write_exp_msymbol, write_dollar_variable,
5401 mark_struct_expression, insert_type_address_space): Add "struct
5402 parser_state" argument.
5403 (increase_expout_size): New function.
5404 * utils.c (do_clear_parser_state): New function.
5405 (make_cleanup_clear_parser_state): Likewise.
5406 * utils.h (make_cleanup_clear_parser_state): New function
5407 prototype.
5408 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5409 Update calls to write_exp* in order to pass the parser state.
5410 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5411 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5412 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5413 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5414 * stap-probe.c (stap_parse_register_operand): Likewise.
5415 (stap_parse_single_operand): Likewise.
5416 (stap_parse_argument_1): Likewise.
5417 (stap_parse_argument): Use parser state.
5418 * stap-probe.h: Include "parser-defs.h".
5419 (struct stap_parse_info) <pstate>: New field.
5420 * c-exp.y (parse_type): Rewrite to use parser state.
5421 (yyparse): Redefine to c_parse_internal.
5422 (pstate): New global variable.
5423 (parse_number): Add "struct parser_state" argument.
5424 (write_destructor_name): Likewise.
5425 (type_exp): Update calls to write_exp* and similars in order to
5426 use parser state.
5427 (exp1, exp, variable, qualified_name, space_identifier,
5428 typename, typebase): Likewise.
5429 (write_destructor_name, parse_number, lex_one_token,
5430 classify_name, classify_inner_name, c_parse): Add "struct
5431 parser_state" argument. Update function to use parser state.
5432 * c-lang.h: Forward declare "struct parser_state".
5433 (c_parse): Add "struct parser_state" argument.
5434 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5435 (yyparse): Redefine macro to ada_parse_internal.
5436 (pstate): New variable.
5437 (write_int, write_object_renaming, write_var_or_type,
5438 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5439 type_int, type_long, type_long_long, type_float, type_double,
5440 type_long_double, type_char, type_boolean, type_system_address):
5441 Add "struct parser_state" argument.
5442 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5443 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5444 var_or_type, aggregate, aggregate_component_list,
5445 positional_list, others, component_group,
5446 component_associations): Update calls to write_exp* and similar
5447 functions in order to use parser state.
5448 (ada_parse, write_var_from_sym, write_int,
5449 write_exp_op_with_string, write_object_renaming,
5450 find_primitive_type, write_selectors, write_ambiguous_var,
5451 write_var_or_type, write_name_assoc, type_int, type_long,
5452 type_long_long, type_float, type_double, type_long_double,
5453 type_char, type_boolean, type_system_address): Add "struct
5454 parser_state" argument. Adjust function to use parser state.
5455 * ada-lang.c (parse): Likewise.
5456 * ada-lang.h: Forward declare "struct parser_state".
5457 (ada_parse): Add "struct parser_state" argument.
5458 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5459 calls to both functions.
5460 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5461 parser state.
5462 (yyparse): Redefine macro to f_parse_internal.
5463 (pstate): New variable.
5464 (parse_number): Add "struct parser_state" argument.
5465 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5466 and similars in order to use parser state.
5467 (parse_number): Adjust code to use parser state.
5468 (yylex): Likewise.
5469 (f_parse): New function.
5470 * f-lang.h: Forward declare "struct parser_state".
5471 (f_parse): Add "struct parser_state" argument.
5472 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5473 parser state.
5474 (yyparse): Redefine macro for java_parse_internal.
5475 (pstate): New variable.
5476 (push_expression_name, push_expression_name, insert_exp): Add
5477 "struct parser_state" argument.
5478 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5479 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5480 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5481 PostIncrementExpression, PostDecrementExpression,
5482 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5483 UnaryExpressionNotPlusMinus, CastExpression,
5484 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5485 RelationalExpression, EqualityExpression, AndExpression,
5486 ExclusiveOrExpression, InclusiveOrExpression,
5487 ConditionalAndExpression, ConditionalOrExpression,
5488 ConditionalExpression, Assignment, LeftHandSide): Update
5489 calls to write_exp* and similars in order to use parser state.
5490 (parse_number): Ajust code to use parser state.
5491 (yylex): Likewise.
5492 (java_parse): New function.
5493 (push_variable): Add "struct parser_state" argument. Adjust
5494 code to user parser state.
5495 (push_fieldnames, push_qualified_expression_name,
5496 push_expression_name, insert_exp): Likewise.
5497 * jv-lang.h: Forward declare "struct parser_state".
5498 (java_parse): Add "struct parser_state" argument.
5499 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5500 parser state.
5501 (yyparse): Redefine macro to m2_parse_internal.
5502 (pstate): New variable.
5503 (type_exp, exp, fblock, variable, type): Update calls to
5504 write_exp* and similars to use parser state.
5505 (yylex): Likewise.
5506 (m2_parse): New function.
5507 * m2-lang.h: Forward declare "struct parser_state".
5508 (m2_parse): Add "struct parser_state" argument.
5509 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5510 * objc-lang.h: Forward declare "struct parser_state".
5511 (end_msglist): Add "struct parser_state" argument.
5512 * p-exp.y (parse_type): Rewrite macro to use parser state.
5513 (yyparse): Redefine macro to pascal_parse_internal.
5514 (pstate): New variable.
5515 (parse_number): Add "struct parser_state" argument.
5516 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5517 write_exp* and similars in order to use parser state.
5518 (parse_number, yylex): Adjust code to use parser state.
5519 (pascal_parse): New function.
5520 * p-lang.h: Forward declare "struct parser_state".
5521 (pascal_parse): Add "struct parser_state" argument.
5522 * go-exp.y (parse_type): Rewrite macro to use parser state.
5523 (yyparse): Redefine macro to go_parse_internal.
5524 (pstate): New variable.
5525 (parse_number): Add "struct parser_state" argument.
5526 (type_exp, exp1, exp, variable, type): Update calls to
5527 write_exp* and similars in order to use parser state.
5528 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5529 to use parser state.
5530 (go_parse): Likewise.
5531 * go-lang.h: Forward declare "struct parser_state".
5532 (go_parse): Add "struct parser_state" argument.
5533
342587c4
DE
55342014-03-27 Doug Evans <dje@google.com>
5535
5536 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5537
33e80786
DE
55382014-03-27 Doug Evans <dje@google.com>
5539
5540 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5541 Remove argument abbrev_section. All callers updated.
5542
1dbab08b
DE
55432014-03-27 Doug Evans <dje@google.com>
5544
5545 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5546 addr_base, ranges_base.
5547
318d3177
KS
55482014-03-26 Keith Seitz <keiths@redhat.com>
5549
5550 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5551 types, not VAR_DOMAIN.
5552
1e54db15
SL
55532014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5554
5555 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5556 "ra" registers.
5557 * features/nios2-linux.c: Regenerated.
5558 * features/nios2.c: Regenerated.
5559
d3839ede
PA
55602014-03-25 Pedro Alves <palves@redhat.com>
5561
5562 * cli/cli-script.c (script_from_file): Force the interpreter to
5563 sync mode.
5564
7588d2ec
PL
55652014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5566
5567 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5568 small stack allocation.
5569
a6290449
TG
55702014-03-24 Tristan Gingold <gingold@adacore.com>
5571
5572 * darwin-nat.c (exc_server): Remove unused prototype.
5573 (darwin_dump_message): Correctly display data on x86_64.
5574 (darwin_encode_reply): Fix style.
5575 Add comments and fix indentation.
5576
31ae9d24 55772014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5578
5579 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5580
6339bfc4
DE
55812014-03-22 Doug Evans <xdje42@gmail.com>
5582
5583 * infcmd.c: Whitespace fixes.
5584 (interrupt_command): Merge two function comments into one.
5585
0a07590b
DE
55862014-03-22 Doug Evans <xdje42@gmail.com>
5587
5588 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5589 All uses updated.
5590
b55fbac4
YQ
55912014-03-22 Yao Qi <yao@codesourcery.com>
5592
5593 * remote.c (target_read_live_memory): Remove.
5594 (memory_xfer_live_readonly_partial): Rename it to
5595 remote_xfer_live_readonly_partial. Remove argument 'object'.
5596 All callers updated. Call remote_read_bytes_1
5597 instead of target_read_live_memory.
5598 * tracepoint.c (set_traceframe_number): Remove.
5599 (make_cleanup_restore_traceframe_number): Likewise .
5600 * tracepoint.h (set_traceframe_number): Remove declaration.
5601 (make_cleanup_restore_traceframe_number): Likewise.
5602
9217e74e
YQ
56032014-03-22 Yao Qi <yao@codesourcery.com>
5604
5605 * remote.c (remote_read_bytes): Move code on reading from the
5606 remote stub to ...
5607 (remote_read_bytes_1): ... here. New function.
5608
8acf9577
YQ
56092014-03-22 Yao Qi <yao@codesourcery.com>
5610
5611 * ctf.c (ctf_xfer_partial): Check the return value of
5612 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5613 return TARGET_XFER_UNAVAILABLE.
5614 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5615 * target.c (target_read_live_memory): Move it to remote.c.
5616 (memory_xfer_live_readonly_partial): Likewise.
5617 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5618 * remote.c (target_read_live_memory): Moved from target.c.
5619 (memory_xfer_live_readonly_partial): Likewise.
5620 (remote_read_bytes): Factored out from
5621 memory_xfer_partial_1.
5622
feef67ab
DE
56232014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5624
5625 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5626 NULL pointer.
5627
b65dc60b
PA
56282014-03-21 Pedro Alves <palves@redhat.com>
5629
5630 * infrun.c (normal_stop): Extend comment.
5631
b4ab256d
HZ
56322014-03-21 Hui Zhu <hui@codesourcery.com>
5633 Pedro Alves <palves@redhat.com>
5634
5635 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5636 static buffer.
5637 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5638 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5639 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5640
deba7593
MR
56412014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5642
5643 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5644 `z' formatted output modifier.
5645
1bff71c3
SDJ
56462014-03-20 Tom Tromey <tromey@redhat.com>
5647 Sergio Durigan Junior <sergiodj@redhat.com>
5648
5649 * probe.c (parse_probes): Turn assert into an ordinary error.
5650 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5651 exceptions when parsing probes. Rearrange the code for clarity.
5652
90e28950
TT
56532014-03-20 Tom Tromey <tromey@redhat.com>
5654
5655 PR gdb/14135
5656 * top.c (execute_command): Only dispatch events if the command
5657 started the target.
5658
beb460e8
PA
56592014-03-20 Tom Tromey <tromey@redhat.com>
5660
5661 PR cli/15718
5662 * infcall.c: Include event-top.h.
5663 (run_inferior_call): Call async_disable_stdin if needed.
5664
99619bea
PA
56652014-03-20 Pedro Alves <palves@redhat.com>
5666
5667 * infrun.c (prepare_to_proceed): Delete.
5668 (thread_still_needs_step_over): New function.
5669 (find_thread_needs_step_over): New function.
5670 (proceed): If the current thread needs a step-over, set its
5671 steping_over_breakpoint flag. Adjust to use
5672 find_thread_needs_step_over instead of prepare_to_proceed.
5673 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5674 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5675 breakpoint.
5676 (switch_back_to_stepped_thread): Step over breakpoints of all
5677 threads not the stepping thread, before switching back to the
5678 stepping thread.
5679
2adfaa28
PA
56802014-03-20 Pedro Alves <palves@redhat.com>
5681
5682 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5683 extern.
5684 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5685 * infrun.c (saved_singlestep_ptid)
5686 (stepping_past_singlestep_breakpoint): Delete.
5687 (resume): Remove stepping_past_singlestep_breakpoint handling.
5688 (proceed): Store the prev_pc of the stepping thread too.
5689 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5690 singlestep_pc.
5691 (enum infwait_states): Delete infwait_thread_hop_state.
5692 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5693 field.
5694 (handle_inferior_event): Adjust.
5695 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5696 handling and the thread-hop code. Before removing single-step
5697 breakpoints, check whether the thread hit a single-step breakpoint
5698 of another thread. If it did, the trap is not a random signal.
5699 (switch_back_to_stepped_thread): If the event thread hit a
5700 single-step breakpoint, unblock it before switching to the
5701 stepping thread. Handle the case of the stepped thread having
5702 advanced already.
5703 (keep_going): Handle the case of the current thread moving past a
5704 single-step breakpoint.
5705
31e77af2
PA
57062014-03-20 Pedro Alves <palves@redhat.com>
5707
5708 PR breakpoints/7143
5709 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5710 are being stepped over.
5711 (breakpoint_address_match): Make extern.
5712 * breakpoint.h (breakpoint_address_match): New declaration.
5713 * inferior.h (stepping_past_instruction_at): New declaration.
5714 * infrun.c (struct step_over_info): New type.
5715 (step_over_info): New global.
5716 (set_step_over_info, clear_step_over_info)
5717 (stepping_past_instruction_at): New functions.
5718 (handle_inferior_event): Clear the step-over info when
5719 trap_expected is cleared.
5720 (resume): Remove now stale comment.
5721 (clear_proceed_status): Clear step-over info.
5722 (proceed): Adjust step-over handling to set or clear the step-over
5723 info instead of removing all breakpoints.
5724 (handle_signal_stop): When setting up a thread-hop, don't remove
5725 breakpoints here.
5726 (stop_stepping): Clear step-over info.
5727 (keep_going): Adjust step-over handling to set or clear step-over
5728 info and then always inserting breakpoints, instead of removing
5729 all breakpoints when stepping over one.
5730
b9f437de
PA
57312014-03-20 Pedro Alves <palves@redhat.com>
5732
5733 * infrun.c (previous_inferior_ptid): Adjust comment.
5734 (deferred_step_ptid): Delete.
5735 (infrun_thread_ptid_changed, prepare_to_proceed)
5736 (init_wait_for_inferior): Adjust.
5737 (handle_signal_stop): Delete deferred_step_ptid handling.
5738
06c868a8
JK
57392014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5740
5741 PR gdb/15358
5742 * defs.h (sync_quit_force_run): New declaration.
5743 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5744 * event-top.c (async_sigterm_handler): New declaration.
5745 (async_sigterm_token): New variable.
5746 (async_init_signals): Create also async_sigterm_token.
5747 (async_sigterm_handler): New function.
5748 (sync_quit_force_run): New variable.
5749 (handle_sigterm): Replace quit_force call by other calls.
5750 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5751
dea80df0
MR
57522014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5753
5754 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5755 offset into SPE pseudo registers.
5756
0c7e1a46
PA
57572014-03-18 Pedro Alves <palves@redhat.com>
5758
5759 PR gdb/13860
5760 * inferior.h (print_stop_event): Declare.
5761 * infrun.c (print_stop_event): New, factored out from ...
5762 (normal_stop): ... this.
5763 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5764 of bpstat_print/print_stack_frame.
5765
9c1fcd01
TT
57662014-03-17 Tom Tromey <tromey@redhat.com>
5767
5768 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5769
11aa919a
PMR
57702014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5771
5772 * ada-lang.c (decode_constrained_packed_array): Perform a
5773 minimal coercion for reference with coerce_ref instead of
5774 ada_coerce_ref.
5775
d4ccb5e0
TG
57762014-03-17 Tristan Gingold <gingold@adacore.com>
5777
5778 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5779 (darwin_solib_create_inferior_hook): Emit a warning if version
5780 is unhandled.
5781
49840f2a
UW
57822014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5783
5784 * python/py-value.c (get_field_flag): Cast flag_name argument to
5785 PyObject_GetAttrString to support Python 2.4.
5786
ed4123e5
JK
57872014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5788
5789 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5790 (Global Maintainers): Remove Jan Kratochvil.
5791
d6b64346
PA
57922014-03-14 Pedro Alves <palves@redhat.com>
5793
5794 * inferior.h (terminal_ours_for_output): Rename to ...
5795 (child_terminal_ours_for_output): ... this.
5796 (terminal_save_ours): Rename to ...
5797 (child_terminal_save_ours): ... this.
5798 (terminal_ours): Rename to ...
5799 (child_terminal_ours): ... this.
5800 (terminal_inferior): Rename to ...
5801 (child_terminal_inferior): ... this.
5802 (terminal_init_inferior): Rename to ...
5803 (child_terminal_init_inferior): ... this.
5804 (terminal_init_inferior_with_pgrp): Rename to ...
5805 (child_terminal_init_inferior_with_pgrp): ... this.
5806 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5807 (child_terminal_init_with_pgrp): ... this.
5808 (terminal_save_ours): Rename to ...
5809 (child_terminal_save_ours): ... this.
5810 (terminal_init_inferior): Rename to ...
5811 (child_terminal_init): ... this. Adjust.
5812 (terminal_inferior): Rename to ...
5813 (child_terminal_inferior): ... this.
5814 (terminal_ours_for_output): Rename to ...
5815 (child_terminal_ours_for_output): ... this. Adjust.
5816 (terminal_ours): Rename to ...
5817 (child_terminal_ours): ... this.
5818 (terminal_ours_1): Rename to ...
5819 (child_terminal_ours_1): ... this. Adjust.
5820 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5821 * windows-nat.c (do_initial_windows_stuff): Adjust.
5822 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5823 (gnu_terminal_init): ... this. Adjust.
5824 (gnu_target): Adjust.
5825 * inf-child.c (inf_child_target): Adjust.
5826
5a1e8c7a
DE
58272014-03-13 Doug Evans <xdje42@gmail.com>
5828
5829 PR guile/16612
5830 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5831 new eq?-hashtab.
5832
350e1a76
DE
58332014-03-13 Doug Evans <xdje42@gmail.com>
5834
5835 * value.c (record_latest_value): Call release_value_or_incref
5836 instead of release_value.
5837
a69900ae
PA
58382014-03-13 Pedro Alves <palves@redhat.com>
5839
5840 * procfs.c (procfs_target): Don't override to_shortname,
5841 to_longname or to_doc.
5842
5db9f0bd
PA
58432014-03-13 Pedro Alves <palves@redhat.com>
5844
5845 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5846 Unix in user visible strings.
5847
5e3a2c38
SS
58482014-03-12 Stan Shebs <stan@codesourcery.com>
5849
5850 * gdbtypes.h: Annotate comments for Doxygen, add a page
5851 block comment with some general info.
5852
8bc2fe48
PA
58532014-03-12 Pedro Alves <palves@redhat.com>
5854
5855 * infcmd.c (prepare_execution_command): New function, factored out
5856 from several execution commands.
5857 (run_command_1, continue_command, step_1, jump_command)
5858 (signal_command, until_command, advance_command, finish_command)
5859 (attach_command): Use prepare_execution_command.
5860
638c5f49
OJ
58612014-03-12 Omair Javaid <omair.javaid@linaro.org>
5862
5863 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5864 (MAX_BPTS): Define.
5865 (MAX_WPTS): Define.
5866 (struct arm_linux_thread_points): Removed.
5867 (struct arm_linux_process_info): New.
5868 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5869 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5870 (arm_linux_find_breakpoints_by_tid): Removed.
5871 (struct arch_lwp_info): New.
5872 (arm_linux_find_process_pid): New functions.
5873 (arm_linux_add_process): New functions.
5874 (arm_linux_process_info_get): New functions.
5875 (arm_linux_forget_process): New function.
5876 (arm_linux_get_debug_reg_state): New function.
5877 (struct update_registers_data): New.
5878 (update_registers_callback): New function.
5879 (arm_linux_insert_hw_breakpoint1): Updated.
5880 (arm_linux_remove_hw_breakpoint1): Updated.
5881 (arm_linux_insert_hw_breakpoint): Updated.
5882 (arm_linux_remove_hw_breakpoint): Updated.
5883 (arm_linux_insert_watchpoint): Updated.
5884 (arm_linux_remove_watchpoint): Updated.
5885 (arm_linux_new_thread): Updated.
5886 (arm_linux_prepare_to_resume): New function.
5887 (arm_linux_new_fork): New function.
5888 (_initialize_arm_linux_nat): Updated.
5889
6d03af93
PA
58902014-03-12 Pedro Alves <palves@redhat.com>
5891
5892 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5893
b3ccfe11
TT
58942014-03-12 Tom Tromey <tromey@redhat.com>
5895
5896 * inf-child.c (return_zero): New function.
5897 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5898 * aix-thread.c (aix_thread_inferior_created): New function.
5899 (aix_thread_attach): Remove.
5900 (init_aix_thread_ops): Don't set to_attach.
5901 (_initialize_aix_thread): Register inferior_created observer.
5902 * corelow.c (init_core_ops): Don't set to_attach or
5903 to_create_inferior.
5904 * exec.c (init_exec_ops): Don't set to_attach or
5905 to_create_inferior.
5906 * infcmd.c (run_command_1): Use find_run_target. Make direct
5907 target calls.
5908 (attach_command): Use find_attach_target. Make direct target
5909 calls.
5910 * record-btrace.c (init_record_btrace_ops): Don't set
5911 to_create_inferior.
5912 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5913 Remove.
5914 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5915 set to_create_inferior.
5916 * target.c (complete_target_initialization): Add assertion.
5917 (target_create_inferior): Remove.
5918 (find_default_attach, find_default_create_inferior): Remove.
5919 (find_attach_target, find_run_target): New functions.
5920 (find_default_is_async_p, find_default_can_async_p)
5921 (target_supports_non_stop, target_attach): Remove.
5922 (init_dummy_target): Don't set to_create_inferior or
5923 to_supports_non_stop.
5924 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5925 TARGET_DEFAULT_FUNC.
5926 <to_create_inferior>: Add comment.
5927 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5928 TARGET_DEFAULT_RETURN.
5929 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5930 (find_attach_target, find_run_target): Declare.
5931 (target_create_inferior): Remove.
5932 (target_has_execution_1): Update comment.
5933 (target_supports_non_stop): Remove.
5934 * target-delegates.c: Rebuild.
5935
91f83b02
PA
59362014-03-12 Pedro Alves <palves@redhat.com>
5937
5938 * inf-child.h: Update comment to not mention Unix.
5939
f1aea813
PA
59402014-03-12 Pedro Alves <palves@redhat.com>
5941
5942 * inf-child.c: Update top comment to not mention Unix. Add
5943 generic comment describing how this target is meant to be used.
5944 (inf_child_post_attach, inf_child_post_startup_inferior)
5945 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5946 Unix in comment.
5947
ee8e9165
PA
59482014-03-12 Pedro Alves <palves@redhat.com>
5949
5950 * nto-procfs.c: Include inf-child.h.
5951 (procfs_ops): Delete global.
5952 (procfs_can_run): Delete method.
5953 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5954 target pointer instead of referencing procfs_ops.
5955 (procfs_prepare_to_store): Delete.
5956 (init_procfs_ops): Delete function.
5957 (procfs_target): New function, based on init_procfs_ops, but
5958 inherit inf_child_target.
5959 (_initialize_procfs): Use procfs_target.
5960
51a9c8c5
PA
59612014-03-12 Pedro Alves <palves@redhat.com>
5962
5963 * windows-nat.c: Include inf-child.h.
5964 (windows_ops): Delete global.
5965 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5966 methods.
5967 (init_windows_ops): Delete function.
5968 (windows_target): New function, based on init_windows_ops, but
5969 inherit inf_child_target.
5970 (_initialize_windows_nat): Use windows_target. Install x86
5971 specific target methods here.
5972
c1966e26
DE
59732014-03-10 Doug Evans <xdje42@gmail.com>
5974
5975 * guile/guile.c (call_initialize_gdb_module): New function.
5976 (initialize_guile): Replace call to scm_init_guile with call to
5977 scm_with_guile.
5978
023db19c
JB
59792014-03-10 Joel Brobecker <brobecker@adacore.com>
5980
5981 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5982 in call to TYPE_CODE macro.
5983
5ec18f2b
JG
59842014-03-10 Jerome Guitton <guitton@adacore.com>
5985
8668be63
JB
5986 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5987 Resolve tagged types to full view.
5ec18f2b 5988
7d03f2eb
HZ
59892014-03-10 Hui Zhu <hui@codesourcery.com>
5990
5991 * target.h (target_insert_breakpoint): Remove "hardware" from its
5992 comments.
5993
c5164cbc
DE
59942014-03-07 Doug Evans <dje@google.com>
5995
5996 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5997
c4a3fee2
DE
59982014-03-07 Doug Evans <dje@google.com>
5999
6000 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6001 Remove unused local comp_dir_attr. Assert exactly one of
6002 stub_comp_unit_die, stub_comp_dir is non-NULL.
6003
3156469c
JB
60042014-03-07 Joel Brobecker <brobecker@adacore.com>
6005
6006 * target.h (complete_target_initialization, add_target):
6007 Add comment.
6008
c1a7b7c6
PA
60092014-03-07 Pedro Alves <palves@redhat.com>
6010
6011 * go32-nat.c: Include inf-child.h.
6012 (go32_ops): Delete global.
6013 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6014 Delete methods.
6015 (go32_create_inferior): Push the passed in target pointer instead
6016 of referencing go32_ops.
6017 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6018 (go32_target): New function, based on init_go32_ops, but inherit
6019 inf_child_target.
6020 (_initialize_go32_nat): Use go32_target. Move parts of
6021 init_go32_ops here.
6022
d3c1a85f
JB
60232014-03-06 Joel Brobecker <brobecker@adacore.com>
6024
6025 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6026 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6027 SYMBOL_VALUE_ADDRESS.
6028 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6029
5fa1d40e
YQ
60302014-03-06 Yao Qi <yao@codesourcery.com>
6031
6032 * breakpoint.c (get_tracepoint_by_number): Remove argument
6033 optional_p. All callers updated. Adjust comments. Update
6034 output message.
6035 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6036
0c13193f
YQ
60372014-03-06 Yao Qi <yao@codesourcery.com>
6038
6039 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6040 early if get_number returns zero. Use 'p' instead of 'args'.
6041
2217da06
YQ
60422014-03-06 Yao Qi <yao@codesourcery.com>
6043
6044 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6045 message.
6046
cc3da688
YQ
60472014-03-06 Yao Qi <yao@codesourcery.com>
6048
6049 PR breakpoints/16508
6050 * tracepoint.c (check_trace_running): New function.
6051 (trace_find_command): Move code to check_trace_running and
6052 call check_trace_running.
6053 (trace_find_pc_command): Likewise.
6054 (trace_find_tracepoint_command): Likewise.
6055 (trace_find_line_command): Likewise.
6056 (trace_find_range_command): Likewise.
6057 * tracepoint.h (check_trace_running): Likewise.
6058 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6059
6a5f844b
YQ
60602014-03-06 Yao Qi <yao@codesourcery.com>
6061
6062 * target.h (struct target_ops) <to_traceframe_info>: Use
6063 TARGET_DEFAULT_NORETURN (tcomplain ()).
6064 * target-delegates.c: Regenerated.
6065
0f26cec1
PA
60662014-03-05 Pedro Alves <palves@redhat.com>
6067
6068 PR gdb/16575
6069 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6070 void. Update comment.
6071 (dcache_xfer_memory): Delete.
6072 (dcache_read_memory_partial): New, based on the read bits of
6073 dcache_xfer_memory.
6074 (dcache_update): Add status parameter. Use ULONGEST for len, and
6075 adjust. Discard cache lines if the reason for the update was
6076 error.
6077 * dcache.h (dcache_xfer_memory): Delete declaration.
6078 (dcache_read_memory_partial): New declaration.
6079 (dcache_update): Update prototype.
6080 * target.c (raw_memory_xfer_partial): Update the dcache here.
6081 (memory_xfer_partial_1): Don't handle dcache writes here.
6082
b2b255bd
MF
60832014-03-05 Mike Frysinger <vapier@gentoo.org>
6084
6085 * remote-sim.c (gdbsim_load): Add const to prog.
6086
5d9cf8a4
TT
60872014-03-03 Tom Tromey <tromey@redhat.com>
6088
6089 * elfread.c (probe_key): Change to bfd_data.
6090 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6091 now per-BFD, not per-objfile.
6092 * stap-probe.c (stap_probe_destroy): Update comment.
6093 (handle_stap_probe): Allocate on the per-BFD obstack.
6094
729662a5
TT
60952014-03-03 Tom Tromey <tromey@redhat.com>
6096
6097 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6098 * breakpoint.c (create_longjmp_master_breakpoint): Use
6099 get_probe_address.
6100 (add_location_to_breakpoint, bkpt_probe_insert_location)
6101 (bkpt_probe_remove_location): Update.
6102 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6103 * elfread.c (elf_symfile_relocate_probe): Remove.
6104 (elf_probe_fns): Update.
6105 (insert_exception_resume_breakpoint): Change type of "probe"
6106 parameter to bound_probe.
6107 (check_exception_resume): Update.
6108 * objfiles.c (objfile_relocate1): Don't relocate probes.
6109 * probe.c (bound_probe_s): New typedef.
6110 (parse_probes): Use get_probe_address. Set sal's objfile.
6111 (find_probe_by_pc): Return a bound_probe.
6112 (collect_probes): Return a VEC(bound_probe_s).
6113 (compare_probes): Update.
6114 (gen_ui_out_table_header_info): Change type of "probes"
6115 parameter. Update.
6116 (info_probes_for_ops): Update.
6117 (get_probe_address): New function.
6118 (probe_safe_evaluate_at_pc): Update.
6119 * probe.h (struct probe_ops) <get_probe_address>: New field.
6120 <set_semaphore, clear_semaphore>: Add objfile parameter.
6121 (struct probe) <objfile>: Remove field.
6122 <arch>: New field.
6123 <address>: Update comment.
6124 (struct bound_probe): New.
6125 (find_probe_by_pc): Return a bound_probe.
6126 (get_probe_address): Declare.
6127 * solib-svr4.c (struct probe_and_action) <address>: New field.
6128 (hash_probe_and_action, equal_probe_and_action): Update.
6129 (register_solib_event_probe): Add address parameter.
6130 (solib_event_probe_at): Update.
6131 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6132 get_probe_address.
6133 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6134 (stap_get_probe_address): New function.
6135 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6136 (compile_probe_arg): Update.
6137 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6138 address.
6139 (handle_stap_probe): Don't relocate the probe.
6140 (stap_relocate): Remove.
6141 (stap_gen_info_probes_table_values): Update.
6142 (stap_probe_ops): Remove stap_relocate.
6143 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6144 (debug_sym_probe_fns): Update.
6145 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6146 * symtab.c (init_sal): Use memset.
6147 * symtab.h (struct symtab_and_line) <objfile>: New field.
6148 * tracepoint.c (start_tracing, stop_tracing): Update.
6149
ff887920
TT
61502014-03-03 Tom Tromey <tromey@redhat.com>
6151
6152 * probe.h (parse_probes, find_probe_by_pc)
6153 (find_probes_in_objfile): Fix comments.
6154
f0407826
DE
61552014-03-02 Doug Evans <xdje42@gmail.com>
6156
6157 * infrun.c (handle_signal_stop): Replace test for
6158 TARGET_WAITKIND_STOPPED with an assert.
6159
35e6a711
DE
61602014-03-02 Doug Evans <xdje42@gmail.com>
6161
6162 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6163
667f9d0b
DE
61642014-03-02 Doug Evans <xdje42@gmail.com>
6165
6166 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6167
dc92ace0
MK
61682014-03-01 Mark Kettenis <kettenis@gnu.org>
6169
6170 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6171
a900370f
MK
61722014-03-01 Mark Kettenis <kettenis@gnu.org>
6173
6174 * i386obsd-nat.c: Include "obsd-nat.h".
6175 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6176 add_target.
6177 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6178
b72a7981
MK
61792014-03-01 Mark Kettenis <kettenis@gnu.org>
6180
6181 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6182
96c70aba
MK
61832014-03-01 Mark Kettenis <kettenis@gnu.org>
6184
6185 * mips64obsd-nat.c: Include "obsd-nath".
6186 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6187 add_target
6188 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6189
874a80af
MK
61902014-03-01 Mark Kettenis <kettenis@gnu.org>
6191
8fd408f1
MK
6192 * amd64obsd-nat.c: Include "obsd-nat,h.
6193 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6194 add_target.
874a80af
MK
6195 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6196
9cf95373
SC
61972014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6198
6199 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6200 (find_overload_match): Update call to find_oload_champ.
6201 (find_oload_champ_namespace_loop): Likewise
6202
863e4da4
MK
62032014-02-28 Mark Kettenis <kettenis@gnu.org>
6204
025cac40
MK
6205 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6206
1ed586ce
MK
6207 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6208 * config/sparc/obsd64.mh: New file.
6209 * sparc64obsd-nat.c: New file.
6210
863e4da4
MK
6211 * obsd-nat.h: New file.
6212 * obsd-nat.c: New file.
6213 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6214 (ALLDEPFILES): Add obsd-nat.c.
6215
89de4da4
TT
62162014-02-28 Tom Tromey <tromey@redhat.com>
6217
6218 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6219 * cli-out.h (cli_ui_out_impl): Now const.
6220 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6221 * ui-out.c (struct ui_out) <impl>: Now const.
6222 (default_ui_out_impl): Now const.
6223 (ui_out_new): Make 'impl' parameter const.
6224 * ui-out.h (ui_out_new): Update.
6225
c725e7b6
MK
62262014-02-27 Mark Kettenis <kettenis@gnu.org>
6227
6228 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6229
670b46b3
MK
62302014-02-27 Mark Kettenis <kettenis@gnu.org>
6231
6232 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6233
c91550fc
JK
62342014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6235
6236 Additional PR 8882 fix.
6237 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6238
2fa0369e
PA
62392014-02-27 Pedro Alves <palves@redhat.com>
6240
6241 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6242 isn't set.
6243
d632a097
PA
62442014-02-27 Pedro Alves <palves@redhat.com>
6245
6246 PR 12702
6247 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6248 * nat/linux-waitpid.c: Include string.h.
6249 (status_to_str): Moved here and made extern.
6250 * nat/linux-waitpid.h (status_to_str): New declaration.
6251
2ebd5a35
HZ
62522014-02-27 Hui Zhu <hui@codesourcery.com>
6253
6254 PR 12702
6255 * infrun.c (ptid_match): Move ...
6256 * common/ptid.c (ptid_match): ... here.
6257 * inferior.h (ptid_match): Move ...
6258 * common/ptid.h (ptid_match): ... here.
6259
3cdd631f
MK
62602014-02-27 Mark Kettenis <kettenis@gnu.org>
6261
6262 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6263 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6264 gdb_target_obs.
6265
bee30a64
MK
62662014-02-27 Mark Kettenis <kettenis@gnu.org>
6267
6268 * obsd-tdep.c (obsd_auxv_parse): New function.
6269 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6270
6271 * gdbarch.sh (auxv_parse): New.
6272 * gdbarch.h: Regenerated.
6273 * gdbarch.c: Regenerated.
6274 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6275
7a5a839f
LC
62762014-02-26 Ludovic Courtès <ludo@gnu.org>
6277
6278 * guile/scm-value.c (gdbscm_history_append_x): New function.
6279 (value_functions): Add it.
6280
31aa7e4e
JB
62812014-02-27 Joel Brobecker <brobecker@adacore.com>
6282
6283 * dwarf2read.c (attr_value_as_address): New function.
6284 (dwarf2_find_base_address, read_call_site_scope): Use
6285 attr_value_as_address in place of DW_ADDR.
6286 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6287 the low and high addresses. Slight rework of the handling
6288 of the high pc being a constant form, and limit it to
6289 DWARF verson 4 or higher.
6290 (dwarf2_record_block_ranges): Likewise.
6291 (read_partial_die): Likewise.
6292 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6293
9b333ba3
TT
62942014-02-26 Tom Tromey <tromey@redhat.com>
6295
6296 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6297
5f6cac40
TT
62982014-02-26 Tom Tromey <tromey@redhat.com>
6299
6300 * elfread.c (elf_read_minimal_symbols): Return early if
6301 minimal symbols have already been read. Add "ei" parameter.
6302 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6303 * minsyms.c (prim_record_minimal_symbol_full): Update.
6304 * objfiles.h (struct objstats) <n_minsyms>: Move...
6305 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6306 * symmisc.c (print_objfile_statistics): Update.
6307
2750ef27
TT
63082014-02-26 Tom Tromey <tromey@redhat.com>
6309
6310 * elfread.c (elf_read_minimal_symbols): New function, from
6311 elf_symfile_read.
6312 (elf_symfile_read): Call it.
6313
34643a32
TT
63142014-02-26 Tom Tromey <tromey@redhat.com>
6315
6316 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6317 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6318 (lookup_minimal_symbol_solib_trampoline)
6319 (lookup_minimal_symbol_by_pc_section_1)
6320 (lookup_minimal_symbol_and_objfile): Update.
6321 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6322 Don't allocate a minimal symbol if minsyms have already been read.
6323 (build_minimal_symbol_hash_tables): Update.
6324 (install_minimal_symbols): Do nothing if minsyms already read.
6325 Use the per-BFD obstack.
6326 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6327 * objfiles.c (allocate_objfile): Call
6328 terminate_minimal_symbol_table later.
6329 (have_minimal_symbols): Update.
6330 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6331 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6332 Move from struct objfile.
6333 <minsyms_read>: New field.
6334 (struct objfile) <msymbols, minimal_symbol_count,
6335 msymbol_hash, msymbol_demangled_hash>: Move.
6336 (ALL_OBJFILE_MSYMBOLS): Update.
6337 * symfile.c (read_symbols): Set minsyms_read.
6338 (reread_symbols): Update.
6339 * symmisc.c (dump_objfile, dump_msymbols): Update.
6340
2273f0ac
TT
63412014-02-26 Tom Tromey <tromey@redhat.com>
6342
6343 * minsyms.c (msymbols_sort): Remove.
6344 * minsyms.h (msymbols_sort): Remove.
6345 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6346 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6347 * elfread.c (elf_symtab_read): Don't add section offsets.
6348 * xcoffread.c (record_minimal_symbol): Don't add section offset
6349 to minimal symbol address.
6350 * somread.c (text_offset, data_offset): Remove.
6351 (som_symtab_read): Don't add section offsets to minimal symbol
6352 addresses.
6353 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6354 Don't add section offsets to minimal symbols.
6355 * coffread.c (coff_symtab_read): Don't add section offsets
6356 to minimal symbol addresses.
6357 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6358 to minimal symbol addresses.
6359 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6360 section offset to minimal symbol addresses.
6361 * mdebugread.c (parse_partial_symbols): Don't add section
6362 offset to minimal symbol addresses.
6363 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6364 offset to minimal symbol addresses.
6365
77e371c0
TT
63662014-02-26 Tom Tromey <tromey@redhat.com>
6367
6368 * ada-lang.c (ada_main_name): Update.
6369 (ada_add_standard_exceptions): Update.
6370 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6371 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6372 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6373 * auxv.c (ld_so_xfer_auxv): Update.
6374 * avr-tdep.c (avr_scan_prologue): Update.
6375 * ax-gdb.c (gen_var_ref): Update.
6376 * blockframe.c (get_pc_function_start)
6377 (find_pc_partial_function_gnu_ifunc): Update.
6378 * breakpoint.c (create_overlay_event_breakpoint)
6379 (create_longjmp_master_breakpoint)
6380 (create_std_terminate_master_breakpoint)
6381 (create_exception_master_breakpoint): Update.
6382 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6383 * c-valprint.c (c_val_print): Update.
6384 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6385 * common/agent.c (agent_look_up_symbols): Update.
6386 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6387 * dwarf2loc.c (call_site_to_target_addr): Update.
6388 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6389 * elfread.c (elf_gnu_ifunc_record_cache)
6390 (elf_gnu_ifunc_resolve_by_got): Update.
6391 * findvar.c (default_read_var_value): Update.
6392 * frame.c (inside_main_func): Update.
6393 * frv-tdep.c (frv_frame_this_id): Update.
6394 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6395 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6396 Update.
6397 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6398 (hppa_hpux_find_dummy_bpaddr): Update.
6399 * hppa-tdep.c (hppa_symbol_address): Update.
6400 * infcmd.c (until_next_command): Update.
6401 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6402 Update.
6403 * linespec.c (minsym_found, add_minsym): Update.
6404 * linux-nat.c (get_signo): Update.
6405 * linux-thread-db.c (inferior_has_bug): Update.
6406 * m32c-tdep.c (m32c_return_value)
6407 (m32c_m16c_address_to_pointer): Update.
6408 * m32r-tdep.c (m32r_frame_this_id): Update.
6409 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6410 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6411 * maint.c (maintenance_translate_address): Update.
6412 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6413 (frob_address): New function.
6414 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6415 frob_address. Rename parameter to "pc_in".
6416 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6417 addresses.
6418 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6419 Update.
6420 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6421 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6422 * objc-lang.c (find_objc_msgsend): Update.
6423 * objfiles.c (objfile_relocate1): Update.
6424 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6425 * p-valprint.c (pascal_val_print): Update.
6426 * parse.c (write_exp_msymbol): Update.
6427 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6428 (ppc_elfv2_skip_entrypoint): Update.
6429 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6430 * printcmd.c (build_address_symbolic, msym_info)
6431 (address_info): Update.
6432 * proc-service.c (ps_pglobal_lookup): Update.
6433 * psymtab.c (find_pc_sect_psymtab_closer)
6434 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6435 Change msymbol parameter to bound_minimal_symbol.
6436 * ravenscar-thread.c (get_running_thread_id): Update.
6437 * remote.c (remote_check_symbols): Update.
6438 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6439 address.
6440 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6441 * solib-dsbt.c (lm_base): Update.
6442 * solib-frv.c (lm_base, main_got): Update.
6443 * solib-irix.c (locate_base): Update.
6444 * solib-som.c (som_solib_create_inferior_hook)
6445 (link_map_start): Update.
6446 * solib-spu.c (spu_enable_break, ocl_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, scan_file_globals): Update.
6451 * stack.c (find_frame_funname): Update.
6452 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6453 (debug_qf_find_pc_sect_symtab): Update.
6454 * symfile.c (simple_read_overlay_table)
6455 (simple_overlay_update): Update.
6456 * symfile.h (struct quick_symbol_functions)
6457 <find_pc_sect_symtab>: Change type of msymbol to
6458 bound_minimal_symbol.
6459 * symmisc.c (dump_msymbols): Update.
6460 * symtab.c (find_pc_sect_symtab_via_partial)
6461 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6462 (search_symbols, print_msymbol_info): Update.
6463 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6464 (MSYMBOL_VALUE_ADDRESS): Redefine.
6465 (BMSYMBOL_VALUE_ADDRESS): New macro.
6466 * tracepoint.c (scope_info): Update.
6467 * tui/tui-disasm.c (tui_find_disassembly_address)
6468 (tui_get_begin_asm_address): Update.
6469 * valops.c (find_function_in_inferior): Update.
6470 * value.c (value_static_field, value_fn_field): Update.
6471
3b7344d5
TT
64722014-02-26 Tom Tromey <tromey@redhat.com>
6473
6474 * ada-lang.c (ada_update_initial_language): Update.
6475 (ada_main_name, ada_has_this_exception_support): Update.
6476 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6477 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6478 * arm-tdep.c (arm_skip_stub): Update.
6479 * auxv.c (ld_so_xfer_auxv): Update.
6480 * avr-tdep.c (avr_scan_prologue): Update.
6481 * ax-gdb.c (gen_var_ref): Update.
6482 * breakpoint.c (struct breakpoint_objfile_data)
6483 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6484 type to bound_minimal_symbol.
6485 (create_overlay_event_breakpoint)
6486 (create_longjmp_master_breakpoint)
6487 (create_std_terminate_master_breakpoint)
6488 (create_exception_master_breakpoint): Update.
6489 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6490 * c-exp.y (classify_name): Update.
6491 * coffread.c (coff_symfile_read): Update.
6492 * common/agent.c (agent_look_up_symbols): Update.
6493 * d-lang.c (d_main_name): Update.
6494 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6495 * dec-thread.c (enable_dec_thread): Update.
6496 * dwarf2loc.c (call_site_to_target_addr): Update.
6497 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6498 * eval.c (evaluate_subexp_standard): Update.
6499 * findvar.c (struct minsym_lookup_data) <result>: Change type
6500 to bound_minimal_symbol.
6501 <objfile>: Remove.
6502 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6503 * frame.c (inside_main_func): Update.
6504 * frv-tdep.c (frv_frame_this_id): Update.
6505 * gcore.c (call_target_sbrk): Update.
6506 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6507 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6508 Update.
6509 * go-lang.c (go_main_name): Update.
6510 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6511 (hppa_hpux_find_import_stub_for_addr): Update.
6512 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6513 Update. Change return type.
6514 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6515 type.
6516 * jit.c (jit_breakpoint_re_set_internal): Update.
6517 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6518 Update.
6519 * linux-nat.c (get_signo): Update.
6520 * linux-thread-db.c (inferior_has_bug): Update
6521 * m32c-tdep.c (m32c_return_value)
6522 (m32c_m16c_address_to_pointer): Update.
6523 * m32r-tdep.c (m32r_frame_this_id): Update.
6524 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6525 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6526 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6527 lookup_minimal_symbol. Change return type.
6528 (lookup_minimal_symbol): Remove.
6529 (lookup_bound_minimal_symbol): Update.
6530 (lookup_minimal_symbol_text): Change return type.
6531 (lookup_minimal_symbol_solib_trampoline): Change return type.
6532 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6533 (lookup_minimal_symbol_solib_trampoline): Change return type.
6534 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6535 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6536 (value_nsstring, find_imps): Update.
6537 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6538 * p-lang.c (pascal_main_name): Update.
6539 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6540 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6541 * proc-service.c (ps_pglobal_lookup): Update.
6542 * ravenscar-thread.c (get_running_thread_msymbol): Change
6543 return type.
6544 (has_ravenscar_runtime, get_running_thread_id): Update.
6545 * remote.c (remote_check_symbols): Update.
6546 * sol-thread.c (ps_pglobal_lookup): Update.
6547 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6548 * solib-dsbt.c (lm_base): Update.
6549 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6550 Update.
6551 * solib-irix.c (locate_base): Update.
6552 * solib-som.c (som_solib_create_inferior_hook)
6553 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6554 Update.
6555 * solib-spu.c (spu_enable_break): Update.
6556 * solib-svr4.c (elf_locate_base, enable_break): Update.
6557 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6558 (flush_ea_cache): Update.
6559 * stabsread.c (define_symbol): Update.
6560 * symfile.c (simple_read_overlay_table): Update.
6561 * symtab.c (find_pc_sect_line): Update.
6562 * tracepoint.c (scope_info): Update.
6563 * tui-disasm.c (tui_get_begin_asm_address): Update.
6564 * value.c (value_static_field): Update.
6565
40c1a007
TT
65662014-02-26 Tom Tromey <tromey@redhat.com>
6567
6568 * minsyms.c (prim_record_minimal_symbol_full): Use
6569 SET_MSYMBOL_VALUE_ADDRESS.
6570 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6571 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6572 SET_MSYMBOL_VALUE_ADDRESS.
6573 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6574 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6575
efd66ac6
TT
65762014-02-26 Tom Tromey <tromey@redhat.com>
6577
6578 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6579 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6580 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6581 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6582 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6583 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6584 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6585 * ada-lang.c (ada_main_name): Update.
6586 (ada_lookup_simple_minsym): Update.
6587 (ada_make_symbol_completion_list): Update.
6588 (ada_add_standard_exceptions): Update.
6589 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6590 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6591 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6592 * arm-tdep.c (skip_prologue_function): Update.
6593 (arm_skip_stack_protector, arm_skip_stub): Update.
6594 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6595 (arm_wince_skip_main_prologue): Update.
6596 * auxv.c (ld_so_xfer_auxv): Update.
6597 * avr-tdep.c (avr_scan_prologue): Update.
6598 * ax-gdb.c (gen_var_ref): Update.
6599 * block.c (call_site_for_pc): Update.
6600 * blockframe.c (get_pc_function_start): Update.
6601 (find_pc_partial_function_gnu_ifunc): Update.
6602 * breakpoint.c (create_overlay_event_breakpoint): Update.
6603 (create_longjmp_master_breakpoint): Update.
6604 (create_std_terminate_master_breakpoint): Update.
6605 (create_exception_master_breakpoint): Update.
6606 (resolve_sal_pc): Update.
6607 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6608 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6609 Update.
6610 * c-valprint.c (c_val_print): Update.
6611 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6612 * coffread.c (coff_symfile_read): Update.
6613 * common/agent.c (agent_look_up_symbols): Update.
6614 * dbxread.c (find_stab_function_addr): Update.
6615 (end_psymtab): Update.
6616 * dwarf2loc.c (call_site_to_target_addr): Update.
6617 (func_verify_no_selftailcall): Update.
6618 (tailcall_dump): Update.
6619 (call_site_find_chain_1): Update.
6620 (dwarf_expr_reg_to_entry_parameter): Update.
6621 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6622 (elf_gnu_ifunc_resolve_by_got): Update.
6623 * f-valprint.c (info_common_command): Update.
6624 * findvar.c (read_var_value): Update.
6625 * frame.c (get_prev_frame_1): Update.
6626 (inside_main_func): Update.
6627 * frv-tdep.c (frv_skip_main_prologue): Update.
6628 (frv_frame_this_id): Update.
6629 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6630 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6631 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6632 (gnuv3_skip_trampoline): Update.
6633 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6634 (hppa64_hpux_in_solib_call_trampoline): Update.
6635 (hppa_hpux_skip_trampoline_code): Update.
6636 (hppa64_hpux_search_dummy_call_sequence): Update.
6637 (hppa_hpux_find_import_stub_for_addr): Update.
6638 (hppa_hpux_find_dummy_bpaddr): Update.
6639 * hppa-tdep.c (hppa_symbol_address)
6640 (hppa_lookup_stub_minimal_symbol): Update.
6641 * i386-tdep.c (i386_skip_main_prologue): Update.
6642 (i386_pe_skip_trampoline_code): Update.
6643 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6644 * infcall.c (get_function_name): Update.
6645 * infcmd.c (until_next_command): Update.
6646 * jit.c (jit_breakpoint_re_set_internal): Update.
6647 (jit_inferior_init): Update.
6648 * linespec.c (minsym_found): Update.
6649 (add_minsym): Update.
6650 * linux-fork.c (info_checkpoints_command): Update.
6651 * linux-nat.c (get_signo): Update.
6652 * linux-thread-db.c (inferior_has_bug): Update.
6653 * m32c-tdep.c (m32c_return_value): Update.
6654 (m32c_m16c_address_to_pointer): Update.
6655 (m32c_m16c_pointer_to_address): Update.
6656 * m32r-tdep.c (m32r_frame_this_id): Update.
6657 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6658 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6659 * maint.c (maintenance_translate_address): Update.
6660 * minsyms.c (add_minsym_to_hash_table): Update.
6661 (add_minsym_to_demangled_hash_table): Update.
6662 (msymbol_objfile): Update.
6663 (lookup_minimal_symbol): Update.
6664 (iterate_over_minimal_symbols): Update.
6665 (lookup_minimal_symbol_text): Update.
6666 (lookup_minimal_symbol_by_pc_name): Update.
6667 (lookup_minimal_symbol_solib_trampoline): Update.
6668 (lookup_minimal_symbol_by_pc_section_1): Update.
6669 (lookup_minimal_symbol_and_objfile): Update.
6670 (prim_record_minimal_symbol_full): Update.
6671 (compare_minimal_symbols): Update.
6672 (compact_minimal_symbols): Update.
6673 (build_minimal_symbol_hash_tables): Update.
6674 (install_minimal_symbols): Update.
6675 (terminate_minimal_symbol_table): Update.
6676 (find_solib_trampoline_target): Update.
6677 (minimal_symbol_upper_bound): Update.
6678 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6679 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6680 (mips_skip_pic_trampoline_code): Update.
6681 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6682 * objc-lang.c (selectors_info): Update.
6683 (classes_info): Update.
6684 (find_methods): Update.
6685 (find_imps): Update.
6686 (find_objc_msgsend): Update.
6687 * objfiles.c (objfile_relocate1): Update.
6688 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6689 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6690 * p-valprint.c (pascal_val_print): Update.
6691 * parse.c (write_exp_msymbol): Update.
6692 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6693 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6694 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6695 * printcmd.c (build_address_symbolic): Update.
6696 (sym_info): Update.
6697 (address_info): Update.
6698 * proc-service.c (ps_pglobal_lookup): Update.
6699 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6700 (find_pc_sect_psymtab): Update.
6701 * python/py-framefilter.c (py_print_frame): Update.
6702 * ravenscar-thread.c (get_running_thread_id): Update.
6703 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6704 Update.
6705 * remote.c (remote_check_symbols): Update.
6706 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6707 (rs6000_skip_trampoline_code): Update.
6708 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6709 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6710 * solib-dsbt.c (lm_base): Update.
6711 * solib-frv.c (lm_base): Update.
6712 (main_got): Update.
6713 * solib-irix.c (locate_base): Update.
6714 * solib-som.c (som_solib_create_inferior_hook): Update.
6715 (som_solib_desire_dynamic_linker_symbols): Update.
6716 (link_map_start): Update.
6717 * solib-spu.c (spu_enable_break): Update.
6718 (ocl_enable_break): Update.
6719 * solib-svr4.c (elf_locate_base): Update.
6720 (enable_break): Update.
6721 * spu-tdep.c (spu_get_overlay_table): Update.
6722 (spu_catch_start): Update.
6723 (flush_ea_cache): Update.
6724 * stabsread.c (define_symbol): Update.
6725 (scan_file_globals): Update.
6726 * stack.c (find_frame_funname): Update.
6727 (frame_info): Update.
6728 * symfile.c (simple_read_overlay_table): Update.
6729 (simple_overlay_update): Update.
6730 * symmisc.c (dump_msymbols): Update.
6731 * symtab.c (fixup_section): Update.
6732 (find_pc_sect_line): Update.
6733 (skip_prologue_sal): Update.
6734 (search_symbols): Update.
6735 (print_msymbol_info): Update.
6736 (rbreak_command): Update.
6737 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6738 (completion_list_objc_symbol): Update.
6739 (default_make_symbol_completion_list_break_on): Update.
6740 * tracepoint.c (scope_info): Update.
6741 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6742 (tui_get_begin_asm_address): Update.
6743 * valops.c (find_function_in_inferior): Update.
6744 * value.c (value_static_field): Update.
6745 (value_fn_field): Update.
6746
50e65b17
TT
67472014-02-26 Tom Tromey <tromey@redhat.com>
6748
6749 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6750 bound minimal symbols. Move code that knows about minsym
6751 table layout...
6752 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6753 function.
6754 * minsyms.h (minimal_symbol_upper_bound): Declare.
6755 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6756 minimal_symbol_upper_bound.
6757
1b588015
JB
67582014-02-27 Joel Brobecker <brobecker@adacore.com>
6759
6760 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6761 Use the type's name if its basic type does not have a tag.
6762
dbb9c2b1
JB
67632014-02-27 Joel Brobecker <brobecker@adacore.com>
6764
6765 * dwarf2read.c (read_subrange_type): Add comment.
6766
55426c9d
JB
67672014-02-27 Joel Brobecker <brobecker@adacore.com>
6768
6769 * dwarf2read.c (update_enumeration_type_from_children): New
6770 function, mostly extracted from process_structure_scope.
6771 (read_enumeration_type): Call update_enumeration_type_from_children.
6772 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6773 and flag_flag_enum fields.
6774
f2fce0ca
PA
67752014-02-26 Pedro Alves <palves@redhat.com>
6776
6777 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6778 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6779 to_xfer_partial method.
6780
7a44e40e
PA
67812014-02-26 Pedro Alves <palves@redhat.com>
6782
6783 * target.c (complete_target_initialization): Don't install
6784 default_xfer_partial as to_xfer_partial hook.
6785 (nomemory): Delete.
6786 (update_current_target): Don't INHERIT nor de_fault
6787 deprecated_xfer_memory. Delete de_fault macro.
6788 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6789 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6790 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6791 field.
6792
bd265cd0
PA
67932014-02-26 Pedro Alves <palves@redhat.com>
6794
6795 * go32-nat.c (my_write_child): New function.
6796 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6797 (go32_xfer_partial): New function.
6798 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6799 Instead install a to_xfer_partial hook.
6800
9d46c4e5
PA
68012014-02-26 Pedro Alves <palves@redhat.com>
6802
6803 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6804 to_xfer_partial helper. Rewrite.
6805 (procfs_xfer_partial): New function.
6806 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6807 Install a to_xfer_partial hook.
6808
a1583b1f
PA
68092014-02-26 Pedro Alves <palves@redhat.com>
6810
6811 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6812 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6813 (m32r_xfer_partial): New function.
6814 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6815 Install a to_xfer_partial hook.
6816
6df1b29f
PA
68172014-02-26 Pedro Alves <palves@redhat.com>
6818
6819 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6820 helper.
6821 (mips_xfer_partial): New function.
6822 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6823 hook. Install a to_xfer_partial hook.
6824
dc53a7ad
JB
68252014-02-26 Joel Brobecker <brobecker@adacore.com>
6826
6827 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6828 * gdbtypes.c (create_array_type_with_stride): New function,
6829 renaming create_array_type, but with an added parameter
6830 called "bit_stride".
6831 (create_array_type): Re-implement using
6832 create_array_type_with_stride.
6833 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6834 and DW_AT_bit_stride attributes.
6835
12ab52e9
PA
68362014-02-26 Pedro Alves <palves@redhat.com>
6837
6838 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6839 task-specific breakpoints.
6840
d16461ae
PA
68412014-02-25 Pedro Alves <palves@redhat.com>
6842
6843 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6844 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6845
a8b16220
SS
68462014-02-25 Stan Shebs <stan@codesourcery.com>
6847
6848 * defs.h: Annotate comments for Doxygen.
6849
b9e795ee
TT
68502014-02-25 Tom Tromey <tromey@redhat.com>
6851
6852 * target.h (target_ignore): Don't declare.
6853 * target.c (target_ignore): Remove.
6854
849c862e
JK
68552014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6856
6857 PR gdb/16626
6858 * auto-load.c (auto_load_objfile_script_1): Change filename to
6859 debugfile.
6860
475109d8
JB
68612014-02-25 Joel Brobecker <brobecker@adacore.com>
6862
6863 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6864 documentation. Adjust prototype to match the target_ops
6865 to_xfer_partial method. Adjust implementation accordingly.
6866
e186c3bd
HZ
68672014-02-25 Hui Zhu <hui@codesourcery.com>
6868
6869 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6870 to_traceframe_info.
6871
6d451942
KB
68722014-02-25 Kevin Buettner <kevinb@redhat.com>
6873
041ab8b4 6874 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6875 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6876 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6877 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6878 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6879 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6880 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6881 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6882 New constants.
6883 (rl78_register_type): Use a data pointer type for SP and
6884 new pseudo registers mentioned above. Use a 16 bit integer
6885 type for all other register pairs.
6886 (rl78_register_name, rl78_g10_register_name): Update for
6887 new pseudo registers.
6888 (rl78_pseudo_register_read): Likewise.
6889 (rl78_pseudo_register_write): Likewise.
6890 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6891 to the newly added pseudo registers.
6892
eddf0bae
DE
68932014-02-24 Doug Evans <dje@google.com>
6894
6895 * value.c (record_latest_value): Fix comment.
6896 * printcmd.c (print_command_1): Remove code to handle -1 return from
6897 record_latest_value.
6898
e96027e0
PA
68992014-02-24 Pedro Alves <palves@redhat.com>
6900
6901 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6902 deprecated_xfer_memory hook.
6903 (procfs_xfer_partial): Call procfs_xfer_memory instead
6904 of the deprecated_xfer_memory target hook.
6905 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6906 helper.
6907
0837c976
YZ
69082014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6909
6910 * windows-nat.c (windows_xfer_shared_libraries): Return
6911 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6912 requested object is TARGET_OBJECT_LIBRARIES.
6913
bc113b4e
YQ
69142014-02-24 Yao Qi <yao@codesourcery.com>
6915
6916 * target.h (enum target_xfer_status)
6917 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6918 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6919 explicitly. New.
6920 * corefile.c (memory_error_message): User updated.
6921 * exec.c (section_table_read_available_memory): Likewise.
6922 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6923 * target.c (target_xfer_status_to_string): Likewise.
6924 (raw_memory_xfer_partial): Likewise.
6925 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6926 * valops.c (read_value_memory): Likewise.
6927 * exec.h: Update comments.
6928
01cb8804
YQ
69292014-02-24 Yao Qi <yao@codesourcery.com>
6930
6931 * target.c (target_xfer_status_to_string): Rename argument err
6932 to status.
6933 * target.h (target_xfer_status_to_string): Update declaration.
6934 Replace target_xfer_error_to_string with
6935 target_xfer_status_to_string in comment.
6936
93063aa6
YQ
69372014-02-24 Yao Qi <yao@codesourcery.com>
6938
6939 * mips-linux-nat.c (super_close): Update its type.
6940 (mips_linux_close): Pass 'self' to super_close.
6941
5c328c05
YQ
69422014-02-24 Yao Qi <yao@codesourcery.com>
6943
6944 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6945 * corefile.c (read_memory): Adjusted.
6946 * target.c (target_write_with_progress): Adjusted.
6947
f73023dd
YQ
69482014-02-23 Yao Qi <yao@codesourcery.com>
6949
6950 Revert two patches:
6951
6952 2013-10-25 Yao Qi <yao@codesourcery.com>
6953
6954 * remote.c (remote_traceframe_info): Return early if
6955 traceframe is not selected.
6956
6957 2013-07-19 Yao Qi <yao@codesourcery.com>
6958
6959 * target.c (update_current_target): Change the default action
6960 of 'to_traceframe_info' from tcomplain to return_zero.
6961 * target.h (struct target_ops) <to_traceframe_info>: Add more
6962 comments.
6963
5a2eb0ef
YQ
69642014-02-23 Yao Qi <yao@codesourcery.com>
6965
6966 * valops.c (read_value_memory): Rewrite it. Call
6967 target_xfer_partial in a loop.
6968 * exec.h (section_table_available_memory): Remove declaration.
6969 Move comments to ...
6970 * exec.c (section_table_available_memory): ... here. Make it
6971 static.
6972
1ee79381
YQ
69732014-02-23 Yao Qi <yao@codesourcery.com>
6974
6975 * exec.c (section_table_read_available_memory): New function.
6976 * exec.h (section_table_read_available_memory): Declare.
6977 * ctf.c (ctf_xfer_partial): Call
6978 section_table_read_available_memory.
6979 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6980
1ca49d37
YQ
69812014-02-23 Yao Qi <yao@codesourcery.com>
6982
6983 * ctf.c (ctf_xfer_partial): Move code to ...
6984 * exec.c (exec_read_partial_read_only): ... it. New function.
6985 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6986 * tracefile.c: Include "exec.h".
6987 * exec.h (exec_read_partial_read_only): Declare.
6988
a283690e
YQ
69892014-02-23 Yao Qi <yao@codesourcery.com>
6990
6991 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6992 (tfile_has_memory): Remove.
6993 (init_tfile_ops): Don't set fields to_has_all_memory and
6994 to_has_memory of tfile_ops.
6995 * tracefile.c (tracefile_has_all_memory): New function.
6996 (tracefile_has_memory): New function.
6997 (init_tracefile_ops): Initialize fields to_has_all_memory and
6998 to_has_memory of 'ops'.
6999
12e03cd0
YQ
70002014-02-23 Yao Qi <yao@codesourcery.com>
7001
7002 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7003 (ctf_thread_alive, ctf_get_trace_status): Remove.
7004 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7005 init_tracefile_ops.
7006 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7007 (tfile_has_stack, tfile_has_registers): Remove.
7008 (tfile_thread_alive): Remove.
7009 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7010 init_tracefile_ops.
7011 * tracefile.c (tracefile_has_stack): New function.
7012 (tracefile_has_registers): New function.
7013 (tracefile_thread_alive): New function.
7014 (tracefile_get_trace_status): New function.
7015 (init_tracefile_ops): New function.
7016 * tracefile.h (init_tracefile_ops): Declare.
7017
11395323
YQ
70182014-02-23 Yao Qi <yao@codesourcery.com>
7019
7020 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7021 (O_LARGEFILE): Likewise.
7022 (tfile_ops): Likewise.
7023 (TRACE_HEADER_SIZE): Likewise.
7024 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7025 (cur_data_size): Likewise.
7026 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7027 (tfile_close, tfile_files_info): Likewise.
7028 (tfile_get_trace_status): Likewise.
7029 (tfile_get_tracepoint_status): Likewise.
7030 (tfile_get_traceframe_address): Likewise.
7031 (tfile_trace_find, match_blocktype): Likewise.
7032 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7033 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7034 (tfile_get_trace_state_variable_value): Likewise.
7035 (tfile_has_all_memory, tfile_has_memory): Likewise.
7036 (tfile_has_stack, tfile_has_registers): Likewise.
7037 (tfile_thread_alive, build_traceframe_info): Likewise.
7038 (tfile_traceframe_info, init_tfile_ops): Likewise.
7039 (_initialize_tracepoint): Don't call init_tfile_ops
7040 and add_target_with_completer.
7041 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7042 exec.h, completer.h and filenames.h.
7043 (_initialize_tracefile_tfile): New function.
7044
7951c4eb
YQ
70452014-02-23 Yao Qi <yao@codesourcery.com>
7046
7047 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7048 tracefile-tfile.o.
7049 (HFILES_NO_SRCDIR): Add tracefile.h.
7050 * ctf.c: Include "tracefile.h".
7051 * tracefile.h: New file.
7052 * tracefile.c: New file
7053 * tracefile-tfile.c: New file.
7054 * tracepoint.c: Include "tracefile.h".
7055 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7056 (stop_reason_names): Add const.
7057 (trace_file_writer_xfree): Move it to tracefile.c.
7058 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7059 (trace_save_ctf): Likewise.
7060 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7061 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7062 (tfile_write_header, tfile_write_regblock_type): Likewise.
7063 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7064 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7065 (tfile_write_raw_data, tfile_end): Likewise.
7066 (tfile_trace_file_writer_new): Likewise.
7067 (free_uploaded_tp): Make it extern.
7068 (free_uploaded_tsv): Make it extern.
7069 (_initialize_tracepoint): Move code to register command 'tsave'
7070 to tracefile.c.
7071 * tracepoint.h (stop_reason_names): Declare.
7072 (struct trace_frame_write_ops): Move it to tracefile.h.
7073 (struct trace_file_write_ops): Likewise.
7074 (struct trace_file_writer): Likewise.
7075 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7076
184cd072
JK
70772014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7078
7079 PR gdb/16594
7080 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7081 process name.
7082 (get_cores_used_by_process): New parameter num_cores, use it.
7083 (linux_xfer_osdata_processes): Pass num_cores to it.
7084 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7085 process name.
7086
c63528fc
AK
70872014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7088
7089 * target.c (memory_xfer_partial): Fix length arg in call to
7090 breakpoint_xfer_memory.
7091
d7b30f67
SDJ
70922014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7093
7094 PR tdep/16397
7095 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7096 number comes after the + or - signs. Adjust length of register
7097 name to be extracted.
7098
8838afaf
TT
70992014-02-20 Tom Tromey <tromey@redhat.com>
7100
7101 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7102 (ada_varobj_ops): Mark "extern".
7103
05227d14
TT
71042014-02-20 Tom Tromey <tromey@redhat.com>
7105
7106 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7107
1254eefc
DE
71082014-02-20 Doug Evans <xdje42@gmail.com>
7109
7110 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7111 All callers updated.
7112 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7113 All callers updated.
7114 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7115 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7116
adde2bff
DE
71172014-02-20 lin zuojian <manjian2006@gmail.com>
7118 Joel Brobecker <brobecker@adacore.com>
7119 Doug Evans <xdje42@gmail.com>
7120
7121 PR symtab/16581
7122 * dwarf2read.c (struct die_info): New member in_process.
7123 (reset_die_in_process): New function.
7124 (process_die): Set it at the start, reset when returning.
7125 (inherit_abstract_dies): Only call process_die if origin_child_die
7126 not already being processed.
7127
3be75f87
JB
71282014-02-20 Joel Brobecker <brobecker@adacore.com>
7129
7130 * windows-nat.c (handle_unload_dll): Add function documentation.
7131 (do_initial_windows_stuff): Add comment explaining why we wait
7132 until after inferior initialization has finished before
7133 processing all DLLs.
7134
47f7ffdb
JB
71352014-02-20 Joel Brobecker <brobecker@adacore.com>
7136
7137 * windows-nat.c (get_module_name): Delete.
7138 (windows_get_exec_module_filename): New function, mostly
7139 inspired from get_module_name.
7140 (windows_pid_to_exec_file): Replace call to get_module_name
7141 by call to windows_get_exec_module_filename.
7142
1cd9feab
JB
71432014-02-20 Joel Brobecker <brobecker@adacore.com>
7144
7145 * windows-nat.c (handle_load_dll): Rewrite this function's
7146 introductory comment. Remove code using get_module_name
7147 to get the DLL's name.
7148
ea39ad35
JB
71492014-02-20 Joel Brobecker <brobecker@adacore.com>
7150
7151 * windows-nat.c (get_windows_debug_event): Ignore
7152 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7153 if windows_initialization_done == 0.
7154 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7155 Adjust implementation to always load all DLLs.
7156 (do_initial_windows_stuff): Replace call to
7157 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7158
95060284
JB
71592014-02-20 Joel Brobecker <brobecker@adacore.com>
7160
7161 * windows-nat.c (_initialize_windows_nat): Deprecate the
7162 "dll-symbols" command. Turn the "add-shared-symbol-files"
7163 and "assf" aliases into commands, and deprecate them as well.
7164 * NEWS: Add entry explaining that "dll-symbols" and its two
7165 aliases are now deprecated.
7166
8d4fdb12
JB
71672014-02-20 Joel Brobecker <brobecker@adacore.com>
7168
7169 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7170 new-line in debug string. Remove trailing spaces.
7171
1b281443
SS
71722014-02-19 Stan Shebs <stan@codesourcery.com>
7173
7174 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7175
f7bd0f78
SC
71762014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7177
7178 * NEWS: Add entry for the new feature
7179 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7180 and class values.
7181
399ebc3d
SS
71822014-02-19 Stan Shebs <stan@codesourcery.com>
7183
7184 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7185
c658158d
PA
71862014-02-19 Pedro Alves <palves@redhat.com>
7187
7188 * common/ptid.h (struct ptid): Mention that process_stratum
7189 targets should prefer ptid.lwp.
7190
ba348170
PA
71912014-02-19 Pedro Alves <palves@redhat.com>
7192
7193 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7194 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7195 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7196 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7197 store remote thread ids rather than ptid.tid.
7198 (_initialize_remote): Adjust.
7199
ac01945b
TT
72002014-02-19 Tom Tromey <tromey@redhat.com>
7201
7202 * target.c (target_get_unwinder): Rewrite.
7203 (target_get_tailcall_unwinder): Rewrite.
7204 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7205 (record_btrace_to_get_tailcall_unwinder): New function.
7206 (init_record_btrace_ops): Update.
7207 * target.h (struct target_ops) <to_get_unwinder,
7208 to_get_tailcall_unwinder>: Now function pointers. Use
7209 TARGET_DEFAULT_RETURN.
7210
8476dc92
TT
72112014-02-19 Tom Tromey <tromey@redhat.com>
7212
7213 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7214 argument.
7215 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7216
c0eca49f
TT
72172014-02-19 Tom Tromey <tromey@redhat.com>
7218
7219 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7220 directly.
7221 * target-delegates.c: Rebuild.
7222 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7223 TARGET_DEFAULT_FUNC.
7224 * target.c (default_target_decr_pc_after_break): Rename from
7225 forward_target_decr_pc_after_break. Simplify.
7226 (target_decr_pc_after_break): Rely on delegation.
7227
596b6b39
TT
72282014-02-19 Tom Tromey <tromey@redhat.com>
7229
7230 * target.c (update_current_target): Do not INHERIT to_doc or
7231 to_magic. Do not de_fault to_open or to_close.
7232
b427c1bc
TT
72332014-02-19 Tom Tromey <tromey@redhat.com>
7234
7235 * gcore.h (objfile_find_memory_regions): Declare.
7236 * gcore.c (objfile_find_memory_regions): No longer static. Add
7237 "self" argument.
7238 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7239 * exec.c: Include gcore.h.
7240 (exec_set_find_memory_regions): Remove.
7241 (exec_find_memory_regions): Remove.
7242 (exec_do_find_memory_regions): Remove.
7243 (init_exec_ops): Update.
7244 * defs.h (exec_set_find_memory_regions): Remove.
7245
9b144037
TT
72462014-02-19 Tom Tromey <tromey@redhat.com>
7247
7248 * target-delegates.c: Rebuild.
7249 * target.h (struct target_ops) <to_extra_thread_info,
7250 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7251 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7252 not 0, in TARGET_DEFAULT_RETURN.
7253
555bbdeb
TT
72542014-02-19 Tom Tromey <tromey@redhat.com>
7255
7256 * target.c (complete_target_initialization): Remove casts. Use
7257 return_zero_has_execution.
7258 (return_zero): Add "ignore" argument.
7259 (return_zero_has_execution): New function.
7260 (init_dummy_target): Remove casts. Use
7261 return_zero_has_execution.
7262
be4ddd36
TT
72632014-02-19 Tom Tromey <tromey@redhat.com>
7264
7265 * target.c (update_current_target): Update comments. Do not
7266 INHERIT to_stratum.
7267
2117c711
TT
72682014-02-19 Tom Tromey <tromey@redhat.com>
7269
7270 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7271 needed.
7272 * corelow.c (core_read_description): Delegate when needed.
7273 * remote.c (remote_read_description): Delegate when needed.
7274 * target-delegates.c: Rebuild.
7275 * target.c (target_read_description): Rewrite.
7276 * target.h (struct target_ops) <to_read_description>: Update
7277 comment. Use TARGET_DEFAULT_RETURN.
7278
e88ef65c
TT
72792014-02-19 Tom Tromey <tromey@redhat.com>
7280
7281 * target-delegates.c: Rebuild.
7282 * target.c (update_current_target): Don't inherit or default
7283 to_can_run.
7284 (find_default_run_target): Check against delegate_can_run.
7285 * target.h (struct target_ops) <to_can_run>: Use
7286 TARGET_DEFAULT_RETURN.
7287
86a0854a
TT
72882014-02-19 Tom Tromey <tromey@redhat.com>
7289
7290 * target-delegates.c: Rebuild.
7291 * target.c (target_disconnect): Unconditionally delegate.
7292 * target.h (struct target_ops) <to_disconnect>: Use
7293 TARGET_DEFAULT_NORETURN.
7294
ee97f592
TT
72952014-02-19 Tom Tromey <tromey@redhat.com>
7296
7297 * record.c (record_stop): Unconditionally delegate.
7298 * target-delegates.c: Rebuild.
7299 * target.c (target_stop_recording): Unconditionally delegate.
7300 * target.h (struct target_ops) <to_stop_recording>: Use
7301 TARGET_DEFAULT_IGNORE.
7302
6dc7fcf4
TT
73032014-02-19 Tom Tromey <tromey@redhat.com>
7304
7305 * target-delegates.c: Rebuild.
7306 * target.c (target_enable_btrace): Unconditionally delegate.
7307 * target.h (struct target_ops) <to_enable_btrace>: Use
7308 TARGET_DEFAULT_NORETURN.
7309
eb5b20d4
TT
73102014-02-19 Tom Tromey <tromey@redhat.com>
7311
7312 * target-delegates.c: Rebuild.
7313 * target.c (target_read_btrace): Unconditionally delegate.
7314 * target.h (struct target_ops) <to_read_btrace>: Use
7315 TARGET_DEFAULT_NORETURN.
7316
9ace480d
TT
73172014-02-19 Tom Tromey <tromey@redhat.com>
7318
7319 * target-delegates.c: Rebuild.
7320 * target.c (target_teardown_btrace): Unconditionally delegate.
7321 * target.h (struct target_ops) <to_teardown_btrace>: Use
7322 TARGET_DEFAULT_NORETURN.
7323
8dc292d3
TT
73242014-02-19 Tom Tromey <tromey@redhat.com>
7325
7326 * target-delegates.c: Rebuild.
7327 * target.c (target_disable_btrace): Unconditionally delegate.
7328 * target.h (struct target_ops) <to_disable_btrace>: Use
7329 TARGET_DEFAULT_NORETURN.
7330
58a5184e
TT
73312014-02-19 Tom Tromey <tromey@redhat.com>
7332
7333 * target-delegates.c: Rebuild.
7334 * target.c (default_search_memory): New function.
7335 (simple_search_memory): Update comment.
7336 (target_search_memory): Unconditionally delegate.
7337 * target.h (struct target_ops) <to_search_memory>: Use
7338 TARGET_DEFAULT_FUNC.
7339
8de71aab
TT
73402014-02-19 Tom Tromey <tromey@redhat.com>
7341
7342 * auxv.c (default_auxv_parse): No longer static.
7343 (target_auxv_parse): Unconditionally delegate.
7344 * auxv.h (default_auxv_parse): Declare.
7345 * target-delegates.c: Rebuild.
7346 * target.c: Include auxv.h.
7347 * target.h (struct target_ops) <to_auxv_parse>: Use
7348 TARGET_DEFAULT_FUNC.
7349
6b2c5a57
TT
73502014-02-19 Tom Tromey <tromey@redhat.com>
7351
7352 * target-delegates.c: Rebuild.
7353 * target.c (target_memory_map): Unconditionally delegate.
7354 * target.h (struct target_ops) <to_memory_map>: Use
7355 TARGET_DEFAULT_RETURN.
7356
cbffc065
TT
73572014-02-19 Tom Tromey <tromey@redhat.com>
7358
7359 * target-delegates.c: Rebuild.
7360 * target.c (target_thread_alive): Unconditionally delegate.
7361 * target.h (struct target_ops) <to_thread_alive>: Use
7362 TARGET_DEFAULT_RETURN.
7363
f09e2107
TT
73642014-02-19 Tom Tromey <tromey@redhat.com>
7365
7366 * target-delegates.c: Rebuild.
7367 * target.c (target_save_record): Unconditionally delegate.
7368 * target.h (struct target_ops) <to_save_record>: Use
7369 TARGET_DEFAULT_NORETURN.
7370
07366925
TT
73712014-02-19 Tom Tromey <tromey@redhat.com>
7372
7373 * target-delegates.c: Rebuild.
7374 * target.c (target_delete_record): Unconditionally delegate.
7375 * target.h (struct target_ops) <to_delete_record>: Use
7376 TARGET_DEFAULT_NORETURN.
7377
dd2e9d25
TT
73782014-02-19 Tom Tromey <tromey@redhat.com>
7379
7380 * target-delegates.c: Rebuild.
7381 * target.c (target_record_is_replaying): Unconditionally
7382 delegate.
7383 * target.h (struct target_ops) <to_record_is_replaying>: Use
7384 TARGET_DEFAULT_RETURN.
7385
671e76cc
TT
73862014-02-19 Tom Tromey <tromey@redhat.com>
7387
7388 * target-delegates.c: Rebuild.
7389 * target.c (target_goto_record_begin): Unconditionally delegate.
7390 * target.h (struct target_ops) <to_goto_record_begin>: Use
7391 TARGET_DEFAULT_NORETURN.
7392
e9179bb3
TT
73932014-02-19 Tom Tromey <tromey@redhat.com>
7394
7395 * target-delegates.c: Rebuild.
7396 * target.c (target_goto_record_end): Unconditionally delegate.
7397 * target.h (struct target_ops) <to_goto_record_end>: Use
7398 TARGET_DEFAULT_NORETURN.
7399
05969c84
TT
74002014-02-19 Tom Tromey <tromey@redhat.com>
7401
7402 * target-delegates.c: Rebuild.
7403 * target.c (target_goto_record): Unconditionally delegate.
7404 * target.h (struct target_ops) <to_goto_record>: Use
7405 TARGET_DEFAULT_NORETURN.
7406
3679abfa
TT
74072014-02-19 Tom Tromey <tromey@redhat.com>
7408
7409 * target-delegates.c: Rebuild.
7410 * target.c (target_insn_history): Unconditionally delegate.
7411 * target.h (struct target_ops) <to_insn_history>: Use
7412 TARGET_DEFAULT_NORETURN.
7413
8444ab58
TT
74142014-02-19 Tom Tromey <tromey@redhat.com>
7415
7416 * target-delegates.c: Rebuild.
7417 * target.c (target_insn_history_from): Unconditionally delegate.
7418 * target.h (struct target_ops) <to_insn_history_from>: Use
7419 TARGET_DEFAULT_NORETURN.
7420
c29302cc
TT
74212014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target-delegates.c: Rebuild.
7424 * target.c (target_insn_history_range): Unconditionally delegate.
7425 * target.h (struct target_ops) <to_insn_history_range>: Use
7426 TARGET_DEFAULT_NORETURN.
7427
170049d4
TT
74282014-02-19 Tom Tromey <tromey@redhat.com>
7429
7430 * target-delegates.c: Rebuild.
7431 * target.c (target_call_history): Unconditionally delegate.
7432 * target.h (struct target_ops) <to_call_history>: Use
7433 TARGET_DEFAULT_NORETURN.
7434
16fc27d6
TT
74352014-02-19 Tom Tromey <tromey@redhat.com>
7436
7437 * target-delegates.c: Rebuild.
7438 * target.c (target_call_history_from): Unconditionally delegate.
7439 * target.h (struct target_ops) <to_call_history_from>: Use
7440 TARGET_DEFAULT_NORETURN.
7441
115d9817
TT
74422014-02-19 Tom Tromey <tromey@redhat.com>
7443
7444 * target-delegates.c: Rebuild.
7445 * target.c (target_call_history_range): Unconditionally delegate.
7446 * target.h (struct target_ops) <to_call_history_range>: Use
7447 TARGET_DEFAULT_NORETURN.
7448
eb276a6b
TT
74492014-02-19 Tom Tromey <tromey@redhat.com>
7450
7451 * target-delegates.c: Rebuild.
7452 * target.c (target_verify_memory): Unconditionally delegate.
7453 * target.h (struct target_ops) <to_verify_memory>: Use
7454 TARGET_DEFAULT_NORETURN.
7455
9e538d0d
TT
74562014-02-19 Tom Tromey <tromey@redhat.com>
7457
7458 * target-delegates.c: Rebuild.
7459 * target.c (target_core_of_thread): Unconditionally delegate.
7460 * target.h (struct target_ops) <to_core_of_thread>: Use
7461 TARGET_DEFAULT_RETURN.
7462
f6fb2925
TT
74632014-02-19 Tom Tromey <tromey@redhat.com>
7464
7465 * target-delegates.c: Rebuild.
7466 * target.c (target_flash_done): Unconditionally delegate.
7467 * target.h (struct target_ops) <to_flash_done>: Use
7468 TARGET_DEFAULT_NORETURN.
7469
e8a6c6ac
TT
74702014-02-19 Tom Tromey <tromey@redhat.com>
7471
7472 * target-delegates.c: Rebuild.
7473 * target.c (target_flash_erase): Unconditionally delegate.
7474 * target.h (struct target_ops) <to_flash_erase>: Use
7475 TARGET_DEFAULT_NORETURN.
7476
7e35c012
TT
74772014-02-19 Tom Tromey <tromey@redhat.com>
7478
7479 * target-delegates.c: Rebuild.
7480 * target.c (target_get_section_table): Unconditionally delegate.
7481 * target.h (struct target_ops) <to_get_section_table>: Use
7482 TARGET_DEFAULT_RETURN.
7483
770234d3
TT
74842014-02-19 Tom Tromey <tromey@redhat.com>
7485
7486 * target-delegates.c: Rebuild.
7487 * target.c (target_pid_to_str): Unconditionally delegate.
7488 (init_dummy_target): Don't initialize to_pid_to_str.
7489 (default_pid_to_str): Rename from dummy_pid_to_str.
7490 * target.h (struct target_ops) <to_pid_to_str>: Use
7491 TARGET_DEFAULT_FUNC.
7492
09b0dc2b
TT
74932014-02-19 Tom Tromey <tromey@redhat.com>
7494
7495 * target-delegates.c: Rebuild.
7496 * target.c (target_find_new_threads): Unconditionally delegate.
7497 * target.h (struct target_ops) <to_find_new_threads>: Use
7498 TARGET_DEFAULT_RETURN.
7499
7d4f8efa
TT
75002014-02-19 Tom Tromey <tromey@redhat.com>
7501
7502 * target-delegates.c: Rebuild.
7503 * target.c (target_program_signals): Unconditionally delegate.
7504 * target.h (struct target_ops) <to_program_signals>: Use
7505 TARGET_DEFAULT_IGNORE.
7506
035cad7f
TT
75072014-02-19 Tom Tromey <tromey@redhat.com>
7508
7509 * target-delegates.c: Rebuild.
7510 * target.c (target_pass_signals): Unconditionally delegate.
7511 * target.h (struct target_ops) <to_pass_signals>: Use
7512 TARGET_DEFAULT_IGNORE.
7513
8d657035
TT
75142014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target-delegates.c: Rebuild.
7517 * target.c (default_mourn_inferior): New function.
7518 (target_mourn_inferior): Unconditionally delegate.
7519 * target.h (struct target_ops) <to_mourn_inferior>: Use
7520 TARGET_DEFAULT_FUNC.
7521
098dba18
TT
75222014-02-19 Tom Tromey <tromey@redhat.com>
7523
7524 * target-delegates.c: Rebuild.
7525 * target.c (default_follow_fork): New function.
7526 (target_follow_fork): Unconditionally delegate.
7527 * target.h (struct target_ops) <to_follow_fork>: Use
7528 TARGET_DEFAULT_FUNC.
7529
423a4807
TT
75302014-02-19 Tom Tromey <tromey@redhat.com>
7531
7532 * target-delegates.c: Rebuild.
7533 * target.c (target_kill): Unconditionally delegate.
7534 * target.h (struct target_ops) <to_kill>: Use
7535 TARGET_DEFAULT_NORETURN.
7536
6c7e5e5c
TT
75372014-02-19 Tom Tromey <tromey@redhat.com>
7538
7539 * target-delegates.c: Rebuild.
7540 * target.c (target_masked_watch_num_registers): Unconditionally
7541 delegate.
7542 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7543 Use TARGET_DEFAULT_RETURN.
7544
8b1c364c
TT
75452014-02-19 Tom Tromey <tromey@redhat.com>
7546
7547 * target-delegates.c: Rebuild.
7548 * target.c (target_remove_mask_watchpoint): Unconditionally
7549 delegate.
7550 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7551 TARGET_DEFAULT_RETURN.
7552
cd4ae029
TT
75532014-02-19 Tom Tromey <tromey@redhat.com>
7554
7555 * target-delegates.c: Rebuild.
7556 * target.c (target_insert_mask_watchpoint): Unconditionally
7557 delegate.
7558 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7559 TARGET_DEFAULT_RETURN.
7560
a134316b
TT
75612014-02-19 Tom Tromey <tromey@redhat.com>
7562
7563 * target-delegates.c: Rebuild.
7564 * target.c (target_ranged_break_num_registers): Unconditionally
7565 delegate.
7566 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7567 Use TARGET_DEFAULT_RETURN.
7568
ad5989bd
TT
75692014-02-19 Tom Tromey <tromey@redhat.com>
7570
7571 * target-delegates.c: Rebuild.
7572 * target.c (target_fetch_registers): Unconditionally delegate.
7573 * target.h (struct target_ops) <to_fetch_registers>: Use
7574 TARGET_DEFAULT_NORETURN.
7575
46ee7e8d
TT
75762014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * target-delegates.c: Rebuild.
7579 * target.c (update_current_target): Don't inherit or default
7580 to_stop.
7581 * target.h (struct target_ops) <to_stop>: Use
7582 TARGET_DEFAULT_IGNORE.
7583
843f59ed
TT
75842014-02-19 Tom Tromey <tromey@redhat.com>
7585
7586 * target-delegates.c: Rebuild.
7587 * target.c (update_current_target): Don't inherit or default
7588 to_can_run_breakpoint_commands.
7589 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7590 Use TARGET_DEFAULT_RETURN.
7591
ccfde2a0
TT
75922014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * target-delegates.c: Rebuild.
7595 * target.c (update_current_target): Don't inherit or default
7596 to_supports_evaluation_of_breakpoint_conditions.
7597 * target.h (struct target_ops)
7598 <to_supports_evaluation_of_breakpoint_conditions>: Use
7599 TARGET_DEFAULT_RETURN.
7600
0de91722
TT
76012014-02-19 Tom Tromey <tromey@redhat.com>
7602
7603 * target-delegates.c: Rebuild.
7604 * target.c (update_current_target): Don't inherit or default
7605 to_augmented_libraries_svr4_read.
7606 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7607 Use TARGET_DEFAULT_RETURN.
7608
9a7d8b48
TT
76092014-02-19 Tom Tromey <tromey@redhat.com>
7610
7611 * target-delegates.c: Rebuild.
7612 * target.c (update_current_target): Don't inherit or default
7613 to_can_use_agent.
7614 * target.h (struct target_ops) <to_can_use_agent>: Use
7615 TARGET_DEFAULT_RETURN.
7616
d9db5b21
TT
76172014-02-19 Tom Tromey <tromey@redhat.com>
7618
7619 * target-delegates.c: Rebuild.
7620 * target.c (update_current_target): Don't inherit or default
7621 to_use_agent.
7622 * target.h (struct target_ops) <to_use_agent>: Use
7623 TARGET_DEFAULT_NORETURN.
7624
92155eeb
TT
76252014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target-delegates.c: Rebuild.
7628 * target.c (update_current_target): Don't inherit or default
7629 to_traceframe_info.
7630 (return_null): Remove.
7631 * target.h (struct target_ops) <to_traceframe_info>: Use
7632 TARGET_DEFAULT_RETURN.
7633
d6522a22
TT
76342014-02-19 Tom Tromey <tromey@redhat.com>
7635
7636 * target-delegates.c: Rebuild.
7637 * target.c (update_current_target): Don't inherit or default
7638 to_static_tracepoint_markers_by_strid.
7639 * target.h (struct target_ops)
7640 <to_static_tracepoint_markers_by_strid>: Use
7641 TARGET_DEFAULT_NORETURN.
7642
4c3e4425
TT
76432014-02-19 Tom Tromey <tromey@redhat.com>
7644
7645 * target-delegates.c: Rebuild.
7646 * target.c (update_current_target): Don't inherit or default
7647 to_static_tracepoint_marker_at.
7648 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7649 Use TARGET_DEFAULT_RETURN.
7650
dcd6917f
TT
76512014-02-19 Tom Tromey <tromey@redhat.com>
7652
7653 * target-delegates.c: Rebuild.
7654 * target.c (update_current_target): Don't inherit or default
7655 to_set_permissions.
7656 * target.h (struct target_ops) <to_set_permissions>: Use
7657 TARGET_DEFAULT_IGNORE.
7658
22bcceee
TT
76592014-02-19 Tom Tromey <tromey@redhat.com>
7660
7661 * target-delegates.c: Rebuild.
7662 * target.c (update_current_target): Don't inherit or default
7663 to_get_tib_address.
7664 * target.h (struct target_ops) <to_get_tib_address>: Use
7665 TARGET_DEFAULT_NORETURN.
7666
8586ccaa
TT
76672014-02-19 Tom Tromey <tromey@redhat.com>
7668
7669 * target-delegates.c: Rebuild.
7670 * target.c (update_current_target): Don't inherit or default
7671 to_set_trace_notes.
7672 * target.h (struct target_ops) <to_set_trace_notes>: Use
7673 TARGET_DEFAULT_RETURN.
7674
91df8d1d
TT
76752014-02-19 Tom Tromey <tromey@redhat.com>
7676
7677 * target-delegates.c: Rebuild.
7678 * target.c (update_current_target): Don't initialize
7679 to_set_trace_buffer_size.
7680 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7681 TARGET_DEFAULT_IGNORE.
7682
8d526939
TT
76832014-02-19 Tom Tromey <tromey@redhat.com>
7684
7685 * target-delegates.c: Rebuild.
7686 * target.c (update_current_target): Don't inherit or default
7687 to_set_circular_trace_buffer.
7688 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7689 TARGET_DEFAULT_IGNORE.
7690
0bcfeddf
TT
76912014-02-19 Tom Tromey <tromey@redhat.com>
7692
7693 * target-delegates.c: Rebuild.
7694 * target.c (update_current_target): Don't inherit or default
7695 to_set_disconnected_tracing.
7696 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7697 TARGET_DEFAULT_IGNORE.
7698
9249843f
TT
76992014-02-19 Tom Tromey <tromey@redhat.com>
7700
7701 * target-delegates.c: Rebuild.
7702 * target.c (update_current_target): Don't inherit or default
7703 to_get_min_fast_tracepoint_insn_len.
7704 (return_minus_one): Remove.
7705 * target.h (struct target_ops)
7706 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7707
ace92e7d
TT
77082014-02-19 Tom Tromey <tromey@redhat.com>
7709
7710 * target-delegates.c: Rebuild.
7711 * target.c (update_current_target): Don't inherit or default
7712 to_get_raw_trace_data.
7713 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7714 TARGET_DEFAULT_NORETURN.
7715
08120467
TT
77162014-02-19 Tom Tromey <tromey@redhat.com>
7717
7718 * target-delegates.c: Rebuild.
7719 * target.c (update_current_target): Don't inherit or default
7720 to_upload_trace_state_variables.
7721 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7722 Use TARGET_DEFAULT_RETURN.
7723
1e949b00
TT
77242014-02-19 Tom Tromey <tromey@redhat.com>
7725
7726 * target-delegates.c: Rebuild.
7727 * target.c (update_current_target): Don't inherit or default
7728 to_upload_tracepoints.
7729 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7730 TARGET_DEFAULT_RETURN.
7731
a2e6c147
TT
77322014-02-19 Tom Tromey <tromey@redhat.com>
7733
7734 * target-delegates.c: Rebuild.
7735 * target.c (update_current_target): Don't inherit or default
7736 to_save_trace_data.
7737 * target.h (struct target_ops) <to_save_trace_data>: Use
7738 TARGET_DEFAULT_NORETURN.
7739
959bcd0b
TT
77402014-02-19 Tom Tromey <tromey@redhat.com>
7741
7742 * target-delegates.c: Rebuild.
7743 * target.c (update_current_target): Don't inherit or default
7744 to_get_trace_state_variable_value.
7745 * target.h (struct target_ops)
7746 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7747
afc94e66
TT
77482014-02-19 Tom Tromey <tromey@redhat.com>
7749
7750 * target-delegates.c: Rebuild.
7751 * target.c (update_current_target): Don't inherit or default
7752 to_trace_find.
7753 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7754
e51c07ea
TT
77552014-02-19 Tom Tromey <tromey@redhat.com>
7756
7757 * target-delegates.c: Rebuild.
7758 * target.c (update_current_target): Don't inherit or default
7759 to_trace_stop.
7760 * target.h (struct target_ops) <to_trace_stop>: Use
7761 TARGET_DEFAULT_NORETURN.
7762
6fea14cd
TT
77632014-02-19 Tom Tromey <tromey@redhat.com>
7764
7765 * target-delegates.c: Rebuild.
7766 * target.c (update_current_target): Don't inherit or default
7767 to_get_tracepoint_status.
7768 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7769 TARGET_DEFAULT_NORETURN.
7770
4072d4ff
TT
77712014-02-19 Tom Tromey <tromey@redhat.com>
7772
7773 * target-delegates.c: Rebuild.
7774 * target.c (update_current_target): Don't inherit or default
7775 to_get_trace_status.
7776 * target.h (struct target_ops) <to_get_trace_status>: Use
7777 TARGET_DEFAULT_RETURN.
7778
25da2e80
TT
77792014-02-19 Tom Tromey <tromey@redhat.com>
7780
7781 * target-delegates.c: Rebuild.
7782 * target.c (update_current_target): Don't inherit or default
7783 to_trace_start.
7784 * target.h (struct target_ops) <to_trace_start>: Use
7785 TARGET_DEFAULT_NORETURN.
7786
86dd181d
TT
77872014-02-19 Tom Tromey <tromey@redhat.com>
7788
7789 * target-delegates.c: Rebuild.
7790 * target.c (update_current_target): Don't inherit or default
7791 to_trace_set_readonly_regions.
7792 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7793 Use TARGET_DEFAULT_NORETURN.
7794
05c41993
TT
77952014-02-19 Tom Tromey <tromey@redhat.com>
7796
7797 * target-delegates.c: Rebuild.
7798 * target.c (update_current_target): Don't inherit or default
7799 to_disable_tracepoint.
7800 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7801 TARGET_DEFAULT_NORETURN.
7802
151f70f1
TT
78032014-02-19 Tom Tromey <tromey@redhat.com>
7804
7805 * target-delegates.c: Rebuild.
7806 * target.c (update_current_target): Don't inherit or default
7807 to_enable_tracepoint.
7808 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7809 TARGET_DEFAULT_NORETURN.
7810
94eb98b9
TT
78112014-02-19 Tom Tromey <tromey@redhat.com>
7812
7813 * target-delegates.c: Rebuild.
7814 * target.c (update_current_target): Don't inherit or default
7815 to_download_trace_state_variable.
7816 * target.h (struct target_ops) <to_download_trace_state_variable>:
7817 Use TARGET_DEFAULT_NORETURN.
7818
719acc4a
TT
78192014-02-19 Tom Tromey <tromey@redhat.com>
7820
7821 * target-delegates.c: Rebuild.
7822 * target.c (update_current_target): Don't inherit or default
7823 to_can_download_tracepoint.
7824 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7825 TARGET_DEFAULT_RETURN.
7826
9a980a22
TT
78272014-02-19 Tom Tromey <tromey@redhat.com>
7828
7829 * target-delegates.c: Rebuild.
7830 * target.c (update_current_target): Don't inherit or default
7831 to_download_tracepoint.
7832 * target.h (struct target_ops) <to_download_tracepoint>: Use
7833 TARGET_DEFAULT_NORETURN.
7834
5536135b
TT
78352014-02-19 Tom Tromey <tromey@redhat.com>
7836
7837 * target-delegates.c: Rebuild.
7838 * target.c (update_current_target): Don't inherit or default
7839 to_trace_init.
7840 * target.h (struct target_ops) <to_trace_init>: Use
7841 TARGET_DEFAULT_RETURN.
7842
9409d39e
TT
78432014-02-19 Tom Tromey <tromey@redhat.com>
7844
7845 * target-delegates.c: Rebuild.
7846 * target.c (update_current_target): Don't inherit or default
7847 to_supports_string_tracing.
7848 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7849 TARGET_DEFAULT_RETURN.
7850
aab1b22d
TT
78512014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target-delegates.c: Rebuild.
7854 * target.c (update_current_target): Don't inherit or default
7855 to_supports_enable_disable_tracepoint.
7856 * target.h (struct target_ops)
7857 <to_supports_enable_disable_tracepoint>: Use
7858 TARGET_DEFAULT_RETURN.
7859
a7304748
TT
78602014-02-19 Tom Tromey <tromey@redhat.com>
7861
7862 * target-delegates.c: Rebuild.
7863 * target.c (update_current_target): Don't inherit or default
7864 to_supports_multi_process.
7865 * target.h (struct target_ops) <to_supports_multi_process>: Use
7866 TARGET_DEFAULT_RETURN.
7867
4229b31d
TT
78682014-02-19 Tom Tromey <tromey@redhat.com>
7869
7870 * target-delegates.c: Rebuild.
7871 * target.c (update_current_target): Don't inherit or default
7872 to_get_ada_task_ptid.
7873 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7874 TARGET_DEFAULT_FUNC.
7875
43eba180
TT
78762014-02-19 Tom Tromey <tromey@redhat.com>
7877
7878 * target-delegates.c: Rebuild.
7879 * target.c (update_current_target): Don't inherit or default
7880 to_thread_architecture.
7881 * target.h (struct target_ops) <to_thread_architecture>: Use
7882 TARGET_DEFAULT_FUNC.
7883
fe31bf5b
TT
78842014-02-19 Tom Tromey <tromey@redhat.com>
7885
7886 * target-delegates.c: Rebuild.
7887 * target.c (update_current_target): Don't inherit or default
7888 to_execution_direction.
7889 * target.h (struct target_ops) <to_execution_direction>: Use
7890 TARGET_DEFAULT_FUNC.
7891
53e1cfc7
TT
78922014-02-19 Tom Tromey <tromey@redhat.com>
7893
7894 * target-delegates.c: Rebuild.
7895 * target.c (update_current_target): Don't inherit or default
7896 to_can_execute_reverse.
7897 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7898 TARGET_DEFAULT_RETURN.
7899 (target_can_execute_reverse): Unconditionally delegate.
7900
9bb9d61d
TT
79012014-02-19 Tom Tromey <tromey@redhat.com>
7902
7903 * target-delegates.c: Rebuild.
7904 * target.c (update_current_target): Don't inherit or default
7905 to_goto_bookmark.
7906 (dummy_goto_bookmark): Remove.
7907 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7908 * target.h (struct target_ops) <to_goto_bookmark>: Use
7909 TARGET_DEFAULT_NORETURN.
7910
3dbafbbb
TT
79112014-02-19 Tom Tromey <tromey@redhat.com>
7912
7913 * target-delegates.c: Rebuild.
7914 * target.c (update_current_target): Don't inherit or default
7915 to_get_bookmark.
7916 (dummy_get_bookmark): Remove.
7917 (init_dummy_target): Don't inherit or default to_get_bookmark.
7918 * target.h (struct target_ops) <to_get_bookmark>: Use
7919 TARGET_DEFAULT_NORETURN
7920
16f796b1
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_make_corefile_notes.
7926 (init_dummy_target): Don't initialize to_make_corefile_notes.
7927 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7928 TARGET_DEFAULT_FUNC.
7929
0b5a2719
TT
79302014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * target-delegates.c: Rebuild.
7933 * target.c (update_current_target): Don't inherit or default
7934 to_find_memory_regions.
7935 (init_dummy_target): Don't initialize to_find_memory_regions.
7936 * target.h (struct target_ops) <to_find_memory_regions>: Use
7937 TARGET_DEFAULT_FUNC.
7938
d9cb0195
TT
79392014-02-19 Tom Tromey <tromey@redhat.com>
7940
7941 * target-delegates.c: Rebuild.
7942 * target.c (update_current_target): Don't inherit or default
7943 to_log_command.
7944 * target.h (struct target_ops) <to_log_command>: Use
7945 TARGET_DEFAULT_IGNORE.
7946 (target_log_command): Unconditionally delegate.
7947
830ca330
TT
79482014-02-19 Tom Tromey <tromey@redhat.com>
7949
7950 * target-delegates.c: Rebuild.
7951 * target.c (update_current_target): Don't inherit or default
7952 to_pid_to_exec_file.
7953 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7954 TARGET_DEFAULT_RETURN.
7955
825828fc
TT
79562014-02-19 Tom Tromey <tromey@redhat.com>
7957
7958 * target-delegates.c: Rebuild.
7959 * target.c (update_current_target): Don't inherit or default
7960 to_thread_name.
7961 (target_thread_name): Unconditionally delegate.
7962 * target.h (struct target_ops) <to_thread_name>: Use
7963 TARGET_DEFAULT_RETURN.
7964
4a7e6dda
TT
79652014-02-19 Tom Tromey <tromey@redhat.com>
7966
7967 * target-delegates.c: Rebuild.
7968 * target.c (update_current_target): Don't inherit or default
7969 to_extra_thread_info.
7970 * target.h (struct target_ops) <to_extra_thread_info>: Use
7971 TARGET_DEFAULT_RETURN.
7972
0db88c1d
TT
79732014-02-19 Tom Tromey <tromey@redhat.com>
7974
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7977 to_has_exited.
7978 * target.h (struct target_ops) <to_has_exited>: Use
7979 TARGET_DEFAULT_RETURN..
7980
6a9fa051
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target-delegates.c: Rebuild.
7984 * target.c (update_current_target): Don't inherit or default
7985 to_set_syscall_catchpoint.
7986 (return_one): Remove.
7987 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7988 TARGET_DEFAULT_RETURN.
7989
62f64d7a
TT
79902014-02-19 Tom Tromey <tromey@redhat.com>
7991
7992 * target-delegates.c: Rebuild.
7993 * target.c (update_current_target): Don't inherit or default
7994 to_insert_exec_catchpoint.
7995 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7996 TARGET_DEFAULT_RETURN.
7997
cda0f38c
TT
79982014-01-08 Tom Tromey <tromey@redhat.com>
7999
8000 * target-delegates.c: Rebuild.
8001 * target.c (update_current_target): Don't inherit or default
8002 to_insert_exec_catchpoint.
8003 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8004 TARGET_DEFAULT_RETURN.
8005
95c3375e
TT
80062014-02-19 Tom Tromey <tromey@redhat.com>
8007
8008 * target-delegates.c: Rebuild.
8009 * target.c (update_current_target): Don't inherit or default
8010 to_remove_vfork_catchpoint.
8011 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8012 TARGET_DEFAULT_RETURN.
8013
7e18a8dc
TT
80142014-02-19 Tom Tromey <tromey@redhat.com>
8015
8016 * target-delegates.c: Rebuild.
8017 * target.c (update_current_target): Don't inherit or default
8018 to_insert_vfork_catchpoint.
8019 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8020 TARGET_DEFAULT_RETURN.
8021
e1a21fb7
TT
80222014-02-19 Tom Tromey <tromey@redhat.com>
8023
8024 * target-delegates.c: Rebuild.
8025 * target.c (update_current_target): Don't inherit or default
8026 to_remove_fork_catchpoint.
8027 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8028 TARGET_DEFAULT_RETURN.
8029
5958ebeb
TT
80302014-02-19 Tom Tromey <tromey@redhat.com>
8031
8032 * target-delegates.c: Rebuild.
8033 * target.c (update_current_target): Don't inherit or default
8034 to_insert_fork_catchpoint.
8035 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8036 TARGET_DEFAULT_RETURN.
8037
340ba4bf
TT
80382014-02-19 Tom Tromey <tromey@redhat.com>
8039
8040 * target-delegates.c: Rebuild.
8041 * target.c (update_current_target): Don't inherit or default
8042 to_post_startup_inferior.
8043 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8044 TARGET_DEFAULT_IGNORE.
8045
7634da87
TT
80462014-02-19 Tom Tromey <tromey@redhat.com>
8047
8048 * target-delegates.c: Rebuild.
8049 * target.c (update_current_target): Don't inherit or default
8050 to_load.
8051 * target.h (struct target_ops) <to_load>: Use
8052 TARGET_DEFAULT_NORETURN.
8053
e19e919f
TT
80542014-02-19 Tom Tromey <tromey@redhat.com>
8055
8056 * target-delegates.c: Rebuild.
8057 * target.c (update_current_target): Don't inherit or default
8058 to_terminal_info.
8059 * target.h (struct target_ops) <to_terminal_info>: Use
8060 TARGET_DEFAULT_FUNC.
8061
c6ea8f79
TT
80622014-02-19 Tom Tromey <tromey@redhat.com>
8063
8064 * target-delegates.c: Rebuild.
8065 * target.c (update_current_target): Don't inherit or default
8066 to_terminal_save_ours.
8067 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8068 TARGET_DEFAULT_IGNORE.
8069
e4a733f1
TT
80702014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target-delegates.c: Rebuild.
8073 * target.c (update_current_target): Don't inherit or default
8074 to_terminal_ours.
8075 * target.h (struct target_ops) <to_terminal_ours>: Use
8076 TARGET_DEFAULT_IGNORE.
8077
74fcbef9
TT
80782014-02-19 Tom Tromey <tromey@redhat.com>
8079
8080 * target-delegates.c: Rebuild.
8081 * target.c (update_current_target): Don't inherit or default
8082 to_terminal_ours_for_output.
8083 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8084 TARGET_DEFAULT_IGNORE.
8085
ddeaacc9
TT
80862014-02-19 Tom Tromey <tromey@redhat.com>
8087
8088 * target-delegates.c: Rebuild.
8089 * target.c (update_current_target): Don't inherit or default
8090 to_terminal_inferior.
8091 * target.h (struct target_ops) <to_terminal_inferior>: Use
8092 TARGET_DEFAULT_IGNORE.
8093
0343661d
TT
80942014-02-19 Tom Tromey <tromey@redhat.com>
8095
8096 * target-delegates.c: Rebuild.
8097 * target.c (update_current_target): Don't inherit or default
8098 to_terminal_init.
8099 * target.h (struct target_ops) <to_terminal_init>: Use
8100 TARGET_DEFAULT_IGNORE.
8101
77cdffe9
TT
81022014-02-19 Tom Tromey <tromey@redhat.com>
8103
8104 * target-delegates.c: Rebuild.
8105 * target.c (update_current_target): Don't inherit or default
8106 to_can_accel_watchpoint_condition.
8107 * target.h (struct target_ops)
8108 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8109
d03655e4
TT
81102014-02-19 Tom Tromey <tromey@redhat.com>
8111
8112 * target-delegates.c: Rebuild.
8113 * target.c (update_current_target): Don't inherit or default
8114 to_region_ok_for_hw_watchpoint.
8115 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8116 Use TARGET_DEFAULT_FUNC.
8117
65f160a9
TT
81182014-02-19 Tom Tromey <tromey@redhat.com>
8119
8120 * target-delegates.c: Rebuild.
8121 * target.c (update_current_target): Don't inherit or default
8122 to_watchpoint_addr_within_range.
8123 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8124 Use TARGET_DEFAULT_FUNC.
8125
61dd109f
TT
81262014-02-19 Tom Tromey <tromey@redhat.com>
8127
8128 * target-delegates.c: Rebuild.
8129 * target.c (update_current_target): Don't inherit or default
8130 to_remove_watchpoint.
8131 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8132 TARGET_DEFAULT_NORETURN.
8133
016facd4
TT
81342014-02-19 Tom Tromey <tromey@redhat.com>
8135
8136 * target-delegates.c: Rebuild.
8137 * target.c (update_current_target): Don't inherit or default
8138 to_insert_watchpoint.
8139 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8140 TARGET_DEFAULT_RETURN.
8141
418dabac
TT
81422014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (update_current_target): Don't inherit or default
8146 to_remove_hw_breakpoint.
8147 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8148 TARGET_DEFAULT_RETURN.
8149
61b371f9
TT
81502014-02-19 Tom Tromey <tromey@redhat.com>
8151
8152 * target-delegates.c: Rebuild.
8153 * target.c (update_current_target): Don't inherit or default
8154 to_insert_hw_breakpoint.
8155 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8156 TARGET_DEFAULT_RETURN.
8157
52b51d06
TT
81582014-02-19 Tom Tromey <tromey@redhat.com>
8159
8160 * target-delegates.c: Rebuild.
8161 * target.c (update_current_target): Don't inherit or default
8162 to_can_use_hw_breakpoint.
8163 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8164 TARGET_DEFAULT_RETURN.
8165
f86e59b2
TT
81662014-02-19 Tom Tromey <tromey@redhat.com>
8167
8168 * target-delegates.c: Rebuild.
8169 * target.c (update_current_target): Don't inherit or default
8170 to_files_info.
8171 * target.h (struct target_ops) <to_files_info>: Use
8172 TARGET_DEFAULT_IGNORE.
8173
6c628163
TT
81742014-02-19 Tom Tromey <tromey@redhat.com>
8175
8176 * target-delegates.c: Rebuild.
8177 * target.c (update_current_target): Don't inherit or default
8178 to_store.
8179 * target.h (struct target_ops) <to_store>: Use
8180 TARGET_DEFAULT_NORETURN.
8181
bebd3233
TT
81822014-02-19 Tom Tromey <tromey@redhat.com>
8183
8184 * target-delegates.c: Rebuild.
8185 * target.c (update_current_target): Don't inherit or default
8186 to_post_attach.
8187 * target.h (struct target_ops) <to_post_attach>: Use
8188 TARGET_DEFAULT_IGNORE.
8189
a53f3625
TT
81902014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target-delegates.c: Rebuild.
8193 * target.c (update_current_target): Don't inherit or default
8194 to_rcmd.
8195 (default_rcmd): New function.
8196 (do_monitor_command): Unconditionally delegate.
8197 * target.h (struct target_ops) <to_rmcd>: Use
8198 TARGET_DEFAULT_FUNC.
8199
e9a29200
TT
82002014-02-19 Tom Tromey <tromey@redhat.com>
8201
8202 * target-delegates.c: Rebuild.
8203 * target.c (init_dummy_target): Don't initialize to_attach.
8204 (target_attach): Unconditionally delegate.
8205 * target.h (struct target_ops) <to_attach>: Use
8206 TARGET_DEFAULT_FUNC.
8207
09da0d0a
TT
82082014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target-delegates.c: Rebuild.
8211 * target.c (target_detach): Unconditionally delegate.
8212 (init_dummy_target): Don't initialize to_detach.
8213 * target.h (struct target_ops) <to_detach>: Use
8214 TARGET_DEFAULT_IGNORE.
8215
5436ff03
TT
82162014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8219 Add argument.
8220 (target_augmented_libraries_svr4_read): Add argument.
8221 * target.c (update_current_target): Update.
8222 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8223 argument.
8224
f0d960ea
TT
82252014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target.h (struct target_ops) <to_call_history_range>: Add
8228 argument.
8229 * target.c (target_call_history_range): Add argument.
8230 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8231 argument.
8232 (record_btrace_call_history_from): Update.
8233
ec0aea04
TT
82342014-02-19 Tom Tromey <tromey@redhat.com>
8235
8236 * target.h (struct target_ops) <to_call_history_from>: Add
8237 argument.
8238 * target.c (target_call_history_from): Add argument.
8239 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8240 argument.
8241
5df2fcba
TT
82422014-02-19 Tom Tromey <tromey@redhat.com>
8243
8244 * target.h (struct target_ops) <to_call_history>: Add argument.
8245 * target.c (target_call_history): Add argument.
8246 * record-btrace.c (record_btrace_call_history): Add 'self'
8247 argument.
8248
4e99c6b7
TT
82492014-02-19 Tom Tromey <tromey@redhat.com>
8250
8251 * target.h (struct target_ops) <to_insn_history_range>: Add
8252 argument.
8253 * target.c (target_insn_history_range): Add argument.
8254 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8255 argument.
8256 (record_btrace_insn_history_from): Update.
8257
9abc3ff3
TT
82582014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target.h (struct target_ops) <to_insn_history_from>: Add
8261 argument.
8262 * target.c (target_insn_history_from): Add argument.
8263 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8264 argument.
8265
7a6c5609
TT
82662014-02-19 Tom Tromey <tromey@redhat.com>
8267
8268 * target.h (struct target_ops) <to_insn_history>: Add argument.
8269 * target.c (target_insn_history): Add argument.
8270 * record-btrace.c (record_btrace_insn_history): Add 'self'
8271 argument.
8272
606183ac
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target.h (struct target_ops) <to_goto_record>: Add argument.
8276 * target.c (target_goto_record): Add argument.
8277 * record-full.c (record_full_goto): Add 'self' argument.
8278 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8279
307a1b91
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8283 * target.c (target_goto_record_end): Add argument.
8284 * record-full.c (record_full_goto_end): Add 'self' argument.
8285 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8286
08475817
TT
82872014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target.h (struct target_ops) <to_goto_record_begin>: Add
8290 argument.
8291 * target.c (target_goto_record_begin): Add argument.
8292 * record-full.c (record_full_goto_begin): Add 'self' argument.
8293 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8294 argument.
8295
1c63c994
TT
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target.h (struct target_ops) <to_record_is_replaying>: Add
8299 argument.
8300 * target.c (target_record_is_replaying): Add argument.
8301 * record-full.c (record_full_is_replaying): Add 'self' argument.
8302 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8303 argument.
8304 (record_btrace_xfer_partial, record_btrace_store_registers)
8305 (record_btrace_prepare_to_store, record_btrace_resume)
8306 (record_btrace_wait, record_btrace_decr_pc_after_break)
8307 (record_btrace_find_new_threads, record_btrace_thread_alive):
8308 Update.
8309
d1b55219
TT
83102014-02-19 Tom Tromey <tromey@redhat.com>
8311
8312 * target.h (struct target_ops) <to_delete_record>: Add argument.
8313 * target.c (target_delete_record): Add argument.
8314 * record-full.c (record_full_delete): Add 'self' argument.
8315
1390f529
TT
83162014-02-19 Tom Tromey <tromey@redhat.com>
8317
8318 * target.h (struct target_ops) <to_save_record>: Add argument.
8319 * target.c (target_save_record): Add argument.
8320 * record-full.c (record_full_save): Add 'self' argument.
8321 (record_full_save): Add 'self' argument.
8322
630d6a4a
TT
83232014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target.h (struct target_ops) <to_info_record>: Add argument.
8326 * target.c (target_info_record): Add argument.
8327 * record.c (info_record_command): Add argument.
8328 * record-full.c (record_full_info): Add 'self' argument.
8329 * record-btrace.c (record_btrace_info): Add 'self' argument.
8330
c6cd7c02
TT
83312014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8334 * target.c (target_stop_recording): Add argument.
8335 * record.c (record_stop): Add argument.
8336 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8337 argument.
8338
39c49f83
TT
83392014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8342 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8343 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8344 argument.
8345 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8346 (_initialize_amd64_linux_nat): Use it.
8347 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8348 (_initialize_i386_linux_nat): Use it.
8349
1777056d
TT
83502014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8353 * target.c (target_teardown_btrace): Add argument.
8354 * remote.c (remote_teardown_btrace): Add 'self' argument.
8355 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8356 argument.
8357 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8358 argument.
8359
25e95349
TT
83602014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8363 * target.c (target_disable_btrace): Add argument.
8364 * remote.c (remote_disable_btrace): Add 'self' argument.
8365 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8366 argument.
8367 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8368 argument.
8369
e3c49f88
TT
83702014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8373 * target.c (target_enable_btrace): Add argument.
8374 * remote.c (remote_enable_btrace): Add 'self' argument.
8375 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8376 argument.
8377 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8378 argument.
8379
fe38f897
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8383 (target_can_use_agent): Add argument.
8384 * target.c (update_current_target): Update.
8385 * remote.c (remote_can_use_agent): Add 'self' argument.
8386 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8387
2c152180
TT
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target.h (struct target_ops) <to_use_agent>: Add argument.
8391 (target_use_agent): Add argument.
8392 * target.c (update_current_target): Update.
8393 * remote.c (remote_use_agent): Add 'self' argument.
8394 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8395
a893e81f
TT
83962014-02-19 Tom Tromey <tromey@redhat.com>
8397
8398 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8399 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8400 (target_traceframe_info): Add argument.
8401 * target.c (update_current_target): Update.
8402 * remote.c (remote_traceframe_info): Add 'self' argument.
8403 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8404
c686c57f
TT
84052014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target.h (target_static_tracepoint_markers_by_strid): Add
8408 argument.
8409 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8410 'self' argument.
8411 * target.c (update_current_target): Update.
8412 * remote.c (struct target_ops)
8413 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8414 * linux-nat.c (struct target_ops)
8415 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8416
61fc905d
TT
84172014-02-19 Tom Tromey <tromey@redhat.com>
8418
8419 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8420 Add argument.
8421 (target_static_tracepoint_marker_at): Add argument.
8422 * target.c (update_current_target): Update.
8423 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8424 argument.
8425
c378d69d
TT
84262014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8429 (target_set_permissions): Add argument.
8430 * target.c (update_current_target): Update.
8431 * remote.c (remote_set_permissions): Add 'self' argument.
8432 (remote_start_remote): Update.
8433
bd7ae0f5
TT
84342014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8437 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8438 (target_get_tib_address): Add argument.
8439 * target.c (update_current_target): Update.
8440 * remote.c (remote_get_tib_address): Add 'self' argument.
8441
d9e68a2c
TT
84422014-02-19 Tom Tromey <tromey@redhat.com>
8443
8444 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8445 (target_set_trace_notes): Add argument.
8446 * target.c (update_current_target): Update.
8447 * remote.c (remote_set_trace_notes): Add 'self' argument.
8448
4da384be
TT
84492014-02-19 Tom Tromey <tromey@redhat.com>
8450
8451 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8452 argument.
8453 (target_set_trace_buffer_size): Add argument.
8454 * target.c (update_current_target): Update.
8455 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8456
736d5b1f
TT
84572014-02-19 Tom Tromey <tromey@redhat.com>
8458
8459 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8460 argument.
8461 (target_set_circular_trace_buffer): Add argument.
8462 * target.c (update_current_target): Update.
8463 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8464 argument.
8465
37b25738
TT
84662014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8469 argument.
8470 (target_set_disconnected_tracing): Add argument.
8471 * target.c (update_current_target): Update.
8472 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8473
0e67620a
TT
84742014-02-19 Tom Tromey <tromey@redhat.com>
8475
8476 * target.h (struct target_ops)
8477 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8478 (target_get_min_fast_tracepoint_insn_len): Add argument.
8479 * target.c (update_current_target): Update.
8480 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8481 argument.
8482
88ee6f45
TT
84832014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8486 argument.
8487 (target_get_raw_trace_data): Add argument.
8488 * target.c (update_current_target): Update.
8489 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8490
181e3713
TT
84912014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8494 Add argument.
8495 (target_upload_trace_state_variables): Add argument.
8496 * target.c (update_current_target): Update.
8497 * remote.c (remote_upload_trace_state_variables): Add 'self'
8498 argument.
8499 (remote_start_remote): Update.
8500
ab6617cc
TT
85012014-02-19 Tom Tromey <tromey@redhat.com>
8502
8503 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8504 argument.
8505 (target_upload_tracepoints): Add argument.
8506 * target.c (update_current_target): Update.
8507 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8508 (remote_start_remote): Update.
8509
dc3decaf
TT
85102014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8513 (target_save_trace_data): Add argument.
8514 * target.c (update_current_target): Update.
8515 * remote.c (remote_save_trace_data): Add 'self' argument.
8516
4011015b
TT
85172014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8520 argument.
8521 * target.h (struct target_ops)
8522 <to_get_trace_state_variable_value>: Add argument.
8523 (target_get_trace_state_variable_value): Add argument.
8524 * target.c (update_current_target): Update.
8525 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8526 argument.
8527 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8528
bd4c6793
TT
85292014-02-19 Tom Tromey <tromey@redhat.com>
8530
8531 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8532 * target.h (struct target_ops) <to_trace_find>: Add argument.
8533 (target_trace_find): Add argument.
8534 * target.c (update_current_target): Update.
8535 * remote.c (remote_trace_find): Add 'self' argument.
8536 * ctf.c (ctf_trace_find): Add 'self' argument.
8537
74499f1b
TT
85382014-02-19 Tom Tromey <tromey@redhat.com>
8539
8540 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8541 (target_trace_stop): Add argument.
8542 * target.c (update_current_target): Update.
8543 * remote.c (remote_trace_stop): Add 'self' argument.
8544
db90e85c
TT
85452014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8548 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8549 argument.
8550 (target_get_tracepoint_status): Add argument.
8551 * target.c (update_current_target): Update.
8552 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8553
8bd200f1
TT
85542014-02-19 Tom Tromey <tromey@redhat.com>
8555
8556 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8557 * target.h (struct target_ops) <to_get_trace_status>: Add
8558 argument.
8559 (target_get_trace_status): Add argument.
8560 * target.c (update_current_target): Update.
8561 * remote.c (remote_get_trace_status): Add 'self' argument.
8562 (remote_start_remote, remote_can_download_tracepoint): Update.
8563 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8564
e2d1aae3
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target.h (struct target_ops) <to_trace_start>: Add argument.
8568 (target_trace_start): Add argument.
8569 * target.c (update_current_target): Update.
8570 * remote.c (remote_trace_start): Add 'self' argument.
8571
583f9a86
TT
85722014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8575 Add argument.
8576 (target_trace_set_readonly_regions): Add argument.
8577 * target.c (update_current_target): Update.
8578 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8579 argument.
8580
780b049c
TT
85812014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8584 argument.
8585 (target_disable_tracepoint): Add argument.
8586 * target.c (update_current_target): Update.
8587 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8588
46670d57
TT
85892014-02-19 Tom Tromey <tromey@redhat.com>
8590
8591 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8592 argument.
8593 (target_enable_tracepoint): Add argument.
8594 * target.c (update_current_target): Update.
8595 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8596
559d2b81
TT
85972014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target.h (struct target_ops) <to_download_trace_state_variable>:
8600 Add argument.
8601 (target_download_trace_state_variable): Add argument.
8602 * target.c (update_current_target): Update.
8603 * remote.c (remote_download_trace_state_variable): Add 'self'
8604 argument.
8605
a52a8357
TT
86062014-02-19 Tom Tromey <tromey@redhat.com>
8607
8608 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8609 argument.
8610 (target_can_download_tracepoint): Add argument.
8611 * target.c (update_current_target): Update.
8612 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8613
548f7808
TT
86142014-02-19 Tom Tromey <tromey@redhat.com>
8615
8616 * target.h (struct target_ops) <to_download_tracepoint>: Add
8617 argument.
8618 (target_download_tracepoint): Add argument.
8619 * target.c (update_current_target): Update.
8620 * remote.c (remote_download_tracepoint): Add 'self' argument.
8621
ecae04e1
TT
86222014-02-19 Tom Tromey <tromey@redhat.com>
8623
8624 * target.h (struct target_ops) <to_trace_init>: Add argument.
8625 (target_trace_init): Add argument.
8626 * target.c (update_current_target): Update.
8627 * remote.c (remote_trace_init): Add 'self' argument.
8628
fab5aa7c
TT
86292014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8632 * target.c (target_fileio_readlink): Add argument.
8633 * remote.c (remote_hostio_readlink): Add 'self' argument.
8634 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8635
dbbca37d
TT
86362014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8639 * target.c (target_fileio_unlink): Add argument.
8640 * remote.c (remote_hostio_unlink): Add 'self' argument.
8641 (remote_file_delete): Update.
8642 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8643
df39ea25
TT
86442014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8647 * target.c (target_fileio_close): Add argument.
8648 * remote.c (remote_hostio_close): Add 'self' argument.
8649 (remote_hostio_close_cleanup): Update.
8650 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8651 Update.
8652 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8653
a3be983c
TT
86542014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8657 * target.c (target_fileio_pread): Add argument.
8658 * remote.c (remote_hostio_pread): Add 'self' argument.
8659 (remote_bfd_iovec_pread, remote_file_get): Update.
8660 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8661
0d866f62
TT
86622014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8665 * target.c (target_fileio_pwrite): Add argument.
8666 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8667 (remote_file_put): Update.
8668 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8669
cd897586
TT
86702014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8673 * target.c (target_fileio_open): Add argument.
8674 * remote.c (remote_hostio_open): Add 'self' argument.
8675 (remote_bfd_iovec_open): Add 'self' argument.
8676 (remote_file_put): Add 'self' argument.
8677 (remote_file_get): Add 'self' argument.
8678 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8679
78eff0ec
TT
86802014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8683 Add argument.
8684 (target_can_run_breakpoint_commands): Add argument.
8685 * target.c (update_current_target): Update.
8686 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8687 argument.
8688 (remote_insert_breakpoint): Add 'self' argument.
8689 (remote_insert_hw_breakpoint): Add 'self' argument.
8690 (remote_can_run_breakpoint_commands): Add 'self' argument.
8691
efcc2da7
TT
86922014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target.h (struct target_ops)
8695 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8696 (target_supports_evaluation_of_breakpoint_conditions): Add
8697 argument.
8698 * target.c (update_current_target): Update.
8699 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8700 argument.
8701 (remote_insert_breakpoint): Add 'self' argument.
8702 (remote_insert_hw_breakpoint): Add 'self' argument.
8703 (remote_supports_cond_breakpoints): Add 'self' argument.
8704
6de37a3a
TT
87052014-02-19 Tom Tromey <tromey@redhat.com>
8706
8707 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8708 argument.
8709 (target_supports_string_tracing): Add argument.
8710 * target.c (update_current_target): Update.
8711 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8712
2bfc0540
TT
87132014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target.h (struct target_ops)
8716 <to_supports_disable_randomization>: Add argument.
8717 * target.c (find_default_supports_disable_randomization): Add
8718 argument.
8719 (target_supports_disable_randomization): Add argument.
8720 (find_default_supports_disable_randomization): Add 'self'
8721 argument.
8722 * remote.c (extended_remote_supports_disable_randomization): Add
8723 'self' argument.
8724 (remote_supports_disable_randomization): Add 'self' argument.
8725 (extended_remote_create_inferior): Update.
8726 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8727 'self' argument.
8728
7d178d6a
TT
87292014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target.h (struct target_ops)
8732 <to_supports_enable_disable_tracepoint>: Add argument.
8733 (target_supports_enable_disable_tracepoint): Add argument.
8734 * target.c (update_current_target): Update.
8735 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8736 argument.
8737
86ce2668
TT
87382014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target.h (struct target_ops) <to_supports_multi_process>: Add
8741 argument.
8742 (target_supports_multi_process): Add argument.
8743 * target.c (update_current_target): Update.
8744 * remote.c (remote_supports_multi_process): Add 'self' argument.
8745 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8746 argument.
8747 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8748 argument.
8749
4c612759
TT
87502014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target.h (struct target_ops) <to_execution_direction>: Add
8753 argument.
8754 (target_execution_direction): Add argument.
8755 * target.c (default_execution_direction): Add 'self' argument.
8756 * record-full.c (record_full_execution_direction): Add 'self'
8757 argument.
8758
19db3e69
TT
87592014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8762 argument.
8763 (target_can_execute_reverse): Add argument.
8764 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8765 * record-full.c (record_full_can_execute_reverse): Add 'self'
8766 argument.
8767 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8768 argument.
8769
1e6b91a4
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8773 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8774 argument.
8775 (target_get_ada_task_ptid): Add argument.
8776 * target.c (update_current_target): Update.
8777 (default_get_ada_task_ptid): Add 'self' argument.
8778 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8779 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8780 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8781 argument.
8782 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8783 argument.
8784 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8785 argument.
8786 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8787 argument.
8788 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8789 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8790 argument.
8791
3c80fb48
TT
87922014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8795 (target_goto_bookmark): Add argument.
8796 * target.c (dummy_goto_bookmark): Add 'self' argument.
8797 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8798
dd0e2830
TT
87992014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8802 (target_get_bookmark): Add argument.
8803 * target.c (dummy_get_bookmark): Add 'self' argument.
8804 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8805
fc6691b2
TT
88062014-02-19 Tom Tromey <tromey@redhat.com>
8807
8808 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8809 argument.
8810 (target_make_corefile_notes): Add argument.
8811 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8812 * procfs.c (procfs_make_note_section): Add 'self' argument.
8813 (procfs_make_note_section): Add 'self' argument.
8814 (procfs_make_note_section): Add 'self' argument.
8815 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8816 argument.
8817 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8818 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8819 * exec.c (exec_make_note_section): Add 'self' argument.
8820 (exec_make_note_section): Add 'self' argument.
8821
2e73927c
TT
88222014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target.h (struct target_ops) <to_find_memory_regions>: Add
8825 argument.
8826 (target_find_memory_regions): Add argument.
8827 * target.c (dummy_find_memory_regions): Add 'self' argument.
8828 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8829 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8830 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8831 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8832 * exec. (exec_do_find_memory_regions): New global.
8833 (exec_set_find_memory_regions): Rewrite.
8834 (exec_find_memory_regions): New function.
8835 (init_exec_ops): Use exec_find_memory_regions.
8836
2a9a2795
TT
88372014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * target.h (struct target_ops) <to_supports_non_stop>: Add
8840 argument.
8841 * target.c (find_default_supports_non_stop): Add argument.
8842 (target_supports_non_stop): Add argument.
8843 (find_default_supports_non_stop): Add 'self' argument.
8844 * remote.c (remote_supports_non_stop): Add 'self' argument.
8845 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8846
4ab76ea3
TT
88472014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target.h (struct target_ops) <to_log_command>: Add argument.
8850 (target_log_command): Add argument.
8851 * serial.h (serial_log_command): Add 'self' argument.
8852 * serial.c (serial_log_command): Add 'self' argument.
8853
8dd27370
TT
88542014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8857 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8858 argument.
8859 (target_pid_to_exec_file): Add argument.
8860 * target.c (debug_to_pid_to_exec_file): Add argument.
8861 (update_current_target): Update.
8862 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8863 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8864 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8865 (linux_handle_extended_wait): Update.
8866 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8867 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8868 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8869 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8870
1aac633b
TT
88712014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target.h (struct target_ops) <to_rcmd>: Add argument.
8874 (target_rcmd): Add argument.
8875 * target.c (debug_to_rcmd): Add argument.
8876 (update_current_target, do_monitor_command): Update.
8877 * remote.c (remote_rcmd): Add 'self' argument.
8878 * monitor.c (monitor_rcmd): Add 'self' argument.
8879
1eab8a48
TT
88802014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * windows-nat.c (windows_stop): Add 'self' argument.
8883 * target.h (struct target_ops) <to_stop>: Add argument.
8884 * target.c (target_stop): Add argument.
8885 (debug_to_stop): Add argument.
8886 (update_current_target): Update.
8887 * remote.c (remote_stop): Add 'self' argument.
8888 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8889 (gdbsim_cntrl_c): Update.
8890 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8891 * procfs.c (procfs_stop): Add 'self' argument.
8892 * nto-procfs.c (procfs_stop): Add 'self' argument.
8893 * monitor.c (monitor_stop): Add 'self' argument.
8894 (monitor_open): Update.
8895 * linux-nat.c (linux_nat_stop): Add argument.
8896 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8897 * gnu-nat.c (gnu_stop): Add 'self' argument.
8898 * darwin-nat.c (darwin_stop): Add 'self' argument.
8899
503a628d
TT
89002014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target.h (struct target_ops) <to_thread_name>: Add argument.
8903 * target.c (target_thread_name): Add argument.
8904 (update_current_target): Update.
8905 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8906
c15906d8
TT
89072014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target.h (struct target_ops) <to_extra_thread_info>: Add
8910 argument.
8911 (target_extra_thread_info): Add argument.
8912 * target.c (update_current_target): Update.
8913 * remote.c (remote_threads_extra_info): Add 'self' argument.
8914 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8915 argument.
8916 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8917 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8918 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8919 argument.
8920 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8921 argument.
8922 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8923 argument.
8924 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8925 argument.
8926
daf5e9b6
TT
89272014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target.h (struct target_ops) <to_program_signals>: Add argument.
8930 * target.c (target_program_signals): Add argument.
8931 * remote.c (remote_program_signals): Add 'self' argument.
8932
94bedb42
TT
89332014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8936 * target.c (target_pass_signals): Add argument.
8937 * remote.c (remote_pass_signals): Add 'self' argument.
8938 (remote_start_remote): Update.
8939 * procfs.c (procfs_pass_signals): Add 'self' argument.
8940 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8941 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8942 (linux_nat_create_inferior, linux_nat_attach): Update.
8943
da82bd6b
TT
89442014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * windows-nat.c (windows_can_run): Add 'self' argument.
8947 * target.h (struct target_ops) <to_can_run>: Add argument.
8948 (target_can_run): Add argument.
8949 * target.c (debug_to_can_run): Add argument.
8950 (update_current_target): Update.
8951 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8952 * inf-child.c (inf_child_can_run): Add 'self' argument.
8953 * go32-nat.c (go32_can_run): Add 'self' argument.
8954
d796e1d6
TT
89552014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target.h (struct target_ops) <to_has_exited>: Add argument.
8958 (target_has_exited): Add argument.
8959 * target.c (debug_to_has_exited): Add argument.
8960 (update_current_target): Update.
8961
ff214e67
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8965 argument.
8966 (target_set_syscall_catchpoint): Add argument.
8967 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8968 argument.
8969 * target.c (update_current_target): Update.
8970
758e29d2
TT
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8974 argument.
8975 (target_remove_exec_catchpoint): Add argument.
8976 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8977 (update_current_target): Update.
8978 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8979 argument.
8980
ba025e51
TT
89812014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8984 argument.
8985 (target_insert_exec_catchpoint): Add argument.
8986 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8987 (update_current_target): Update.
8988 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8989 argument.
8990
e98cf0cd
TT
89912014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8994 argument.
8995 (target_remove_vfork_catchpoint): Add argument.
8996 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8997 (update_current_target): Update.
8998 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8999 argument.
9000
3ecc7da0
TT
90012014-02-19 Tom Tromey <tromey@redhat.com>
9002
9003 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9004 argument.
9005 (target_insert_vfork_catchpoint): Add argument.
9006 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9007 (update_current_target): Update.
9008 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9009 argument.
9010
973fc227
TT
90112014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9014 argument.
9015 (target_remove_fork_catchpoint): Add argument.
9016 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9017 (update_current_target): Update.
9018 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9019 argument.
9020
a863b201
TT
90212014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9024 argument.
9025 (target_insert_fork_catchpoint): Add argument.
9026 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9027 (update_current_target): Update.
9028 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9029 argument.
9030
2e97a79e
TT
90312014-02-19 Tom Tromey <tromey@redhat.com>
9032
9033 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9034 argument.
9035 (target_post_startup_inferior): Add argument.
9036 * target.c (debug_to_post_startup_inferior): Add argument.
9037 (update_current_target): Update.
9038 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9039 argument.
9040 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9041 argument.
9042 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9043 argument.
9044 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9045 argument.
9046 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9047 'self' argument.
9048 (super_post_startup_inferior): Likewise.
9049 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9050 'self' argument.
9051 (super_post_startup_inferior): Likewise.
9052 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9053 Add 'self' argument.
9054 (super_post_startup_inferior): Likewise.
9055
71a9f134
TT
90562014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target.h (struct target_ops) <to_load>: Add argument.
9059 * target.c (target_load): Add argument.
9060 (debug_to_load): Add argument.
9061 (update_current_target): Update.
9062 * remote.c (remote_load): Add 'self' argument.
9063 * remote-sim.c (gdbsim_load): Add 'self' argument.
9064 * remote-mips.c (mips_load): Add 'self' argument.
9065 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9066 * monitor.c (monitor_load): Add 'self' argument.
9067 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9068
0a4f40a2
TT
90692014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9072 (target_terminal_info): Add argument.
9073 * target.c (debug_to_terminal_info): Add argument.
9074 (default_terminal_info): Likewise.
9075 * inflow.c (child_terminal_info): Add 'self' argument.
9076 * inferior.h (child_terminal_info): Add 'self' argument.
9077 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9078
ae3bd431
TT
90792014-02-19 Tom Tromey <tromey@redhat.com>
9080
9081 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9082 argument.
9083 (target_terminal_save_ours): Add argument.
9084 * target.c (debug_to_terminal_save_ours): Add argument.
9085 (update_current_target): Update.
9086 * inflow.c (terminal_save_ours): Add 'self' argument.
9087 * inferior.h (terminal_save_ours): Add 'self' argument.
9088
e3594fd1
TT
90892014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9092 (target_terminal_ours): Add argument.
9093 * target.c (debug_to_terminal_ours): Add argument.
9094 (update_current_target): Update.
9095 * remote.c (remote_terminal_ours): Add 'self' argument.
9096 (remote_close): Update.
9097 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9098 * inflow.c (terminal_ours): Add 'self' argument.
9099 * inferior.h (terminal_ours): Add 'self' argument.
9100 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9101
2e1e1a19
TT
91022014-02-19 Pedro Alves <palves@redhat.com>
9103 Tom Tromey <tromey@redhat.com>
9104
9105 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9106 argument.
9107 (target_terminal_ours_for_output): Add argument.
9108 * target.c (debug_to_terminal_ours_for_output): Add argument.
9109 (update_current_target): Update.
9110 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9111 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9112 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9113
d2f640d4
TT
91142014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <to_terminal_inferior>: Add
9117 argument.
9118 * target.c (target_terminal_inferior): Add argument.
9119 (update_current_target): Update.
9120 * remote.c (remote_terminal_inferior): Add 'self' argument.
9121 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9122 * inflow.c (terminal_inferior): Add 'self' argument.
9123 * inferior.h (terminal_inferior): Add 'self' argument.
9124 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9125 (go32_terminal_inferior): Add 'self' argument.
9126
c42bf286
TT
91272014-02-19 Tom Tromey <tromey@redhat.com>
9128
9129 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9130 (target_terminal_init): Add argument.
9131 * target.c (debug_to_terminal_init): Add argument.
9132 (update_current_target): Update.
9133 * inflow.c (terminal_init_inferior): Add 'self' argument.
9134 * inferior.h (terminal_init_inferior): Add 'self' argument.
9135 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9136 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9137
c3a5ff89
TT
91382014-02-19 Tom Tromey <tromey@redhat.com>
9139
9140 * target.h (struct target_ops)
9141 <to_can_accel_watchpoint_condition>: Add argument.
9142 (target_can_accel_watchpoint_condition): Add argument.
9143 * target.c (debug_to_can_accel_watchpoint_condition): Add
9144 argument.
9145 (update_current_target): Update.
9146 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9147 'self' argument.
9148
31568a15
TT
91492014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9152 Add argument.
9153 (target_region_ok_for_hw_watchpoint): Add argument.
9154 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9155 (default_region_ok_for_hw_watchpoint): Add argument.
9156 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9157 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9158 argument.
9159 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9160 argument.
9161 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9162 argument.
9163 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9164 'self' argument.
9165 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9166 'self' argument.
9167 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9168 'self' argument.
9169 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9170 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9171 'self' argument.
9172 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9173 Add 'self' argument.
9174
7bb99c53
TT
91752014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9178 argument.
9179 (target_insert_watchpoint): Add argument.
9180 * target.c (debug_to_insert_watchpoint): Add argument.
9181 (update_current_target): Update.
9182 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9183 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9184 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9185 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9186 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9187 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9188 argument.
9189 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9190 (procfs_insert_hw_watchpoint): Add 'self' argument.
9191 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9192 argument.
9193 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9194 argument.
9195 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9196 argument.
9197 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9198 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9199 argument.
9200 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9201 'self' argument.
9202
11b5219a
TT
92032014-02-19 Tom Tromey <tromey@redhat.com>
9204
9205 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9206 argument.
9207 (target_remove_watchpoint): Add argument.
9208 * target.c (debug_to_remove_watchpoint): Add argument.
9209 (update_current_target): Update.
9210 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9211 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9212 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9213 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9214 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9215 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9216 argument.
9217 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9218 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9219 argument.
9220 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9221 argument.
9222 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9223 argument.
9224 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9225 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9226 argument.
9227 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9228 'self' argument.
9229
a64dc96c
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9233 argument.
9234 (target_remove_hw_breakpoint): Add argument.
9235 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9236 (update_current_target): Update.
9237 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9238 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9239 argument.
9240 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9241 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9242 argument.
9243 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9244 'self' argument.
9245
23a26771
TT
92462014-02-19 Tom Tromey <tromey@redhat.com>
9247
9248 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9249 argument.
9250 (target_insert_hw_breakpoint): Add argument.
9251 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9252 (update_current_target): Update.
9253 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9254 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9255 argument.
9256 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9257 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9258 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9259 argument.
9260 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9261 'self' argument.
9262
5461485a
TT
92632014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9266 argument.
9267 (target_can_use_hardware_watchpoint): Add argument.
9268 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9269 (update_current_target): Update.
9270 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9271 argument.
9272 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9273 argument.
9274 * remote.c (remote_check_watch_resources): Add 'self' argument.
9275 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9276 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9277 argument.
9278 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9279 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9280 argument.
9281 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9282 argument.
9283 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9284 argument.
9285 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9286 argument.
9287 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9288 argument.
9289 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9290 argument.
9291 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9292 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9293 argument.
9294 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9295 'self' argument.
9296
f045800c
TT
92972014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target.h (struct target_ops) <to_post_attach>: Add argument.
9300 (target_post_attach): Add argument.
9301 * target.c (debug_to_post_attach): Add argument.
9302 (update_current_target): Update.
9303 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9304 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9305 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9306 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9307 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9308
de90e03d
TT
93092014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * windows-nat.c (windows_close): Add 'self' argument.
9312 * tracepoint.c (tfile_close): Add 'self' argument.
9313 * target.h (struct target_ops) <to_close>: Add argument.
9314 * target.c (target_close): Add argument.
9315 (update_current_target): Update.
9316 * remote.c (remote_close): Add 'self' argument.
9317 * remote-sim.c (gdbsim_close): Add 'self' argument.
9318 * remote-mips.c (mips_close): Add 'self' argument.
9319 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9320 * record-full.c (record_full_close): Add 'self' argument.
9321 * record-btrace.c (record_btrace_close): Add 'self' argument.
9322 * monitor.h (monitor_close): Add 'self' argument.
9323 * monitor.c (monitor_close): Add 'self' argument.
9324 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9325 * linux-nat.c (linux_nat_close): Add argument.
9326 * go32-nat.c (go32_close): Add 'self' argument.
9327 * exec.c (exec_close_1): Add 'self' argument.
9328 * ctf.c (ctf_close): Add 'self' argument.
9329 * corelow.c (core_close): Add 'self' argument.
9330 (core_close_cleanup): Update.
9331 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9332 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9333
9dd130a0
TT
93342014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * remote.c (remote_load): New function.
9337 (init_remote_ops): Use it.
9338
46917d26
TT
93392014-02-19 Tom Tromey <tromey@redhat.com>
9340
9341 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9342 argument.
9343 * common/linux-btrace.h (linux_supports_btrace): Update.
9344 * remote.c (remote_supports_btrace): Add "self" argument.
9345 * target-delegates.c: Rebuild.
9346 * target.c (target_supports_btrace): Remove.
9347 * target.h (struct target_ops) <to_supports_btrace>: Add
9348 target_ops argument.
9349 (target_supports_btrace): New define.
9350
6b84065d
TT
93512014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * record-full.c (record_full_beneath_to_resume_ops)
9354 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9355 (record_full_beneath_to_wait)
9356 (record_full_beneath_to_store_registers_ops)
9357 (record_full_beneath_to_store_registers)
9358 (record_full_beneath_to_xfer_partial_ops)
9359 (record_full_beneath_to_xfer_partial)
9360 (record_full_beneath_to_insert_breakpoint_ops)
9361 (record_full_beneath_to_insert_breakpoint)
9362 (record_full_beneath_to_remove_breakpoint_ops)
9363 (record_full_beneath_to_remove_breakpoint)
9364 (record_full_beneath_to_stopped_by_watchpoint)
9365 (record_full_beneath_to_stopped_data_address)
9366 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9367 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9368 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9369 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9370 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9371 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9372 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9373 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9374 (record_full_resume, record_full_wait_1)
9375 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9376 (record_full_store_registers, record_full_xfer_partial)
9377 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9378 (record_full_async, record_full_core_xfer_partial): Use target
9379 delegation.
9380 * target-delegates.c: Rebuild.
9381 * target.c (current_xfer_partial): Remove.
9382 (update_current_target): Do not INHERIT or de_fault
9383 to_insert_breakpoint, to_remove_breakpoint,
9384 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9385 to_is_async_p, to_async. Do not set to_xfer_partial field.
9386 (default_xfer_partial): Simplify.
9387 (current_xfer_partial): Remove.
9388 (target_wait, target_resume): Simplify.
9389 (find_default_can_async_p, find_default_is_async_p): Update.
9390 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9391 to_xfer_partial, to_stopped_by_watchpoint,
9392 to_stopped_data_address.
9393 (target_store_registers): Simplify.
9394 (forward_target_remove_breakpoint)
9395 (forward_target_insert_breakpoint): Remove.
9396 (target_remove_breakpoint, target_insert_breakpoint)
9397 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9398 * target.h (struct target_ops) <to_resume, to_wait,
9399 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9400 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9401 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9402 markup.
9403 (forward_target_remove_breakpoint)
9404 (forward_target_insert_breakpoint): Remove.
9405 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9406 directly.
9407 (record_btrace_insert_breakpoint): Delegate directly.
9408
1101cb7b
TT
94092014-02-19 Tom Tromey <tromey@redhat.com>
9410
9411 PR build/7701:
9412 * target-delegates.c: New file.
9413 * target.c: Include target-delegates.c.
9414 (init_dummy_target): Call install_dummy_methods.
9415 (complete_target_initialization): Call install_delegators.
9416 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9417 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9418 * make-target-delegates: New file.
9419
8b06beed
TT
94202014-02-19 Tom Tromey <tromey@redhat.com>
9421
9422 * record.c (find_record_target): Use find_target_at.
9423 * target.c (find_target_at): New function.
9424 * target.h (find_target_at): Declare.
9425
6a109b6b
TT
94262014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9429 Add 'ops' argument.
9430 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9431 'ops' argument.
9432 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9433 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9434 'ops' argument.
9435 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9436 argument.
9437 * linux-nat.c (save_sigtrap): Update.
9438 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9439 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9440 (linux_nat_close): Update.
9441 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9442 argument.
9443 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9444 argument.
9445 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9446 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9447 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9448 (tmp_to_async): Add 'ops' argument.
9449 (record_full_stopped_by_watchpoint, record_full_async)
9450 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9451 argument.
9452 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9453 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9454 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9455 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9456 (remote_is_async_p, remote_async): Add 'ops' argument.
9457 (remote_stopped_data_address): Update.
9458 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9459 * target.c (update_current_target)
9460 (find_default_can_async_p, find_default_is_async_p): Update.
9461 (init_dummy_target): Update.
9462 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9463 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9464 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9465 (target_can_async_p, target_is_async_p, target_async)
9466 (target_stopped_by_watchpoint): Update.
9467
e095146b
YQ
94682014-02-19 Yao Qi <yao@codesourcery.com>
9469
9470 PR gdb/16220
9471 * gdbarch.sh: Remove startup_gdbarch.
9472 * gdbarch.c: Regenerated.
9473 * gdbarch.h: Likewise.
9474
bc3c6b36
KB
94752014-02-17 Kevin Buettner <kevinb@redhat.com>
9476
9477 * rl78-tdep.c (rl78_g10_register_name): New function.
9478 (rl78_return_value): Add g10 support.
9479 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9480 g10.
9481
98dc0167 94822014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9483
9484 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9485 (SUBDIR_GUILE_SRCS): Ditto.
9486 (scm-gsmob.o): Ditto.
9487
842c05cd
YQ
94882014-02-17 Yao Qi <yao@codesourcery.com>
9489
9490 * gnu-nat.c (ILL_RPC): Declare defined function.
9491
25c0bd04
YQ
94922014-02-17 Yao Qi <yao@codesourcery.com>
9493
9494 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9495 mach_msg_type_number_t.
9496 (gnu_write_inferior): Likewise.
9497
a9a758e3
YQ
94982014-02-17 Yao Qi <yao@codesourcery.com>
9499
9500 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9501 in format string.
9502 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9503 (inf_validate_procs, inf_signal): Likewise.
9504 (S_exception_raise_request): Likewise.
9505 (do_mach_notify_dead_name): Likewise.
9506 (steal_exc_port): Likewise.
9507 (gnu_read_inferior): Change 'copy_count''s type to
9508 mach_msg_type_number_t.
9509 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9510 format string.
9511
bae8023e
TS
95122014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9513
c82f56d9
TS
9514 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9515 flag. Adjust all users; in particular...
9516 (gnu_wait): ..., don't decrement its value in here...
9517 (gnu_create_inferior): ..., and instead set the flag in here,
9518 around the startup_inferior call, and call that one with
9519 START_INFERIOR_TRAPS_EXPECTED.
9520
3398af6a
TS
9521 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9522 (ILL_RPC): ... new macro.
9523 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9524 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9525 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9526 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9527 functions with ILL_RPC macro.
9528 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9529 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9530 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9531 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9532 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9533 (S_proc_getlogin_reply, S_proc_getsid_reply)
9534 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9535 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9536 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9537 (S_proc_getnports_reply, S_proc_is_important_reply)
9538 (S_proc_get_code_reply): New stub functions, generated with
9539 ILL_RPC macro.
9540
d47642c9
TS
9541 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9542 collected the type check structures.
9543
bae8023e
TS
9544 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9545
8a55ffb0
DE
95462014-02-14 Doug Evans <dje@google.com>
9547
9548 * target.c (target_write_partial): Fix result type.
9549
c2853f3d
JM
95502014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9551
9552 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9553 the proper offsets to access fpregset_t.
9554
ac61d2db
SA
95552014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9556
9557 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9558 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9559 * h8300-tdep.c (setmachinelist): Remove global.
9560 * hppa-tdep.c (hppa_sigtramp): Remove global.
9561 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9562 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9563 * ravenscar-thread.c (update_target_observer): Remove global.
9564 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9565
9d2d0b8b
TT
95662014-02-12 Tom Tromey <tromey@redhat.com>
9567
9568 * common/rsp-low.c: Update comments.
9569 * common/rsp-low.h: Update comments.
9570
a7191e8b
TT
95712014-02-12 Tom Tromey <tromey@redhat.com>
9572
9573 * common/rsp-low.c (convert_ascii_to_int): Remove.
9574 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9575
ff0e980e
TT
95762014-02-12 Tom Tromey <tromey@redhat.com>
9577
9578 * common/rsp-low.h (unhexify): Don't declare.
9579 * common/rsp-low.c (unhexify): Remove.
9580
e9371aff
TT
95812014-02-12 Tom Tromey <tromey@redhat.com>
9582
9583 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9584 * common/rsp-low.c (convert_int_to_ascii): Remove.
9585
971dc0b8
TT
95862014-02-12 Tom Tromey <tromey@redhat.com>
9587
9588 * common/rsp-low.h (hexify): Don't declare.
9589 * common/rsp-low.c (hexify): Remove.
9590
0a822afb
TT
95912014-02-12 Tom Tromey <tromey@redhat.com>
9592
9593 * common/rsp-low.c (hexify): Never take strlen of argument.
9594
9f1b45b0
TT
95952014-02-12 Tom Tromey <tromey@redhat.com>
9596
9597 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9598 * remote.c (extended_remote_run, remote_rcmd)
9599 (remote_download_trace_state_variable, remote_save_trace_data)
9600 (remote_set_trace_notes): Update.
9601 * tracepoint.c (encode_source_string, tfile_write_status)
9602 (tfile_write_uploaded_tsv): Update.
9603
9c3d6531
TT
96042014-02-12 Tom Tromey <tromey@redhat.com>
9605
9606 * tracepoint.c: Include rsp-low.h.
9607 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9608 * remote.c: Include rsp-low.h.
9609 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9610 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9611 (remote_unescape_input): Move to common/rsp-low.c.
9612 * common/rsp-low.h: New file.
9613 * common/rsp-low.c: New file.
9614 * Makefile.in (SFILES): Add common/rsp-low.c.
9615 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9616 (COMMON_OBS): Add rsp-low.o.
9617 (rsp-low.o): New target.
9618
01fd3ea5
TT
96192014-02-12 Tom Tromey <tromey@redhat.com>
9620
9621 * utils.h: Include print-utils.h.
9622 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9623 (int_string, core_addr_to_string, core_addr_to_string_nz)
9624 (hex_string, hex_string_custom): Don't declare.
9625 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9626 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9627 (hex_string_custom, int_string, core_addr_to_string)
9628 (core_addr_to_string_nz, host_address_to_string): Move to
9629 common/print-utils.c.
9630 * common/print-utils.h: New file.
9631 * common/print-utils.c: New file
9632 * Makefile.in (SFILES): Add common/print-utils.c.
9633 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9634 (COMMON_OBS): Add print-utils.o.
9635 (print-utils.o): New target.
9636
9fb50108
TT
96372014-02-12 Tom Tromey <tromey@redhat.com>
9638
9639 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9640
0548b5db
MK
96412014-02-12 Mark Kettenis <kettenis@gnu.org>
9642
9643 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9644
493443a4
MK
96452014-02-12 Mark Kettenis <kettenis@gnu.org>
9646
9647 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9648 if a PT_IO ptrace request returns sucessfully but indicates that 0
9649 bytes were transferred.
9650
706d0883
PA
96512014-02-12 Pedro Alves <palves@redhat.com>
9652 Kevin Buettner <kevinb@redhat.com>
9653
9654 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9655 TYPE_INSTANCE_FLAG_CODE_SPACE.
9656
5caa2f0b
PA
96572014-02-12 Pedro Alves <palves@redhat.com>
9658
9659 * h8300-tdep.c (pseudo_from_raw_register)
9660 (raw_from_pseudo_register): New functions.
9661 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9662 them.
9663
76fd5f74
PA
96642014-02-12 Pedro Alves <palves@redhat.com>
9665
9666 * h8300-tdep.c (h8300_register_sim_regno): New function.
9667 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9668 gdbarch_register_sim_regno hook.
9669
8f008406
SA
96702014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9671
9672 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9673
195abc10
SA
96742014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9675
9676 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9677
93ffa5b9
MK
96782014-02-12 Mark Kettenis <kettenis@gnu.org>
9679
9680 * obsd-tdep.h (obsd_init_abi): New prototype.
9681 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9682 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9683 (obsd_init_abi): New functions.
9684 * i386obsd-tdep.c: Include "obsd-tdep.h".
9685 (i386obsd_init_abi): Call obsd_init_abi.
9686 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9687 (amd64obsd_init_abi): Call obsd_init_abi.
9688 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9689 obsd-tdep.c to gdb_target_obs.
9690
49caec94
JM
96912014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9692
9693 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9694 double float arguments to 16-byte in the argument slots.
9695
e1402065
DE
96962014-02-11 Doug Evans <xdje42@gmail.com>
9697
9698 * configure.ac: Don't crash if pkg-config is not found and guile
9699 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9700 in guile checks.
9701 * configure: Regenerate.
9702
edcc890f
YQ
97032014-02-11 Yao Qi <yao@codesourcery.com>
9704
9705 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9706 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9707 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9708 * gnu-nat.c (gnu_xfer_memory): Likewise.
9709 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9710 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9711 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9712 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9713
9b409511
YQ
97142014-02-11 Yao Qi <yao@codesourcery.com>
9715
9716 * target.h (enum target_xfer_error): Rename to ...
9717 (enum target_xfer_status): ... it. New. All users updated.
9718 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9719 New.
9720 (TARGET_XFER_STATUS_ERROR_P): New macro.
9721 (target_xfer_error_to_string): Remove declaration.
9722 (target_xfer_status_to_string): Declare.
9723 (target_xfer_partial_ftype): Adjust it.
9724 (struct target_ops) <to_xfer_partial>: Return
9725 target_xfer_status. Add argument xfered_len. Update
9726 comments.
9727 * target.c (target_xfer_error_to_string): Rename to ...
9728 (target_xfer_status_to_string): ... it. New. All callers
9729 updated.
9730 (target_read_live_memory): Likewise. Call target_xfer_partial
9731 instead of target_read.
9732 (memory_xfer_live_readonly_partial): Return
9733 target_xfer_status. Add argument xfered_len.
9734 (raw_memory_xfer_partial): Likewise.
9735 (memory_xfer_partial_1): Likewise.
9736 (memory_xfer_partial): Likewise.
9737 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9738 properly. Update debug message.
9739 (default_xfer_partial, current_xfer_partial): Likewise.
9740 (target_write_partial): Likewise.
9741 (target_read_partial): Likewise. All callers updated.
9742 (read_whatever_is_readable): Likewise.
9743 (target_write_with_progress): Likewise.
9744 (target_read_alloc_1): Likewise.
9745
9746 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9747 * auxv.c (procfs_xfer_auxv): Likewise.
9748 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9749 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9750 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9751 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9752 * corefile.c (read_memory): Adjust.
9753 * corelow.c (core_xfer_partial): Likewise.
9754 * ctf.c (ctf_xfer_partial): Likewise.
9755 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9756 updated.
9757 (darwin_xfer_partial): Likewise.
9758 * exec.c (section_table_xfer_memory_partial): Likewise. All
9759 callers updated.
9760 (exec_xfer_partial): Likewise.
9761 * exec.h (section_table_xfer_memory_partial): Update
9762 declaration.
9763 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9764 negative.
9765 (gnu_xfer_partial): Likewise.
9766 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9767 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9768 (ia64_hpux_xfer_solib_got): Likewise.
9769 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9770 type of 'partial_len' to ULONGEST.
9771 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9772 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9773 (linux_nat_xfer_partial): Likewise.
9774 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9775 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9776 * monitor.c (monitor_xfer_memory): Likewise.
9777 (monitor_xfer_partial): Likewise.
9778 * procfs.c (procfs_xfer_partial): Likewise.
9779 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9780 * record-full.c (record_full_xfer_partial): Likewise.
9781 (record_full_core_xfer_partial): Likewise.
9782 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9783 (gdbsim_xfer_partial): Likewise.
9784 * remote.c (remote_write_bytes_aux): Likewise. All callers
9785 updated.
9786 (remote_write_bytes, remote_read_bytes): Likewise. All
9787 callers updated.
9788 (remote_flash_erase): Likewise. All callers updated.
9789 (remote_write_qxfer): Likewise. All callers updated.
9790 (remote_read_qxfer): Likewise. All callers updated.
9791 (remote_xfer_partial): Likewise.
9792 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9793 (rs6000_xfer_shared_libraries): Likewise.
9794 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9795 (sol_thread_xfer_partial): Likewise.
9796 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9797 (sparc_xfer_partial): Likewise.
9798 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9799 updated.
9800 (spu_xfer_partial): Likewise.
9801 * spu-multiarch.c (spu_xfer_partial): Likewise.
9802 * tracepoint.c (tfile_xfer_partial): Likewise.
9803 * windows-nat.c (windows_xfer_memory): Likewise.
9804 (windows_xfer_shared_libraries): Likewise.
9805 (windows_xfer_partial): Likewise.
9806 * valprint.c: Replace 'target_xfer_error' with
9807 'target_xfer_status' in comments.
9808
a8e63083
JB
98092014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9810
9811 Checked in by Joel Brobecker <brobecker@adacore.com>.
9812 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9813
e86b67d3
JB
98142014-02-11 Joel Brobecker <brobecker@adacore.com>
9815
9816 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9817 function parameters.
9818
4b7d1f7f
WN
98192014-02-10 Will Newton <will.newton@linaro.org>
9820
9821 * elfread.c (elf_rel_plt_read): Look for a .got section if
9822 looking up .got.plt fails.
9823 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9824 on address passed to elf_gnu_ifunc_record_cache.
9825 (elf_gnu_ifunc_resolve_addr): Likewise.
9826 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9827
961842b2
JM
98282014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9829
9830 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9831 (X_RETTURN): New macro.
9832 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9833
9834 * sparc64-tdep.c (sparc64_init_abi): Hook
9835 sparc_in_function_epilogue_p.
9836
3f03e7b1
GB
98372014-02-10 Gary Benson <gbenson@redhat.com>
9838
9839 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9840 Rename name_matcher to symbol_matcher.
9841
96f861ef
GB
98422014-02-10 Gary Benson <gbenson@redhat.com>
9843
9844 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9845 Use expand_symtabs_file_matcher_ftype and
9846 expand_symtabs_symbol_matcher_ftype.
9847
ee01b665
JB
98482014-02-10 Joel Brobecker <brobecker@adacore.com>
9849
9850 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9851 (struct ada_symbol_cache): New.
9852 (ada_free_symbol_cache): Forward declare.
9853 (struct ada_pspace_data): New.
9854 (ada_pspace_data_handle): New static global.
9855 (get_ada_pspace_data, ada_pspace_data_cleanup)
9856 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9857 (cache_space, cache): Delete, now folded inside struct
9858 ada_pspace_data.
9859 (ada_get_symbol_cache): New function.
9860 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9861 implementation.
9862 (_initialize_ada_language): Remove initialization of cache_space.
9863 Move call to observer_attach_inferior_exit up, grouping it
9864 with the other observer registrations inside this function.
9865 Rename command to be more general. Add call to
9866 register_program_space_data_with_cleanup.
9867
143adbbf
JB
98682014-02-10 Joel Brobecker <brobecker@adacore.com>
9869
9870 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9871 ada_new_objfile_observer.
9872 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9873 (_initialize_tasks): Update uses of ada_new_objfile_observer
9874 and ada_tasks_normal_stop_observer.
9875
aa4fb036
JB
98762014-02-10 Joel Brobecker <brobecker@adacore.com>
9877
9878 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9879 returned by the 'Length attribute to integer.
9880
9dee8cc6
JB
98812014-02-10 Joel Brobecker <brobecker@adacore.com>
9882
9883 * ada-lang.c (_initialize_ada_language): Initialize
9884 cache_space obstack.
9885
3d9434b5
JB
98862014-02-10 Joel Brobecker <brobecker@adacore.com>
9887
9888 * ada-lang.c (HASH_SIZE): New macro.
9889 (struct cache_entry): New type.
9890 (cache_space, cache): New static globals.
9891 (ada_clear_symbol_cache, find_entry): New functions.
9892 (lookup_cached_symbol, cache_symbol): Implement.
9893 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9894 (_initialize_ada_language): Attach ada_new_objfile_observer
9895 and ada_free_objfile_observer.
9896
f0c5f9b2
JB
98972014-02-10 Joel Brobecker <brobecker@adacore.com>
9898
9899 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9900 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9901 struct block * parameter.
9902 (ada_lookup_symbol_list_worker): Constify local variable "block".
9903 Remove cast which is no longer necessary.
9904
ed3ef339
DE
99052014-02-10 Doug Evans <xdje42@gmail.com>
9906
9907 Add Guile as an extension language.
9908 * NEWS: Mention Guile scripting.
9909 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9910 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9911 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9912 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9913 (CLIBS): Add GUILE_LIBS.
9914 (install-guile): New rule.
9915 (guile.o): New rule.
9916 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9917 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9918 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9919 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9920 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9921 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9922 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9923 * configure.ac: New option --with-guile.
9924 * configure: Regenerate.
9925 * config.in: Regenerate.
9926 * auto-load.c: Remove #include "python/python.h". Add #include
9927 "gdb/section-scripts.h".
9928 (source_section_scripts): Handle Guile scripts.
9929 (_initialize_auto_load): Add name of Guile objfile script to
9930 scripts-directory help text.
9931 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9932 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9933 (struct breakpoint): New member scm_bp_object.
9934 * defs.h (enum command_control_type): New value guile_control.
9935 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9936 "extension.h".
9937 (show_user): Update comment.
9938 (_initialize_cli_cmds): Update help text for "show user". Update help
9939 text for max-user-call-depth.
9940 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9941 "extension.h".
9942 (multi_line_command_p): Add guile_control.
9943 (print_command_lines): Handle guile_control.
9944 (execute_control_command, recurse_read_control_structure): Ditto.
9945 (process_next_line): Recognize "guile" commands.
9946 * disasm.c (gdb_disassemble_info): Make non-static.
9947 * disasm.h: #include "dis-asm.h".
9948 (struct gdbarch): Add forward decl.
9949 (gdb_disassemble_info): Declare.
9950 * extension.c: #include "guile/guile.h".
9951 (extension_languages): Add guile.
9952 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9953 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9954 * gdbtypes.c (get_unsigned_type_max): New function.
9955 (get_signed_type_minmax): New function.
9956 * gdbtypes.h (get_unsigned_type_max): Declare.
9957 (get_signed_type_minmax): Declare.
9958 * guile/README: New file.
9959 * guile/guile-internal.h: New file.
9960 * guile/guile.c: New file.
9961 * guile/guile.h: New file.
9962 * guile/scm-arch.c: New file.
9963 * guile/scm-auto-load.c: New file.
9964 * guile/scm-block.c: New file.
9965 * guile/scm-breakpoint.c: New file.
9966 * guile/scm-disasm.c: New file.
9967 * guile/scm-exception.c: New file.
9968 * guile/scm-frame.c: New file.
9969 * guile/scm-gsmob.c: New file.
9970 * guile/scm-iterator.c: New file.
9971 * guile/scm-lazy-string.c: New file.
9972 * guile/scm-math.c: New file.
9973 * guile/scm-objfile.c: New file.
9974 * guile/scm-ports.c: New file.
9975 * guile/scm-pretty-print.c: New file.
9976 * guile/scm-safe-call.c: New file.
9977 * guile/scm-string.c: New file.
9978 * guile/scm-symbol.c: New file.
9979 * guile/scm-symtab.c: New file.
9980 * guile/scm-type.c: New file.
9981 * guile/scm-utils.c: New file.
9982 * guile/scm-value.c: New file.
9983 * guile/lib/gdb.scm: New file.
9984 * guile/lib/gdb/boot.scm: New file.
9985 * guile/lib/gdb/experimental.scm: New file.
9986 * guile/lib/gdb/init.scm: New file.
9987 * guile/lib/gdb/iterator.scm: New file.
9988 * guile/lib/gdb/printing.scm: New file.
9989 * guile/lib/gdb/types.scm: New file.
9990 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9991 (VPATH): Add $(GUILE_SRCDIR).
9992 (GUILE_DIR): New variable.
9993 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9994 (all): Add stamp-guile dependency.
9995 (stamp-guile): New rule.
9996 (clean-guile, install-guile, uninstall-guile): New rules.
9997 (install-only): Add install-guile dependency.
9998 (uninstall): Add uninstall-guile dependency.
9999 (clean): Add clean-guile dependency.
10000
ac020ec5
DE
100012014-02-09 Doug Evans <xdje42@gmail.com>
10002
10003 Revert this patch (which I approved, mea culpa).
10004
10005 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10006
10007 * Makefile.in (all-lib): Remove.
10008 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10009
2a081c59
JK
100102014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10011
10012 Fix Python stack corruption.
10013 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10014 gdb_py_longest.
10015
0a6bd22d
MK
100162014-02-08 Mark Kettenis <kettenis@gnu.org>
10017
10018 * Makefile.in (all-lib): Remove.
10019 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10020
1a860409
DE
100212014-02-07 Doug Evans <dje@google.com>
10022
10023 * extension-priv.h (extension_language_script_ops): Add comment.
10024 (extension_language_ops): Add comment.
caf5a491 10025 (active_ext_lang_state): Fix typo in comment.
1a860409 10026
d137e6dc
PA
100272014-02-07 Pedro Alves <palves@redhat.com>
10028
0dcb32c3 10029 PR breakpoints/16292
d137e6dc
PA
10030 * infrun.c (handle_signal_stop) <signal arrives while stepping
10031 over a breakpoint>: Switch back to the stepping thread.
10032
ce6d0892
YQ
100332014-02-07 Yao Qi <yao@codesourcery.com>
10034
10035 * target.c (target_xfer_partial): Return zero if LEN is zero.
10036
2ed4b548
YQ
100372014-02-07 Yao Qi <yao@codesourcery.com>
10038
10039 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10040 (ld_so_xfer_auxv): Likewise.
10041 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10042 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10043 * corelow.c (core_xfer_partial): Likewise.
10044 * ctf.c (ctf_xfer_partial): Likewise.
10045 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10046 (darwin_xfer_partial): Likewise.
10047 * exec.c (exec_xfer_partial): Likewise.
10048 * gnu-nat.c (gnu_xfer_partial): Likewise.
10049 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10050 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10051 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10052 * linux-nat.c (linux_xfer_siginfo): Likewise.
10053 (linux_proc_xfer_spu): Likewise.
10054 * procfs.c (procfs_xfer_partial): Likewise.
10055 * record-full.c (record_full_xfer_partial): Likewise.
10056 (record_full_core_xfer_partial): Likewise.
10057 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10058 * remote.c (remote_write_qxfer): Likewise.
10059 (remote_write_qxfer, remote_read_qxfer): Likewise.
10060 (remote_xfer_partial): Likewise.
10061 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10062 (rs6000_xfer_shared_libraries): Likewise.
10063 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10064 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10065 (spu_xfer_partial): Likewise.
10066 * target.c (memory_xfer_partial_1): Likewise.
10067 * tracepoint.c (tfile_xfer_partial): Likewise.
10068 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10069 (windows_xfer_partial): Likewise.
10070
c09f20e4
YQ
100712014-02-07 Yao Qi <yao@codesourcery.com>
10072
10073 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10074 comments.
10075 (core_xfer_shared_libraries_aix): Likewise.
10076 * gdbarch.c, gdbarch.h: Regenerated.
10077 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10078 ULONGEST. Change 'len_avail' type to ULONGEST.
10079 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10080 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10081 declaration.
10082 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10083
8635b3bf
YQ
100842014-02-07 Yao Qi <yao@codesourcery.com>
10085
10086 * corefile.c (memory_error): Get 'exception' from ERR and pass
10087 'exception' to throw_error.
10088
6dddc817
DE
100892014-02-06 Doug Evans <xdje42@gmail.com>
10090
10091 * configure.ac (libpython checking): Remove all but python.o from
10092 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10093 * configure: Regenerate.
10094
10095 * Makefile.in (SFILES): Add extension.c.
10096 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10097 (COMMON_OBS): Add extension.o.
10098 * extension.h: New file.
10099 * extension-priv.h: New file.
10100 * extension.c: New file.
10101
10102 * python/python-internal.h: #include "extension.h".
10103 (gdbpy_auto_load_enabled): Declare.
10104 (gdbpy_apply_val_pretty_printer): Declare.
10105 (gdbpy_apply_frame_filter): Declare.
10106 (gdbpy_preserve_values): Declare.
10107 (gdbpy_breakpoint_cond_says_stop): Declare.
10108 (gdbpy_breakpoint_has_cond): Declare.
10109 (void source_python_script_for_objfile): Delete.
10110 * python/python.c: #include "extension-priv.h".
10111 Delete inclusion of "observer.h".
10112 (extension_language_python): Moved here and renamed from
10113 script_language_python in py-auto-load.c.
10114 Redefined to be of type extension_language_defn.
10115 (python_extension_script_ops): New global.
10116 (python_extension_ops): New global.
10117 (struct python_env): New member previous_active.
10118 (restore_python_env): Call restore_active_ext_lang.
10119 (ensure_python_env): Call set_active_ext_lang.
10120 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10121 New arg extlang.
10122 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10123 New arg extlang.
10124 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10125 New arg extlang.
10126 (gdbpy_eval_from_control_command): Renamed from
10127 eval_python_from_control_command, made static. New arg extlang.
10128 (gdbpy_source_script) Renamed from source_python_script, made static.
10129 New arg extlang.
10130 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10131 result to int. New arg extlang.
10132 (gdbpy_source_objfile_script): Renamed from
10133 source_python_script_for_objfile, made static. New arg extlang.
10134 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10135 static. New args extlang, extlang_printers. Change result type to
10136 "void".
10137 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10138 static. New arg extlang. Rename arg printers to extlang_printers
10139 and change type to ext_lang_type_printers *.
10140 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10141 static. Replace argument arg with extlang, extlang_printers.
10142 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10143 (!HAVE_PYTHON, source_python_script): Delete.
10144 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10145 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10146 (!HAVE_PYTHON, start_type_printers): Delete.
10147 (!HAVE_PYTHON, apply_type_printers): Delete.
10148 (!HAVE_PYTHON, free_type_printers): Delete.
10149 (_initialize_python): Delete call to observer_attach_before_prompt.
10150 (finalize_python): Set/restore active extension language.
10151 (gdbpy_finish_initialization) Renamed from
10152 finish_python_initialization, made static. New arg extlang.
10153 (gdbpy_initialized): New function.
10154 * python/python.h: #include "extension.h". Delete #include
10155 "value.h", "mi/mi-cmds.h".
10156 (extension_language_python): Declare.
10157 (GDBPY_AUTO_FILE_NAME): Delete.
10158 (enum py_bt_status): Moved to extension.h and renamed to
10159 ext_lang_bt_status.
10160 (enum frame_filter_flags): Moved to extension.h.
10161 (enum py_frame_args): Moved to extension.h and renamed to
10162 ext_lang_frame_args.
10163 (finish_python_initialization): Delete.
10164 (eval_python_from_control_command): Delete.
10165 (source_python_script): Delete.
10166 (apply_val_pretty_printer): Delete.
10167 (apply_frame_filter): Delete.
10168 (preserve_python_values): Delete.
10169 (gdbpy_script_language_defn): Delete.
10170 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10171 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10172
10173 * auto-load.c: #include "extension.h".
10174 (GDB_AUTO_FILE_NAME): Delete.
10175 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10176 (script_language_gdb): Delete, moved to extension.c and renamed to
10177 extension_language_gdb.
10178 (source_gdb_script_for_objfile): Delete.
10179 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10180 (loaded_script): Change type of language member to
10181 struct extension_language_defn *.
10182 (init_loaded_scripts_info): Initialize
10183 unsupported_script_warning_printed.
10184 (maybe_add_script): Make static. Change type of language arg to
10185 struct extension_language_defn *.
10186 (clear_section_scripts): Reset unsupported_script_warning_printed.
10187 (auto_load_objfile_script_1): Rewrite to use extension language API.
10188 (auto_load_objfile_script): Make public. Remove support-compiled-in
10189 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10190 (source_section_scripts): Rewrite to use extension language API.
10191 (load_auto_scripts_for_objfile): Rewrite to use
10192 auto_load_scripts_for_objfile.
10193 (collect_matching_scripts_data): Change type of language member to
10194 struct extension_language_defn *.
10195 (auto_load_info_scripts): Change type of language arg to
10196 struct extension_language_defn *.
10197 (unsupported_script_warning_print): New function.
10198 (script_not_found_warning_print): Make static.
10199 (_initialize_auto_load): Rewrite construction of scripts-directory
10200 help.
10201 * auto-load.h (struct objfile): Add forward decl.
10202 (struct script_language): Delete.
10203 (struct auto_load_pspace_info): Add forward decl.
10204 (struct extension_language_defn): Add forward decl.
10205 (maybe_add_script): Delete.
10206 (auto_load_objfile_script): Declare.
10207 (script_not_found_warning_print): Delete.
10208 (auto_load_info_scripts): Update prototype.
10209 (auto_load_gdb_scripts_enabled): Declare.
10210 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10211 auto_load_python_scripts_enabled and made public.
10212 (script_language_python): Delete, moved to python.c.
10213 (gdbpy_script_language_defn): Delete.
10214 (info_auto_load_python_scripts): Update to use
10215 extension_language_python.
10216
10217 * breakpoint.c (condition_command): Replace call to
10218 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10219 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10220 with call to breakpoint_ext_lang_cond_says_stop.
10221 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10222 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10223 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10224 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10225 New arg slang.
10226 (local_setattro): Print name of extension language with existing
10227 stop condition.
10228
10229 * valprint.c (val_print, value_print): Update to call
10230 apply_ext_lang_val_pretty_printer.
10231 * cp-valprint.c (cp_print_value): Update call to
10232 apply_ext_lang_val_pretty_printer.
10233 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10234 (gdbpy_apply_val_pretty_printer): Renamed from
10235 apply_val_pretty_printer. New arg extlang.
10236 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10237
10238 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10239 extension language API.
10240 * cli/cli-script.c (execute_control_command): Update to call
10241 eval_ext_lang_from_control_command.
10242
10243 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10244 enum ext_lang_bt_status values. Update call to
10245 apply_ext_lang_frame_filter.
10246 (mi_cmd_stack_list_locals): Ditto.
10247 (mi_cmd_stack_list_args): Ditto.
10248 (mi_cmd_stack_list_variables): Ditto.
10249 * mi/mi-main.c: Delete #include "python/python-internal.h".
10250 Add #include "extension.h".
10251 (mi_cmd_list_features): Replace reference to python internal variable
10252 gdb_python_initialized with call to ext_lang_initialized_p.
10253
10254 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10255 Update to use enum ext_lang_frame_args. Update to call
10256 apply_ext_lang_frame_filter.
10257 * python/py-framefilter.c (extract_sym): Update to use enum
10258 ext_lang_bt_status.
10259 (extract_value, py_print_type, py_print_value): Ditto.
10260 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10261 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10262 (py_print_frame): Ditto.
10263 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10264 New arg extlang. Update to use enum ext_lang_bt_status.
10265
10266 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10267 finish_python_initialization. Replace with call to
10268 finish_ext_lang_initialization.
10269
10270 * typeprint.c (do_free_global_table): Update to call
10271 free_ext_lang_type_printers.
10272 (create_global_typedef_table): Update to call
10273 start_ext_lang_type_printers.
10274 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10275 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10276 (type_print_options): Change type of global_printers from "void *"
10277 to "struct ext_lang_type_printers *".
10278
10279 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10280 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10281 (gdbpy_preserve_values): Renamed from preserve_python_values.
10282 New arg extlang.
10283 (!HAVE_PYTHON, preserve_python_values): Delete.
10284
10285 * utils.c (quit_flag): Delete, moved to extension.c.
10286 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10287 extension.c.
10288
10289 * eval.c: Delete #include "python/python.h".
10290 * main.c: Delete #include "python/python.h".
10291
10292 * defs.h: Update comment.
10293
6af79985
JB
102942014-02-06 Joel Brobecker <brobecker@adacore.com>
10295
10296 GDB 7.7 released.
10297
12c5175d
MK
102982014-02-05 Mark Kettenis <kettenis@gnu.org>
10299
10300 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10301 defined.
10302
8dc5b319
YQ
103032014-02-05 Yao Qi <yao@codesourcery.com>
10304
10305 * remote.c (remote_pass_signals): Remove local 'buf' and use
10306 rs->buf.
10307 (remote_program_signals): Likewise.
10308
de7b2893
YQ
103092014-02-05 Yao Qi <yao@codesourcery.com>
10310
10311 * ctf.c: Include "inferior.h" and "gdbthread.h".
10312 (CTF_PID): A new macro.
10313 (ctf_open): Call inferior_appeared and add_thread_silent.
10314 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10315 (ctf_thread_alive): New function.
10316 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10317
66d032ac
YQ
103182014-02-05 Yao Qi <yao@codesourcery.com>
10319
10320 Revert this patch:
10321
10322 2013-05-24 Yao Qi <yao@codesourcery.com>
10323
10324 * tracepoint.c (TFILE_PID): Remove.
10325 (tfile_open): Don't add thread and inferior.
10326 (tfile_close): Don't set 'inferior_ptid'. Don't call
10327 exit_inferior_silent.
10328 (tfile_thread_alive): Remove.
10329 (init_tfile_ops): Don't set field 'to_thread_alive' of
10330 tfile_ops.
10331
f4ccffad
CE
103322014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10333
10334 * remote.c (remote_start_remote): Call remote_check_symbols even
10335 if only symbol-file (not file) has been given.
10336
591a12a1
UW
103372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10338
10339 * gdbarch.sh (skip_entrypoint): New callback.
10340 * gdbarch.c, gdbarch.h: Regenerate.
10341 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10342 * infrun.c (fill_in_stop_func): Likewise.
10343 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10344 (ppc_elfv2_elf_make_msymbol_special): New function.
10345 (ppc_elfv2_skip_entrypoint): Likewise.
10346 (ppc_linux_init_abi): Install them for ELFv2.
10347
cc0e89c5
UW
103482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10349
10350 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10351 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10352 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10353 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10354 structures returned in GPRs.
10355
52f548e4
UW
103562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10357
10358 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10359 offset to the stack parameter list for the ELFv2 ABI.
10360
d4094b6a
UW
103612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10362
10363 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10364 set_gdbarch_convert_from_func_ptr_addr and
10365 set_gdbarch_elf_make_msymbol_special for ELFv1.
10366 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10367 function descriptors on ELFv1.
10368 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10369 set up r12 at function entry.
10370
cd453cd0
UW
103712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10372
10373 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10374 (struct gdbarch_tdep): New member elf_abi.
10375
10376 * rs6000-tdep.c: Include "elf/ppc64.h".
10377 (rs6000_gdbarch_init): Detect ELF ABI version.
10378
0ff3e01f
UW
103792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10380
10381 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10382 within a register pair holding a DFP 128-bit value on little-endian.
10383 (ppc64_sysv_abi_return_value_base): Likewise.
10384 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10385 (dfp_pseudo_register_write): Likewise.
10386
5b757e5d
UW
103872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10388
10389 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10390 offset on little-endian when passing _Decimal32.
10391 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10392
084ee545
UW
103932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10394
10395 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10396 of the overlapped FP register within the VSX register on little-
10397 endian platforms.
10398 (efpr_pseudo_register_write): Likewise.
10399
d63167af
UW
104002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10401
10402 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10403 offset on little-endian when passing small structures.
10404
e765b44c
UW
104052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10406
10407 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10408 (struct ppc64_sysv_argpos): New data structure.
10409 (ppc64_sysv_abi_push_float): Remove.
10410 (ppc64_sysv_abi_push_val): New function.
10411 (ppc64_sysv_abi_push_integer): Likewise.
10412 (ppc64_sysv_abi_push_freg): Likewise.
10413 (ppc64_sysv_abi_push_vreg): Likewise.
10414 (ppc64_sysv_abi_push_param): Likewise.
10415 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10416 (ppc64_sysv_abi_return_value_base): New function.
10417 (ppc64_sysv_abi_return_value): Refactor to use it.
10418
36c24d95
UW
104192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10420
10421 * NEWS: Document new target powerpc64le-*-linux*.
10422
26fd9228
MK
104232014-02-04 Mark Kettenis <kettenis@gnu.org>
10424
10425 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10426 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10427 core dumps.
10428 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10429 register set used in ELF core dumps. Add floating-point register set.
10430
c5bb7362
KB
104312014-02-03 Kevin Buettner <kevinb@redhat.com>
10432
74228e77 10433 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10434 dwarf2_to_gdb[] table using symbolic constants. Adjust
10435 penultimate entry from number representing the PC register
10436 to symbolic constant representing the MDR register. Add
10437 constant for the PC register to the end of the table.
10438
af09351e
MK
104392014-02-03 Mark Kettenis <kettenis@gnu.org>
10440
10441 * bsd-kvm.c: Include <sys/param.h>
10442
8507e05d
MK
104432014-02-03 Mark Kettenis <kettenis@gnu.org>
10444
10445 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10446
ae56bfb8
JB
104472014-01-31 Joel Brobecker <brobecker@adacore.com>
10448
10449 * ada-lang.h (clear_ada_sym_cache): Delete.
10450
718ee4dc
UW
104512014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10452
10453 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10454
401e27fd
JM
104552014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10456
10457 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10458 the sigreturn register save area only if the syscall is
10459 sigreturn.
10460
a7c88acd
JB
104612014-01-29 Joel Brobecker <brobecker@adacore.com>
10462
10463 * valops.c (value_slice): Minor reformatting.
10464
fa0079ea
UW
104652014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10466
10467 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10468
c6044dd1
JB
104692014-01-28 Joel Brobecker <brobecker@adacore.com>
10470
10471 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10472 New static globals.
10473 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10474 (ada_ignore_descriptive_types_p): New static global.
10475 (find_parallel_type_by_descriptive_type): Return immediately
10476 if ada_ignore_descriptive_types_p is set.
10477 (_initialize_ada_language): Register new commands "maintenance
10478 set ada", "maintenance show ada", "maintenance set ada
10479 ignore-descriptive-types" and "maintenance show ada
10480 ignore-descriptive-types".
10481 * NEWS: Add entry for new "maint ada set/show
10482 ignore-descriptive-types" commands.
10483
568e808b
MM
104842014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10485
10486 * record-btrace.c (record_btrace_close): Call btrace_teardown
10487 for all threads.
10488
467d141b
JB
104892014-01-27 Joel Brobecker <brobecker@adacore.com>
10490
10491 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10492 "ui-out.h".
10493
fb151210
JB
104942014-01-27 Joel Brobecker <brobecker@adacore.com>
10495
10496 * ada-typeprint (type_is_full_subrange_of_target_type):
10497 New function.
10498 (print_range): Add parameter bounds_prefered_p. If not set,
10499 try printing range types using the name of their base type.
10500 (print_range_type): Add parameter bounds_prefered_p.
10501 Use it in call to print_range.
10502 (print_array_type, ada_print_type): Update calls to print_range
10503 and print_range_type.
10504
aba02109
JB
105052014-01-27 Joel Brobecker <brobecker@adacore.com>
10506
10507 * ada-typeprint.c (print_array_type, print_choices, print_range)
10508 (print_range_bound, print_dynamic_range_bound, print_range_type):
10509 Remove declaration.
10510
e62e21fd
JB
105112014-01-27 Joel Brobecker <brobecker@adacore.com>
10512
10513 * ada-typeprint.c (print_range): Add missing empty line
10514 after local declaration.
10515
859cf5d1
JB
105162014-01-27 Joel Brobecker <brobecker@adacore.com>
10517
10518 * ada-valprint.c (print_optional_low_bound): Get index_type's
10519 target type for as long as it is a TYPE_CODE_RANGE.
10520
25790f6f
JB
105212014-01-27 Joel Brobecker <brobecker@adacore.com>
10522
10523 * procfs.c (procfs_make_note_section): Remove assertion and
10524 associated comment.
10525
6b6aa828
YQ
105262014-01-24 Yao Qi <yao@codesourcery.com>
10527
10528 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10529 * corelow.c (get_core_siginfo): Likewise.
10530
5d6df423
YQ
105312014-01-24 Yao Qi <yao@codesourcery.com>
10532
10533 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10534 ULONGEST. Don't check 'len' is negative.
10535 (remote_write_bytes): Change type of 'len' to ULONGEST.
10536
83b645b8
TT
105372014-01-23 Tom Tromey <tromey@redhat.com>
10538
10539 PR python/16485:
10540 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10541 Handle exception from frame.block.
10542 (FrameVars.fetch_frame_locals): Likewise.
10543
0740f8d8
TT
105442014-01-23 Tom Tromey <tromey@redhat.com>
10545
10546 PR python/16487:
10547 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10548 on a NULL pointer. Move "goto error" to correct place.
10549
21909fa1
TT
105502014-01-23 Tom Tromey <tromey@redhat.com>
10551
10552 PR python/16491:
10553 * python/py-framefilter.c (apply_frame_filter): Call
10554 ensure_python_env after computing gdbarch.
10555
17fde6d0
YQ
105562014-01-23 Yao Qi <yao@codesourcery.com>
10557
10558 * target.c (raw_memory_xfer_partial): Change argument type
10559 from void * to gdb_byte *.
10560 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10561
87ce2a04
DE
105622014-01-22 Doug Evans <dje@google.com>
10563
10564 New gdbserver option --debug-format=timestamp.
10565 * NEWS: Mention it.
10566
237b092b
AA
105672014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10568
10569 * syscalls/s390x-linux.xml: New file.
10570 * syscalls/s390-linux.xml: New file.
10571 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10572 (XML_SYSCALL_FILENAME_S390X): Likewise.
10573 (op_svc): New enum value for SVC opcode.
10574 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10575 (s390_linux_get_syscall_number): New function.
10576 (s390_gdbarch_init): Register '*get_syscall_number' and the
10577 syscall xml file name.
10578 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10579 "s390-linux.xml" and "s390x-linux.xml".
10580 * NEWS: Announce new feature.
10581
54bff650
BS
105822014-01-22 Baruch Siach <baruch@tkos.co.il>
10583
10584 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10585
14e361d7
PA
105862014-01-22 Pedro Alves <palves@redhat.com>
10587
10588 * xtensa-config.c: Include defs.h.
10589
46bbb3ed
JB
105902014-01-22 Joel Brobecker <brobecker@adacore.com>
10591
10592 * common/common-utils.h: Add "ARI:" comment beside __func__
10593 reference.
10594
3a80edfc
JB
105952014-01-22 Joel Brobecker <brobecker@adacore.com>
10596
10597 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10598 documentation a bit.
10599
4869db5e
RM
106002014-01-21 Roland McGrath <mcgrathr@google.com>
10601
10602 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10603 * configure: Regenerate.
10604 * aclocal.m4: Regenerate.
10605 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10606 New substituted variables.
10607 (install-strip): New target.
10608 (INSTALL_SCRIPT): New substituted variable.
10609 (FLAGS_TO_PASS): Add it.
10610 (install-only): Use $(INSTALL_SCRIPT) rather than
10611 $(INSTALL_PROGRAM) for gcore.
10612
9ea4267d
TT
106132014-01-20 Tom Tromey <tromey@redhat.com>
10614
10615 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10616 together.
10617
1f2bdf09
TT
106182014-01-20 Tom Tromey <tromey@redhat.com>
10619
10620 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10621 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10622 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10623 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10624 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10625 (struct cmd_list_element) <flags>: Remove.
10626 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10627 doc_allocated>: New fields.
10628 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10629 bitfields.
10630 * maint.c (maintenance_do_deprecate): Update.
10631 * top.c (execute_command): Update.
10632
e671835b
BS
106332014-01-20 Baruch Siach <baruch@tkos.co.il>
10634
10635 * xtensa-linux-nat.c: Include asm/ptrace.h.
10636
50367cd2
IB
106372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10638
10639 * Makefile.in (SFILES): Add d-support.c.
10640 (COMMON_OBS): Add d-support.o.
10641 * d-lang.h (d_parse_symbol): Add comment, now defined in
10642 d-support.c.
10643 * d-lang.c (parse_call_convention)
10644 (parse_attributes, parse_function_types)
10645 (parse_function_args, parse_type, parse_identifier)
10646 (call_convention_p, d_parse_symbol): Move functions to ...
10647 * d-support.c: ... New file.
10648
ec9f644a
IB
106492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10650
10651 * d-lang.h (d_parse_symbol): Add declaration.
10652 * d-lang.c (extract_identifiers)
10653 (extract_type_info): Remove functions.
10654 (parse_call_convention, parse_attributes)
10655 (parse_function_types, parse_function_args)
10656 (parse_type, parse_identifier, call_convention_p)
10657 (d_parse_symbol): New functions.
10658 (d_demangle): Use d_parse_symbol to demangle D symbols.
10659
94b1b47e
IB
106602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10661
10662 * d-lang.h (struct builtin_d_type): New data type.
10663 (builtin_d_type): Add declaration.
10664 * d-lang.c (d_language_arch_info, build_d_types)
10665 (builtin_d_type): New functions.
10666 (enum d_primitive_types): New data type.
10667 (d_language_defn): Change c_language_arch_info to
10668 d_language_arch_info.
10669 (d_type_data): New static variable.
10670 (_initialize_d_language): Initialize d_type_data.
10671
63778547
IB
106722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10673
10674 * d-lang.h (d_main_name): Add declaration.
10675 * d-lang.c (d_main_name): New function.
10676 * symtab.c (find_main_name): Add call to d_main_name.
10677
3271ba66
IB
106782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10679
10680 * d-lang.c (d_language_defn): Change macro_expansion_c to
10681 macro_expansion_no.
10682
d36b3012
IB
106832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10684
10685 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10686
c90a6fb7
SDJ
106872014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10688
10689 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10690 gdb_exception" declaration.
10691 * remote.c (getpkt_or_notif_sane): Likewise.
10692
749234e5
DE
106932014-01-17 Doug Evans <dje@google.com>
10694
10695 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10696 function, contents of dirnames_to_char_ptr_vec_append moved here.
10697 (delim_string_to_char_ptr_vec): New function.
10698 (dirnames_to_char_ptr_vec_append): Rewrite.
10699 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10700
df049a58
DE
107012014-01-17 Doug Evans <dje@google.com>
10702
10703 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10704 and moved here ...
10705 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10706 #include "common-utils.h".
10707 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10708 * common/vec.h (VEC_ASSERT_PASS): Update.
10709 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10710 (MACH_CHECK_ERROR): Update.
10711
69f97648
SM
107122014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10713
10714 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10715 comments.
10716 * gdbarch.h: Regenerate.
10717
98b1cfdc
TT
107182014-01-16 Tom Tromey <tromey@redhat.com>
10719
10720 * value.c (struct value) <regnum>: Move earlier.
10721
77a19445
TT
107222014-01-16 Tom Tromey <tromey@redhat.com>
10723
10724 * remote.c (extended_remote_create_inferior): Rename from
10725 extended_remote_create_inferior_1. Add "ops" argument. Remove
10726 old implementation.
10727
62261490
PA
107282014-01-16 Pedro Alves <palves@redhat.com>
10729
10730 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10731 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10732 the backchain.
10733
4d65956b
DE
107342014-01-16 Doug Evans <dje@google.com>
10735
10736 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10737
52834460
MM
107382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10739
10740 * btrace.h (btrace_thread_flag): New.
10741 (struct btrace_thread_info) <flags>: New.
10742 * record-btrace.c (record_btrace_resume_thread)
10743 (record_btrace_find_thread_to_move, btrace_step_no_history)
10744 (btrace_step_stopped, record_btrace_start_replaying)
10745 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10746 (record_btrace_find_resume_thread): New.
10747 (record_btrace_resume, record_btrace_wait): Extend.
10748 (record_btrace_can_execute_reverse): New.
10749 (record_btrace_open): Fail in non-stop mode.
10750 (record_btrace_set_replay): Split into this, ...
10751 (record_btrace_stop_replaying): ... this, ...
10752 (record_btrace_clear_histories): ... and this.
10753 (init_record_btrace_ops): Init to_can_execute_reverse.
10754 * NEWS: Announce it.
10755
118e6252
MM
107562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10757
10758 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10759 (forward_target_decr_pc_after_break)
10760 (target_decr_pc_after_break): New.
10761 * target.c (forward_target_decr_pc_after_break)
10762 (target_decr_pc_after_break): New.
10763 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10764 instead of gdbarch_decr_pc_after_break.
10765 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10766 instead of gdbarch_decr_pc_after_break.
10767 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10768 instead of gdbarch_decr_pc_after_break.
10769 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10770 instead of gdbarch_decr_pc_after_break.
10771 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10772 instead of gdbarch_decr_pc_after_break.
10773 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10774 instead of gdbarch_decr_pc_after_break.
10775
6e07b1d2
MM
107762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10777
10778 * btrace.c: Include regcache.h.
10779 (btrace_add_pc): New.
10780 (btrace_enable): Call btrace_add_pc.
10781 (btrace_is_empty): New.
10782 * btrace.h (btrace_is_empty): New.
10783 * record-btrace.c (require_btrace, record_btrace_info): Call
10784 btrace_is_empty.
10785
969c39fb
MM
107862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10787
10788 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10789 Support delta reads.
10790 (linux_disable_btrace): Change return type.
10791 * common/linux-btrace.h (linux_read_btrace): Change parameters
10792 and return type to allow error reporting. Update users.
10793 (linux_disable_btrace): Change return type. Update users.
10794 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10795 New.
10796 (btrace_error): New.
10797 (btrace_block) <begin>: Comment on BEGIN == 0.
10798 * btrace.c (btrace_compute_ftrace): Start from the end of
10799 the current trace.
10800 (btrace_stitch_trace, btrace_clear_history): New.
10801 (btrace_fetch): Read delta trace, return if replaying.
10802 (btrace_clear): Move clear history code to btrace_clear_history.
10803 (parse_xml_btrace): Throw an error if parsing failed.
10804 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10805 and return type to allow error reporting.
10806 (target_read_btrace): Change parameters and return type to allow
10807 error reporting.
10808 * target.c (target_read_btrace): Update.
10809 * remote.c (remote_read_btrace): Support delta reads. Pass
10810 errors on.
10811 * NEWS: Announce it.
10812
0b722aec
MM
108132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10814
10815 * record.h (record_btrace_frame_unwind)
10816 (record_btrace_tailcall_frame_unwind): New declarations.
10817 * dwarf2-frame: Include record.h
10818 (dwarf2_frame_cfa): Throw an error for btrace frames.
10819 * record-btrace.c: Include hashtab.h.
10820 (btrace_get_bfun_name): New.
10821 (btrace_call_history): Call btrace_get_bfun_name.
10822 (struct btrace_frame_cache): New.
10823 (bfcache): New.
10824 (bfcache_hash, bfcache_eq, bfcache_new): New.
10825 (btrace_get_frame_function): New.
10826 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10827 (record_btrace_frame_this_id): Compute own id.
10828 (record_btrace_frame_prev_register): Provide PC, throw_error
10829 for all other registers.
10830 (record_btrace_frame_sniffer): Detect btrace frames.
10831 (record_btrace_tailcall_frame_sniffer): New.
10832 (record_btrace_frame_dealloc_cache): New.
10833 (record_btrace_frame_unwind): Add new functions.
10834 (record_btrace_tailcall_frame_unwind): New.
10835 (_initialize_record_btrace): Allocate cache.
10836 * btrace.c (btrace_clear): Call reinit_frame_cache.
10837 * NEWS: Announce it.
10838
066ce621
MM
108392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10840
10841 * record-btrace.c (record_btrace_set_replay)
10842 (record_btrace_goto_begin, record_btrace_goto_end)
10843 (record_btrace_goto): New.
10844 (init_record_btrace_ops): Initialize them.
10845 * NEWS: Announce it.
10846
e2887aa3
MM
108472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10848
10849 * record-btrace.c (record_btrace_find_new_threads)
10850 (record_btrace_thread_alive): New.
10851 (init_record_btrace_ops): Initialize to_find_new_threads and
10852 to_thread_alive.
10853
b2f4cfde
MM
108542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10855
10856 * record-btrace.c (record_btrace_resume): New.
10857 (record_btrace_wait): New.
10858 (init_record_btrace_ops): Initialize to_wait and to_resume.
10859
633785ff
MM
108602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10861
10862 * record-btrace.c (record_btrace_xfer_partial)
10863 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10864 (record_btrace_allow_memory_access): New.
10865 (init_record_btrace_ops): Initialize new methods.
10866 * target.c (raw_memory_xfer_partial): Bail out if target reports
10867 that this memory is not available.
10868
3db08215
MM
108692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10870
10871 * target.h (target_ops) <to_insert_breakpoint>
10872 <to_remove_breakpoint>: Add target_ops parameter.
10873 (forward_target_insert_breakpoint): New.
10874 (forward_target_remove_breakpoint): New.
10875 (memory_remove_breakpoint, memory_insert_breakpoint):
10876 Add target_ops parameter.
10877 * target.c (target_insert_breakpoint): Split into this and ...
10878 (forward_target_insert_breakpoint): ... this.
10879 (target_remove_breakpoint): Split into this and ...
10880 (forward_target_remove_breakpoint): ... this.
10881 (debug_to_insert_breakpoint): Add target_ops parameter.
10882 Call forward_target_insert_breakpoint.
10883 (debug_to_remove_breakpoint): Add target_ops parameter.
10884 Call forward_target_remove_breakpoint.
10885 (update_current_target): Do not inherit or default to_insert_breakpoint
10886 and to_remove_breakpoint.
10887 * corelow.c (ignore): Add target_ops parameter.
10888 * exec.c (ignore): Add target_ops parameter.
10889 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10890 Add target_ops parameter.
10891 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10892 Add target_ops parameter.
10893 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10894 Add target_ops parameter.
10895 * record-full.c (record_full_beneath_to_insert_breakpoint)
10896 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10897 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10898 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10899 (record_full_core_remove_breakpoint): Add target_ops parameter.
10900 Update users.
10901 (record_full_beneath_to_insert_breakpoint_ops)
10902 (record_full_beneath_to_remove_breakpoint_ops)
10903 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10904 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10905 tmp_to_remove_breakpoint_ops,
10906 record_full_beneath_to_insert_breakpoint_ops, and
10907 record_full_beneath_to_remove_breakpoint_ops.
10908 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10909 (m32r_remove_breakpoint): Add target_ops parameter.
10910 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10911 Add target_ops parameter.
10912 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10913 Add target_ops parameter.
10914
cecac1ab
MM
109152014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10916 Markus Metzger <markus.t.metzger@intel.com>
10917
10918 * record-btrace.c: Include frame-unwind.h.
10919 (record_btrace_frame_unwind_stop_reason)
10920 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10921 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10922 New.
10923 (init_record_btrace_ops): Install it.
10924
824344ca
MM
109252014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10926
10927 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10928 get_prev_frame_1.
10929
32261e52
MM
109302014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10931
10932 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10933 earlier.
10934
ea001bdc
MM
109352014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10936
10937 * frame-unwind.c: Include target.h.
10938 (frame_unwind_try_unwinder): New function with code from ...
10939 (frame_unwind_find_by_frame): ... here. New variable
10940 unwinder_from_target, call also target_get_unwinder)
10941 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10942 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10943 * target.h (struct target_ops): New fields to_get_unwinder and
10944 to_get_tailcall_unwinder.
10945 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10946
1f3ef581
MM
109472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10948
10949 * record-btrace.c (record_btrace_fetch_registers)
10950 (record_btrace_store_registers)
10951 (record_btrace_to_prepare_to_store): New.
10952 (init_record_btrace_ops): Add the above.
10953
f32dbf8c
MM
109542014-01-16 Tom Tromey <tromey@redhat.com>
10955
10956 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10957 * target.h (struct target_ops) <to_prepare_to_store>: Add
10958 argument.
10959 (target_prepare_to_store): Add argument.
10960 * target.c (debug_to_prepare_to_store): Add argument.
10961 (update_current_target): Update.
10962 * remote.c (remote_prepare_to_store): Add 'self' argument.
10963 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10964 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10965 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10966 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10967 argument.
10968 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10969 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10970 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10971 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10972 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10973
07bbe694
MM
109742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10975
10976 * btrace.h (replay) <replay>: New.
10977 (btrace_is_replaying): New.
10978 * btrace.c (btrace_clear): Free replay iterator.
10979 (btrace_is_replaying): New.
10980 * record-btrace.c (record_btrace_is_replaying): New.
10981 (record_btrace_info): Print insn number if replaying.
10982 (record_btrace_insn_history): Start at replay position.
10983 (record_btrace_call_history): Start at replay position.
10984 (init_record_btrace_ops): Init to_record_is_replaying.
10985
0688d04e
MM
109862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10987
10988 * record-btrace.c (record_btrace_insn_history_range): Include
10989 end.
10990 (record_btrace_insn_history_from): Adjust range.
10991 (record_btrace_call_history_range): Include
10992 end.
10993 (record_btrace_call_history_from): Adjust range.
10994 * NEWS: Announce changes.
10995
8710b709
MM
109962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10997
10998 * record.h (enum record_print_flag)
10999 <record_print_indent_calls>: New.
11000 * record.c (get_call_history_modifiers): Recognize /c modifier.
11001 (_initialize_record): Document /c modifier.
11002 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11003 Reorder fields. Optionally indent the function name. Update
11004 all users.
11005 * NEWS: Announce changes.
11006
d0fa7535
MM
110072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11008
11009 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11010
5de9129b
MM
110112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11012
11013 * btrace.c (ftrace_new_function): Start counting at one.
11014 * record-btrace.c (record_btrace_info): Adjust number of calls
11015 and insns.
11016 * NEWS: Announce it.
11017
7acbe133
MM
110182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11019
11020 * record-btrace.c (btrace_call_history_insn_range): Print
11021 insn range as [begin, end].
11022
23a7fe75
MM
110232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11024
11025 * btrace.h (struct btrace_func_link): New.
11026 (enum btrace_function_flag): New.
11027 (struct btrace_inst): Rename to ...
11028 (struct btrace_insn): ...this. Update all users.
11029 (struct btrace_func) <ibegin, iend>: Remove.
11030 (struct btrace_func_link): New.
11031 (struct btrace_func): Rename to ...
11032 (struct btrace_function): ...this. Update all users.
11033 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11034 (number, level, flags>: New.
11035 (struct btrace_insn_iterator): Rename to ...
11036 (struct btrace_insn_history): ...this.
11037 Update all users.
11038 (struct btrace_insn_iterator, btrace_call_iterator): New.
11039 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11040 (struct btrace_target_info) <begin, end, level>
11041 <insn_history, call_history>: New.
11042 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11043 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11044 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11045 (btrace_call_number, btrace_call_begin, btrace_call_end)
11046 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11047 (btrace_find_function_by_number, btrace_set_insn_history)
11048 (btrace_set_call_history): New.
11049 * btrace.c (btrace_init_insn_iterator)
11050 (btrace_init_func_iterator, compute_itrace): Remove.
11051 (ftrace_print_function_name, ftrace_print_filename)
11052 (ftrace_skip_file): Change
11053 parameter to const.
11054 (ftrace_init_func): Remove.
11055 (ftrace_debug): Use new btrace_function fields.
11056 (ftrace_function_switched): Also consider gaining and
11057 losing symbol information).
11058 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11059 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11060 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11061 New.
11062 (ftrace_new_function): Move. Remove debug print.
11063 (ftrace_update_lines, ftrace_update_insns): New.
11064 (ftrace_update_function): Check for call, ret, and jump.
11065 (compute_ftrace): Renamed to ...
11066 (btrace_compute_ftrace): ...this. Rewritten to compute call
11067 stack.
11068 (btrace_fetch, btrace_clear): Updated.
11069 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11070 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11071 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11072 (btrace_call_number, btrace_call_begin, btrace_call_end)
11073 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11074 (btrace_find_function_by_number, btrace_set_insn_history)
11075 (btrace_set_call_history): New.
11076 * record-btrace.c (require_btrace): Use new btrace thread
11077 info fields.
11078 (record_btrace_info, btrace_insn_history)
11079 (record_btrace_insn_history, record_btrace_insn_history_range):
11080 Use new btrace thread info fields and new iterator.
11081 (btrace_func_history_src_line): Rename to ...
11082 (btrace_call_history_src_line): ...this. Use new btrace
11083 thread info fields.
11084 (btrace_func_history): Rename to ...
11085 (btrace_call_history): ...this. Use new btrace thread info
11086 fields and new iterator.
11087 (record_btrace_call_history, record_btrace_call_history_range):
11088 Use new btrace thread info fields and new iterator.
11089
8372a7cb
MM
110902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11091
11092 * frame.h (frame_id_build_unavailable_stack_special): New.
11093 * frame.c (frame_id_build_unavailable_stack_special): New.
11094
c2170eef
MM
110952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11096
11097 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11098 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11099 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11100 to gdbarch.
11101 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11102 (i386_insn_is_jump, i386_jmp_p): New.
11103 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11104 insn_is_jump to gdbarch.
11105 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11106 * gdbarch.h: Regenerated.
11107 * gdbarch.c: Regenerated.
11108 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11109 (default_insn_is_jump): New.
11110 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11111 (default_insn_is_jump): New.
11112
864089d2
MM
111132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11114
11115 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11116 Change to ...
11117 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11118 (btrace_read_type) <btrace_read_new>: Change to ...
11119 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11120
ed9edfb5
MM
111212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11122
11123 * common/linux-btrace.c (linux_read_btrace): Free trace from
11124 previous iteration.
11125
fbcbc3fd
DE
111262014-01-15 Doug Evans <dje@google.com>
11127
11128 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11129 uint32_t.
11130
3d548a53
TT
111312014-01-15 Tom Tromey <tromey@redhat.com>
11132
11133 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11134 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11135 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11136 (set_objfile_main_name): New function.
11137 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11138 language_of_main>: New fields.
11139 (set_objfile_main_name): Declare.
11140 * symtab.c (find_main_name): Loop over objfiles to find the main
11141 name and language.
11142 (set_main_name): Now static.
11143 (get_main_info): Add comment.
11144 * symtab.h (set_main_name): Don't declare.
11145
32ac0d11
TT
111462014-01-15 Tom Tromey <tromey@redhat.com>
11147
11148 * symtab.c (main_progspace_key): New global.
11149 (struct main_info): New.
11150 (name_of_main, language_of_main): Remove.
11151 (get_main_info, main_info_cleanup): New function.
11152 (set_main_name, main_name, main_language): Use get_main_info.
11153 (_initialize_symtab): Initialize main_progspace_key.
11154
9e6c82ad
TT
111552014-01-15 Tom Tromey <tromey@redhat.com>
11156
11157 * dbxread.c (process_one_symbol): Update.
11158 * dwarf2read.c (read_partial_die): Update.
11159 * symfile.c (set_initial_language): Call main_language.
11160 * symtab.c (language_of_main): Now static.
11161 (set_main_name): Add 'lang' parameter.
11162 (find_main_name): Update.
11163 (main_language): New function.
11164 (symtab_observer_executable_changed): Update.
11165 * symtab.h (set_main_name): Update.
11166 (language_of_main): Remove.
11167 (main_language): Declare.
11168
6ef55de7
TT
111692014-01-15 Tom Tromey <tromey@redhat.com>
11170
11171 * symfile.c (init_entry_point_info): Use new "initialized" field.
11172 Update.
11173 * objfiles.h (struct entry_point) <initialized>: New field.
11174 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11175 (struct objfile) <ei>: ...here. Remove.
11176 * objfiles.c (entry_point_address_query): Update.
11177
53eddfa6
TT
111782014-01-15 Tom Tromey <tromey@redhat.com>
11179
11180 * objfiles.c (entry_point_address_query): Relocate entry point
11181 address.
11182 (objfile_relocate1): Do not relocate entry point address.
11183 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11184 <the_bfd_section_index>: New field.
11185 * symfile.c (init_entry_point_info): Find the entry point's
11186 section.
11187
d56e56aa
TT
111882014-01-15 Tom Tromey <tromey@redhat.com>
11189
11190 * solib-frv.c (enable_break): Use entry_point_address_query.
11191
33a97bbe
OJ
111922014-01-15 Omair Javaid <omair.javaid@linaro.org>
11193
11194 * NEWS: Add note on improved process record-replay on
11195 arm*-linux* targets.
11196
c6ec2b30
OJ
111972014-01-15 Omair Javaid <omair.javaid@linaro.org>
11198
11199 * arm-tdep.c (enum arm_record_result): New enum.
11200 (arm_record_unsupported_insn): New function.
11201 (arm_record_coproc_data_proc): Removed.
11202 (thumb2_record_ld_st_multiple): New function.
11203 (thumb2_record_ld_st_dual_ex_tbb): New function.
11204 (thumb2_record_data_proc_sreg_mimm): New function.
11205 (thumb2_record_ps_dest_generic): New function.
11206 (thumb2_record_branch_misc_cntrl): New function.
11207 (thumb2_record_str_single_data): New function.
11208 (thumb2_record_ld_mem_hints): New function.
11209 (thumb2_record_ld_word): New function.
11210 (thumb2_record_lmul_lmla_div): New function.
11211 (thumb2_record_decode_insn_handler): New function.
11212 (decode_insn): Add thumb32 instruction handlers.
11213
97dfe206
OJ
112142014-01-15 Omair Javaid <omair.javaid@linaro.org>
11215
11216 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11217 (struct arm_linux_record_tdep): Declare.
11218 (arm_canonicalize_syscall): New function.
11219 (arm_all_but_pc_registers_record): New function.
11220 (arm_linux_syscall_record): New function.
11221 (arm_linux_init_abi): Add syscall recording constructs.
11222 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11223 decoding. (arm_record_coproc_data_proc): Update arm syscall
11224 decoding.
11225 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11226 <arm_syscall_record>: New field.
11227 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11228 gdb_target_obs.
11229
9904a494
OJ
112302014-01-15 Omair Javaid <omair.javaid@linaro.org>
11231
11232 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11233 register for push instruction recording.
11234
f969241e
OJ
112352014-01-15 Omair Javaid <omair.javaid@linaro.org>
11236
11237 * arm-tdep.c (thumb_record_misc): Update to correct logical
11238 error while recording ldm, ldmia and pop instructions.
11239
bfbbec00
OJ
112402014-01-15 Omair Javaid <omair.javaid@linaro.org>
11241
11242 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11243
e40adcc9
PA
112442014-01-15 Pedro Alves <palves@redhat.com>
11245
11246 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11247 (go32_resume, go32_fetch_registers, store_register)
11248 (go32_store_registers, go32_prepare_to_store)
11249 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11250 (go32_create_inferior, go32_can_run, go32_terminal_init)
11251 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11252 declarations.
11253
b0a16e66
TT
112542014-01-15 Tom Tromey <tromey@redhat.com>
11255
11256 * target.h (async_callback_ftype): New typedef.
11257 (struct target_ops) <to_async>: Use it.
11258
bf7105a4
JB
112592014-01-15 Joel Brobecker <brobecker@adacore.com>
11260
11261 * python/py-value.c (get_field_type): Remove unnecessary curly
11262 braces for single-statement if block.
11263
a8f35c2e
JB
112642014-01-15 Joel Brobecker <brobecker@adacore.com>
11265
11266 * python/py-type.c (convert_field): Add missing empty line
11267 after declarations.
11268
bb4142cf
DE
112692014-01-14 Doug Evans <dje@google.com>
11270
11271 * symfile.h (expand_symtabs_matching): Renamed from
11272 expand_partial_symbol_names. Update prototype.
11273 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11274 * symfile.c (expand_symtabs_matching): Renamed from
11275 expand_partial_symbol_names. New args file_matcher, kind.
11276 Rename arg fun to symbol_matcher.
11277 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11278 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11279 ada_expand_partial_symbol_name.
11280 (ada_make_symbol_completion_list): Update to call
11281 expand_symtabs_matching.
11282 (ada_add_global_exceptions): Call expand_symtabs_matching.
11283 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11284 call map_symbol_filenames.
11285 * symtab.c (sources_info): Update to call map_symbol_filenames.
11286 (search_symbols): Call expand_symtabs_matching.
11287 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11288 (default_make_symbol_completion_list_break_on): Update to call
11289 expand_symtabs_matching.
11290 (make_source_files_completion_list): Update to call
11291 map_symbol_filenames.
11292
206f2a57
DE
112932014-01-14 Doug Evans <dje@google.com>
11294
11295 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11296 (expand_symtabs_symbol_matcher_ftype): New typedef.
11297 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11298 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11299 * symfile.c (expand_partial_symbol_names): Update to use
11300 expand_symtabs_symbol_matcher_ftype.
11301 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11302 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11303 Arg name_matcher renamed to symbol_matcher.
11304 * psymtab.c (recursively_search_psymtabs): Update to use
11305 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11306 sym_matcher.
11307 (expand_symtabs_matching_via_partial): Update to use
11308 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11309 Arg name_matcher renamed to symbol_matcher.
11310
540c2971
DE
113112014-01-14 Doug Evans <dje@google.com>
11312
11313 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11314 (map_partial_symbol_filenames): Ditto.
11315 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11316 (map_partial_symbol_filenames): Ditto.
11317 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11318 (map_partial_symbol_filenames): Ditto.
11319 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11320 (map_partial_symbol_filenames): Ditto.
11321 * symtab.c: Delete #include "psymtab.h".
11322
8213266a
PA
113232014-01-14 Pedro Alves <palves@redhat.com>
11324 Tom Tromey <tromey@redhat.com>
11325
11326 * infrun.c (use_displaced_stepping): Use find_record_target
11327 instead of RECORD_IS_USED.
11328 (adjust_pc_after_break): Use record_full_is_used instead of
11329 RECORD_IS_USED.
11330 * record-btrace.c (record_btrace_open): Call record_preopen
11331 instead of checking RECORD_IS_USED.
11332 * record-full.c (record_full_shortname)
11333 (record_full_core_shortname): New globals.
11334 (record_full_is_used): New function.
11335 (find_full_open): Call record_preopen instead of checking
11336 RECORD_IS_USED.
11337 (init_record_full_ops): Set the target's shortname to
11338 record_full_shortname.
11339 (init_record_full_core_ops): Set the target's shortname to
11340 record_full_core_shortname.
11341 * record-full.h (record_full_is_used): Declare.
11342 * record.c (find_record_target): Make extern.
11343 (record_preopen): New function.
11344 * record.h (RECORD_IS_USED): Delete macro.
11345 (find_record_target, record_preopen): Declare functions.
11346
7ec1862d
YQ
113472014-01-14 Yao Qi <yao@codesourcery.com>
11348
11349 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11350 'len''s type to ULONGEST.
11351 (core_xfer_shared_libraries_aix): Likewise.
11352 * gdbarch.c, gdbarch.h: Regenerated.
11353 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11354 Change type of 'len' to ULONGEST.
11355 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11356 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11357
dea80a27
YQ
113582014-01-14 Yao Qi <yao@codesourcery.com>
11359
11360 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11361 type of 'len' to ULONGEST.
11362 (linux_xfer_osdata_processgroups): Likewise.
11363 (linux_xfer_osdata_threads): Likewise.
11364 (linux_xfer_osdata_fds): Likewise.
11365 (linux_xfer_osdata_isockets): Likewise.
11366 (linux_xfer_osdata_shm): Likewise.
11367 (linux_xfer_osdata_sem): Likewise.
11368 (linux_xfer_osdata_msg): Likewise.
11369 (linux_common_xfer_osdata): Likewise.
11370 (struct osdata_type) <getter>: Likewise.
11371 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11372 the declaration.
11373
b55e14c7
YQ
113742014-01-14 Yao Qi <yao@codesourcery.com>
11375
11376 * target.h (target_xfer_partial_ftype): Update.
11377 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11378 ULONGEST.
11379 * aix-thread.c (aix_thread_xfer_partial): Change type of
11380 argument 'len' to ULONGEST.
11381 * auxv.c (procfs_xfer_auxv): Likewise.
11382 (ld_so_xfer_auxv): Likewise.
11383 (memory_xfer_auxv): Likewise.
11384 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11385 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11386 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11387 * corelow.c (core_xfer_partial): Likewise.
11388 * ctf.c (ctf_xfer_partial): Likewise.
11389 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11390 '%u'.
11391 (darwin_read_dyld_info): Likewise.
11392 (darwin_xfer_partial): Likewise.
11393 * exec.c (section_table_xfer_memory_partial): Likewise.
11394 (exec_xfer_partial): Likewise.
11395 * exec.h (section_table_xfer_memory_partial): Update
11396 declaration.
11397 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11398 instead of plongest.
11399 (gnu_xfer_partial): Likewise.
11400 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11401 (ia64_hpux_xfer_solib_got): Likewise.
11402 (ia64_hpux_xfer_partial): Likewise.
11403 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11404 * inf-ptrace.c (inf_ptrace_xfer_partial):
11405 * inf-ttrace.c (inf_ttrace_xfer_partial):
11406 * linux-nat.c (linux_xfer_siginfo): Likewise.
11407 (linux_nat_xfer_partial): Likewise.
11408 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11409 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11410 * monitor.c (monitor_xfer_memory): Likewise.
11411 (monitor_xfer_partial): Likewise.
11412 * procfs.c (procfs_xfer_partial): Likewise.
11413 * record-full.c (record_full_xfer_partial): Likewise.
11414 (record_full_core_xfer_partial): Likewise.
11415 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11416 instead of plongest.
11417 (gdbsim_xfer_partial): Likewise.
11418 * remote.c (remote_xfer_partial): Likewise.
11419 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11420 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11421 declaration.
11422 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11423 (rs6000_xfer_shared_libraries): Likewise.
11424 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11425 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11426 (sparc_xfer_partial): Likewise.
11427 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11428 (spu_xfer_partial): Likewise.
11429 * spu-multiarch.c (spu_xfer_partial): Likewise.
11430 * target.c (target_read_live_memory): Likewise.
11431 (memory_xfer_live_readonly_partial): Likewise.
11432 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11433 (target_xfer_partial, default_xfer_partial): Likewise.
11434 (current_xfer_partial): Likewise.
11435 * tracepoint.c (tfile_xfer_partial): Likewise.
11436 * windows-nat.c (windows_xfer_memory): Likewise. Call
11437 pulongest instead of plongest.
11438 (windows_xfer_partial): Likewise.
11439 (windows_xfer_shared_libraries): Likewise.
11440
05804640
YQ
114412014-01-14 Yao Qi <yao@codesourcery.com>
11442
11443 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11444 target_xfer_partial_ftype.
11445
b5b08fb4
SC
114462014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11447
11448 PR python/15464
11449 PR python/16113
11450 * valops.c (value_struct_elt_bitpos): New function
11451 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11452 object to 'None' if the field name is an empty string ("").
11453 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11454 attribute to look for a field when 'name' is 'None'.
11455 (get_field_type): New function
11456
13aaf454
DE
114572014-01-13 Doug Evans <dje@google.com>
11458
11459 PR symtab/16426
11460 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11461 (try_open_dwop_file): Ditto.
11462 * gdb_bfd.c: #include "vec.h".
11463 (bfdp): New typedef.
11464 (struct gdb_bfd_data): New member included_bfds.
11465 (gdb_bfd_unref): Unref all included bfds.
11466 (gdb_bfd_record_inclusion): New function.
11467 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11468
c2cec97c
TT
114692014-01-13 Tom Tromey <tromey@redhat.com>
11470
11471 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11472
78e5999d
TT
114732014-01-13 Tom Tromey <tromey@redhat.com>
11474
11475 * defs.h (use_windows): Remove.
11476 * gdb.c (main): Update.
11477 * main.c (captured_main, gdb_main): Update.
11478 * main.h (struct captured_main_args) <use_windows>: Remove.
11479 * top.c (use_windows): Remove.
11480
f2052bbe
TT
114812014-01-13 Tom Tromey <tromey@redhat.com>
11482
11483 * defs.h (deprecated_flush_hook): Remove.
11484
fde4f8ed
JK
114852014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11486
11487 PR threads/16216
11488 * linux-thread-db.c (try_thread_db_load): Add parameter
11489 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11490 (try_thread_db_load_from_pdir_1): Move it there from here.
11491 (try_thread_db_load_from_sdir): Update caller.
11492 (try_thread_db_load_from_dir): Move it there from here.
11493
bdf61915
PP
114942014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11495
11496 * regformats/regdat.sh: Always rewrite the register file.
11497
f71e1a8d
PA
114982014-01-13 Pedro Alves <palves@redhat.com>
11499
11500 * Makefile.in (CHECK_HEADERS): New variable.
11501 (check-headers:): New rule.
11502
42c85435
TT
115032014-01-13 Tom Tromey <tromey@redhat.com>
11504
11505 * cli/cli-setshow.c (do_set_command): Update.
11506 * defs.h (deprecated_set_hook): Remove.
11507 * top.c (deprecated_set_hook): Remove.
11508
f8de5129
PA
115092014-01-13 Pedro Alves <palves@redhat.com>
11510
11511 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11512 the tracepoint if the PC is a pseudo-register.
11513
fc270c35
TT
115142014-01-13 Tom Tromey <tromey@redhat.com>
11515
11516 * defs.h (XCALLOC): Remove.
11517 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11518 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11519 * dwarf2loc.c (allocate_piece_closure): Likewise.
11520 * elfread.c (elf_symfile_segments): Likewise.
11521 (elf_symfile_segments): Likewise.
11522 * gdbtypes.c (copy_type_recursive): Likewise.
11523 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11524 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11525 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11526 XCALLOC.
11527 * mt-tdep.c (mt_gdbarch_init): Likewise.
11528 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11529 XCALLOC.
11530 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11531 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11532 * registry.c (registry_alloc_data): Likewise.
11533 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11534 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11535 * serial.c (serial_fdopen_ops): Likewise.
11536 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11537 XCALLOC.
11538 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11539 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11540 not XCALLOC.
11541
70ba0933
TT
115422014-01-13 Tom Tromey <tromey@redhat.com>
11543
11544 * defs.h (XMALLOC): Remove.
11545 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11546 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11547 * cli-out.c (struct ui_out *): Likewise.
11548 * cli/cli-dump.c (add_dump_command): Likewise.
11549 (add_dump_command): Likewise.
11550 * complaints.c (get_complaints): Likewise.
11551 (find_complaint): Likewise.
11552 * dwarf2-frame.c (execute_cfa_program): Likewise.
11553 * dwarf2read.c (abbrev_table_read_table): Likewise.
11554 * gdbarch.sh: Likewise.
11555 * gdbarch.c: Rebuild.
11556 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11557 * interps.c (interp_new): Likewise.
11558 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11559 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11560 * mi/mi-console.c (mi_console_file_new): Likewise.
11561 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11562 * mi/mi-out.c (mi_out_new): Likewise.
11563 * mi/mi-parse.c (mi_parse): Likewise.
11564 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11565 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11566 * observer.c (xalloc_observer_list_node): Likewise.
11567 * regcache.c (regcache_xmalloc_1): Likewise.
11568 * reggroups.c (reggroup_new): Likewise.
11569 (_initialize_reggroup): Likewise.
11570 * registry.c (register_data_with_cleanup): Likewise.
11571 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11572 * ser-base.c (serial_ttystate): Likewise.
11573 * ser-mingw.c (make_pipe_state): Likewise.
11574 * ser-pipe.c (pipe_open): Likewise.
11575 * serial.c (serial_open): Likewise.
11576 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11577 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11578 (tui_alloc_win_info): Likewise.
11579 (tui_add_content_elements): Likewise.
11580 * tui/tui-file.c (tui_file_new): Likewise.
11581 * tui/tui-out.c (tui_out_new): Likewise.
11582 * ui-file.c (mem_file_new): Likewise.
11583 * ui-out.c (push_level): Likewise.
11584 (make_cleanup_ui_out_end): Likewise.
11585 (append_header_to_list): Likewise.
11586 (ui_out_new): Likewise.
11587 * user-regs.c (user_reg_add_builtin): Likewise.
11588
41bf6aca
TT
115892014-01-13 Tom Tromey <tromey@redhat.com>
11590
11591 * defs.h (XZALLOC): Remove.
11592 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11593 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11594 (get_ada_tasks_inferior_data): Likewise.
11595 * auto-load.c (get_auto_load_pspace_data): Likewise.
11596 * auxv.c (get_auxv_inferior_data): Likewise.
11597 * bfd-target.c (target_bfd_reopen): Likewise.
11598 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11599 (deprecated_insert_raw_breakpoint): Likewise.
11600 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11601 * corelow.c (core_open): Likewise.
11602 * darwin-nat.c (darwin_check_new_threads): Likewise.
11603 (darwin_attach_pid): Likewise.
11604 * dummy-frame.c (dummy_frame_push): Likewise.
11605 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11606 * dwarf2loc.c (allocate_piece_closure): Likewise.
11607 * elfread.c (elf_symfile_segments): Likewise.
11608 * eval.c (ptrmath_type_p): Likewise.
11609 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11610 * gdbtypes.c (alloc_type_arch): Likewise.
11611 (alloc_type_instance): Likewise.
11612 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11613 * inf-child.c (inf_child_can_use_agent): Likewise.
11614 * inflow.c (get_inflow_inferior_data): Likewise.
11615 * infrun.c (save_infcall_suspend_state): Likewise.
11616 * jit.c (jit_reader_load): Likewise.
11617 (get_jit_objfile_data): Likewise.
11618 (get_jit_program_space_data): Likewise.
11619 (jit_object_open_impl): Likewise.
11620 (jit_symtab_open_impl): Likewise.
11621 (jit_block_open_impl): Likewise.
11622 (jit_frame_sniffer): Likewise.
11623 * linux-fork.c (add_fork): Likewise.
11624 * maint.c (make_command_stats_cleanup): Likewise.
11625 * objfiles.c (get_objfile_pspace_data): Likewise.
11626 * opencl-lang.c (struct lval_closure): Likewise.
11627 * osdata.c (osdata_start_osdata): Likewise.
11628 * progspace.c (new_address_space): Likewise.
11629 (add_program_space): Likewise.
11630 * remote-sim.c (get_sim_inferior_data): Likewise.
11631 * sh-tdep.c (sh_gdbarch_init): Likewise.
11632 * skip.c (Ignore): Likewise.
11633 (skip_delete_command): Likewise.
11634 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11635 (library_list_start_library): Likewise.
11636 (solib_aix_current_sos): Likewise.
11637 * solib-darwin.c (get_darwin_info): Likewise.
11638 (darwin_current_sos): Likewise.
11639 * solib-dsbt.c (get_dsbt_info): Likewise.
11640 * solib-ia64-hpux.c (new_so_list): Likewise.
11641 (ia64_hpux_get_solib_linkage_addr): Likewise.
11642 * solib-spu.c (append_ocl_sos): Likewise.
11643 (spu_current_sos): Likewise.
11644 * solib-svr4.c (get_svr4_info): Likewise.
11645 (svr4_keep_data_in_core): Likewise.
11646 (library_list_start_library): Likewise.
11647 (svr4_default_sos): Likewise.
11648 (svr4_read_so_list): Likewise.
11649 * solib-target.c (library_list_start_library): Likewise.
11650 (solib_target_current_sos): Likewise.
11651 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11652 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11653 * symfile.c (default_symfile_segments): Likewise.
11654 * target-descriptions.c (tdesc_data_init): Likewise.
11655 (tdesc_create_reg): Likewise.
11656 (struct tdesc_type *): Likewise.
11657 (tdesc_create_vector): Likewise.
11658 (tdesc_set_struct_size): Likewise.
11659 (struct tdesc_type *): Likewise.
11660 (tdesc_free_feature): Likewise.
11661 (tdesc_create_feature): Likewise.
11662 * windows-nat.c (windows_add_thread): Likewise.
11663 (windows_make_so): Likewise.
11664 * xml-support.c (gdb_xml_body_text): Likewise.
11665 (gdb_xml_create_parser_and_cleanup): Likewise.
11666 (xml_process_xincludes): Likewise.
11667 * xml-syscall.c (allocate_syscalls_info): Likewise.
11668 (syscall_create_syscall_desc): Likewise.
11669
5acfdbae
SDJ
116702014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11671
11672 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11673 function, with code from i386_stap_parse_special_token.
11674 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11675 (i386_stap_parse_special_token): Move code to the two functions
11676 above; simplify it.
11677
0000e5cc
PA
116782014-01-09 Pedro Alves <palves@redhat.com>
11679 Hui Zhu <hui@codesourcery.com>
11680
11681 PR gdb/16101
11682 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11683 bp_err_string. Don't mark the location shlib_disabled if the
11684 error thrown wasn't a generic or memory error. Catch errors
11685 thrown while inserting breakpoints in overlayed code. Output
11686 error message of software breakpoints.
11687 * remote.c (remote_insert_breakpoint): If this breakpoint has
11688 target-side commands but this stub doesn't support Z0 packets,
11689 throw NOT_SUPPORTED_ERROR error.
11690 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11691 * target.h (target_insert_breakpoint): Extend comment.
11692 (target_insert_hw_breakpoint): Add comment.
11693
b7ea362b
PA
116942014-01-08 Pedro Alves <palves@redhat.com>
11695
11696 * remote.c (remote_add_thread): Add threads silently if starting
11697 up.
11698 (remote_notice_new_inferior): If in all-stop, and starting up,
11699 don't call notice_new_inferior.
11700 (get_current_thread): New function, factored out from ...
11701 (add_current_inferior_and_thread): ... this. Adjust.
11702 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11703 found any thread, then select the remote's current thread as GDB's
11704 current thread too.
11705
b7bba001
JB
117062014-01-08 Joel Brobecker <brobecker@adacore.com>
11707
11708 * NEWS: Create a new section for the next release branch.
11709 Rename the section of the current branch, now that it has
11710 been cut.
11711
16dfbded
JB
117122014-01-08 Joel Brobecker <brobecker@adacore.com>
11713
11714 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11715 * version.in: Bump version to 7.7.50.DATE-cvs.
11716
22c90ac1
YQ
117172014-01-08 Yao Qi <yao@codesourcery.com>
11718
11719 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11720 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11721 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11722
d64ad97c
YQ
117232014-01-08 Yao Qi <yao@codesourcery.com>
11724
11725 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11726 return value of bfd_get_filename to symbol_file_add_from_bfd.
11727
f93ba80c
PM
117282014-01-08 Pierre Muller <muller@sourceware.org>
11729
11730 Fix PR16201.
11731 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11732 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11733 to prim_record_mininal_symbol_and_info.
11734 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11735 in call to prim_record_minimal_symbol_and_info.
11736 (read_pe_exported_syms): Set index field of section_data.
11737
a4d9ba85
AP
117382014-01-07 Andrew Pinski <apinski@cavium.com>
11739
11740 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11741 * features/aarch64.c: Regenerate.
11742
1b67eb02
AS
117432014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11744
11745 * target.c (return_null): Define.
11746 (update_current_target): Use it instead of return_zero for
11747 functions that return a pointer.
11748
5e3f4fab
EBM
117492014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11750
11751 * source.c (add_path): Fix check for duplicated paths in the previously
11752 included paths.
11753
e2616788
HK
117542014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11755
11756 * ada-lang.c: Remove duplicated include statements.
11757 * alphabsd-nat.c: Ditto.
11758 * amd64-darwin-tdep.c: Ditto.
11759 * amd64fbsd-nat.c: Ditto.
11760 * auto-load.c: Ditto.
11761 * ax-gdb.c: Ditto.
11762 * breakpoint.c: Ditto.
11763 * dbxread.c: Ditto.
11764 * fork-child.c: Ditto.
11765 * gdb_usleep.c: Ditto.
11766 * i386-darwin-tdep.c: Ditto.
11767 * i386fbsd-nat.c: Ditto.
11768 * infcmd.c: Ditto.
11769 * inferior.c: Ditto.
11770 * jv-lang.c: Ditto.
11771 * linux-nat.c: Ditto.
11772 * linux-tdep.c: Ditto.
11773 * m68kbsd-nat.c: Ditto.
11774 * m68klinux-nat.c: Ditto.
11775 * microblaze-tdep.c: Ditto.
11776 * mips-linux-tdep.c: Ditto.
11777 * mn10300-tdep.c: Ditto.
11778 * nto-tdep.c: Ditto.
11779 * opencl-lang.c: Ditto.
11780 * osdata.c: Ditto.
11781 * printcmd.c: Ditto.
11782 * regcache.c: Ditto.
11783 * remote-m32r-sdi.c: Ditto.
11784 * remote.c: Ditto.
11785 * symfile.c: Ditto.
11786 * symtab.c: Ditto.
11787 * tilegx-linux-nat.c: Ditto.
11788 * tilegx-tdep.c: Ditto.
11789 * tracepoint.c: Ditto.
11790 * valops.c: Ditto.
11791 * vaxbsd-nat.c: Ditto.
11792 * windows-nat.c: Ditto.
11793 * xtensa-tdep.c: Ditto.
11794
bd1f7788
YQ
117952014-01-07 Yao Qi <yao@codesourcery.com>
11796
11797 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11798
79301218
JB
117992014-01-07 Yao Qi <yao@codesourcery.com>
11800 Joel Brobecker <brobecker@adacore.com>
11801
11802 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11803 (pdc_write_regs): Likewise.
11804 (fetch_regs_kernel_thread): Likewise.
11805 (store_regs_kernel_thread): Likewise.
11806
118072014-01-07 Joel Brobecker <brobecker@adacore.com>
11808
11809 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11810 tagged type objects to their actual type.
11811
8e355c5d
JB
118122014-01-07 Joel Brobecker <brobecker@adacore.com>
11813
11814 * ada-valprint.c (print_field_values): Add "language" parameter.
11815 Update calls to print_field_values and print_variant_part.
11816 Pass new parameter "language" in call to val_print instead
11817 of "current_language". Replace call to ada_val_print by call
11818 to val_print.
11819 (print_variant_part): Add "language" parameter.
11820 (ada_val_print_struct_union): Update call to print_field_values.
11821
4fbf5aa5
JB
118222014-01-07 Joel Brobecker <brobecker@adacore.com>
11823
11824 * ada-valprint.c (ui_memcpy): Delete.
11825 (ada_print_floating): Update documentation. Add empty line
11826 between between function documentation and implementation.
11827 Delete variable "buffer". Use ui_file_xstrdup in place of
11828 ui_file_put. Minor adjustments following this change.
11829
71855601
JB
118302014-01-07 Joel Brobecker <brobecker@adacore.com>
11831
11832 * ada-valprint.c (ada_val_print_string): New function,
11833 extracted from ada_val_print_array.
11834 (ada_val_print_array): Replace extracted code by call
11835 to ada_val_print_string followed by a return. Move
11836 "else" branch to the function's top block.
11837
4eb27a30
JB
118382014-01-07 Joel Brobecker <brobecker@adacore.com>
11839
11840 * ada-valprint.c (ada_val_print_array): Move implementation
11841 down. Rename parameter "offset" and "val" into "offset_aligned"
11842 and "original_value" respectively. Add parameter "offset".
11843
34b27950
JB
118442014-01-07 Joel Brobecker <brobecker@adacore.com>
11845
11846 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11847 re-organizing the code. Change the "???" message printed
11848 when target type is a TYPE_CODE_UNDEF into
11849 "<ref to undefined type>".
11850
079e4591
JB
118512014-01-07 Joel Brobecker <brobecker@adacore.com>
11852
11853 * ada-valprint.c (print_record): Delete, implementation inlined...
11854 (ada_val_print_struct_union): ... here. Remove call to
11855 ada_check_typedef in inlined implementation.
11856
8004dfd1
JB
118572014-01-07 Joel Brobecker <brobecker@adacore.com>
11858
11859 * ada-valprint.c (ada_val_print_gnat_array): New function,
11860 extracted from ada_val_print_1;
11861 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11862 (ada_val_print_flt, ada_val_print_struct_union)
11863 (ada_val_print_ref): Likewise.
11864 (ada_val_print_1): Delete variables i and elttype.
11865 Replace extracted-out code by call to corresponding
11866 new functions.
11867
760a2db0
JB
118682014-01-07 Joel Brobecker <brobecker@adacore.com>
11869
11870 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11871
3a92c861
JB
118722014-01-07 Joel Brobecker <brobecker@adacore.com>
11873
11874 * ada-valprint.c (ada_val_print_1): Replace calls to
11875 ada_val_print_1 by calls to val_print.
11876
cd1630f9
JB
118772014-01-07 Joel Brobecker <brobecker@adacore.com>
11878
11879 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11880 Update calls to self accordingly. Replace calls to c_val_print
11881 by calls to val_print.
11882
bdf779a0
JB
118832014-01-07 Joel Brobecker <brobecker@adacore.com>
11884
11885 * ada-valprint.c (print_record): Delete declaration.
11886 (adjust_type_signedness, ada_val_print_1): Likewise.
11887 (ada_val_print): Move function implementation down.
11888 (print_variant_part, print_field_values, print_record):
11889 Move function implementation up.
11890
c0d48811
JB
118912014-01-07 Joel Brobecker <brobecker@adacore.com>
11892
11893 * python/py-type.c (typy_get_name): New function.
11894 (type_object_getset): Add entry for attribute "name".
11895 * NEWS: Add entry mentioning this new attribute.
11896
c26e9cbb
YQ
118972014-01-07 Yao Qi <yao@codesourcery.com>
11898
11899 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11900 statement.
11901
0cc6f43d
YQ
119022014-01-07 Yao Qi <yao@codesourcery.com>
11903
11904 * gnu-nat.c (info_port_rights): Add qualifier const to
11905 argument args.
11906
eec03155
YQ
119072014-01-07 Yao Qi <yao@codesourcery.com>
11908
11909 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11910
f04a82ef
YQ
119112014-01-07 Yao Qi <yao@codesourcery.com>
11912
11913 * gnu-nat.c (make_inf) Update declaration.
11914 (make_inf): Make it static.
11915 (inf_set_traced): Likewise.
11916 (inf_port_to_thread, inf_task_died_status): Likewise.
11917
d57dda0a
YQ
119182014-01-07 Yao Qi <yao@codesourcery.com>
11919
11920 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11921
3aa8c969
YQ
119222014-01-07 Yao Qi <yao@codesourcery.com>
11923
11924 * gnu-nat.c (_initialize_gnu_nat): Declare.
11925
94123b4f
YQ
119262014-01-07 Yao Qi <yao@codesourcery.com>
11927
11928 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11929 'enum bfd_endian'.
11930 (struct gdbarch_info) <byte_order>: Change type to
11931 'enum bfd_endian'.
11932 <byte_order_for_code>: Likewise.
11933 * gdbarch.c, gdbarch.h: Regenerated.
11934
dc81d70a
TT
119352014-01-06 Sasha Smundak <asmundak@google.com>
11936
11937 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11938
cc2f3c35
TT
119392014-01-06 Tom Tromey <tromey@redhat.com>
11940
11941 * doublest.c (convert_doublest_to_floatformat): Use const, not
11942 CONST.
11943 * somread.c (som_symtab_read): Likewise.
11944
adcf2eed
HZ
119452014-01-07 Hui Zhu <hui@codesourcery.com>
11946
11947 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11948 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11949 (gdb_bfd_fopen): Ditto.
11950 (gdb_bfd_openr): Ditto.
11951 (gdb_bfd_openw): Ditto.
11952 (gdb_bfd_openr_iovec): Ditto.
11953 (gdb_bfd_fdopenr): Ditto.
11954 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11955 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11956 with xstrdup.
11957 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11958 with xstrdup.
11959 * symfile-mem.c (symbol_file_add_from_memory): Removed
11960 gdb_bfd_stash_filename.
11961
50722198
DE
119622014-01-03 Doug Evans <dje@google.com>
11963
11964 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11965 output.
11966
2fa4b862
JB
119672014-01-01 Joel Brobecker <brobecker@adacore.com>
11968
11969 Update year range in copyright notice of all files.
11970
28498c42
JB
119712014-01-01 Joel Brobecker <brobecker@adacore.com>
11972
11973 * top.c (print_gdb_version): Set copyright year to 2014.
11974
7b6e1046
JB
119752014-01-01 Joel Brobecker <brobecker@adacore.com>
11976
11977 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11978
df96af55 11979For older changes see ChangeLog-2013.
c906108c
SS
11980\f
11981Local Variables:
11982mode: change-log
11983left-margin: 8
11984fill-column: 74
11985version-control: never
57da7796 11986coding: utf-8
c906108c 11987End:
This page took 2.085394 seconds and 4 git commands to generate.