Add support for DW_AT_data_location.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3cdcd0ce
JB
12014-08-18 Keven Boell <keven.boell@intel.com>
2 Joel Brobecker <brobecker@adacore.com>
3
4 * gdbtypes.h (struct main_type): Add field "data_location".
5 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
6 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
7 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
8 a dynamic data location.
9 (resolve_dynamic_type): Add DW_AT_data_location handling.
10 (copy_recursive, copy_type): Copy the data_location information
11 when present.
12 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
13 * value.c (value_from_contents_and_address): Add
14 DW_AT_data_location handling.
15
08412b07
JB
162014-08-18 Keven Boell <keven.boell@intel.com>
17 Joel Brobecker <brobecker@adacore.com>
18
19 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
20 field "get_object_address".
21 * dwarf2expr.c (execute_stack_op): Add handling for
22 DW_OP_push_object_address.
23 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
24 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
25 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
26 (dwarf_expr_get_obj_addr): New function.
27 (dwarf_expr_ctx_funcs): Add get_object_address field.
28 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
29 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
30 (dwarf2_evaluate_property): Add parameter "address". Use it.
31 (needs_get_obj_addr): New function.
32 (needs_frame_ctx_funcs): Add get_object_address field.
33 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
34 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
35 (resolve_dynamic_array): Likewise.
36
84754697
JB
372014-08-18 Joel Brobecker <brobecker@adacore.com>
38
39 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
40 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
41 fixed value for records and unions for which some GNAT encodings
42 are present.
43
da5c522f
JB
442014-08-18 Joel Brobecker <brobecker@adacore.com>
45
46 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
47 rewrite to avoid "else if" and "else" constructs. Should be
48 a no-op in practice.
49
0d72a7c3
JB
502014-08-18 Joel Brobecker <brobecker@adacore.com>
51
52 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
53 of lexical block.
54
e66d4446
SC
552014-08-15 Siva Chandra Reddy <sivachandra@google.com>
56
57 PR c++/17132
58 * eval.c: Update all calls to find_overload_match.
59 * valarith.c: Likewise.
60 (value_user_defined_cpp_op, value_user_defined_op): New
61 argument NOSIDE. Update all callers.
62 * valops.c (find_overload_match): New argument NOSIDE.
63 * value.h (find_overload_match): Update signature.
64
940df408
SC
652014-08-15 Siva Chandra Reddy <sivachandra@google.com>
66
67 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
68 'items' methods instead of 'iteritems' method on dictionaries.
69
699ca60a
DE
702014-08-15 Doug Evans <dje@google.com>
71
72 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
73 closer to use.
74
37780ee5
DE
752014-08-15 Doug Evans <dje@google.com>
76
77 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
78
0ad93d4f
DE
792014-08-15 Doug Evans <dje@google.com>
80
81 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
82
20d8c372
DE
832014-08-15 Doug Evans <dje@google.com>
84
85 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
86 unused.
87
cb039ba4
EZ
882014-08-15 Eli Zaretskii <eliz@gnu.org>
89
90 * dcache.h: Include target.h, to avoid compile time warnings.
91
eb7a547a
JB
922014-08-15 Joel Brobecker <brobecker@adacore.com>
93
94 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
95 frame_info" partial declaration.
96 * gdbarch.h: Regenerate.
97
783cecc8
YQ
982014-08-15 Yao Qi <yao@codesourcery.com>
99
100 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
101 Add parameter 'decode_for_pst_p'. Callers update.
102
65c749e7
YQ
1032014-08-13 Yao Qi <yao@codesourcery.com>
104
105 PR build/17104
106 * configure.ac: Use local variable 'pos'.
107 * configure: Regenerated.
108
d769e349
DE
1092014-08-11 Doug Evans <dje@google.com>
110
111 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
112 message, it is redundant with "Reading symbols from ..." message.
113
24f1235e
DE
1142014-08-10 Doug Evans <xdje42@gmail.com>
115
116 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
117
dcd2e6ef
YQ
1182014-08-09 Yao Qi <yao@codesourcery.com>
119
120 PR remote/9053
121 * remote.c (remote_xfer_partial): Remove dead code.
122
070bdf0b
AA
1232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
124
125 * ia64-linux-tdep.c: Include "regset.h".
126 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
127 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
128 (ia64_linux_supply_fpregset): New function.
129 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
130 (ia64_linux_regset_from_core_section): New function.
131 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
132 method.
133
08f9f542
AA
1342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
135
136 * m68klinux-tdep.c: Include "regset.h".
137 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
138 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
139 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
140 (m68k_linux_regset_from_core_section): New function.
141 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
142 method.
143
8f1cee41
AA
1442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
145
146 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
147 function. Move logic to...
148 (tilegx_linux_regmap): ... this new register map.
149 (tilegx_linux_regset): Refer to register map, replace supply
150 method by regcache_supply_regset, and add collect method.
151 * tilegx-tdep.h (enum tilegx_regnum): New enum value
152 TILEGX_FIRST_EASY_REGNUM.
153
c5741217
AA
1542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
155
156 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
157 that calls regcache_supply_regset and handles the EPC register
158 separately. Move main logic to...
159 (score7_linux_gregmap): ... this new register map.
160 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
161 (score7_linux_gregset): Refer to register map. Add collect method.
162 (score7_linux_regset_from_core_section): Replace
163 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
164 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
165 (struct regset): Delete unused forward declaraction.
166 (struct pt_regs): Delete structure definition.
167 (elf_gregset_t): Delete typedef.
168
81580573
AA
1692014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
170
171 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
172 (nios2_core_regset): Add collect method.
173
ba199d7d
AA
1742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
175
176 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
177 platform-independent and don't write to read-only input buffer.
178 (m32r_linux_collect_gregset): New function.
179 (m32r_linux_gregset): Add collect method.
180
0006a9da
AA
1812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
182
183 * hppa-linux-tdep.c (greg_map): Rename to...
184 (hppa_linux_gregmap): ... this. Also convert to
185 regcache_map_entry format.
186 (hppa_linux_supply_regset): Delete function.
187 (hppa_linux_supply_fpregset): Delete function. Move logic to...
188 (hppa_linux_fpregmap): ... this new register map.
189 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
190 register map, replace supply method by regcache_supply_regset, and
191 add collect method regcache_collect_regset.
192
901e1b23
AA
1932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
194
195 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
196 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
197 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
198 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
199 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
200 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
201 (frv_linux_supply_gregset): Replace main logic by call to
202 regcache_supply_regset, but keep clearing gr32-gr63.
203 (frv_linux_supply_fpregset): Delete function.
204 (frv_linux_gregset): Refer to appropriate register map and add
205 regcache_collect_regset as the collect method.
206 (frv_linux_fpregset): Likewise. Also exchange the supply method
207 by regcache_supply_regset.
208
1d6e7555
AA
2092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
210
211 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
212 by call to alpha_supply_int_regs.
213 (alpha_linux_collect_gregset): New function.
214 (alpha_linux_supply_fpregset): Replace logic by call to
215 alpha_supply_fp_regs.
216 (alpha_linux_collect_fpregset): New function.
217 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
218
d4d793bf
AA
2192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
220
221 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
222 by call to regcache_collect_regset.
223 (supply_gregset, supply_fpregset): Call regcache_supply_regset
224 instead of aarch64_linux_supply_gregset/_fpregset.
225 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
226 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
227 header file instead.
228 (aarch64_linux_supply_gregset, supply_gregset_from_core)
229 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
230 functions. Move logic to ...
231 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
232 register maps.
233 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
234 refer to new register maps, replace *_regset_from_core by
235 regcache_supply_regset, and also use regcache_collect_regset.
236 * aarch64-linux-tdep.h: Include "regset.h".
237 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
238 Delete prototypes.
239 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
240 macros, moved from C source file.
241 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
242 variable declarations.
243
99b7da5d
AA
2442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
245
246 * s390-linux-nat.c: Include "regset.h".
247 (regmap_gregset): Delete macro.
248 (s390_64_regmap_gregset): New register map for
249 regcache_supply/_collect_regset.
250 (s390_64_gregset): New regset.
251 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
252 (regmap_fpregset): Delete macro.
253 (s390_native_supply, s390_native_collect): Delete functions.
254 (supply_gregset, fill_gregset): Replace s390-specific regmap
255 handling by a call to regcache_supply/_collect_regset.
256 (supply_fpregset, fill_fpregset): Call regcache_supply/
257 _collect_regset instead of s390_native_supply/_collect.
258 (fetch_regset, store_regset): Likewise. Also change the last
259 parameter to a regset instead of a regmap.
260 (s390_linux_fetch_inferior_registers)
261 (390_linux_store_inferior_registers): Adjust last parameter in
262 calls to fetch_regset and store_regset.
263 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
264 (s390_gregmap): ... this. Also make static const and convert to
265 regcache_map_entry format.
266 (s390x_regmap_gregset): Delete.
267 (s390_regmap_fpregset): Rename to...
268 (s390_fpregmap): ... this. Make static const and convert to
269 regcache_map_entry format.
270 (s390_regmap_upper, s390_regmap_last_break)
271 (s390x_regmap_last_break, s390_regmap_system_call)
272 (s390_regmap_tdb): Likewise.
273 (s390_supply_regset, s390_collect_regset): Remove functions.
274 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
275 s390_supply_regset.
276 (s390_gregset, s390_fpregset, s390_upper_regset)
277 (s390_last_break_regset, s390x_last_break_regset)
278 (s390_system_call_regset, s390_tdb_regset): Make global and
279 replace s390_supply/_collect_regset by regcache_supply/
280 _collect_regset.
281 (s390x_gregset): Delete.
282 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
283 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
284 (s390_regmap_fpregset, s390_regmap_last_break)
285 (s390x_regmap_last_break, s390_regmap_system_call)
286 (s390_regmap_tdb): Delete global variable declarations.
287 (s390_gregset, s390_fpregset, s390_last_break_regset)
288 (s390x_last_break_regset, s390_system_call_regset)
289 (s390_tdb_regset): New global variable declarations.
290
0b309272
AA
2912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
292
293 * regcache.c: Include "regset.h".
294 (regcache_transfer_regset): New local function.
295 (regcache_supply_regset, regcache_collect_regset): New functions.
296 * regcache.h (struct regcache_map_entry): New structure.
297 (REGCACHE_MAP_SKIP): New enum value.
298 (regcache_supply_regset, regcache_collect_regset): New prototypes.
299
7fefa8d7
AA
3002014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
301
302 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
303 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
304 (ppc_linux_collect_gregset ): Likewise.
305 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
306 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
307 (ppc_collect_vrregset): Likewise.
308 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
309 Likewise.
310
96c4f946
YQ
3112014-08-07 Yao Qi <yao@codesourcery.com>
312
313 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
314 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
315 * remote.c (remote_read_bytes): Likewise.
316
fffbe6a8
YQ
3172014-08-07 Yao Qi <yao@codesourcery.com>
318
319 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
320
5ee8a82c
YQ
3212014-08-07 Yao Qi <yao@codesourcery.com>
322
323 PR remote/17230
324 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
325 TARGET_XFER_OK instead of 0.
326
bb974a24
GB
3272014-08-07 Gary Benson <gbenson@redhat.com>
328
329 * common/common-defs.h: Include errno.h.
330 * defs.h: Do not include errno.h.
331 * ada-typeprint.c: Likewise.
332 * c-typeprint.c: Likewise.
333 * core-regset.c: Likewise.
334 * corefile.c: Likewise.
335 * corelow.c: Likewise.
336 * event-loop.c: Likewise.
337 * f-typeprint.c: Likewise.
338 * gnu-nat.c: Likewise.
339 * go32-nat.c: Likewise.
340 * i386gnu-nat.c: Likewise.
341 * m2-typeprint.c: Likewise.
342 * nat/linux-btrace.c: Likewise.
343 * p-typeprint.c: Likewise.
344 * procfs.c: Likewise.
345 * remote-sim.c: Likewise.
346 * rs6000-nat.c: Likewise.
347 * target.c: Likewise.
348 * typeprint.c: Likewise.
349 * ui-file.c: Likewise.
350 * valops.c: Likewise.
351 * valprint.c: Likewise.
352
6d3d12eb
GB
3532014-08-07 Gary Benson <gbenson@redhat.com>
354
355 * common/common-defs.h: Include string.h.
356 * aarch64-tdep.c: Do not include string.h.
357 * ada-exp.y: Likewise.
358 * ada-lang.c: Likewise.
359 * ada-lex.l: Likewise.
360 * ada-typeprint.c: Likewise.
361 * ada-valprint.c: Likewise.
362 * aix-thread.c: Likewise.
363 * alpha-linux-tdep.c: Likewise.
364 * alpha-mdebug-tdep.c: Likewise.
365 * alpha-nat.c: Likewise.
366 * alpha-osf1-tdep.c: Likewise.
367 * alpha-tdep.c: Likewise.
368 * alphanbsd-tdep.c: Likewise.
369 * amd64-dicos-tdep.c: Likewise.
370 * amd64-linux-tdep.c: Likewise.
371 * amd64-nat.c: Likewise.
372 * amd64-sol2-tdep.c: Likewise.
373 * amd64fbsd-tdep.c: Likewise.
374 * amd64obsd-tdep.c: Likewise.
375 * arch-utils.c: Likewise.
376 * arm-linux-nat.c: Likewise.
377 * arm-linux-tdep.c: Likewise.
378 * arm-tdep.c: Likewise.
379 * arm-wince-tdep.c: Likewise.
380 * armbsd-tdep.c: Likewise.
381 * armnbsd-nat.c: Likewise.
382 * armnbsd-tdep.c: Likewise.
383 * armobsd-tdep.c: Likewise.
384 * avr-tdep.c: Likewise.
385 * ax-gdb.c: Likewise.
386 * ax-general.c: Likewise.
387 * bcache.c: Likewise.
388 * bfin-tdep.c: Likewise.
389 * breakpoint.c: Likewise.
390 * build-id.c: Likewise.
391 * buildsym.c: Likewise.
392 * c-exp.y: Likewise.
393 * c-lang.c: Likewise.
394 * c-typeprint.c: Likewise.
395 * c-valprint.c: Likewise.
396 * charset.c: Likewise.
397 * cli-out.c: Likewise.
398 * cli/cli-cmds.c: Likewise.
399 * cli/cli-decode.c: Likewise.
400 * cli/cli-dump.c: Likewise.
401 * cli/cli-interp.c: Likewise.
402 * cli/cli-logging.c: Likewise.
403 * cli/cli-script.c: Likewise.
404 * cli/cli-setshow.c: Likewise.
405 * cli/cli-utils.c: Likewise.
406 * coffread.c: Likewise.
407 * common/agent.c: Likewise.
408 * common/buffer.c: Likewise.
409 * common/buffer.h: Likewise.
410 * common/common-utils.c: Likewise.
411 * common/filestuff.c: Likewise.
412 * common/filestuff.c: Likewise.
413 * common/format.c: Likewise.
414 * common/print-utils.c: Likewise.
415 * common/rsp-low.c: Likewise.
416 * common/signals.c: Likewise.
417 * common/vec.h: Likewise.
418 * common/xml-utils.c: Likewise.
419 * core-regset.c: Likewise.
420 * corefile.c: Likewise.
421 * corelow.c: Likewise.
422 * cp-abi.c: Likewise.
423 * cp-name-parser.y: Likewise.
424 * cp-support.c: Likewise.
425 * cp-valprint.c: Likewise.
426 * cris-tdep.c: Likewise.
427 * d-exp.y: Likewise.
428 * darwin-nat.c: Likewise.
429 * dbxread.c: Likewise.
430 * dcache.c: Likewise.
431 * demangle.c: Likewise.
432 * dicos-tdep.c: Likewise.
433 * disasm.c: Likewise.
434 * doublest.c: Likewise.
435 * dsrec.c: Likewise.
436 * dummy-frame.c: Likewise.
437 * dwarf2-frame.c: Likewise.
438 * dwarf2loc.c: Likewise.
439 * dwarf2read.c: Likewise.
440 * elfread.c: Likewise.
441 * environ.c: Likewise.
442 * eval.c: Likewise.
443 * event-loop.c: Likewise.
444 * exceptions.c: Likewise.
445 * exec.c: Likewise.
446 * expprint.c: Likewise.
447 * f-exp.y: Likewise.
448 * f-lang.c: Likewise.
449 * f-typeprint.c: Likewise.
450 * f-valprint.c: Likewise.
451 * fbsd-nat.c: Likewise.
452 * findcmd.c: Likewise.
453 * findvar.c: Likewise.
454 * fork-child.c: Likewise.
455 * frame.c: Likewise.
456 * frv-linux-tdep.c: Likewise.
457 * frv-tdep.c: Likewise.
458 * gdb.c: Likewise.
459 * gdb_bfd.c: Likewise.
460 * gdbarch.c: Likewise.
461 * gdbarch.sh: Likewise.
462 * gdbtypes.c: Likewise.
463 * gnu-nat.c: Likewise.
464 * gnu-v2-abi.c: Likewise.
465 * gnu-v3-abi.c: Likewise.
466 * go-exp.y: Likewise.
467 * go-lang.c: Likewise.
468 * go32-nat.c: Likewise.
469 * guile/guile.c: Likewise.
470 * guile/scm-auto-load.c: Likewise.
471 * hppa-hpux-tdep.c: Likewise.
472 * hppa-linux-nat.c: Likewise.
473 * hppanbsd-tdep.c: Likewise.
474 * hppaobsd-tdep.c: Likewise.
475 * i386-cygwin-tdep.c: Likewise.
476 * i386-dicos-tdep.c: Likewise.
477 * i386-linux-tdep.c: Likewise.
478 * i386-nto-tdep.c: Likewise.
479 * i386-sol2-tdep.c: Likewise.
480 * i386-tdep.c: Likewise.
481 * i386bsd-tdep.c: Likewise.
482 * i386gnu-nat.c: Likewise.
483 * i386nbsd-tdep.c: Likewise.
484 * i386obsd-tdep.c: Likewise.
485 * i387-tdep.c: Likewise.
486 * ia64-libunwind-tdep.c: Likewise.
487 * ia64-linux-nat.c: Likewise.
488 * inf-child.c: Likewise.
489 * inf-ptrace.c: Likewise.
490 * inf-ttrace.c: Likewise.
491 * infcall.c: Likewise.
492 * infcmd.c: Likewise.
493 * inflow.c: Likewise.
494 * infrun.c: Likewise.
495 * interps.c: Likewise.
496 * iq2000-tdep.c: Likewise.
497 * irix5-nat.c: Likewise.
498 * jv-exp.y: Likewise.
499 * jv-lang.c: Likewise.
500 * jv-typeprint.c: Likewise.
501 * jv-valprint.c: Likewise.
502 * language.c: Likewise.
503 * linux-fork.c: Likewise.
504 * linux-nat.c: Likewise.
505 * lm32-tdep.c: Likewise.
506 * m2-exp.y: Likewise.
507 * m2-typeprint.c: Likewise.
508 * m32c-tdep.c: Likewise.
509 * m32r-linux-nat.c: Likewise.
510 * m32r-linux-tdep.c: Likewise.
511 * m32r-rom.c: Likewise.
512 * m32r-tdep.c: Likewise.
513 * m68hc11-tdep.c: Likewise.
514 * m68k-tdep.c: Likewise.
515 * m68kbsd-tdep.c: Likewise.
516 * m68klinux-nat.c: Likewise.
517 * m68klinux-tdep.c: Likewise.
518 * m88k-tdep.c: Likewise.
519 * machoread.c: Likewise.
520 * macrocmd.c: Likewise.
521 * main.c: Likewise.
522 * mdebugread.c: Likewise.
523 * mem-break.c: Likewise.
524 * memattr.c: Likewise.
525 * memory-map.c: Likewise.
526 * mep-tdep.c: Likewise.
527 * mi/mi-cmd-break.c: Likewise.
528 * mi/mi-cmd-disas.c: Likewise.
529 * mi/mi-cmd-env.c: Likewise.
530 * mi/mi-cmd-stack.c: Likewise.
531 * mi/mi-cmd-var.c: Likewise.
532 * mi/mi-cmds.c: Likewise.
533 * mi/mi-console.c: Likewise.
534 * mi/mi-getopt.c: Likewise.
535 * mi/mi-interp.c: Likewise.
536 * mi/mi-main.c: Likewise.
537 * mi/mi-parse.c: Likewise.
538 * microblaze-rom.c: Likewise.
539 * microblaze-tdep.c: Likewise.
540 * mingw-hdep.c: Likewise.
541 * minidebug.c: Likewise.
542 * minsyms.c: Likewise.
543 * mips-irix-tdep.c: Likewise.
544 * mips-linux-tdep.c: Likewise.
545 * mips-tdep.c: Likewise.
546 * mips64obsd-tdep.c: Likewise.
547 * mipsnbsd-tdep.c: Likewise.
548 * mipsread.c: Likewise.
549 * mn10300-linux-tdep.c: Likewise.
550 * mn10300-tdep.c: Likewise.
551 * monitor.c: Likewise.
552 * moxie-tdep.c: Likewise.
553 * mt-tdep.c: Likewise.
554 * nat/linux-btrace.c: Likewise.
555 * nat/linux-osdata.c: Likewise.
556 * nat/linux-procfs.c: Likewise.
557 * nat/linux-ptrace.c: Likewise.
558 * nat/linux-waitpid.c: Likewise.
559 * nbsd-tdep.c: Likewise.
560 * nios2-linux-tdep.c: Likewise.
561 * nto-procfs.c: Likewise.
562 * nto-tdep.c: Likewise.
563 * objc-lang.c: Likewise.
564 * objfiles.c: Likewise.
565 * opencl-lang.c: Likewise.
566 * osabi.c: Likewise.
567 * osdata.c: Likewise.
568 * p-exp.y: Likewise.
569 * p-lang.c: Likewise.
570 * p-typeprint.c: Likewise.
571 * parse.c: Likewise.
572 * posix-hdep.c: Likewise.
573 * ppc-linux-nat.c: Likewise.
574 * ppc-sysv-tdep.c: Likewise.
575 * ppcfbsd-tdep.c: Likewise.
576 * ppcnbsd-tdep.c: Likewise.
577 * ppcobsd-tdep.c: Likewise.
578 * printcmd.c: Likewise.
579 * procfs.c: Likewise.
580 * prologue-value.c: Likewise.
581 * python/py-auto-load.c: Likewise.
582 * python/py-gdb-readline.c: Likewise.
583 * ravenscar-thread.c: Likewise.
584 * regcache.c: Likewise.
585 * registry.c: Likewise.
586 * remote-fileio.c: Likewise.
587 * remote-m32r-sdi.c: Likewise.
588 * remote-mips.c: Likewise.
589 * remote-notif.c: Likewise.
590 * remote-sim.c: Likewise.
591 * remote.c: Likewise.
592 * reverse.c: Likewise.
593 * rs6000-aix-tdep.c: Likewise.
594 * ser-base.c: Likewise.
595 * ser-go32.c: Likewise.
596 * ser-mingw.c: Likewise.
597 * ser-pipe.c: Likewise.
598 * ser-tcp.c: Likewise.
599 * ser-unix.c: Likewise.
600 * serial.c: Likewise.
601 * sh-tdep.c: Likewise.
602 * sh64-tdep.c: Likewise.
603 * shnbsd-tdep.c: Likewise.
604 * skip.c: Likewise.
605 * sol-thread.c: Likewise.
606 * solib-dsbt.c: Likewise.
607 * solib-frv.c: Likewise.
608 * solib-osf.c: Likewise.
609 * solib-som.c: Likewise.
610 * solib-spu.c: Likewise.
611 * solib-target.c: Likewise.
612 * solib.c: Likewise.
613 * somread.c: Likewise.
614 * source.c: Likewise.
615 * sparc-nat.c: Likewise.
616 * sparc-sol2-tdep.c: Likewise.
617 * sparc-tdep.c: Likewise.
618 * sparc64-tdep.c: Likewise.
619 * sparc64fbsd-tdep.c: Likewise.
620 * sparc64nbsd-tdep.c: Likewise.
621 * sparcnbsd-tdep.c: Likewise.
622 * spu-linux-nat.c: Likewise.
623 * spu-multiarch.c: Likewise.
624 * spu-tdep.c: Likewise.
625 * stabsread.c: Likewise.
626 * stack.c: Likewise.
627 * std-regs.c: Likewise.
628 * symfile.c: Likewise.
629 * symmisc.c: Likewise.
630 * symtab.c: Likewise.
631 * target.c: Likewise.
632 * thread.c: Likewise.
633 * tilegx-linux-nat.c: Likewise.
634 * tilegx-tdep.c: Likewise.
635 * top.c: Likewise.
636 * tracepoint.c: Likewise.
637 * tui/tui-command.c: Likewise.
638 * tui/tui-data.c: Likewise.
639 * tui/tui-disasm.c: Likewise.
640 * tui/tui-file.c: Likewise.
641 * tui/tui-layout.c: Likewise.
642 * tui/tui-out.c: Likewise.
643 * tui/tui-regs.c: Likewise.
644 * tui/tui-source.c: Likewise.
645 * tui/tui-stack.c: Likewise.
646 * tui/tui-win.c: Likewise.
647 * tui/tui-windata.c: Likewise.
648 * tui/tui-winsource.c: Likewise.
649 * typeprint.c: Likewise.
650 * ui-file.c: Likewise.
651 * ui-out.c: Likewise.
652 * user-regs.c: Likewise.
653 * utils.c: Likewise.
654 * v850-tdep.c: Likewise.
655 * valarith.c: Likewise.
656 * valops.c: Likewise.
657 * valprint.c: Likewise.
658 * value.c: Likewise.
659 * varobj.c: Likewise.
660 * vax-tdep.c: Likewise.
661 * vaxnbsd-tdep.c: Likewise.
662 * vaxobsd-tdep.c: Likewise.
663 * windows-nat.c: Likewise.
664 * xcoffread.c: Likewise.
665 * xml-support.c: Likewise.
666 * xstormy16-tdep.c: Likewise.
667 * xtensa-linux-nat.c: Likewise.
668
dccbb609
GB
6692014-08-07 Gary Benson <gbenson@redhat.com>
670
671 * common/common-defs.h: Include gdb_assert.h.
672 * aarch64-tdep.c: Do not include gdb_assert.h.
673 * addrmap.c: Likewise.
674 * aix-thread.c: Likewise.
675 * alpha-linux-tdep.c: Likewise.
676 * alpha-mdebug-tdep.c: Likewise.
677 * alphanbsd-tdep.c: Likewise.
678 * amd64-nat.c: Likewise.
679 * amd64-tdep.c: Likewise.
680 * amd64bsd-nat.c: Likewise.
681 * amd64fbsd-nat.c: Likewise.
682 * amd64fbsd-tdep.c: Likewise.
683 * amd64nbsd-nat.c: Likewise.
684 * amd64nbsd-tdep.c: Likewise.
685 * amd64obsd-nat.c: Likewise.
686 * amd64obsd-tdep.c: Likewise.
687 * arch-utils.c: Likewise.
688 * arm-tdep.c: Likewise.
689 * armbsd-tdep.c: Likewise.
690 * auxv.c: Likewise.
691 * bcache.c: Likewise.
692 * bfin-tdep.c: Likewise.
693 * blockframe.c: Likewise.
694 * breakpoint.c: Likewise.
695 * bsd-kvm.c: Likewise.
696 * bsd-uthread.c: Likewise.
697 * buildsym.c: Likewise.
698 * c-exp.y: Likewise.
699 * c-lang.c: Likewise.
700 * charset.c: Likewise.
701 * cleanups.c: Likewise.
702 * cli-out.c: Likewise.
703 * cli/cli-decode.c: Likewise.
704 * cli/cli-dump.c: Likewise.
705 * cli/cli-logging.c: Likewise.
706 * cli/cli-script.c: Likewise.
707 * cli/cli-utils.c: Likewise.
708 * coffread.c: Likewise.
709 * common/common-utils.c: Likewise.
710 * common/queue.h: Likewise.
711 * common/signals.c: Likewise.
712 * common/vec.h: Likewise.
713 * complaints.c: Likewise.
714 * completer.c: Likewise.
715 * corelow.c: Likewise.
716 * cp-abi.c: Likewise.
717 * cp-name-parser.y: Likewise.
718 * cp-namespace.c: Likewise.
719 * cp-support.c: Likewise.
720 * cris-tdep.c: Likewise.
721 * dbxread.c: Likewise.
722 * dictionary.c: Likewise.
723 * doublest.c: Likewise.
724 * dsrec.c: Likewise.
725 * dummy-frame.c: Likewise.
726 * dwarf2-frame-tailcall.c: Likewise.
727 * dwarf2-frame.c: Likewise.
728 * dwarf2expr.c: Likewise.
729 * dwarf2loc.c: Likewise.
730 * dwarf2read.c: Likewise.
731 * eval.c: Likewise.
732 * event-loop.c: Likewise.
733 * exceptions.c: Likewise.
734 * expprint.c: Likewise.
735 * f-valprint.c: Likewise.
736 * fbsd-nat.c: Likewise.
737 * findvar.c: Likewise.
738 * frame-unwind.c: Likewise.
739 * frame.c: Likewise.
740 * frv-tdep.c: Likewise.
741 * gcore.c: Likewise.
742 * gdb-dlfcn.c: Likewise.
743 * gdb_bfd.c: Likewise.
744 * gdbarch.c: Likewise.
745 * gdbarch.sh: Likewise.
746 * gdbtypes.c: Likewise.
747 * gnu-nat.c: Likewise.
748 * gnu-v3-abi.c: Likewise.
749 * go-lang.c: Likewise.
750 * guile/scm-exception.c: Likewise.
751 * guile/scm-gsmob.c: Likewise.
752 * guile/scm-lazy-string.c: Likewise.
753 * guile/scm-math.c: Likewise.
754 * guile/scm-pretty-print.c: Likewise.
755 * guile/scm-safe-call.c: Likewise.
756 * guile/scm-utils.c: Likewise.
757 * guile/scm-value.c: Likewise.
758 * h8300-tdep.c: Likewise.
759 * hppa-hpux-nat.c: Likewise.
760 * hppa-tdep.c: Likewise.
761 * hppanbsd-tdep.c: Likewise.
762 * hppaobsd-tdep.c: Likewise.
763 * i386-darwin-nat.c: Likewise.
764 * i386-darwin-tdep.c: Likewise.
765 * i386-nto-tdep.c: Likewise.
766 * i386-tdep.c: Likewise.
767 * i386bsd-nat.c: Likewise.
768 * i386fbsd-tdep.c: Likewise.
769 * i386gnu-nat.c: Likewise.
770 * i386nbsd-tdep.c: Likewise.
771 * i386obsd-tdep.c: Likewise.
772 * i387-tdep.c: Likewise.
773 * ia64-libunwind-tdep.c: Likewise.
774 * ia64-tdep.c: Likewise.
775 * inf-ptrace.c: Likewise.
776 * inf-ttrace.c: Likewise.
777 * infcall.c: Likewise.
778 * infcmd.c: Likewise.
779 * infrun.c: Likewise.
780 * inline-frame.c: Likewise.
781 * interps.c: Likewise.
782 * jv-lang.c: Likewise.
783 * jv-typeprint.c: Likewise.
784 * linux-fork.c: Likewise.
785 * linux-nat.c: Likewise.
786 * linux-thread-db.c: Likewise.
787 * m32c-tdep.c: Likewise.
788 * m32r-linux-nat.c: Likewise.
789 * m32r-tdep.c: Likewise.
790 * m68k-tdep.c: Likewise.
791 * m68kbsd-nat.c: Likewise.
792 * m68kbsd-tdep.c: Likewise.
793 * m88k-tdep.c: Likewise.
794 * machoread.c: Likewise.
795 * macroexp.c: Likewise.
796 * macrotab.c: Likewise.
797 * maint.c: Likewise.
798 * mdebugread.c: Likewise.
799 * memory-map.c: Likewise.
800 * mep-tdep.c: Likewise.
801 * mi/mi-common.c: Likewise.
802 * microblaze-tdep.c: Likewise.
803 * mingw-hdep.c: Likewise.
804 * mips-linux-nat.c: Likewise.
805 * mips-linux-tdep.c: Likewise.
806 * mips-tdep.c: Likewise.
807 * mips64obsd-tdep.c: Likewise.
808 * mipsnbsd-tdep.c: Likewise.
809 * mn10300-linux-tdep.c: Likewise.
810 * mn10300-tdep.c: Likewise.
811 * moxie-tdep.c: Likewise.
812 * mt-tdep.c: Likewise.
813 * nat/linux-btrace.c: Likewise.
814 * nat/linux-osdata.c: Likewise.
815 * nat/linux-ptrace.c: Likewise.
816 * nat/mips-linux-watch.c: Likewise.
817 * nios2-linux-tdep.c: Likewise.
818 * nios2-tdep.c: Likewise.
819 * objc-lang.c: Likewise.
820 * objfiles.c: Likewise.
821 * obsd-nat.c: Likewise.
822 * opencl-lang.c: Likewise.
823 * osabi.c: Likewise.
824 * parse.c: Likewise.
825 * ppc-linux-nat.c: Likewise.
826 * ppc-sysv-tdep.c: Likewise.
827 * ppcfbsd-nat.c: Likewise.
828 * ppcfbsd-tdep.c: Likewise.
829 * ppcnbsd-nat.c: Likewise.
830 * ppcnbsd-tdep.c: Likewise.
831 * ppcobsd-nat.c: Likewise.
832 * ppcobsd-tdep.c: Likewise.
833 * printcmd.c: Likewise.
834 * procfs.c: Likewise.
835 * prologue-value.c: Likewise.
836 * psymtab.c: Likewise.
837 * python/py-lazy-string.c: Likewise.
838 * python/py-value.c: Likewise.
839 * regcache.c: Likewise.
840 * reggroups.c: Likewise.
841 * registry.c: Likewise.
842 * remote-sim.c: Likewise.
843 * remote.c: Likewise.
844 * rs6000-aix-tdep.c: Likewise.
845 * rs6000-tdep.c: Likewise.
846 * s390-linux-tdep.c: Likewise.
847 * score-tdep.c: Likewise.
848 * ser-base.c: Likewise.
849 * ser-mingw.c: Likewise.
850 * sh-tdep.c: Likewise.
851 * sh64-tdep.c: Likewise.
852 * solib-darwin.c: Likewise.
853 * solib-spu.c: Likewise.
854 * solib-svr4.c: Likewise.
855 * source.c: Likewise.
856 * sparc-nat.c: Likewise.
857 * sparc-sol2-tdep.c: Likewise.
858 * sparc-tdep.c: Likewise.
859 * sparc64-sol2-tdep.c: Likewise.
860 * sparc64-tdep.c: Likewise.
861 * sparc64fbsd-tdep.c: Likewise.
862 * sparc64nbsd-tdep.c: Likewise.
863 * sparc64obsd-tdep.c: Likewise.
864 * sparcnbsd-tdep.c: Likewise.
865 * sparcobsd-tdep.c: Likewise.
866 * spu-multiarch.c: Likewise.
867 * spu-tdep.c: Likewise.
868 * stabsread.c: Likewise.
869 * stack.c: Likewise.
870 * symfile.c: Likewise.
871 * symtab.c: Likewise.
872 * target-descriptions.c: Likewise.
873 * target-memory.c: Likewise.
874 * target.c: Likewise.
875 * tic6x-linux-tdep.c: Likewise.
876 * tic6x-tdep.c: Likewise.
877 * tilegx-linux-nat.c: Likewise.
878 * tilegx-tdep.c: Likewise.
879 * top.c: Likewise.
880 * tramp-frame.c: Likewise.
881 * tui/tui-out.c: Likewise.
882 * tui/tui-winsource.c: Likewise.
883 * ui-out.c: Likewise.
884 * user-regs.c: Likewise.
885 * utils.c: Likewise.
886 * v850-tdep.c: Likewise.
887 * valops.c: Likewise.
888 * value.c: Likewise.
889 * varobj.c: Likewise.
890 * vax-nat.c: Likewise.
891 * xml-syscall.c: Likewise.
892 * xml-tdesc.c: Likewise.
893 * xstormy16-tdep.c: Likewise.
894 * xtensa-linux-nat.c: Likewise.
895 * xtensa-tdep.c: Likewise.
896
e76df0d0
GB
8972014-08-07 Gary Benson <gbenson@redhat.com>
898
899 * common/common-defs.h: Include common-utils.h.
900 * defs.h: Do not include common-utils.h.
901 * common/gdb_assert.h: Likewise.
902 * darwin-nat.h: Likewise.
903 * nat/linux-btrace.c: Likewise.
904 * target/waitstatus.h: Likewise.
905
4cb9c816
GB
9062014-08-07 Gary Benson <gbenson@redhat.com>
907
908 * common/common-defs.h: Include ptid.h.
909 * defs.h: Do not include ptid.h.
910 * inferior.h: Likewise.
911 * infrun.h: Likewise.
912 * nat/linux-btrace.h: Likewise.
913 * nat/linux-osdata.h: Likewise.
914 * target/waitstatus.h: Likewise.
915
3995eeee
GB
9162014-08-07 Gary Benson <gbenson@redhat.com>
917
918 * common/common-defs.h: Include gdb_locale.h.
919 * defs.h: Do not include gdb_locale.h.
920
cb9f1a9b
GB
9212014-08-07 Gary Benson <gbenson@redhat.com>
922
923 * common/common-defs.h: Include gdb/signals.h.
924 * defs.h: Do not include gdb/signals.h.
925
a5fceff8
GB
9262014-08-07 Gary Benson <gbenson@redhat.com>
927
928 * common/common-defs.h: Include pathmax.h.
929 * defs.h: Do not include pathmax.h.
930
b9391142
GB
9312014-08-07 Gary Benson <gbenson@redhat.com>
932
933 * common/common-defs.h: Include libiberty.h.
934 * defs.h: Do not include libiberty.h.
935 * common/queue.h: Likewise.
936 * cp-name-parser.y: Likewise.
937 * mi/mi-cmd-catch.c: Likewise.
938 * python/python.c: Likewise.
939
0e443c87
GB
9402014-08-07 Gary Benson <gbenson@redhat.com>
941
942 * common/common-defs.h: Include ansidecl.h.
943 * defs.h: Do not include ansidecl.h.
944 * common/buffer.h: Likewise.
945 * common/common-utils.h: Likewise.
946
8ebb3f56
GB
9472014-08-07 Gary Benson <gbenson@redhat.com>
948
949 * common/common-defs.h: Include stddef.h.
950 * defs.h: Do not include stddef.h.
951 * common/common-utils.h: Likewise.
952 * amd64fbsd-nat.c: Likewise.
953 * bcache.c: Likewise.
954 * charset.c: Likewise.
955 * common/buffer.h: Likewise.
956 * common/vec.h: Likewise.
957 * i386bsd-nat.c: Likewise.
958 * nat/linux-btrace.h: Likewise.
959 * ppcfbsd-nat.c: Likewise.
960 * ppcnbsd-tdep.h: Likewise.
961 * ppcobsd-nat.c: Likewise.
962 * ppcobsd-tdep.h: Likewise.
963 * python/py-gdb-readline.c: Likewise.
964
8980bdf6
GB
9652014-08-07 Gary Benson <gbenson@redhat.com>
966
967 * common/common-defs.h: Include stdarg.h.
968 * defs.h: Do not include stdarg.h.
969 * ada-lang.c: Likewise.
970 * common/common-utils.h: Likewise.
971 * guile/scm-string.c: Likewise.
972 * guile/scm-utils.c: Likewise.
973 * m32c-tdep.c: Likewise.
974
d7096f71
GB
9752014-08-07 Gary Benson <gbenson@redhat.com>
976
977 * common/common-defs.h: Include stdlib.h.
978 * defs.h: Do not include stdlib.h.
979 * addrmap.c: Likewise.
980 * bcache.c: Likewise.
981 * common/buffer.c: Likewise.
982 * common/common-utils.c: Likewise.
983 * cp-name-parser.y: Likewise.
984 * go32-nat.c: Likewise.
985 * mn10300-linux-tdep.c: Likewise.
986 * nat/linux-osdata.c: Likewise.
987 * tui/tui.c: Likewise.
988 * windows-nat.c: Likewise.
989
d02f550d
GB
9902014-08-07 Gary Benson <gbenson@redhat.com>
991
992 * common/common-defs.h: Include stdio.h.
993 * defs.h: Do not include stdio.h.
994 * ada-lang.c: Likewise.
995 * common/buffer.c: Likewise.
996 * common/common-utils.c: Likewise.
997 * cp-name-parser.y: Likewise.
998 * gnu-nat.c: Likewise.
999 * go32-nat.c: Likewise.
1000 * i386gnu-nat.c: Likewise.
1001 * proc-api.c: Likewise.
1002 * proc-events.c: Likewise.
1003 * proc-flags.c: Likewise.
1004 * proc-why.c: Likewise.
1005 * python/python-internal.h: Likewise.
1006 * target-memory.c: Likewise.
1007 * tui/tui-io.c: Likewise.
1008 * tui/tui.c: Likewise.
1009
b6d7a4bf
SM
10102014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1011
1012 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1013 (scan_dyntag_auxv): Same.
1014
af19829b
YQ
10152014-08-06 Yao Qi <yao@codesourcery.com>
1016
1017 * amd64-linux-nat.c: Remove duplicated include
1018 "x86-linux-nat.h".
1019 * i386-linux-nat.c: Likewise.
1020
8e07a239
YQ
10212014-08-06 Yao Qi <yao@codesourcery.com>
1022
1023 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1024 operand" with "Special opcode" in comments.
1025
7bfe8241
GB
10262014-08-05 Gary Benson <gbenson@redhat.com>
1027
1028 * interps.c (initialize_interps): Remove prototype.
1029 (interpreter_initialized): Remove static global.
1030 (interp_add): Do not call initialize_interps.
1031 (initialize_interps): Remove function.
1032
d6c95504
GB
10332014-08-05 Gary Benson <gbenson@redhat.com>
1034
1035 * utils.c (vwarning): Remove spurious va_end.
1036
241fd515
AM
10372014-08-05 Alan Modra <amodra@gmail.com>
1038
1039 * charset.c (convert_between_encodings): Cast result of obstack_base.
1040 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1041 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1042 (read_unwind_info): Use size_t for some locals.
1043 * jit.c (finalize_symtab): Likewise.
1044 * utils.c (hashtab_obstack_allocate): Likewise.
1045 * symmisc.c (print_objfile_statistics): Update format strings.
1046
dc304a94
JK
10472014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1048
1049 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1050 (Changes in GDB 7.8): ... here.
1051
3cecbbbe
TT
10522014-08-04 Tom Tromey <tromey@redhat.com>
1053
1054 * target.c (set_targetdebug): New function.
1055 (initialize_targets): Pass set_targetdebug when creating "set
1056 debug target".
1057
6908c509
JB
10582014-08-01 Joel Brobecker <brobecker@adacore.com>
1059
1060 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1061 if detecting a variable-sized field that is not the last field.
1062 Fix struct type length computation.
1063
53e8f97d
JB
10642014-08-01 Joel Brobecker <brobecker@adacore.com>
1065
1066 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1067 Add debug trace.
1068
e068c55d
JB
10692014-08-01 Joel Brobecker <brobecker@adacore.com>
1070
1071 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1072 Remove "+ 8" offset in computation of CHAIN_VMA.
1073
4d4ca2a1
DE
10742014-07-31 Doug Evans <dje@google.com>
1075
1076 * inflow.c (child_terminal_inferior): Add comment.
1077 (child_terminal_ours_for_output): Add comment.
1078 (child_terminal_ours): Add comment.
1079 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1080 (linux_nat_terminal_ours): Add comment.
1081
462f517e
GB
10822014-07-31 Gary Benson <gbenson@redhat.com>
1083
1084 * common/btrace-common.h: Do not include defs.h or server.h.
1085 * nat/mips-linux-watch.h: Likewise.
1086 * gdb-dlfcn.h: Do not include defs.h.
1087 * tracefile.h: Likewise.
1088
74228e77
RM
10892014-07-30 Roland McGrath <mcgrathr@google.com>
1090
1091 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1092
014f9477
TT
10932014-07-30 Tom Tromey <tromey@redhat.com>
1094
1095 * bsd-kvm.c (bsd_kvm_open): Constify.
1096 * corelow.c (core_open): Constify.
1097 * ctf.c (ctf_open): Constify.
1098 * dbug-rom.c (dbug_open): Constify.
1099 * exec.c (exec_open): Constify.
1100 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1101 * microblaze-rom.c (picobug_open): Constify.
1102 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1103 Constify.
1104 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1105 * record-btrace.c (record_btrace_open): Constify.
1106 * record-full.c (record_full_core_open_1, record_full_open_1)
1107 (record_full_open): Constify.
1108 * remote-m32r-sdi.c (m32r_open): Constify.
1109 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1110 (rockhopper_open, lsi_open): Constify.
1111 * remote-sim.c (gdbsim_open): Constify.
1112 * remote.c (remote_open, extended_remote_open, remote_open_1):
1113 Constify.
1114 * target.h (struct target_ops) <to_open>: Make "arg" const.
1115 * tracefile-tfile.c (tfile_open): Constify.
1116
e799154c
TT
11172014-07-30 Tom Tromey <tromey@redhat.com>
1118
1119 * breakpoint.c (map_breakpoint_numbers): Update.
1120 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1121 (get_number_const): New function.
1122 (get_number): Rewrite using get_number_const.
1123 (init_number_or_range): Make "string" const.
1124 (number_is_in_list): Make "list" const.
1125 * cli/cli-utils.h (get_number_const): Declare.
1126 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1127 (init_number_or_range, number_is_in_list): Update.
1128 * printcmd.c (map_display_numbers): Update.
1129 * value.c (value_from_history_ref): Constify.
1130 * value.h (value_from_history_ref): Update.
1131
5f08566b
TT
11322014-07-30 Tom Tromey <tromey@redhat.com>
1133
1134 * corefile.c (hook_type, call_extra_exec_file_hooks)
1135 (specify_exec_file_hook): Constify.
1136 * exec.c (exec_file_attach): Make "filename" const.
1137 * gdbcore.h (deprecated_exec_file_display_hook)
1138 (specify_exec_file_hook, exec_file_attach): Constify.
1139 * main.c (captured_main): Use catch_command_errors_const.
1140
8981c758
TT
11412014-07-30 Tom Tromey <tromey@redhat.com>
1142
1143 * target.c (open_target): New function.
1144 (add_target_with_completer, add_deprecated_target_alias): Use
1145 set_cmd_sfunc, set_cmd_context.
1146 (debug_to_open): Remove.
1147 (setup_target_debug): Update.
1148
a1c7835a
YQ
11492014-07-30 Yao Qi <yao@codesourcery.com>
1150
1151 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1152 comments.
1153 * parse.c (exp_iterate): Update comments.
1154
976411d6
GB
11552014-07-30 Gary Benson <gbenson@redhat.com>
1156
1157 * common/common-defs.h: New file.
1158 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1159 * defs.h: Include common-defs.h.
1160 Do not include config.h or build-gnulib/config.h.
1161
5d4848a4
GB
11622014-07-30 Gary Benson <gbenson@redhat.com>
1163
1164 * common/common-utils.h: Do not include config.h.
1165 * nat/linux-btrace.h: Likewise.
1166
d41f6d8e
GB
11672014-07-30 Gary Benson <gbenson@redhat.com>
1168
1169 * btrace.c: Include defs.h.
1170 * common/ptid.c: Include defs.h or server.h as appropriate.
1171 * nat/mips-linux-watch.c: Likewise.
1172
84202f9c
TT
11732014-07-29 Tom Tromey <tromey@redhat.com>
1174
1175 * target.c (target_is_pushed): Simplify.
1176
2530441c
JB
11772014-07-29 Joel Brobecker <brobecker@adacore.com>
1178
1179 GDB 7.8 released.
1180
7e09a223
YQ
11812014-07-29 Yao Qi <yao@codesourcery.com>
1182
1183 PR gdb/17206
1184 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1185
7ebdbe92
DE
11862014-07-28 Doug Evans <xdje42@gmail.com>
1187
1188 PR guile/17203
1189 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1190 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1191 parameters.
1192
f347ffc9
WN
11932014-07-28 Will Newton <will.newton@linaro.org>
1194
1195 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1196 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1197 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1198 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1199 (THUMB2_EABI_SYSCALL): Likewise.
1200 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1201 struct tramp_frame.
1202 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1203 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1204
37c5f1f7
DE
12052014-07-27 Doug Evans <xdje42@gmail.com>
1206
1207 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1208
0c3abbc7
DE
12092014-07-27 Doug Evans <xdje42@gmail.com>
1210
1211 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1212
e76c5d17
DE
12132014-07-26 Ludovic Courtès <ludo@gnu.org>
1214 Doug Evans <xdje42@gmail.com>
1215
1216 PR guile/17146
1217 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1218 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1219 * configure.ac: Try to use guild to compile an scm file, if it fails
1220 then disable guile support.
1221 * configure: Regenerate.
1222 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1223 GUILE_FILE_LIST.
1224 (GUILE_COMPILED_FILES): New variable.
1225 (GUILE_FILES) Update.
1226 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1227 (stamp-guile): Compile scm files.
1228 * guile/guile.c (boot_guile_support): New function.
1229 (standard_throw_args_p): New function.
1230 (print_standard_throw_error, print_throw_error): New functions.
1231 (handle_boot_error): New function.
1232 (initialize_scheme_side): Rewrite to call boot_guile_support.
1233 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1234 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1235
186fcde0
DE
12362014-07-26 Ludovic Courtès <ludo@gnu.org>
1237 Doug Evans <xdje42@gmail.com>
1238
1239 PR guile/17146
1240 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1241 * guile/lib/gdb/support.scm: New file.
1242 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1243 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1244 All uses updated.
1245 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1246 All uses updated.
1247 (%assert-type): Ditto, and renamed to assert-type.
1248 (%exception-print-style): Delete.
1249
4df42755
DE
12502014-07-26 Doug Evans <xdje42@gmail.com>
1251
1252 PR build/17105
1253 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1254 * configure: Regenerate.
1255 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1256 PYTHON_FILES.
1257 (PYTHON_FILES): New variable.
1258 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1259 (GUILE_FILES): New variable.
1260 (stamp-python, install-python, uninstall-python): Handle empty
1261 file list.
1262 (stamp-guile, install-guile, uninstall-guile): Ditto.
1263
ee7333ae
DE
12642014-07-26 Doug Evans <xdje42@gmail.com>
1265
1266 PR guile/17177
1267 * guile/lib/gdb.scm (pretty-printers): Export.
1268 (set-pretty-printers!): Export.
1269 * guile/lib/gdb/printing.scm (gdb module): Update.
1270 (prepend-pretty-printer!, append-pretty-printer!): Update.
1271 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1272 (pretty_printer_list_var): Delete.
1273 (pretty_printer_list): New static global.
1274 (gdbscm_pretty_printers): New function.
1275 (gdbscm_set_pretty_printers_x): New function.
1276 (ppscm_find_pretty_printer_from_gdb): Update.
1277 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1278 (gdbscm_initialize_pretty_printers): Update.
1279
74edf516
DE
12802014-07-26 Doug Evans <xdje42@gmail.com>
1281
1282 PR 17185
1283 * configure.ac: Add check for header gc/gc.h.
1284 Add check for function setenv.
1285 * configure: Regenerate.
1286 * config.in: Regenerate.
1287 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1288
d54398a7
MR
12892014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1290
1291 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1292 variation in gdbarch matching.
1293
ab16fce8
TT
12942014-07-25 Tom Tromey <tromey@redhat.com>
1295
1296 * exec.c (using_exec_ops): Remove.
1297 (exec_close_1): Update. Remove extraneous block, reindent.
1298 (add_target_sections): Use target_is_pushed.
1299
88056fbb
PA
13002014-07-25 Pedro Alves <palves@redhat.com>
1301
1302 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1303 * monitor.c (monitor_create_inferior): Likewise.
1304 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1305 * remote-sim.c (gdbsim_create_inferior): Likewise.
1306 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1307 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1308 * windows-nat.c (do_initial_windows_stuff): Likewise.
1309
70509625
PA
13102014-07-25 Pedro Alves <palves@redhat.com>
1311
1312 * NEWS: Mention signal passing and "signal" command changes.
1313 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1314 comment.
1315 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1316 call.
1317 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1318 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1319 (jump_command): Adjust clear_proceed_status call.
1320 (signal_command): Warn if other thread that are resumed have
1321 signals that will be delivered. Adjust clear_proceed_status call.
1322 (until_next_command, finish_command)
1323 (proceed_after_attach_callback, attach_command_post_wait)
1324 (attach_command): Adjust clear_proceed_status call.
1325 * infrun.c (proceed_after_vfork_done): Likewise.
1326 (proceed_after_attach_callback): Adjust comment.
1327 (clear_proceed_status_thread): Clear stop_signal if not in pass
1328 state.
1329 (clear_proceed_status_callback): Delete.
1330 (clear_proceed_status): New 'step' parameter. Only clear the
1331 proceed status of threads the command being prepared is about to
1332 resume.
1333 (proceed): If passed in an explicit signal, override stop_signal
1334 with it. Don't pass the last stop signal to the thread we're
1335 resuming.
1336 (init_wait_for_inferior): Adjust clear_proceed_status call.
1337 (switch_back_to_stepped_thread): Clear the signal if it should not
1338 be passed.
1339 * infrun.h (clear_proceed_status): New 'step' parameter.
1340 (user_visible_resume_ptid): Add comment.
1341 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1342 signal is in pass state.
1343 * remote.c (append_pending_thread_resumptions): Likewise.
1344 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1345
d8be2939
TT
13462014-07-25 Tom Tromey <tromey@redhat.com>
1347
1348 * target.h (target_stopped_data_address)
1349 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1350 parentheses.
1351
7d0d9d2b
PL
13522014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1353
1354 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1355 comments.
1356 (avr_pointer_to_address): Likewise.
1357
e9e7f724
TT
13582014-07-24 Tom Tromey <tromey@redhat.com>
1359
1360 * monitor.c (compile_pattern): Update.
1361 * target.h (struct target_ops) <to_shortname, to_longname,
1362 to_doc>: Now const.
1363
1947513d
TT
13642014-07-24 Tom Tromey <tromey@redhat.com>
1365
1366 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1367 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1368 (add_info_alias, add_com): Make "doc" const.
1369 (print_doc_line): Make "str" const.
1370 (delete_cmd): Update.
1371 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1372 (print_doc_line): Update.
1373 * cli/cli-script.c (document_command): Update.
1374 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1375 (add_com, add_info, add_info_alias): Update.
1376 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1377 * python/py-cmd.c (cmdpy_destroyer): Update.
1378
64e61d29
TT
13792014-07-24 Tom Tromey <tromey@redhat.com>
1380
1381 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1382 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1383 (help_cmd_list): Constify.
1384 (lookup_cmd): Update.
1385 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1386 const.
1387 (help_cmd_list, apropos_cmd): Update.
1388 * cli/cli-script.c (show_user): Update.
1389 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1390 * cli/cli-setshow.h (cmd_show_list): Update.
1391 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1392 (cmd_show_list): Update.
1393 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1394 * python/py-cmd.c (cmdpy_destroyer): Update.
1395
429e55ea
TT
13962014-07-24 Tom Tromey <tromey@redhat.com>
1397
1398 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1399 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1400 const.
1401 * command.h (deprecate_cmd): Update.
1402 * maint.c (maintenance_do_deprecate): Add casts.
1403
64669f3b
TT
14042014-07-24 Tom Tromey <tromey@redhat.com>
1405
1406 * cli/cli-decode.c (help_cmd): Make parameter "const".
1407 * cli/cli-decode.h (help_cmd): Update.
1408
d3d3328b
TT
14092014-07-24 Tom Tromey <tromey@redhat.com>
1410
1411 * stack.c (up_silently_base, down_silently_base): Make argument
1412 const.
1413
414842dc
TT
14142014-07-24 Tom Tromey <tromey@redhat.com>
1415
1416 * solib.c (solib_add): Make "pattern" const.
1417 * solib.h (solib_add): Update.
1418
baa336ce
TT
14192014-07-24 Tom Tromey <tromey@redhat.com>
1420
1421 * remote.c (remote_serial_open, print_packet, putpkt)
1422 (putpkt_binary): Constify.
1423 * remote.h (putpkt): Update.
1424
5a19e2d0
TT
14252014-07-24 Tom Tromey <tromey@redhat.com>
1426
1427 * monitor.c (monitor_open): Make "args" const.
1428 * monitor.h (monitor_open): Update.
1429
fc4baa5e
TT
14302014-07-24 Tom Tromey <tromey@redhat.com>
1431
1432 * maint.c (match_bfd_flags): Make "string" const.
1433 (print_bfd_section_info): Remove casts.
1434 (print_objfile_section_info): Make "string" const.
1435
0d5f0dbe
TT
14362014-07-24 Tom Tromey <tromey@redhat.com>
1437
1438 * inf-child.c (inf_child_open_target): Make "arg" const.
1439 * inf-child.h (inf_child_open_target): Update.
1440
41c77899
TT
14412014-07-24 Tom Tromey <tromey@redhat.com>
1442
1443 * environ.c (unset_in_environ): Make "var" const.
1444 * environ.h (unset_in_environ): Update.
1445
93db0d79
TT
14462014-07-24 Tom Tromey <tromey@redhat.com>
1447
1448 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1449 Make "cmd" const.
1450 (scan_filename_with_cleanup): Likewise.
1451 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1452 Make arguments const.
1453 (restore_command): Update.
1454
36d6eb95
PA
14552014-07-24 Pedro Alves <palves@redhat.com>
1456
1457 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1458
8009206a
TT
14592014-07-24 Tom Tromey <tromey@redhat.com>
1460 Gary Benson <gbenson@redhat.com>
1461
1462 * nat/linux-ptrace.c (additional_flags): New global.
1463 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1464 additional_flags; don't check GDBSERVER.
1465 (linux_ptrace_set_additional_flags): New function.
1466 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1467 Declare.
1468 * linux-nat.c (_initialize_linux_nat): Call
1469 linux_ptrace_set_additional_flags.
1470
a7068b60
TT
14712014-07-24 Tom Tromey <tromey@redhat.com>
1472
1473 * make-target-delegates (munge_type, write_debugmethod): New
1474 functions.
1475 (debug_names): New global.
1476 ($TARGET_DEBUG_PRINTER): New global.
1477 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1478 name.
1479 Write debug methods. Generate init_debug_target.
1480 * target-debug.h: New file.
1481 * target-delegates.c: Rebuild.
1482 * target.c: Include target-debug.h.
1483 (debug_target): Hoist definition.
1484 (target_kill, target_get_section_table, target_memory_map)
1485 (target_flash_erase, target_flash_done, target_detach)
1486 (target_disconnect, target_wait, target_resume)
1487 (target_pass_signals, target_program_signals, target_follow_fork)
1488 (target_mourn_inferior, target_search_memory)
1489 (target_thread_address_space, target_close)
1490 (target_find_new_threads, target_core_of_thread)
1491 (target_verify_memory, target_insert_mask_watchpoint)
1492 (target_remove_mask_watchpoint): Remove targetdebug code.
1493 (debug_to_post_attach, debug_to_prepare_to_store)
1494 (debug_to_files_info, debug_to_insert_breakpoint)
1495 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1496 (debug_to_region_ok_for_hw_watchpoint)
1497 (debug_to_can_accel_watchpoint_condition)
1498 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1499 (debug_to_watchpoint_addr_within_range)
1500 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1501 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1502 (debug_to_terminal_init, debug_to_terminal_inferior)
1503 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1504 (debug_to_terminal_save_ours, debug_to_terminal_info)
1505 (debug_to_load, debug_to_post_startup_inferior)
1506 (debug_to_insert_fork_catchpoint)
1507 (debug_to_remove_fork_catchpoint)
1508 (debug_to_insert_vfork_catchpoint)
1509 (debug_to_remove_vfork_catchpoint)
1510 (debug_to_insert_exec_catchpoint)
1511 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1512 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1513 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1514 (setup_target_debug): Call init_debug_target.
1515 * target.h (TARGET_DEBUG_PRINTER): New macro.
1516 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1517 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1518
2c51604d
GB
15192014-07-24 Gary Benson <gbenson@redhat.com>
1520
1521 * exceptions.h (throw_vfatal): Renamed to...
1522 (throw_vquit): New declaration.
1523 (throw_quit): Likewise.
1524 * exceptions.c (throw_vfatal): Renamed to...
1525 (throw_vquit): New function.
1526 (throw_quit): Likewise.
1527 (throw_error): Call throw_verror rather than throw_it.
1528 * utils.h (vfatal): Removed.
1529 (fatal): Likewise.
1530 * utils.c (vfatal): Removed.
1531 (fatal): Likewise.
1532 (internal_verror): Replaced call to fatal with call to throw_quit.
1533 (quit): Replaced calls to fatal with calls to throw_quit.
1534
34211963
ME
15352014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1536
1537 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1538 target_read_code.
1539
a52b4d3e
ME
15402014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1541
1542 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1543 less than zero in conditional expression.
1544
a8bdc56b
TT
15452014-07-23 Tom Tromey <tromey@redhat.com>
1546
1547 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1548 ($INTRO_PART): Don't match whitespace.
1549 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1550 argument matching.
1551 ($METHOD): Add $METHOD_TRAILER.
1552 (trim): Rewrite.
1553 (scan_target_h): New sub.
1554 Change main loop not to collect state.
1555 * target-delegates.c: Rebuild.
1556
91b52240
GB
15572014-07-23 Gary Benson <gbenson@redhat.com>
1558
1559 * cp-support.c (gdb_demangle): Fix build on systems without
1560 sigaltstack.
1561
45326f6f
JK
15622014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1563
1564 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1565 for reference entry value target data value.
1566
e214cf6c
JK
15672014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1568
1569 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1570 value_available_contents_eq.
1571
bddbbedd
PA
15722014-07-22 Pedro Alves <palves@redhat.com>
1573
1574 * value.c (allocate_optimized_out_value): Don't mark value as
1575 non-lazy.
1576
45c71484
JW
15772014-07-22 Jiong Wang <jiong.wang@arm.com>
1578
1579 * MAINTAINERS (Write After Approval): Update my email address.
1580
9597b22a
DE
15812014-07-20 Doug Evans <dje@google.com>
1582
1583 PR server/17147
1584 * remote.c (putpkt_binary): Add text to error message.
1585
91101fe5
YQ
15862014-07-20 Yao Qi <yao@codesourcery.com>
1587
1588 * eval.c: Remove "Chill" from comments.
1589 * gdbtypes.h: Likewise.
1590 * symtab.h: Likewise.
1591
c9402c95
YQ
15922014-07-20 Yao Qi <yao@codesourcery.com>
1593
1594 * std-operator.def: Update comments to TERNOP_SLICE.
1595
ae8fddda
YQ
15962014-07-20 Yao Qi <yao@codesourcery.com>
1597
1598 * std-operator.def: Remove BINOP_RANGE.
1599 * breakpoint.c (watchpoint_exp_is_const): Update.
1600 * expprint.c (dump_subexp_body_standard): Likewise.
1601 * eval.c (init_array_element): Remove dead code.
1602 (evaluate_subexp_standard): Likewise.
1603
9c816640
YQ
16042014-07-20 Yao Qi <yao@codesourcery.com>
1605
1606 * std-operator.def: Remove BINOP_IN.
1607 * breakpoint.c (watchpoint_exp_is_const): Update.
1608 * eval.c (evaluate_subexp_standard): Likewise.
1609 * expprint.c (dump_subexp_body_standard): Likewise.
1610
164224e9
ME
16112014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1612
1613 * microblaze-tdep.c (microblaze_register_names): Add
1614 the rshr and rslr register names.
1615 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1616 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1617 Use of tdesc_numbered_register. Use of
1618 microblaze_register_g_packet_guesses. Use of
1619 tdesc_use_registers. Use of set_gdbarch_register_type.
1620 (microblaze_register_g_packet_guesses): New.
1621 * microblaze-tdep.h (microblaze_reg_num): Add
1622 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1623 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1624 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1625 * features/microblaze-core.xml: New file.
1626 * features/microblaze-stack-protect.xml: New file.
1627 * features/microblaze-with-stack-protect.c: New file.
1628 * features/microblaze-with-stack-protect.xml: New file.
1629 * features/microblaze.xml: New file.
1630 * features/microblaze.c: New file.
1631 * features/Makefile (microblaze-with-stack-protect): Add
1632 microblaze-with-stack-protect microblaze and microblaze-expedite.
1633 * regformats/microblaze-with-stack-protect.dat: New file.
1634 * regformats/microblaze.dat: New file.
1635 * doc/gdb.texinfo (MicroBlaze Features): Added.
1636
e8b2341c
TT
16372014-07-18 Tom Tromey <tromey@redhat.com>
1638
1639 * exec.c (exec_ops): Now static.
1640 * exec.h (exec_ops): Don't declare.
1641
44e89118
TT
16422014-07-18 Tom Tromey <tromey@redhat.com>
1643
1644 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1645 to find_target_beneath.
1646 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1647 find_target_beneath.
1648 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1649
b0ed115f
TT
16502014-07-18 Tom Tromey <tromey@redhat.com>
1651
1652 PR gdb/17130:
1653 * utils.c (quit): Use target_supports_terminal_ours.
1654 * target.h (target_supports_terminal_ours): Declare.
1655 * target.c (target_supports_delete_record): Don't check
1656 to_delete_record against NULL.
1657 (target_supports_terminal_ours): New function.
1658
e75fdfca
TT
16592014-07-18 Tom Tromey <tromey@redhat.com>
1660
1661 PR gdb/17130:
1662 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1663 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1664 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1665 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1666 * windows-nat.c (windows_xfer_partial): Always delegate.
1667 * record-btrace.c (record_btrace_xfer_partial): Simplify
1668 delegation.
1669 (record_btrace_fetch_registers, record_btrace_store_registers)
1670 (record_btrace_prepare_to_store, record_btrace_resume)
1671 (record_btrace_wait, record_btrace_find_new_threads)
1672 (record_btrace_thread_alive): Likewise.
1673 * procfs.c (procfs_xfer_partial): Always delegate.
1674 * corelow.c (core_xfer_partial): Always delegate.
1675 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1676
83814951
TT
16772014-07-18 Tom Tromey <tromey@redhat.com>
1678
1679 * exec.c (exec_make_note_section): Move earlier.
1680
b8b8facf
DE
16812014-07-17 Doug Evans <dje@google.com>
1682
74b49205 1683 PR gdb/17170
b8b8facf
DE
1684 * maint.c (count_symtabs_and_blocks): Handle NULL
1685 current_program_space.
1686 (report_command_stats): Check global enabled flag in addition to
1687 recorded enabled flag.
1688 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1689
69ff6be5
PA
16902014-07-16 Pedro Alves <palves@redhat.com>
1691
1692 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1693
252db1b5
TT
16942014-07-16 Tom Tromey <tromey@redhat.com>
1695
1696 * target.h (struct target_ops) <to_delete_record>: Reformat
1697 comment.
1698
a432721e
TT
16992014-07-16 Tom Tromey <tromey@redhat.com>
1700
1701 * target-delegates.c: Rebuild.
1702
487d9753
PL
17032014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1704
1705 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1706 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1707 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1708 (avr_pointer_to_address): Likewise.
1709 (avr_address_class_type_flags): New function.
1710 (avr_address_class_type_flags_to_name): Likewise.
1711 (avr_address_class_name_to_type_flags): Likewise.
1712 (avr_gdbarch_init): Set address_class_type_flags,
1713 address_class_type_flags_to_name and
1714 address_class_name_to_type_flags.
1715
57745c90
PA
17162014-07-15 Pedro Alves <palves@redhat.com>
1717
1718 * linux-nat.c (kill_callback): Save errno and work with saved
1719 copy.
1720
2d40be18
SM
17212014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1722
1723 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1724
572f6555
EBM
17252014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1726
1727 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1728 breakpoint support correctly.
1729
cc1c52ad
PA
17302014-07-14 Pedro Alves <palves@redhat.com>
1731
1732 * utils.c (prompt_for_continue): Call target_terminal_ours.
1733
1e973570
PA
17342014-07-14 Pedro Alves <palves@redhat.com>
1735
1736 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1737 catch_errors. Don't re-enable stdin or notify observers where,
1738 and rethrow error.
1739 (fetch_inferior_event_wrapper): Delete.
1740
93d6eb10
PA
17412014-07-14 Pedro Alves <palves@redhat.com>
1742
1743 PR gdb/17072
1744 * top.c: Include "inf-loop.h".
1745 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1746 field.
1747 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1748 was async before.
1749 (gdb_readline_wrapper): Store whether the target is async, and
1750 make it sync.
1751
0017922d
PA
17522014-07-14 Pedro Alves <palves@redhat.com>
1753
1754 PR gdb/17072
1755 * top.c (gdb_readline_wrapper_line): Tweak comment.
1756 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1757 the input handler callback.
1758
94696ad3
PA
17592014-07-14 Pedro Alves <palves@redhat.com>
1760
1761 PR gdb/17072
1762 * main.c: Include event-top.h.
1763 (handle_command_errors): New function.
1764 (catch_command_errors, catch_command_errors_const): Use it.
1765
9d1e69a2
PA
17662014-07-14 Pedro Alves <palves@redhat.com>
1767
1768 * exceptions.c (catch_command_errors, catch_command_errors_const):
1769 Moved to main.c.
1770 * exceptions.h (catch_command_errors_ftype)
1771 (catch_command_errors_const_ftype): Moved to main.c.
1772 (catch_command_errors, catch_command_errors_const): Delete
1773 declarations.
1774 * main.c (catch_command_errors_ftype)
1775 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1776 (catch_command_errors, catch_command_errors_const)): Moved here
1777 from exceptions.c and make static.
1778
feefc97b
PA
17792014-07-14 Pedro Alves <palves@redhat.com>
1780
1781 * exceptions.c (print_any_exception): Delete.
1782 (catch_exceptions_with_msg): Use exception_print instead of
1783 print_any_exception.
1784 (catch_errors): Use exception_fprintf instead of
1785 print_any_exception.
1786 (catch_command_errors, catch_command_errors_const): Use
1787 exception_print instead of print_any_exception.
1788
c933f875
PA
17892014-07-14 Pedro Alves <palves@redhat.com>
1790
1791 * infcall.c (run_inferior_call): Set 'sync_execution' while
1792 running the inferior call.
1793
feb6f816
PA
17942014-07-14 Pedro Alves <palves@redhat.com>
1795
1796 * value.c (value_contents_equal): Delete function.
1797 * value.h (value_contents_equal): Delete declaration.
1798
d98b7a16
TT
17992014-07-14 Tom Tromey <tromey@redhat.com>
1800
1801 PR exp/17106:
1802 * gdbtypes.c (is_dynamic_type_internal): New function, from
1803 is_dynamic_type.
1804 (is_dynamic_type): Rewrite.
1805 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1806 (resolve_dynamic_struct): Likewise.
1807 (resolve_dynamic_type_internal): New function, from
1808 resolve_dynamic_type.
1809 (resolve_dynamic_type): Rewrite.
1810
548740d6
TT
18112014-07-14 Tom Tromey <tromey@redhat.com>
1812
1813 * target.c (target_require_runnable): Also check record_stratum.
1814 Update comment.
1815
808f7ab1
YQ
18162014-07-11 Yao Qi <yao@codesourcery.com>
1817
1818 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1819 thumb_instruction_restores_sp return true.
1820
540314bd
YQ
18212014-07-11 Yao Qi <yao@codesourcery.com>
1822
1823 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1824 (thumb_in_function_epilogue_p): Call
1825 thumb_instruction_restores_sp.
1826
1db01f22
YQ
18272014-07-11 Yao Qi <yao@codesourcery.com>
1828
1829 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1830 'add sp, #imm'.
1831 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1832
3116063b
GB
18332014-07-11 Gary Benson <gbenson@redhat.com>
1834
1835 * amd64-linux-nat.c (gdbcore.h): Remove include.
1836 (regset.h): Likewise.
1837 (nat/linux-btrace.h): Likewise.
1838 (btrace.h): Likewise.
1839 (gdb_assert.h): Likewise.
1840 (string.h): Likewise.
1841 (sys/uio.h): Likewise.
1842 (sys/debugreg.h): Likewise.
1843 (sys/syscall.h): Likewise.
1844 (sys/procfs.h): Likewise.
1845 (sys/user.h): Likewise.
1846 (asm/ptrace.h): Likewise.
1847 (i386-nat.h): Likewise.
1848 * i386-linux-nat.c (i386-nat.h): Likewise.
1849 (regset.h): Likewise.
1850 (target.h): Likewise.
1851 (linux-nat.h): Likewise.
1852 (nat/linux-btrace.h): Likewise.
1853 (btrace.h): Likewise.
1854 (gdb_assert.h): Likewise.
1855 (string.h): Likewise.
1856 (sys/uio.h): Likewise.
1857 (sys/user.h): Likewise.
1858 (sys/procfs.h): Likewise.
1859 (sys/reg.h): Likewise.
1860 (sys/debugreg.h): Likewise.
1861 (ORIG_EAX): Remove definition.
1862
040baaf6
GB
18632014-07-11 Gary Benson <gbenson@redhat.com>
1864
1865 * i386-linux-nat.h: New file.
1866 * x86-linux-nat.h: Likewise.
1867 * x86-linux-nat.c: Likewise.
1868 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1869 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1870 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1871 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1872 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1873 (PTRACE_SETREGSET): Likewise.
1874 (arch_lwp_info): Now in x86-linux-nat.c.
1875 (have_ptrace_getregset): Now in x86-linux-nat.h.
1876 (x86_linux_dr_get): Now in x86-linux-nat.c.
1877 (x86_linux_dr_set): Likewise.
1878 (x86_linux_dr_get_addr): Likewise.
1879 (x86_linux_dr_get_control): Likewise.
1880 (x86_linux_dr_get_status): Likewise.
1881 (update_debug_registers_callback): Likewise.
1882 (x86_linux_dr_set_control): Likewise.
1883 (x86_linux_dr_set_addr): Likewise.
1884 (x86_linux_prepare_to_resume): Likewise.
1885 (x86_linux_new_thread): Likewise.
1886 (x86_linux_new_fork): Likewise.
1887 (x86_linux_get_thread_area): Likewise.
1888 (super_post_startup_inferior): Likewise.
1889 (x86_linux_child_post_startup_inferior): Likewise.
1890 (AMD64_LINUX_USER64_CS): Likewise.
1891 (AMD64_LINUX_X32_DS): Likewise.
1892 (x86_linux_read_description): Likewise.
1893 (x86_linux_enable_btrace): Likewise.
1894 (x86_linux_disable_btrace): Likewise.
1895 (x86_linux_teardown_btrace): Likewise.
1896 (x86_linux_read_btrace): Likewise.
1897 (x86_linux_create_target): Likewise.
1898 (x86_linux_add_target): Likewise.
1899 * i386-linux-nat.c (x86-linux-nat.h): New include.
1900 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1901 (PTRACE_SETREGSET): Likewise.
1902 (arch_lwp_info): Now in x86-linux-nat.c.
1903 (have_ptrace_getregset): Now in x86-linux-nat.h.
1904 (x86_linux_dr_get): Now in x86-linux-nat.c.
1905 (x86_linux_dr_set): Likewise.
1906 (x86_linux_dr_get_addr): Likewise.
1907 (x86_linux_dr_get_control): Likewise.
1908 (x86_linux_dr_get_status): Likewise.
1909 (update_debug_registers_callback): Likewise.
1910 (x86_linux_dr_set_control): Likewise.
1911 (x86_linux_dr_set_addr): Likewise.
1912 (x86_linux_prepare_to_resume): Likewise.
1913 (x86_linux_new_thread): Likewise.
1914 (x86_linux_new_fork): Likewise.
1915 (x86_linux_get_thread_area): Likewise.
1916 (super_post_startup_inferior): Likewise.
1917 (x86_linux_child_post_startup_inferior): Likewise.
1918 (AMD64_LINUX_USER64_CS): Likewise.
1919 (AMD64_LINUX_X32_DS): Likewise.
1920 (x86_linux_read_description): Likewise.
1921 (x86_linux_enable_btrace): Likewise.
1922 (x86_linux_disable_btrace): Likewise.
1923 (x86_linux_teardown_btrace): Likewise.
1924 (x86_linux_read_btrace): Likewise.
1925 (x86_linux_create_target): Likewise.
1926 (x86_linux_add_target): Likewise.
1927
1aa7e42c
GB
19282014-07-11 Gary Benson <gbenson@redhat.com>
1929
1930 * amd64-linux-nat.c: Comment and whitespace changes.
1931 * i386-linux-nat.c: Comment and whitespace changes.
1932
c1e246a0
GB
19332014-07-11 Gary Benson <gbenson@redhat.com>
1934
1935 * amd64-linux-nat.c (x86_linux_create_target): New function.
1936 (x86_linux_add_target): Likewise.
1937 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1938 * i386-linux-nat.c (x86_linux_create_target): New function.
1939 (x86_linux_add_target): Likewise.
1940 (_initialize_i386_linux_nat): Delegate to the above new functions.
1941
8c420b8d
GB
19422014-07-11 Gary Benson <gbenson@redhat.com>
1943
1944 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1945 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1946 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1947 (ps_get_thread_area): Delegate to the above.
1948
cb1da100
GB
19492014-07-11 Gary Benson <gbenson@redhat.com>
1950
1951 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1952 x86_linux_read_description. All uses updated. amd64-specific
1953 code conditionalized. Conditionalized i386-specific code added.
1954 Redundant cast removed.
1955 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1956 x86_linux_read_description. All uses updated. i386-specific
1957 code conditionalized. Conditionalized amd64-specific code added.
1958 One sizeof replaced with the actual type it is describing.
1959
2acf3cd0
GB
19602014-07-11 Gary Benson <gbenson@redhat.com>
1961
1962 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1963 x86_linux_dr_get. All uses updated.
1964 (amd64_linux_dr_set): Renamed to
1965 x86_linux_dr_set. All uses updated.
1966 (amd64_linux_dr_get_addr): Renamed to
1967 x86_linux_dr_get_addr. All uses updated.
1968 (amd64_linux_dr_get_control): Renamed to
1969 x86_linux_dr_get_control. All uses updated.
1970 (amd64_linux_dr_get_status): Renamed to
1971 x86_linux_dr_get_status. All uses updated.
1972 (amd64_linux_dr_set_control): Renamed to
1973 x86_linux_dr_set_control. All uses updated.
1974 (amd64_linux_dr_set_addr): Renamed to
1975 x86_linux_dr_set_addr. All uses updated.
1976 (amd64_linux_prepare_to_resume): Renamed to
1977 x86_linux_prepare_to_resume. All uses updated.
1978 (amd64_linux_new_thread): Renamed to
1979 x86_linux_new_thread. All uses updated.
1980 (amd64_linux_new_fork): Renamed to
1981 x86_linux_new_fork. All uses updated.
1982 (amd64_linux_child_post_startup_inferior): Renamed to
1983 x86_linux_child_post_startup_inferior. All uses updated.
1984 (amd64_linux_enable_btrace): Renamed to
1985 x86_linux_enable_btrace. All uses updated.
1986 (amd64_linux_disable_btrace): Renamed to
1987 x86_linux_disable_btrace. All uses updated.
1988 (amd64_linux_teardown_btrace): Renamed to
1989 x86_linux_teardown_btrace. All uses updated.
1990 (amd64_linux_read_btrace): Renamed to
1991 x86_linux_read_btrace. All uses updated.
1992 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1993 x86_linux_dr_get. All uses updated.
1994 (i386_linux_dr_set): Renamed to
1995 x86_linux_dr_set. All uses updated.
1996 (i386_linux_dr_get_addr): Renamed to
1997 x86_linux_dr_get_addr. All uses updated.
1998 (i386_linux_dr_get_control): Renamed to
1999 x86_linux_dr_get_control. All uses updated.
2000 (i386_linux_dr_get_status): Renamed to
2001 x86_linux_dr_get_status. All uses updated.
2002 (i386_linux_dr_set_control): Renamed to
2003 x86_linux_dr_set_control. All uses updated.
2004 (i386_linux_dr_set_addr): Renamed to
2005 x86_linux_dr_set_addr. All uses updated.
2006 (i386_linux_prepare_to_resume): Renamed to
2007 x86_linux_prepare_to_resume. All uses updated.
2008 (i386_linux_new_thread): Renamed to
2009 x86_linux_new_thread. All uses updated.
2010 (i386_linux_new_fork): Renamed to
2011 x86_linux_new_fork. All uses updated.
2012 (i386_linux_child_post_startup_inferior): Renamed to
2013 x86_linux_child_post_startup_inferior. All uses updated.
2014 (i386_linux_enable_btrace): Renamed to
2015 x86_linux_enable_btrace. All uses updated.
2016 (i386_linux_disable_btrace): Renamed to
2017 x86_linux_disable_btrace. All uses updated.
2018 (i386_linux_teardown_btrace): Renamed to
2019 x86_linux_teardown_btrace. All uses updated.
2020 (i386_linux_read_btrace): Renamed to
2021 x86_linux_read_btrace. All uses updated.
2022
b9c1d481
AS
20232014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2024
2025 * remote.c (extended_remote_post_attach): New function.
2026 (init_extended_remote_ops): Install it as to_post_attach method.
2027
7180e04a
PA
20282014-07-09 Pedro Alves <palves@redhat.com>
2029
2030 * infcmd.c (attach_command_post_wait): Don't call
2031 target_terminal_inferior here.
2032 (attach_command): Call it here instead.
2033
9a9a7608
AB
20342014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2037 field.
2038 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2039 from varobj.c, with additional checks.
2040 (c_varobj_ops): Fill in is_path_expr_parent field.
2041 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2042 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2043 field.
2044 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2045 ops method.
2046 (varobj_default_is_path_expr_parent): New function.
2047 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2048 (varobj_default_is_path_expr_parent): Declare new function.
2049
1f267ae3
MM
20502014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2051
2052 * infcmd.c (finish_backward): Turn internal error into normal error.
2053
b2ee242b
PA
20542014-07-07 Pedro Alves <palves@redhat.com>
2055
8a869bca 2056 PR gdb/17096
b2ee242b
PA
2057 * remote.c (async_handle_remote_sigint)
2058 (async_handle_remote_sigint_twice): Call
2059 gdb_call_async_signal_handler instead of
2060 mark_async_signal_handler.
2061
38e229b2
TT
20622014-07-07 Tom Tromey <tromey@redhat.com>
2063
2064 * target-delegates.c: Rebuild.
2065 * target.c (target_info_record): Remove.
2066 * record.c (info_record_command): Unconditionally call
2067 to_info_record.
2068 * target.h (struct target_ops) <to_info_record>: Use
2069 TARGET_DEFAULT_IGNORE.
2070 (target_info_record): Remove.
2071
f0f9ff95
TT
20722014-07-07 Tom Tromey <tromey@redhat.com>
2073
2074 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2075 TARGET_DEFAULT_NORETURN.
2076 * target.c (generic_tls_error): New function.
2077 (target_translate_tls_address): Don't search target stack.
2078 * target-delegates.c: Rebuild.
2079 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2080 stack.
2081 * linux-thread-db.c (thread_db_get_thread_local_address):
2082 Unconditionally call beneath target.
2083
4a5be5ee
MK
20842014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2085
2086 * cli/cli-logging.c (pop_output_files): Assign targerr to
2087 gdb_stdtargerr.
2088
92c3b204
AB
20892014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * MAINTAINERS (Write After Approval): Update my email address.
2092
9b11e3a7
GB
20932014-07-02 Gary Benson <gbenson@redhat.com>
2094
2095 * proc-service.c (ps_xfer_memory): Update comment.
2096 (ps_pstop): Remove unused function.
2097 (ps_pcontinue): Likewise.
2098 (ps_lstop): Likewise.
2099 (ps_lcontinue): Likewise.
2100 (ps_lgetxregsize): Likewise.
2101 (ps_lgetxregs): Likewise.
2102 (ps_lsetxregs): Likewise.
2103 (ps_plog): Likewise.
2104 (ps_ptread): Likewise.
2105 (ps_ptwrite): Likewise.
2106
cf363f18
MW
21072014-07-01 Mark Wielaard <mjw@redhat.com>
2108
2109 * dwarf2read.c (add_array_cv_type): New function.
2110 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2111 (read_tag_volatile_type): Likewise.
2112
82ae6c8d
TT
21132014-07-01 Tom Tromey <tromey@redhat.com>
2114
2115 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2116 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2117 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2118 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2119 * command.h (cmd_cfunc_ftype): Move earlier.
2120 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2121 (add_com, add_info): Use cmd_cfunc_ftype.
2122
96142726
TT
21232014-06-30 Tom Tromey <tromey@redhat.com>
2124
2125 * symtab.c (operator_chars): Make parameters and return type
2126 const.
2127 (file_matches): Make "files" const.
2128 (struct search_symbols_data) <files>: Now const.
2129 (search_symbols): Make "regexp" and "files" parameters const.
2130 Update.
2131 (symtab_symbol_info): Remove cast.
2132 (rbreak_command): Update.
2133 * symtab.h (search_symbols): Update.
2134
b67a2c6f
YQ
21352014-06-27 Yao Qi <yao@codesourcery.com>
2136
2137 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2138 Change parameter type to 'struct thread_info *'. Caller
2139 updated.
2140 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2141 Update declaration.
2142 * dummy-frame.c (struct dummy_frame_id): New.
2143 (dummy_frame_id_eq): New function.
2144 (struct dummy_frame) <id>: Change its type to 'struct
2145 dummy_frame_id'.
2146 (dummy_frame_push): Add parameter ptid and save it in
2147 dummy_frame_id.
2148 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2149 inferior_ptid.
2150 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2151 to inferior_ptid.
2152 (lookup_dummy_frame): Change parameter type to 'struct
2153 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2154 instead of frame_id_eq.
2155 (dummy_frame_pop): Add parameter ptid. Callers updated.
2156 Update comments. Compose dummy_frame_id and pass it to
2157 lookup_dummy_frame.
2158 (dummy_frame_discard): Add parameter ptid.
2159 (dummy_frame_sniffer): Compose dummy_frame_id and call
2160 dummy_frame_id_eq instead of frame_id_eq.
2161 (fprint_dummy_frames): Print ptid.
2162 * dummy-frame.h: Remove comments.
2163 (dummy_frame_push): Add ptid in declaration.
2164 (dummy_frame_pop, dummy_frame_discard): Likewise.
2165
5b10184c
TT
21662014-06-26 Tom Tromey <tromey@redhat.com>
2167
2168 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2169 * command.h (error_no_arg): Update.
2170
06900326
TT
21712014-06-26 Tom Tromey <tromey@redhat.com>
2172
2173 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2174 (do_show_command): Make "arg" const.
2175 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2176
c2bcbb1d
TT
21772014-06-26 Tom Tromey <tromey@redhat.com>
2178
2179 * record-full.c (record_full_get_bookmark): Make "args" const.
2180 (record_full_goto_bookmark): Make "raw_bookmark" const.
2181 * record.c (record_goto): New function.
2182 (cmd_record_goto): Use it. Now static.
2183 * record.h (record_goto): Declare.
2184 (cmd_record_goto): Remove declaration.
2185 * target-delegates.c: Rebuild.
2186 * target.h (struct target_ops) <to_get_bookmark,
2187 to_goto_bookmark>: Make parameter const.
2188
9cbe5fff
TT
21892014-06-26 Tom Tromey <tromey@redhat.com>
2190
2191 * defs.h (generic_load): Update.
2192 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2193 * monitor.c (monitor_load): Make "args" const.
2194 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2195 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2196 const.
2197 (mips_load): Make "file" const.
2198 * remote-sim.c (gdbsim_load): Make "args" const.
2199 * remote.c (remote_load): Make "name" const.
2200 * symfile.c (generic_load): Make "args" const.
2201 * target-delegates.c: Rebuild.
2202 * target.c (target_load): Make "arg" const.
2203 (debug_to_load): Make "args" const.
2204 * target.h (struct target_ops) <to_load>: Make parameter const.
2205 (target_load): Update.
2206
34a68019
TT
22072014-06-26 Tom Tromey <tromey@redhat.com>
2208
2209 PR symtab/16902:
2210 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2211 (dwarf2_physname, read_partial_die)
2212 (guess_partial_die_structure_name, fixup_partial_die)
2213 (guess_full_die_structure_name, anonymous_struct_prefix)
2214 (dwarf2_name): Use per-BFD obstack.
2215
efc889c1
YQ
22162014-06-26 Yao Qi <yao@codesourcery.com>
2217
2218 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2219 dummyframe and this_id into inner block below.
2220
4395285e
YQ
22212014-06-26 Yao Qi <yao@codesourcery.com>
2222
2223 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2224 with "signal_pass[0]" in the initialization of signal_pass.
2225
aef92902
MM
22262014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2227
2228 * record-btrace.c (record_btrace_generating_corefile)
2229 (record_btrace_prepare_to_generate_core)
2230 (record_btrace_done_generating_core): New.
2231 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2232 (record_btrace_store_registers, record_btrace_prepare_to_store):
2233 Forward request when generating a core file.
2234 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2235 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2236 to_done_generating_core.
2237
5fff78c4
MM
22382014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2239
2240 * target.h (target_ops) <to_prepare_to_generate_core>
2241 <to_done_generating_core>: New.
2242 (target_prepare_to_generate_core, target_done_generating_core): New.
2243 * target.c (target_prepare_to_generate_core)
2244 (target_done_generating_core): New.
2245 * target-delegates.c: Regenerate.
2246 * gcore.c: (write_gcore_file): Rename to ...
2247 (write_gcore_file_1): ...this.
2248 (write_gcore_file): Call target_prepare_to_generate_core
2249 and target_done_generating_core.
2250
1d1f1ccb
MM
22512014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2252
2253 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2254 * gcore.c (write_gcore_file): Free memory returned from
2255 make_corefile_notes.
2256 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2257 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2258
3343ef86
YQ
22592014-06-24 Yao Qi <yao@codesourcery.com>
2260
2261 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2262 (arm_linux_init_abi): Set skip_trampoline_code with
2263 gdbarch_skip_trampoline_code instead of
2264 find_solib_trampoline_target.
2265
18d18ac8
YQ
22662014-06-24 Yao Qi <yao@codesourcery.com>
2267
2268 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2269 arm_skip_bx_reg returns non-zero.
2270
80d8d390
YQ
22712014-06-24 Yao Qi <yao@codesourcery.com>
2272
2273 * arm-tdep.c (arm_skip_bx_reg): New function.
2274 (arm_skip_stub): Call arm_skip_bx_reg.
2275
6a18a01c
DB
22762014-06-23 Don Breazeal <donb@codesourcery.com>
2277
2278 * MAINTAINERS: Add myself as write-after-approval maintainer.
2279
8e9db26e
PA
22802014-06-23 Pedro Alves <palves@redhat.com>
2281
2282 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2283 DR_CONTROL before setting DR0..DR3.
2284 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2285 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2286 bits of DR_CONTROL related to the debug register slot being
2287 disabled. If all slots are vacant, clear local slowdown as well,
2288 and assert DR_CONTROL is 0.
2289
70afc5b7
SC
22902014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2291
2292 * python/lib/gdb/command/xmethods.py
2293 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2294 current progspace only if the string "progspace" matches LOCUS_RE.
2295
840ed64d
JK
22962014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2297
2298 Fix --with-system-readline with readline-6.3 patch 5.
2299 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2300 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2301 types.
2302
26f2dc30
TT
23032014-06-20 Tom Tromey <tromey@redhat.com>
2304
2305 * dwarf2read.c (dw2_get_real_path): Use correct type in
2306 OBSTACK_CALLOC.
2307 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2308
125f8a3d
GB
23092014-06-20 Gary Benson <gbenson@redhat.com>
2310
2311 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2312 * common/glibc_thread_db.h: Likewise.
2313 * common/i386-cpuid.h: Likewise.
2314 * common/i386-gcc-cpuid.h: Likewise.
2315 * common/linux-btrace.h: Likewise.
2316 * common/linux-osdata.h: Likewise.
2317 * common/linux-procfs.h: Likewise.
2318 * common/linux-ptrace.h: Likewise.
2319 * common/mips-linux-watch.h: Likewise.
2320 * common/linux-btrace.c: Moved to nat.
2321 * common/linux-osdata.c: Likewise.
2322 * common/linux-procfs.c: Likewise.
2323 * common/linux-ptrace.c: Likewise.
2324 * common/mips-linux-watch.c: Likewise.
2325 * nat/gdb_thread_db.h: Moved from common.
2326 * nat/glibc_thread_db.h: Likewise.
2327 * nat/i386-cpuid.h: Likewise.
2328 * nat/i386-gcc-cpuid.h: Likewise.
2329 * nat/linux-btrace.c: Likewise.
2330 * nat/linux-btrace.h: Likewise.
2331 * nat/linux-osdata.c: Likewise.
2332 * nat/linux-osdata.h: Likewise.
2333 * nat/linux-procfs.c: Likewise.
2334 * nat/linux-procfs.h: Likewise.
2335 * nat/linux-ptrace.c: Likewise.
2336 * nat/linux-ptrace.h: Likewise.
2337 * nat/mips-linux-watch.c: Likewise.
2338 * nat/mips-linux-watch.h: Likewise.
2339 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2340 (object file files): Reordered.
2341 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2342 of glibc_thread_db.h.
2343
42995dbd
GB
23442014-06-20 Gary Benson <gbenson@redhat.com>
2345
2346 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2347 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2348 (i386_dr_low): Likewise.
2349 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2350 (i386_dr_low_set_addr): Likewise.
2351 (i386_dr_low_get_addr): Likewise.
2352 (i386_dr_low_can_set_control): Likewise.
2353 (i386_dr_low_set_control): Likewise.
2354 (i386_dr_low_get_control): Likewise.
2355 (i386_dr_low_get_status): Likewise.
2356 (i386_get_debug_register_length): Likewise.
2357 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2358 (i386_dr_low): Likewise.
2359 * nat/i386-dregs.c (i386-low.h): Remove include.
2360 (i386-nat.h): Likewise.
2361 (nat/i386-dregs.h): New include.
2362 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2363 (i386_dr_low_set_addr): Likewise.
2364 (i386_dr_low_get_addr): Likewise.
2365 (i386_dr_low_can_set_control): Likewise.
2366 (i386_dr_low_set_control): Likewise.
2367 (i386_dr_low_get_control): Likewise.
2368 (i386_dr_low_get_status): Likewise.
2369 (i386_get_debug_register_length): Likewise.
2370 (debug_hw_points): Likewise.
2371
3ed9baed
IB
23722014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2373
2374 * Makefile.in (SFILES): Add d-exp.y.
2375 (YYFILES): Add d-exp.c.
2376 (YYOBJ): Add d-exp.o.
2377 (local-maintainer-clean): Delete d-exp.c.
2378 * d-exp.y: New file.
2379 * d-lang.h (d_parse): New declaration.
2380 (d_error): New declaration.
2381 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2382 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2383 PREC_ORDER operators.
2384 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2385
78c164b0
YQ
23862014-06-19 Yao Qi <yao@codesourcery.com>
2387
2388 * gdbthread.h (any_running): Remove the declaration.
2389 * thread.c (any_running): Remove.
2390
f6e29b6e
YQ
23912014-06-19 Yao Qi <yao@codesourcery.com>
2392
2393 * gdbthread.h (struct thread_info) <state>: Change its type to
2394 'enum thread_state'. Update comments.
2395
034f788c
PA
23962014-06-19 Pedro Alves <palves@redhat.com>
2397
2398 * gdbthread.h (ALL_THREADS): Delete.
2399 (ALL_NON_EXITED_THREADS): New macro.
2400 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2401 instead of ALL_THREADS.
2402 * infrun.c (find_thread_needs_step_over)
2403 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2404 instead of ALL_THREADS.
2405 * record-btrace.c (record_btrace_open)
2406 (record_btrace_stop_recording, record_btrace_close)
2407 (record_btrace_is_replaying, record_btrace_resume)
2408 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2409 * remote.c (append_pending_thread_resumptions): Likewise.
2410 * thread.c (thread_apply_all_command): Likewise.
2411
46e33252
GB
24122014-06-19 Gary Benson <gbenson@redhat.com>
2413
2414 * i386-nat.c (i386_stopped_by_watchpoint):
2415 Use i386_dr_stopped_by_watchpoint.
2416 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2417 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2418
3a8ee006
GB
24192014-06-19 Gary Benson <gbenson@redhat.com>
2420
2421 * nat/i386-dregs.c: New file.
2422 * Makefile.in (i386-dregs.o): New rule.
2423 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2424 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2425 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2426 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2427 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2428 * config/i386/go32.mh (NATDEPFILES): Likewise.
2429 * config/i386/linux.mh (NATDEPFILES): Likewise.
2430 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2431 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2432 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2433 * i386-nat.h (debug_hw_points): New declaration.
2434 * i386-nat.c (breakpoint.h): Remove include.
2435 (command.h): Likewise.
2436 (target.h): Likewise.
2437 (gdb_assert.h): Likewise.
2438 (debug_hw_points): Made nonstatic.
2439 (debug_printf): Now in i386-dregs.c.
2440 (TARGET_HAS_DR_LEN_8): Likewise.
2441 (DR_CONTROL_SHIFT): Likewise.
2442 (DR_CONTROL_SIZE): Likewise.
2443 (DR_RW_EXECUTE): Likewise.
2444 (DR_RW_WRITE): Likewise.
2445 (DR_RW_READ): Likewise.
2446 (DR_RW_IORW): Likewise.
2447 (DR_LEN_1): Likewise.
2448 (DR_LEN_2): Likewise.
2449 (DR_LEN_4): Likewise.
2450 (DR_LEN_8): Likewise.
2451 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2452 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2453 (DR_ENABLE_SIZE): Likewise.
2454 (DR_LOCAL_SLOWDOWN): Likewise.
2455 (DR_GLOBAL_SLOWDOWN): Likewise.
2456 (DR_CONTROL_RESERVED): Likewise.
2457 (I386_DR_CONTROL_MASK): Likewise.
2458 (I386_DR_VACANT): Likewise.
2459 (I386_DR_LOCAL_ENABLE): Likewise.
2460 (I386_DR_GLOBAL_ENABLE): Likewise.
2461 (I386_DR_DISABLE): Likewise.
2462 (I386_DR_SET_RW_LEN): Likewise.
2463 (I386_DR_GET_RW_LEN): Likewise.
2464 (I386_DR_WATCH_HIT): Likewise.
2465 (i386_wp_op_t): Likewise.
2466 (i386_show_dr): Likewise.
2467 (i386_length_and_rw_bits): Likewise.
2468 (i386_insert_aligned_watchpoint): Likewise.
2469 (i386_remove_aligned_watchpoint): Likewise.
2470 (i386_handle_nonaligned_watchpoint): Likewise.
2471 (i386_update_inferior_debug_regs): Likewise.
2472 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2473 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2474 (i386_region_ok_for_watchpoint):
2475 Use i386_dr_region_ok_for_watchpoint.
2476 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2477
322a8e06
GB
24782014-06-19 Gary Benson <gbenson@redhat.com>
2479
2480 * i386-nat.c (i386_insert_hw_breakpoint): Use
2481 i386_insert_watchpoint.
2482 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2483
8f26655c
GB
24842014-06-19 Gary Benson <gbenson@redhat.com>
2485
2486 * i386-nat.c (i386_dr_show): Renamed to
2487 i386_show_dr and made static. All uses updated.
2488 (i386_dr_length_and_rw_bits): Renamed to
2489 i386_length_and_rw_bits and made static.
2490 All uses updated.
2491 (i386_dr_insert_aligned_watchpoint): Renamed to
2492 i386_insert_aligned_watchpoint and made static.
2493 All uses updated.
2494 (i386_dr_remove_aligned_watchpoint): Renamed to
2495 i386_remove_aligned_watchpoint and made static.
2496 All uses updated.
2497 (i386_dr_update_inferior_debug_regs): Renamed to
2498 i386_update_inferior_debug_regs and made static.
2499 All uses updated.
2500 * nat/i386-dregs.h (i386_dr_show): Removed.
2501 (i386_dr_length_and_rw_bits): Likewise.
2502 (i386_dr_insert_aligned_watchpoint): Likewise.
2503 (i386_dr_remove_aligned_watchpoint): Likewise.
2504 (i386_dr_update_inferior_debug_regs): Likewise.
2505
992c7d70
GB
25062014-06-19 Gary Benson <gbenson@redhat.com>
2507
2508 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2509 * configure: Regenerate.
2510 * config.in: Likewise.
2511 * main.c (signal.h): New include.
2512 (setup_alternate_signal_stack): New function.
2513 (captured_main): Call the above.
2514 * cp-support.c (signal.h): New include.
2515 (catch_demangler_crashes): New flag.
2516 (SIGJMP_BUF): New define.
2517 (SIGSETJMP): Likewise.
2518 (SIGLONGJMP): Likewise.
2519 (gdb_demangle_jmp_buf): New static global.
2520 (gdb_demangle_attempt_core_dump): Likewise.
2521 (gdb_demangle_signal_handler): New function.
2522 (gdb_demangle): If catch_demangler_crashes is set, install the
2523 above signal handler before calling bfd_demangle, and restore
2524 the original signal handler afterwards. Display the offending
2525 symbol and call demangler_warning the first time a segmentation
2526 fault is caught.
2527 (_initialize_cp_support): New maint set/show command.
2528
eae7090b
GB
25292014-06-19 Gary Benson <gbenson@redhat.com>
2530
2531 * utils.h (resource_limit_kind): New enum.
2532 (can_dump_core): New declaration.
2533 (warn_cant_dump_core): Likewise.
2534 (dump_core): Likewise.
2535 * utils.c (dump_core): Made nonstatic. Added new
2536 parameter "limit_kind".
2537 (can_dump_core): Made nonstatic. Moved printing code to...
2538 (warn_cant_dump_core): New function.
2539 (can_dump_core_warn): Likewise.
2540 (internal_vproblem): Replace calls to can_dump_core with
2541 calls to can_dump_core_warn. Supply new argument to each.
2542
57fcfb1b
GB
25432014-06-19 Gary Benson <gbenson@redhat.com>
2544
2545 * utils.h (demangler_vwarning): New declaration.
2546 (demangler_warning): Likewise.
2547 * utils.c (struct internal_problem)
2548 <user_settable_should_quit>: New field.
2549 <user_settable_should_dump_core>: Likewise
2550 (internal_error_problem): Add values for above new fields.
2551 (internal_warning_problem): Likewise.
2552 (demangler_warning_problem): New static global.
2553 (demangler_vwarning): New function.
2554 (demangler_warning): Likewise.
2555 (add_internal_problem_command): Selectively add commands.
2556 (_initialize_utils): New internal problem command.
2557 * maint.c (maintenance_demangler_warning): New function.
2558 (_initialize_maint_cmds): New command.
2559
17a40b44
TT
25602014-06-18 Tom Tromey <tromey@redhat.com>
2561
2562 * f-valprint.c (info_common_command_for_block): Update.
2563 * symtab.h (struct general_symbol_info) <common_block>: Now
2564 const.
2565
346d1dfe
TT
25662014-06-18 Tom Tromey <tromey@redhat.com>
2567
2568 * symtab.h (struct symtab) <blockvector>: Now const.
2569 * ada-lang.c (ada_add_global_exceptions): Update.
2570 * buildsym.c (augment_type_symtab): Update.
2571 * dwarf2read.c (dw2_lookup_symbol): Update.
2572 * jit.c (finalize_symtab): Update.
2573 * jv-lang.c (add_class_symtab_symbol): Update.
2574 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2575 Update.
2576 * objfiles.c (objfile_relocate1): Update.
2577 * psymtab.c (lookup_symbol_aux_psymtabs)
2578 (maintenance_check_psymtabs): Update.
2579 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2580 Update.
2581 * spu-tdep.c (spu_catch_start): Update.
2582 * symmisc.c (dump_symtab_1): Update.
2583 * symtab.c (lookup_global_symbol_from_objfile)
2584 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2585 (basic_lookup_transparent_type_quick)
2586 (basic_lookup_transparent_type, find_pc_sect_symtab)
2587 (find_pc_sect_line, search_symbols): Update.
2588 * block.c (find_block_in_blockvector): Make "bl" const.
2589 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2590 const.
2591 (blockvector_contains_pc): Make "bv" const.
2592 (block_for_pc_sect): Update.
2593 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2594 (blockvector_contains_pc): Update.
2595 * breakpoint.c (resolve_sal_pc): Update.
2596 * inline-frame.c (block_starting_point_at): Update.
2597
1834676b
TT
25982014-06-18 Tom Tromey <tromey@redhat.com>
2599
2600 * completer.c (complete_line): Make "line_buffer" const.
2601 * completer.h (complete_line): Update.
2602
ac1a991b
TT
26032014-06-18 Tom Tromey <tromey@redhat.com>
2604
2605 * symtab.c (add_macro_name): Remove unneeded cast.
2606
5bc98e52
TT
26072014-06-18 Tom Tromey <tromey@redhat.com>
2608
2609 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2610 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2611
8236def8
TT
26122014-06-18 Tom Tromey <tromey@redhat.com>
2613
2614 * probe.c (info_probes_for_ops): Make "arg" const.
2615 * probe.h (info_probes_for_ops): Update.
2616
3977b71f
TT
26172014-06-18 Tom Tromey <tromey@redhat.com>
2618
2619 * varobj.c (varobj_create): Update.
2620 * valops.c (value_of_this): Update.
2621 * tracepoint.c (add_local_symbols, scope_info): Update.
2622 * symtab.h (struct general_symbol_info) <block>: Now const.
2623 * symtab.c (skip_prologue_sal)
2624 (default_make_symbol_completion_list_break_on)
2625 (skip_prologue_using_sal): Update.
2626 * stack.h (iterate_over_block_locals)
2627 (iterate_over_block_local_vars): Update.
2628 * stack.c (print_frame_args): Update.
2629 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2630 parameter const.
2631 (get_selected_block): Make return type const.
2632 * python/py-frame.c (frapy_block): Update.
2633 * python/py-block.c (gdbpy_block_for_pc): Update.
2634 * p-exp.y (%union) <bval>: Now const.
2635 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2636 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2637 * m2-exp.y (%union) <bval>: Now const.
2638 * linespec.c (get_current_search_block): Make return type const.
2639 (create_sals_line_offset, find_label_symbols): Update.
2640 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2641 Update.
2642 (block_starting_point_at): Make "block" const.
2643 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2644 (check_exception_resume): Update.
2645 * guile/scm-frame.c (gdbscm_frame_block): Update.
2646 * guile/scm-block.c (gdbscm_lookup_block): Update.
2647 * frame.h (get_frame_block): Update.
2648 (get_selected_block): Make return type const.
2649 * frame.c (frame_id_inner): Update.
2650 * f-valprint.c (info_common_command_for_block)
2651 (info_common_command): Update.
2652 * dwarf2loc.c (dwarf2_find_location_expression)
2653 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2654 (locexpr_describe_location_piece): Update.
2655 * c-exp.y (%union) <bval>: Now const.
2656 * breakpoint.c (resolve_sal_pc): Update.
2657 * blockframe.c (get_frame_block):Make return type const.
2658 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2659 (block_innermost_frame): Update.
2660 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2661 (block_for_pc, block_for_pc_sect): Update.
2662 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2663 'pblock' const.
2664 (block_for_pc_sect, block_for_pc): Make return type const.
2665 * ax-gdb.c (gen_expr): Update.
2666 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2667 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2668 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2669 (ada_read_var_value): Update.
2670 * ada-exp.y (struct name_info) <block>: Now const.
2671 (%union): Likewise.
2672 (block_lookup): Constify.
2673
b9228891
GB
26742014-06-18 Gary Benson <gbenson@redhat.com>
2675
2676 * nat/i386-dregs.h: New file.
2677 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2678 * i386-nat.h (i386-dregs.h): New include.
2679 (DR_FIRSTADDR): Now in i386-dregs.h.
2680 (DR_LASTADDR): Likewise.
2681 (DR_NADDR): Likewise.
2682 (DR_STATUS): Likewise.
2683 (DR_CONTROL): Likewise.
2684 (i386_debug_reg_state): Likewise.
2685 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2686
a1aa2221
LM
26872014-06-18 Don Breazeal <donb@codesourcery.com>
2688
2689 * breakpoint.c (set_longjmp_breakpoint): Call
2690 momentary_breakpoint_from_master with additional argument.
2691 (set_longjmp_breakpoint_for_call_dummy): Call
2692 momentary_breakpoint_from_master with additional argument.
2693 (set_std_terminate_breakpoint): Call
2694 momentary_breakpoint_from_master with additional argument.
2695 (momentary_breakpoint_from_master): Add argument to function
2696 definition and use it to initialize structure member flag.
74228e77 2697 (clone_momentary_breakpoint): Call
a1aa2221
LM
2698 momentary_breakpoint_from_master with additional argument.
2699 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2700 member flags set in momentary_breakpoint_from_master.
2701
4be83cc2
GB
27022014-06-18 Gary Benson <gbenson@redhat.com>
2703
2704 * i386-nat.c (i386_show_dr): Renamed to
2705 i386_dr_show and made nonstatic. All uses updated.
2706 (i386_length_and_rw_bits): Renamed to
2707 i386_dr_length_and_rw_bits and made nonstatic.
2708 All uses updated.
2709 (i386_insert_aligned_watchpoint): Renamed to
2710 i386_dr_insert_aligned_watchpoint and made nonstatic.
2711 All uses updated.
2712 (i386_remove_aligned_watchpoint): Renamed to
2713 i386_dr_remove_aligned_watchpoint and made nonstatic.
2714 All uses updated.
2715 (i386_update_inferior_debug_regs): Renamed to
2716 i386_dr_update_inferior_debug_regs and made nonstatic.
2717 All uses updated.
2718
131aa0d4
GB
27192014-06-18 Gary Benson <gbenson@redhat.com>
2720
2721 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2722 (i386_dr_low_can_set_control): Likewise.
2723 (i386_dr_low_set_addr): Likewise.
2724 (i386_dr_low_set_control): Likewise.
2725 (i386_dr_low_get_addr): Likewise.
2726 (i386_dr_low_get_status): Likewise.
2727 (i386_dr_low_get_control): Likewise.
2728 (i386_insert_aligned_watchpoint): Use new macros.
2729 (i386_update_inferior_debug_regs): Likewise.
2730 (i386_stopped_data_address): Likewise.
2731
d9305f7f
GB
27322014-06-18 Gary Benson <gbenson@redhat.com>
2733
2734 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2735 New parameter. All uses updated.
2736
ea008da4
GB
27372014-06-18 Gary Benson <gbenson@redhat.com>
2738
2739 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2740 All uses updated.
2741
1b6d4134
GB
27422014-06-18 Gary Benson <gbenson@redhat.com>
2743
2744 * i386-nat.c (debug_printf): New macro.
2745 (i386_get_debug_register_length): Likewise.
2746 (TARGET_HAS_DR_LEN_8): Use above macro.
2747 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2748 and printf_unfiltered. Use phex to format values.
2749
9b4550ef
GB
27502014-06-18 Gary Benson <gbenson@redhat.com>
2751
2752 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2753 Make const.
2754
6e62758f
GB
27552014-06-18 Gary Benson <gbenson@redhat.com>
2756
2757 * i386-nat.c: Comment changes.
2758
51c79e94
GB
27592014-06-18 Gary Benson <gbenson@redhat.com>
2760
2761 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2762
3e11889a
GB
27632014-06-18 Gary Benson <gbenson@redhat.com>
2764
2765 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2766 (i386_insert_aligned_watchpoint): Likewise.
2767 (i386_remove_aligned_watchpoint): Likewise.
2768 (i386_handle_nonaligned_watchpoint): Likewise.
2769
fc6e2f03
GB
27702014-06-18 Gary Benson <gbenson@redhat.com>
2771
2772 * i386-nat.c: Whitespace changes.
2773
2afe7d50
SB
27742014-06-17 Samuel Bronson <naesten@gmail.com>
2775
2776 * MAINTAINERS: Update Roland McGrath's email address.
2777 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2778 Red Hat a while ago, and giving me a current address.
2afe7d50 2779
3bca49ee
TT
27802014-06-17 Tom Tromey <tromey@redhat.com>
2781
2782 * utils.h (savestring): Remove declaration.
2783
6e366df1
TT
27842014-06-17 Tom Tromey <tromey@redhat.com>
2785
2786 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2787
6be47f0c
KS
27882014-06-16 Keith Seitz <keiths@redhat.com>
2789
2790 PR mi/15863
2791 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2792 to update the varobj if inferior_ptid is null_ptid.
2793
7bc112c1
TT
27942014-06-16 Tom Tromey <tromey@redhat.com>
2795
2796 * target.h (struct target_ops) <to_info_proc>: Make parameter
2797 const.
2798 (target_info_proc): Update.
2799 * target.c (target_info_proc): Make "args" const.
2800 * procfs.c (procfs_info_proc): Update.
2801 * linux-tdep.c (linux_info_proc): Update.
2802 (linux_core_info_proc_mappings): Make "args" const.
2803 (linux_core_info_proc): Update.
2804 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2805 * gdbarch.c: Rebuild.
2806 * gdbarch.h: Rebuild.
2807 * corelow.c (core_info_proc): Update.
2808
fee354ee
TT
28092014-06-16 Tom Tromey <tromey@redhat.com>
2810
2811 * target.h (struct target_ops) <to_disconnect>: Make parameter
2812 const.
2813 (target_disconnect): Update.
2814 * target.c (target_disconnect): Make "args" const.
2815 * target-delegates.c: Rebuild.
2816 * remote.c (remote_disconnect): Update.
2817 * record.h (record_disconnect): Update.
2818 * record.c (record_disconnect): Update.
2819 * inf-child.c (inf_child_disconnect): Update.
2820
a30bf1f1
TT
28212014-06-16 Tom Tromey <tromey@redhat.com>
2822
2823 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2824 * target.c (debug_to_rcmd, default_rcmd): Update.
2825 * target-delegates.c: Rebuild.
2826 * remote.c (remote_rcmd): Update.
2827 * monitor.c (monitor_rcmd): Update.
2828
d03de421
PA
28292014-06-16 Pedro Alves <palves@redhat.com>
2830
2831 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2832 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2833 have OBJF_SHARED set.
2834 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2835 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2836 instead of OBJF_USERLOADED.
2837 * objfiles.h (OBJF_SHARED): Update comment.
2838 (userloaded_objfile_contains_address_p): Rename to ...
2839 (shared_objfile_contains_address_p): ... this, and update
2840 comments.
2841 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2842 new objfile.
2843 (remove_symbol_file_command): Skip objfiles that don't have
2844 OBJF_SHARED set.
2845
99f4262f
TT
28462014-06-16 Tom Tromey <tromey@redhat.com>
2847
2848 * minsyms.h (prim_record_minimal_symbol)
2849 (prim_record_minimal_symbol_and_info): Update comments.
2850
97d66cc6
EZ
28512014-06-14 Eli Zaretskii <eliz@gnu.org>
2852
2853 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2854 or --without-guile, according to how GDB was built.
2855
635c7e8a
TT
28562014-06-13 Tom Tromey <tromey@redhat.com>
2857
2858 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2859 to help_list.
2860 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2861 to help_list.
2862 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2863 help_list.
2864 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2865 help_list.Pass all_commands, not -1, to help_list.
2866 * cli/cli-dump.c (dump_command, append_command)
2867 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2868 (binary_dump_command, binary_append_command): Pass all_commands,
2869 not -1, to help_list.
2870 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2871 -1, to help_list.
2872 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2873 -1, to help_list.
2874 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2875 help_list.
2876 * top.c (set_history): Pass all_commands, not -1, to help_list.
2877 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2878 all_commands, not -1, to help_list.
2879 * symfile.c (overlay_command): Pass all_commands, not -1, to
2880 help_list.
2881 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2882 help_list.
2883 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2884 help_list.
2885 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2886 -1, to help_list.
2887 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2888 not -1, to help_list.
2889 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2890 not -1, to help_list.
2891 * maint.c (maintenance_command, maintenance_info_command)
2892 (maintenance_print_command, maintenance_set_cmd): Pass
2893 all_commands, not -1, to help_list.
2894 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2895 help_list.
2896 * language.c (set_check): Pass all_commands, not -1, to help_list.
2897 * infcmd.c (unset_command): Pass all_commands, not -1, to
2898 help_list.
2899 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2900 help_list.
2901 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2902 help_list.
2903 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2904 help_list.
2905 * breakpoint.c (save_command): Pass all_commands, not -1, to
2906 help_list.
2907 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2908 all_commands, not -1, to help_list.
2909
b94ade42
PL
29102014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2911
2912 * regcache.c (struct register_to_invalidate): New structure.
2913 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2914 functions.
2915 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2916
31f628ae
YQ
29172014-06-12 Yao Qi <yao@codesourcery.com>
2918
2919 * varobj.c (varobj_get_num_children): Call
2920 varobj_is_dynamic_p.
2921 (varobj_list_children): Likewise.
2922 (varobj_update): Likewise. Update comments.
2923
cde5ef40
YQ
29242014-06-12 Yao Qi <yao@codesourcery.com>
2925
2926 * varobj.c (varobj_pretty_printed_p): Rename to ...
2927 (varobj_is_dynamic_p): ... this. New function.
2928 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2929 (varobj_is_dynamic_p): Declare.
2930 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2931 (mi_print_value_p, varobj_update_one): Likewise.
2932
576ea091
YQ
29332014-06-12 Pedro Alves <pedro@codesourcery.com>
2934 Yao Qi <yao@codesourcery.com>
2935
2936 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2937 (varobj_get_iterator): Wrap up code for pretty-printer by
2938 "#if HAVE_PYTHON" and "#endif".
2939 (update_dynamic_varobj_children): Likewise.
2940
827f100c
YQ
29412014-06-12 Pedro Alves <pedro@codesourcery.com>
2942 Yao Qi <yao@codesourcery.com>
2943
2944 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2945 gdb_python_initialized is false. Move some code from varobj.c.
2946 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2947 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2948 (struct varobj_item): Moved to varobj-iter.h".
2949 (varobj_clear_saved_item): New function.
2950 (update_dynamic_varobj_children): Move python-related code to
2951 py-varobj.c.
2952 (free_variable): Call varobj_clear_saved_item and
2953 varobj_iter_delete.
2954
e5250216
YQ
29552014-06-12 Pedro Alves <pedro@codesourcery.com>
2956 Yao Qi <yao@codesourcery.com>
2957
2958 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2959 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2960 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2961 (py-varobj.o): New rule.
2962 * python/py-varobj.c: New file.
2963 * python/python-internal.h (py_varobj_get_iterator): Declare.
2964 * varobj-iter.h: New file.
2965 * varobj.c: Include "varobj-iter.h"
2966 (struct varobj) <child_iter>: Change its type from "PyObject *"
2967 to "struct varobj_iter *".
2968 <saved_item>: Likewise.
2969 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2970 [HAVE_PYTHON] (varobj_get_iterator): New function.
2971 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2972 python-specific code to python/py-varobj.c.
2973 (install_visualizer): Call varobj_iter_delete instead of
2974 Py_XDECREF.
2975 * varobj.h (varobj_ensure_python_env): Declare.
2976
5a2e0d6e
YQ
29772014-06-12 Yao Qi <yao@codesourcery.com>
2978
2979 * varobj.c (struct varobj_item): New structure.
2980 (create_child_with_value): Update declaration.
2981 (varobj_add_child): Replace arguments 'name' and 'value' with
2982 'item'. All callers updated.
2983 (install_dynamic_child): Likewise.
2984 (update_dynamic_varobj_children): Likewise.
2985 (varobj_add_child): Likewise.
2986 (create_child_with_value): Likewise.
2987
919b9a93
JB
29882014-06-11 Joel Brobecker <brobecker@adacore.com>
2989
2990 * NEWS: Create a new section for the next release branch.
2991 Rename the section of the current branch, now that it has
2992 been cut.
2993
71a55bdf
JB
29942014-06-11 Joel Brobecker <brobecker@adacore.com>
2995
2996 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2997 * version.in: Bump version to 7.8.50.DATE-cvs.
2998
364fe1f7
PA
29992014-06-11 Pedro Alves <palves@redhat.com>
3000
3001 PR remote/17028
3002 * ser-mingw.c (net_windows_socket_check_pending): New function.
3003 (net_windows_select_thread): Ignore spurious wakeups. Use
3004 net_windows_socket_check_pending.
3005 (net_windows_wait_handle): Check for pending events with
3006 ioctlsocket, through net_windows_socket_check_pending, instead of
3007 checking the socket's event.
3008
5a6c7709
SC
30092014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3010
3011 * python/python-internal.h (gdb_PyObject_GetAttrString)
3012 (gdb_PyObject_HasAttrString): New inline function definitions.
3013 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3014 char * of the second argument to PyObject_GetAttrString.
74228e77 3015
0e58ee40
JB
30162014-06-10 Joel Brobecker <brobecker@adacore.com>
3017
3018 * serial.c (serial_write): Fix index of character to be printed
3019 in call to serial_logchar when serial debug traces are enabled.
3020
d190df30
JB
30212014-06-10 Joel Brobecker <brobecker@adacore.com>
3022
3023 * gdbtypes (resolve_dynamic_range): Add function description.
3024
b4b01d36
PA
30252014-06-09 Pedro Alves <palves@redhat.com>
3026
3027 * linux-nat.c (linux_child_follow_fork): Initialize status with
3028 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3029 inner block. Only pass the signal to PTRACE_DETACH if in pass
3030 state.
3031
3657956b
GB
30322014-06-09 Gary Benson <gbenson@redhat.com>
3033
3034 * common/signals.c (gdb_signal_from_host): Reorder to separate
3035 the always-available ANSI-standard signals from the signals that
3036 require checking.
3037 (do_gdb_signal_to_host): Likewise.
3038 * proc-events.c (signal_table): Likewise.
3039
c077881a
HZ
30402014-06-08 Hui Zhu <hui@codesourcery.com>
3041
3042 * common/linux-ptrace.c (linux_disable_event_reporting): New
3043 function.
3044 * common/linux-ptrace.h (linux_disable_event_reporting): New
3045 declaration.
3046 * linux-nat.c (linux_child_follow_fork): Do a single step before
3047 detach.
3048
4186eb54
KS
30492014-06-07 Keith Seitz <keiths@redhat.com>
3050
3051 Revert:
3052 PR c++/16253
3053 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3054 from symbol_matches_domain in symtab.c. All local callers
3055 of symbol_matches_domain updated.
3056 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3057 search STRUCT_DOMAIN.
3058 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3059 independently. standard_lookup will do that automatically.
3060 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3061 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3062 (cp_lookup_symbol_in_namespace): Likewise.
3063 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3064 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3065 may return a STRUCT_DOMAIN match.
3066 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3067 * cp-support.c: Include language.h.
3068 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3069 VAR_DOMAIN.
3070 * psymtab.c (match_partial_symbol): Compare the requested
3071 domain with the symbol's domain directly.
3072 (lookup_partial_symbol): Likewise.
3073 * symtab.c (lookup_symbol_in_language): Explain when/why
3074 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3075 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3076 appropriate languages.
3077 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3078 and moved to ada-lang.c
3079 (lookup_block_symbol): Explain that this function only returns
3080 symbol matching the requested DOMAIN.
3081 Compare the requested domain with the symbol's domain directly.
3082 (iterate_over_symbols): Compare the requested domain with the
3083 symbol's domain directly.
3084 * symtab.h (symbol_matches_domain): Remove.
3085
25326a28 30862014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3087
3088 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3089 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3090 (gdbscm_guile_version_is_at_least): Declare.
3091 (gdbscm_scm_string_to_int): Declare.
3092 * guile/guile.c (gdbscm_guile_major_version): New global.
3093 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3094 (guile_datadir): New static global.
3095 (gdbscm_guile_data_directory): New function.
3096 (initialize_scheme_side): Update.
3097 (misc_guile_functions): Add guile-data-directory.
3098 (initialize_gdb_module): Fetch guile version number.
3099 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3100 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3101 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3102 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3103 comments.
3104 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3105 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3106 * guile/scm-value.c (gdbscm_value_to_string): Only call
3107 scm_port_conversion_strategy if Guile version >= 2.0.6.
3108
0a770bb2 31092014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3110
3111 * main.c (print_gdb_help): Add -q and --silent.
3112
73ba372c
GB
31132014-06-06 Gary Benson <gbenson@redhat.com>
3114
3115 * common/signals.c: Remove preprocessor conditionals for
3116 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3117 SIGSEGV and SIGTERM.
3118 * proc-events.c: Likewise.
3119
c33b2f12
MM
31202014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3121
3122 * symfile.c (symfile_free_objfile): Remove restriction to
3123 OBJF_USERLOADED.
3124 * symfile-mem.c (symbol_file_add_from_memory): Call
3125 add_target_sections_of_objfile.
3126
fb934770
LC
31272014-06-05 Ludovic Courtès <ludo@gnu.org>
3128
3129 * guile/scm-value.c (gdbscm_history_append_x): Use
3130 'vlscm_get_value_smob_arg_unsafe' instead of
3131 'vlscm_scm_to_value'.
3132
6ef284bd
SM
31332014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3134
3135 PR mi/15806
3136 * utils.c (printchar): Don't escape at all if quoter is NUL.
3137 Update function documentation to clarify effect of parameter
3138 QUOTER.
3139 * remote.c (escape_buffer): Pass '\\' as the quoter to
3140 fputstrn_unfiltered.
3141 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3142 generate the output.
3143 (mi_solib_unloaded): Same.
3144
270c9937
JB
31452014-06-05 Joel Brobecker <brobecker@adacore.com>
3146
3147 * development.sh: Delete.
3148 * Makefile.in (config.status): Adjust dependency on development.sh.
3149 * configure.ac: Adjust development.sh source call.
3150 * configure: Regenerate.
3151
16f691fb
DE
31522014-06-04 Doug Evans <xdje42@gmail.com>
3153
3154 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3155 is_scheme_bkpt, spec.
3156 (bpscm_make_breakpoint_smob): Initialize new members.
3157 (gdbscm_create_breakpoint_x): Split into two ...
3158 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3159 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3160 (scheme_function breakpoint_functions): Update.
3161 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3162 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3163 register-breakpoint!.
3164
ef7cab6b
JB
31652014-06-04 Joel Brobecker <brobecker@adacorer.com>
3166
3167 PR server/17023
3168 * mem-break.c (z_type_supported): Return zero if
3169 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3170
012370f6
TT
31712014-06-04 Tom Tromey <tromey@redhat.com>
3172
3173 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3174 value_from_contents_and_address_unresolved.
3175 (ada_template_to_fixed_record_type_1): Likewise.
3176 (ada_which_variant_applies): Likewise.
3177 * value.h (value_from_contents_and_address_unresolved): Declare.
3178 * value.c (value_from_contents_and_address_unresolved): New
3179 function.
3180 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3181 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3182 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3183
92e2a17f
TT
31842014-06-04 Tom Tromey <tromey@redhat.com>
3185
3186 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3187
c0939df1
TT
31882014-06-04 Tom Tromey <tromey@redhat.com>
3189
3190 * procfs.c (procfs_attach): Make "args" const.
3191 * windows-nat.c (windows_attach): Make "args" const.
3192 * nto-procfs.c (procfs_attach): Make "args" const.
3193 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3194 * go32-nat.c (go32_attach): Make "args" const.
3195 * gnu-nat.c (gnu_attach): Make "args" const.
3196 * darwin-nat.c (darwin_attach): Make "args" const.
3197 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3198 * linux-nat.c (linux_nat_attach): Make "args" const.
3199 * remote.c (extended_remote_attach_1, extended_remote_attach):
3200 Make "args" const.
3201 * target.h (struct target_ops) <to_attach>: Make "args" const.
3202 (find_default_attach): Likewise.
3203 * utils.c (parse_pid_to_attach): Make "args" const.
3204 * utils.h (parse_pid_to_attach): Update.
3205
8eaff7cd
TT
32062014-06-04 Tom Tromey <tromey@redhat.com>
3207
3208 * target-delegates.c: Rebuild.
3209 * target.c (default_thread_address_space): New function.
3210 (target_thread_address_space): Simplify.
3211 * target.h (struct target_ops) <to_thread_address_space>: Add
3212 TARGET_DEFAULT_FUNC.
3213
1913f160
DE
32142014-06-04 Doug Evans <xdje42@gmail.com>
3215
3216 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3217
70ad5bff
MM
32182014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3219
3220 * record-btrace.c: Include event-loop.h and inf-loop.h.
3221 (record_btrace_resume_exec_dir)
3222 (record_btrace_async_inferior_event_handler)
3223 (record_btrace_handle_async_inferior_event): New.
3224 (record_btrace_open): Create async event handler.
3225 (record_btrace_close): Delete async event handler.
3226 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3227 Mark async event handler.
3228 (record_btrace_execution_direction): New.
3229 (init_record_btrace_ops): Initialize to_execution_direction.
3230
b6210538
DE
32312014-06-03 Doug Evans <xdje42@gmail.com>
3232
3233 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3234 (gdbscm_make_parameter): Ditto.
3235
a5b1fd27
DE
32362014-06-03 Doug Evans <dje@google.com>
3237
3238 * exec.c (exec_close_1): Call clear_section_table instead of
3239 resize_section_table.
3240 (clear_section_table): New function.
3241 (resize_section_table): Make static. Rename arg num_added to
3242 adjustment.
3243 * exec.h (clear_section_table): Declare.
3244 (resize_section_table): Delete.
3245 * progspace.c (release_program_space): Call clear_section_table
3246 instead of resize_section_table.
3247
0c6e92a5
SC
32482014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3249
3250 * NEWS (Python Scripting): Add entry about the new xmethods
3251 feature.
3252
883964a7
SC
32532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3254
3255 * python/py-xmethods.c: New file.
3256 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3257 (objfpy_dealloc): XDECREF on the new xmethods field.
3258 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3259 field.
3260 (objfpy_get_xmethods): New function.
3261 (objfile_getset): New entry 'xmethods'.
3262 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3263 (pspy_dealloc): XDECREF on the new xmethods field.
3264 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3265 field.
3266 (pspy_get_xmethods): New function.
3267 (pspace_getset): New entry 'xmethods'.
3268 * python/python-internal.h: Add declarations for new functions.
3269 * python/python.c (_initialize_python): Invoke
3270 gdbpy_initialize_xmethods.
3271 * python/lib/gdb/__init__.py (xmethods): New
3272 attribute.
3273 * python/lib/gdb/xmethod.py: New file.
3274 * python/lib/gdb/command/xmethods.py: New file.
3275
58992dc5
SC
32762014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3277
3278 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3279 best match method returned by find_overload_match is an xmethod.
3280 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3281 the best matching operator returned by find_overload_match is an
3282 xmethod.
3283 * valops.c: #include "extension.h".
3284 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3285 Return void. The list of matching source methods is returned in
3286 "fn_list" and a vector of matching debug method workers is
3287 returned in "xm_worker_vec". Update all callers.
3288 (value_find_oload_method_list): Likewise.
3289 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3290 non-NULL, then the index of the best matching method in this
3291 vector is returned. Update all callers.
3292 (find_overload_match): Include xmethods while performing overload
3293 resolution.
3294
e81e7f5e
SC
32952014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3296
3297 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3298 * extension-priv.h (struct extension_language_ops): Add the
3299 xmethod interface.
3300 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3301 get_matching_xmethod_workers, get_xmethod_argtypes,
3302 invoke_xmethod, free_xmethod_worker,
3303 free_xmethod_worker_vec): New functions.
3304 * extension.h: #include "common/vec.h".
3305 New function declarations.
3306 (struct xmethod_worker): New struct.
3307 (VEC (xmethod_worker_ptr)): New vector type.
3308 (xmethod_worker_ptr): New typedef.
3309 (xmethod_worker_vec): Likewise.
3310 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3311 builtin_type.
3312 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3313 (struct builtin_type): New field "xmethod".
3314 * valarith.c (value_ptradd): Assert that the value argument is not
3315 lval_xcallable.
3316 * valops.c (value_must_coerce_to_target): Return 0 for
3317 lval_xcallable values.
3318 * value.c (struct value): New field XM_WORKER in the field
3319 LOCATION.
3320 (value_address, value_raw_address): Return 0 for lval_xcallable
3321 values.
3322 (set_value_address): Assert that the value is not an
3323 lval_xcallable.
3324 (value_free): Free the associated xmethod worker when freeing
3325 lval_xcallable values.
3326 (set_value_component_location): Assert that the WHOLE value is not
3327 lval_xcallable.
3328 (value_of_xmethod, call_xmethod): New functions.
3329 * value.h: Declare "struct xmethod_worker".
3330 Declare new functions value_of_xmethod, call_xmethod.
3331
ef370185
JB
33322014-06-03 Joel Brobecker <brobecker@adacore.com>
3333 Pedro Alves <palves@redhat.com>
3334
3335 PR breakpoints/17000
3336 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3337 New function, extracted from software_breakpoint_inserted_here_p.
3338 (software_breakpoint_inserted_here_p): Replace factored out code
3339 by call to find_non_raw_software_breakpoint_inserted_here.
3340 (bp_target_info_copy_insertion_state): New function.
3341 (bkpt_insert_location): Handle the case of a single-step
3342 breakpoint already inserted at the same address.
3343 (bkpt_remove_location): Handle the case of a single-step
3344 breakpoint still inserted at the same address.
3345 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3346 breakpoint already inserted at the same address.
3347 (deprecated_remove_raw_breakpoint): Handle the case of a
3348 non-raw breakpoint still inserted at the same address.
3349 (find_single_step_breakpoint): New function, extracted from
3350 single_step_breakpoint_inserted_here_p.
3351 (find_single_step_breakpoint): New function,
3352 factored out from single_step_breakpoint_inserted_here_p.
3353 (single_step_breakpoint_inserted_here_p): Reimplement.
3354
1e2ccb61
BM
33552014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3356
3357 Pushed by Joel Brobecker <brobecker@adacore.com>
3358 * source.c (show_substitute_path_command): Fix display of matching
3359 substitution rules.
3360
d3448d85
GB
33612014-06-03 Gary Benson <gbenson@redhat.com>
3362
3363 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3364
06eb1586
DE
33652014-06-02 Doug Evans <xdje42@gmail.com>
3366
3367 Add parameter support for Guile.
3368 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3369 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3370 (scm-param.o): New rule.
3371 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3372 (gdbscm_misc_error): Declare.
3373 (gdbscm_canonicalize_command_name): Declare.
3374 (gdbscm_scm_to_host_string): Declare.
3375 (gdbscm_scm_from_host_string): Declare.
3376 (gdbscm_initialize_parameters): Declare.
3377 * guile/guile.c (initialize_gdb_module): Call
3378 gdbscm_initialize_parameters.
3379 * guile/lib/gdb.scm: Export parameter symbols.
3380 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3381 cmdscm_canonicalize_name and made public. All callers updated.
3382 * guile/scm-exception.c (gdbscm_misc_error): New function.
3383 * guile/scm-param.c: New file.
3384 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3385 (gdbscm_scm_to_host_string): New function.
3386 (gdbscm_scm_from_host_string): New function.
3387 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3388
e698b8c4
DE
33892014-06-02 Doug Evans <xdje42@gmail.com>
3390
3391 Add command support for Guile.
3392 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3393 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3394 (scm-cmd.o): New rule.
3395 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3396 (gdbscm_user_error_p): Declare.
3397 (gdbscm_parse_command_name): Declare.
3398 (gdbscm_valid_command_class_p): Declare.
3399 (gdbscm_initialize_commands): Declare.
3400 * guile/guile.c (initialize_gdb_module): Call
3401 gdbscm_initialize_commands.
3402 * guile/lib/gdb.scm: Export command symbols.
3403 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3404 (throw-user-error): New function.
3405 * guile/scm-cmd.c: New file.
3406 * guile/scm-exception.c (user_error_symbol): New static global.
3407 (gdbscm_user_error_p): New function.
3408 (gdbscm_initialize_exceptions): Set user_error_symbol.
3409 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3410
fb1f94b0
PM
34112014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3412
3413 * top.c (command_loop): Handle comments here...
3414 (command_line_input): ... not here.
3415
ded03782
DE
34162014-06-02 Doug Evans <xdje42@gmail.com>
3417
3418 Add progspace support for Guile.
3419 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3420 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3421 (scm-progspace.o): New rule.
3422 * guile/guile-internal.h (pspace_smob): New typedef.
3423 (psscm_pspace_smob_pretty_printers): Declare.
3424 (psscm_pspace_smob_from_pspace): Declare.
3425 (psscm_scm_from_pspace): Declare.
3426 * guile/guile.c (initialize_gdb_module): Call
3427 gdbscm_initialize_pspaces.
3428 * guile/lib/gdb.scm: Export progspace symbols.
3429 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3430 support.
3431 (append-pretty-printer!): Ditto.
3432 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3433 Implement.
3434 * guile/scm-progspace.c: New file.
3435
397998fc
AM
34362014-06-03 Alan Modra <amodra@gmail.com>
3437
3438 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3439 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3440
6aa5f3a6
DE
34412014-06-02 Doug Evans <dje@google.com>
3442
3443 Add support for skeletonless type units.
3444 * dwarf2read.c (struct dwarf2_per_objfile): New member
3445 n_allocated_type_units.
3446 (struct dwarf2_per_objfile) <tu_stats>: New member
3447 nr_all_type_units_reallocs.
3448 (create_signatured_type_table_from_index): Initialize
3449 n_allocated_type_units
3450 (create_all_type_units): Ditto.
3451 (add_type_unit): Move up in file. New arg slot.
3452 All callers updated. Increase space for all_type_units more
3453 efficiently.
3454 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3455 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3456 (lookup_dwp_signatured_type): Ditto.
3457 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3458 All callers updated.
3459 (build_type_psymtabs_1): Leave type_unit_groups as
3460 NULL if no TUs present.
3461 (print_tu_stats): New function.
3462 (process_skeletonless_type_unit): New function.
3463 (process_dwo_file_for_skeletonless_type_units): New
3464 function.
3465 (process_skeletonless_type_units): New function.
3466 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3467 Call print tu_stats if debugging enabled.
3468
41fac0cf
PA
34692014-06-02 Pedro Alves <palves@redhat.com>
3470
3471 * breakpoint.c (build_target_command_list): Don't build a command
3472 list if we have any duplicate location that isn't a dprintf.
3473
cd1608cc
PA
34742014-06-02 Pedro Alves <palves@redhat.com>
3475
3476 * breakpoint.c (dprintf_breakpoint_hit): New function.
3477 (initialize_breakpoint_ops): Install it as dprintf's
3478 breakpoint_hit method.
3479
486ef3b9
JB
34802014-06-02 Joel Brobecker <brobecker@adacore.com>
3481
3482 * source.c (substitute_path_rule_matches): Simplify using
3483 filename_ncmp instead of FILENAME_CMP.
3484
230cd560
JB
34852014-06-02 Joel Brobecker <brobecker@adacore.com>
3486
3487 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3488
16954d5d
LC
34892014-06-01 Ludovic Courtès <ludo@gnu.org>
3490
3491 * configure.ac: When Guile is available, check for the
3492 availability of 'scm_new_smob'.
3493 * configure, config.h.in: Regenerate.
3494 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3495 function.
3496
53e8a631
AB
34972014-05-30 Andrew Burgess <aburgess@broadcom.com>
3498
3499 * frame.c (struct frame_info): Add stop_string field.
3500 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3501 (get_prev_frame_always): Old content moved into
3502 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3503 TRY_CATCH, handle MEMORY_ERROR exceptions.
3504 (frame_stop_reason_string): New function definition.
3505 * frame.h (unwind_stop_reason_to_string): Extend comment to
3506 mention frame_stop_reason_string.
3507 (frame_stop_reason_string): New function declaration.
3508 * stack.c (frame_info): Switch to frame_stop_reason_string.
3509 (backtrace_command_1): Switch to frame_stop_reason_string.
3510 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3511 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3512 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3513
70e38b8e
AB
35142014-05-30 Andrew Burgess <aburgess@broadcom.com>
3515
3516 * frame.c (frame_stop_reason_string): Rename to ...
3517 (unwind_stop_reason_to_string): this.
3518 * frame.h (frame_stop_reason_string): Rename to ...
3519 (unwind_stop_reason_to_string): this.
3520 * stack.c (frame_info): Update call to frame_stop_reason_string.
3521 (backtrace_command_1): Likewise.
3522 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3523 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3524
938f0e2f
AB
35252014-05-30 Andrew Burgess <aburgess@broadcom.com>
3526
3527 * frame.c (remove_prev_frame): New function.
3528 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3529 remove_prev_frame.
3530
a09dd441
PA
35312014-05-29 Pedro Alves <palves@redhat.com>
3532
3533 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3534 and make it const. When a single-step decays to a continue,
3535 clear 'step', not 'hw_step'. Pass whether the caller wanted
3536 to step to user_visible_resume_ptid, not what we ask the
3537 target to do.
3538
bdc36728
PA
35392014-05-29 Pedro Alves <palves@redhat.com>
3540
3541 * infrun.c (process_event_stop_test, handle_step_into_function)
3542 (handle_step_into_function_backward): Adjust.
3543 Don't set the even thread's stop_step and call stop_waiting before
3544 calling end_stepping_range. Instead do that ...
3545 (end_stepping_range): ... here. Take an ecs pointer parameter.
3546
22bcd14b
PA
35472014-05-29 Pedro Alves <palves@redhat.com>
3548
3549 * infrun.c (stop_stepping): Rename to ...
3550 (stop_waiting): ... this.
3551 (proceed): Update comment.
3552 (process_event_stop_test, handle_inferior_event)
3553 (handle_signal_stop, handle_step_into_function)
3554 (handle_step_into_function_backward): Update.
3555
4ae57c05
PA
35562014-05-29 Pedro Alves <palves@redhat.com>
3557
3558 * infcall.c (run_inferior_call): Don't check whether the current
3559 thread is running after the proceed call.
3560
329ea579
PA
35612014-05-29 Pedro Alves <palves@redhat.com>
3562 Tom Tromey <tromey@redhat.com>
3563
3564 * NEWS: Mention "maint set target-async", "set mi-async", and that
3565 background execution commands are now always available.
3566 * target.h (target_async_permitted): Update comment.
3567 * target.c (target_async_permitted, target_async_permitted_1):
3568 Default to 1.
3569 (set_target_async_command): Rename to ...
3570 (maint_set_target_async_command): ... this.
3571 (show_target_async_command): Rename to ...
3572 (maint_show_target_async_command): ... this.
3573 (_initialize_target): Adjust.
3574 * infcmd.c (prepare_execution_command): Make extern.
3575 * inferior.h (prepare_execution_command): Declare.
3576 * infrun.c (set_observer_mode): Leave target async alone.
3577 * mi/mi-interp.c (mi_interpreter_init): Install
3578 mi_on_sync_execution_done as sync_execution_done observer.
3579 (mi_on_sync_execution_done): New function.
3580 (mi_execute_command_input_handler): Don't print the prompt if we
3581 just started a synchronous command with an async target.
3582 (mi_on_resume): Check sync_execution before printing prompt.
3583 * mi/mi-main.h (mi_async_p): Declare.
3584 * mi/mi-main.c: Include gdbcmd.h.
3585 (mi_async_p): New function.
3586 (mi_async, mi_async_1): New globals.
3587 (set_mi_async_command, show_mi_async_command, mi_async): New
3588 functions.
3589 (exec_continue): Call prepare_execution_command.
3590 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3591 (mi_execute_async_cli_command): Use mi_async_p.
3592 (_initialize_mi_main): Install "set mi-async". Make
3593 "target-async" a deprecated alias.
3594
92bcb5f9
PA
35952014-05-29 Pedro Alves <palves@redhat.com>
3596
3597 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3598 (_initialize_cli_interp): Adjust.
3599 * event-loop.c: Include "observer.h".
3600 (start_event_loop): Notify 'command_error' observers instead of
3601 calling display_gdb_prompt. Remove FIXME comment.
3602 * event-top.c (display_gdb_prompt): Remove call into the
3603 interpreters.
3604 * inf-loop.c: Include "observer.h".
3605 (inferior_event_handler): Notify 'command_error' observers instead
3606 of calling display_gdb_prompt.
3607 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3608 observers instead of calling display_gdb_prompt.
3609 * interps.c (interp_set): Don't call display_gdb_prompt.
3610 (current_interp_display_prompt_p): Delete.
3611 * interps.h (interp_prompt_p): Delete declaration.
3612 (interp_prompt_p_ftype): Delete.
3613 (struct interp_procs) <prompt_proc_p>: Delete field.
3614 (current_interp_display_prompt_p): Delete declaration.
3615 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3616 (_initialize_mi_interp): Adjust.
3617 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3618 'command_error' observers.
3619 (tui_on_sync_execution_done, tui_on_command_error): New
3620 functions.
3621 (tui_display_prompt_p): Delete.
3622 (_initialize_tui_interp): Adjust.
3623
fd664c91
PA
36242014-05-29 Pedro Alves <palves@redhat.com>
3625
3626 PR gdb/13860
3627 * cli/cli-interp.c: Include infrun.h and observer.h.
3628 (cli_uiout, cli_interp): New globals.
3629 (cli_on_signal_received, cli_on_end_stepping_range)
3630 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3631 functions.
3632 (cli_interpreter_init): Install them as 'end_stepping_range',
3633 'signal_received' 'signal_exited', 'exited' and 'no_history'
3634 observers.
3635 (_initialize_cli_interp): Remove cli_interp local.
3636 * infrun.c (handle_inferior_event): Call the several stop reason
3637 observers instead of printing the stop reason directly.
3638 (end_stepping_range): New function.
3639 (print_end_stepping_range_reason, print_signal_exited_reason)
3640 (print_exited_reason, print_signal_received_reason)
3641 (print_no_history_reason): Make static, and add an uiout
3642 parameter. Print to that instead of to CURRENT_UIOUT.
3643 * infrun.h (print_end_stepping_range_reason)
3644 (print_signal_exited_reason, print_exited_reason)
3645 (print_signal_received_reason print_no_history_reason): New
3646 declarations.
3647 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3648 'mi_uiout'.
3649 <cli_uiout>: New field.
3650 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3651 uiout for CLI output. Install 'signal_received',
3652 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3653 observers.
3654 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3655 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3656 (mi_on_no_history): New functions.
3657 (ui_out_free_cleanup): Delete function.
3658 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3659 instead use the one already stored in the MI interpreter data.
3660 (mi_ui_out): Adjust.
3661 * tui/tui-interp.c: Include infrun.h and observer.h.
3662 (tui_interp): New global.
3663 (tui_on_signal_received, tui_on_end_stepping_range)
3664 (tui_on_signal_exited, tui_on_exited)
3665 (tui_on_no_history): New functions.
3666 (tui_init): Install them as 'end_stepping_range',
3667 'signal_received' 'signal_exited', 'exited' and 'no_history'
3668 observers.
3669 (_initialize_tui_interp): Delete tui_interp local.
3670
8817a6f2
PA
36712014-05-29 Pedro Alves <palves@redhat.com>
3672
3673 PR gdb/15713
3674 * linux-nat.c (linux_nat_resume_callback): Rename the second
3675 parameter to 'except'. Skip LP if it points to EXCEPT.
3676 (linux_nat_resume): Don't mark the event lwp as not stopped
3677 before resuming sibling lwps. Instead ask
3678 linux_nat_resume_callback to skip the event lwp. Mark it as not
3679 stopped after actually resuming it.
3680 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3681 resuming it.
3682 (wait_lwp): Mark the lwp as stopped here.
3683 (stop_wait_callback): Mark the lwp as not stopped right after
3684 resuming it. Don't mark lwps as stopped here.
3685 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3686 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3687
251bde03
PA
36882014-05-29 Pedro Alves <palves@redhat.com>
3689
3690 PR PR15693
3691 * infrun.c (resume): Determine how much to resume depending on
3692 whether the caller wanted a step, not whether we can hardware step
3693 the target. Mark all threads that we intend to run as running,
3694 unless we're calling an inferior function.
3695 (normal_stop): If the thread is running an infcall, don't finish
3696 thread state.
3697 * target.c (target_resume): Don't mark threads as running here.
3698
7f3c0343
JB
36992014-05-28 Joel Brobecker <brobecker@adacore.com>
3700
3701 * serial.c (_initialize_serial): Remove support for
3702 the "set remotebaud" and "show remotebaud" commands.
3703 * NEWS: Add entry documenting the removal of that command.
3704
ee34b3f9
YQ
37052014-05-28 Yao Qi <yao@codesourcery.com>
3706
3707 * charset.c: Fix typo in comments.
3708
add6c04d
GB
37092014-05-27 Gary Benson <gbenson@redhat.com>
3710
3711 * utils.c (internal_vproblem): Prompt for a bug report.
3712
92c48fc5
AW
37132014-05-26 Andy Wingo <wingo@igalia.com>
3714
3715 * guile/scm-arch.c (arscm_mark_arch_smob):
3716 * guile/scm-block.c (bkscm_mark_block_smob)
3717 (bkscm_mark_block_syms_progress_smob):
3718 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3719 * guile/scm-exception.c (exscm_mark_exception_smob):
3720 * guile/scm-frame.c (frscm_mark_frame_smob):
3721 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3722 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3723 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3724 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3725 (ppscm_mark_pretty_printer_worker_smob):
3726 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3727 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3728 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3729 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3730 mark functions.
3731 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3732 function.
3733
b2715b27
AW
37342014-05-26 Andy Wingo <wingo@igalia.com>
3735 Doug Evans <xdje42@gmail.com>
3736
3737 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3738 empty_base_class. All uses updated.
3739 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3740 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3741 Adapt all callers.
3742 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3743 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3744 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3745 (gdbscm_gsmob_has_property_p, add_property_name)
3746 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3747 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3748 (gdb-object-has-property?, gdb-object-properties): Remove.
3749 (gdb-object-kind): Renamed from gsmob-kind.
3750
214ab2da
AW
37512014-05-26 Andy Wingo <wingo@igalia.com>
3752
3753 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3754 * configure: Regenerate.
3755
589fdceb
MM
37562014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3757
3758 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3759
67b5c0c1
MM
37602014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3761
3762 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3763 (replay_memory_access_read_only, replay_memory_access_read_write)
3764 (replay_memory_access_types, replay_memory_access)
3765 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3766 (cmd_set_record_btrace, cmd_show_record_btrace)
3767 (cmd_show_replay_memory_access): New.
3768 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3769 (record_btrace_remove_breakpoint): Replace
3770 record_btrace_allow_memory_access with replay_memory_access.
3771 (_initialize_record_btrace): Add commands.
3772 * NEWS: Announce it.
3773
036cd381
RR
37742014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3775
3776 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3777
c77c1e42
RR
37782014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3779
3780 * MAINTAINERS (Write After Approval): Move self back from
3781 paper trail.
3782
45741a9c
PA
37832014-05-22 Pedro Alves <palves@redhat.com>
3784
3785 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3786 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3787 (disable_randomization, enum exec_direction_kind)
3788 (execution_direction, stop_registers, start_remote)
3789 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3790 (wait_for_inferior, normal_stop, get_last_target_status)
3791 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3792 (insert_step_resume_breakpoint_at_sal)
3793 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3794 (set_step_info, print_stop_event, signal_stop_state)
3795 (signal_print_state, signal_pass_state, signal_stop_update)
3796 (signal_print_update, signal_pass_update)
3797 (update_signals_program_target, clear_exit_convenience_vars)
3798 (displaced_step_dump_bytes, update_observer_mode)
3799 (signal_catch_update, gdb_signal_from_command): Move
3800 declarations ...
3801 * infrun.h: ... to this new file.
3802 * amd64-tdep.c: Include infrun.h.
3803 * annotate.c: Include infrun.h.
3804 * arch-utils.c: Include infrun.h.
3805 * arm-linux-tdep.c: Include infrun.h.
3806 * arm-tdep.c: Include infrun.h.
3807 * break-catch-sig.c: Include infrun.h.
3808 * breakpoint.c: Include infrun.h.
3809 * common/agent.c: Include infrun.h instead of inferior.h.
3810 * corelow.c: Include infrun.h.
3811 * event-top.c: Include infrun.h.
3812 * go32-nat.c: Include infrun.h.
3813 * i386-tdep.c: Include infrun.h.
3814 * inf-loop.c: Include infrun.h.
3815 * infcall.c: Include infrun.h.
3816 * infcmd.c: Include infrun.h.
3817 * infrun.c: Include infrun.h.
3818 * linux-fork.c: Include infrun.h.
3819 * linux-nat.c: Include infrun.h.
3820 * linux-thread-db.c: Include infrun.h.
3821 * monitor.c: Include infrun.h.
3822 * nto-tdep.c: Include infrun.h.
3823 * procfs.c: Include infrun.h.
3824 * record-btrace.c: Include infrun.h.
3825 * record-full.c: Include infrun.h.
3826 * remote-m32r-sdi.c: Include infrun.h.
3827 * remote-mips.c: Include infrun.h.
3828 * remote-notif.c: Include infrun.h.
3829 * remote-sim.c: Include infrun.h.
3830 * remote.c: Include infrun.h.
3831 * reverse.c: Include infrun.h.
3832 * rs6000-tdep.c: Include infrun.h.
3833 * s390-linux-tdep.c: Include infrun.h.
3834 * solib-irix.c: Include infrun.h.
3835 * solib-osf.c: Include infrun.h.
3836 * solib-svr4.c: Include infrun.h.
3837 * target.c: Include infrun.h.
3838 * top.c: Include infrun.h.
3839 * windows-nat.c: Include infrun.h.
3840 * mi/mi-interp.c: Include infrun.h.
3841 * mi/mi-main.c: Include infrun.h.
3842 * python/py-threadevent.c: Include infrun.h.
3843
98eb56a4
PA
38442014-05-22 Pedro Alves <palves@redhat.com>
3845
3846 * infrun.c (handle_inferior_event): Store the exit code for
3847 --return-child-result here, instead of ...
3848 (print_exited_reason): ... here.
3849
17b2616c
PA
38502014-05-21 Pedro Alves <palves@redhat.com>
3851
3852 PR gdb/13860
3853 * gdbthread.h (struct thread_control_state): New field
3854 `command_interp'.
3855 * infrun.c (follow_fork): Copy the new thread control field to the
3856 child fork thread.
3857 (clear_proceed_status_thread): Clear the new thread control field.
3858 (proceed): Set the new thread control field.
3859 * interps.h (command_interp): Declare.
3860 * interps.c (command_interpreter): New global.
3861 (command_interp): New function.
3862 (interp_exec): Set `command_interpreter' while here.
3863 * cli-out.c (cli_uiout_dtor): New function.
3864 (cli_ui_out_impl): Install it.
3865 * mi/mi-interp.c: Include cli-out.h.
3866 (mi_cmd_interpreter_exec): Add comment.
3867 (restore_current_uiout_cleanup): New function.
3868 (ui_out_free_cleanup): New function.
3869 (mi_on_normal_stop): If finishing an execution command started by
3870 a CLI command, or any kind of breakpoint-like event triggered,
3871 print the stop event to the output (CLI) stream.
3872 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3873
5166082f
PA
38742014-05-21 Pedro Alves <palves@redhat.com>
3875
3876 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3877 current source line having changed.
3878 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3879 * infrun.c (normal_stop): Adjust call to
3880 set_current_sal_from_frame.
3881 * source.c (clear_lines_listed_range): New function.
3882 (set_current_source_symtab_and_line, identify_source_line): Clear
3883 the lines listed range.
3884 (line_info): Handle the first "info line" after the current source
3885 line having changed.
3886 * stack.c (print_stack_frame): Remove center handling.
3887 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3888 center sal.line.
3889
c1ee2fb3
PA
38902014-05-21 Pedro Alves <palves@redhat.com>
3891
3892 * inf-child.c (inf_child_mourn_inferior): New function.
3893 * inf-child.h (inf_child_mourn_inferior): New declaration.
3894 * darwin-nat.c (darwin_mourn_inferior): Use
3895 inf_child_mourn_inferior.
3896 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3897 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3898 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3899 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3900 * windows-nat.c (windows_mourn_inferior): Likewise.
3901
5c6d4fb2
DE
39022014-05-21 Doug Evans <xdje42@gmail.com>
3903
250748cb 3904 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3905
4a2722c5
DE
39062014-05-21 Doug Evans <xdje42@gmail.com>
3907
17292b30 3908 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3909 (gdbscm_out_of_range_error): Ditto.
3910 (gdbscm_memory_error): Ditto.
250748cb
DE
3911 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3912 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3913 (gdbscm_out_of_range_error): Update.
3914 (gdbscm_memory_error): Update.
3915 (gdbscm_scm_to_target_string_unsafe): Delete.
3916
6a3cb8e8
PA
39172014-05-21 Pedro Alves <palves@redhat.com>
3918
3919 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3920 globals.
3921 (inf_child_open_target): New function.
3922 (inf_child_open): Use inf_child_open_target to push the target
3923 instead of erroring out.
3924 (inf_child_disconnect, inf_child_close)
3925 (inf_child_maybe_unpush_target): New functions.
3926 (inf_child_target): Install inf_child_disconnect and
3927 inf_child_close. Store a pointer to the returned object.
3928 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3929 declarations.
3930 * target.c (auto_connect_native_target): New global.
3931 (show_default_run_target): New function.
3932 (find_default_run_target): Return NULL if automatically connecting
3933 to the native target is disabled.
3934 (_initialize_target): Install set/show auto-connect-native-target.
3935 * NEWS: Mention "set auto-connect-native-target", and "target
3936 native".
3937 * linux-nat.c (super_close): New global.
3938 (linux_nat_close): Call super_close.
3939 (linux_nat_add_target): Store a pointer to the base class's
3940 to_close method.
3941 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3942 inf_child_maybe_unpush.
3943 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3944 already pushed.
3945 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3946 the inferior. Use inf_child_maybe_unpush_target.
3947 (inf_ttrace_attach): Don't push the target if it is already
3948 pushed.
3949 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3950 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3951 after mourning the inferior. Use inf_child_maybe_unpush_target.
3952 (darwin_attach_pid): Don't push the target if it is already
3953 pushed.
3954 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3955 mourning the inferior. Use inf_child_maybe_unpush_target.
3956 (gnu_detach): Use inf_child_maybe_unpush_target.
3957 * go32-nat.c (go32_create_inferior): Don't push the target if it
3958 is already pushed.
3959 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3960 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3961 (procfs_open): Rename to ...
3962 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3963 comments. Can target_preopen before changing node. Call
3964 inf_child_open_target to push the target explicitly.
3965 (procfs_attach): Don't push the target if it is already pushed.
3966 (procfs_detach): Use inf_child_maybe_unpush_target.
3967 (procfs_create_inferior): Don't push the target if it is already
3968 pushed.
3969 (nto_native_ops): New global.
3970 (procfs_open): Reimplement.
3971 (procfs_native_open): New function.
3972 (init_procfs_targets): Install procfs_native_open as to_open of
3973 "target native". Store a pointer to the "native" target in
3974 nto_native_ops.
3975 * procfs.c (procfs_attach): Don't push the target if it is already
3976 pushed.
3977 (procfs_detach): Use inf_child_maybe_unpush_target.
3978 (procfs_mourn_inferior): Only unpush the target after mourning the
3979 inferior. Use inf_child_maybe_unpush_target.
3980 (procfs_init_inferior): Don't push the target if it is already
3981 pushed.
3982 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3983 if it is already pushed.
3984
930ee1b1
PA
39852014-05-21 Pedro Alves <palves@redhat.com>
3986
3987 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3988 and "procfs" targets are now called "native" instead.
3989
1f5d1b13
PA
39902014-05-21 Pedro Alves <palves@redhat.com>
3991
3992 * go32-nat.c (go32_open): Delete.
3993 (go32_target): Don't override the to_open method.
3994
132f8e03
PA
39952014-05-21 Pedro Alves <palves@redhat.com>
3996
3997 * nto-procfs.c (procfs_can_run): New function.
3998 (nto_procfs_ops): New global.
3999 (init_procfs_targets): New, based on procfs_target. Install
4000 "target native" in addition to "target procfs".
4001 (_initialize_procfs): Call init_procfs_targets instead of adding
4002 the target here.
4003
03c136c3
PA
40042014-05-21 Pedro Alves <palves@redhat.com>
4005
4006 * windows-nat.c (windows_target): Don't override to_shortname,
4007 to_longname or to_doc.
4008
a635d0f3
PA
40092014-05-21 Pedro Alves <palves@redhat.com>
4010
4011 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4012 to_doc.
4013
4f9b5133
PA
40142014-05-21 Pedro Alves <palves@redhat.com>
4015
4016 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4017 to_shortname, to_longname or to_doc.
4018
bc85afde
PA
40192014-05-21 Pedro Alves <palves@redhat.com>
4020
4021 * go32-nat.c (go32_target): Don't override to_shortname,
4022 to_longname or to_doc.
4023
4ebfc96e
PA
40242014-05-21 Pedro Alves <palves@redhat.com>
4025
4026 * inf-child.c (inf_child_open): Remove mention of "child".
4027 (inf_child_target): Rename target to "native" instead of "child".
4028
2648dfed
AA
40292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4030
4031 * Makefile.in (SFILES): Delete "regset.c".
4032 (COMMON_OBS): Delete "regset.o".
4033 * regset.c: Remove.
4034 * regset.h (regset_alloc): Delete prototype.
4035
b13feb94
AA
40362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4037
4038 * sparc-linux-tdep.c (sparc32_linux_gregset)
4039 (sparc32_linux_fpregset): New static regset structures.
4040 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4041 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4042 'fpregset' fields.
4043 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4044 (sparc64_linux_fpregset): New static regset structures.
4045 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4046 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4047 New static regset structures.
4048 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4049 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4050 New static regset structures.
4051 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4052 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4053 New static regset structures.
4054 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4055 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4056 New static regset structures.
4057 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4058
b4fd25c9
AA
40592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4060
4061 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4062 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4063 register maps ("regmaps") from "*regset" to "*regmap". Do this
4064 for all regmap types and variables.
4065 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4066 (sparc32_linux_supply_core_gregset)
4067 (sparc32_linux_collect_core_gregset)
4068 (sparc32_linux_supply_core_fpregset)
4069 (sparc32_linux_collect_core_fpregset): Likewise.
4070 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4071 (sparc_gregmap, sparc_fpregmap): ... these.
4072 (sparc_supply_gregset, sparc_collect_gregset)
4073 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4074 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4075 (_initialize_sparc_nat): Rename regmaps.
4076 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4077 (sparc_gregmap, sparc_fpregmap): ... these.
4078 (sparc_supply_gregset, sparc_collect_gregset)
4079 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4080 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4081 Rename macros to...
4082 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4083 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4084 Likewise.
4085 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4086 Rename to...
4087 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4088 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4089 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4090 regmaps.
4091 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4092 (sparc32_bsd_fpregset): Rename to...
4093 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4094 (sparc32_bsd_fpregmap): ... these.
4095 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4096 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4097 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4098 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4099 (struct sparc_gregmap, struct sparc_fpregmap)
4100 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4101 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4102 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4103 (sparc32_supply_regset, sparc32_collect_gregset)
4104 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4105 prototypes.
4106 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4107 (sparc64_linux_ptrace_gregmap): ... this.
4108 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4109 (_initialize_sparc64_linux_nat): Rename regmaps.
4110 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4111 (sparc64_linux_core_gregmap): ... this.
4112 (sparc64_linux_supply_core_gregset)
4113 (sparc64_linux_collect_core_gregset)
4114 (sparc64_linux_supply_core_fpregset)
4115 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4116 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4117 (sparc64_sol2_fpregset): Rename to...
4118 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4119 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4120 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4121 regmaps.
4122 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4123 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4124 (sparc64_bsd_fpregset): Rename to...
4125 (struct sparc_gregmap, sparc64_sol2_gregmap)
4126 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4127 (sparc64_bsd_fpregmap): ... these.
4128 (sparc64_supply_gregset, sparc64_collect_gregset)
4129 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4130 prototypes.
4131 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4132 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4133 (sparc64fbsd_gregmap): ... this.
4134 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4135 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4136 Rename regmaps.
4137 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4138 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4139 (sparc64nbsd_collect_fpregset): Likewise.
4140 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4141 (sparc64nbsd_gregmap): ... this.
4142 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4143 regmaps.
4144 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4145 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4146 (sparc64obsd_gregmap): ... this.
4147 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4148 regmaps.
4149 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4150 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4151 (sparc32nbsd_gregmap): ... this.
4152 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4153 regmaps.
4154
8fea3224
AA
41552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4156
4157 * score-tdep.c (score7_linux_gregset): New static regset
4158 structure.
4159 (score7_linux_regset_from_core_section): Remove dynamic regset
4160 allocation.
4161 (score_gdbarch_init): Drop allocation of tdep structure.
4162 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4163
24534243
AA
41642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4165
4166 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4167 regset structures.
4168 (am33_regset_from_core_section): Remove dynamic regset
4169 allocations.
4170
b7195f27
AA
41712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4172
4173 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4174 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4175 structures.
4176 (mips_linux_regset_from_core_section): Remove dynamic regset
4177 allocations.
4178 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4179 'gregset64', 'fpregset', and 'fpregset64'.
4180 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4181 deleted tdep fields.
4182
ecc37a5a
AA
41832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4184
4185 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4186 regset structures.
4187 (amd64_regset_from_core_section): Remove dynamic regset
4188 allocations.
4189 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4190 structure.
4191 (amd64obsd_regset_from_core_section): Remove dynamic regset
4192 allocation.
4193 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4194 Likewise.
4195 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4196 x86-common regset supply function.
4197 * i386-tdep.c (i386_collect_gregset): Make static.
4198 (i386_gregset): New global regset structure.
4199 (i386_fpregset, i386_xstateregset): New static regset structures.
4200 (i386_regset_from_core_section): Remove dynamic regset
4201 allocations.
4202 (i386_gdbarch_init): Remove initialization of tdep fields
4203 'gregset', 'fpregset', and 'xstateregset'.
4204 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4205 'fpregset', and 'xstateregset'.
4206 (i386_collect_gregset): Remove prototype.
4207 (i386_gregset): New declaration.
4208 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4209 structure.
4210 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4211 allocation.
4212
b7611c43
AA
42132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4214
4215 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4216 (arm_linux_vfpregset): New static regset structures.
4217 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4218 regset structures.
4219 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4220 and 'vfpregset' fields.
4221
a069a2bd
AA
42222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4223
4224 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4225 (aarch64_linux_fpregset): New static regset structures.
4226 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4227 of regset structures.
4228 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4229 'fpregset' fields.
4230
09424cff
AA
42312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4232
4233 * regset.h (struct regset): Remove gdbarch field.
4234 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4235 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4236 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4237 Likewise.
4238 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4239 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4240 (ppc32_linux_vsxregset): Likewise.
4241 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4242 via the regcache instead of the regset.
4243 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4244 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4245 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4246 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4247 Likewise.
4248
3ca7dae4
AA
42492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4250
4251 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4252 Constify structures.
4253 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4254 (alphanbsd_aout_gregset): Likewise.
4255 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4256 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4257 Likewise.
4258 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4259 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4260 Likewise.
4261 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4262 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4263 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4264 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4265 * m88k-tdep.c (m88k_gregset): Likewise.
4266 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4267 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4268 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4269 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4270 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4271 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4272 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4273 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4274 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4275 Likewise.
4276 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4277 * sh-tdep.h (sh_corefile_gregset): Likewise.
4278 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4279 * vax-tdep.c (vax_gregset): Likewise.
4280
5876f503
JK
42812014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4282
4283 Fix TLS access for -static -pthread.
4284 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4285 (try_thread_db_load_1): Initialize it.
4286 (thread_db_get_thread_local_address): Call it if LM is zero.
4287 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4288 * target.h (struct target_ops) (to_get_thread_local_address): Add
4289 load_module_addr comment.
4290
0256a6ac
PA
42912014-05-21 Pedro Alves <palves@redhat.com>
4292
4293 * dcache.c (dcache_read_memory_partial): If reading the cache line
4294 fails, fallback to reading just the memory the caller wanted.
4295
227533ac
DE
42962014-05-20 Doug Evans <dje@google.com>
4297
4298 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4299 instead of get_current_arch.
4300
936d2992
PA
43012014-05-20 Pedro Alves <palves@redhat.com>
4302
4303 * NEWS: Mention that compare-sections now works with all targets.
4304
4305 * remote.c (PACKET_qCRC): New enum value.
4306 (remote_verify_memory): Don't send qCRC if the target has no
4307 execution. Use packet_support/packet_ok. If the target doesn't
4308 support the qCRC packet, fallback to a deep memory copy.
4309 (compare_sections_command): Say "target image" instead of "remote
4310 executable".
4311 (_initialize_remote): Add PACKET_qCRC to the list of config
4312 packets that have no associated command. Extend comment.
4313 * target.c (simple_verify_memory, default_verify_memory): New
4314 function.
4315 * target.h (struct target_ops) <to_verify_memory>: Default to
4316 default_verify_memory.
4317 (simple_verify_memory): New declaration.
4318 * target-delegates.c: Regenerate.
4319
e59fa00f
MM
43202014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4321
4322 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4323
f2205de0
HZ
43242014-05-20 Hui Zhu <hui@codesourcery.com>
4325 Yao Qi <yao@codesourcery.com>
4326
4327 PR backtrace/16558
4328 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4329 and change address of sp and pc.
4330
c4e54771
TT
43312014-05-19 Tom Tromey <tromey@redhat.com>
4332
4333 * gdbtypes.c (rank_function): Use XNEWVEC.
4334 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4335
73051182
DE
43362014-05-19 Doug Evans <dje@google.com>
4337
4338 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4339 build_type_unit_groups and moved closer to only caller. Remove
4340 arguments. All references updated. Remove outdated .gdb_index
4341 comment.
4342 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4343 build_type_psymtabs_1.
4344
8832e7e3
DE
43452014-05-19 Doug Evans <dje@google.com>
4346
4347 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4348 n_type_unit_groups, all_type_unit_groups. All uses removed.
4349 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4350 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4351 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4352 (add_type_unit_group_to_table): Delete.
4353
cd8ae15e
DE
43542014-05-19 Doug Evans <dje@google.com>
4355
4356 * eval.c (evaluate_subexp_standard): Add some comments.
4357
08f4850b
DE
43582014-05-17 Doug Evans <xdje42@gmail.com>
4359
4360 * progspace.c (remove_program_space): Delete, unused.
4361 * progspace.h (remove_program_space): Ditto.
4362
bed8455c
DE
43632014-05-17 Doug Evans <xdje42@gmail.com>
4364
4365 * inferior.c (prune_inferiors): Fix comment.
4366 (remove_inferior_command): Call prune_program_spaces.
4367
8d551b02
DE
43682014-05-16 Doug Evans <dje@google.com>
4369
4370 New command line option -D.
4371 * NEWS: Mention it.
4372 * main.c (set_gdb_data_directory): New function.
4373 (captured_main): Recognize -D. Flag error for --data-directory "".
4374 Call set_gdb_data_directory.
4375 (print_gdb_help): Print --data-directory, -D.
4376 * main.h (set_gdb_data_directory): Declare.
4377 * top.c (staged_gdb_datadir): New static global.
4378 (set_gdb_datadir): Call set_gdb_data_directory
4379 (show_gdb_datadir): New function.
4380 (init_main): Update init of data-directory parameter.
4381
18848e28
GF
43822014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4383
4384 Import the "dirfd" gnulib module.
4385 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4386 * gnulib/aclocal.m4: Update.
4387 * gnulib/config.in: Update.
4388 * gnulib/configure: Update.
4389 * gnulib/import/Makefile.am: Update.
4390 * gnulib/import/Makefile.in: Update.
4391 * gnulib/import/dirfd.c: New.
4392 * gnulib/import/m4/dirfd.m4: New.
4393 * gnulib/import/m4/gnulib-cache.m4: Update.
4394 * gnulib/import/m4/gnulib-comp.m4: Update.
4395
95c64f92
YQ
43962014-05-16 Pierre Muller <muller@sourceware.org>
4397 Yao Qi <yao@codesourcery.com>
4398
4399 * valprint.c (print_wchar): Move the code on checking whether
4400 W is a printable wide char to the default branch of switch
4401 statement below. Call wchar_printable instead of gdb_iswprint.
4402
cac395ea
TM
44032014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4404
19679eca 4405 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4406 ldr.w and ldrd instructions.
4407
83655187
DE
44082014-05-15 Doug Evans <dje@google.com>
4409
4410 * dwarf2read.c (read_structure_type): Delete outdated comments.
4411
dd756689
TT
44122014-05-14 Tom Tromey <tromey@redhat.com>
4413
4414 * macrocmd.c (print_macro_definition): Reindent.
4415
75ddda77
DE
44162014-05-13 Doug Evans <xdje42@gmail.com>
4417
4418 * python/py-cmd.c (cmdpy_completer): Add comment.
4419 (completers): Make const.
4420
b0f16a3e
SM
44212014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4422
4423 * infrun.c (resume): Remove should_resume (unused). Move up
4424 declaration of resume_ptid.
4425
033c3379
TT
44262014-05-13 Tom Tromey <tromey@redhat.com>
4427
4428 * language.h (unop_type_check): Remove.
4429 (binop_type_check): Don't declare.
4430
9b44a3a5
AA
44312014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4432
4433 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4434 call to regcache_raw_collect.
4435
303a33fa
SM
44362014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4437
4438 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4439 mi_console->quote as the quoting character.
4440
196100a0
SM
44412014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4442
4443 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4444
f989a1c8
TT
44452014-04-29 Tom Tromey <tromey@redhat.com>
4446
4447 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4448 "show debug varobj".
4449
9404b58f
KM
44502014-05-07 Kyle McMartin <kyle@redhat.com>
4451
4452 Pushed by Joel Brobecker <brobecker@adacore.com>.
4453 * aarch64-tdep.c (aarch64_software_single_step): New function.
4454 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4455 with aarch64_software_single_step.
4456
5e49ba57
JB
44572014-05-05 Joel Brobecker <brobecker@adacore.com>
4458
4459 GDB 7.7.1 released.
4460
c888a17d
KS
44612014-05-05 Keith Seitz <keiths@redhat.com>
4462
4463 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4464 variable or history value is successfully parsed.
4465
290a839c
YQ
44662014-05-05 Yao Qi <yao@codesourcery.com>
4467 Pedro Alves <palves@redhat.com>
4468
4469 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4470 address of blocks that intersects the requested range. Trim
4471 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4472 sections.
4473 * ctf.c (ctf_xfer_partial): Likewise.
4474
91256dc2
YQ
44752014-05-05 Yao Qi <yao@codesourcery.com>
4476
4477 * printcmd.c (display_command): Remove the check to
4478 target_has_execution.
4479
07284463
MK
44802014-05-03 Mark Kettenis <kettenis@gnu.org>
4481
4482 * ppcobsd-nat.c: Include "obsd-nat.h".
4483 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4484 add_target.
4485 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4486
30a1e6cc
SDJ
44872014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4488
4489 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4490 and 16-bit signed and unsigned arguments. Update comment.
4491 (stap_parse_probe_arguments): Extend code to handle such
4492 arguments. Use warning instead of complaint to notify about
4493 unrecognized bitness.
4494
f33da99a
SDJ
44952014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4496
4497 PR breakpoints/16889
4498 * stap-probe.c (stap_parse_probe_arguments): Simplify
4499 check for non-prefixed probes (i.e., probes whose
4500 arguments do not start with "N@"). Always set the
4501 argument type to a sane value.
4502
95cf3b38
DT
45032014-05-01 David Taylor <dtaylor@emc.com>
4504
4505 * remote.c (compare_sections_command): Add -r option to compare
4506 all loadable read-only sections.
4507
1cfdf534
SC
45082014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4509
4510 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4511 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4512 Update all callers.
4513 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4514 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4515 Remove unused CORE_ADDR argument. Update all callers.
4516
ca4f7f8b
PA
45172014-04-29 Pedro Alves <palves@redhat.com>
4518
4519 * remote.c (struct packet_config) <detect>: Extend comment.
4520 (add_packet_config_cmd): Don't set the config's detect or support
4521 fields here.
4522 (init_all_packet_configs): Also initialize the config's 'detect'
4523 field.
4524 (reset_all_packet_configs_support): New function.
4525 (remote_open_1): Call reset_all_packet_configs_support instead of
4526 init_all_packet_configs.
4527 (_initialize_remote): Initialize all packet configs. Assert that
4528 all packets have an associated command, except a few known
4529 outliers.
4530
11c1ba78
JB
45312014-04-28 Joel Brobecker <brobecker@adacore.com>
4532
4533 * dwarf2read.c (read_subrange_type): Handle dynamic
4534 DW_AT_lower_bound attributes.
4535
8739bc53
JB
45362014-04-28 Joel Brobecker <brobecker@adacore.com>
4537
4538 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4539 dynamic bounds before computing its upper bound.
4540 (ada_discrete_type_low_bound): Same as above with the lower bound.
4541
6f8a3220
JB
45422014-04-28 Joel Brobecker <brobecker@adacore.com>
4543
4544 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4545 range types. Adjust the array handling implementation to
4546 take advantage of this change.
4547 (resolve_dynamic_range): New function, mostly extracted from
4548 resolve_dynamic_bounds.
4549 (resolve_dynamic_array): New function, mostly extracted from
4550 resolve_dynamic_bounds.
4551 (resolve_dynamic_bounds): Delete.
4552 (resolve_dynamic_type): Reimplement. Add handling of
4553 TYPE_CODE_RANGE types.
4554
4d072ce4
JB
45552014-04-28 Joel Brobecker <brobecker@adacore.com>
4556
4557 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4558 handling of parallel ___XA types.
4559
52865325
JB
45602014-04-28 Joel Brobecker <brobecker@adacore.com>
4561
4562 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4563 unnecessary second call to static_unwrap_type.
4564
433e77fa
HZ
45652014-04-27 Hui Zhu <hui@codesourcery.com>
4566
4567 * stack.c (print_frame_info): Call do_gdb_disassembly with
4568 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4569
b51a69ee
DE
45702014-04-26 Doug Evans <xdje42@gmail.com>
4571
4572 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4573
7ae1a6a6
PA
45742014-04-25 Pedro Alves <palves@redhat.com>
4575
4576 PR server/16255
4577 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4578 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4579 and newline from built string.
4580 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4581 (linux_ptrace_attach_fail_reason): ... this.
4582 * linux-nat.c (linux_nat_attach): Adjust to use
4583 linux_ptrace_attach_fail_reason.
4584
4082afcc
PA
45852014-04-25 Pedro Alves <palves@redhat.com>
4586
4587 * remote.c (struct remote_state): Remove multi_process_aware,
4588 non_stop_aware, cond_tracepoints, cond_breakpoints,
4589 breakpoint_commands, fast_tracepoints, static_tracepoints,
4590 install_in_trace, disconnected_tracing,
4591 enable_disable_tracepoints, string_tracing, and
4592 augmented_libraries_svr4_read fields.
4593 (remote_multi_process_p): Move further below in the file.
4594 (struct packet_config): Add comments.
4595 (update_packet_config): Delete function.
4596 (show_packet_config_cmd): Use packet_config_support.
4597 (add_packet_config_cmd): Use NULL as set callback.
4598 (packet_ok): "set remote foo-packet"-style commands no longer
4599 change config->supported -- adjust.
4600 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4601 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4602 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4603 (PACKET_QNonStop, PACKET_multiprocess_feature)
4604 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4605 (PACKET_DisconnectedTracing_feature)
4606 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4607 (set_remote_protocol_packet_cmd): Delete function.
4608 (packet_config_support, packet_support): New functions.
4609 (set_remote_protocol_Z_packet_cmd): Don't call
4610 update_packet_config.
4611 (remote_query_attached, remote_pass_signals)
4612 (remote_program_signals, remote_threads_info)
4613 (remote_threads_extra_info, remote_start_remote): Use
4614 packet_support.
4615 (remote_start_remote): Use packet_config_support and
4616 packet_support.
4617 (init_all_packet_configs): Set all packets to unknown support,
4618 instead of calling update_packet_config.
4619 (remote_check_symbols): Use packet_support.
4620 (remote_supported_packet): Unconditionally set the packet config's
4621 support status.
4622 (remote_multi_process_feature, remote_non_stop_feature)
4623 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4624 (remote_breakpoint_commands_feature)
4625 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4626 (remote_install_in_trace_feature)
4627 (remote_disconnected_tracing_feature)
4628 (remote_enable_disable_tracepoint_feature)
4629 (remote_string_tracing_feature)
4630 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4631 (remote_protocol_features): Adjust to use remote_supported_packet
4632 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4633 "ConditionalTracepoints", "ConditionalBreakpoints",
4634 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4635 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4636 "EnableDisableTracepoints", and "tracenz".
4637 (remote_query_supported): Use packet_support.
4638 (remote_open_1): Adjust.
4639 (extended_remote_attach_1): Use packet_support. Switch on the
4640 result of packet_ok instead of checking whether the packet ended
4641 up disabled.
4642 (remote_vcont_resume): Use packet_support.
4643 (remote_resume, remote_stop_ns, fetch_register_using_p)
4644 (remote_prepare_to_store, store_register_using_P)
4645 (check_binary_download, remote_write_bytes): Use packet_support.
4646 (remote_vkill): Use packet_support. Switch on the result of
4647 packet_ok instead of checking whether the packet ended up
4648 disabled.
4649 (extended_remote_supports_disable_randomization): Use
4650 packet_support.
4651 (extended_remote_run): Switch on the result of packet_ok instead
4652 of checking whether the packet ended up disabled.
4653 (remote_insert_breakpoint, remote_remove_breakpoint)
4654 (remote_insert_watchpoint, remote_remove_watchpoint)
4655 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4656 packet_support.
4657 (remote_search_memory): Use packet_config_support.
4658 (remote_get_thread_local_address, remote_get_tib_address)
4659 (remote_hostio_send_command, remote_can_execute_reverse): Use
4660 packet_support.
4661 (remote_supports_cond_tracepoints)
4662 (remote_supports_cond_breakpoints)
4663 (remote_supports_fast_tracepoints)
4664 (remote_supports_static_tracepoints)
4665 (remote_supports_install_in_trace)
4666 (remote_supports_enable_disable_tracepoint)
4667 (remote_supports_string_tracing)
4668 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4669 the packet config says the feature is enabled or disabled.
4670 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4671 (remote_get_trace_status): Use packet_support.
4672 (remote_set_disconnected_tracing): Adjust to check whether the
4673 feature is enabled with packet_support.
4674 (remote_set_trace_buffer_size, remote_use_agent)
4675 (remote_can_use_agent, remote_supports_btrace): Use
4676 packet_support.
4677 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4678 Use packet_config_support.
4679 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4680 the packet config says the feature is enabled or disabled.
4681 (set_range_stepping): Use packet_support.
4682
bdb52a22
TT
46832014-04-25 Tom Tromey <tromey@redhat.com>
4684
4685 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4686 argument.
4687
e9475ead
SA
46882014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4689
4690 * NEWS: Mention support for C99 variable length arrays.
4691
82eacd52
JB
46922014-04-24 Joel Brobecker <brobecker@adacore.com>
4693
4694 * ada-lang.c (standard_exc): Expand introductory comment.
4695
01f9f808
MS
46962014-04-24 Michael Sturm <michael.sturm@mintel.com>
4697 Walfred Tedeschi <walfred.tedeschi@intel.com>
4698
4699 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4700 AVX512 registers.
4701 (amd64_linux_read_description): Add code to handle AVX512 xstate
4702 mask and return respective tdesc.
4703 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4704 and features/i386/x32-avx512-linux.c.
4705 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4706 (amd64_linux_core_read_description): Add code to handle AVX512
4707 xstate mask and return respective tdesc.
4708 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4709 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4710 calculation.
4711 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4712 (tdesc_amd64_avx512_linux): New prototype.
4713 (tdesc_x32_avx512_linux): Likewise.
4714 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4715 features/i386/x32-avx512.c.
4716 (amd64_ymm_avx512_names): New register names for pseudo
4717 registers YMM16-31.
4718 (amd64_ymmh_avx512_names): New register names for raw registers
4719 YMMH16-31.
4720 (amd64_k_names): New register names for K registers.
4721 (amd64_zmmh_names): New register names for ZMM raw registers.
4722 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4723 (amd64_xmm_avx512_names): New register names for XMM16-31
4724 registers.
4725 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4726 registers.
4727 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4728 if feature is present.
4729 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4730 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4731 (AMD64_NUM_REGS): Adjust to new number of registers.
4732 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4733 registers supplied via XSTATE by AVX512 registers.
4734 (i386_linux_read_description): Add case for AVX512.
4735 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4736 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4737 (i386_linux_core_read_description): Add case for AVX512.
4738 (i386_linux_init_abi): Install supported register note section
4739 for AVX512.
4740 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4741 AVX512.
4742 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4743 registers to be number of zmm7h + 1.
4744 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4745 * i386-tdep.c: Include features/i386/i386-avx512.c.
4746 (i386_zmm_names): Add ZMM pseudo register names array.
4747 (i386_zmmh_names): Add ZMM raw register names array.
4748 (i386_k_names): Add K raw register names array.
4749 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4750 registers. AVX512 has 16 more ZMM registers than there are YMM
4751 registers.
4752 (i386_zmmh_regnum_p): Add function to look up register number of
4753 ZMM raw registers.
4754 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4755 (i386_k_regnum_p): Likewise for K raw registers.
4756 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4757 registers added by AVX512.
4758 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4759 registers added by AVX512.
4760 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4761 added by AVX512.
4762 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4763 (i386_pseudo_register_name): Add ZMM pseudo registers.
4764 (i386_zmm_type): Construct and return vector registers type for ZMM
4765 registers.
4766 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4767 ZMM0-31 pseudo registers and K registers.
4768 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4769 and YMM16-31 registers from register cache.
4770 (i386_pseudo_register_write): Add code to write K, ZMM and
4771 YMM16-31 registers.
4772 (i386_register_reggroup_p): Add code to include/exclude AVX512
4773 registers in/from respective register groups.
4774 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4775 registers if feature is present in xcr0.
4776 (i386_gdbarch_init): Add code to initialize AVX512 feature
4777 variables in tdep structure, wire in pseudo registers and call
4778 initialize_tdesc_i386_avx512.
4779 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4780 variables.
4781 (i386_regnum): Add AVX512 registers.
4782 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4783 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4784 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4785 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4786 512 bits wide.
4787 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4788 (i386_ymm_avx512_regnum_p): Likewise.
4789 (i386_k_regnum_p): Likewise.
4790 (i386_zmm_regnum_p): Likewise.
4791 (i386_zmmh_regnum_p): Likewise.
4792 * i387-tdep.c : Update year in copyright notice.
4793 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4794 XSAVE buffer.
4795 (XSAVE_YMM_AVX512_ADDR): New macro.
4796 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4797 XSAVE buffer.
4798 (XSAVE_XMM_AVX512_ADDR): New macro.
4799 (xsave_avx512_k_offset): New table for K register offsets in
4800 XSAVE buffer.
4801 (XSAVE_AVX512_K_ADDR): New macro.
4802 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4803 in XSAVE buffer.
4804 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4805 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4806 buffer.
4807 (i387_collect_xsave): Add code to collect AVX512 registers from
4808 XSAVE buffer.
4809 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4810 of XMM16-31 registers.
4811 (I387_NUM_K_REGS): New define for number of K registers.
4812 (I387_K0_REGNUM): New define for K0 register number.
4813 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4814 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4815 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4816 registers.
4817 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4818 (I387_XMM16_REGNUM): New define for XMM16 register number.
4819 (I387_YMM0_REGNUM): New define for YMM0 register number.
4820 (I387_KEND_REGNUM): New define for last K register number.
4821 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4822 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4823 number.
4824 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4825 number.
4826 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4827 size.
4828 * features/Makefile: Add AVX512 related files.
4829 * features/i386/32bit-avx512.xml: New file.
4830 * features/i386/64bit-avx512.xml: Likewise.
4831 * features/i386/amd64-avx512-linux.c: Likewise.
4832 * features/i386/amd64-avx512-linux.xml: Likewise.
4833 * features/i386/amd64-avx512.c: Likewise.
4834 * features/i386/amd64-avx512.xml: Likewise.
4835 * features/i386/i386-avx512-linux.c: Likewise.
4836 * features/i386/i386-avx512-linux.xml: Likewise.
4837 * features/i386/i386-avx512.c: Likewise.
4838 * features/i386/i386-avx512.xml: Likewise.
4839 * features/i386/x32-avx512-linux.c: Likewise.
4840 * features/i386/x32-avx512-linux.xml: Likewise.
4841 * features/i386/x32-avx512.c: Likewise.
4842 * features/i386/x32-avx512.xml: Likewise.
4843 * regformats/i386/amd64-avx512-linux.dat: New file.
4844 * regformats/i386/amd64-avx512.dat: Likewise.
4845 * regformats/i386/i386-avx512-linux.dat: Likewise.
4846 * regformats/i386/i386-avx512.dat: Likewise.
4847 * regformats/i386/x32-avx512-linux.dat: Likewise.
4848 * regformats/i386/x32-avx512.dat: Likewise.
4849 * NEWS: Add note about new support for AVX512.
4850
4851
08351840
PA
48522014-04-23 Pedro Alves <palves@redhat.com>
4853
4854 * breakpoint.c (insert_bp_location): Tolerate errors if the
4855 breakpoint is set in a user-loaded objfile.
4856 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4857 location is marked shlib_disabled. If the breakpoint is set in a
4858 user-loaded objfile is a GDB-side memory breakpoint, validate it
4859 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4860 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4861 flag.
4862 * mem-break.c (memory_validate_breakpoint): New function.
4863 * objfiles.c (userloaded_objfile_contains_address_p): New
4864 function.
4865 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4866 * target.h (memory_validate_breakpoint): New declaration.
4867
076855f9
PA
48682014-04-23 Pedro Alves <palves@redhat.com>
4869
4870 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4871 the breakpoint is set in a shared library, only suppress
4872 errors for software breakpoints, not hardware breakpoints.
4873
483805cf
PA
48742014-04-22 Pedro Alves <palves@redhat.com>
4875
4876 * infrun.c (schedlock_applies): New function, factored out from
4877 find_thread_needs_step_over.
4878 (find_thread_needs_step_over): Use it.
4879 (switch_back_to_stepped_thread): Always clear trap_expected if the
4880 step over is finished. Return early if scheduler locking applies.
4881 Look for the stepping thread and a potential step-over thread with
4882 a single loop.
4883 (currently_stepping_or_nexting_callback): Delete.
4884
a75fef0e
NC
48852014-04-22 Nick Clifton <nickc@redhat.com>
4886
4887 * NEWS: Mention that ARM sim now supports tracing.
4888
48b6e87e
YQ
48892014-04-22 Yao Qi <yao@codesourcery.com>
4890
4891 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4892 to ...
4893 * tracefile.c (tracefile_fetch_registers): ... it. New
4894 function.
4895 * tracefile.h (tracefile_fetch_registers): Declare.
4896 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4897 tracefile_fetch_registers.
4898
17617f2d
EZ
48992014-04-19 Eli Zaretskii <eliz@gnu.org>
4900
4901 PR gdb/14018
4902 * windows-nat.c (thread_rec): Don't display a warning when
4903 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4904 fails for any reason, set th->suspended to -1, so that we don't
4905 try to resume such a thread. Also, don't return NULL in these
4906 cases, to avoid completely ruin the session due to "PC register is
4907 not available" error.
4908 (do_windows_fetch_inferior_registers): Check errors in
4909 GetThreadContext call.
4910 (windows_continue): Accept an additional argument KILLED; if not
4911 zero, ignore errors in the SetThreadContext call, since the
4912 inferior was killed and is shutting down.
4913 (windows_resume, get_windows_debug_event)
4914 (windows_create_inferior, windows_mourn_inferior)
4915 (windows_kill_inferior): All callers of windows_continue changed
4916 to adjust to its new calling sequence.
4917
5723a6fd
YQ
49182014-04-19 Yao Qi <yao@codesourcery.com>
4919
4920 * ctf.c (ctf_open): Call post_create_inferior.
4921
614d5099
YQ
49222014-04-19 Yao Qi <yao@codesourcery.com>
4923
4924 * ctf.c (handle_id): New static variable.
4925 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4926 value. Get the declaration of event "register" and get length
4927 of field "contents".
4928
dac3e710
YQ
49292014-04-19 Yao Qi <yao@codesourcery.com>
4930
4931 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4932
2bca57ba
SC
49332014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4934
4935 * valops.c (oload_method_static): Remove unnecessary argument
4936 METHOD. Update all callers.
4937
51d48146
PA
49382014-04-18 Pedro alves <palves@redhat.com>
4939 Tom Tromey <tromey@redhat.com>
4940
4941 PR backtrace/15558
4942 * frame.c (get_prev_frame_1): Rename to ...
4943 (get_prev_frame_always): ... this, and make extern. Adjust.
4944 (skip_artificial_frames): Use get_prev_frame_always.
4945 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4946 (get_frame_unwind_stop_reason): Adjust to rename.
4947 * frame.h (get_prev_frame_always): Declare.
4948 * inline-frame.c: Include frame.h.
4949 (inline_frame_this_id): Use get_prev_frame_always.
4950
1bdad2e0
TG
49512014-04-18 Tristan Gingold <gingold@adacore.com>
4952
4953 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4954 code by using bfd_mach_o_get_base_address.
4955
7ce16bd4
UW
49562014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4957
4958 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4959 (spu_ax_pseudo_register_collect): New function.
4960 (spu_ax_pseudo_register_push_stack): Likewise.
4961 (spu_dwarf_reg_to_regnum): Likewise.
4962 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4963
2ed3c037
UW
49642014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4965
4966 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4967 Replace FRAME argument with FRAME_ID.
4968 * gdbarch.c, gdbarch.h: Regenerate.
4969 * findvar.c (default_value_from_register): Add GDBARCH argument;
4970 replace FRAME by FRAME_ID. No longer call get_frame_id.
4971 (value_from_register): Update call to gdbarch_value_from_register.
4972 * value.h (default_value_from_register): Update prototype.
4973 * s390-linux-tdep.c (s390_value_from_register): Update interface
4974 and call to default_value_from_register.
4975 * spu-tdep.c (spu_value_from_register): Likewise.
4976
4977 * findvar.c (address_from_register): Remove TYPE argument.
4978 Do not call value_from_register; use gdbarch_value_from_register
4979 with null_frame_id instead.
4980 * value.h (address_from_register): Update prototype.
4981 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4982 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4983 address_from_register interface change.
4984
71e50e83
YQ
49852014-04-17 Yao Qi <yao@codesourcery.com>
4986
4987 * gdbtypes.h: Update comments to link to types and macros'
4988 definitions.
4989
7a23c549
SC
49902014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4991
4992 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4993
22869d73
KS
49942014-04-16 Keith Seitz <keiths@redhat.com>
4995
4996 PR gdb/15827
4997 * dwarf2read.c (skip_one_die): Check that all relative-offset
4998 sibling DIEs fall within range of the current reader's buffer.
4999 (read_partial_die): Likewise.
5000
c4f87ca6
KS
50012014-04-16 Keith Seitz <keiths@redhat.com>
5002
5003 PR c++/16597
5004 * cp-namespace.c (lookup_symbol_file): If the type name of
5005 `this' is NULL, return immediately.
5006
b50c8614
KS
50072014-04-14 Keith Seitz <keiths@redhat.com>
5008
5009 PR c++/16253
5010 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5011 from symbol_matches_domain in symtab.c. All local callers
5012 of symbol_matches_domain updated.
5013 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5014 search STRUCT_DOMAIN.
5015 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5016 independently. standard_lookup will do that automatically.
5017 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5018 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5019 (cp_lookup_symbol_in_namespace): Likewise.
5020 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5021 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5022 may return a STRUCT_DOMAIN match.
5023 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5024 * cp-support.c: Include language.h.
5025 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5026 VAR_DOMAIN.
5027 * psymtab.c (match_partial_symbol): Compare the requested
5028 domain with the symbol's domain directly.
5029 (lookup_partial_symbol): Likewise.
5030 * symtab.c (lookup_symbol_in_language): Explain when/why
5031 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5032 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5033 appropriate languages.
5034 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5035 and moved to ada-lang.c
5036 (lookup_block_symbol): Explain that this function only returns
5037 symbol matching the requested DOMAIN.
5038 Compare the requested domain with the symbol's domain directly.
5039 (iterate_over_symbols): Compare the requested domain with the
5040 symbol's domain directly.
5041 * symtab.h (symbol_matches_domain): Remove.
5042
3d567982
TT
50432014-04-14 Tom Tromey <tromey@redhat.com>
5044
5045 PR c++/15246:
5046 * c-exp.y (type_aggregate_p): New function.
5047 (qualified_name, classify_inner_name): Use it.
5048 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5049 and TYPE_TARGET_TYPE of an enum type.
5050 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5051 an enum type.
5052 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5053 handle TYPE_DECLARED_CLASS.
5054 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5055 types.
5056 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5057 * valops.c (enum_constant_from_type): New function.
5058 (value_aggregate_elt): Use it.
5059 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5060 TYPE_CODE_ENUM.
5061
c848d642
TT
50622014-04-14 Tom Tromey <tromey@redhat.com>
5063
5064 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5065 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5066 const.
5067 * value.h (value_aggregate_elt): Update.
5068
0626fc76
TT
50692014-04-14 Tom Tromey <tromey@redhat.com>
5070
5071 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5072
5ecaaa66
SA
50732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5074
5075 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5076 (evaluate_subexp_standard): Pass noside argument.
5077 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5078 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5079 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5080 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5081 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5082
1612e0c0
SA
50832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5084
5085 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5086 points to a constant blob.
5087
c451ebe5
SA
50882014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5089
5090 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5091 property and store it as the high bound and flag the range accordingly.
5092 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5093 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5094 * gdbtypes.h (enum range_flags): New enum.
5095 (struct range_bounds): Add flags member.
5096
1d42e4c4
SA
50972014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5098
5099 * c-typeprint.c (c_type_print_varspec_suffix): Added
5100 check for not yet resolved high bound. If unresolved, print
5101 "variable length" string to the console instead of random
5102 length.
5103
9f1f738a
SA
51042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5105
5106 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5107 value.
5108 (ada_template_to_fixed_record_type_1): Likewise.
5109 (ada_to_fixed_type_1): Likewise.
5110 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5111 (cp_print_value): Likewise.
5112 * d-valprint.c (dynamic_array_type): Likewise.
5113 * findvar.c (address_of_variable): Likewise.
5114 * jv-valprint.c (java_value_print): Likewise.
5115 * valops.c (value_ind): Likewise.
5116 * value.c (coerce_ref): Likewise.
5117
3c8452d4
SA
51182014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5119
5120 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5121 value and retrieve the dynamic type size.
5122
4ad88275
SA
51232014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5124
5125 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5126 passed to sizeof is dynamic evaluate the argument to compute the length.
5127
80180f79
SA
51282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5129 Joel Brobecker <brobecker@adacore.com>
5130
5131 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5132 (dwarf2_evaluate_property): New function.
5133 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5134 * dwarf2read.c (attr_to_dynamic_prop): New function.
5135 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5136 attribute.
5137 * gdbtypes.c: Include dwarf2loc.h.
5138 (is_dynamic_type): New function.
5139 (resolve_dynamic_type): New function.
5140 (resolve_dynamic_bounds): New function.
5141 (get_type_length): New function.
5142 (check_typedef): Use get_type_length to compute type length.
5143 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5144 (TYPE_LOW_BOUND_KIND): New macro.
5145 (is_dynamic_type): New function prototype.
5146 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5147 to resolve dynamic properties of the type. Update comment.
5148 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5149
a1556843
RH
51502014-04-14 Richard Henderson <rth@redhat.com>
5151
5152 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5153
0be03e84
DE
51542014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5155 Doug Evans <xdje42@gmail.com>
5156
5157 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5158 dereference TYPE_CODE_REF values.
5159
6b662e19
JB
51602014-04-11 Joel Brobecker <brobecker@adacore.com>
5161
5162 Revert the following changes due to regressions:
5163
5164 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5165 (dwarf2_evaluate_property): New function.
5166 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5167 * dwarf2read.c (attr_to_dynamic_prop): New function.
5168 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5169 attribute.
5170 * gdbtypes.c: Include dwarf2loc.h.
5171 (is_dynamic_type): New function.
5172 (resolve_dynamic_type): New function.
5173 (resolve_dynamic_bounds): New function.
5174 (get_type_length): New function.
5175 (check_typedef): Use get_type_length to compute type length.
5176 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5177 (TYPE_LOW_BOUND_KIND): New macro.
5178 (is_dynamic_type): New function prototype.
5179 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5180 to resolve dynamic properties of the type. Update comment.
5181 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5182
5183 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5184 passed to sizeof is dynamic evaluate the argument to compute the length.
5185
5186 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5187 value and retrieve the dynamic type size.
5188
5189 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5190 (ada_template_to_fixed_record_type_1): Likewise.
5191 (ada_to_fixed_type_1): Likewise.
5192 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5193 (cp_print_value): Likewise.
5194 * d-valprint.c (dynamic_array_type): Likewise.
5195 * eval.c (evaluate_subexp_with_coercion): Likewise.
5196 * findvar.c (address_of_variable): Likewise.
5197 * jv-valprint.c (java_value_print): Likewise.
5198 * valops.c (value_ind): Likewise.
5199 * value.c (coerce_ref): Likewise.
5200
5201 * c-typeprint.c (c_type_print_varspec_suffix): Added
5202 check for not yet resolved high bound. If unresolved, print
5203 "variable length" string to the console instead of random
5204 length.
5205
5206 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5207 property and store it as the high bound and flag the range accordingly.
5208 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5209 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5210 * gdbtypes.h (enum range_flags): New enum.
5211 (struct range_bounds): Add flags member.
5212
5213 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5214 points to a constant blob.
5215
5216 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5217 (evaluate_subexp_standard): Pass noside argument.
5218 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5219 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5220 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5221 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5222 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5223
245a5f0b
KS
52242014-04-11 Keith Seitz <keiths@redhat.com>
5225
5226 PR c++/16675
5227 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5228 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5229 reference types.
5230
3bce8237
SA
52312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5232
5233 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5234 (evaluate_subexp_standard): Pass noside argument.
5235 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5236 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5237 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5238 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5239 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5240
92b09522
SA
52412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5242
5243 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5244 points to a constant blob.
5245
e1969afb
SA
52462014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5247
5248 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5249 property and store it as the high bound and flag the range accordingly.
5250 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5251 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5252 * gdbtypes.h (enum range_flags): New enum.
5253 (struct range_bounds): Add flags member.
5254
b86138fb
SA
52552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5256
5257 * c-typeprint.c (c_type_print_varspec_suffix): Added
5258 check for not yet resolved high bound. If unresolved, print
5259 "variable length" string to the console instead of random
5260 length.
5261
bcd629a4
SA
52622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5263
5264 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5265 (ada_template_to_fixed_record_type_1): Likewise.
5266 (ada_to_fixed_type_1): Likewise.
5267 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5268 (cp_print_value): Likewise.
5269 * d-valprint.c (dynamic_array_type): Likewise.
5270 * eval.c (evaluate_subexp_with_coercion): Likewise.
5271 * findvar.c (address_of_variable): Likewise.
5272 * jv-valprint.c (java_value_print): Likewise.
5273 * valops.c (value_ind): Likewise.
5274 * value.c (coerce_ref): Likewise.
5275
04b19544
SA
52762014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5277
5278 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5279 value and retrieve the dynamic type size.
5280
26cb189f
SA
52812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5282
5283 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5284 passed to sizeof is dynamic evaluate the argument to compute the length.
5285
37c1ab67
SA
52862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5287
5288 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5289 (dwarf2_evaluate_property): New function.
5290 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5291 * dwarf2read.c (attr_to_dynamic_prop): New function.
5292 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5293 attribute.
5294 * gdbtypes.c: Include dwarf2loc.h.
5295 (is_dynamic_type): New function.
5296 (resolve_dynamic_type): New function.
5297 (resolve_dynamic_bounds): New function.
5298 (get_type_length): New function.
5299 (check_typedef): Use get_type_length to compute type length.
5300 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5301 (TYPE_LOW_BOUND_KIND): New macro.
5302 (is_dynamic_type): New function prototype.
5303 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5304 to resolve dynamic properties of the type. Update comment.
5305 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5306
729efb13
SA
53072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5308
5309 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5310 declaring high/low bounds and change uses accordingly. Call
5311 create_range_type instead of create_static_range_type.
5312 * gdbtypes.c (create_range_type): New function.
5313 (create_range_type): Convert bounds into struct bound_prop and pass
5314 them to create_range_type.
5315 * gdbtypes.h (struct bound_prop): New struct.
5316 (create_range_type): New function prototype.
5317 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5318 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5319 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5320 part of the bound.
5321 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5322
0c9c3474
SA
53232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5324
5325 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5326 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5327 * ada-lang.c: All uses of create_range_type updated.
5328 * coffread.c: All uses of create_range_type updated.
5329 * dwarf2read.c: All uses of create_range_type updated.
5330 * f-exp.y: All uses of create_range_type updated.
5331 * m2-valprint.c: All uses of create_range_type updated.
5332 * mdebugread.c: All uses of create_range_type updated.
5333 * stabsread.c: All uses of create_range_type updated.
5334 * valops.c: All uses of create_range_type updated.
5335 * valprint.c: All uses of create_range_type updated.
5336
9d497a19
PA
53372014-04-10 Pedro Alves <palves@redhat.com>
5338
5339 * breakpoint.c (single_step_breakpoints)
5340 (single_step_gdbarch): Move up in the file.
5341 (one_breakpoint_xfer_memory): New function, factored out from ...
5342 (breakpoint_xfer_memory): ... here. Also process single-step
5343 breakpoints.
5344
15a9128a
TG
53452014-04-09 Tristan Gingold <gingold@adacore.com>
5346
5347 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5348 comments.
5349 (darwin_decode_exception_message): Free port only after use.
5350
9c97a070
PL
53512014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5352
5353 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5354 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5355 when setting the size of call_length.
5356
7af389b8
SC
53572014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5358
5359 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5360 dereference TYPE_CODE_REF values.
5361
86ad98c3
JB
53622014-04-07 Joel Brobecker <brobecker@adacore.com>
5363
5364 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5365 end of warning message.
5366
b0aeadb3
DE
53672014-04-03 Doug Evans <dje@google.com>
5368
5369 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5370 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5371
5979d6b6
AM
53722014-04-02 Alan Modra <amodra@gmail.com>
5373
5374 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5375 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5376 (struct symbol_file_add_from_memory_args): Add size field.
5377 (find_vdso_size): New function.
5378 (add_vsyscall_page): Attempt to find vdso size.
5379
0d60c288
DE
53802014-04-01 Doug Evans <dje@google.com>
5381
5382 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5383
a41f2563
TG
53842014-04-01 Tristan Gingold <gingold@adacore.com>
5385
5386 * darwin-nat.c (darwin_encode_reply): Add prototype.
5387 (darwin_decode_exception_message): Reply to unknown inferiors.
5388 (darwin_decode_message): Handle message by id. Ignore message
5389 to unknown inferior.
5390 (darwin_wait): Discard unknown messages, add debug trace.
5391
11a865c8
DE
53922014-03-31 Doug Evans <dje@google.com>
5393
5394 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5395 comp_dir_string.
5396
770e7fc7
DE
53972014-03-31 Doug Evans <dje@google.com>
5398
5399 New option "set print symbol-loading".
5400 * NEWS: Mention it.
5401 * solib.c (solib_read_symbols): Only print symbol loading messages
5402 if requested.
5403 (solib_add): If symbol loading is in "brief" mode, notify user
5404 symbols are being loaded.
5405 (reload_shared_libraries_1): Ditto.
5406 * symfile.c (print_symbol_loading_off): New static global.
5407 (print_symbol_loading_brief): New static global.
5408 (print_symbol_loading_full): New static global.
5409 (print_symbol_loading_enums): New static global.
5410 (print_symbol_loading): New static global.
5411 (print_symbol_loading_p): New function.
5412 (symbol_file_add_with_addrs): Only print symbol loading messages
5413 if requested.
5414 (_initialize_symfile): Register "print symbol-loading" set/show
5415 command.
5416 * symfile.h (print_symbol_loading_p): Declare.
5417
c32c64b7
DE
54182014-03-30 Doug Evans <xdje42@gmail.com>
5419
5420 * infrun.c (set_last_target_status): New function.
5421 (handle_inferior_event): Call it.
5422
7c0bc051
DE
54232014-03-30 Doug Evans <xdje42@gmail.com>
5424
5425 * inferior.h (enum stop_kind): Improve comment.
5426
8776cfe9
JB
54272014-03-28 Joel Brobecker <brobecker@adacore.com>
5428
5429 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5430 a reference, strip the reference layer before calling
5431 the lang_ops value_has_mutated callback.
5432
410a0ff2
SDJ
54332014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5434
5435 Remove some globals from our parser.
5436 * language.c (unk_lang_parser): Add "struct parser_state"
5437 argument.
5438 * language.h (struct language_defn) <la_parser>: Likewise.
5439 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5440 (initialize_expout): Add "struct parser_state" argument.
5441 Rewrite function to use the parser state.
5442 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5443 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5444 write_exp_elt_longcst, write_exp_elt_dblcst,
5445 write_exp_elt_decfloatcst, write_exp_elt_type,
5446 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5447 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5448 write_dollar_variable): Likewise.
5449 (parse_exp_in_context_1): Use parser state.
5450 (insert_type_address_space): Add "struct parser_state" argument.
5451 Use parser state.
5452 (increase_expout_size): New function.
5453 * parser-defs.h: Forward declare "struct language_defn" and
5454 "struct parser_state".
5455 (expout, expout_size, expout_ptr): Remove extern declarations.
5456 (parse_gdbarch, parse_language): Rewrite macro declarations to
5457 accept the parser state.
5458 (struct parser_state): New struct.
5459 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5460 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5461 write_exp_elt_decfloatcst, write_exp_elt_type,
5462 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5463 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5464 write_exp_msymbol, write_dollar_variable,
5465 mark_struct_expression, insert_type_address_space): Add "struct
5466 parser_state" argument.
5467 (increase_expout_size): New function.
5468 * utils.c (do_clear_parser_state): New function.
5469 (make_cleanup_clear_parser_state): Likewise.
5470 * utils.h (make_cleanup_clear_parser_state): New function
5471 prototype.
5472 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5473 Update calls to write_exp* in order to pass the parser state.
5474 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5475 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5476 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5477 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5478 * stap-probe.c (stap_parse_register_operand): Likewise.
5479 (stap_parse_single_operand): Likewise.
5480 (stap_parse_argument_1): Likewise.
5481 (stap_parse_argument): Use parser state.
5482 * stap-probe.h: Include "parser-defs.h".
5483 (struct stap_parse_info) <pstate>: New field.
5484 * c-exp.y (parse_type): Rewrite to use parser state.
5485 (yyparse): Redefine to c_parse_internal.
5486 (pstate): New global variable.
5487 (parse_number): Add "struct parser_state" argument.
5488 (write_destructor_name): Likewise.
5489 (type_exp): Update calls to write_exp* and similars in order to
5490 use parser state.
5491 (exp1, exp, variable, qualified_name, space_identifier,
5492 typename, typebase): Likewise.
5493 (write_destructor_name, parse_number, lex_one_token,
5494 classify_name, classify_inner_name, c_parse): Add "struct
5495 parser_state" argument. Update function to use parser state.
5496 * c-lang.h: Forward declare "struct parser_state".
5497 (c_parse): Add "struct parser_state" argument.
5498 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5499 (yyparse): Redefine macro to ada_parse_internal.
5500 (pstate): New variable.
5501 (write_int, write_object_renaming, write_var_or_type,
5502 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5503 type_int, type_long, type_long_long, type_float, type_double,
5504 type_long_double, type_char, type_boolean, type_system_address):
5505 Add "struct parser_state" argument.
5506 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5507 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5508 var_or_type, aggregate, aggregate_component_list,
5509 positional_list, others, component_group,
5510 component_associations): Update calls to write_exp* and similar
5511 functions in order to use parser state.
5512 (ada_parse, write_var_from_sym, write_int,
5513 write_exp_op_with_string, write_object_renaming,
5514 find_primitive_type, write_selectors, write_ambiguous_var,
5515 write_var_or_type, write_name_assoc, type_int, type_long,
5516 type_long_long, type_float, type_double, type_long_double,
5517 type_char, type_boolean, type_system_address): Add "struct
5518 parser_state" argument. Adjust function to use parser state.
5519 * ada-lang.c (parse): Likewise.
5520 * ada-lang.h: Forward declare "struct parser_state".
5521 (ada_parse): Add "struct parser_state" argument.
5522 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5523 calls to both functions.
5524 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5525 parser state.
5526 (yyparse): Redefine macro to f_parse_internal.
5527 (pstate): New variable.
5528 (parse_number): Add "struct parser_state" argument.
5529 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5530 and similars in order to use parser state.
5531 (parse_number): Adjust code to use parser state.
5532 (yylex): Likewise.
5533 (f_parse): New function.
5534 * f-lang.h: Forward declare "struct parser_state".
5535 (f_parse): Add "struct parser_state" argument.
5536 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5537 parser state.
5538 (yyparse): Redefine macro for java_parse_internal.
5539 (pstate): New variable.
5540 (push_expression_name, push_expression_name, insert_exp): Add
5541 "struct parser_state" argument.
5542 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5543 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5544 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5545 PostIncrementExpression, PostDecrementExpression,
5546 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5547 UnaryExpressionNotPlusMinus, CastExpression,
5548 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5549 RelationalExpression, EqualityExpression, AndExpression,
5550 ExclusiveOrExpression, InclusiveOrExpression,
5551 ConditionalAndExpression, ConditionalOrExpression,
5552 ConditionalExpression, Assignment, LeftHandSide): Update
5553 calls to write_exp* and similars in order to use parser state.
5554 (parse_number): Ajust code to use parser state.
5555 (yylex): Likewise.
5556 (java_parse): New function.
5557 (push_variable): Add "struct parser_state" argument. Adjust
5558 code to user parser state.
5559 (push_fieldnames, push_qualified_expression_name,
5560 push_expression_name, insert_exp): Likewise.
5561 * jv-lang.h: Forward declare "struct parser_state".
5562 (java_parse): Add "struct parser_state" argument.
5563 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5564 parser state.
5565 (yyparse): Redefine macro to m2_parse_internal.
5566 (pstate): New variable.
5567 (type_exp, exp, fblock, variable, type): Update calls to
5568 write_exp* and similars to use parser state.
5569 (yylex): Likewise.
5570 (m2_parse): New function.
5571 * m2-lang.h: Forward declare "struct parser_state".
5572 (m2_parse): Add "struct parser_state" argument.
5573 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5574 * objc-lang.h: Forward declare "struct parser_state".
5575 (end_msglist): Add "struct parser_state" argument.
5576 * p-exp.y (parse_type): Rewrite macro to use parser state.
5577 (yyparse): Redefine macro to pascal_parse_internal.
5578 (pstate): New variable.
5579 (parse_number): Add "struct parser_state" argument.
5580 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5581 write_exp* and similars in order to use parser state.
5582 (parse_number, yylex): Adjust code to use parser state.
5583 (pascal_parse): New function.
5584 * p-lang.h: Forward declare "struct parser_state".
5585 (pascal_parse): Add "struct parser_state" argument.
5586 * go-exp.y (parse_type): Rewrite macro to use parser state.
5587 (yyparse): Redefine macro to go_parse_internal.
5588 (pstate): New variable.
5589 (parse_number): Add "struct parser_state" argument.
5590 (type_exp, exp1, exp, variable, type): Update calls to
5591 write_exp* and similars in order to use parser state.
5592 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5593 to use parser state.
5594 (go_parse): Likewise.
5595 * go-lang.h: Forward declare "struct parser_state".
5596 (go_parse): Add "struct parser_state" argument.
5597
342587c4
DE
55982014-03-27 Doug Evans <dje@google.com>
5599
5600 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5601
33e80786
DE
56022014-03-27 Doug Evans <dje@google.com>
5603
5604 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5605 Remove argument abbrev_section. All callers updated.
5606
1dbab08b
DE
56072014-03-27 Doug Evans <dje@google.com>
5608
5609 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5610 addr_base, ranges_base.
5611
318d3177
KS
56122014-03-26 Keith Seitz <keiths@redhat.com>
5613
5614 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5615 types, not VAR_DOMAIN.
5616
1e54db15
SL
56172014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5618
5619 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5620 "ra" registers.
5621 * features/nios2-linux.c: Regenerated.
5622 * features/nios2.c: Regenerated.
5623
d3839ede
PA
56242014-03-25 Pedro Alves <palves@redhat.com>
5625
5626 * cli/cli-script.c (script_from_file): Force the interpreter to
5627 sync mode.
5628
7588d2ec
PL
56292014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5630
5631 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5632 small stack allocation.
5633
a6290449
TG
56342014-03-24 Tristan Gingold <gingold@adacore.com>
5635
5636 * darwin-nat.c (exc_server): Remove unused prototype.
5637 (darwin_dump_message): Correctly display data on x86_64.
5638 (darwin_encode_reply): Fix style.
5639 Add comments and fix indentation.
5640
31ae9d24 56412014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5642
5643 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5644
6339bfc4
DE
56452014-03-22 Doug Evans <xdje42@gmail.com>
5646
5647 * infcmd.c: Whitespace fixes.
5648 (interrupt_command): Merge two function comments into one.
5649
0a07590b
DE
56502014-03-22 Doug Evans <xdje42@gmail.com>
5651
5652 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5653 All uses updated.
5654
b55fbac4
YQ
56552014-03-22 Yao Qi <yao@codesourcery.com>
5656
5657 * remote.c (target_read_live_memory): Remove.
5658 (memory_xfer_live_readonly_partial): Rename it to
5659 remote_xfer_live_readonly_partial. Remove argument 'object'.
5660 All callers updated. Call remote_read_bytes_1
5661 instead of target_read_live_memory.
5662 * tracepoint.c (set_traceframe_number): Remove.
5663 (make_cleanup_restore_traceframe_number): Likewise .
5664 * tracepoint.h (set_traceframe_number): Remove declaration.
5665 (make_cleanup_restore_traceframe_number): Likewise.
5666
9217e74e
YQ
56672014-03-22 Yao Qi <yao@codesourcery.com>
5668
5669 * remote.c (remote_read_bytes): Move code on reading from the
5670 remote stub to ...
5671 (remote_read_bytes_1): ... here. New function.
5672
8acf9577
YQ
56732014-03-22 Yao Qi <yao@codesourcery.com>
5674
5675 * ctf.c (ctf_xfer_partial): Check the return value of
5676 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5677 return TARGET_XFER_UNAVAILABLE.
5678 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5679 * target.c (target_read_live_memory): Move it to remote.c.
5680 (memory_xfer_live_readonly_partial): Likewise.
5681 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5682 * remote.c (target_read_live_memory): Moved from target.c.
5683 (memory_xfer_live_readonly_partial): Likewise.
5684 (remote_read_bytes): Factored out from
5685 memory_xfer_partial_1.
5686
feef67ab
DE
56872014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5688
5689 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5690 NULL pointer.
5691
b65dc60b
PA
56922014-03-21 Pedro Alves <palves@redhat.com>
5693
5694 * infrun.c (normal_stop): Extend comment.
5695
b4ab256d
HZ
56962014-03-21 Hui Zhu <hui@codesourcery.com>
5697 Pedro Alves <palves@redhat.com>
5698
5699 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5700 static buffer.
5701 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5702 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5703 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5704
deba7593
MR
57052014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5706
5707 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5708 `z' formatted output modifier.
5709
1bff71c3
SDJ
57102014-03-20 Tom Tromey <tromey@redhat.com>
5711 Sergio Durigan Junior <sergiodj@redhat.com>
5712
5713 * probe.c (parse_probes): Turn assert into an ordinary error.
5714 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5715 exceptions when parsing probes. Rearrange the code for clarity.
5716
90e28950
TT
57172014-03-20 Tom Tromey <tromey@redhat.com>
5718
5719 PR gdb/14135
5720 * top.c (execute_command): Only dispatch events if the command
5721 started the target.
5722
beb460e8
PA
57232014-03-20 Tom Tromey <tromey@redhat.com>
5724
5725 PR cli/15718
5726 * infcall.c: Include event-top.h.
5727 (run_inferior_call): Call async_disable_stdin if needed.
5728
99619bea
PA
57292014-03-20 Pedro Alves <palves@redhat.com>
5730
5731 * infrun.c (prepare_to_proceed): Delete.
5732 (thread_still_needs_step_over): New function.
5733 (find_thread_needs_step_over): New function.
5734 (proceed): If the current thread needs a step-over, set its
5735 steping_over_breakpoint flag. Adjust to use
5736 find_thread_needs_step_over instead of prepare_to_proceed.
5737 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5738 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5739 breakpoint.
5740 (switch_back_to_stepped_thread): Step over breakpoints of all
5741 threads not the stepping thread, before switching back to the
5742 stepping thread.
5743
2adfaa28
PA
57442014-03-20 Pedro Alves <palves@redhat.com>
5745
5746 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5747 extern.
5748 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5749 * infrun.c (saved_singlestep_ptid)
5750 (stepping_past_singlestep_breakpoint): Delete.
5751 (resume): Remove stepping_past_singlestep_breakpoint handling.
5752 (proceed): Store the prev_pc of the stepping thread too.
5753 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5754 singlestep_pc.
5755 (enum infwait_states): Delete infwait_thread_hop_state.
5756 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5757 field.
5758 (handle_inferior_event): Adjust.
5759 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5760 handling and the thread-hop code. Before removing single-step
5761 breakpoints, check whether the thread hit a single-step breakpoint
5762 of another thread. If it did, the trap is not a random signal.
5763 (switch_back_to_stepped_thread): If the event thread hit a
5764 single-step breakpoint, unblock it before switching to the
5765 stepping thread. Handle the case of the stepped thread having
5766 advanced already.
5767 (keep_going): Handle the case of the current thread moving past a
5768 single-step breakpoint.
5769
31e77af2
PA
57702014-03-20 Pedro Alves <palves@redhat.com>
5771
5772 PR breakpoints/7143
5773 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5774 are being stepped over.
5775 (breakpoint_address_match): Make extern.
5776 * breakpoint.h (breakpoint_address_match): New declaration.
5777 * inferior.h (stepping_past_instruction_at): New declaration.
5778 * infrun.c (struct step_over_info): New type.
5779 (step_over_info): New global.
5780 (set_step_over_info, clear_step_over_info)
5781 (stepping_past_instruction_at): New functions.
5782 (handle_inferior_event): Clear the step-over info when
5783 trap_expected is cleared.
5784 (resume): Remove now stale comment.
5785 (clear_proceed_status): Clear step-over info.
5786 (proceed): Adjust step-over handling to set or clear the step-over
5787 info instead of removing all breakpoints.
5788 (handle_signal_stop): When setting up a thread-hop, don't remove
5789 breakpoints here.
5790 (stop_stepping): Clear step-over info.
5791 (keep_going): Adjust step-over handling to set or clear step-over
5792 info and then always inserting breakpoints, instead of removing
5793 all breakpoints when stepping over one.
5794
b9f437de
PA
57952014-03-20 Pedro Alves <palves@redhat.com>
5796
5797 * infrun.c (previous_inferior_ptid): Adjust comment.
5798 (deferred_step_ptid): Delete.
5799 (infrun_thread_ptid_changed, prepare_to_proceed)
5800 (init_wait_for_inferior): Adjust.
5801 (handle_signal_stop): Delete deferred_step_ptid handling.
5802
06c868a8
JK
58032014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5804
5805 PR gdb/15358
5806 * defs.h (sync_quit_force_run): New declaration.
5807 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5808 * event-top.c (async_sigterm_handler): New declaration.
5809 (async_sigterm_token): New variable.
5810 (async_init_signals): Create also async_sigterm_token.
5811 (async_sigterm_handler): New function.
5812 (sync_quit_force_run): New variable.
5813 (handle_sigterm): Replace quit_force call by other calls.
5814 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5815
dea80df0
MR
58162014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5817
5818 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5819 offset into SPE pseudo registers.
5820
0c7e1a46
PA
58212014-03-18 Pedro Alves <palves@redhat.com>
5822
5823 PR gdb/13860
5824 * inferior.h (print_stop_event): Declare.
5825 * infrun.c (print_stop_event): New, factored out from ...
5826 (normal_stop): ... this.
5827 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5828 of bpstat_print/print_stack_frame.
5829
9c1fcd01
TT
58302014-03-17 Tom Tromey <tromey@redhat.com>
5831
5832 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5833
11aa919a
PMR
58342014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5835
5836 * ada-lang.c (decode_constrained_packed_array): Perform a
5837 minimal coercion for reference with coerce_ref instead of
5838 ada_coerce_ref.
5839
d4ccb5e0
TG
58402014-03-17 Tristan Gingold <gingold@adacore.com>
5841
5842 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5843 (darwin_solib_create_inferior_hook): Emit a warning if version
5844 is unhandled.
5845
49840f2a
UW
58462014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5847
5848 * python/py-value.c (get_field_flag): Cast flag_name argument to
5849 PyObject_GetAttrString to support Python 2.4.
5850
ed4123e5
JK
58512014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5852
5853 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5854 (Global Maintainers): Remove Jan Kratochvil.
5855
d6b64346
PA
58562014-03-14 Pedro Alves <palves@redhat.com>
5857
5858 * inferior.h (terminal_ours_for_output): Rename to ...
5859 (child_terminal_ours_for_output): ... this.
5860 (terminal_save_ours): Rename to ...
5861 (child_terminal_save_ours): ... this.
5862 (terminal_ours): Rename to ...
5863 (child_terminal_ours): ... this.
5864 (terminal_inferior): Rename to ...
5865 (child_terminal_inferior): ... this.
5866 (terminal_init_inferior): Rename to ...
5867 (child_terminal_init_inferior): ... this.
5868 (terminal_init_inferior_with_pgrp): Rename to ...
5869 (child_terminal_init_inferior_with_pgrp): ... this.
5870 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5871 (child_terminal_init_with_pgrp): ... this.
5872 (terminal_save_ours): Rename to ...
5873 (child_terminal_save_ours): ... this.
5874 (terminal_init_inferior): Rename to ...
5875 (child_terminal_init): ... this. Adjust.
5876 (terminal_inferior): Rename to ...
5877 (child_terminal_inferior): ... this.
5878 (terminal_ours_for_output): Rename to ...
5879 (child_terminal_ours_for_output): ... this. Adjust.
5880 (terminal_ours): Rename to ...
5881 (child_terminal_ours): ... this.
5882 (terminal_ours_1): Rename to ...
5883 (child_terminal_ours_1): ... this. Adjust.
5884 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5885 * windows-nat.c (do_initial_windows_stuff): Adjust.
5886 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5887 (gnu_terminal_init): ... this. Adjust.
5888 (gnu_target): Adjust.
5889 * inf-child.c (inf_child_target): Adjust.
5890
5a1e8c7a
DE
58912014-03-13 Doug Evans <xdje42@gmail.com>
5892
5893 PR guile/16612
5894 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5895 new eq?-hashtab.
5896
350e1a76
DE
58972014-03-13 Doug Evans <xdje42@gmail.com>
5898
5899 * value.c (record_latest_value): Call release_value_or_incref
5900 instead of release_value.
5901
a69900ae
PA
59022014-03-13 Pedro Alves <palves@redhat.com>
5903
5904 * procfs.c (procfs_target): Don't override to_shortname,
5905 to_longname or to_doc.
5906
5db9f0bd
PA
59072014-03-13 Pedro Alves <palves@redhat.com>
5908
5909 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5910 Unix in user visible strings.
5911
5e3a2c38
SS
59122014-03-12 Stan Shebs <stan@codesourcery.com>
5913
5914 * gdbtypes.h: Annotate comments for Doxygen, add a page
5915 block comment with some general info.
5916
8bc2fe48
PA
59172014-03-12 Pedro Alves <palves@redhat.com>
5918
5919 * infcmd.c (prepare_execution_command): New function, factored out
5920 from several execution commands.
5921 (run_command_1, continue_command, step_1, jump_command)
5922 (signal_command, until_command, advance_command, finish_command)
5923 (attach_command): Use prepare_execution_command.
5924
638c5f49
OJ
59252014-03-12 Omair Javaid <omair.javaid@linaro.org>
5926
5927 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5928 (MAX_BPTS): Define.
5929 (MAX_WPTS): Define.
5930 (struct arm_linux_thread_points): Removed.
5931 (struct arm_linux_process_info): New.
5932 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5933 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5934 (arm_linux_find_breakpoints_by_tid): Removed.
5935 (struct arch_lwp_info): New.
5936 (arm_linux_find_process_pid): New functions.
5937 (arm_linux_add_process): New functions.
5938 (arm_linux_process_info_get): New functions.
5939 (arm_linux_forget_process): New function.
5940 (arm_linux_get_debug_reg_state): New function.
5941 (struct update_registers_data): New.
5942 (update_registers_callback): New function.
5943 (arm_linux_insert_hw_breakpoint1): Updated.
5944 (arm_linux_remove_hw_breakpoint1): Updated.
5945 (arm_linux_insert_hw_breakpoint): Updated.
5946 (arm_linux_remove_hw_breakpoint): Updated.
5947 (arm_linux_insert_watchpoint): Updated.
5948 (arm_linux_remove_watchpoint): Updated.
5949 (arm_linux_new_thread): Updated.
5950 (arm_linux_prepare_to_resume): New function.
5951 (arm_linux_new_fork): New function.
5952 (_initialize_arm_linux_nat): Updated.
5953
6d03af93
PA
59542014-03-12 Pedro Alves <palves@redhat.com>
5955
5956 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5957
b3ccfe11
TT
59582014-03-12 Tom Tromey <tromey@redhat.com>
5959
5960 * inf-child.c (return_zero): New function.
5961 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5962 * aix-thread.c (aix_thread_inferior_created): New function.
5963 (aix_thread_attach): Remove.
5964 (init_aix_thread_ops): Don't set to_attach.
5965 (_initialize_aix_thread): Register inferior_created observer.
5966 * corelow.c (init_core_ops): Don't set to_attach or
5967 to_create_inferior.
5968 * exec.c (init_exec_ops): Don't set to_attach or
5969 to_create_inferior.
5970 * infcmd.c (run_command_1): Use find_run_target. Make direct
5971 target calls.
5972 (attach_command): Use find_attach_target. Make direct target
5973 calls.
5974 * record-btrace.c (init_record_btrace_ops): Don't set
5975 to_create_inferior.
5976 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5977 Remove.
5978 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5979 set to_create_inferior.
5980 * target.c (complete_target_initialization): Add assertion.
5981 (target_create_inferior): Remove.
5982 (find_default_attach, find_default_create_inferior): Remove.
5983 (find_attach_target, find_run_target): New functions.
5984 (find_default_is_async_p, find_default_can_async_p)
5985 (target_supports_non_stop, target_attach): Remove.
5986 (init_dummy_target): Don't set to_create_inferior or
5987 to_supports_non_stop.
5988 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5989 TARGET_DEFAULT_FUNC.
5990 <to_create_inferior>: Add comment.
5991 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5992 TARGET_DEFAULT_RETURN.
5993 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5994 (find_attach_target, find_run_target): Declare.
5995 (target_create_inferior): Remove.
5996 (target_has_execution_1): Update comment.
5997 (target_supports_non_stop): Remove.
5998 * target-delegates.c: Rebuild.
5999
91f83b02
PA
60002014-03-12 Pedro Alves <palves@redhat.com>
6001
6002 * inf-child.h: Update comment to not mention Unix.
6003
f1aea813
PA
60042014-03-12 Pedro Alves <palves@redhat.com>
6005
6006 * inf-child.c: Update top comment to not mention Unix. Add
6007 generic comment describing how this target is meant to be used.
6008 (inf_child_post_attach, inf_child_post_startup_inferior)
6009 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6010 Unix in comment.
6011
ee8e9165
PA
60122014-03-12 Pedro Alves <palves@redhat.com>
6013
6014 * nto-procfs.c: Include inf-child.h.
6015 (procfs_ops): Delete global.
6016 (procfs_can_run): Delete method.
6017 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6018 target pointer instead of referencing procfs_ops.
6019 (procfs_prepare_to_store): Delete.
6020 (init_procfs_ops): Delete function.
6021 (procfs_target): New function, based on init_procfs_ops, but
6022 inherit inf_child_target.
6023 (_initialize_procfs): Use procfs_target.
6024
51a9c8c5
PA
60252014-03-12 Pedro Alves <palves@redhat.com>
6026
6027 * windows-nat.c: Include inf-child.h.
6028 (windows_ops): Delete global.
6029 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6030 methods.
6031 (init_windows_ops): Delete function.
6032 (windows_target): New function, based on init_windows_ops, but
6033 inherit inf_child_target.
6034 (_initialize_windows_nat): Use windows_target. Install x86
6035 specific target methods here.
6036
c1966e26
DE
60372014-03-10 Doug Evans <xdje42@gmail.com>
6038
6039 * guile/guile.c (call_initialize_gdb_module): New function.
6040 (initialize_guile): Replace call to scm_init_guile with call to
6041 scm_with_guile.
6042
023db19c
JB
60432014-03-10 Joel Brobecker <brobecker@adacore.com>
6044
6045 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6046 in call to TYPE_CODE macro.
6047
5ec18f2b
JG
60482014-03-10 Jerome Guitton <guitton@adacore.com>
6049
8668be63
JB
6050 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6051 Resolve tagged types to full view.
5ec18f2b 6052
7d03f2eb
HZ
60532014-03-10 Hui Zhu <hui@codesourcery.com>
6054
6055 * target.h (target_insert_breakpoint): Remove "hardware" from its
6056 comments.
6057
c5164cbc
DE
60582014-03-07 Doug Evans <dje@google.com>
6059
6060 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6061
c4a3fee2
DE
60622014-03-07 Doug Evans <dje@google.com>
6063
6064 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6065 Remove unused local comp_dir_attr. Assert exactly one of
6066 stub_comp_unit_die, stub_comp_dir is non-NULL.
6067
3156469c
JB
60682014-03-07 Joel Brobecker <brobecker@adacore.com>
6069
6070 * target.h (complete_target_initialization, add_target):
6071 Add comment.
6072
c1a7b7c6
PA
60732014-03-07 Pedro Alves <palves@redhat.com>
6074
6075 * go32-nat.c: Include inf-child.h.
6076 (go32_ops): Delete global.
6077 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6078 Delete methods.
6079 (go32_create_inferior): Push the passed in target pointer instead
6080 of referencing go32_ops.
6081 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6082 (go32_target): New function, based on init_go32_ops, but inherit
6083 inf_child_target.
6084 (_initialize_go32_nat): Use go32_target. Move parts of
6085 init_go32_ops here.
6086
d3c1a85f
JB
60872014-03-06 Joel Brobecker <brobecker@adacore.com>
6088
6089 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6090 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6091 SYMBOL_VALUE_ADDRESS.
6092 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6093
5fa1d40e
YQ
60942014-03-06 Yao Qi <yao@codesourcery.com>
6095
6096 * breakpoint.c (get_tracepoint_by_number): Remove argument
6097 optional_p. All callers updated. Adjust comments. Update
6098 output message.
6099 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6100
0c13193f
YQ
61012014-03-06 Yao Qi <yao@codesourcery.com>
6102
6103 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6104 early if get_number returns zero. Use 'p' instead of 'args'.
6105
2217da06
YQ
61062014-03-06 Yao Qi <yao@codesourcery.com>
6107
6108 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6109 message.
6110
cc3da688
YQ
61112014-03-06 Yao Qi <yao@codesourcery.com>
6112
6113 PR breakpoints/16508
6114 * tracepoint.c (check_trace_running): New function.
6115 (trace_find_command): Move code to check_trace_running and
6116 call check_trace_running.
6117 (trace_find_pc_command): Likewise.
6118 (trace_find_tracepoint_command): Likewise.
6119 (trace_find_line_command): Likewise.
6120 (trace_find_range_command): Likewise.
6121 * tracepoint.h (check_trace_running): Likewise.
6122 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6123
6a5f844b
YQ
61242014-03-06 Yao Qi <yao@codesourcery.com>
6125
6126 * target.h (struct target_ops) <to_traceframe_info>: Use
6127 TARGET_DEFAULT_NORETURN (tcomplain ()).
6128 * target-delegates.c: Regenerated.
6129
0f26cec1
PA
61302014-03-05 Pedro Alves <palves@redhat.com>
6131
6132 PR gdb/16575
6133 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6134 void. Update comment.
6135 (dcache_xfer_memory): Delete.
6136 (dcache_read_memory_partial): New, based on the read bits of
6137 dcache_xfer_memory.
6138 (dcache_update): Add status parameter. Use ULONGEST for len, and
6139 adjust. Discard cache lines if the reason for the update was
6140 error.
6141 * dcache.h (dcache_xfer_memory): Delete declaration.
6142 (dcache_read_memory_partial): New declaration.
6143 (dcache_update): Update prototype.
6144 * target.c (raw_memory_xfer_partial): Update the dcache here.
6145 (memory_xfer_partial_1): Don't handle dcache writes here.
6146
b2b255bd
MF
61472014-03-05 Mike Frysinger <vapier@gentoo.org>
6148
6149 * remote-sim.c (gdbsim_load): Add const to prog.
6150
5d9cf8a4
TT
61512014-03-03 Tom Tromey <tromey@redhat.com>
6152
6153 * elfread.c (probe_key): Change to bfd_data.
6154 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6155 now per-BFD, not per-objfile.
6156 * stap-probe.c (stap_probe_destroy): Update comment.
6157 (handle_stap_probe): Allocate on the per-BFD obstack.
6158
729662a5
TT
61592014-03-03 Tom Tromey <tromey@redhat.com>
6160
6161 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6162 * breakpoint.c (create_longjmp_master_breakpoint): Use
6163 get_probe_address.
6164 (add_location_to_breakpoint, bkpt_probe_insert_location)
6165 (bkpt_probe_remove_location): Update.
6166 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6167 * elfread.c (elf_symfile_relocate_probe): Remove.
6168 (elf_probe_fns): Update.
6169 (insert_exception_resume_breakpoint): Change type of "probe"
6170 parameter to bound_probe.
6171 (check_exception_resume): Update.
6172 * objfiles.c (objfile_relocate1): Don't relocate probes.
6173 * probe.c (bound_probe_s): New typedef.
6174 (parse_probes): Use get_probe_address. Set sal's objfile.
6175 (find_probe_by_pc): Return a bound_probe.
6176 (collect_probes): Return a VEC(bound_probe_s).
6177 (compare_probes): Update.
6178 (gen_ui_out_table_header_info): Change type of "probes"
6179 parameter. Update.
6180 (info_probes_for_ops): Update.
6181 (get_probe_address): New function.
6182 (probe_safe_evaluate_at_pc): Update.
6183 * probe.h (struct probe_ops) <get_probe_address>: New field.
6184 <set_semaphore, clear_semaphore>: Add objfile parameter.
6185 (struct probe) <objfile>: Remove field.
6186 <arch>: New field.
6187 <address>: Update comment.
6188 (struct bound_probe): New.
6189 (find_probe_by_pc): Return a bound_probe.
6190 (get_probe_address): Declare.
6191 * solib-svr4.c (struct probe_and_action) <address>: New field.
6192 (hash_probe_and_action, equal_probe_and_action): Update.
6193 (register_solib_event_probe): Add address parameter.
6194 (solib_event_probe_at): Update.
6195 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6196 get_probe_address.
6197 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6198 (stap_get_probe_address): New function.
6199 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6200 (compile_probe_arg): Update.
6201 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6202 address.
6203 (handle_stap_probe): Don't relocate the probe.
6204 (stap_relocate): Remove.
6205 (stap_gen_info_probes_table_values): Update.
6206 (stap_probe_ops): Remove stap_relocate.
6207 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6208 (debug_sym_probe_fns): Update.
6209 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6210 * symtab.c (init_sal): Use memset.
6211 * symtab.h (struct symtab_and_line) <objfile>: New field.
6212 * tracepoint.c (start_tracing, stop_tracing): Update.
6213
ff887920
TT
62142014-03-03 Tom Tromey <tromey@redhat.com>
6215
6216 * probe.h (parse_probes, find_probe_by_pc)
6217 (find_probes_in_objfile): Fix comments.
6218
f0407826
DE
62192014-03-02 Doug Evans <xdje42@gmail.com>
6220
6221 * infrun.c (handle_signal_stop): Replace test for
6222 TARGET_WAITKIND_STOPPED with an assert.
6223
35e6a711
DE
62242014-03-02 Doug Evans <xdje42@gmail.com>
6225
6226 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6227
667f9d0b
DE
62282014-03-02 Doug Evans <xdje42@gmail.com>
6229
6230 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6231
dc92ace0
MK
62322014-03-01 Mark Kettenis <kettenis@gnu.org>
6233
6234 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6235
a900370f
MK
62362014-03-01 Mark Kettenis <kettenis@gnu.org>
6237
6238 * i386obsd-nat.c: Include "obsd-nat.h".
6239 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6240 add_target.
6241 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6242
b72a7981
MK
62432014-03-01 Mark Kettenis <kettenis@gnu.org>
6244
6245 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6246
96c70aba
MK
62472014-03-01 Mark Kettenis <kettenis@gnu.org>
6248
6249 * mips64obsd-nat.c: Include "obsd-nath".
6250 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6251 add_target
6252 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6253
874a80af
MK
62542014-03-01 Mark Kettenis <kettenis@gnu.org>
6255
8fd408f1
MK
6256 * amd64obsd-nat.c: Include "obsd-nat,h.
6257 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6258 add_target.
874a80af
MK
6259 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6260
9cf95373
SC
62612014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6262
6263 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6264 (find_overload_match): Update call to find_oload_champ.
6265 (find_oload_champ_namespace_loop): Likewise
6266
863e4da4
MK
62672014-02-28 Mark Kettenis <kettenis@gnu.org>
6268
025cac40
MK
6269 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6270
1ed586ce
MK
6271 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6272 * config/sparc/obsd64.mh: New file.
6273 * sparc64obsd-nat.c: New file.
6274
863e4da4
MK
6275 * obsd-nat.h: New file.
6276 * obsd-nat.c: New file.
6277 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6278 (ALLDEPFILES): Add obsd-nat.c.
6279
89de4da4
TT
62802014-02-28 Tom Tromey <tromey@redhat.com>
6281
6282 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6283 * cli-out.h (cli_ui_out_impl): Now const.
6284 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6285 * ui-out.c (struct ui_out) <impl>: Now const.
6286 (default_ui_out_impl): Now const.
6287 (ui_out_new): Make 'impl' parameter const.
6288 * ui-out.h (ui_out_new): Update.
6289
c725e7b6
MK
62902014-02-27 Mark Kettenis <kettenis@gnu.org>
6291
6292 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6293
670b46b3
MK
62942014-02-27 Mark Kettenis <kettenis@gnu.org>
6295
6296 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6297
c91550fc
JK
62982014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6299
6300 Additional PR 8882 fix.
6301 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6302
2fa0369e
PA
63032014-02-27 Pedro Alves <palves@redhat.com>
6304
6305 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6306 isn't set.
6307
d632a097
PA
63082014-02-27 Pedro Alves <palves@redhat.com>
6309
6310 PR 12702
6311 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6312 * nat/linux-waitpid.c: Include string.h.
6313 (status_to_str): Moved here and made extern.
6314 * nat/linux-waitpid.h (status_to_str): New declaration.
6315
2ebd5a35
HZ
63162014-02-27 Hui Zhu <hui@codesourcery.com>
6317
6318 PR 12702
6319 * infrun.c (ptid_match): Move ...
6320 * common/ptid.c (ptid_match): ... here.
6321 * inferior.h (ptid_match): Move ...
6322 * common/ptid.h (ptid_match): ... here.
6323
3cdd631f
MK
63242014-02-27 Mark Kettenis <kettenis@gnu.org>
6325
6326 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6327 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6328 gdb_target_obs.
6329
bee30a64
MK
63302014-02-27 Mark Kettenis <kettenis@gnu.org>
6331
6332 * obsd-tdep.c (obsd_auxv_parse): New function.
6333 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6334
6335 * gdbarch.sh (auxv_parse): New.
6336 * gdbarch.h: Regenerated.
6337 * gdbarch.c: Regenerated.
6338 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6339
7a5a839f
LC
63402014-02-26 Ludovic Courtès <ludo@gnu.org>
6341
6342 * guile/scm-value.c (gdbscm_history_append_x): New function.
6343 (value_functions): Add it.
6344
31aa7e4e
JB
63452014-02-27 Joel Brobecker <brobecker@adacore.com>
6346
6347 * dwarf2read.c (attr_value_as_address): New function.
6348 (dwarf2_find_base_address, read_call_site_scope): Use
6349 attr_value_as_address in place of DW_ADDR.
6350 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6351 the low and high addresses. Slight rework of the handling
6352 of the high pc being a constant form, and limit it to
6353 DWARF verson 4 or higher.
6354 (dwarf2_record_block_ranges): Likewise.
6355 (read_partial_die): Likewise.
6356 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6357
9b333ba3
TT
63582014-02-26 Tom Tromey <tromey@redhat.com>
6359
6360 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6361
5f6cac40
TT
63622014-02-26 Tom Tromey <tromey@redhat.com>
6363
6364 * elfread.c (elf_read_minimal_symbols): Return early if
6365 minimal symbols have already been read. Add "ei" parameter.
6366 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6367 * minsyms.c (prim_record_minimal_symbol_full): Update.
6368 * objfiles.h (struct objstats) <n_minsyms>: Move...
6369 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6370 * symmisc.c (print_objfile_statistics): Update.
6371
2750ef27
TT
63722014-02-26 Tom Tromey <tromey@redhat.com>
6373
6374 * elfread.c (elf_read_minimal_symbols): New function, from
6375 elf_symfile_read.
6376 (elf_symfile_read): Call it.
6377
34643a32
TT
63782014-02-26 Tom Tromey <tromey@redhat.com>
6379
6380 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6381 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6382 (lookup_minimal_symbol_solib_trampoline)
6383 (lookup_minimal_symbol_by_pc_section_1)
6384 (lookup_minimal_symbol_and_objfile): Update.
6385 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6386 Don't allocate a minimal symbol if minsyms have already been read.
6387 (build_minimal_symbol_hash_tables): Update.
6388 (install_minimal_symbols): Do nothing if minsyms already read.
6389 Use the per-BFD obstack.
6390 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6391 * objfiles.c (allocate_objfile): Call
6392 terminate_minimal_symbol_table later.
6393 (have_minimal_symbols): Update.
6394 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6395 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6396 Move from struct objfile.
6397 <minsyms_read>: New field.
6398 (struct objfile) <msymbols, minimal_symbol_count,
6399 msymbol_hash, msymbol_demangled_hash>: Move.
6400 (ALL_OBJFILE_MSYMBOLS): Update.
6401 * symfile.c (read_symbols): Set minsyms_read.
6402 (reread_symbols): Update.
6403 * symmisc.c (dump_objfile, dump_msymbols): Update.
6404
2273f0ac
TT
64052014-02-26 Tom Tromey <tromey@redhat.com>
6406
6407 * minsyms.c (msymbols_sort): Remove.
6408 * minsyms.h (msymbols_sort): Remove.
6409 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6410 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6411 * elfread.c (elf_symtab_read): Don't add section offsets.
6412 * xcoffread.c (record_minimal_symbol): Don't add section offset
6413 to minimal symbol address.
6414 * somread.c (text_offset, data_offset): Remove.
6415 (som_symtab_read): Don't add section offsets to minimal symbol
6416 addresses.
6417 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6418 Don't add section offsets to minimal symbols.
6419 * coffread.c (coff_symtab_read): Don't add section offsets
6420 to minimal symbol addresses.
6421 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6422 to minimal symbol addresses.
6423 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6424 section offset to minimal symbol addresses.
6425 * mdebugread.c (parse_partial_symbols): Don't add section
6426 offset to minimal symbol addresses.
6427 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6428 offset to minimal symbol addresses.
6429
77e371c0
TT
64302014-02-26 Tom Tromey <tromey@redhat.com>
6431
6432 * ada-lang.c (ada_main_name): Update.
6433 (ada_add_standard_exceptions): Update.
6434 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6435 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6436 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6437 * auxv.c (ld_so_xfer_auxv): Update.
6438 * avr-tdep.c (avr_scan_prologue): Update.
6439 * ax-gdb.c (gen_var_ref): Update.
6440 * blockframe.c (get_pc_function_start)
6441 (find_pc_partial_function_gnu_ifunc): Update.
6442 * breakpoint.c (create_overlay_event_breakpoint)
6443 (create_longjmp_master_breakpoint)
6444 (create_std_terminate_master_breakpoint)
6445 (create_exception_master_breakpoint): Update.
6446 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6447 * c-valprint.c (c_val_print): Update.
6448 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6449 * common/agent.c (agent_look_up_symbols): Update.
6450 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6451 * dwarf2loc.c (call_site_to_target_addr): Update.
6452 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6453 * elfread.c (elf_gnu_ifunc_record_cache)
6454 (elf_gnu_ifunc_resolve_by_got): Update.
6455 * findvar.c (default_read_var_value): Update.
6456 * frame.c (inside_main_func): Update.
6457 * frv-tdep.c (frv_frame_this_id): Update.
6458 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6459 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6460 Update.
6461 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6462 (hppa_hpux_find_dummy_bpaddr): Update.
6463 * hppa-tdep.c (hppa_symbol_address): Update.
6464 * infcmd.c (until_next_command): Update.
6465 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6466 Update.
6467 * linespec.c (minsym_found, add_minsym): Update.
6468 * linux-nat.c (get_signo): Update.
6469 * linux-thread-db.c (inferior_has_bug): Update.
6470 * m32c-tdep.c (m32c_return_value)
6471 (m32c_m16c_address_to_pointer): Update.
6472 * m32r-tdep.c (m32r_frame_this_id): Update.
6473 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6474 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6475 * maint.c (maintenance_translate_address): Update.
6476 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6477 (frob_address): New function.
6478 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6479 frob_address. Rename parameter to "pc_in".
6480 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6481 addresses.
6482 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6483 Update.
6484 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6485 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6486 * objc-lang.c (find_objc_msgsend): Update.
6487 * objfiles.c (objfile_relocate1): Update.
6488 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6489 * p-valprint.c (pascal_val_print): Update.
6490 * parse.c (write_exp_msymbol): Update.
6491 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6492 (ppc_elfv2_skip_entrypoint): Update.
6493 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6494 * printcmd.c (build_address_symbolic, msym_info)
6495 (address_info): Update.
6496 * proc-service.c (ps_pglobal_lookup): Update.
6497 * psymtab.c (find_pc_sect_psymtab_closer)
6498 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6499 Change msymbol parameter to bound_minimal_symbol.
6500 * ravenscar-thread.c (get_running_thread_id): Update.
6501 * remote.c (remote_check_symbols): Update.
6502 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6503 address.
6504 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6505 * solib-dsbt.c (lm_base): Update.
6506 * solib-frv.c (lm_base, main_got): Update.
6507 * solib-irix.c (locate_base): Update.
6508 * solib-som.c (som_solib_create_inferior_hook)
6509 (link_map_start): Update.
6510 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6511 * solib-svr4.c (elf_locate_base, enable_break): Update.
6512 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6513 (flush_ea_cache): Update.
6514 * stabsread.c (define_symbol, scan_file_globals): Update.
6515 * stack.c (find_frame_funname): Update.
6516 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6517 (debug_qf_find_pc_sect_symtab): Update.
6518 * symfile.c (simple_read_overlay_table)
6519 (simple_overlay_update): Update.
6520 * symfile.h (struct quick_symbol_functions)
6521 <find_pc_sect_symtab>: Change type of msymbol to
6522 bound_minimal_symbol.
6523 * symmisc.c (dump_msymbols): Update.
6524 * symtab.c (find_pc_sect_symtab_via_partial)
6525 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6526 (search_symbols, print_msymbol_info): Update.
6527 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6528 (MSYMBOL_VALUE_ADDRESS): Redefine.
6529 (BMSYMBOL_VALUE_ADDRESS): New macro.
6530 * tracepoint.c (scope_info): Update.
6531 * tui/tui-disasm.c (tui_find_disassembly_address)
6532 (tui_get_begin_asm_address): Update.
6533 * valops.c (find_function_in_inferior): Update.
6534 * value.c (value_static_field, value_fn_field): Update.
6535
3b7344d5
TT
65362014-02-26 Tom Tromey <tromey@redhat.com>
6537
6538 * ada-lang.c (ada_update_initial_language): Update.
6539 (ada_main_name, ada_has_this_exception_support): Update.
6540 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6541 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6542 * arm-tdep.c (arm_skip_stub): Update.
6543 * auxv.c (ld_so_xfer_auxv): Update.
6544 * avr-tdep.c (avr_scan_prologue): Update.
6545 * ax-gdb.c (gen_var_ref): Update.
6546 * breakpoint.c (struct breakpoint_objfile_data)
6547 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6548 type to bound_minimal_symbol.
6549 (create_overlay_event_breakpoint)
6550 (create_longjmp_master_breakpoint)
6551 (create_std_terminate_master_breakpoint)
6552 (create_exception_master_breakpoint): Update.
6553 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6554 * c-exp.y (classify_name): Update.
6555 * coffread.c (coff_symfile_read): Update.
6556 * common/agent.c (agent_look_up_symbols): Update.
6557 * d-lang.c (d_main_name): Update.
6558 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6559 * dec-thread.c (enable_dec_thread): Update.
6560 * dwarf2loc.c (call_site_to_target_addr): Update.
6561 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6562 * eval.c (evaluate_subexp_standard): Update.
6563 * findvar.c (struct minsym_lookup_data) <result>: Change type
6564 to bound_minimal_symbol.
6565 <objfile>: Remove.
6566 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6567 * frame.c (inside_main_func): Update.
6568 * frv-tdep.c (frv_frame_this_id): Update.
6569 * gcore.c (call_target_sbrk): Update.
6570 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6571 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6572 Update.
6573 * go-lang.c (go_main_name): Update.
6574 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6575 (hppa_hpux_find_import_stub_for_addr): Update.
6576 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6577 Update. Change return type.
6578 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6579 type.
6580 * jit.c (jit_breakpoint_re_set_internal): Update.
6581 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6582 Update.
6583 * linux-nat.c (get_signo): Update.
6584 * linux-thread-db.c (inferior_has_bug): Update
6585 * m32c-tdep.c (m32c_return_value)
6586 (m32c_m16c_address_to_pointer): Update.
6587 * m32r-tdep.c (m32r_frame_this_id): Update.
6588 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6589 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6590 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6591 lookup_minimal_symbol. Change return type.
6592 (lookup_minimal_symbol): Remove.
6593 (lookup_bound_minimal_symbol): Update.
6594 (lookup_minimal_symbol_text): Change return type.
6595 (lookup_minimal_symbol_solib_trampoline): Change return type.
6596 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6597 (lookup_minimal_symbol_solib_trampoline): Change return type.
6598 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6599 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6600 (value_nsstring, find_imps): Update.
6601 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6602 * p-lang.c (pascal_main_name): Update.
6603 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6604 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6605 * proc-service.c (ps_pglobal_lookup): Update.
6606 * ravenscar-thread.c (get_running_thread_msymbol): Change
6607 return type.
6608 (has_ravenscar_runtime, get_running_thread_id): Update.
6609 * remote.c (remote_check_symbols): Update.
6610 * sol-thread.c (ps_pglobal_lookup): Update.
6611 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6612 * solib-dsbt.c (lm_base): Update.
6613 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6614 Update.
6615 * solib-irix.c (locate_base): Update.
6616 * solib-som.c (som_solib_create_inferior_hook)
6617 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6618 Update.
6619 * solib-spu.c (spu_enable_break): Update.
6620 * solib-svr4.c (elf_locate_base, enable_break): Update.
6621 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6622 (flush_ea_cache): Update.
6623 * stabsread.c (define_symbol): Update.
6624 * symfile.c (simple_read_overlay_table): Update.
6625 * symtab.c (find_pc_sect_line): Update.
6626 * tracepoint.c (scope_info): Update.
6627 * tui-disasm.c (tui_get_begin_asm_address): Update.
6628 * value.c (value_static_field): Update.
6629
40c1a007
TT
66302014-02-26 Tom Tromey <tromey@redhat.com>
6631
6632 * minsyms.c (prim_record_minimal_symbol_full): Use
6633 SET_MSYMBOL_VALUE_ADDRESS.
6634 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6635 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6636 SET_MSYMBOL_VALUE_ADDRESS.
6637 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6638 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6639
efd66ac6
TT
66402014-02-26 Tom Tromey <tromey@redhat.com>
6641
6642 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6643 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6644 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6645 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6646 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6647 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6648 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6649 * ada-lang.c (ada_main_name): Update.
6650 (ada_lookup_simple_minsym): Update.
6651 (ada_make_symbol_completion_list): Update.
6652 (ada_add_standard_exceptions): Update.
6653 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6654 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6655 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6656 * arm-tdep.c (skip_prologue_function): Update.
6657 (arm_skip_stack_protector, arm_skip_stub): Update.
6658 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6659 (arm_wince_skip_main_prologue): Update.
6660 * auxv.c (ld_so_xfer_auxv): Update.
6661 * avr-tdep.c (avr_scan_prologue): Update.
6662 * ax-gdb.c (gen_var_ref): Update.
6663 * block.c (call_site_for_pc): Update.
6664 * blockframe.c (get_pc_function_start): Update.
6665 (find_pc_partial_function_gnu_ifunc): Update.
6666 * breakpoint.c (create_overlay_event_breakpoint): Update.
6667 (create_longjmp_master_breakpoint): Update.
6668 (create_std_terminate_master_breakpoint): Update.
6669 (create_exception_master_breakpoint): Update.
6670 (resolve_sal_pc): Update.
6671 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6672 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6673 Update.
6674 * c-valprint.c (c_val_print): Update.
6675 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6676 * coffread.c (coff_symfile_read): Update.
6677 * common/agent.c (agent_look_up_symbols): Update.
6678 * dbxread.c (find_stab_function_addr): Update.
6679 (end_psymtab): Update.
6680 * dwarf2loc.c (call_site_to_target_addr): Update.
6681 (func_verify_no_selftailcall): Update.
6682 (tailcall_dump): Update.
6683 (call_site_find_chain_1): Update.
6684 (dwarf_expr_reg_to_entry_parameter): Update.
6685 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6686 (elf_gnu_ifunc_resolve_by_got): Update.
6687 * f-valprint.c (info_common_command): Update.
6688 * findvar.c (read_var_value): Update.
6689 * frame.c (get_prev_frame_1): Update.
6690 (inside_main_func): Update.
6691 * frv-tdep.c (frv_skip_main_prologue): Update.
6692 (frv_frame_this_id): Update.
6693 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6694 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6695 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6696 (gnuv3_skip_trampoline): Update.
6697 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6698 (hppa64_hpux_in_solib_call_trampoline): Update.
6699 (hppa_hpux_skip_trampoline_code): Update.
6700 (hppa64_hpux_search_dummy_call_sequence): Update.
6701 (hppa_hpux_find_import_stub_for_addr): Update.
6702 (hppa_hpux_find_dummy_bpaddr): Update.
6703 * hppa-tdep.c (hppa_symbol_address)
6704 (hppa_lookup_stub_minimal_symbol): Update.
6705 * i386-tdep.c (i386_skip_main_prologue): Update.
6706 (i386_pe_skip_trampoline_code): Update.
6707 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6708 * infcall.c (get_function_name): Update.
6709 * infcmd.c (until_next_command): Update.
6710 * jit.c (jit_breakpoint_re_set_internal): Update.
6711 (jit_inferior_init): Update.
6712 * linespec.c (minsym_found): Update.
6713 (add_minsym): Update.
6714 * linux-fork.c (info_checkpoints_command): Update.
6715 * linux-nat.c (get_signo): Update.
6716 * linux-thread-db.c (inferior_has_bug): Update.
6717 * m32c-tdep.c (m32c_return_value): Update.
6718 (m32c_m16c_address_to_pointer): Update.
6719 (m32c_m16c_pointer_to_address): Update.
6720 * m32r-tdep.c (m32r_frame_this_id): Update.
6721 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6722 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6723 * maint.c (maintenance_translate_address): Update.
6724 * minsyms.c (add_minsym_to_hash_table): Update.
6725 (add_minsym_to_demangled_hash_table): Update.
6726 (msymbol_objfile): Update.
6727 (lookup_minimal_symbol): Update.
6728 (iterate_over_minimal_symbols): Update.
6729 (lookup_minimal_symbol_text): Update.
6730 (lookup_minimal_symbol_by_pc_name): Update.
6731 (lookup_minimal_symbol_solib_trampoline): Update.
6732 (lookup_minimal_symbol_by_pc_section_1): Update.
6733 (lookup_minimal_symbol_and_objfile): Update.
6734 (prim_record_minimal_symbol_full): Update.
6735 (compare_minimal_symbols): Update.
6736 (compact_minimal_symbols): Update.
6737 (build_minimal_symbol_hash_tables): Update.
6738 (install_minimal_symbols): Update.
6739 (terminate_minimal_symbol_table): Update.
6740 (find_solib_trampoline_target): Update.
6741 (minimal_symbol_upper_bound): Update.
6742 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6743 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6744 (mips_skip_pic_trampoline_code): Update.
6745 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6746 * objc-lang.c (selectors_info): Update.
6747 (classes_info): Update.
6748 (find_methods): Update.
6749 (find_imps): Update.
6750 (find_objc_msgsend): Update.
6751 * objfiles.c (objfile_relocate1): Update.
6752 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6753 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6754 * p-valprint.c (pascal_val_print): Update.
6755 * parse.c (write_exp_msymbol): Update.
6756 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6757 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6758 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6759 * printcmd.c (build_address_symbolic): Update.
6760 (sym_info): Update.
6761 (address_info): Update.
6762 * proc-service.c (ps_pglobal_lookup): Update.
6763 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6764 (find_pc_sect_psymtab): Update.
6765 * python/py-framefilter.c (py_print_frame): Update.
6766 * ravenscar-thread.c (get_running_thread_id): Update.
6767 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6768 Update.
6769 * remote.c (remote_check_symbols): Update.
6770 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6771 (rs6000_skip_trampoline_code): Update.
6772 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6773 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6774 * solib-dsbt.c (lm_base): Update.
6775 * solib-frv.c (lm_base): Update.
6776 (main_got): Update.
6777 * solib-irix.c (locate_base): Update.
6778 * solib-som.c (som_solib_create_inferior_hook): Update.
6779 (som_solib_desire_dynamic_linker_symbols): Update.
6780 (link_map_start): Update.
6781 * solib-spu.c (spu_enable_break): Update.
6782 (ocl_enable_break): Update.
6783 * solib-svr4.c (elf_locate_base): Update.
6784 (enable_break): Update.
6785 * spu-tdep.c (spu_get_overlay_table): Update.
6786 (spu_catch_start): Update.
6787 (flush_ea_cache): Update.
6788 * stabsread.c (define_symbol): Update.
6789 (scan_file_globals): Update.
6790 * stack.c (find_frame_funname): Update.
6791 (frame_info): Update.
6792 * symfile.c (simple_read_overlay_table): Update.
6793 (simple_overlay_update): Update.
6794 * symmisc.c (dump_msymbols): Update.
6795 * symtab.c (fixup_section): Update.
6796 (find_pc_sect_line): Update.
6797 (skip_prologue_sal): Update.
6798 (search_symbols): Update.
6799 (print_msymbol_info): Update.
6800 (rbreak_command): Update.
6801 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6802 (completion_list_objc_symbol): Update.
6803 (default_make_symbol_completion_list_break_on): Update.
6804 * tracepoint.c (scope_info): Update.
6805 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6806 (tui_get_begin_asm_address): Update.
6807 * valops.c (find_function_in_inferior): Update.
6808 * value.c (value_static_field): Update.
6809 (value_fn_field): Update.
6810
50e65b17
TT
68112014-02-26 Tom Tromey <tromey@redhat.com>
6812
6813 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6814 bound minimal symbols. Move code that knows about minsym
6815 table layout...
6816 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6817 function.
6818 * minsyms.h (minimal_symbol_upper_bound): Declare.
6819 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6820 minimal_symbol_upper_bound.
6821
1b588015
JB
68222014-02-27 Joel Brobecker <brobecker@adacore.com>
6823
6824 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6825 Use the type's name if its basic type does not have a tag.
6826
dbb9c2b1
JB
68272014-02-27 Joel Brobecker <brobecker@adacore.com>
6828
6829 * dwarf2read.c (read_subrange_type): Add comment.
6830
55426c9d
JB
68312014-02-27 Joel Brobecker <brobecker@adacore.com>
6832
6833 * dwarf2read.c (update_enumeration_type_from_children): New
6834 function, mostly extracted from process_structure_scope.
6835 (read_enumeration_type): Call update_enumeration_type_from_children.
6836 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6837 and flag_flag_enum fields.
6838
f2fce0ca
PA
68392014-02-26 Pedro Alves <palves@redhat.com>
6840
6841 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6842 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6843 to_xfer_partial method.
6844
7a44e40e
PA
68452014-02-26 Pedro Alves <palves@redhat.com>
6846
6847 * target.c (complete_target_initialization): Don't install
6848 default_xfer_partial as to_xfer_partial hook.
6849 (nomemory): Delete.
6850 (update_current_target): Don't INHERIT nor de_fault
6851 deprecated_xfer_memory. Delete de_fault macro.
6852 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6853 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6854 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6855 field.
6856
bd265cd0
PA
68572014-02-26 Pedro Alves <palves@redhat.com>
6858
6859 * go32-nat.c (my_write_child): New function.
6860 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6861 (go32_xfer_partial): New function.
6862 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6863 Instead install a to_xfer_partial hook.
6864
9d46c4e5
PA
68652014-02-26 Pedro Alves <palves@redhat.com>
6866
6867 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6868 to_xfer_partial helper. Rewrite.
6869 (procfs_xfer_partial): New function.
6870 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6871 Install a to_xfer_partial hook.
6872
a1583b1f
PA
68732014-02-26 Pedro Alves <palves@redhat.com>
6874
6875 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6876 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6877 (m32r_xfer_partial): New function.
6878 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6879 Install a to_xfer_partial hook.
6880
6df1b29f
PA
68812014-02-26 Pedro Alves <palves@redhat.com>
6882
6883 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6884 helper.
6885 (mips_xfer_partial): New function.
6886 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6887 hook. Install a to_xfer_partial hook.
6888
dc53a7ad
JB
68892014-02-26 Joel Brobecker <brobecker@adacore.com>
6890
6891 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6892 * gdbtypes.c (create_array_type_with_stride): New function,
6893 renaming create_array_type, but with an added parameter
6894 called "bit_stride".
6895 (create_array_type): Re-implement using
6896 create_array_type_with_stride.
6897 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6898 and DW_AT_bit_stride attributes.
6899
12ab52e9
PA
69002014-02-26 Pedro Alves <palves@redhat.com>
6901
6902 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6903 task-specific breakpoints.
6904
d16461ae
PA
69052014-02-25 Pedro Alves <palves@redhat.com>
6906
6907 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6908 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6909
a8b16220
SS
69102014-02-25 Stan Shebs <stan@codesourcery.com>
6911
6912 * defs.h: Annotate comments for Doxygen.
6913
b9e795ee
TT
69142014-02-25 Tom Tromey <tromey@redhat.com>
6915
6916 * target.h (target_ignore): Don't declare.
6917 * target.c (target_ignore): Remove.
6918
849c862e
JK
69192014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6920
6921 PR gdb/16626
6922 * auto-load.c (auto_load_objfile_script_1): Change filename to
6923 debugfile.
6924
475109d8
JB
69252014-02-25 Joel Brobecker <brobecker@adacore.com>
6926
6927 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6928 documentation. Adjust prototype to match the target_ops
6929 to_xfer_partial method. Adjust implementation accordingly.
6930
e186c3bd
HZ
69312014-02-25 Hui Zhu <hui@codesourcery.com>
6932
6933 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6934 to_traceframe_info.
6935
6d451942
KB
69362014-02-25 Kevin Buettner <kevinb@redhat.com>
6937
041ab8b4 6938 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6939 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6940 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6941 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6942 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6943 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6944 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6945 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6946 New constants.
6947 (rl78_register_type): Use a data pointer type for SP and
6948 new pseudo registers mentioned above. Use a 16 bit integer
6949 type for all other register pairs.
6950 (rl78_register_name, rl78_g10_register_name): Update for
6951 new pseudo registers.
6952 (rl78_pseudo_register_read): Likewise.
6953 (rl78_pseudo_register_write): Likewise.
6954 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6955 to the newly added pseudo registers.
6956
eddf0bae
DE
69572014-02-24 Doug Evans <dje@google.com>
6958
6959 * value.c (record_latest_value): Fix comment.
6960 * printcmd.c (print_command_1): Remove code to handle -1 return from
6961 record_latest_value.
6962
e96027e0
PA
69632014-02-24 Pedro Alves <palves@redhat.com>
6964
6965 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6966 deprecated_xfer_memory hook.
6967 (procfs_xfer_partial): Call procfs_xfer_memory instead
6968 of the deprecated_xfer_memory target hook.
6969 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6970 helper.
6971
0837c976
YZ
69722014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6973
6974 * windows-nat.c (windows_xfer_shared_libraries): Return
6975 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6976 requested object is TARGET_OBJECT_LIBRARIES.
6977
bc113b4e
YQ
69782014-02-24 Yao Qi <yao@codesourcery.com>
6979
6980 * target.h (enum target_xfer_status)
6981 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6982 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6983 explicitly. New.
6984 * corefile.c (memory_error_message): User updated.
6985 * exec.c (section_table_read_available_memory): Likewise.
6986 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6987 * target.c (target_xfer_status_to_string): Likewise.
6988 (raw_memory_xfer_partial): Likewise.
6989 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6990 * valops.c (read_value_memory): Likewise.
6991 * exec.h: Update comments.
6992
01cb8804
YQ
69932014-02-24 Yao Qi <yao@codesourcery.com>
6994
6995 * target.c (target_xfer_status_to_string): Rename argument err
6996 to status.
6997 * target.h (target_xfer_status_to_string): Update declaration.
6998 Replace target_xfer_error_to_string with
6999 target_xfer_status_to_string in comment.
7000
93063aa6
YQ
70012014-02-24 Yao Qi <yao@codesourcery.com>
7002
7003 * mips-linux-nat.c (super_close): Update its type.
7004 (mips_linux_close): Pass 'self' to super_close.
7005
5c328c05
YQ
70062014-02-24 Yao Qi <yao@codesourcery.com>
7007
7008 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7009 * corefile.c (read_memory): Adjusted.
7010 * target.c (target_write_with_progress): Adjusted.
7011
f73023dd
YQ
70122014-02-23 Yao Qi <yao@codesourcery.com>
7013
7014 Revert two patches:
7015
7016 2013-10-25 Yao Qi <yao@codesourcery.com>
7017
7018 * remote.c (remote_traceframe_info): Return early if
7019 traceframe is not selected.
7020
7021 2013-07-19 Yao Qi <yao@codesourcery.com>
7022
7023 * target.c (update_current_target): Change the default action
7024 of 'to_traceframe_info' from tcomplain to return_zero.
7025 * target.h (struct target_ops) <to_traceframe_info>: Add more
7026 comments.
7027
5a2eb0ef
YQ
70282014-02-23 Yao Qi <yao@codesourcery.com>
7029
7030 * valops.c (read_value_memory): Rewrite it. Call
7031 target_xfer_partial in a loop.
7032 * exec.h (section_table_available_memory): Remove declaration.
7033 Move comments to ...
7034 * exec.c (section_table_available_memory): ... here. Make it
7035 static.
7036
1ee79381
YQ
70372014-02-23 Yao Qi <yao@codesourcery.com>
7038
7039 * exec.c (section_table_read_available_memory): New function.
7040 * exec.h (section_table_read_available_memory): Declare.
7041 * ctf.c (ctf_xfer_partial): Call
7042 section_table_read_available_memory.
7043 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7044
1ca49d37
YQ
70452014-02-23 Yao Qi <yao@codesourcery.com>
7046
7047 * ctf.c (ctf_xfer_partial): Move code to ...
7048 * exec.c (exec_read_partial_read_only): ... it. New function.
7049 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7050 * tracefile.c: Include "exec.h".
7051 * exec.h (exec_read_partial_read_only): Declare.
7052
a283690e
YQ
70532014-02-23 Yao Qi <yao@codesourcery.com>
7054
7055 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7056 (tfile_has_memory): Remove.
7057 (init_tfile_ops): Don't set fields to_has_all_memory and
7058 to_has_memory of tfile_ops.
7059 * tracefile.c (tracefile_has_all_memory): New function.
7060 (tracefile_has_memory): New function.
7061 (init_tracefile_ops): Initialize fields to_has_all_memory and
7062 to_has_memory of 'ops'.
7063
12e03cd0
YQ
70642014-02-23 Yao Qi <yao@codesourcery.com>
7065
7066 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7067 (ctf_thread_alive, ctf_get_trace_status): Remove.
7068 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7069 init_tracefile_ops.
7070 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7071 (tfile_has_stack, tfile_has_registers): Remove.
7072 (tfile_thread_alive): Remove.
7073 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7074 init_tracefile_ops.
7075 * tracefile.c (tracefile_has_stack): New function.
7076 (tracefile_has_registers): New function.
7077 (tracefile_thread_alive): New function.
7078 (tracefile_get_trace_status): New function.
7079 (init_tracefile_ops): New function.
7080 * tracefile.h (init_tracefile_ops): Declare.
7081
11395323
YQ
70822014-02-23 Yao Qi <yao@codesourcery.com>
7083
7084 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7085 (O_LARGEFILE): Likewise.
7086 (tfile_ops): Likewise.
7087 (TRACE_HEADER_SIZE): Likewise.
7088 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7089 (cur_data_size): Likewise.
7090 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7091 (tfile_close, tfile_files_info): Likewise.
7092 (tfile_get_trace_status): Likewise.
7093 (tfile_get_tracepoint_status): Likewise.
7094 (tfile_get_traceframe_address): Likewise.
7095 (tfile_trace_find, match_blocktype): Likewise.
7096 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7097 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7098 (tfile_get_trace_state_variable_value): Likewise.
7099 (tfile_has_all_memory, tfile_has_memory): Likewise.
7100 (tfile_has_stack, tfile_has_registers): Likewise.
7101 (tfile_thread_alive, build_traceframe_info): Likewise.
7102 (tfile_traceframe_info, init_tfile_ops): Likewise.
7103 (_initialize_tracepoint): Don't call init_tfile_ops
7104 and add_target_with_completer.
7105 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7106 exec.h, completer.h and filenames.h.
7107 (_initialize_tracefile_tfile): New function.
7108
7951c4eb
YQ
71092014-02-23 Yao Qi <yao@codesourcery.com>
7110
7111 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7112 tracefile-tfile.o.
7113 (HFILES_NO_SRCDIR): Add tracefile.h.
7114 * ctf.c: Include "tracefile.h".
7115 * tracefile.h: New file.
7116 * tracefile.c: New file
7117 * tracefile-tfile.c: New file.
7118 * tracepoint.c: Include "tracefile.h".
7119 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7120 (stop_reason_names): Add const.
7121 (trace_file_writer_xfree): Move it to tracefile.c.
7122 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7123 (trace_save_ctf): Likewise.
7124 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7125 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7126 (tfile_write_header, tfile_write_regblock_type): Likewise.
7127 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7128 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7129 (tfile_write_raw_data, tfile_end): Likewise.
7130 (tfile_trace_file_writer_new): Likewise.
7131 (free_uploaded_tp): Make it extern.
7132 (free_uploaded_tsv): Make it extern.
7133 (_initialize_tracepoint): Move code to register command 'tsave'
7134 to tracefile.c.
7135 * tracepoint.h (stop_reason_names): Declare.
7136 (struct trace_frame_write_ops): Move it to tracefile.h.
7137 (struct trace_file_write_ops): Likewise.
7138 (struct trace_file_writer): Likewise.
7139 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7140
184cd072
JK
71412014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7142
7143 PR gdb/16594
7144 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7145 process name.
7146 (get_cores_used_by_process): New parameter num_cores, use it.
7147 (linux_xfer_osdata_processes): Pass num_cores to it.
7148 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7149 process name.
7150
c63528fc
AK
71512014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7152
7153 * target.c (memory_xfer_partial): Fix length arg in call to
7154 breakpoint_xfer_memory.
7155
d7b30f67
SDJ
71562014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7157
7158 PR tdep/16397
7159 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7160 number comes after the + or - signs. Adjust length of register
7161 name to be extracted.
7162
8838afaf
TT
71632014-02-20 Tom Tromey <tromey@redhat.com>
7164
7165 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7166 (ada_varobj_ops): Mark "extern".
7167
05227d14
TT
71682014-02-20 Tom Tromey <tromey@redhat.com>
7169
7170 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7171
1254eefc
DE
71722014-02-20 Doug Evans <xdje42@gmail.com>
7173
7174 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7175 All callers updated.
7176 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7177 All callers updated.
7178 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7179 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7180
adde2bff
DE
71812014-02-20 lin zuojian <manjian2006@gmail.com>
7182 Joel Brobecker <brobecker@adacore.com>
7183 Doug Evans <xdje42@gmail.com>
7184
7185 PR symtab/16581
7186 * dwarf2read.c (struct die_info): New member in_process.
7187 (reset_die_in_process): New function.
7188 (process_die): Set it at the start, reset when returning.
7189 (inherit_abstract_dies): Only call process_die if origin_child_die
7190 not already being processed.
7191
3be75f87
JB
71922014-02-20 Joel Brobecker <brobecker@adacore.com>
7193
7194 * windows-nat.c (handle_unload_dll): Add function documentation.
7195 (do_initial_windows_stuff): Add comment explaining why we wait
7196 until after inferior initialization has finished before
7197 processing all DLLs.
7198
47f7ffdb
JB
71992014-02-20 Joel Brobecker <brobecker@adacore.com>
7200
7201 * windows-nat.c (get_module_name): Delete.
7202 (windows_get_exec_module_filename): New function, mostly
7203 inspired from get_module_name.
7204 (windows_pid_to_exec_file): Replace call to get_module_name
7205 by call to windows_get_exec_module_filename.
7206
1cd9feab
JB
72072014-02-20 Joel Brobecker <brobecker@adacore.com>
7208
7209 * windows-nat.c (handle_load_dll): Rewrite this function's
7210 introductory comment. Remove code using get_module_name
7211 to get the DLL's name.
7212
ea39ad35
JB
72132014-02-20 Joel Brobecker <brobecker@adacore.com>
7214
7215 * windows-nat.c (get_windows_debug_event): Ignore
7216 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7217 if windows_initialization_done == 0.
7218 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7219 Adjust implementation to always load all DLLs.
7220 (do_initial_windows_stuff): Replace call to
7221 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7222
95060284
JB
72232014-02-20 Joel Brobecker <brobecker@adacore.com>
7224
7225 * windows-nat.c (_initialize_windows_nat): Deprecate the
7226 "dll-symbols" command. Turn the "add-shared-symbol-files"
7227 and "assf" aliases into commands, and deprecate them as well.
7228 * NEWS: Add entry explaining that "dll-symbols" and its two
7229 aliases are now deprecated.
7230
8d4fdb12
JB
72312014-02-20 Joel Brobecker <brobecker@adacore.com>
7232
7233 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7234 new-line in debug string. Remove trailing spaces.
7235
1b281443
SS
72362014-02-19 Stan Shebs <stan@codesourcery.com>
7237
7238 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7239
f7bd0f78
SC
72402014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7241
7242 * NEWS: Add entry for the new feature
7243 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7244 and class values.
7245
399ebc3d
SS
72462014-02-19 Stan Shebs <stan@codesourcery.com>
7247
7248 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7249
c658158d
PA
72502014-02-19 Pedro Alves <palves@redhat.com>
7251
7252 * common/ptid.h (struct ptid): Mention that process_stratum
7253 targets should prefer ptid.lwp.
7254
ba348170
PA
72552014-02-19 Pedro Alves <palves@redhat.com>
7256
7257 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7258 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7259 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7260 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7261 store remote thread ids rather than ptid.tid.
7262 (_initialize_remote): Adjust.
7263
ac01945b
TT
72642014-02-19 Tom Tromey <tromey@redhat.com>
7265
7266 * target.c (target_get_unwinder): Rewrite.
7267 (target_get_tailcall_unwinder): Rewrite.
7268 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7269 (record_btrace_to_get_tailcall_unwinder): New function.
7270 (init_record_btrace_ops): Update.
7271 * target.h (struct target_ops) <to_get_unwinder,
7272 to_get_tailcall_unwinder>: Now function pointers. Use
7273 TARGET_DEFAULT_RETURN.
7274
8476dc92
TT
72752014-02-19 Tom Tromey <tromey@redhat.com>
7276
7277 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7278 argument.
7279 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7280
c0eca49f
TT
72812014-02-19 Tom Tromey <tromey@redhat.com>
7282
7283 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7284 directly.
7285 * target-delegates.c: Rebuild.
7286 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7287 TARGET_DEFAULT_FUNC.
7288 * target.c (default_target_decr_pc_after_break): Rename from
7289 forward_target_decr_pc_after_break. Simplify.
7290 (target_decr_pc_after_break): Rely on delegation.
7291
596b6b39
TT
72922014-02-19 Tom Tromey <tromey@redhat.com>
7293
7294 * target.c (update_current_target): Do not INHERIT to_doc or
7295 to_magic. Do not de_fault to_open or to_close.
7296
b427c1bc
TT
72972014-02-19 Tom Tromey <tromey@redhat.com>
7298
7299 * gcore.h (objfile_find_memory_regions): Declare.
7300 * gcore.c (objfile_find_memory_regions): No longer static. Add
7301 "self" argument.
7302 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7303 * exec.c: Include gcore.h.
7304 (exec_set_find_memory_regions): Remove.
7305 (exec_find_memory_regions): Remove.
7306 (exec_do_find_memory_regions): Remove.
7307 (init_exec_ops): Update.
7308 * defs.h (exec_set_find_memory_regions): Remove.
7309
9b144037
TT
73102014-02-19 Tom Tromey <tromey@redhat.com>
7311
7312 * target-delegates.c: Rebuild.
7313 * target.h (struct target_ops) <to_extra_thread_info,
7314 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7315 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7316 not 0, in TARGET_DEFAULT_RETURN.
7317
555bbdeb
TT
73182014-02-19 Tom Tromey <tromey@redhat.com>
7319
7320 * target.c (complete_target_initialization): Remove casts. Use
7321 return_zero_has_execution.
7322 (return_zero): Add "ignore" argument.
7323 (return_zero_has_execution): New function.
7324 (init_dummy_target): Remove casts. Use
7325 return_zero_has_execution.
7326
be4ddd36
TT
73272014-02-19 Tom Tromey <tromey@redhat.com>
7328
7329 * target.c (update_current_target): Update comments. Do not
7330 INHERIT to_stratum.
7331
2117c711
TT
73322014-02-19 Tom Tromey <tromey@redhat.com>
7333
7334 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7335 needed.
7336 * corelow.c (core_read_description): Delegate when needed.
7337 * remote.c (remote_read_description): Delegate when needed.
7338 * target-delegates.c: Rebuild.
7339 * target.c (target_read_description): Rewrite.
7340 * target.h (struct target_ops) <to_read_description>: Update
7341 comment. Use TARGET_DEFAULT_RETURN.
7342
e88ef65c
TT
73432014-02-19 Tom Tromey <tromey@redhat.com>
7344
7345 * target-delegates.c: Rebuild.
7346 * target.c (update_current_target): Don't inherit or default
7347 to_can_run.
7348 (find_default_run_target): Check against delegate_can_run.
7349 * target.h (struct target_ops) <to_can_run>: Use
7350 TARGET_DEFAULT_RETURN.
7351
86a0854a
TT
73522014-02-19 Tom Tromey <tromey@redhat.com>
7353
7354 * target-delegates.c: Rebuild.
7355 * target.c (target_disconnect): Unconditionally delegate.
7356 * target.h (struct target_ops) <to_disconnect>: Use
7357 TARGET_DEFAULT_NORETURN.
7358
ee97f592
TT
73592014-02-19 Tom Tromey <tromey@redhat.com>
7360
7361 * record.c (record_stop): Unconditionally delegate.
7362 * target-delegates.c: Rebuild.
7363 * target.c (target_stop_recording): Unconditionally delegate.
7364 * target.h (struct target_ops) <to_stop_recording>: Use
7365 TARGET_DEFAULT_IGNORE.
7366
6dc7fcf4
TT
73672014-02-19 Tom Tromey <tromey@redhat.com>
7368
7369 * target-delegates.c: Rebuild.
7370 * target.c (target_enable_btrace): Unconditionally delegate.
7371 * target.h (struct target_ops) <to_enable_btrace>: Use
7372 TARGET_DEFAULT_NORETURN.
7373
eb5b20d4
TT
73742014-02-19 Tom Tromey <tromey@redhat.com>
7375
7376 * target-delegates.c: Rebuild.
7377 * target.c (target_read_btrace): Unconditionally delegate.
7378 * target.h (struct target_ops) <to_read_btrace>: Use
7379 TARGET_DEFAULT_NORETURN.
7380
9ace480d
TT
73812014-02-19 Tom Tromey <tromey@redhat.com>
7382
7383 * target-delegates.c: Rebuild.
7384 * target.c (target_teardown_btrace): Unconditionally delegate.
7385 * target.h (struct target_ops) <to_teardown_btrace>: Use
7386 TARGET_DEFAULT_NORETURN.
7387
8dc292d3
TT
73882014-02-19 Tom Tromey <tromey@redhat.com>
7389
7390 * target-delegates.c: Rebuild.
7391 * target.c (target_disable_btrace): Unconditionally delegate.
7392 * target.h (struct target_ops) <to_disable_btrace>: Use
7393 TARGET_DEFAULT_NORETURN.
7394
58a5184e
TT
73952014-02-19 Tom Tromey <tromey@redhat.com>
7396
7397 * target-delegates.c: Rebuild.
7398 * target.c (default_search_memory): New function.
7399 (simple_search_memory): Update comment.
7400 (target_search_memory): Unconditionally delegate.
7401 * target.h (struct target_ops) <to_search_memory>: Use
7402 TARGET_DEFAULT_FUNC.
7403
8de71aab
TT
74042014-02-19 Tom Tromey <tromey@redhat.com>
7405
7406 * auxv.c (default_auxv_parse): No longer static.
7407 (target_auxv_parse): Unconditionally delegate.
7408 * auxv.h (default_auxv_parse): Declare.
7409 * target-delegates.c: Rebuild.
7410 * target.c: Include auxv.h.
7411 * target.h (struct target_ops) <to_auxv_parse>: Use
7412 TARGET_DEFAULT_FUNC.
7413
6b2c5a57
TT
74142014-02-19 Tom Tromey <tromey@redhat.com>
7415
7416 * target-delegates.c: Rebuild.
7417 * target.c (target_memory_map): Unconditionally delegate.
7418 * target.h (struct target_ops) <to_memory_map>: Use
7419 TARGET_DEFAULT_RETURN.
7420
cbffc065
TT
74212014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target-delegates.c: Rebuild.
7424 * target.c (target_thread_alive): Unconditionally delegate.
7425 * target.h (struct target_ops) <to_thread_alive>: Use
7426 TARGET_DEFAULT_RETURN.
7427
f09e2107
TT
74282014-02-19 Tom Tromey <tromey@redhat.com>
7429
7430 * target-delegates.c: Rebuild.
7431 * target.c (target_save_record): Unconditionally delegate.
7432 * target.h (struct target_ops) <to_save_record>: Use
7433 TARGET_DEFAULT_NORETURN.
7434
07366925
TT
74352014-02-19 Tom Tromey <tromey@redhat.com>
7436
7437 * target-delegates.c: Rebuild.
7438 * target.c (target_delete_record): Unconditionally delegate.
7439 * target.h (struct target_ops) <to_delete_record>: Use
7440 TARGET_DEFAULT_NORETURN.
7441
dd2e9d25
TT
74422014-02-19 Tom Tromey <tromey@redhat.com>
7443
7444 * target-delegates.c: Rebuild.
7445 * target.c (target_record_is_replaying): Unconditionally
7446 delegate.
7447 * target.h (struct target_ops) <to_record_is_replaying>: Use
7448 TARGET_DEFAULT_RETURN.
7449
671e76cc
TT
74502014-02-19 Tom Tromey <tromey@redhat.com>
7451
7452 * target-delegates.c: Rebuild.
7453 * target.c (target_goto_record_begin): Unconditionally delegate.
7454 * target.h (struct target_ops) <to_goto_record_begin>: Use
7455 TARGET_DEFAULT_NORETURN.
7456
e9179bb3
TT
74572014-02-19 Tom Tromey <tromey@redhat.com>
7458
7459 * target-delegates.c: Rebuild.
7460 * target.c (target_goto_record_end): Unconditionally delegate.
7461 * target.h (struct target_ops) <to_goto_record_end>: Use
7462 TARGET_DEFAULT_NORETURN.
7463
05969c84
TT
74642014-02-19 Tom Tromey <tromey@redhat.com>
7465
7466 * target-delegates.c: Rebuild.
7467 * target.c (target_goto_record): Unconditionally delegate.
7468 * target.h (struct target_ops) <to_goto_record>: Use
7469 TARGET_DEFAULT_NORETURN.
7470
3679abfa
TT
74712014-02-19 Tom Tromey <tromey@redhat.com>
7472
7473 * target-delegates.c: Rebuild.
7474 * target.c (target_insn_history): Unconditionally delegate.
7475 * target.h (struct target_ops) <to_insn_history>: Use
7476 TARGET_DEFAULT_NORETURN.
7477
8444ab58
TT
74782014-02-19 Tom Tromey <tromey@redhat.com>
7479
7480 * target-delegates.c: Rebuild.
7481 * target.c (target_insn_history_from): Unconditionally delegate.
7482 * target.h (struct target_ops) <to_insn_history_from>: Use
7483 TARGET_DEFAULT_NORETURN.
7484
c29302cc
TT
74852014-02-19 Tom Tromey <tromey@redhat.com>
7486
7487 * target-delegates.c: Rebuild.
7488 * target.c (target_insn_history_range): Unconditionally delegate.
7489 * target.h (struct target_ops) <to_insn_history_range>: Use
7490 TARGET_DEFAULT_NORETURN.
7491
170049d4
TT
74922014-02-19 Tom Tromey <tromey@redhat.com>
7493
7494 * target-delegates.c: Rebuild.
7495 * target.c (target_call_history): Unconditionally delegate.
7496 * target.h (struct target_ops) <to_call_history>: Use
7497 TARGET_DEFAULT_NORETURN.
7498
16fc27d6
TT
74992014-02-19 Tom Tromey <tromey@redhat.com>
7500
7501 * target-delegates.c: Rebuild.
7502 * target.c (target_call_history_from): Unconditionally delegate.
7503 * target.h (struct target_ops) <to_call_history_from>: Use
7504 TARGET_DEFAULT_NORETURN.
7505
115d9817
TT
75062014-02-19 Tom Tromey <tromey@redhat.com>
7507
7508 * target-delegates.c: Rebuild.
7509 * target.c (target_call_history_range): Unconditionally delegate.
7510 * target.h (struct target_ops) <to_call_history_range>: Use
7511 TARGET_DEFAULT_NORETURN.
7512
eb276a6b
TT
75132014-02-19 Tom Tromey <tromey@redhat.com>
7514
7515 * target-delegates.c: Rebuild.
7516 * target.c (target_verify_memory): Unconditionally delegate.
7517 * target.h (struct target_ops) <to_verify_memory>: Use
7518 TARGET_DEFAULT_NORETURN.
7519
9e538d0d
TT
75202014-02-19 Tom Tromey <tromey@redhat.com>
7521
7522 * target-delegates.c: Rebuild.
7523 * target.c (target_core_of_thread): Unconditionally delegate.
7524 * target.h (struct target_ops) <to_core_of_thread>: Use
7525 TARGET_DEFAULT_RETURN.
7526
f6fb2925
TT
75272014-02-19 Tom Tromey <tromey@redhat.com>
7528
7529 * target-delegates.c: Rebuild.
7530 * target.c (target_flash_done): Unconditionally delegate.
7531 * target.h (struct target_ops) <to_flash_done>: Use
7532 TARGET_DEFAULT_NORETURN.
7533
e8a6c6ac
TT
75342014-02-19 Tom Tromey <tromey@redhat.com>
7535
7536 * target-delegates.c: Rebuild.
7537 * target.c (target_flash_erase): Unconditionally delegate.
7538 * target.h (struct target_ops) <to_flash_erase>: Use
7539 TARGET_DEFAULT_NORETURN.
7540
7e35c012
TT
75412014-02-19 Tom Tromey <tromey@redhat.com>
7542
7543 * target-delegates.c: Rebuild.
7544 * target.c (target_get_section_table): Unconditionally delegate.
7545 * target.h (struct target_ops) <to_get_section_table>: Use
7546 TARGET_DEFAULT_RETURN.
7547
770234d3
TT
75482014-02-19 Tom Tromey <tromey@redhat.com>
7549
7550 * target-delegates.c: Rebuild.
7551 * target.c (target_pid_to_str): Unconditionally delegate.
7552 (init_dummy_target): Don't initialize to_pid_to_str.
7553 (default_pid_to_str): Rename from dummy_pid_to_str.
7554 * target.h (struct target_ops) <to_pid_to_str>: Use
7555 TARGET_DEFAULT_FUNC.
7556
09b0dc2b
TT
75572014-02-19 Tom Tromey <tromey@redhat.com>
7558
7559 * target-delegates.c: Rebuild.
7560 * target.c (target_find_new_threads): Unconditionally delegate.
7561 * target.h (struct target_ops) <to_find_new_threads>: Use
7562 TARGET_DEFAULT_RETURN.
7563
7d4f8efa
TT
75642014-02-19 Tom Tromey <tromey@redhat.com>
7565
7566 * target-delegates.c: Rebuild.
7567 * target.c (target_program_signals): Unconditionally delegate.
7568 * target.h (struct target_ops) <to_program_signals>: Use
7569 TARGET_DEFAULT_IGNORE.
7570
035cad7f
TT
75712014-02-19 Tom Tromey <tromey@redhat.com>
7572
7573 * target-delegates.c: Rebuild.
7574 * target.c (target_pass_signals): Unconditionally delegate.
7575 * target.h (struct target_ops) <to_pass_signals>: Use
7576 TARGET_DEFAULT_IGNORE.
7577
8d657035
TT
75782014-02-19 Tom Tromey <tromey@redhat.com>
7579
7580 * target-delegates.c: Rebuild.
7581 * target.c (default_mourn_inferior): New function.
7582 (target_mourn_inferior): Unconditionally delegate.
7583 * target.h (struct target_ops) <to_mourn_inferior>: Use
7584 TARGET_DEFAULT_FUNC.
7585
098dba18
TT
75862014-02-19 Tom Tromey <tromey@redhat.com>
7587
7588 * target-delegates.c: Rebuild.
7589 * target.c (default_follow_fork): New function.
7590 (target_follow_fork): Unconditionally delegate.
7591 * target.h (struct target_ops) <to_follow_fork>: Use
7592 TARGET_DEFAULT_FUNC.
7593
423a4807
TT
75942014-02-19 Tom Tromey <tromey@redhat.com>
7595
7596 * target-delegates.c: Rebuild.
7597 * target.c (target_kill): Unconditionally delegate.
7598 * target.h (struct target_ops) <to_kill>: Use
7599 TARGET_DEFAULT_NORETURN.
7600
6c7e5e5c
TT
76012014-02-19 Tom Tromey <tromey@redhat.com>
7602
7603 * target-delegates.c: Rebuild.
7604 * target.c (target_masked_watch_num_registers): Unconditionally
7605 delegate.
7606 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7607 Use TARGET_DEFAULT_RETURN.
7608
8b1c364c
TT
76092014-02-19 Tom Tromey <tromey@redhat.com>
7610
7611 * target-delegates.c: Rebuild.
7612 * target.c (target_remove_mask_watchpoint): Unconditionally
7613 delegate.
7614 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7615 TARGET_DEFAULT_RETURN.
7616
cd4ae029
TT
76172014-02-19 Tom Tromey <tromey@redhat.com>
7618
7619 * target-delegates.c: Rebuild.
7620 * target.c (target_insert_mask_watchpoint): Unconditionally
7621 delegate.
7622 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7623 TARGET_DEFAULT_RETURN.
7624
a134316b
TT
76252014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target-delegates.c: Rebuild.
7628 * target.c (target_ranged_break_num_registers): Unconditionally
7629 delegate.
7630 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7631 Use TARGET_DEFAULT_RETURN.
7632
ad5989bd
TT
76332014-02-19 Tom Tromey <tromey@redhat.com>
7634
7635 * target-delegates.c: Rebuild.
7636 * target.c (target_fetch_registers): Unconditionally delegate.
7637 * target.h (struct target_ops) <to_fetch_registers>: Use
7638 TARGET_DEFAULT_NORETURN.
7639
46ee7e8d
TT
76402014-02-19 Tom Tromey <tromey@redhat.com>
7641
7642 * target-delegates.c: Rebuild.
7643 * target.c (update_current_target): Don't inherit or default
7644 to_stop.
7645 * target.h (struct target_ops) <to_stop>: Use
7646 TARGET_DEFAULT_IGNORE.
7647
843f59ed
TT
76482014-02-19 Tom Tromey <tromey@redhat.com>
7649
7650 * target-delegates.c: Rebuild.
7651 * target.c (update_current_target): Don't inherit or default
7652 to_can_run_breakpoint_commands.
7653 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7654 Use TARGET_DEFAULT_RETURN.
7655
ccfde2a0
TT
76562014-02-19 Tom Tromey <tromey@redhat.com>
7657
7658 * target-delegates.c: Rebuild.
7659 * target.c (update_current_target): Don't inherit or default
7660 to_supports_evaluation_of_breakpoint_conditions.
7661 * target.h (struct target_ops)
7662 <to_supports_evaluation_of_breakpoint_conditions>: Use
7663 TARGET_DEFAULT_RETURN.
7664
0de91722
TT
76652014-02-19 Tom Tromey <tromey@redhat.com>
7666
7667 * target-delegates.c: Rebuild.
7668 * target.c (update_current_target): Don't inherit or default
7669 to_augmented_libraries_svr4_read.
7670 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7671 Use TARGET_DEFAULT_RETURN.
7672
9a7d8b48
TT
76732014-02-19 Tom Tromey <tromey@redhat.com>
7674
7675 * target-delegates.c: Rebuild.
7676 * target.c (update_current_target): Don't inherit or default
7677 to_can_use_agent.
7678 * target.h (struct target_ops) <to_can_use_agent>: Use
7679 TARGET_DEFAULT_RETURN.
7680
d9db5b21
TT
76812014-02-19 Tom Tromey <tromey@redhat.com>
7682
7683 * target-delegates.c: Rebuild.
7684 * target.c (update_current_target): Don't inherit or default
7685 to_use_agent.
7686 * target.h (struct target_ops) <to_use_agent>: Use
7687 TARGET_DEFAULT_NORETURN.
7688
92155eeb
TT
76892014-02-19 Tom Tromey <tromey@redhat.com>
7690
7691 * target-delegates.c: Rebuild.
7692 * target.c (update_current_target): Don't inherit or default
7693 to_traceframe_info.
7694 (return_null): Remove.
7695 * target.h (struct target_ops) <to_traceframe_info>: Use
7696 TARGET_DEFAULT_RETURN.
7697
d6522a22
TT
76982014-02-19 Tom Tromey <tromey@redhat.com>
7699
7700 * target-delegates.c: Rebuild.
7701 * target.c (update_current_target): Don't inherit or default
7702 to_static_tracepoint_markers_by_strid.
7703 * target.h (struct target_ops)
7704 <to_static_tracepoint_markers_by_strid>: Use
7705 TARGET_DEFAULT_NORETURN.
7706
4c3e4425
TT
77072014-02-19 Tom Tromey <tromey@redhat.com>
7708
7709 * target-delegates.c: Rebuild.
7710 * target.c (update_current_target): Don't inherit or default
7711 to_static_tracepoint_marker_at.
7712 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7713 Use TARGET_DEFAULT_RETURN.
7714
dcd6917f
TT
77152014-02-19 Tom Tromey <tromey@redhat.com>
7716
7717 * target-delegates.c: Rebuild.
7718 * target.c (update_current_target): Don't inherit or default
7719 to_set_permissions.
7720 * target.h (struct target_ops) <to_set_permissions>: Use
7721 TARGET_DEFAULT_IGNORE.
7722
22bcceee
TT
77232014-02-19 Tom Tromey <tromey@redhat.com>
7724
7725 * target-delegates.c: Rebuild.
7726 * target.c (update_current_target): Don't inherit or default
7727 to_get_tib_address.
7728 * target.h (struct target_ops) <to_get_tib_address>: Use
7729 TARGET_DEFAULT_NORETURN.
7730
8586ccaa
TT
77312014-02-19 Tom Tromey <tromey@redhat.com>
7732
7733 * target-delegates.c: Rebuild.
7734 * target.c (update_current_target): Don't inherit or default
7735 to_set_trace_notes.
7736 * target.h (struct target_ops) <to_set_trace_notes>: Use
7737 TARGET_DEFAULT_RETURN.
7738
91df8d1d
TT
77392014-02-19 Tom Tromey <tromey@redhat.com>
7740
7741 * target-delegates.c: Rebuild.
7742 * target.c (update_current_target): Don't initialize
7743 to_set_trace_buffer_size.
7744 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7745 TARGET_DEFAULT_IGNORE.
7746
8d526939
TT
77472014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target-delegates.c: Rebuild.
7750 * target.c (update_current_target): Don't inherit or default
7751 to_set_circular_trace_buffer.
7752 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7753 TARGET_DEFAULT_IGNORE.
7754
0bcfeddf
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_set_disconnected_tracing.
7760 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7761 TARGET_DEFAULT_IGNORE.
7762
9249843f
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_min_fast_tracepoint_insn_len.
7768 (return_minus_one): Remove.
7769 * target.h (struct target_ops)
7770 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7771
ace92e7d
TT
77722014-02-19 Tom Tromey <tromey@redhat.com>
7773
7774 * target-delegates.c: Rebuild.
7775 * target.c (update_current_target): Don't inherit or default
7776 to_get_raw_trace_data.
7777 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7778 TARGET_DEFAULT_NORETURN.
7779
08120467
TT
77802014-02-19 Tom Tromey <tromey@redhat.com>
7781
7782 * target-delegates.c: Rebuild.
7783 * target.c (update_current_target): Don't inherit or default
7784 to_upload_trace_state_variables.
7785 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7786 Use TARGET_DEFAULT_RETURN.
7787
1e949b00
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target-delegates.c: Rebuild.
7791 * target.c (update_current_target): Don't inherit or default
7792 to_upload_tracepoints.
7793 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7794 TARGET_DEFAULT_RETURN.
7795
a2e6c147
TT
77962014-02-19 Tom Tromey <tromey@redhat.com>
7797
7798 * target-delegates.c: Rebuild.
7799 * target.c (update_current_target): Don't inherit or default
7800 to_save_trace_data.
7801 * target.h (struct target_ops) <to_save_trace_data>: Use
7802 TARGET_DEFAULT_NORETURN.
7803
959bcd0b
TT
78042014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target-delegates.c: Rebuild.
7807 * target.c (update_current_target): Don't inherit or default
7808 to_get_trace_state_variable_value.
7809 * target.h (struct target_ops)
7810 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7811
afc94e66
TT
78122014-02-19 Tom Tromey <tromey@redhat.com>
7813
7814 * target-delegates.c: Rebuild.
7815 * target.c (update_current_target): Don't inherit or default
7816 to_trace_find.
7817 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7818
e51c07ea
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_trace_stop.
7824 * target.h (struct target_ops) <to_trace_stop>: Use
7825 TARGET_DEFAULT_NORETURN.
7826
6fea14cd
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_get_tracepoint_status.
7832 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7833 TARGET_DEFAULT_NORETURN.
7834
4072d4ff
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_get_trace_status.
7840 * target.h (struct target_ops) <to_get_trace_status>: Use
7841 TARGET_DEFAULT_RETURN.
7842
25da2e80
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_trace_start.
7848 * target.h (struct target_ops) <to_trace_start>: Use
7849 TARGET_DEFAULT_NORETURN.
7850
86dd181d
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_trace_set_readonly_regions.
7856 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7857 Use TARGET_DEFAULT_NORETURN.
7858
05c41993
TT
78592014-02-19 Tom Tromey <tromey@redhat.com>
7860
7861 * target-delegates.c: Rebuild.
7862 * target.c (update_current_target): Don't inherit or default
7863 to_disable_tracepoint.
7864 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7865 TARGET_DEFAULT_NORETURN.
7866
151f70f1
TT
78672014-02-19 Tom Tromey <tromey@redhat.com>
7868
7869 * target-delegates.c: Rebuild.
7870 * target.c (update_current_target): Don't inherit or default
7871 to_enable_tracepoint.
7872 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7873 TARGET_DEFAULT_NORETURN.
7874
94eb98b9
TT
78752014-02-19 Tom Tromey <tromey@redhat.com>
7876
7877 * target-delegates.c: Rebuild.
7878 * target.c (update_current_target): Don't inherit or default
7879 to_download_trace_state_variable.
7880 * target.h (struct target_ops) <to_download_trace_state_variable>:
7881 Use TARGET_DEFAULT_NORETURN.
7882
719acc4a
TT
78832014-02-19 Tom Tromey <tromey@redhat.com>
7884
7885 * target-delegates.c: Rebuild.
7886 * target.c (update_current_target): Don't inherit or default
7887 to_can_download_tracepoint.
7888 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7889 TARGET_DEFAULT_RETURN.
7890
9a980a22
TT
78912014-02-19 Tom Tromey <tromey@redhat.com>
7892
7893 * target-delegates.c: Rebuild.
7894 * target.c (update_current_target): Don't inherit or default
7895 to_download_tracepoint.
7896 * target.h (struct target_ops) <to_download_tracepoint>: Use
7897 TARGET_DEFAULT_NORETURN.
7898
5536135b
TT
78992014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * target-delegates.c: Rebuild.
7902 * target.c (update_current_target): Don't inherit or default
7903 to_trace_init.
7904 * target.h (struct target_ops) <to_trace_init>: Use
7905 TARGET_DEFAULT_RETURN.
7906
9409d39e
TT
79072014-02-19 Tom Tromey <tromey@redhat.com>
7908
7909 * target-delegates.c: Rebuild.
7910 * target.c (update_current_target): Don't inherit or default
7911 to_supports_string_tracing.
7912 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7913 TARGET_DEFAULT_RETURN.
7914
aab1b22d
TT
79152014-02-19 Tom Tromey <tromey@redhat.com>
7916
7917 * target-delegates.c: Rebuild.
7918 * target.c (update_current_target): Don't inherit or default
7919 to_supports_enable_disable_tracepoint.
7920 * target.h (struct target_ops)
7921 <to_supports_enable_disable_tracepoint>: Use
7922 TARGET_DEFAULT_RETURN.
7923
a7304748
TT
79242014-02-19 Tom Tromey <tromey@redhat.com>
7925
7926 * target-delegates.c: Rebuild.
7927 * target.c (update_current_target): Don't inherit or default
7928 to_supports_multi_process.
7929 * target.h (struct target_ops) <to_supports_multi_process>: Use
7930 TARGET_DEFAULT_RETURN.
7931
4229b31d
TT
79322014-02-19 Tom Tromey <tromey@redhat.com>
7933
7934 * target-delegates.c: Rebuild.
7935 * target.c (update_current_target): Don't inherit or default
7936 to_get_ada_task_ptid.
7937 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7938 TARGET_DEFAULT_FUNC.
7939
43eba180
TT
79402014-02-19 Tom Tromey <tromey@redhat.com>
7941
7942 * target-delegates.c: Rebuild.
7943 * target.c (update_current_target): Don't inherit or default
7944 to_thread_architecture.
7945 * target.h (struct target_ops) <to_thread_architecture>: Use
7946 TARGET_DEFAULT_FUNC.
7947
fe31bf5b
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_execution_direction.
7953 * target.h (struct target_ops) <to_execution_direction>: Use
7954 TARGET_DEFAULT_FUNC.
7955
53e1cfc7
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_can_execute_reverse.
7961 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7962 TARGET_DEFAULT_RETURN.
7963 (target_can_execute_reverse): Unconditionally delegate.
7964
9bb9d61d
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_goto_bookmark.
7970 (dummy_goto_bookmark): Remove.
7971 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7972 * target.h (struct target_ops) <to_goto_bookmark>: Use
7973 TARGET_DEFAULT_NORETURN.
7974
3dbafbbb
TT
79752014-02-19 Tom Tromey <tromey@redhat.com>
7976
7977 * target-delegates.c: Rebuild.
7978 * target.c (update_current_target): Don't inherit or default
7979 to_get_bookmark.
7980 (dummy_get_bookmark): Remove.
7981 (init_dummy_target): Don't inherit or default to_get_bookmark.
7982 * target.h (struct target_ops) <to_get_bookmark>: Use
7983 TARGET_DEFAULT_NORETURN
7984
16f796b1
TT
79852014-02-19 Tom Tromey <tromey@redhat.com>
7986
7987 * target-delegates.c: Rebuild.
7988 * target.c (update_current_target): Don't inherit or default
7989 to_make_corefile_notes.
7990 (init_dummy_target): Don't initialize to_make_corefile_notes.
7991 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7992 TARGET_DEFAULT_FUNC.
7993
0b5a2719
TT
79942014-02-19 Tom Tromey <tromey@redhat.com>
7995
7996 * target-delegates.c: Rebuild.
7997 * target.c (update_current_target): Don't inherit or default
7998 to_find_memory_regions.
7999 (init_dummy_target): Don't initialize to_find_memory_regions.
8000 * target.h (struct target_ops) <to_find_memory_regions>: Use
8001 TARGET_DEFAULT_FUNC.
8002
d9cb0195
TT
80032014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * target-delegates.c: Rebuild.
8006 * target.c (update_current_target): Don't inherit or default
8007 to_log_command.
8008 * target.h (struct target_ops) <to_log_command>: Use
8009 TARGET_DEFAULT_IGNORE.
8010 (target_log_command): Unconditionally delegate.
8011
830ca330
TT
80122014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8016 to_pid_to_exec_file.
8017 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8018 TARGET_DEFAULT_RETURN.
8019
825828fc
TT
80202014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * target-delegates.c: Rebuild.
8023 * target.c (update_current_target): Don't inherit or default
8024 to_thread_name.
8025 (target_thread_name): Unconditionally delegate.
8026 * target.h (struct target_ops) <to_thread_name>: Use
8027 TARGET_DEFAULT_RETURN.
8028
4a7e6dda
TT
80292014-02-19 Tom Tromey <tromey@redhat.com>
8030
8031 * target-delegates.c: Rebuild.
8032 * target.c (update_current_target): Don't inherit or default
8033 to_extra_thread_info.
8034 * target.h (struct target_ops) <to_extra_thread_info>: Use
8035 TARGET_DEFAULT_RETURN.
8036
0db88c1d
TT
80372014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * target-delegates.c: Rebuild.
8040 * target.c (update_current_target): Don't inherit or default
8041 to_has_exited.
8042 * target.h (struct target_ops) <to_has_exited>: Use
8043 TARGET_DEFAULT_RETURN..
8044
6a9fa051
TT
80452014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (update_current_target): Don't inherit or default
8049 to_set_syscall_catchpoint.
8050 (return_one): Remove.
8051 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8052 TARGET_DEFAULT_RETURN.
8053
62f64d7a
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_insert_exec_catchpoint.
8059 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8060 TARGET_DEFAULT_RETURN.
8061
cda0f38c
TT
80622014-01-08 Tom Tromey <tromey@redhat.com>
8063
8064 * target-delegates.c: Rebuild.
8065 * target.c (update_current_target): Don't inherit or default
8066 to_insert_exec_catchpoint.
8067 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8068 TARGET_DEFAULT_RETURN.
8069
95c3375e
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_remove_vfork_catchpoint.
8075 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8076 TARGET_DEFAULT_RETURN.
8077
7e18a8dc
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_insert_vfork_catchpoint.
8083 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8084 TARGET_DEFAULT_RETURN.
8085
e1a21fb7
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_remove_fork_catchpoint.
8091 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8092 TARGET_DEFAULT_RETURN.
8093
5958ebeb
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_insert_fork_catchpoint.
8099 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8100 TARGET_DEFAULT_RETURN.
8101
340ba4bf
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_post_startup_inferior.
8107 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8108 TARGET_DEFAULT_IGNORE.
8109
7634da87
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_load.
8115 * target.h (struct target_ops) <to_load>: Use
8116 TARGET_DEFAULT_NORETURN.
8117
e19e919f
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_terminal_info.
8123 * target.h (struct target_ops) <to_terminal_info>: Use
8124 TARGET_DEFAULT_FUNC.
8125
c6ea8f79
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_terminal_save_ours.
8131 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8132 TARGET_DEFAULT_IGNORE.
8133
e4a733f1
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_terminal_ours.
8139 * target.h (struct target_ops) <to_terminal_ours>: Use
8140 TARGET_DEFAULT_IGNORE.
8141
74fcbef9
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_terminal_ours_for_output.
8147 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8148 TARGET_DEFAULT_IGNORE.
8149
ddeaacc9
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_terminal_inferior.
8155 * target.h (struct target_ops) <to_terminal_inferior>: Use
8156 TARGET_DEFAULT_IGNORE.
8157
0343661d
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_terminal_init.
8163 * target.h (struct target_ops) <to_terminal_init>: Use
8164 TARGET_DEFAULT_IGNORE.
8165
77cdffe9
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_can_accel_watchpoint_condition.
8171 * target.h (struct target_ops)
8172 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8173
d03655e4
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_region_ok_for_hw_watchpoint.
8179 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8180 Use TARGET_DEFAULT_FUNC.
8181
65f160a9
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_watchpoint_addr_within_range.
8187 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8188 Use TARGET_DEFAULT_FUNC.
8189
61dd109f
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_remove_watchpoint.
8195 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8196 TARGET_DEFAULT_NORETURN.
8197
016facd4
TT
81982014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (update_current_target): Don't inherit or default
8202 to_insert_watchpoint.
8203 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8204 TARGET_DEFAULT_RETURN.
8205
418dabac
TT
82062014-02-19 Tom Tromey <tromey@redhat.com>
8207
8208 * target-delegates.c: Rebuild.
8209 * target.c (update_current_target): Don't inherit or default
8210 to_remove_hw_breakpoint.
8211 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8212 TARGET_DEFAULT_RETURN.
8213
61b371f9
TT
82142014-02-19 Tom Tromey <tromey@redhat.com>
8215
8216 * target-delegates.c: Rebuild.
8217 * target.c (update_current_target): Don't inherit or default
8218 to_insert_hw_breakpoint.
8219 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8220 TARGET_DEFAULT_RETURN.
8221
52b51d06
TT
82222014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8226 to_can_use_hw_breakpoint.
8227 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8228 TARGET_DEFAULT_RETURN.
8229
f86e59b2
TT
82302014-02-19 Tom Tromey <tromey@redhat.com>
8231
8232 * target-delegates.c: Rebuild.
8233 * target.c (update_current_target): Don't inherit or default
8234 to_files_info.
8235 * target.h (struct target_ops) <to_files_info>: Use
8236 TARGET_DEFAULT_IGNORE.
8237
6c628163
TT
82382014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * target-delegates.c: Rebuild.
8241 * target.c (update_current_target): Don't inherit or default
8242 to_store.
8243 * target.h (struct target_ops) <to_store>: Use
8244 TARGET_DEFAULT_NORETURN.
8245
bebd3233
TT
82462014-02-19 Tom Tromey <tromey@redhat.com>
8247
8248 * target-delegates.c: Rebuild.
8249 * target.c (update_current_target): Don't inherit or default
8250 to_post_attach.
8251 * target.h (struct target_ops) <to_post_attach>: Use
8252 TARGET_DEFAULT_IGNORE.
8253
a53f3625
TT
82542014-02-19 Tom Tromey <tromey@redhat.com>
8255
8256 * target-delegates.c: Rebuild.
8257 * target.c (update_current_target): Don't inherit or default
8258 to_rcmd.
8259 (default_rcmd): New function.
8260 (do_monitor_command): Unconditionally delegate.
8261 * target.h (struct target_ops) <to_rmcd>: Use
8262 TARGET_DEFAULT_FUNC.
8263
e9a29200
TT
82642014-02-19 Tom Tromey <tromey@redhat.com>
8265
8266 * target-delegates.c: Rebuild.
8267 * target.c (init_dummy_target): Don't initialize to_attach.
8268 (target_attach): Unconditionally delegate.
8269 * target.h (struct target_ops) <to_attach>: Use
8270 TARGET_DEFAULT_FUNC.
8271
09da0d0a
TT
82722014-02-19 Tom Tromey <tromey@redhat.com>
8273
8274 * target-delegates.c: Rebuild.
8275 * target.c (target_detach): Unconditionally delegate.
8276 (init_dummy_target): Don't initialize to_detach.
8277 * target.h (struct target_ops) <to_detach>: Use
8278 TARGET_DEFAULT_IGNORE.
8279
5436ff03
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8283 Add argument.
8284 (target_augmented_libraries_svr4_read): Add argument.
8285 * target.c (update_current_target): Update.
8286 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8287 argument.
8288
f0d960ea
TT
82892014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target.h (struct target_ops) <to_call_history_range>: Add
8292 argument.
8293 * target.c (target_call_history_range): Add argument.
8294 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8295 argument.
8296 (record_btrace_call_history_from): Update.
8297
ec0aea04
TT
82982014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target.h (struct target_ops) <to_call_history_from>: Add
8301 argument.
8302 * target.c (target_call_history_from): Add argument.
8303 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8304 argument.
8305
5df2fcba
TT
83062014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target.h (struct target_ops) <to_call_history>: Add argument.
8309 * target.c (target_call_history): Add argument.
8310 * record-btrace.c (record_btrace_call_history): Add 'self'
8311 argument.
8312
4e99c6b7
TT
83132014-02-19 Tom Tromey <tromey@redhat.com>
8314
8315 * target.h (struct target_ops) <to_insn_history_range>: Add
8316 argument.
8317 * target.c (target_insn_history_range): Add argument.
8318 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8319 argument.
8320 (record_btrace_insn_history_from): Update.
8321
9abc3ff3
TT
83222014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target.h (struct target_ops) <to_insn_history_from>: Add
8325 argument.
8326 * target.c (target_insn_history_from): Add argument.
8327 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8328 argument.
8329
7a6c5609
TT
83302014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target.h (struct target_ops) <to_insn_history>: Add argument.
8333 * target.c (target_insn_history): Add argument.
8334 * record-btrace.c (record_btrace_insn_history): Add 'self'
8335 argument.
8336
606183ac
TT
83372014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target.h (struct target_ops) <to_goto_record>: Add argument.
8340 * target.c (target_goto_record): Add argument.
8341 * record-full.c (record_full_goto): Add 'self' argument.
8342 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8343
307a1b91
TT
83442014-02-19 Tom Tromey <tromey@redhat.com>
8345
8346 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8347 * target.c (target_goto_record_end): Add argument.
8348 * record-full.c (record_full_goto_end): Add 'self' argument.
8349 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8350
08475817
TT
83512014-02-19 Tom Tromey <tromey@redhat.com>
8352
8353 * target.h (struct target_ops) <to_goto_record_begin>: Add
8354 argument.
8355 * target.c (target_goto_record_begin): Add argument.
8356 * record-full.c (record_full_goto_begin): Add 'self' argument.
8357 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8358 argument.
8359
1c63c994
TT
83602014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target.h (struct target_ops) <to_record_is_replaying>: Add
8363 argument.
8364 * target.c (target_record_is_replaying): Add argument.
8365 * record-full.c (record_full_is_replaying): Add 'self' argument.
8366 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8367 argument.
8368 (record_btrace_xfer_partial, record_btrace_store_registers)
8369 (record_btrace_prepare_to_store, record_btrace_resume)
8370 (record_btrace_wait, record_btrace_decr_pc_after_break)
8371 (record_btrace_find_new_threads, record_btrace_thread_alive):
8372 Update.
8373
d1b55219
TT
83742014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target.h (struct target_ops) <to_delete_record>: Add argument.
8377 * target.c (target_delete_record): Add argument.
8378 * record-full.c (record_full_delete): Add 'self' argument.
8379
1390f529
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target.h (struct target_ops) <to_save_record>: Add argument.
8383 * target.c (target_save_record): Add argument.
8384 * record-full.c (record_full_save): Add 'self' argument.
8385 (record_full_save): Add 'self' argument.
8386
630d6a4a
TT
83872014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target.h (struct target_ops) <to_info_record>: Add argument.
8390 * target.c (target_info_record): Add argument.
8391 * record.c (info_record_command): Add argument.
8392 * record-full.c (record_full_info): Add 'self' argument.
8393 * record-btrace.c (record_btrace_info): Add 'self' argument.
8394
c6cd7c02
TT
83952014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8398 * target.c (target_stop_recording): Add argument.
8399 * record.c (record_stop): Add argument.
8400 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8401 argument.
8402
39c49f83
TT
84032014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8406 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8407 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8408 argument.
8409 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8410 (_initialize_amd64_linux_nat): Use it.
8411 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8412 (_initialize_i386_linux_nat): Use it.
8413
1777056d
TT
84142014-02-19 Tom Tromey <tromey@redhat.com>
8415
8416 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8417 * target.c (target_teardown_btrace): Add argument.
8418 * remote.c (remote_teardown_btrace): Add 'self' argument.
8419 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8420 argument.
8421 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8422 argument.
8423
25e95349
TT
84242014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8427 * target.c (target_disable_btrace): Add argument.
8428 * remote.c (remote_disable_btrace): Add 'self' argument.
8429 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8430 argument.
8431 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8432 argument.
8433
e3c49f88
TT
84342014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8437 * target.c (target_enable_btrace): Add argument.
8438 * remote.c (remote_enable_btrace): Add 'self' argument.
8439 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8440 argument.
8441 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8442 argument.
8443
fe38f897
TT
84442014-02-19 Tom Tromey <tromey@redhat.com>
8445
8446 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8447 (target_can_use_agent): Add argument.
8448 * target.c (update_current_target): Update.
8449 * remote.c (remote_can_use_agent): Add 'self' argument.
8450 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8451
2c152180
TT
84522014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target.h (struct target_ops) <to_use_agent>: Add argument.
8455 (target_use_agent): Add argument.
8456 * target.c (update_current_target): Update.
8457 * remote.c (remote_use_agent): Add 'self' argument.
8458 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8459
a893e81f
TT
84602014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8463 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8464 (target_traceframe_info): Add argument.
8465 * target.c (update_current_target): Update.
8466 * remote.c (remote_traceframe_info): Add 'self' argument.
8467 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8468
c686c57f
TT
84692014-02-19 Tom Tromey <tromey@redhat.com>
8470
8471 * target.h (target_static_tracepoint_markers_by_strid): Add
8472 argument.
8473 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8474 'self' argument.
8475 * target.c (update_current_target): Update.
8476 * remote.c (struct target_ops)
8477 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8478 * linux-nat.c (struct target_ops)
8479 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8480
61fc905d
TT
84812014-02-19 Tom Tromey <tromey@redhat.com>
8482
8483 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8484 Add argument.
8485 (target_static_tracepoint_marker_at): Add argument.
8486 * target.c (update_current_target): Update.
8487 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8488 argument.
8489
c378d69d
TT
84902014-02-19 Tom Tromey <tromey@redhat.com>
8491
8492 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8493 (target_set_permissions): Add argument.
8494 * target.c (update_current_target): Update.
8495 * remote.c (remote_set_permissions): Add 'self' argument.
8496 (remote_start_remote): Update.
8497
bd7ae0f5
TT
84982014-02-19 Tom Tromey <tromey@redhat.com>
8499
8500 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8501 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8502 (target_get_tib_address): Add argument.
8503 * target.c (update_current_target): Update.
8504 * remote.c (remote_get_tib_address): Add 'self' argument.
8505
d9e68a2c
TT
85062014-02-19 Tom Tromey <tromey@redhat.com>
8507
8508 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8509 (target_set_trace_notes): Add argument.
8510 * target.c (update_current_target): Update.
8511 * remote.c (remote_set_trace_notes): Add 'self' argument.
8512
4da384be
TT
85132014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8516 argument.
8517 (target_set_trace_buffer_size): Add argument.
8518 * target.c (update_current_target): Update.
8519 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8520
736d5b1f
TT
85212014-02-19 Tom Tromey <tromey@redhat.com>
8522
8523 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8524 argument.
8525 (target_set_circular_trace_buffer): Add argument.
8526 * target.c (update_current_target): Update.
8527 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8528 argument.
8529
37b25738
TT
85302014-02-19 Tom Tromey <tromey@redhat.com>
8531
8532 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8533 argument.
8534 (target_set_disconnected_tracing): Add argument.
8535 * target.c (update_current_target): Update.
8536 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8537
0e67620a
TT
85382014-02-19 Tom Tromey <tromey@redhat.com>
8539
8540 * target.h (struct target_ops)
8541 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8542 (target_get_min_fast_tracepoint_insn_len): Add argument.
8543 * target.c (update_current_target): Update.
8544 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8545 argument.
8546
88ee6f45
TT
85472014-02-19 Tom Tromey <tromey@redhat.com>
8548
8549 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8550 argument.
8551 (target_get_raw_trace_data): Add argument.
8552 * target.c (update_current_target): Update.
8553 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8554
181e3713
TT
85552014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8558 Add argument.
8559 (target_upload_trace_state_variables): Add argument.
8560 * target.c (update_current_target): Update.
8561 * remote.c (remote_upload_trace_state_variables): Add 'self'
8562 argument.
8563 (remote_start_remote): Update.
8564
ab6617cc
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8568 argument.
8569 (target_upload_tracepoints): Add argument.
8570 * target.c (update_current_target): Update.
8571 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8572 (remote_start_remote): Update.
8573
dc3decaf
TT
85742014-02-19 Tom Tromey <tromey@redhat.com>
8575
8576 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8577 (target_save_trace_data): Add argument.
8578 * target.c (update_current_target): Update.
8579 * remote.c (remote_save_trace_data): Add 'self' argument.
8580
4011015b
TT
85812014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8584 argument.
8585 * target.h (struct target_ops)
8586 <to_get_trace_state_variable_value>: Add argument.
8587 (target_get_trace_state_variable_value): Add argument.
8588 * target.c (update_current_target): Update.
8589 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8590 argument.
8591 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8592
bd4c6793
TT
85932014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8596 * target.h (struct target_ops) <to_trace_find>: Add argument.
8597 (target_trace_find): Add argument.
8598 * target.c (update_current_target): Update.
8599 * remote.c (remote_trace_find): Add 'self' argument.
8600 * ctf.c (ctf_trace_find): Add 'self' argument.
8601
74499f1b
TT
86022014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8605 (target_trace_stop): Add argument.
8606 * target.c (update_current_target): Update.
8607 * remote.c (remote_trace_stop): Add 'self' argument.
8608
db90e85c
TT
86092014-02-19 Tom Tromey <tromey@redhat.com>
8610
8611 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8612 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8613 argument.
8614 (target_get_tracepoint_status): Add argument.
8615 * target.c (update_current_target): Update.
8616 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8617
8bd200f1
TT
86182014-02-19 Tom Tromey <tromey@redhat.com>
8619
8620 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8621 * target.h (struct target_ops) <to_get_trace_status>: Add
8622 argument.
8623 (target_get_trace_status): Add argument.
8624 * target.c (update_current_target): Update.
8625 * remote.c (remote_get_trace_status): Add 'self' argument.
8626 (remote_start_remote, remote_can_download_tracepoint): Update.
8627 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8628
e2d1aae3
TT
86292014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target.h (struct target_ops) <to_trace_start>: Add argument.
8632 (target_trace_start): Add argument.
8633 * target.c (update_current_target): Update.
8634 * remote.c (remote_trace_start): Add 'self' argument.
8635
583f9a86
TT
86362014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8639 Add argument.
8640 (target_trace_set_readonly_regions): Add argument.
8641 * target.c (update_current_target): Update.
8642 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8643 argument.
8644
780b049c
TT
86452014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8648 argument.
8649 (target_disable_tracepoint): Add argument.
8650 * target.c (update_current_target): Update.
8651 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8652
46670d57
TT
86532014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8656 argument.
8657 (target_enable_tracepoint): Add argument.
8658 * target.c (update_current_target): Update.
8659 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8660
559d2b81
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target.h (struct target_ops) <to_download_trace_state_variable>:
8664 Add argument.
8665 (target_download_trace_state_variable): Add argument.
8666 * target.c (update_current_target): Update.
8667 * remote.c (remote_download_trace_state_variable): Add 'self'
8668 argument.
8669
a52a8357
TT
86702014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8673 argument.
8674 (target_can_download_tracepoint): Add argument.
8675 * target.c (update_current_target): Update.
8676 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8677
548f7808
TT
86782014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * target.h (struct target_ops) <to_download_tracepoint>: Add
8681 argument.
8682 (target_download_tracepoint): Add argument.
8683 * target.c (update_current_target): Update.
8684 * remote.c (remote_download_tracepoint): Add 'self' argument.
8685
ecae04e1
TT
86862014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target.h (struct target_ops) <to_trace_init>: Add argument.
8689 (target_trace_init): Add argument.
8690 * target.c (update_current_target): Update.
8691 * remote.c (remote_trace_init): Add 'self' argument.
8692
fab5aa7c
TT
86932014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8696 * target.c (target_fileio_readlink): Add argument.
8697 * remote.c (remote_hostio_readlink): Add 'self' argument.
8698 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8699
dbbca37d
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8703 * target.c (target_fileio_unlink): Add argument.
8704 * remote.c (remote_hostio_unlink): Add 'self' argument.
8705 (remote_file_delete): Update.
8706 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8707
df39ea25
TT
87082014-02-19 Tom Tromey <tromey@redhat.com>
8709
8710 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8711 * target.c (target_fileio_close): Add argument.
8712 * remote.c (remote_hostio_close): Add 'self' argument.
8713 (remote_hostio_close_cleanup): Update.
8714 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8715 Update.
8716 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8717
a3be983c
TT
87182014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8721 * target.c (target_fileio_pread): Add argument.
8722 * remote.c (remote_hostio_pread): Add 'self' argument.
8723 (remote_bfd_iovec_pread, remote_file_get): Update.
8724 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8725
0d866f62
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8729 * target.c (target_fileio_pwrite): Add argument.
8730 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8731 (remote_file_put): Update.
8732 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8733
cd897586
TT
87342014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8737 * target.c (target_fileio_open): Add argument.
8738 * remote.c (remote_hostio_open): Add 'self' argument.
8739 (remote_bfd_iovec_open): Add 'self' argument.
8740 (remote_file_put): Add 'self' argument.
8741 (remote_file_get): Add 'self' argument.
8742 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8743
78eff0ec
TT
87442014-02-19 Tom Tromey <tromey@redhat.com>
8745
8746 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8747 Add argument.
8748 (target_can_run_breakpoint_commands): Add argument.
8749 * target.c (update_current_target): Update.
8750 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8751 argument.
8752 (remote_insert_breakpoint): Add 'self' argument.
8753 (remote_insert_hw_breakpoint): Add 'self' argument.
8754 (remote_can_run_breakpoint_commands): Add 'self' argument.
8755
efcc2da7
TT
87562014-02-19 Tom Tromey <tromey@redhat.com>
8757
8758 * target.h (struct target_ops)
8759 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8760 (target_supports_evaluation_of_breakpoint_conditions): Add
8761 argument.
8762 * target.c (update_current_target): Update.
8763 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8764 argument.
8765 (remote_insert_breakpoint): Add 'self' argument.
8766 (remote_insert_hw_breakpoint): Add 'self' argument.
8767 (remote_supports_cond_breakpoints): Add 'self' argument.
8768
6de37a3a
TT
87692014-02-19 Tom Tromey <tromey@redhat.com>
8770
8771 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8772 argument.
8773 (target_supports_string_tracing): Add argument.
8774 * target.c (update_current_target): Update.
8775 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8776
2bfc0540
TT
87772014-02-19 Tom Tromey <tromey@redhat.com>
8778
8779 * target.h (struct target_ops)
8780 <to_supports_disable_randomization>: Add argument.
8781 * target.c (find_default_supports_disable_randomization): Add
8782 argument.
8783 (target_supports_disable_randomization): Add argument.
8784 (find_default_supports_disable_randomization): Add 'self'
8785 argument.
8786 * remote.c (extended_remote_supports_disable_randomization): Add
8787 'self' argument.
8788 (remote_supports_disable_randomization): Add 'self' argument.
8789 (extended_remote_create_inferior): Update.
8790 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8791 'self' argument.
8792
7d178d6a
TT
87932014-02-19 Tom Tromey <tromey@redhat.com>
8794
8795 * target.h (struct target_ops)
8796 <to_supports_enable_disable_tracepoint>: Add argument.
8797 (target_supports_enable_disable_tracepoint): Add argument.
8798 * target.c (update_current_target): Update.
8799 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8800 argument.
8801
86ce2668
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target.h (struct target_ops) <to_supports_multi_process>: Add
8805 argument.
8806 (target_supports_multi_process): Add argument.
8807 * target.c (update_current_target): Update.
8808 * remote.c (remote_supports_multi_process): Add 'self' argument.
8809 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8810 argument.
8811 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8812 argument.
8813
4c612759
TT
88142014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target.h (struct target_ops) <to_execution_direction>: Add
8817 argument.
8818 (target_execution_direction): Add argument.
8819 * target.c (default_execution_direction): Add 'self' argument.
8820 * record-full.c (record_full_execution_direction): Add 'self'
8821 argument.
8822
19db3e69
TT
88232014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8826 argument.
8827 (target_can_execute_reverse): Add argument.
8828 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8829 * record-full.c (record_full_can_execute_reverse): Add 'self'
8830 argument.
8831 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8832 argument.
8833
1e6b91a4
TT
88342014-02-19 Tom Tromey <tromey@redhat.com>
8835
8836 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8837 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8838 argument.
8839 (target_get_ada_task_ptid): Add argument.
8840 * target.c (update_current_target): Update.
8841 (default_get_ada_task_ptid): Add 'self' argument.
8842 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8843 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8844 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8845 argument.
8846 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8847 argument.
8848 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8849 argument.
8850 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8851 argument.
8852 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8853 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8854 argument.
8855
3c80fb48
TT
88562014-02-19 Tom Tromey <tromey@redhat.com>
8857
8858 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8859 (target_goto_bookmark): Add argument.
8860 * target.c (dummy_goto_bookmark): Add 'self' argument.
8861 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8862
dd0e2830
TT
88632014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8866 (target_get_bookmark): Add argument.
8867 * target.c (dummy_get_bookmark): Add 'self' argument.
8868 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8869
fc6691b2
TT
88702014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8873 argument.
8874 (target_make_corefile_notes): Add argument.
8875 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8876 * procfs.c (procfs_make_note_section): Add 'self' argument.
8877 (procfs_make_note_section): Add 'self' argument.
8878 (procfs_make_note_section): Add 'self' argument.
8879 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8880 argument.
8881 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8882 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8883 * exec.c (exec_make_note_section): Add 'self' argument.
8884 (exec_make_note_section): Add 'self' argument.
8885
2e73927c
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target.h (struct target_ops) <to_find_memory_regions>: Add
8889 argument.
8890 (target_find_memory_regions): Add argument.
8891 * target.c (dummy_find_memory_regions): Add 'self' argument.
8892 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8893 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8894 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8895 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8896 * exec. (exec_do_find_memory_regions): New global.
8897 (exec_set_find_memory_regions): Rewrite.
8898 (exec_find_memory_regions): New function.
8899 (init_exec_ops): Use exec_find_memory_regions.
8900
2a9a2795
TT
89012014-02-19 Tom Tromey <tromey@redhat.com>
8902
8903 * target.h (struct target_ops) <to_supports_non_stop>: Add
8904 argument.
8905 * target.c (find_default_supports_non_stop): Add argument.
8906 (target_supports_non_stop): Add argument.
8907 (find_default_supports_non_stop): Add 'self' argument.
8908 * remote.c (remote_supports_non_stop): Add 'self' argument.
8909 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8910
4ab76ea3
TT
89112014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target.h (struct target_ops) <to_log_command>: Add argument.
8914 (target_log_command): Add argument.
8915 * serial.h (serial_log_command): Add 'self' argument.
8916 * serial.c (serial_log_command): Add 'self' argument.
8917
8dd27370
TT
89182014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8921 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8922 argument.
8923 (target_pid_to_exec_file): Add argument.
8924 * target.c (debug_to_pid_to_exec_file): Add argument.
8925 (update_current_target): Update.
8926 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8927 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8928 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8929 (linux_handle_extended_wait): Update.
8930 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8931 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8932 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8933 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8934
1aac633b
TT
89352014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target.h (struct target_ops) <to_rcmd>: Add argument.
8938 (target_rcmd): Add argument.
8939 * target.c (debug_to_rcmd): Add argument.
8940 (update_current_target, do_monitor_command): Update.
8941 * remote.c (remote_rcmd): Add 'self' argument.
8942 * monitor.c (monitor_rcmd): Add 'self' argument.
8943
1eab8a48
TT
89442014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * windows-nat.c (windows_stop): Add 'self' argument.
8947 * target.h (struct target_ops) <to_stop>: Add argument.
8948 * target.c (target_stop): Add argument.
8949 (debug_to_stop): Add argument.
8950 (update_current_target): Update.
8951 * remote.c (remote_stop): Add 'self' argument.
8952 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8953 (gdbsim_cntrl_c): Update.
8954 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8955 * procfs.c (procfs_stop): Add 'self' argument.
8956 * nto-procfs.c (procfs_stop): Add 'self' argument.
8957 * monitor.c (monitor_stop): Add 'self' argument.
8958 (monitor_open): Update.
8959 * linux-nat.c (linux_nat_stop): Add argument.
8960 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8961 * gnu-nat.c (gnu_stop): Add 'self' argument.
8962 * darwin-nat.c (darwin_stop): Add 'self' argument.
8963
503a628d
TT
89642014-02-19 Tom Tromey <tromey@redhat.com>
8965
8966 * target.h (struct target_ops) <to_thread_name>: Add argument.
8967 * target.c (target_thread_name): Add argument.
8968 (update_current_target): Update.
8969 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8970
c15906d8
TT
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target.h (struct target_ops) <to_extra_thread_info>: Add
8974 argument.
8975 (target_extra_thread_info): Add argument.
8976 * target.c (update_current_target): Update.
8977 * remote.c (remote_threads_extra_info): Add 'self' argument.
8978 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8979 argument.
8980 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8981 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8982 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8983 argument.
8984 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8985 argument.
8986 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8987 argument.
8988 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8989 argument.
8990
daf5e9b6
TT
89912014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target.h (struct target_ops) <to_program_signals>: Add argument.
8994 * target.c (target_program_signals): Add argument.
8995 * remote.c (remote_program_signals): Add 'self' argument.
8996
94bedb42
TT
89972014-02-19 Tom Tromey <tromey@redhat.com>
8998
8999 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9000 * target.c (target_pass_signals): Add argument.
9001 * remote.c (remote_pass_signals): Add 'self' argument.
9002 (remote_start_remote): Update.
9003 * procfs.c (procfs_pass_signals): Add 'self' argument.
9004 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9005 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9006 (linux_nat_create_inferior, linux_nat_attach): Update.
9007
da82bd6b
TT
90082014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * windows-nat.c (windows_can_run): Add 'self' argument.
9011 * target.h (struct target_ops) <to_can_run>: Add argument.
9012 (target_can_run): Add argument.
9013 * target.c (debug_to_can_run): Add argument.
9014 (update_current_target): Update.
9015 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9016 * inf-child.c (inf_child_can_run): Add 'self' argument.
9017 * go32-nat.c (go32_can_run): Add 'self' argument.
9018
d796e1d6
TT
90192014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target.h (struct target_ops) <to_has_exited>: Add argument.
9022 (target_has_exited): Add argument.
9023 * target.c (debug_to_has_exited): Add argument.
9024 (update_current_target): Update.
9025
ff214e67
TT
90262014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9029 argument.
9030 (target_set_syscall_catchpoint): Add argument.
9031 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9032 argument.
9033 * target.c (update_current_target): Update.
9034
758e29d2
TT
90352014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9038 argument.
9039 (target_remove_exec_catchpoint): Add argument.
9040 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9041 (update_current_target): Update.
9042 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9043 argument.
9044
ba025e51
TT
90452014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9048 argument.
9049 (target_insert_exec_catchpoint): Add argument.
9050 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9051 (update_current_target): Update.
9052 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9053 argument.
9054
e98cf0cd
TT
90552014-02-19 Tom Tromey <tromey@redhat.com>
9056
9057 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9058 argument.
9059 (target_remove_vfork_catchpoint): Add argument.
9060 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9061 (update_current_target): Update.
9062 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9063 argument.
9064
3ecc7da0
TT
90652014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9068 argument.
9069 (target_insert_vfork_catchpoint): Add argument.
9070 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9071 (update_current_target): Update.
9072 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9073 argument.
9074
973fc227
TT
90752014-02-19 Tom Tromey <tromey@redhat.com>
9076
9077 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9078 argument.
9079 (target_remove_fork_catchpoint): Add argument.
9080 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9081 (update_current_target): Update.
9082 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9083 argument.
9084
a863b201
TT
90852014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9088 argument.
9089 (target_insert_fork_catchpoint): Add argument.
9090 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9091 (update_current_target): Update.
9092 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9093 argument.
9094
2e97a79e
TT
90952014-02-19 Tom Tromey <tromey@redhat.com>
9096
9097 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9098 argument.
9099 (target_post_startup_inferior): Add argument.
9100 * target.c (debug_to_post_startup_inferior): Add argument.
9101 (update_current_target): Update.
9102 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9103 argument.
9104 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9105 argument.
9106 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9107 argument.
9108 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9109 argument.
9110 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9111 'self' argument.
9112 (super_post_startup_inferior): Likewise.
9113 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9114 'self' argument.
9115 (super_post_startup_inferior): Likewise.
9116 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9117 Add 'self' argument.
9118 (super_post_startup_inferior): Likewise.
9119
71a9f134
TT
91202014-02-19 Tom Tromey <tromey@redhat.com>
9121
9122 * target.h (struct target_ops) <to_load>: Add argument.
9123 * target.c (target_load): Add argument.
9124 (debug_to_load): Add argument.
9125 (update_current_target): Update.
9126 * remote.c (remote_load): Add 'self' argument.
9127 * remote-sim.c (gdbsim_load): Add 'self' argument.
9128 * remote-mips.c (mips_load): Add 'self' argument.
9129 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9130 * monitor.c (monitor_load): Add 'self' argument.
9131 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9132
0a4f40a2
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9136 (target_terminal_info): Add argument.
9137 * target.c (debug_to_terminal_info): Add argument.
9138 (default_terminal_info): Likewise.
9139 * inflow.c (child_terminal_info): Add 'self' argument.
9140 * inferior.h (child_terminal_info): Add 'self' argument.
9141 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9142
ae3bd431
TT
91432014-02-19 Tom Tromey <tromey@redhat.com>
9144
9145 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9146 argument.
9147 (target_terminal_save_ours): Add argument.
9148 * target.c (debug_to_terminal_save_ours): Add argument.
9149 (update_current_target): Update.
9150 * inflow.c (terminal_save_ours): Add 'self' argument.
9151 * inferior.h (terminal_save_ours): Add 'self' argument.
9152
e3594fd1
TT
91532014-02-19 Tom Tromey <tromey@redhat.com>
9154
9155 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9156 (target_terminal_ours): Add argument.
9157 * target.c (debug_to_terminal_ours): Add argument.
9158 (update_current_target): Update.
9159 * remote.c (remote_terminal_ours): Add 'self' argument.
9160 (remote_close): Update.
9161 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9162 * inflow.c (terminal_ours): Add 'self' argument.
9163 * inferior.h (terminal_ours): Add 'self' argument.
9164 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9165
2e1e1a19
TT
91662014-02-19 Pedro Alves <palves@redhat.com>
9167 Tom Tromey <tromey@redhat.com>
9168
9169 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9170 argument.
9171 (target_terminal_ours_for_output): Add argument.
9172 * target.c (debug_to_terminal_ours_for_output): Add argument.
9173 (update_current_target): Update.
9174 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9175 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9176 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9177
d2f640d4
TT
91782014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target.h (struct target_ops) <to_terminal_inferior>: Add
9181 argument.
9182 * target.c (target_terminal_inferior): Add argument.
9183 (update_current_target): Update.
9184 * remote.c (remote_terminal_inferior): Add 'self' argument.
9185 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9186 * inflow.c (terminal_inferior): Add 'self' argument.
9187 * inferior.h (terminal_inferior): Add 'self' argument.
9188 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9189 (go32_terminal_inferior): Add 'self' argument.
9190
c42bf286
TT
91912014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9194 (target_terminal_init): Add argument.
9195 * target.c (debug_to_terminal_init): Add argument.
9196 (update_current_target): Update.
9197 * inflow.c (terminal_init_inferior): Add 'self' argument.
9198 * inferior.h (terminal_init_inferior): Add 'self' argument.
9199 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9200 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9201
c3a5ff89
TT
92022014-02-19 Tom Tromey <tromey@redhat.com>
9203
9204 * target.h (struct target_ops)
9205 <to_can_accel_watchpoint_condition>: Add argument.
9206 (target_can_accel_watchpoint_condition): Add argument.
9207 * target.c (debug_to_can_accel_watchpoint_condition): Add
9208 argument.
9209 (update_current_target): Update.
9210 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9211 'self' argument.
9212
31568a15
TT
92132014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9216 Add argument.
9217 (target_region_ok_for_hw_watchpoint): Add argument.
9218 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9219 (default_region_ok_for_hw_watchpoint): Add argument.
9220 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9221 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9222 argument.
9223 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9224 argument.
9225 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9226 argument.
9227 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9228 'self' argument.
9229 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9230 'self' argument.
9231 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9232 'self' argument.
9233 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9234 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9235 'self' argument.
9236 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9237 Add 'self' argument.
9238
7bb99c53
TT
92392014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9242 argument.
9243 (target_insert_watchpoint): Add argument.
9244 * target.c (debug_to_insert_watchpoint): Add argument.
9245 (update_current_target): Update.
9246 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9247 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9248 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9249 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9250 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9251 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9252 argument.
9253 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9254 (procfs_insert_hw_watchpoint): Add 'self' argument.
9255 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9256 argument.
9257 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9258 argument.
9259 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9260 argument.
9261 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9262 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9263 argument.
9264 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9265 'self' argument.
9266
11b5219a
TT
92672014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9270 argument.
9271 (target_remove_watchpoint): Add argument.
9272 * target.c (debug_to_remove_watchpoint): Add argument.
9273 (update_current_target): Update.
9274 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9275 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9276 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9277 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9278 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9279 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9280 argument.
9281 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9282 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9283 argument.
9284 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9285 argument.
9286 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9287 argument.
9288 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9289 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9290 argument.
9291 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9292 'self' argument.
9293
a64dc96c
TT
92942014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9297 argument.
9298 (target_remove_hw_breakpoint): Add argument.
9299 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9300 (update_current_target): Update.
9301 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9302 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9303 argument.
9304 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9305 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9306 argument.
9307 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9308 'self' argument.
9309
23a26771
TT
93102014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9313 argument.
9314 (target_insert_hw_breakpoint): Add argument.
9315 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9316 (update_current_target): Update.
9317 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9318 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9319 argument.
9320 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9321 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9322 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9323 argument.
9324 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9325 'self' argument.
9326
5461485a
TT
93272014-02-19 Tom Tromey <tromey@redhat.com>
9328
9329 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9330 argument.
9331 (target_can_use_hardware_watchpoint): Add argument.
9332 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9333 (update_current_target): Update.
9334 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9335 argument.
9336 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9337 argument.
9338 * remote.c (remote_check_watch_resources): Add 'self' argument.
9339 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9340 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9341 argument.
9342 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9343 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9344 argument.
9345 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9346 argument.
9347 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9348 argument.
9349 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9350 argument.
9351 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9352 argument.
9353 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9354 argument.
9355 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9356 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9357 argument.
9358 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9359 'self' argument.
9360
f045800c
TT
93612014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_post_attach>: Add argument.
9364 (target_post_attach): Add argument.
9365 * target.c (debug_to_post_attach): Add argument.
9366 (update_current_target): Update.
9367 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9368 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9369 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9370 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9371 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9372
de90e03d
TT
93732014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * windows-nat.c (windows_close): Add 'self' argument.
9376 * tracepoint.c (tfile_close): Add 'self' argument.
9377 * target.h (struct target_ops) <to_close>: Add argument.
9378 * target.c (target_close): Add argument.
9379 (update_current_target): Update.
9380 * remote.c (remote_close): Add 'self' argument.
9381 * remote-sim.c (gdbsim_close): Add 'self' argument.
9382 * remote-mips.c (mips_close): Add 'self' argument.
9383 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9384 * record-full.c (record_full_close): Add 'self' argument.
9385 * record-btrace.c (record_btrace_close): Add 'self' argument.
9386 * monitor.h (monitor_close): Add 'self' argument.
9387 * monitor.c (monitor_close): Add 'self' argument.
9388 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9389 * linux-nat.c (linux_nat_close): Add argument.
9390 * go32-nat.c (go32_close): Add 'self' argument.
9391 * exec.c (exec_close_1): Add 'self' argument.
9392 * ctf.c (ctf_close): Add 'self' argument.
9393 * corelow.c (core_close): Add 'self' argument.
9394 (core_close_cleanup): Update.
9395 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9396 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9397
9dd130a0
TT
93982014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * remote.c (remote_load): New function.
9401 (init_remote_ops): Use it.
9402
46917d26
TT
94032014-02-19 Tom Tromey <tromey@redhat.com>
9404
9405 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9406 argument.
9407 * common/linux-btrace.h (linux_supports_btrace): Update.
9408 * remote.c (remote_supports_btrace): Add "self" argument.
9409 * target-delegates.c: Rebuild.
9410 * target.c (target_supports_btrace): Remove.
9411 * target.h (struct target_ops) <to_supports_btrace>: Add
9412 target_ops argument.
9413 (target_supports_btrace): New define.
9414
6b84065d
TT
94152014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * record-full.c (record_full_beneath_to_resume_ops)
9418 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9419 (record_full_beneath_to_wait)
9420 (record_full_beneath_to_store_registers_ops)
9421 (record_full_beneath_to_store_registers)
9422 (record_full_beneath_to_xfer_partial_ops)
9423 (record_full_beneath_to_xfer_partial)
9424 (record_full_beneath_to_insert_breakpoint_ops)
9425 (record_full_beneath_to_insert_breakpoint)
9426 (record_full_beneath_to_remove_breakpoint_ops)
9427 (record_full_beneath_to_remove_breakpoint)
9428 (record_full_beneath_to_stopped_by_watchpoint)
9429 (record_full_beneath_to_stopped_data_address)
9430 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9431 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9432 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9433 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9434 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9435 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9436 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9437 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9438 (record_full_resume, record_full_wait_1)
9439 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9440 (record_full_store_registers, record_full_xfer_partial)
9441 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9442 (record_full_async, record_full_core_xfer_partial): Use target
9443 delegation.
9444 * target-delegates.c: Rebuild.
9445 * target.c (current_xfer_partial): Remove.
9446 (update_current_target): Do not INHERIT or de_fault
9447 to_insert_breakpoint, to_remove_breakpoint,
9448 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9449 to_is_async_p, to_async. Do not set to_xfer_partial field.
9450 (default_xfer_partial): Simplify.
9451 (current_xfer_partial): Remove.
9452 (target_wait, target_resume): Simplify.
9453 (find_default_can_async_p, find_default_is_async_p): Update.
9454 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9455 to_xfer_partial, to_stopped_by_watchpoint,
9456 to_stopped_data_address.
9457 (target_store_registers): Simplify.
9458 (forward_target_remove_breakpoint)
9459 (forward_target_insert_breakpoint): Remove.
9460 (target_remove_breakpoint, target_insert_breakpoint)
9461 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9462 * target.h (struct target_ops) <to_resume, to_wait,
9463 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9464 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9465 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9466 markup.
9467 (forward_target_remove_breakpoint)
9468 (forward_target_insert_breakpoint): Remove.
9469 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9470 directly.
9471 (record_btrace_insert_breakpoint): Delegate directly.
9472
1101cb7b
TT
94732014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 PR build/7701:
9476 * target-delegates.c: New file.
9477 * target.c: Include target-delegates.c.
9478 (init_dummy_target): Call install_dummy_methods.
9479 (complete_target_initialization): Call install_delegators.
9480 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9481 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9482 * make-target-delegates: New file.
9483
8b06beed
TT
94842014-02-19 Tom Tromey <tromey@redhat.com>
9485
9486 * record.c (find_record_target): Use find_target_at.
9487 * target.c (find_target_at): New function.
9488 * target.h (find_target_at): Declare.
9489
6a109b6b
TT
94902014-02-19 Tom Tromey <tromey@redhat.com>
9491
9492 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9493 Add 'ops' argument.
9494 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9495 'ops' argument.
9496 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9497 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9498 'ops' argument.
9499 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9500 argument.
9501 * linux-nat.c (save_sigtrap): Update.
9502 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9503 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9504 (linux_nat_close): Update.
9505 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9506 argument.
9507 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9508 argument.
9509 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9510 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9511 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9512 (tmp_to_async): Add 'ops' argument.
9513 (record_full_stopped_by_watchpoint, record_full_async)
9514 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9515 argument.
9516 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9517 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9518 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9519 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9520 (remote_is_async_p, remote_async): Add 'ops' argument.
9521 (remote_stopped_data_address): Update.
9522 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9523 * target.c (update_current_target)
9524 (find_default_can_async_p, find_default_is_async_p): Update.
9525 (init_dummy_target): Update.
9526 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9527 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9528 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9529 (target_can_async_p, target_is_async_p, target_async)
9530 (target_stopped_by_watchpoint): Update.
9531
e095146b
YQ
95322014-02-19 Yao Qi <yao@codesourcery.com>
9533
9534 PR gdb/16220
9535 * gdbarch.sh: Remove startup_gdbarch.
9536 * gdbarch.c: Regenerated.
9537 * gdbarch.h: Likewise.
9538
bc3c6b36
KB
95392014-02-17 Kevin Buettner <kevinb@redhat.com>
9540
9541 * rl78-tdep.c (rl78_g10_register_name): New function.
9542 (rl78_return_value): Add g10 support.
9543 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9544 g10.
9545
98dc0167 95462014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9547
9548 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9549 (SUBDIR_GUILE_SRCS): Ditto.
9550 (scm-gsmob.o): Ditto.
9551
842c05cd
YQ
95522014-02-17 Yao Qi <yao@codesourcery.com>
9553
9554 * gnu-nat.c (ILL_RPC): Declare defined function.
9555
25c0bd04
YQ
95562014-02-17 Yao Qi <yao@codesourcery.com>
9557
9558 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9559 mach_msg_type_number_t.
9560 (gnu_write_inferior): Likewise.
9561
a9a758e3
YQ
95622014-02-17 Yao Qi <yao@codesourcery.com>
9563
9564 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9565 in format string.
9566 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9567 (inf_validate_procs, inf_signal): Likewise.
9568 (S_exception_raise_request): Likewise.
9569 (do_mach_notify_dead_name): Likewise.
9570 (steal_exc_port): Likewise.
9571 (gnu_read_inferior): Change 'copy_count''s type to
9572 mach_msg_type_number_t.
9573 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9574 format string.
9575
bae8023e
TS
95762014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9577
c82f56d9
TS
9578 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9579 flag. Adjust all users; in particular...
9580 (gnu_wait): ..., don't decrement its value in here...
9581 (gnu_create_inferior): ..., and instead set the flag in here,
9582 around the startup_inferior call, and call that one with
9583 START_INFERIOR_TRAPS_EXPECTED.
9584
3398af6a
TS
9585 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9586 (ILL_RPC): ... new macro.
9587 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9588 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9589 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9590 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9591 functions with ILL_RPC macro.
9592 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9593 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9594 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9595 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9596 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9597 (S_proc_getlogin_reply, S_proc_getsid_reply)
9598 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9599 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9600 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9601 (S_proc_getnports_reply, S_proc_is_important_reply)
9602 (S_proc_get_code_reply): New stub functions, generated with
9603 ILL_RPC macro.
9604
d47642c9
TS
9605 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9606 collected the type check structures.
9607
bae8023e
TS
9608 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9609
8a55ffb0
DE
96102014-02-14 Doug Evans <dje@google.com>
9611
9612 * target.c (target_write_partial): Fix result type.
9613
c2853f3d
JM
96142014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9615
9616 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9617 the proper offsets to access fpregset_t.
9618
ac61d2db
SA
96192014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9620
9621 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9622 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9623 * h8300-tdep.c (setmachinelist): Remove global.
9624 * hppa-tdep.c (hppa_sigtramp): Remove global.
9625 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9626 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9627 * ravenscar-thread.c (update_target_observer): Remove global.
9628 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9629
9d2d0b8b
TT
96302014-02-12 Tom Tromey <tromey@redhat.com>
9631
9632 * common/rsp-low.c: Update comments.
9633 * common/rsp-low.h: Update comments.
9634
a7191e8b
TT
96352014-02-12 Tom Tromey <tromey@redhat.com>
9636
9637 * common/rsp-low.c (convert_ascii_to_int): Remove.
9638 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9639
ff0e980e
TT
96402014-02-12 Tom Tromey <tromey@redhat.com>
9641
9642 * common/rsp-low.h (unhexify): Don't declare.
9643 * common/rsp-low.c (unhexify): Remove.
9644
e9371aff
TT
96452014-02-12 Tom Tromey <tromey@redhat.com>
9646
9647 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9648 * common/rsp-low.c (convert_int_to_ascii): Remove.
9649
971dc0b8
TT
96502014-02-12 Tom Tromey <tromey@redhat.com>
9651
9652 * common/rsp-low.h (hexify): Don't declare.
9653 * common/rsp-low.c (hexify): Remove.
9654
0a822afb
TT
96552014-02-12 Tom Tromey <tromey@redhat.com>
9656
9657 * common/rsp-low.c (hexify): Never take strlen of argument.
9658
9f1b45b0
TT
96592014-02-12 Tom Tromey <tromey@redhat.com>
9660
9661 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9662 * remote.c (extended_remote_run, remote_rcmd)
9663 (remote_download_trace_state_variable, remote_save_trace_data)
9664 (remote_set_trace_notes): Update.
9665 * tracepoint.c (encode_source_string, tfile_write_status)
9666 (tfile_write_uploaded_tsv): Update.
9667
9c3d6531
TT
96682014-02-12 Tom Tromey <tromey@redhat.com>
9669
9670 * tracepoint.c: Include rsp-low.h.
9671 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9672 * remote.c: Include rsp-low.h.
9673 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9674 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9675 (remote_unescape_input): Move to common/rsp-low.c.
9676 * common/rsp-low.h: New file.
9677 * common/rsp-low.c: New file.
9678 * Makefile.in (SFILES): Add common/rsp-low.c.
9679 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9680 (COMMON_OBS): Add rsp-low.o.
9681 (rsp-low.o): New target.
9682
01fd3ea5
TT
96832014-02-12 Tom Tromey <tromey@redhat.com>
9684
9685 * utils.h: Include print-utils.h.
9686 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9687 (int_string, core_addr_to_string, core_addr_to_string_nz)
9688 (hex_string, hex_string_custom): Don't declare.
9689 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9690 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9691 (hex_string_custom, int_string, core_addr_to_string)
9692 (core_addr_to_string_nz, host_address_to_string): Move to
9693 common/print-utils.c.
9694 * common/print-utils.h: New file.
9695 * common/print-utils.c: New file
9696 * Makefile.in (SFILES): Add common/print-utils.c.
9697 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9698 (COMMON_OBS): Add print-utils.o.
9699 (print-utils.o): New target.
9700
9fb50108
TT
97012014-02-12 Tom Tromey <tromey@redhat.com>
9702
9703 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9704
0548b5db
MK
97052014-02-12 Mark Kettenis <kettenis@gnu.org>
9706
9707 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9708
493443a4
MK
97092014-02-12 Mark Kettenis <kettenis@gnu.org>
9710
9711 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9712 if a PT_IO ptrace request returns sucessfully but indicates that 0
9713 bytes were transferred.
9714
706d0883
PA
97152014-02-12 Pedro Alves <palves@redhat.com>
9716 Kevin Buettner <kevinb@redhat.com>
9717
9718 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9719 TYPE_INSTANCE_FLAG_CODE_SPACE.
9720
5caa2f0b
PA
97212014-02-12 Pedro Alves <palves@redhat.com>
9722
9723 * h8300-tdep.c (pseudo_from_raw_register)
9724 (raw_from_pseudo_register): New functions.
9725 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9726 them.
9727
76fd5f74
PA
97282014-02-12 Pedro Alves <palves@redhat.com>
9729
9730 * h8300-tdep.c (h8300_register_sim_regno): New function.
9731 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9732 gdbarch_register_sim_regno hook.
9733
8f008406
SA
97342014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9735
9736 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9737
195abc10
SA
97382014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9739
9740 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9741
93ffa5b9
MK
97422014-02-12 Mark Kettenis <kettenis@gnu.org>
9743
9744 * obsd-tdep.h (obsd_init_abi): New prototype.
9745 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9746 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9747 (obsd_init_abi): New functions.
9748 * i386obsd-tdep.c: Include "obsd-tdep.h".
9749 (i386obsd_init_abi): Call obsd_init_abi.
9750 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9751 (amd64obsd_init_abi): Call obsd_init_abi.
9752 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9753 obsd-tdep.c to gdb_target_obs.
9754
49caec94
JM
97552014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9756
9757 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9758 double float arguments to 16-byte in the argument slots.
9759
e1402065
DE
97602014-02-11 Doug Evans <xdje42@gmail.com>
9761
9762 * configure.ac: Don't crash if pkg-config is not found and guile
9763 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9764 in guile checks.
9765 * configure: Regenerate.
9766
edcc890f
YQ
97672014-02-11 Yao Qi <yao@codesourcery.com>
9768
9769 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9770 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9771 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9772 * gnu-nat.c (gnu_xfer_memory): Likewise.
9773 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9774 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9775 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9776 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9777
9b409511
YQ
97782014-02-11 Yao Qi <yao@codesourcery.com>
9779
9780 * target.h (enum target_xfer_error): Rename to ...
9781 (enum target_xfer_status): ... it. New. All users updated.
9782 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9783 New.
9784 (TARGET_XFER_STATUS_ERROR_P): New macro.
9785 (target_xfer_error_to_string): Remove declaration.
9786 (target_xfer_status_to_string): Declare.
9787 (target_xfer_partial_ftype): Adjust it.
9788 (struct target_ops) <to_xfer_partial>: Return
9789 target_xfer_status. Add argument xfered_len. Update
9790 comments.
9791 * target.c (target_xfer_error_to_string): Rename to ...
9792 (target_xfer_status_to_string): ... it. New. All callers
9793 updated.
9794 (target_read_live_memory): Likewise. Call target_xfer_partial
9795 instead of target_read.
9796 (memory_xfer_live_readonly_partial): Return
9797 target_xfer_status. Add argument xfered_len.
9798 (raw_memory_xfer_partial): Likewise.
9799 (memory_xfer_partial_1): Likewise.
9800 (memory_xfer_partial): Likewise.
9801 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9802 properly. Update debug message.
9803 (default_xfer_partial, current_xfer_partial): Likewise.
9804 (target_write_partial): Likewise.
9805 (target_read_partial): Likewise. All callers updated.
9806 (read_whatever_is_readable): Likewise.
9807 (target_write_with_progress): Likewise.
9808 (target_read_alloc_1): Likewise.
9809
9810 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9811 * auxv.c (procfs_xfer_auxv): Likewise.
9812 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9813 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9814 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9815 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9816 * corefile.c (read_memory): Adjust.
9817 * corelow.c (core_xfer_partial): Likewise.
9818 * ctf.c (ctf_xfer_partial): Likewise.
9819 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9820 updated.
9821 (darwin_xfer_partial): Likewise.
9822 * exec.c (section_table_xfer_memory_partial): Likewise. All
9823 callers updated.
9824 (exec_xfer_partial): Likewise.
9825 * exec.h (section_table_xfer_memory_partial): Update
9826 declaration.
9827 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9828 negative.
9829 (gnu_xfer_partial): Likewise.
9830 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9831 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9832 (ia64_hpux_xfer_solib_got): Likewise.
9833 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9834 type of 'partial_len' to ULONGEST.
9835 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9836 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9837 (linux_nat_xfer_partial): Likewise.
9838 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9839 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9840 * monitor.c (monitor_xfer_memory): Likewise.
9841 (monitor_xfer_partial): Likewise.
9842 * procfs.c (procfs_xfer_partial): Likewise.
9843 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9844 * record-full.c (record_full_xfer_partial): Likewise.
9845 (record_full_core_xfer_partial): Likewise.
9846 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9847 (gdbsim_xfer_partial): Likewise.
9848 * remote.c (remote_write_bytes_aux): Likewise. All callers
9849 updated.
9850 (remote_write_bytes, remote_read_bytes): Likewise. All
9851 callers updated.
9852 (remote_flash_erase): Likewise. All callers updated.
9853 (remote_write_qxfer): Likewise. All callers updated.
9854 (remote_read_qxfer): Likewise. All callers updated.
9855 (remote_xfer_partial): Likewise.
9856 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9857 (rs6000_xfer_shared_libraries): Likewise.
9858 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9859 (sol_thread_xfer_partial): Likewise.
9860 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9861 (sparc_xfer_partial): Likewise.
9862 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9863 updated.
9864 (spu_xfer_partial): Likewise.
9865 * spu-multiarch.c (spu_xfer_partial): Likewise.
9866 * tracepoint.c (tfile_xfer_partial): Likewise.
9867 * windows-nat.c (windows_xfer_memory): Likewise.
9868 (windows_xfer_shared_libraries): Likewise.
9869 (windows_xfer_partial): Likewise.
9870 * valprint.c: Replace 'target_xfer_error' with
9871 'target_xfer_status' in comments.
9872
a8e63083
JB
98732014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9874
9875 Checked in by Joel Brobecker <brobecker@adacore.com>.
9876 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9877
e86b67d3
JB
98782014-02-11 Joel Brobecker <brobecker@adacore.com>
9879
9880 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9881 function parameters.
9882
4b7d1f7f
WN
98832014-02-10 Will Newton <will.newton@linaro.org>
9884
9885 * elfread.c (elf_rel_plt_read): Look for a .got section if
9886 looking up .got.plt fails.
9887 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9888 on address passed to elf_gnu_ifunc_record_cache.
9889 (elf_gnu_ifunc_resolve_addr): Likewise.
9890 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9891
961842b2
JM
98922014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9893
9894 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9895 (X_RETTURN): New macro.
9896 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9897
9898 * sparc64-tdep.c (sparc64_init_abi): Hook
9899 sparc_in_function_epilogue_p.
9900
3f03e7b1
GB
99012014-02-10 Gary Benson <gbenson@redhat.com>
9902
9903 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9904 Rename name_matcher to symbol_matcher.
9905
96f861ef
GB
99062014-02-10 Gary Benson <gbenson@redhat.com>
9907
9908 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9909 Use expand_symtabs_file_matcher_ftype and
9910 expand_symtabs_symbol_matcher_ftype.
9911
ee01b665
JB
99122014-02-10 Joel Brobecker <brobecker@adacore.com>
9913
9914 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9915 (struct ada_symbol_cache): New.
9916 (ada_free_symbol_cache): Forward declare.
9917 (struct ada_pspace_data): New.
9918 (ada_pspace_data_handle): New static global.
9919 (get_ada_pspace_data, ada_pspace_data_cleanup)
9920 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9921 (cache_space, cache): Delete, now folded inside struct
9922 ada_pspace_data.
9923 (ada_get_symbol_cache): New function.
9924 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9925 implementation.
9926 (_initialize_ada_language): Remove initialization of cache_space.
9927 Move call to observer_attach_inferior_exit up, grouping it
9928 with the other observer registrations inside this function.
9929 Rename command to be more general. Add call to
9930 register_program_space_data_with_cleanup.
9931
143adbbf
JB
99322014-02-10 Joel Brobecker <brobecker@adacore.com>
9933
9934 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9935 ada_new_objfile_observer.
9936 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9937 (_initialize_tasks): Update uses of ada_new_objfile_observer
9938 and ada_tasks_normal_stop_observer.
9939
aa4fb036
JB
99402014-02-10 Joel Brobecker <brobecker@adacore.com>
9941
9942 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9943 returned by the 'Length attribute to integer.
9944
9dee8cc6
JB
99452014-02-10 Joel Brobecker <brobecker@adacore.com>
9946
9947 * ada-lang.c (_initialize_ada_language): Initialize
9948 cache_space obstack.
9949
3d9434b5
JB
99502014-02-10 Joel Brobecker <brobecker@adacore.com>
9951
9952 * ada-lang.c (HASH_SIZE): New macro.
9953 (struct cache_entry): New type.
9954 (cache_space, cache): New static globals.
9955 (ada_clear_symbol_cache, find_entry): New functions.
9956 (lookup_cached_symbol, cache_symbol): Implement.
9957 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9958 (_initialize_ada_language): Attach ada_new_objfile_observer
9959 and ada_free_objfile_observer.
9960
f0c5f9b2
JB
99612014-02-10 Joel Brobecker <brobecker@adacore.com>
9962
9963 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9964 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9965 struct block * parameter.
9966 (ada_lookup_symbol_list_worker): Constify local variable "block".
9967 Remove cast which is no longer necessary.
9968
ed3ef339
DE
99692014-02-10 Doug Evans <xdje42@gmail.com>
9970
9971 Add Guile as an extension language.
9972 * NEWS: Mention Guile scripting.
9973 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9974 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9975 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9976 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9977 (CLIBS): Add GUILE_LIBS.
9978 (install-guile): New rule.
9979 (guile.o): New rule.
9980 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9981 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9982 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9983 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9984 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9985 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9986 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9987 * configure.ac: New option --with-guile.
9988 * configure: Regenerate.
9989 * config.in: Regenerate.
9990 * auto-load.c: Remove #include "python/python.h". Add #include
9991 "gdb/section-scripts.h".
9992 (source_section_scripts): Handle Guile scripts.
9993 (_initialize_auto_load): Add name of Guile objfile script to
9994 scripts-directory help text.
9995 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9996 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9997 (struct breakpoint): New member scm_bp_object.
9998 * defs.h (enum command_control_type): New value guile_control.
9999 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10000 "extension.h".
10001 (show_user): Update comment.
10002 (_initialize_cli_cmds): Update help text for "show user". Update help
10003 text for max-user-call-depth.
10004 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10005 "extension.h".
10006 (multi_line_command_p): Add guile_control.
10007 (print_command_lines): Handle guile_control.
10008 (execute_control_command, recurse_read_control_structure): Ditto.
10009 (process_next_line): Recognize "guile" commands.
10010 * disasm.c (gdb_disassemble_info): Make non-static.
10011 * disasm.h: #include "dis-asm.h".
10012 (struct gdbarch): Add forward decl.
10013 (gdb_disassemble_info): Declare.
10014 * extension.c: #include "guile/guile.h".
10015 (extension_languages): Add guile.
10016 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10017 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10018 * gdbtypes.c (get_unsigned_type_max): New function.
10019 (get_signed_type_minmax): New function.
10020 * gdbtypes.h (get_unsigned_type_max): Declare.
10021 (get_signed_type_minmax): Declare.
10022 * guile/README: New file.
10023 * guile/guile-internal.h: New file.
10024 * guile/guile.c: New file.
10025 * guile/guile.h: New file.
10026 * guile/scm-arch.c: New file.
10027 * guile/scm-auto-load.c: New file.
10028 * guile/scm-block.c: New file.
10029 * guile/scm-breakpoint.c: New file.
10030 * guile/scm-disasm.c: New file.
10031 * guile/scm-exception.c: New file.
10032 * guile/scm-frame.c: New file.
10033 * guile/scm-gsmob.c: New file.
10034 * guile/scm-iterator.c: New file.
10035 * guile/scm-lazy-string.c: New file.
10036 * guile/scm-math.c: New file.
10037 * guile/scm-objfile.c: New file.
10038 * guile/scm-ports.c: New file.
10039 * guile/scm-pretty-print.c: New file.
10040 * guile/scm-safe-call.c: New file.
10041 * guile/scm-string.c: New file.
10042 * guile/scm-symbol.c: New file.
10043 * guile/scm-symtab.c: New file.
10044 * guile/scm-type.c: New file.
10045 * guile/scm-utils.c: New file.
10046 * guile/scm-value.c: New file.
10047 * guile/lib/gdb.scm: New file.
10048 * guile/lib/gdb/boot.scm: New file.
10049 * guile/lib/gdb/experimental.scm: New file.
10050 * guile/lib/gdb/init.scm: New file.
10051 * guile/lib/gdb/iterator.scm: New file.
10052 * guile/lib/gdb/printing.scm: New file.
10053 * guile/lib/gdb/types.scm: New file.
10054 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10055 (VPATH): Add $(GUILE_SRCDIR).
10056 (GUILE_DIR): New variable.
10057 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10058 (all): Add stamp-guile dependency.
10059 (stamp-guile): New rule.
10060 (clean-guile, install-guile, uninstall-guile): New rules.
10061 (install-only): Add install-guile dependency.
10062 (uninstall): Add uninstall-guile dependency.
10063 (clean): Add clean-guile dependency.
10064
ac020ec5
DE
100652014-02-09 Doug Evans <xdje42@gmail.com>
10066
10067 Revert this patch (which I approved, mea culpa).
10068
10069 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10070
10071 * Makefile.in (all-lib): Remove.
10072 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10073
2a081c59
JK
100742014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10075
10076 Fix Python stack corruption.
10077 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10078 gdb_py_longest.
10079
0a6bd22d
MK
100802014-02-08 Mark Kettenis <kettenis@gnu.org>
10081
10082 * Makefile.in (all-lib): Remove.
10083 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10084
1a860409
DE
100852014-02-07 Doug Evans <dje@google.com>
10086
10087 * extension-priv.h (extension_language_script_ops): Add comment.
10088 (extension_language_ops): Add comment.
caf5a491 10089 (active_ext_lang_state): Fix typo in comment.
1a860409 10090
d137e6dc
PA
100912014-02-07 Pedro Alves <palves@redhat.com>
10092
0dcb32c3 10093 PR breakpoints/16292
d137e6dc
PA
10094 * infrun.c (handle_signal_stop) <signal arrives while stepping
10095 over a breakpoint>: Switch back to the stepping thread.
10096
ce6d0892
YQ
100972014-02-07 Yao Qi <yao@codesourcery.com>
10098
10099 * target.c (target_xfer_partial): Return zero if LEN is zero.
10100
2ed4b548
YQ
101012014-02-07 Yao Qi <yao@codesourcery.com>
10102
10103 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10104 (ld_so_xfer_auxv): Likewise.
10105 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10106 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10107 * corelow.c (core_xfer_partial): Likewise.
10108 * ctf.c (ctf_xfer_partial): Likewise.
10109 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10110 (darwin_xfer_partial): Likewise.
10111 * exec.c (exec_xfer_partial): Likewise.
10112 * gnu-nat.c (gnu_xfer_partial): Likewise.
10113 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10114 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10115 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10116 * linux-nat.c (linux_xfer_siginfo): Likewise.
10117 (linux_proc_xfer_spu): Likewise.
10118 * procfs.c (procfs_xfer_partial): Likewise.
10119 * record-full.c (record_full_xfer_partial): Likewise.
10120 (record_full_core_xfer_partial): Likewise.
10121 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10122 * remote.c (remote_write_qxfer): Likewise.
10123 (remote_write_qxfer, remote_read_qxfer): Likewise.
10124 (remote_xfer_partial): Likewise.
10125 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10126 (rs6000_xfer_shared_libraries): Likewise.
10127 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10128 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10129 (spu_xfer_partial): Likewise.
10130 * target.c (memory_xfer_partial_1): Likewise.
10131 * tracepoint.c (tfile_xfer_partial): Likewise.
10132 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10133 (windows_xfer_partial): Likewise.
10134
c09f20e4
YQ
101352014-02-07 Yao Qi <yao@codesourcery.com>
10136
10137 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10138 comments.
10139 (core_xfer_shared_libraries_aix): Likewise.
10140 * gdbarch.c, gdbarch.h: Regenerated.
10141 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10142 ULONGEST. Change 'len_avail' type to ULONGEST.
10143 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10144 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10145 declaration.
10146 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10147
8635b3bf
YQ
101482014-02-07 Yao Qi <yao@codesourcery.com>
10149
10150 * corefile.c (memory_error): Get 'exception' from ERR and pass
10151 'exception' to throw_error.
10152
6dddc817
DE
101532014-02-06 Doug Evans <xdje42@gmail.com>
10154
10155 * configure.ac (libpython checking): Remove all but python.o from
10156 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10157 * configure: Regenerate.
10158
10159 * Makefile.in (SFILES): Add extension.c.
10160 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10161 (COMMON_OBS): Add extension.o.
10162 * extension.h: New file.
10163 * extension-priv.h: New file.
10164 * extension.c: New file.
10165
10166 * python/python-internal.h: #include "extension.h".
10167 (gdbpy_auto_load_enabled): Declare.
10168 (gdbpy_apply_val_pretty_printer): Declare.
10169 (gdbpy_apply_frame_filter): Declare.
10170 (gdbpy_preserve_values): Declare.
10171 (gdbpy_breakpoint_cond_says_stop): Declare.
10172 (gdbpy_breakpoint_has_cond): Declare.
10173 (void source_python_script_for_objfile): Delete.
10174 * python/python.c: #include "extension-priv.h".
10175 Delete inclusion of "observer.h".
10176 (extension_language_python): Moved here and renamed from
10177 script_language_python in py-auto-load.c.
10178 Redefined to be of type extension_language_defn.
10179 (python_extension_script_ops): New global.
10180 (python_extension_ops): New global.
10181 (struct python_env): New member previous_active.
10182 (restore_python_env): Call restore_active_ext_lang.
10183 (ensure_python_env): Call set_active_ext_lang.
10184 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10185 New arg extlang.
10186 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10187 New arg extlang.
10188 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10189 New arg extlang.
10190 (gdbpy_eval_from_control_command): Renamed from
10191 eval_python_from_control_command, made static. New arg extlang.
10192 (gdbpy_source_script) Renamed from source_python_script, made static.
10193 New arg extlang.
10194 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10195 result to int. New arg extlang.
10196 (gdbpy_source_objfile_script): Renamed from
10197 source_python_script_for_objfile, made static. New arg extlang.
10198 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10199 static. New args extlang, extlang_printers. Change result type to
10200 "void".
10201 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10202 static. New arg extlang. Rename arg printers to extlang_printers
10203 and change type to ext_lang_type_printers *.
10204 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10205 static. Replace argument arg with extlang, extlang_printers.
10206 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10207 (!HAVE_PYTHON, source_python_script): Delete.
10208 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10209 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10210 (!HAVE_PYTHON, start_type_printers): Delete.
10211 (!HAVE_PYTHON, apply_type_printers): Delete.
10212 (!HAVE_PYTHON, free_type_printers): Delete.
10213 (_initialize_python): Delete call to observer_attach_before_prompt.
10214 (finalize_python): Set/restore active extension language.
10215 (gdbpy_finish_initialization) Renamed from
10216 finish_python_initialization, made static. New arg extlang.
10217 (gdbpy_initialized): New function.
10218 * python/python.h: #include "extension.h". Delete #include
10219 "value.h", "mi/mi-cmds.h".
10220 (extension_language_python): Declare.
10221 (GDBPY_AUTO_FILE_NAME): Delete.
10222 (enum py_bt_status): Moved to extension.h and renamed to
10223 ext_lang_bt_status.
10224 (enum frame_filter_flags): Moved to extension.h.
10225 (enum py_frame_args): Moved to extension.h and renamed to
10226 ext_lang_frame_args.
10227 (finish_python_initialization): Delete.
10228 (eval_python_from_control_command): Delete.
10229 (source_python_script): Delete.
10230 (apply_val_pretty_printer): Delete.
10231 (apply_frame_filter): Delete.
10232 (preserve_python_values): Delete.
10233 (gdbpy_script_language_defn): Delete.
10234 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10235 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10236
10237 * auto-load.c: #include "extension.h".
10238 (GDB_AUTO_FILE_NAME): Delete.
10239 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10240 (script_language_gdb): Delete, moved to extension.c and renamed to
10241 extension_language_gdb.
10242 (source_gdb_script_for_objfile): Delete.
10243 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10244 (loaded_script): Change type of language member to
10245 struct extension_language_defn *.
10246 (init_loaded_scripts_info): Initialize
10247 unsupported_script_warning_printed.
10248 (maybe_add_script): Make static. Change type of language arg to
10249 struct extension_language_defn *.
10250 (clear_section_scripts): Reset unsupported_script_warning_printed.
10251 (auto_load_objfile_script_1): Rewrite to use extension language API.
10252 (auto_load_objfile_script): Make public. Remove support-compiled-in
10253 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10254 (source_section_scripts): Rewrite to use extension language API.
10255 (load_auto_scripts_for_objfile): Rewrite to use
10256 auto_load_scripts_for_objfile.
10257 (collect_matching_scripts_data): Change type of language member to
10258 struct extension_language_defn *.
10259 (auto_load_info_scripts): Change type of language arg to
10260 struct extension_language_defn *.
10261 (unsupported_script_warning_print): New function.
10262 (script_not_found_warning_print): Make static.
10263 (_initialize_auto_load): Rewrite construction of scripts-directory
10264 help.
10265 * auto-load.h (struct objfile): Add forward decl.
10266 (struct script_language): Delete.
10267 (struct auto_load_pspace_info): Add forward decl.
10268 (struct extension_language_defn): Add forward decl.
10269 (maybe_add_script): Delete.
10270 (auto_load_objfile_script): Declare.
10271 (script_not_found_warning_print): Delete.
10272 (auto_load_info_scripts): Update prototype.
10273 (auto_load_gdb_scripts_enabled): Declare.
10274 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10275 auto_load_python_scripts_enabled and made public.
10276 (script_language_python): Delete, moved to python.c.
10277 (gdbpy_script_language_defn): Delete.
10278 (info_auto_load_python_scripts): Update to use
10279 extension_language_python.
10280
10281 * breakpoint.c (condition_command): Replace call to
10282 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10283 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10284 with call to breakpoint_ext_lang_cond_says_stop.
10285 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10286 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10287 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10288 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10289 New arg slang.
10290 (local_setattro): Print name of extension language with existing
10291 stop condition.
10292
10293 * valprint.c (val_print, value_print): Update to call
10294 apply_ext_lang_val_pretty_printer.
10295 * cp-valprint.c (cp_print_value): Update call to
10296 apply_ext_lang_val_pretty_printer.
10297 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10298 (gdbpy_apply_val_pretty_printer): Renamed from
10299 apply_val_pretty_printer. New arg extlang.
10300 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10301
10302 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10303 extension language API.
10304 * cli/cli-script.c (execute_control_command): Update to call
10305 eval_ext_lang_from_control_command.
10306
10307 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10308 enum ext_lang_bt_status values. Update call to
10309 apply_ext_lang_frame_filter.
10310 (mi_cmd_stack_list_locals): Ditto.
10311 (mi_cmd_stack_list_args): Ditto.
10312 (mi_cmd_stack_list_variables): Ditto.
10313 * mi/mi-main.c: Delete #include "python/python-internal.h".
10314 Add #include "extension.h".
10315 (mi_cmd_list_features): Replace reference to python internal variable
10316 gdb_python_initialized with call to ext_lang_initialized_p.
10317
10318 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10319 Update to use enum ext_lang_frame_args. Update to call
10320 apply_ext_lang_frame_filter.
10321 * python/py-framefilter.c (extract_sym): Update to use enum
10322 ext_lang_bt_status.
10323 (extract_value, py_print_type, py_print_value): Ditto.
10324 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10325 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10326 (py_print_frame): Ditto.
10327 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10328 New arg extlang. Update to use enum ext_lang_bt_status.
10329
10330 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10331 finish_python_initialization. Replace with call to
10332 finish_ext_lang_initialization.
10333
10334 * typeprint.c (do_free_global_table): Update to call
10335 free_ext_lang_type_printers.
10336 (create_global_typedef_table): Update to call
10337 start_ext_lang_type_printers.
10338 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10339 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10340 (type_print_options): Change type of global_printers from "void *"
10341 to "struct ext_lang_type_printers *".
10342
10343 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10344 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10345 (gdbpy_preserve_values): Renamed from preserve_python_values.
10346 New arg extlang.
10347 (!HAVE_PYTHON, preserve_python_values): Delete.
10348
10349 * utils.c (quit_flag): Delete, moved to extension.c.
10350 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10351 extension.c.
10352
10353 * eval.c: Delete #include "python/python.h".
10354 * main.c: Delete #include "python/python.h".
10355
10356 * defs.h: Update comment.
10357
6af79985
JB
103582014-02-06 Joel Brobecker <brobecker@adacore.com>
10359
10360 GDB 7.7 released.
10361
12c5175d
MK
103622014-02-05 Mark Kettenis <kettenis@gnu.org>
10363
10364 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10365 defined.
10366
8dc5b319
YQ
103672014-02-05 Yao Qi <yao@codesourcery.com>
10368
10369 * remote.c (remote_pass_signals): Remove local 'buf' and use
10370 rs->buf.
10371 (remote_program_signals): Likewise.
10372
de7b2893
YQ
103732014-02-05 Yao Qi <yao@codesourcery.com>
10374
10375 * ctf.c: Include "inferior.h" and "gdbthread.h".
10376 (CTF_PID): A new macro.
10377 (ctf_open): Call inferior_appeared and add_thread_silent.
10378 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10379 (ctf_thread_alive): New function.
10380 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10381
66d032ac
YQ
103822014-02-05 Yao Qi <yao@codesourcery.com>
10383
10384 Revert this patch:
10385
10386 2013-05-24 Yao Qi <yao@codesourcery.com>
10387
10388 * tracepoint.c (TFILE_PID): Remove.
10389 (tfile_open): Don't add thread and inferior.
10390 (tfile_close): Don't set 'inferior_ptid'. Don't call
10391 exit_inferior_silent.
10392 (tfile_thread_alive): Remove.
10393 (init_tfile_ops): Don't set field 'to_thread_alive' of
10394 tfile_ops.
10395
f4ccffad
CE
103962014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10397
10398 * remote.c (remote_start_remote): Call remote_check_symbols even
10399 if only symbol-file (not file) has been given.
10400
591a12a1
UW
104012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10402
10403 * gdbarch.sh (skip_entrypoint): New callback.
10404 * gdbarch.c, gdbarch.h: Regenerate.
10405 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10406 * infrun.c (fill_in_stop_func): Likewise.
10407 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10408 (ppc_elfv2_elf_make_msymbol_special): New function.
10409 (ppc_elfv2_skip_entrypoint): Likewise.
10410 (ppc_linux_init_abi): Install them for ELFv2.
10411
cc0e89c5
UW
104122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10413
10414 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10415 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10416 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10417 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10418 structures returned in GPRs.
10419
52f548e4
UW
104202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10421
10422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10423 offset to the stack parameter list for the ELFv2 ABI.
10424
d4094b6a
UW
104252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10426
10427 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10428 set_gdbarch_convert_from_func_ptr_addr and
10429 set_gdbarch_elf_make_msymbol_special for ELFv1.
10430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10431 function descriptors on ELFv1.
10432 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10433 set up r12 at function entry.
10434
cd453cd0
UW
104352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10436
10437 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10438 (struct gdbarch_tdep): New member elf_abi.
10439
10440 * rs6000-tdep.c: Include "elf/ppc64.h".
10441 (rs6000_gdbarch_init): Detect ELF ABI version.
10442
0ff3e01f
UW
104432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10444
10445 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10446 within a register pair holding a DFP 128-bit value on little-endian.
10447 (ppc64_sysv_abi_return_value_base): Likewise.
10448 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10449 (dfp_pseudo_register_write): Likewise.
10450
5b757e5d
UW
104512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10452
10453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10454 offset on little-endian when passing _Decimal32.
10455 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10456
084ee545
UW
104572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10458
10459 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10460 of the overlapped FP register within the VSX register on little-
10461 endian platforms.
10462 (efpr_pseudo_register_write): Likewise.
10463
d63167af
UW
104642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10465
10466 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10467 offset on little-endian when passing small structures.
10468
e765b44c
UW
104692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10470
10471 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10472 (struct ppc64_sysv_argpos): New data structure.
10473 (ppc64_sysv_abi_push_float): Remove.
10474 (ppc64_sysv_abi_push_val): New function.
10475 (ppc64_sysv_abi_push_integer): Likewise.
10476 (ppc64_sysv_abi_push_freg): Likewise.
10477 (ppc64_sysv_abi_push_vreg): Likewise.
10478 (ppc64_sysv_abi_push_param): Likewise.
10479 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10480 (ppc64_sysv_abi_return_value_base): New function.
10481 (ppc64_sysv_abi_return_value): Refactor to use it.
10482
36c24d95
UW
104832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10484
10485 * NEWS: Document new target powerpc64le-*-linux*.
10486
26fd9228
MK
104872014-02-04 Mark Kettenis <kettenis@gnu.org>
10488
10489 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10490 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10491 core dumps.
10492 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10493 register set used in ELF core dumps. Add floating-point register set.
10494
c5bb7362
KB
104952014-02-03 Kevin Buettner <kevinb@redhat.com>
10496
74228e77 10497 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10498 dwarf2_to_gdb[] table using symbolic constants. Adjust
10499 penultimate entry from number representing the PC register
10500 to symbolic constant representing the MDR register. Add
10501 constant for the PC register to the end of the table.
10502
af09351e
MK
105032014-02-03 Mark Kettenis <kettenis@gnu.org>
10504
10505 * bsd-kvm.c: Include <sys/param.h>
10506
8507e05d
MK
105072014-02-03 Mark Kettenis <kettenis@gnu.org>
10508
10509 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10510
ae56bfb8
JB
105112014-01-31 Joel Brobecker <brobecker@adacore.com>
10512
10513 * ada-lang.h (clear_ada_sym_cache): Delete.
10514
718ee4dc
UW
105152014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10516
10517 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10518
401e27fd
JM
105192014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10520
10521 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10522 the sigreturn register save area only if the syscall is
10523 sigreturn.
10524
a7c88acd
JB
105252014-01-29 Joel Brobecker <brobecker@adacore.com>
10526
10527 * valops.c (value_slice): Minor reformatting.
10528
fa0079ea
UW
105292014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10530
10531 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10532
c6044dd1
JB
105332014-01-28 Joel Brobecker <brobecker@adacore.com>
10534
10535 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10536 New static globals.
10537 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10538 (ada_ignore_descriptive_types_p): New static global.
10539 (find_parallel_type_by_descriptive_type): Return immediately
10540 if ada_ignore_descriptive_types_p is set.
10541 (_initialize_ada_language): Register new commands "maintenance
10542 set ada", "maintenance show ada", "maintenance set ada
10543 ignore-descriptive-types" and "maintenance show ada
10544 ignore-descriptive-types".
10545 * NEWS: Add entry for new "maint ada set/show
10546 ignore-descriptive-types" commands.
10547
568e808b
MM
105482014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10549
10550 * record-btrace.c (record_btrace_close): Call btrace_teardown
10551 for all threads.
10552
467d141b
JB
105532014-01-27 Joel Brobecker <brobecker@adacore.com>
10554
10555 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10556 "ui-out.h".
10557
fb151210
JB
105582014-01-27 Joel Brobecker <brobecker@adacore.com>
10559
10560 * ada-typeprint (type_is_full_subrange_of_target_type):
10561 New function.
10562 (print_range): Add parameter bounds_prefered_p. If not set,
10563 try printing range types using the name of their base type.
10564 (print_range_type): Add parameter bounds_prefered_p.
10565 Use it in call to print_range.
10566 (print_array_type, ada_print_type): Update calls to print_range
10567 and print_range_type.
10568
aba02109
JB
105692014-01-27 Joel Brobecker <brobecker@adacore.com>
10570
10571 * ada-typeprint.c (print_array_type, print_choices, print_range)
10572 (print_range_bound, print_dynamic_range_bound, print_range_type):
10573 Remove declaration.
10574
e62e21fd
JB
105752014-01-27 Joel Brobecker <brobecker@adacore.com>
10576
10577 * ada-typeprint.c (print_range): Add missing empty line
10578 after local declaration.
10579
859cf5d1
JB
105802014-01-27 Joel Brobecker <brobecker@adacore.com>
10581
10582 * ada-valprint.c (print_optional_low_bound): Get index_type's
10583 target type for as long as it is a TYPE_CODE_RANGE.
10584
25790f6f
JB
105852014-01-27 Joel Brobecker <brobecker@adacore.com>
10586
10587 * procfs.c (procfs_make_note_section): Remove assertion and
10588 associated comment.
10589
6b6aa828
YQ
105902014-01-24 Yao Qi <yao@codesourcery.com>
10591
10592 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10593 * corelow.c (get_core_siginfo): Likewise.
10594
5d6df423
YQ
105952014-01-24 Yao Qi <yao@codesourcery.com>
10596
10597 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10598 ULONGEST. Don't check 'len' is negative.
10599 (remote_write_bytes): Change type of 'len' to ULONGEST.
10600
83b645b8
TT
106012014-01-23 Tom Tromey <tromey@redhat.com>
10602
10603 PR python/16485:
10604 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10605 Handle exception from frame.block.
10606 (FrameVars.fetch_frame_locals): Likewise.
10607
0740f8d8
TT
106082014-01-23 Tom Tromey <tromey@redhat.com>
10609
10610 PR python/16487:
10611 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10612 on a NULL pointer. Move "goto error" to correct place.
10613
21909fa1
TT
106142014-01-23 Tom Tromey <tromey@redhat.com>
10615
10616 PR python/16491:
10617 * python/py-framefilter.c (apply_frame_filter): Call
10618 ensure_python_env after computing gdbarch.
10619
17fde6d0
YQ
106202014-01-23 Yao Qi <yao@codesourcery.com>
10621
10622 * target.c (raw_memory_xfer_partial): Change argument type
10623 from void * to gdb_byte *.
10624 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10625
87ce2a04
DE
106262014-01-22 Doug Evans <dje@google.com>
10627
10628 New gdbserver option --debug-format=timestamp.
10629 * NEWS: Mention it.
10630
237b092b
AA
106312014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10632
10633 * syscalls/s390x-linux.xml: New file.
10634 * syscalls/s390-linux.xml: New file.
10635 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10636 (XML_SYSCALL_FILENAME_S390X): Likewise.
10637 (op_svc): New enum value for SVC opcode.
10638 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10639 (s390_linux_get_syscall_number): New function.
10640 (s390_gdbarch_init): Register '*get_syscall_number' and the
10641 syscall xml file name.
10642 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10643 "s390-linux.xml" and "s390x-linux.xml".
10644 * NEWS: Announce new feature.
10645
54bff650
BS
106462014-01-22 Baruch Siach <baruch@tkos.co.il>
10647
10648 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10649
14e361d7
PA
106502014-01-22 Pedro Alves <palves@redhat.com>
10651
10652 * xtensa-config.c: Include defs.h.
10653
46bbb3ed
JB
106542014-01-22 Joel Brobecker <brobecker@adacore.com>
10655
10656 * common/common-utils.h: Add "ARI:" comment beside __func__
10657 reference.
10658
3a80edfc
JB
106592014-01-22 Joel Brobecker <brobecker@adacore.com>
10660
10661 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10662 documentation a bit.
10663
4869db5e
RM
106642014-01-21 Roland McGrath <mcgrathr@google.com>
10665
10666 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10667 * configure: Regenerate.
10668 * aclocal.m4: Regenerate.
10669 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10670 New substituted variables.
10671 (install-strip): New target.
10672 (INSTALL_SCRIPT): New substituted variable.
10673 (FLAGS_TO_PASS): Add it.
10674 (install-only): Use $(INSTALL_SCRIPT) rather than
10675 $(INSTALL_PROGRAM) for gcore.
10676
9ea4267d
TT
106772014-01-20 Tom Tromey <tromey@redhat.com>
10678
10679 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10680 together.
10681
1f2bdf09
TT
106822014-01-20 Tom Tromey <tromey@redhat.com>
10683
10684 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10685 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10686 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10687 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10688 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10689 (struct cmd_list_element) <flags>: Remove.
10690 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10691 doc_allocated>: New fields.
10692 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10693 bitfields.
10694 * maint.c (maintenance_do_deprecate): Update.
10695 * top.c (execute_command): Update.
10696
e671835b
BS
106972014-01-20 Baruch Siach <baruch@tkos.co.il>
10698
10699 * xtensa-linux-nat.c: Include asm/ptrace.h.
10700
50367cd2
IB
107012014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10702
10703 * Makefile.in (SFILES): Add d-support.c.
10704 (COMMON_OBS): Add d-support.o.
10705 * d-lang.h (d_parse_symbol): Add comment, now defined in
10706 d-support.c.
10707 * d-lang.c (parse_call_convention)
10708 (parse_attributes, parse_function_types)
10709 (parse_function_args, parse_type, parse_identifier)
10710 (call_convention_p, d_parse_symbol): Move functions to ...
10711 * d-support.c: ... New file.
10712
ec9f644a
IB
107132014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10714
10715 * d-lang.h (d_parse_symbol): Add declaration.
10716 * d-lang.c (extract_identifiers)
10717 (extract_type_info): Remove functions.
10718 (parse_call_convention, parse_attributes)
10719 (parse_function_types, parse_function_args)
10720 (parse_type, parse_identifier, call_convention_p)
10721 (d_parse_symbol): New functions.
10722 (d_demangle): Use d_parse_symbol to demangle D symbols.
10723
94b1b47e
IB
107242014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10725
10726 * d-lang.h (struct builtin_d_type): New data type.
10727 (builtin_d_type): Add declaration.
10728 * d-lang.c (d_language_arch_info, build_d_types)
10729 (builtin_d_type): New functions.
10730 (enum d_primitive_types): New data type.
10731 (d_language_defn): Change c_language_arch_info to
10732 d_language_arch_info.
10733 (d_type_data): New static variable.
10734 (_initialize_d_language): Initialize d_type_data.
10735
63778547
IB
107362014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10737
10738 * d-lang.h (d_main_name): Add declaration.
10739 * d-lang.c (d_main_name): New function.
10740 * symtab.c (find_main_name): Add call to d_main_name.
10741
3271ba66
IB
107422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10743
10744 * d-lang.c (d_language_defn): Change macro_expansion_c to
10745 macro_expansion_no.
10746
d36b3012
IB
107472014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10748
10749 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10750
c90a6fb7
SDJ
107512014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10752
10753 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10754 gdb_exception" declaration.
10755 * remote.c (getpkt_or_notif_sane): Likewise.
10756
749234e5
DE
107572014-01-17 Doug Evans <dje@google.com>
10758
10759 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10760 function, contents of dirnames_to_char_ptr_vec_append moved here.
10761 (delim_string_to_char_ptr_vec): New function.
10762 (dirnames_to_char_ptr_vec_append): Rewrite.
10763 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10764
df049a58
DE
107652014-01-17 Doug Evans <dje@google.com>
10766
10767 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10768 and moved here ...
10769 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10770 #include "common-utils.h".
10771 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10772 * common/vec.h (VEC_ASSERT_PASS): Update.
10773 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10774 (MACH_CHECK_ERROR): Update.
10775
69f97648
SM
107762014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10777
10778 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10779 comments.
10780 * gdbarch.h: Regenerate.
10781
98b1cfdc
TT
107822014-01-16 Tom Tromey <tromey@redhat.com>
10783
10784 * value.c (struct value) <regnum>: Move earlier.
10785
77a19445
TT
107862014-01-16 Tom Tromey <tromey@redhat.com>
10787
10788 * remote.c (extended_remote_create_inferior): Rename from
10789 extended_remote_create_inferior_1. Add "ops" argument. Remove
10790 old implementation.
10791
62261490
PA
107922014-01-16 Pedro Alves <palves@redhat.com>
10793
10794 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10795 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10796 the backchain.
10797
4d65956b
DE
107982014-01-16 Doug Evans <dje@google.com>
10799
10800 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10801
52834460
MM
108022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10803
10804 * btrace.h (btrace_thread_flag): New.
10805 (struct btrace_thread_info) <flags>: New.
10806 * record-btrace.c (record_btrace_resume_thread)
10807 (record_btrace_find_thread_to_move, btrace_step_no_history)
10808 (btrace_step_stopped, record_btrace_start_replaying)
10809 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10810 (record_btrace_find_resume_thread): New.
10811 (record_btrace_resume, record_btrace_wait): Extend.
10812 (record_btrace_can_execute_reverse): New.
10813 (record_btrace_open): Fail in non-stop mode.
10814 (record_btrace_set_replay): Split into this, ...
10815 (record_btrace_stop_replaying): ... this, ...
10816 (record_btrace_clear_histories): ... and this.
10817 (init_record_btrace_ops): Init to_can_execute_reverse.
10818 * NEWS: Announce it.
10819
118e6252
MM
108202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10821
10822 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10823 (forward_target_decr_pc_after_break)
10824 (target_decr_pc_after_break): New.
10825 * target.c (forward_target_decr_pc_after_break)
10826 (target_decr_pc_after_break): New.
10827 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10828 instead of gdbarch_decr_pc_after_break.
10829 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10830 instead of gdbarch_decr_pc_after_break.
10831 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10832 instead of gdbarch_decr_pc_after_break.
10833 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10834 instead of gdbarch_decr_pc_after_break.
10835 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10836 instead of gdbarch_decr_pc_after_break.
10837 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10838 instead of gdbarch_decr_pc_after_break.
10839
6e07b1d2
MM
108402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10841
10842 * btrace.c: Include regcache.h.
10843 (btrace_add_pc): New.
10844 (btrace_enable): Call btrace_add_pc.
10845 (btrace_is_empty): New.
10846 * btrace.h (btrace_is_empty): New.
10847 * record-btrace.c (require_btrace, record_btrace_info): Call
10848 btrace_is_empty.
10849
969c39fb
MM
108502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10851
10852 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10853 Support delta reads.
10854 (linux_disable_btrace): Change return type.
10855 * common/linux-btrace.h (linux_read_btrace): Change parameters
10856 and return type to allow error reporting. Update users.
10857 (linux_disable_btrace): Change return type. Update users.
10858 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10859 New.
10860 (btrace_error): New.
10861 (btrace_block) <begin>: Comment on BEGIN == 0.
10862 * btrace.c (btrace_compute_ftrace): Start from the end of
10863 the current trace.
10864 (btrace_stitch_trace, btrace_clear_history): New.
10865 (btrace_fetch): Read delta trace, return if replaying.
10866 (btrace_clear): Move clear history code to btrace_clear_history.
10867 (parse_xml_btrace): Throw an error if parsing failed.
10868 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10869 and return type to allow error reporting.
10870 (target_read_btrace): Change parameters and return type to allow
10871 error reporting.
10872 * target.c (target_read_btrace): Update.
10873 * remote.c (remote_read_btrace): Support delta reads. Pass
10874 errors on.
10875 * NEWS: Announce it.
10876
0b722aec
MM
108772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10878
10879 * record.h (record_btrace_frame_unwind)
10880 (record_btrace_tailcall_frame_unwind): New declarations.
10881 * dwarf2-frame: Include record.h
10882 (dwarf2_frame_cfa): Throw an error for btrace frames.
10883 * record-btrace.c: Include hashtab.h.
10884 (btrace_get_bfun_name): New.
10885 (btrace_call_history): Call btrace_get_bfun_name.
10886 (struct btrace_frame_cache): New.
10887 (bfcache): New.
10888 (bfcache_hash, bfcache_eq, bfcache_new): New.
10889 (btrace_get_frame_function): New.
10890 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10891 (record_btrace_frame_this_id): Compute own id.
10892 (record_btrace_frame_prev_register): Provide PC, throw_error
10893 for all other registers.
10894 (record_btrace_frame_sniffer): Detect btrace frames.
10895 (record_btrace_tailcall_frame_sniffer): New.
10896 (record_btrace_frame_dealloc_cache): New.
10897 (record_btrace_frame_unwind): Add new functions.
10898 (record_btrace_tailcall_frame_unwind): New.
10899 (_initialize_record_btrace): Allocate cache.
10900 * btrace.c (btrace_clear): Call reinit_frame_cache.
10901 * NEWS: Announce it.
10902
066ce621
MM
109032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10904
10905 * record-btrace.c (record_btrace_set_replay)
10906 (record_btrace_goto_begin, record_btrace_goto_end)
10907 (record_btrace_goto): New.
10908 (init_record_btrace_ops): Initialize them.
10909 * NEWS: Announce it.
10910
e2887aa3
MM
109112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10912
10913 * record-btrace.c (record_btrace_find_new_threads)
10914 (record_btrace_thread_alive): New.
10915 (init_record_btrace_ops): Initialize to_find_new_threads and
10916 to_thread_alive.
10917
b2f4cfde
MM
109182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10919
10920 * record-btrace.c (record_btrace_resume): New.
10921 (record_btrace_wait): New.
10922 (init_record_btrace_ops): Initialize to_wait and to_resume.
10923
633785ff
MM
109242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10925
10926 * record-btrace.c (record_btrace_xfer_partial)
10927 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10928 (record_btrace_allow_memory_access): New.
10929 (init_record_btrace_ops): Initialize new methods.
10930 * target.c (raw_memory_xfer_partial): Bail out if target reports
10931 that this memory is not available.
10932
3db08215
MM
109332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10934
10935 * target.h (target_ops) <to_insert_breakpoint>
10936 <to_remove_breakpoint>: Add target_ops parameter.
10937 (forward_target_insert_breakpoint): New.
10938 (forward_target_remove_breakpoint): New.
10939 (memory_remove_breakpoint, memory_insert_breakpoint):
10940 Add target_ops parameter.
10941 * target.c (target_insert_breakpoint): Split into this and ...
10942 (forward_target_insert_breakpoint): ... this.
10943 (target_remove_breakpoint): Split into this and ...
10944 (forward_target_remove_breakpoint): ... this.
10945 (debug_to_insert_breakpoint): Add target_ops parameter.
10946 Call forward_target_insert_breakpoint.
10947 (debug_to_remove_breakpoint): Add target_ops parameter.
10948 Call forward_target_remove_breakpoint.
10949 (update_current_target): Do not inherit or default to_insert_breakpoint
10950 and to_remove_breakpoint.
10951 * corelow.c (ignore): Add target_ops parameter.
10952 * exec.c (ignore): Add target_ops parameter.
10953 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10954 Add target_ops parameter.
10955 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10956 Add target_ops parameter.
10957 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10958 Add target_ops parameter.
10959 * record-full.c (record_full_beneath_to_insert_breakpoint)
10960 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10961 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10962 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10963 (record_full_core_remove_breakpoint): Add target_ops parameter.
10964 Update users.
10965 (record_full_beneath_to_insert_breakpoint_ops)
10966 (record_full_beneath_to_remove_breakpoint_ops)
10967 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10968 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10969 tmp_to_remove_breakpoint_ops,
10970 record_full_beneath_to_insert_breakpoint_ops, and
10971 record_full_beneath_to_remove_breakpoint_ops.
10972 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10973 (m32r_remove_breakpoint): Add target_ops parameter.
10974 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10975 Add target_ops parameter.
10976 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10977 Add target_ops parameter.
10978
cecac1ab
MM
109792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10980 Markus Metzger <markus.t.metzger@intel.com>
10981
10982 * record-btrace.c: Include frame-unwind.h.
10983 (record_btrace_frame_unwind_stop_reason)
10984 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10985 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10986 New.
10987 (init_record_btrace_ops): Install it.
10988
824344ca
MM
109892014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10990
10991 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10992 get_prev_frame_1.
10993
32261e52
MM
109942014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10995
10996 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10997 earlier.
10998
ea001bdc
MM
109992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11000
11001 * frame-unwind.c: Include target.h.
11002 (frame_unwind_try_unwinder): New function with code from ...
11003 (frame_unwind_find_by_frame): ... here. New variable
11004 unwinder_from_target, call also target_get_unwinder)
11005 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11006 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11007 * target.h (struct target_ops): New fields to_get_unwinder and
11008 to_get_tailcall_unwinder.
11009 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11010
1f3ef581
MM
110112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11012
11013 * record-btrace.c (record_btrace_fetch_registers)
11014 (record_btrace_store_registers)
11015 (record_btrace_to_prepare_to_store): New.
11016 (init_record_btrace_ops): Add the above.
11017
f32dbf8c
MM
110182014-01-16 Tom Tromey <tromey@redhat.com>
11019
11020 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11021 * target.h (struct target_ops) <to_prepare_to_store>: Add
11022 argument.
11023 (target_prepare_to_store): Add argument.
11024 * target.c (debug_to_prepare_to_store): Add argument.
11025 (update_current_target): Update.
11026 * remote.c (remote_prepare_to_store): Add 'self' argument.
11027 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11028 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11029 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11030 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11031 argument.
11032 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11033 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11034 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11035 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11036 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11037
07bbe694
MM
110382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11039
11040 * btrace.h (replay) <replay>: New.
11041 (btrace_is_replaying): New.
11042 * btrace.c (btrace_clear): Free replay iterator.
11043 (btrace_is_replaying): New.
11044 * record-btrace.c (record_btrace_is_replaying): New.
11045 (record_btrace_info): Print insn number if replaying.
11046 (record_btrace_insn_history): Start at replay position.
11047 (record_btrace_call_history): Start at replay position.
11048 (init_record_btrace_ops): Init to_record_is_replaying.
11049
0688d04e
MM
110502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11051
11052 * record-btrace.c (record_btrace_insn_history_range): Include
11053 end.
11054 (record_btrace_insn_history_from): Adjust range.
11055 (record_btrace_call_history_range): Include
11056 end.
11057 (record_btrace_call_history_from): Adjust range.
11058 * NEWS: Announce changes.
11059
8710b709
MM
110602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11061
11062 * record.h (enum record_print_flag)
11063 <record_print_indent_calls>: New.
11064 * record.c (get_call_history_modifiers): Recognize /c modifier.
11065 (_initialize_record): Document /c modifier.
11066 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11067 Reorder fields. Optionally indent the function name. Update
11068 all users.
11069 * NEWS: Announce changes.
11070
d0fa7535
MM
110712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11072
11073 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11074
5de9129b
MM
110752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11076
11077 * btrace.c (ftrace_new_function): Start counting at one.
11078 * record-btrace.c (record_btrace_info): Adjust number of calls
11079 and insns.
11080 * NEWS: Announce it.
11081
7acbe133
MM
110822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11083
11084 * record-btrace.c (btrace_call_history_insn_range): Print
11085 insn range as [begin, end].
11086
23a7fe75
MM
110872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11088
11089 * btrace.h (struct btrace_func_link): New.
11090 (enum btrace_function_flag): New.
11091 (struct btrace_inst): Rename to ...
11092 (struct btrace_insn): ...this. Update all users.
11093 (struct btrace_func) <ibegin, iend>: Remove.
11094 (struct btrace_func_link): New.
11095 (struct btrace_func): Rename to ...
11096 (struct btrace_function): ...this. Update all users.
11097 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11098 (number, level, flags>: New.
11099 (struct btrace_insn_iterator): Rename to ...
11100 (struct btrace_insn_history): ...this.
11101 Update all users.
11102 (struct btrace_insn_iterator, btrace_call_iterator): New.
11103 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11104 (struct btrace_target_info) <begin, end, level>
11105 <insn_history, call_history>: New.
11106 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11107 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11108 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11109 (btrace_call_number, btrace_call_begin, btrace_call_end)
11110 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11111 (btrace_find_function_by_number, btrace_set_insn_history)
11112 (btrace_set_call_history): New.
11113 * btrace.c (btrace_init_insn_iterator)
11114 (btrace_init_func_iterator, compute_itrace): Remove.
11115 (ftrace_print_function_name, ftrace_print_filename)
11116 (ftrace_skip_file): Change
11117 parameter to const.
11118 (ftrace_init_func): Remove.
11119 (ftrace_debug): Use new btrace_function fields.
11120 (ftrace_function_switched): Also consider gaining and
11121 losing symbol information).
11122 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11123 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11124 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11125 New.
11126 (ftrace_new_function): Move. Remove debug print.
11127 (ftrace_update_lines, ftrace_update_insns): New.
11128 (ftrace_update_function): Check for call, ret, and jump.
11129 (compute_ftrace): Renamed to ...
11130 (btrace_compute_ftrace): ...this. Rewritten to compute call
11131 stack.
11132 (btrace_fetch, btrace_clear): Updated.
11133 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11134 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11135 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11136 (btrace_call_number, btrace_call_begin, btrace_call_end)
11137 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11138 (btrace_find_function_by_number, btrace_set_insn_history)
11139 (btrace_set_call_history): New.
11140 * record-btrace.c (require_btrace): Use new btrace thread
11141 info fields.
11142 (record_btrace_info, btrace_insn_history)
11143 (record_btrace_insn_history, record_btrace_insn_history_range):
11144 Use new btrace thread info fields and new iterator.
11145 (btrace_func_history_src_line): Rename to ...
11146 (btrace_call_history_src_line): ...this. Use new btrace
11147 thread info fields.
11148 (btrace_func_history): Rename to ...
11149 (btrace_call_history): ...this. Use new btrace thread info
11150 fields and new iterator.
11151 (record_btrace_call_history, record_btrace_call_history_range):
11152 Use new btrace thread info fields and new iterator.
11153
8372a7cb
MM
111542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11155
11156 * frame.h (frame_id_build_unavailable_stack_special): New.
11157 * frame.c (frame_id_build_unavailable_stack_special): New.
11158
c2170eef
MM
111592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11160
11161 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11162 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11163 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11164 to gdbarch.
11165 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11166 (i386_insn_is_jump, i386_jmp_p): New.
11167 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11168 insn_is_jump to gdbarch.
11169 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11170 * gdbarch.h: Regenerated.
11171 * gdbarch.c: Regenerated.
11172 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11173 (default_insn_is_jump): New.
11174 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11175 (default_insn_is_jump): New.
11176
864089d2
MM
111772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11178
11179 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11180 Change to ...
11181 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11182 (btrace_read_type) <btrace_read_new>: Change to ...
11183 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11184
ed9edfb5
MM
111852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11186
11187 * common/linux-btrace.c (linux_read_btrace): Free trace from
11188 previous iteration.
11189
fbcbc3fd
DE
111902014-01-15 Doug Evans <dje@google.com>
11191
11192 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11193 uint32_t.
11194
3d548a53
TT
111952014-01-15 Tom Tromey <tromey@redhat.com>
11196
11197 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11198 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11199 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11200 (set_objfile_main_name): New function.
11201 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11202 language_of_main>: New fields.
11203 (set_objfile_main_name): Declare.
11204 * symtab.c (find_main_name): Loop over objfiles to find the main
11205 name and language.
11206 (set_main_name): Now static.
11207 (get_main_info): Add comment.
11208 * symtab.h (set_main_name): Don't declare.
11209
32ac0d11
TT
112102014-01-15 Tom Tromey <tromey@redhat.com>
11211
11212 * symtab.c (main_progspace_key): New global.
11213 (struct main_info): New.
11214 (name_of_main, language_of_main): Remove.
11215 (get_main_info, main_info_cleanup): New function.
11216 (set_main_name, main_name, main_language): Use get_main_info.
11217 (_initialize_symtab): Initialize main_progspace_key.
11218
9e6c82ad
TT
112192014-01-15 Tom Tromey <tromey@redhat.com>
11220
11221 * dbxread.c (process_one_symbol): Update.
11222 * dwarf2read.c (read_partial_die): Update.
11223 * symfile.c (set_initial_language): Call main_language.
11224 * symtab.c (language_of_main): Now static.
11225 (set_main_name): Add 'lang' parameter.
11226 (find_main_name): Update.
11227 (main_language): New function.
11228 (symtab_observer_executable_changed): Update.
11229 * symtab.h (set_main_name): Update.
11230 (language_of_main): Remove.
11231 (main_language): Declare.
11232
6ef55de7
TT
112332014-01-15 Tom Tromey <tromey@redhat.com>
11234
11235 * symfile.c (init_entry_point_info): Use new "initialized" field.
11236 Update.
11237 * objfiles.h (struct entry_point) <initialized>: New field.
11238 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11239 (struct objfile) <ei>: ...here. Remove.
11240 * objfiles.c (entry_point_address_query): Update.
11241
53eddfa6
TT
112422014-01-15 Tom Tromey <tromey@redhat.com>
11243
11244 * objfiles.c (entry_point_address_query): Relocate entry point
11245 address.
11246 (objfile_relocate1): Do not relocate entry point address.
11247 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11248 <the_bfd_section_index>: New field.
11249 * symfile.c (init_entry_point_info): Find the entry point's
11250 section.
11251
d56e56aa
TT
112522014-01-15 Tom Tromey <tromey@redhat.com>
11253
11254 * solib-frv.c (enable_break): Use entry_point_address_query.
11255
33a97bbe
OJ
112562014-01-15 Omair Javaid <omair.javaid@linaro.org>
11257
11258 * NEWS: Add note on improved process record-replay on
11259 arm*-linux* targets.
11260
c6ec2b30
OJ
112612014-01-15 Omair Javaid <omair.javaid@linaro.org>
11262
11263 * arm-tdep.c (enum arm_record_result): New enum.
11264 (arm_record_unsupported_insn): New function.
11265 (arm_record_coproc_data_proc): Removed.
11266 (thumb2_record_ld_st_multiple): New function.
11267 (thumb2_record_ld_st_dual_ex_tbb): New function.
11268 (thumb2_record_data_proc_sreg_mimm): New function.
11269 (thumb2_record_ps_dest_generic): New function.
11270 (thumb2_record_branch_misc_cntrl): New function.
11271 (thumb2_record_str_single_data): New function.
11272 (thumb2_record_ld_mem_hints): New function.
11273 (thumb2_record_ld_word): New function.
11274 (thumb2_record_lmul_lmla_div): New function.
11275 (thumb2_record_decode_insn_handler): New function.
11276 (decode_insn): Add thumb32 instruction handlers.
11277
97dfe206
OJ
112782014-01-15 Omair Javaid <omair.javaid@linaro.org>
11279
11280 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11281 (struct arm_linux_record_tdep): Declare.
11282 (arm_canonicalize_syscall): New function.
11283 (arm_all_but_pc_registers_record): New function.
11284 (arm_linux_syscall_record): New function.
11285 (arm_linux_init_abi): Add syscall recording constructs.
11286 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11287 decoding. (arm_record_coproc_data_proc): Update arm syscall
11288 decoding.
11289 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11290 <arm_syscall_record>: New field.
11291 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11292 gdb_target_obs.
11293
9904a494
OJ
112942014-01-15 Omair Javaid <omair.javaid@linaro.org>
11295
11296 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11297 register for push instruction recording.
11298
f969241e
OJ
112992014-01-15 Omair Javaid <omair.javaid@linaro.org>
11300
11301 * arm-tdep.c (thumb_record_misc): Update to correct logical
11302 error while recording ldm, ldmia and pop instructions.
11303
bfbbec00
OJ
113042014-01-15 Omair Javaid <omair.javaid@linaro.org>
11305
11306 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11307
e40adcc9
PA
113082014-01-15 Pedro Alves <palves@redhat.com>
11309
11310 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11311 (go32_resume, go32_fetch_registers, store_register)
11312 (go32_store_registers, go32_prepare_to_store)
11313 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11314 (go32_create_inferior, go32_can_run, go32_terminal_init)
11315 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11316 declarations.
11317
b0a16e66
TT
113182014-01-15 Tom Tromey <tromey@redhat.com>
11319
11320 * target.h (async_callback_ftype): New typedef.
11321 (struct target_ops) <to_async>: Use it.
11322
bf7105a4
JB
113232014-01-15 Joel Brobecker <brobecker@adacore.com>
11324
11325 * python/py-value.c (get_field_type): Remove unnecessary curly
11326 braces for single-statement if block.
11327
a8f35c2e
JB
113282014-01-15 Joel Brobecker <brobecker@adacore.com>
11329
11330 * python/py-type.c (convert_field): Add missing empty line
11331 after declarations.
11332
bb4142cf
DE
113332014-01-14 Doug Evans <dje@google.com>
11334
11335 * symfile.h (expand_symtabs_matching): Renamed from
11336 expand_partial_symbol_names. Update prototype.
11337 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11338 * symfile.c (expand_symtabs_matching): Renamed from
11339 expand_partial_symbol_names. New args file_matcher, kind.
11340 Rename arg fun to symbol_matcher.
11341 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11342 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11343 ada_expand_partial_symbol_name.
11344 (ada_make_symbol_completion_list): Update to call
11345 expand_symtabs_matching.
11346 (ada_add_global_exceptions): Call expand_symtabs_matching.
11347 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11348 call map_symbol_filenames.
11349 * symtab.c (sources_info): Update to call map_symbol_filenames.
11350 (search_symbols): Call expand_symtabs_matching.
11351 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11352 (default_make_symbol_completion_list_break_on): Update to call
11353 expand_symtabs_matching.
11354 (make_source_files_completion_list): Update to call
11355 map_symbol_filenames.
11356
206f2a57
DE
113572014-01-14 Doug Evans <dje@google.com>
11358
11359 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11360 (expand_symtabs_symbol_matcher_ftype): New typedef.
11361 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11362 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11363 * symfile.c (expand_partial_symbol_names): Update to use
11364 expand_symtabs_symbol_matcher_ftype.
11365 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11366 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11367 Arg name_matcher renamed to symbol_matcher.
11368 * psymtab.c (recursively_search_psymtabs): Update to use
11369 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11370 sym_matcher.
11371 (expand_symtabs_matching_via_partial): Update to use
11372 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11373 Arg name_matcher renamed to symbol_matcher.
11374
540c2971
DE
113752014-01-14 Doug Evans <dje@google.com>
11376
11377 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11378 (map_partial_symbol_filenames): Ditto.
11379 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11380 (map_partial_symbol_filenames): Ditto.
11381 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11382 (map_partial_symbol_filenames): Ditto.
11383 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11384 (map_partial_symbol_filenames): Ditto.
11385 * symtab.c: Delete #include "psymtab.h".
11386
8213266a
PA
113872014-01-14 Pedro Alves <palves@redhat.com>
11388 Tom Tromey <tromey@redhat.com>
11389
11390 * infrun.c (use_displaced_stepping): Use find_record_target
11391 instead of RECORD_IS_USED.
11392 (adjust_pc_after_break): Use record_full_is_used instead of
11393 RECORD_IS_USED.
11394 * record-btrace.c (record_btrace_open): Call record_preopen
11395 instead of checking RECORD_IS_USED.
11396 * record-full.c (record_full_shortname)
11397 (record_full_core_shortname): New globals.
11398 (record_full_is_used): New function.
11399 (find_full_open): Call record_preopen instead of checking
11400 RECORD_IS_USED.
11401 (init_record_full_ops): Set the target's shortname to
11402 record_full_shortname.
11403 (init_record_full_core_ops): Set the target's shortname to
11404 record_full_core_shortname.
11405 * record-full.h (record_full_is_used): Declare.
11406 * record.c (find_record_target): Make extern.
11407 (record_preopen): New function.
11408 * record.h (RECORD_IS_USED): Delete macro.
11409 (find_record_target, record_preopen): Declare functions.
11410
7ec1862d
YQ
114112014-01-14 Yao Qi <yao@codesourcery.com>
11412
11413 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11414 'len''s type to ULONGEST.
11415 (core_xfer_shared_libraries_aix): Likewise.
11416 * gdbarch.c, gdbarch.h: Regenerated.
11417 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11418 Change type of 'len' to ULONGEST.
11419 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11420 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11421
dea80a27
YQ
114222014-01-14 Yao Qi <yao@codesourcery.com>
11423
11424 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11425 type of 'len' to ULONGEST.
11426 (linux_xfer_osdata_processgroups): Likewise.
11427 (linux_xfer_osdata_threads): Likewise.
11428 (linux_xfer_osdata_fds): Likewise.
11429 (linux_xfer_osdata_isockets): Likewise.
11430 (linux_xfer_osdata_shm): Likewise.
11431 (linux_xfer_osdata_sem): Likewise.
11432 (linux_xfer_osdata_msg): Likewise.
11433 (linux_common_xfer_osdata): Likewise.
11434 (struct osdata_type) <getter>: Likewise.
11435 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11436 the declaration.
11437
b55e14c7
YQ
114382014-01-14 Yao Qi <yao@codesourcery.com>
11439
11440 * target.h (target_xfer_partial_ftype): Update.
11441 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11442 ULONGEST.
11443 * aix-thread.c (aix_thread_xfer_partial): Change type of
11444 argument 'len' to ULONGEST.
11445 * auxv.c (procfs_xfer_auxv): Likewise.
11446 (ld_so_xfer_auxv): Likewise.
11447 (memory_xfer_auxv): Likewise.
11448 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11449 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11450 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11451 * corelow.c (core_xfer_partial): Likewise.
11452 * ctf.c (ctf_xfer_partial): Likewise.
11453 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11454 '%u'.
11455 (darwin_read_dyld_info): Likewise.
11456 (darwin_xfer_partial): Likewise.
11457 * exec.c (section_table_xfer_memory_partial): Likewise.
11458 (exec_xfer_partial): Likewise.
11459 * exec.h (section_table_xfer_memory_partial): Update
11460 declaration.
11461 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11462 instead of plongest.
11463 (gnu_xfer_partial): Likewise.
11464 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11465 (ia64_hpux_xfer_solib_got): Likewise.
11466 (ia64_hpux_xfer_partial): Likewise.
11467 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11468 * inf-ptrace.c (inf_ptrace_xfer_partial):
11469 * inf-ttrace.c (inf_ttrace_xfer_partial):
11470 * linux-nat.c (linux_xfer_siginfo): Likewise.
11471 (linux_nat_xfer_partial): Likewise.
11472 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11473 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11474 * monitor.c (monitor_xfer_memory): Likewise.
11475 (monitor_xfer_partial): Likewise.
11476 * procfs.c (procfs_xfer_partial): Likewise.
11477 * record-full.c (record_full_xfer_partial): Likewise.
11478 (record_full_core_xfer_partial): Likewise.
11479 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11480 instead of plongest.
11481 (gdbsim_xfer_partial): Likewise.
11482 * remote.c (remote_xfer_partial): Likewise.
11483 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11484 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11485 declaration.
11486 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11487 (rs6000_xfer_shared_libraries): Likewise.
11488 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11489 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11490 (sparc_xfer_partial): Likewise.
11491 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11492 (spu_xfer_partial): Likewise.
11493 * spu-multiarch.c (spu_xfer_partial): Likewise.
11494 * target.c (target_read_live_memory): Likewise.
11495 (memory_xfer_live_readonly_partial): Likewise.
11496 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11497 (target_xfer_partial, default_xfer_partial): Likewise.
11498 (current_xfer_partial): Likewise.
11499 * tracepoint.c (tfile_xfer_partial): Likewise.
11500 * windows-nat.c (windows_xfer_memory): Likewise. Call
11501 pulongest instead of plongest.
11502 (windows_xfer_partial): Likewise.
11503 (windows_xfer_shared_libraries): Likewise.
11504
05804640
YQ
115052014-01-14 Yao Qi <yao@codesourcery.com>
11506
11507 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11508 target_xfer_partial_ftype.
11509
b5b08fb4
SC
115102014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11511
11512 PR python/15464
11513 PR python/16113
11514 * valops.c (value_struct_elt_bitpos): New function
11515 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11516 object to 'None' if the field name is an empty string ("").
11517 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11518 attribute to look for a field when 'name' is 'None'.
11519 (get_field_type): New function
11520
13aaf454
DE
115212014-01-13 Doug Evans <dje@google.com>
11522
11523 PR symtab/16426
11524 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11525 (try_open_dwop_file): Ditto.
11526 * gdb_bfd.c: #include "vec.h".
11527 (bfdp): New typedef.
11528 (struct gdb_bfd_data): New member included_bfds.
11529 (gdb_bfd_unref): Unref all included bfds.
11530 (gdb_bfd_record_inclusion): New function.
11531 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11532
c2cec97c
TT
115332014-01-13 Tom Tromey <tromey@redhat.com>
11534
11535 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11536
78e5999d
TT
115372014-01-13 Tom Tromey <tromey@redhat.com>
11538
11539 * defs.h (use_windows): Remove.
11540 * gdb.c (main): Update.
11541 * main.c (captured_main, gdb_main): Update.
11542 * main.h (struct captured_main_args) <use_windows>: Remove.
11543 * top.c (use_windows): Remove.
11544
f2052bbe
TT
115452014-01-13 Tom Tromey <tromey@redhat.com>
11546
11547 * defs.h (deprecated_flush_hook): Remove.
11548
fde4f8ed
JK
115492014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11550
11551 PR threads/16216
11552 * linux-thread-db.c (try_thread_db_load): Add parameter
11553 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11554 (try_thread_db_load_from_pdir_1): Move it there from here.
11555 (try_thread_db_load_from_sdir): Update caller.
11556 (try_thread_db_load_from_dir): Move it there from here.
11557
bdf61915
PP
115582014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11559
11560 * regformats/regdat.sh: Always rewrite the register file.
11561
f71e1a8d
PA
115622014-01-13 Pedro Alves <palves@redhat.com>
11563
11564 * Makefile.in (CHECK_HEADERS): New variable.
11565 (check-headers:): New rule.
11566
42c85435
TT
115672014-01-13 Tom Tromey <tromey@redhat.com>
11568
11569 * cli/cli-setshow.c (do_set_command): Update.
11570 * defs.h (deprecated_set_hook): Remove.
11571 * top.c (deprecated_set_hook): Remove.
11572
f8de5129
PA
115732014-01-13 Pedro Alves <palves@redhat.com>
11574
11575 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11576 the tracepoint if the PC is a pseudo-register.
11577
fc270c35
TT
115782014-01-13 Tom Tromey <tromey@redhat.com>
11579
11580 * defs.h (XCALLOC): Remove.
11581 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11582 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11583 * dwarf2loc.c (allocate_piece_closure): Likewise.
11584 * elfread.c (elf_symfile_segments): Likewise.
11585 (elf_symfile_segments): Likewise.
11586 * gdbtypes.c (copy_type_recursive): Likewise.
11587 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11588 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11589 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11590 XCALLOC.
11591 * mt-tdep.c (mt_gdbarch_init): Likewise.
11592 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11593 XCALLOC.
11594 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11595 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11596 * registry.c (registry_alloc_data): Likewise.
11597 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11598 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11599 * serial.c (serial_fdopen_ops): Likewise.
11600 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11601 XCALLOC.
11602 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11603 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11604 not XCALLOC.
11605
70ba0933
TT
116062014-01-13 Tom Tromey <tromey@redhat.com>
11607
11608 * defs.h (XMALLOC): Remove.
11609 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11610 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11611 * cli-out.c (struct ui_out *): Likewise.
11612 * cli/cli-dump.c (add_dump_command): Likewise.
11613 (add_dump_command): Likewise.
11614 * complaints.c (get_complaints): Likewise.
11615 (find_complaint): Likewise.
11616 * dwarf2-frame.c (execute_cfa_program): Likewise.
11617 * dwarf2read.c (abbrev_table_read_table): Likewise.
11618 * gdbarch.sh: Likewise.
11619 * gdbarch.c: Rebuild.
11620 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11621 * interps.c (interp_new): Likewise.
11622 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11623 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11624 * mi/mi-console.c (mi_console_file_new): Likewise.
11625 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11626 * mi/mi-out.c (mi_out_new): Likewise.
11627 * mi/mi-parse.c (mi_parse): Likewise.
11628 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11629 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11630 * observer.c (xalloc_observer_list_node): Likewise.
11631 * regcache.c (regcache_xmalloc_1): Likewise.
11632 * reggroups.c (reggroup_new): Likewise.
11633 (_initialize_reggroup): Likewise.
11634 * registry.c (register_data_with_cleanup): Likewise.
11635 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11636 * ser-base.c (serial_ttystate): Likewise.
11637 * ser-mingw.c (make_pipe_state): Likewise.
11638 * ser-pipe.c (pipe_open): Likewise.
11639 * serial.c (serial_open): Likewise.
11640 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11641 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11642 (tui_alloc_win_info): Likewise.
11643 (tui_add_content_elements): Likewise.
11644 * tui/tui-file.c (tui_file_new): Likewise.
11645 * tui/tui-out.c (tui_out_new): Likewise.
11646 * ui-file.c (mem_file_new): Likewise.
11647 * ui-out.c (push_level): Likewise.
11648 (make_cleanup_ui_out_end): Likewise.
11649 (append_header_to_list): Likewise.
11650 (ui_out_new): Likewise.
11651 * user-regs.c (user_reg_add_builtin): Likewise.
11652
41bf6aca
TT
116532014-01-13 Tom Tromey <tromey@redhat.com>
11654
11655 * defs.h (XZALLOC): Remove.
11656 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11657 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11658 (get_ada_tasks_inferior_data): Likewise.
11659 * auto-load.c (get_auto_load_pspace_data): Likewise.
11660 * auxv.c (get_auxv_inferior_data): Likewise.
11661 * bfd-target.c (target_bfd_reopen): Likewise.
11662 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11663 (deprecated_insert_raw_breakpoint): Likewise.
11664 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11665 * corelow.c (core_open): Likewise.
11666 * darwin-nat.c (darwin_check_new_threads): Likewise.
11667 (darwin_attach_pid): Likewise.
11668 * dummy-frame.c (dummy_frame_push): Likewise.
11669 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11670 * dwarf2loc.c (allocate_piece_closure): Likewise.
11671 * elfread.c (elf_symfile_segments): Likewise.
11672 * eval.c (ptrmath_type_p): Likewise.
11673 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11674 * gdbtypes.c (alloc_type_arch): Likewise.
11675 (alloc_type_instance): Likewise.
11676 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11677 * inf-child.c (inf_child_can_use_agent): Likewise.
11678 * inflow.c (get_inflow_inferior_data): Likewise.
11679 * infrun.c (save_infcall_suspend_state): Likewise.
11680 * jit.c (jit_reader_load): Likewise.
11681 (get_jit_objfile_data): Likewise.
11682 (get_jit_program_space_data): Likewise.
11683 (jit_object_open_impl): Likewise.
11684 (jit_symtab_open_impl): Likewise.
11685 (jit_block_open_impl): Likewise.
11686 (jit_frame_sniffer): Likewise.
11687 * linux-fork.c (add_fork): Likewise.
11688 * maint.c (make_command_stats_cleanup): Likewise.
11689 * objfiles.c (get_objfile_pspace_data): Likewise.
11690 * opencl-lang.c (struct lval_closure): Likewise.
11691 * osdata.c (osdata_start_osdata): Likewise.
11692 * progspace.c (new_address_space): Likewise.
11693 (add_program_space): Likewise.
11694 * remote-sim.c (get_sim_inferior_data): Likewise.
11695 * sh-tdep.c (sh_gdbarch_init): Likewise.
11696 * skip.c (Ignore): Likewise.
11697 (skip_delete_command): Likewise.
11698 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11699 (library_list_start_library): Likewise.
11700 (solib_aix_current_sos): Likewise.
11701 * solib-darwin.c (get_darwin_info): Likewise.
11702 (darwin_current_sos): Likewise.
11703 * solib-dsbt.c (get_dsbt_info): Likewise.
11704 * solib-ia64-hpux.c (new_so_list): Likewise.
11705 (ia64_hpux_get_solib_linkage_addr): Likewise.
11706 * solib-spu.c (append_ocl_sos): Likewise.
11707 (spu_current_sos): Likewise.
11708 * solib-svr4.c (get_svr4_info): Likewise.
11709 (svr4_keep_data_in_core): Likewise.
11710 (library_list_start_library): Likewise.
11711 (svr4_default_sos): Likewise.
11712 (svr4_read_so_list): Likewise.
11713 * solib-target.c (library_list_start_library): Likewise.
11714 (solib_target_current_sos): Likewise.
11715 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11716 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11717 * symfile.c (default_symfile_segments): Likewise.
11718 * target-descriptions.c (tdesc_data_init): Likewise.
11719 (tdesc_create_reg): Likewise.
11720 (struct tdesc_type *): Likewise.
11721 (tdesc_create_vector): Likewise.
11722 (tdesc_set_struct_size): Likewise.
11723 (struct tdesc_type *): Likewise.
11724 (tdesc_free_feature): Likewise.
11725 (tdesc_create_feature): Likewise.
11726 * windows-nat.c (windows_add_thread): Likewise.
11727 (windows_make_so): Likewise.
11728 * xml-support.c (gdb_xml_body_text): Likewise.
11729 (gdb_xml_create_parser_and_cleanup): Likewise.
11730 (xml_process_xincludes): Likewise.
11731 * xml-syscall.c (allocate_syscalls_info): Likewise.
11732 (syscall_create_syscall_desc): Likewise.
11733
5acfdbae
SDJ
117342014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11735
11736 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11737 function, with code from i386_stap_parse_special_token.
11738 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11739 (i386_stap_parse_special_token): Move code to the two functions
11740 above; simplify it.
11741
0000e5cc
PA
117422014-01-09 Pedro Alves <palves@redhat.com>
11743 Hui Zhu <hui@codesourcery.com>
11744
11745 PR gdb/16101
11746 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11747 bp_err_string. Don't mark the location shlib_disabled if the
11748 error thrown wasn't a generic or memory error. Catch errors
11749 thrown while inserting breakpoints in overlayed code. Output
11750 error message of software breakpoints.
11751 * remote.c (remote_insert_breakpoint): If this breakpoint has
11752 target-side commands but this stub doesn't support Z0 packets,
11753 throw NOT_SUPPORTED_ERROR error.
11754 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11755 * target.h (target_insert_breakpoint): Extend comment.
11756 (target_insert_hw_breakpoint): Add comment.
11757
b7ea362b
PA
117582014-01-08 Pedro Alves <palves@redhat.com>
11759
11760 * remote.c (remote_add_thread): Add threads silently if starting
11761 up.
11762 (remote_notice_new_inferior): If in all-stop, and starting up,
11763 don't call notice_new_inferior.
11764 (get_current_thread): New function, factored out from ...
11765 (add_current_inferior_and_thread): ... this. Adjust.
11766 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11767 found any thread, then select the remote's current thread as GDB's
11768 current thread too.
11769
b7bba001
JB
117702014-01-08 Joel Brobecker <brobecker@adacore.com>
11771
11772 * NEWS: Create a new section for the next release branch.
11773 Rename the section of the current branch, now that it has
11774 been cut.
11775
16dfbded
JB
117762014-01-08 Joel Brobecker <brobecker@adacore.com>
11777
11778 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11779 * version.in: Bump version to 7.7.50.DATE-cvs.
11780
22c90ac1
YQ
117812014-01-08 Yao Qi <yao@codesourcery.com>
11782
11783 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11784 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11785 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11786
d64ad97c
YQ
117872014-01-08 Yao Qi <yao@codesourcery.com>
11788
11789 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11790 return value of bfd_get_filename to symbol_file_add_from_bfd.
11791
f93ba80c
PM
117922014-01-08 Pierre Muller <muller@sourceware.org>
11793
11794 Fix PR16201.
11795 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11796 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11797 to prim_record_mininal_symbol_and_info.
11798 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11799 in call to prim_record_minimal_symbol_and_info.
11800 (read_pe_exported_syms): Set index field of section_data.
11801
a4d9ba85
AP
118022014-01-07 Andrew Pinski <apinski@cavium.com>
11803
11804 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11805 * features/aarch64.c: Regenerate.
11806
1b67eb02
AS
118072014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11808
11809 * target.c (return_null): Define.
11810 (update_current_target): Use it instead of return_zero for
11811 functions that return a pointer.
11812
5e3f4fab
EBM
118132014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11814
11815 * source.c (add_path): Fix check for duplicated paths in the previously
11816 included paths.
11817
e2616788
HK
118182014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11819
11820 * ada-lang.c: Remove duplicated include statements.
11821 * alphabsd-nat.c: Ditto.
11822 * amd64-darwin-tdep.c: Ditto.
11823 * amd64fbsd-nat.c: Ditto.
11824 * auto-load.c: Ditto.
11825 * ax-gdb.c: Ditto.
11826 * breakpoint.c: Ditto.
11827 * dbxread.c: Ditto.
11828 * fork-child.c: Ditto.
11829 * gdb_usleep.c: Ditto.
11830 * i386-darwin-tdep.c: Ditto.
11831 * i386fbsd-nat.c: Ditto.
11832 * infcmd.c: Ditto.
11833 * inferior.c: Ditto.
11834 * jv-lang.c: Ditto.
11835 * linux-nat.c: Ditto.
11836 * linux-tdep.c: Ditto.
11837 * m68kbsd-nat.c: Ditto.
11838 * m68klinux-nat.c: Ditto.
11839 * microblaze-tdep.c: Ditto.
11840 * mips-linux-tdep.c: Ditto.
11841 * mn10300-tdep.c: Ditto.
11842 * nto-tdep.c: Ditto.
11843 * opencl-lang.c: Ditto.
11844 * osdata.c: Ditto.
11845 * printcmd.c: Ditto.
11846 * regcache.c: Ditto.
11847 * remote-m32r-sdi.c: Ditto.
11848 * remote.c: Ditto.
11849 * symfile.c: Ditto.
11850 * symtab.c: Ditto.
11851 * tilegx-linux-nat.c: Ditto.
11852 * tilegx-tdep.c: Ditto.
11853 * tracepoint.c: Ditto.
11854 * valops.c: Ditto.
11855 * vaxbsd-nat.c: Ditto.
11856 * windows-nat.c: Ditto.
11857 * xtensa-tdep.c: Ditto.
11858
bd1f7788
YQ
118592014-01-07 Yao Qi <yao@codesourcery.com>
11860
11861 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11862
79301218
JB
118632014-01-07 Yao Qi <yao@codesourcery.com>
11864 Joel Brobecker <brobecker@adacore.com>
11865
11866 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11867 (pdc_write_regs): Likewise.
11868 (fetch_regs_kernel_thread): Likewise.
11869 (store_regs_kernel_thread): Likewise.
11870
118712014-01-07 Joel Brobecker <brobecker@adacore.com>
11872
11873 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11874 tagged type objects to their actual type.
11875
8e355c5d
JB
118762014-01-07 Joel Brobecker <brobecker@adacore.com>
11877
11878 * ada-valprint.c (print_field_values): Add "language" parameter.
11879 Update calls to print_field_values and print_variant_part.
11880 Pass new parameter "language" in call to val_print instead
11881 of "current_language". Replace call to ada_val_print by call
11882 to val_print.
11883 (print_variant_part): Add "language" parameter.
11884 (ada_val_print_struct_union): Update call to print_field_values.
11885
4fbf5aa5
JB
118862014-01-07 Joel Brobecker <brobecker@adacore.com>
11887
11888 * ada-valprint.c (ui_memcpy): Delete.
11889 (ada_print_floating): Update documentation. Add empty line
11890 between between function documentation and implementation.
11891 Delete variable "buffer". Use ui_file_xstrdup in place of
11892 ui_file_put. Minor adjustments following this change.
11893
71855601
JB
118942014-01-07 Joel Brobecker <brobecker@adacore.com>
11895
11896 * ada-valprint.c (ada_val_print_string): New function,
11897 extracted from ada_val_print_array.
11898 (ada_val_print_array): Replace extracted code by call
11899 to ada_val_print_string followed by a return. Move
11900 "else" branch to the function's top block.
11901
4eb27a30
JB
119022014-01-07 Joel Brobecker <brobecker@adacore.com>
11903
11904 * ada-valprint.c (ada_val_print_array): Move implementation
11905 down. Rename parameter "offset" and "val" into "offset_aligned"
11906 and "original_value" respectively. Add parameter "offset".
11907
34b27950
JB
119082014-01-07 Joel Brobecker <brobecker@adacore.com>
11909
11910 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11911 re-organizing the code. Change the "???" message printed
11912 when target type is a TYPE_CODE_UNDEF into
11913 "<ref to undefined type>".
11914
079e4591
JB
119152014-01-07 Joel Brobecker <brobecker@adacore.com>
11916
11917 * ada-valprint.c (print_record): Delete, implementation inlined...
11918 (ada_val_print_struct_union): ... here. Remove call to
11919 ada_check_typedef in inlined implementation.
11920
8004dfd1
JB
119212014-01-07 Joel Brobecker <brobecker@adacore.com>
11922
11923 * ada-valprint.c (ada_val_print_gnat_array): New function,
11924 extracted from ada_val_print_1;
11925 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11926 (ada_val_print_flt, ada_val_print_struct_union)
11927 (ada_val_print_ref): Likewise.
11928 (ada_val_print_1): Delete variables i and elttype.
11929 Replace extracted-out code by call to corresponding
11930 new functions.
11931
760a2db0
JB
119322014-01-07 Joel Brobecker <brobecker@adacore.com>
11933
11934 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11935
3a92c861
JB
119362014-01-07 Joel Brobecker <brobecker@adacore.com>
11937
11938 * ada-valprint.c (ada_val_print_1): Replace calls to
11939 ada_val_print_1 by calls to val_print.
11940
cd1630f9
JB
119412014-01-07 Joel Brobecker <brobecker@adacore.com>
11942
11943 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11944 Update calls to self accordingly. Replace calls to c_val_print
11945 by calls to val_print.
11946
bdf779a0
JB
119472014-01-07 Joel Brobecker <brobecker@adacore.com>
11948
11949 * ada-valprint.c (print_record): Delete declaration.
11950 (adjust_type_signedness, ada_val_print_1): Likewise.
11951 (ada_val_print): Move function implementation down.
11952 (print_variant_part, print_field_values, print_record):
11953 Move function implementation up.
11954
c0d48811
JB
119552014-01-07 Joel Brobecker <brobecker@adacore.com>
11956
11957 * python/py-type.c (typy_get_name): New function.
11958 (type_object_getset): Add entry for attribute "name".
11959 * NEWS: Add entry mentioning this new attribute.
11960
c26e9cbb
YQ
119612014-01-07 Yao Qi <yao@codesourcery.com>
11962
11963 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11964 statement.
11965
0cc6f43d
YQ
119662014-01-07 Yao Qi <yao@codesourcery.com>
11967
11968 * gnu-nat.c (info_port_rights): Add qualifier const to
11969 argument args.
11970
eec03155
YQ
119712014-01-07 Yao Qi <yao@codesourcery.com>
11972
11973 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11974
f04a82ef
YQ
119752014-01-07 Yao Qi <yao@codesourcery.com>
11976
11977 * gnu-nat.c (make_inf) Update declaration.
11978 (make_inf): Make it static.
11979 (inf_set_traced): Likewise.
11980 (inf_port_to_thread, inf_task_died_status): Likewise.
11981
d57dda0a
YQ
119822014-01-07 Yao Qi <yao@codesourcery.com>
11983
11984 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11985
3aa8c969
YQ
119862014-01-07 Yao Qi <yao@codesourcery.com>
11987
11988 * gnu-nat.c (_initialize_gnu_nat): Declare.
11989
94123b4f
YQ
119902014-01-07 Yao Qi <yao@codesourcery.com>
11991
11992 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11993 'enum bfd_endian'.
11994 (struct gdbarch_info) <byte_order>: Change type to
11995 'enum bfd_endian'.
11996 <byte_order_for_code>: Likewise.
11997 * gdbarch.c, gdbarch.h: Regenerated.
11998
dc81d70a
TT
119992014-01-06 Sasha Smundak <asmundak@google.com>
12000
12001 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12002
cc2f3c35
TT
120032014-01-06 Tom Tromey <tromey@redhat.com>
12004
12005 * doublest.c (convert_doublest_to_floatformat): Use const, not
12006 CONST.
12007 * somread.c (som_symtab_read): Likewise.
12008
adcf2eed
HZ
120092014-01-07 Hui Zhu <hui@codesourcery.com>
12010
12011 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12012 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12013 (gdb_bfd_fopen): Ditto.
12014 (gdb_bfd_openr): Ditto.
12015 (gdb_bfd_openw): Ditto.
12016 (gdb_bfd_openr_iovec): Ditto.
12017 (gdb_bfd_fdopenr): Ditto.
12018 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12019 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12020 with xstrdup.
12021 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12022 with xstrdup.
12023 * symfile-mem.c (symbol_file_add_from_memory): Removed
12024 gdb_bfd_stash_filename.
12025
50722198
DE
120262014-01-03 Doug Evans <dje@google.com>
12027
12028 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12029 output.
12030
2fa4b862
JB
120312014-01-01 Joel Brobecker <brobecker@adacore.com>
12032
12033 Update year range in copyright notice of all files.
12034
28498c42
JB
120352014-01-01 Joel Brobecker <brobecker@adacore.com>
12036
12037 * top.c (print_gdb_version): Set copyright year to 2014.
12038
7b6e1046
JB
120392014-01-01 Joel Brobecker <brobecker@adacore.com>
12040
12041 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12042
df96af55 12043For older changes see ChangeLog-2013.
c906108c
SS
12044\f
12045Local Variables:
12046mode: change-log
12047left-margin: 8
12048fill-column: 74
12049version-control: never
57da7796 12050coding: utf-8
c906108c 12051End:
This page took 2.788336 seconds and 4 git commands to generate.