Remove stale comment
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
89a1c21a
SM
12014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2
3 * target.c (target_struct_size): Remove.
4 (target_struct_allocsize): Remove.
5 (DEFAULT_ALLOCSIZE): Remove.
6 (target_ops_p): New typedef.
7 (DEF_VEC_P (target_ops_p)): New vector type.
8 (target_structs): Change type to VEC (target_ops_p).
9 (add_target_with_completer): Replace "push" code by VEC_safe_push.
10 (find_default_run_target): Rewrite for loop following changes to
11 target_structs.
12
cb417230
JB
132014-08-19 Joel Brobecker <brobecker@adacore.com>
14
15 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
16 Adjust code accordingly. Adjust function description comment.
17
817e0957
YQ
182014-08-19 Yao Qi <yao@codesourcery.com>
19
20 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
21 types.
22
2974be62
AM
232014-08-19 Alan Modra <amodra@gmail.com>
24
25 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
26 * config.in: Regenerate.
27 * configure: Regenerate.
28
34abf635
GB
292014-08-19 Tom Tromey <tromey@redhat.com>
30 Gary Benson <gbenson@redhat.com>
31
32 * common/common-debug.h: New file.
33 * common/common-debug.c: Likewise.
34 * debug.c: Likewise.
35 * Makefile.in (SFILES): Add common/common-debug.c.
36 (HFILES_NO_SRCDIR): Add common/common-debug.h.
37 (COMMON_OBS): Add common-debug.o and debug.o.
38 (common-debug.o): New rule.
39 * common/common-defs.h: Include common-debug.h.
40 * common/agent.c (debug_agent_printf): New function.
41 (DEBUG_AGENT): Redefine.
42 * nat/i386-dregs.c (debug_printf): Undefine.
43
f6e94d78
GB
442014-08-19 Gary Benson <gbenson@redhat.com>
45
46 * common/common-defs.h: Include print-utils.h.
47 * utils.h: Do not include print-utils.h.
48
9239eeab
GB
492014-08-19 Tom Tromey <tromey@redhat.com>
50 Gary Benson <gbenson@redhat.com>
51
52 * common/common-types.h: New file.
53 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
54 * common/common-defs.h: Include common-types.h.
55 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
56 (ULONGEST): Remove.
57
ef87c8bb
GB
582014-08-19 Tom Tromey <tromey@redhat.com>
59 Gary Benson <gbenson@redhat.com>
60
61 * common/errors.h: New file.
62 * common/errors.c: Likewise.
63 * Makefile.in (SFILES): Add common/errors.c.
64 (HFILES_NO_SRCDIR): Add common/errors.h.
65 (COMMON_OBS): Add errors.o.
66 (errors.o): New rule.
67 * common/common-defs.h: Include errors.h.
68 * utils.h (perror_with_name, error, verror, warning, vwarning):
69 Don't declare.
70 * common/common-utils.h: (malloc_failure, internal_error):
71 Likewise.
72
196a707b
GB
732014-08-19 Gary Benson <gbenson@redhat.com>
74
75 * utils.c (internal_vproblem): Always print the message.
76
ded4fc8f
DE
772014-08-18 Doug Evans <dje@google.com>
78
79 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
80
950c97d8
JB
812014-08-18 Joel Brobecker <brobecker@adacore.com>
82
83 * ada-typeprint.c (type_is_full_subrange_of_target_type):
84 Return 0 if TYPE is dynamic.
85 (print_range): Add handling of dynamic ranges.
86
3cdcd0ce
JB
872014-08-18 Keven Boell <keven.boell@intel.com>
88 Joel Brobecker <brobecker@adacore.com>
89
90 * gdbtypes.h (struct main_type): Add field "data_location".
91 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
92 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
93 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
94 a dynamic data location.
95 (resolve_dynamic_type): Add DW_AT_data_location handling.
96 (copy_recursive, copy_type): Copy the data_location information
97 when present.
98 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
99 * value.c (value_from_contents_and_address): Add
100 DW_AT_data_location handling.
101
08412b07
JB
1022014-08-18 Keven Boell <keven.boell@intel.com>
103 Joel Brobecker <brobecker@adacore.com>
104
105 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
106 field "get_object_address".
107 * dwarf2expr.c (execute_stack_op): Add handling for
108 DW_OP_push_object_address.
109 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
110 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
111 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
112 (dwarf_expr_get_obj_addr): New function.
113 (dwarf_expr_ctx_funcs): Add get_object_address field.
114 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
115 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
116 (dwarf2_evaluate_property): Add parameter "address". Use it.
117 (needs_get_obj_addr): New function.
118 (needs_frame_ctx_funcs): Add get_object_address field.
119 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
120 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
121 (resolve_dynamic_array): Likewise.
122
84754697
JB
1232014-08-18 Joel Brobecker <brobecker@adacore.com>
124
125 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
126 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
127 fixed value for records and unions for which some GNAT encodings
128 are present.
129
da5c522f
JB
1302014-08-18 Joel Brobecker <brobecker@adacore.com>
131
132 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
133 rewrite to avoid "else if" and "else" constructs. Should be
134 a no-op in practice.
135
0d72a7c3
JB
1362014-08-18 Joel Brobecker <brobecker@adacore.com>
137
138 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
139 of lexical block.
140
e66d4446
SC
1412014-08-15 Siva Chandra Reddy <sivachandra@google.com>
142
143 PR c++/17132
144 * eval.c: Update all calls to find_overload_match.
145 * valarith.c: Likewise.
146 (value_user_defined_cpp_op, value_user_defined_op): New
147 argument NOSIDE. Update all callers.
148 * valops.c (find_overload_match): New argument NOSIDE.
149 * value.h (find_overload_match): Update signature.
150
940df408
SC
1512014-08-15 Siva Chandra Reddy <sivachandra@google.com>
152
153 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
154 'items' methods instead of 'iteritems' method on dictionaries.
155
699ca60a
DE
1562014-08-15 Doug Evans <dje@google.com>
157
158 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
159 closer to use.
160
37780ee5
DE
1612014-08-15 Doug Evans <dje@google.com>
162
163 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
164
0ad93d4f
DE
1652014-08-15 Doug Evans <dje@google.com>
166
167 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
168
20d8c372
DE
1692014-08-15 Doug Evans <dje@google.com>
170
171 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
172 unused.
173
cb039ba4
EZ
1742014-08-15 Eli Zaretskii <eliz@gnu.org>
175
176 * dcache.h: Include target.h, to avoid compile time warnings.
177
eb7a547a
JB
1782014-08-15 Joel Brobecker <brobecker@adacore.com>
179
180 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
181 frame_info" partial declaration.
182 * gdbarch.h: Regenerate.
183
783cecc8
YQ
1842014-08-15 Yao Qi <yao@codesourcery.com>
185
186 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
187 Add parameter 'decode_for_pst_p'. Callers update.
188
65c749e7
YQ
1892014-08-13 Yao Qi <yao@codesourcery.com>
190
191 PR build/17104
192 * configure.ac: Use local variable 'pos'.
193 * configure: Regenerated.
194
d769e349
DE
1952014-08-11 Doug Evans <dje@google.com>
196
197 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
198 message, it is redundant with "Reading symbols from ..." message.
199
24f1235e
DE
2002014-08-10 Doug Evans <xdje42@gmail.com>
201
202 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
203
dcd2e6ef
YQ
2042014-08-09 Yao Qi <yao@codesourcery.com>
205
206 PR remote/9053
207 * remote.c (remote_xfer_partial): Remove dead code.
208
070bdf0b
AA
2092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
210
211 * ia64-linux-tdep.c: Include "regset.h".
212 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
213 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
214 (ia64_linux_supply_fpregset): New function.
215 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
216 (ia64_linux_regset_from_core_section): New function.
217 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
218 method.
219
08f9f542
AA
2202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
221
222 * m68klinux-tdep.c: Include "regset.h".
223 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
224 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
225 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
226 (m68k_linux_regset_from_core_section): New function.
227 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
228 method.
229
8f1cee41
AA
2302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
231
232 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
233 function. Move logic to...
234 (tilegx_linux_regmap): ... this new register map.
235 (tilegx_linux_regset): Refer to register map, replace supply
236 method by regcache_supply_regset, and add collect method.
237 * tilegx-tdep.h (enum tilegx_regnum): New enum value
238 TILEGX_FIRST_EASY_REGNUM.
239
c5741217
AA
2402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
241
242 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
243 that calls regcache_supply_regset and handles the EPC register
244 separately. Move main logic to...
245 (score7_linux_gregmap): ... this new register map.
246 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
247 (score7_linux_gregset): Refer to register map. Add collect method.
248 (score7_linux_regset_from_core_section): Replace
249 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
250 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
251 (struct regset): Delete unused forward declaraction.
252 (struct pt_regs): Delete structure definition.
253 (elf_gregset_t): Delete typedef.
254
81580573
AA
2552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
256
257 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
258 (nios2_core_regset): Add collect method.
259
ba199d7d
AA
2602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
261
262 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
263 platform-independent and don't write to read-only input buffer.
264 (m32r_linux_collect_gregset): New function.
265 (m32r_linux_gregset): Add collect method.
266
0006a9da
AA
2672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
268
269 * hppa-linux-tdep.c (greg_map): Rename to...
270 (hppa_linux_gregmap): ... this. Also convert to
271 regcache_map_entry format.
272 (hppa_linux_supply_regset): Delete function.
273 (hppa_linux_supply_fpregset): Delete function. Move logic to...
274 (hppa_linux_fpregmap): ... this new register map.
275 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
276 register map, replace supply method by regcache_supply_regset, and
277 add collect method regcache_collect_regset.
278
901e1b23
AA
2792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
280
281 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
282 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
283 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
284 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
285 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
286 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
287 (frv_linux_supply_gregset): Replace main logic by call to
288 regcache_supply_regset, but keep clearing gr32-gr63.
289 (frv_linux_supply_fpregset): Delete function.
290 (frv_linux_gregset): Refer to appropriate register map and add
291 regcache_collect_regset as the collect method.
292 (frv_linux_fpregset): Likewise. Also exchange the supply method
293 by regcache_supply_regset.
294
1d6e7555
AA
2952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
296
297 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
298 by call to alpha_supply_int_regs.
299 (alpha_linux_collect_gregset): New function.
300 (alpha_linux_supply_fpregset): Replace logic by call to
301 alpha_supply_fp_regs.
302 (alpha_linux_collect_fpregset): New function.
303 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
304
d4d793bf
AA
3052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
306
307 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
308 by call to regcache_collect_regset.
309 (supply_gregset, supply_fpregset): Call regcache_supply_regset
310 instead of aarch64_linux_supply_gregset/_fpregset.
311 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
312 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
313 header file instead.
314 (aarch64_linux_supply_gregset, supply_gregset_from_core)
315 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
316 functions. Move logic to ...
317 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
318 register maps.
319 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
320 refer to new register maps, replace *_regset_from_core by
321 regcache_supply_regset, and also use regcache_collect_regset.
322 * aarch64-linux-tdep.h: Include "regset.h".
323 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
324 Delete prototypes.
325 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
326 macros, moved from C source file.
327 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
328 variable declarations.
329
99b7da5d
AA
3302014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
331
332 * s390-linux-nat.c: Include "regset.h".
333 (regmap_gregset): Delete macro.
334 (s390_64_regmap_gregset): New register map for
335 regcache_supply/_collect_regset.
336 (s390_64_gregset): New regset.
337 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
338 (regmap_fpregset): Delete macro.
339 (s390_native_supply, s390_native_collect): Delete functions.
340 (supply_gregset, fill_gregset): Replace s390-specific regmap
341 handling by a call to regcache_supply/_collect_regset.
342 (supply_fpregset, fill_fpregset): Call regcache_supply/
343 _collect_regset instead of s390_native_supply/_collect.
344 (fetch_regset, store_regset): Likewise. Also change the last
345 parameter to a regset instead of a regmap.
346 (s390_linux_fetch_inferior_registers)
347 (390_linux_store_inferior_registers): Adjust last parameter in
348 calls to fetch_regset and store_regset.
349 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
350 (s390_gregmap): ... this. Also make static const and convert to
351 regcache_map_entry format.
352 (s390x_regmap_gregset): Delete.
353 (s390_regmap_fpregset): Rename to...
354 (s390_fpregmap): ... this. Make static const and convert to
355 regcache_map_entry format.
356 (s390_regmap_upper, s390_regmap_last_break)
357 (s390x_regmap_last_break, s390_regmap_system_call)
358 (s390_regmap_tdb): Likewise.
359 (s390_supply_regset, s390_collect_regset): Remove functions.
360 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
361 s390_supply_regset.
362 (s390_gregset, s390_fpregset, s390_upper_regset)
363 (s390_last_break_regset, s390x_last_break_regset)
364 (s390_system_call_regset, s390_tdb_regset): Make global and
365 replace s390_supply/_collect_regset by regcache_supply/
366 _collect_regset.
367 (s390x_gregset): Delete.
368 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
369 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
370 (s390_regmap_fpregset, s390_regmap_last_break)
371 (s390x_regmap_last_break, s390_regmap_system_call)
372 (s390_regmap_tdb): Delete global variable declarations.
373 (s390_gregset, s390_fpregset, s390_last_break_regset)
374 (s390x_last_break_regset, s390_system_call_regset)
375 (s390_tdb_regset): New global variable declarations.
376
0b309272
AA
3772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
378
379 * regcache.c: Include "regset.h".
380 (regcache_transfer_regset): New local function.
381 (regcache_supply_regset, regcache_collect_regset): New functions.
382 * regcache.h (struct regcache_map_entry): New structure.
383 (REGCACHE_MAP_SKIP): New enum value.
384 (regcache_supply_regset, regcache_collect_regset): New prototypes.
385
7fefa8d7
AA
3862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
387
388 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
389 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
390 (ppc_linux_collect_gregset ): Likewise.
391 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
392 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
393 (ppc_collect_vrregset): Likewise.
394 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
395 Likewise.
396
96c4f946
YQ
3972014-08-07 Yao Qi <yao@codesourcery.com>
398
399 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
400 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
401 * remote.c (remote_read_bytes): Likewise.
402
fffbe6a8
YQ
4032014-08-07 Yao Qi <yao@codesourcery.com>
404
405 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
406
5ee8a82c
YQ
4072014-08-07 Yao Qi <yao@codesourcery.com>
408
409 PR remote/17230
410 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
411 TARGET_XFER_OK instead of 0.
412
bb974a24
GB
4132014-08-07 Gary Benson <gbenson@redhat.com>
414
415 * common/common-defs.h: Include errno.h.
416 * defs.h: Do not include errno.h.
417 * ada-typeprint.c: Likewise.
418 * c-typeprint.c: Likewise.
419 * core-regset.c: Likewise.
420 * corefile.c: Likewise.
421 * corelow.c: Likewise.
422 * event-loop.c: Likewise.
423 * f-typeprint.c: Likewise.
424 * gnu-nat.c: Likewise.
425 * go32-nat.c: Likewise.
426 * i386gnu-nat.c: Likewise.
427 * m2-typeprint.c: Likewise.
428 * nat/linux-btrace.c: Likewise.
429 * p-typeprint.c: Likewise.
430 * procfs.c: Likewise.
431 * remote-sim.c: Likewise.
432 * rs6000-nat.c: Likewise.
433 * target.c: Likewise.
434 * typeprint.c: Likewise.
435 * ui-file.c: Likewise.
436 * valops.c: Likewise.
437 * valprint.c: Likewise.
438
6d3d12eb
GB
4392014-08-07 Gary Benson <gbenson@redhat.com>
440
441 * common/common-defs.h: Include string.h.
442 * aarch64-tdep.c: Do not include string.h.
443 * ada-exp.y: Likewise.
444 * ada-lang.c: Likewise.
445 * ada-lex.l: Likewise.
446 * ada-typeprint.c: Likewise.
447 * ada-valprint.c: Likewise.
448 * aix-thread.c: Likewise.
449 * alpha-linux-tdep.c: Likewise.
450 * alpha-mdebug-tdep.c: Likewise.
451 * alpha-nat.c: Likewise.
452 * alpha-osf1-tdep.c: Likewise.
453 * alpha-tdep.c: Likewise.
454 * alphanbsd-tdep.c: Likewise.
455 * amd64-dicos-tdep.c: Likewise.
456 * amd64-linux-tdep.c: Likewise.
457 * amd64-nat.c: Likewise.
458 * amd64-sol2-tdep.c: Likewise.
459 * amd64fbsd-tdep.c: Likewise.
460 * amd64obsd-tdep.c: Likewise.
461 * arch-utils.c: Likewise.
462 * arm-linux-nat.c: Likewise.
463 * arm-linux-tdep.c: Likewise.
464 * arm-tdep.c: Likewise.
465 * arm-wince-tdep.c: Likewise.
466 * armbsd-tdep.c: Likewise.
467 * armnbsd-nat.c: Likewise.
468 * armnbsd-tdep.c: Likewise.
469 * armobsd-tdep.c: Likewise.
470 * avr-tdep.c: Likewise.
471 * ax-gdb.c: Likewise.
472 * ax-general.c: Likewise.
473 * bcache.c: Likewise.
474 * bfin-tdep.c: Likewise.
475 * breakpoint.c: Likewise.
476 * build-id.c: Likewise.
477 * buildsym.c: Likewise.
478 * c-exp.y: Likewise.
479 * c-lang.c: Likewise.
480 * c-typeprint.c: Likewise.
481 * c-valprint.c: Likewise.
482 * charset.c: Likewise.
483 * cli-out.c: Likewise.
484 * cli/cli-cmds.c: Likewise.
485 * cli/cli-decode.c: Likewise.
486 * cli/cli-dump.c: Likewise.
487 * cli/cli-interp.c: Likewise.
488 * cli/cli-logging.c: Likewise.
489 * cli/cli-script.c: Likewise.
490 * cli/cli-setshow.c: Likewise.
491 * cli/cli-utils.c: Likewise.
492 * coffread.c: Likewise.
493 * common/agent.c: Likewise.
494 * common/buffer.c: Likewise.
495 * common/buffer.h: Likewise.
496 * common/common-utils.c: Likewise.
497 * common/filestuff.c: Likewise.
498 * common/filestuff.c: Likewise.
499 * common/format.c: Likewise.
500 * common/print-utils.c: Likewise.
501 * common/rsp-low.c: Likewise.
502 * common/signals.c: Likewise.
503 * common/vec.h: Likewise.
504 * common/xml-utils.c: Likewise.
505 * core-regset.c: Likewise.
506 * corefile.c: Likewise.
507 * corelow.c: Likewise.
508 * cp-abi.c: Likewise.
509 * cp-name-parser.y: Likewise.
510 * cp-support.c: Likewise.
511 * cp-valprint.c: Likewise.
512 * cris-tdep.c: Likewise.
513 * d-exp.y: Likewise.
514 * darwin-nat.c: Likewise.
515 * dbxread.c: Likewise.
516 * dcache.c: Likewise.
517 * demangle.c: Likewise.
518 * dicos-tdep.c: Likewise.
519 * disasm.c: Likewise.
520 * doublest.c: Likewise.
521 * dsrec.c: Likewise.
522 * dummy-frame.c: Likewise.
523 * dwarf2-frame.c: Likewise.
524 * dwarf2loc.c: Likewise.
525 * dwarf2read.c: Likewise.
526 * elfread.c: Likewise.
527 * environ.c: Likewise.
528 * eval.c: Likewise.
529 * event-loop.c: Likewise.
530 * exceptions.c: Likewise.
531 * exec.c: Likewise.
532 * expprint.c: Likewise.
533 * f-exp.y: Likewise.
534 * f-lang.c: Likewise.
535 * f-typeprint.c: Likewise.
536 * f-valprint.c: Likewise.
537 * fbsd-nat.c: Likewise.
538 * findcmd.c: Likewise.
539 * findvar.c: Likewise.
540 * fork-child.c: Likewise.
541 * frame.c: Likewise.
542 * frv-linux-tdep.c: Likewise.
543 * frv-tdep.c: Likewise.
544 * gdb.c: Likewise.
545 * gdb_bfd.c: Likewise.
546 * gdbarch.c: Likewise.
547 * gdbarch.sh: Likewise.
548 * gdbtypes.c: Likewise.
549 * gnu-nat.c: Likewise.
550 * gnu-v2-abi.c: Likewise.
551 * gnu-v3-abi.c: Likewise.
552 * go-exp.y: Likewise.
553 * go-lang.c: Likewise.
554 * go32-nat.c: Likewise.
555 * guile/guile.c: Likewise.
556 * guile/scm-auto-load.c: Likewise.
557 * hppa-hpux-tdep.c: Likewise.
558 * hppa-linux-nat.c: Likewise.
559 * hppanbsd-tdep.c: Likewise.
560 * hppaobsd-tdep.c: Likewise.
561 * i386-cygwin-tdep.c: Likewise.
562 * i386-dicos-tdep.c: Likewise.
563 * i386-linux-tdep.c: Likewise.
564 * i386-nto-tdep.c: Likewise.
565 * i386-sol2-tdep.c: Likewise.
566 * i386-tdep.c: Likewise.
567 * i386bsd-tdep.c: Likewise.
568 * i386gnu-nat.c: Likewise.
569 * i386nbsd-tdep.c: Likewise.
570 * i386obsd-tdep.c: Likewise.
571 * i387-tdep.c: Likewise.
572 * ia64-libunwind-tdep.c: Likewise.
573 * ia64-linux-nat.c: Likewise.
574 * inf-child.c: Likewise.
575 * inf-ptrace.c: Likewise.
576 * inf-ttrace.c: Likewise.
577 * infcall.c: Likewise.
578 * infcmd.c: Likewise.
579 * inflow.c: Likewise.
580 * infrun.c: Likewise.
581 * interps.c: Likewise.
582 * iq2000-tdep.c: Likewise.
583 * irix5-nat.c: Likewise.
584 * jv-exp.y: Likewise.
585 * jv-lang.c: Likewise.
586 * jv-typeprint.c: Likewise.
587 * jv-valprint.c: Likewise.
588 * language.c: Likewise.
589 * linux-fork.c: Likewise.
590 * linux-nat.c: Likewise.
591 * lm32-tdep.c: Likewise.
592 * m2-exp.y: Likewise.
593 * m2-typeprint.c: Likewise.
594 * m32c-tdep.c: Likewise.
595 * m32r-linux-nat.c: Likewise.
596 * m32r-linux-tdep.c: Likewise.
597 * m32r-rom.c: Likewise.
598 * m32r-tdep.c: Likewise.
599 * m68hc11-tdep.c: Likewise.
600 * m68k-tdep.c: Likewise.
601 * m68kbsd-tdep.c: Likewise.
602 * m68klinux-nat.c: Likewise.
603 * m68klinux-tdep.c: Likewise.
604 * m88k-tdep.c: Likewise.
605 * machoread.c: Likewise.
606 * macrocmd.c: Likewise.
607 * main.c: Likewise.
608 * mdebugread.c: Likewise.
609 * mem-break.c: Likewise.
610 * memattr.c: Likewise.
611 * memory-map.c: Likewise.
612 * mep-tdep.c: Likewise.
613 * mi/mi-cmd-break.c: Likewise.
614 * mi/mi-cmd-disas.c: Likewise.
615 * mi/mi-cmd-env.c: Likewise.
616 * mi/mi-cmd-stack.c: Likewise.
617 * mi/mi-cmd-var.c: Likewise.
618 * mi/mi-cmds.c: Likewise.
619 * mi/mi-console.c: Likewise.
620 * mi/mi-getopt.c: Likewise.
621 * mi/mi-interp.c: Likewise.
622 * mi/mi-main.c: Likewise.
623 * mi/mi-parse.c: Likewise.
624 * microblaze-rom.c: Likewise.
625 * microblaze-tdep.c: Likewise.
626 * mingw-hdep.c: Likewise.
627 * minidebug.c: Likewise.
628 * minsyms.c: Likewise.
629 * mips-irix-tdep.c: Likewise.
630 * mips-linux-tdep.c: Likewise.
631 * mips-tdep.c: Likewise.
632 * mips64obsd-tdep.c: Likewise.
633 * mipsnbsd-tdep.c: Likewise.
634 * mipsread.c: Likewise.
635 * mn10300-linux-tdep.c: Likewise.
636 * mn10300-tdep.c: Likewise.
637 * monitor.c: Likewise.
638 * moxie-tdep.c: Likewise.
639 * mt-tdep.c: Likewise.
640 * nat/linux-btrace.c: Likewise.
641 * nat/linux-osdata.c: Likewise.
642 * nat/linux-procfs.c: Likewise.
643 * nat/linux-ptrace.c: Likewise.
644 * nat/linux-waitpid.c: Likewise.
645 * nbsd-tdep.c: Likewise.
646 * nios2-linux-tdep.c: Likewise.
647 * nto-procfs.c: Likewise.
648 * nto-tdep.c: Likewise.
649 * objc-lang.c: Likewise.
650 * objfiles.c: Likewise.
651 * opencl-lang.c: Likewise.
652 * osabi.c: Likewise.
653 * osdata.c: Likewise.
654 * p-exp.y: Likewise.
655 * p-lang.c: Likewise.
656 * p-typeprint.c: Likewise.
657 * parse.c: Likewise.
658 * posix-hdep.c: Likewise.
659 * ppc-linux-nat.c: Likewise.
660 * ppc-sysv-tdep.c: Likewise.
661 * ppcfbsd-tdep.c: Likewise.
662 * ppcnbsd-tdep.c: Likewise.
663 * ppcobsd-tdep.c: Likewise.
664 * printcmd.c: Likewise.
665 * procfs.c: Likewise.
666 * prologue-value.c: Likewise.
667 * python/py-auto-load.c: Likewise.
668 * python/py-gdb-readline.c: Likewise.
669 * ravenscar-thread.c: Likewise.
670 * regcache.c: Likewise.
671 * registry.c: Likewise.
672 * remote-fileio.c: Likewise.
673 * remote-m32r-sdi.c: Likewise.
674 * remote-mips.c: Likewise.
675 * remote-notif.c: Likewise.
676 * remote-sim.c: Likewise.
677 * remote.c: Likewise.
678 * reverse.c: Likewise.
679 * rs6000-aix-tdep.c: Likewise.
680 * ser-base.c: Likewise.
681 * ser-go32.c: Likewise.
682 * ser-mingw.c: Likewise.
683 * ser-pipe.c: Likewise.
684 * ser-tcp.c: Likewise.
685 * ser-unix.c: Likewise.
686 * serial.c: Likewise.
687 * sh-tdep.c: Likewise.
688 * sh64-tdep.c: Likewise.
689 * shnbsd-tdep.c: Likewise.
690 * skip.c: Likewise.
691 * sol-thread.c: Likewise.
692 * solib-dsbt.c: Likewise.
693 * solib-frv.c: Likewise.
694 * solib-osf.c: Likewise.
695 * solib-som.c: Likewise.
696 * solib-spu.c: Likewise.
697 * solib-target.c: Likewise.
698 * solib.c: Likewise.
699 * somread.c: Likewise.
700 * source.c: Likewise.
701 * sparc-nat.c: Likewise.
702 * sparc-sol2-tdep.c: Likewise.
703 * sparc-tdep.c: Likewise.
704 * sparc64-tdep.c: Likewise.
705 * sparc64fbsd-tdep.c: Likewise.
706 * sparc64nbsd-tdep.c: Likewise.
707 * sparcnbsd-tdep.c: Likewise.
708 * spu-linux-nat.c: Likewise.
709 * spu-multiarch.c: Likewise.
710 * spu-tdep.c: Likewise.
711 * stabsread.c: Likewise.
712 * stack.c: Likewise.
713 * std-regs.c: Likewise.
714 * symfile.c: Likewise.
715 * symmisc.c: Likewise.
716 * symtab.c: Likewise.
717 * target.c: Likewise.
718 * thread.c: Likewise.
719 * tilegx-linux-nat.c: Likewise.
720 * tilegx-tdep.c: Likewise.
721 * top.c: Likewise.
722 * tracepoint.c: Likewise.
723 * tui/tui-command.c: Likewise.
724 * tui/tui-data.c: Likewise.
725 * tui/tui-disasm.c: Likewise.
726 * tui/tui-file.c: Likewise.
727 * tui/tui-layout.c: Likewise.
728 * tui/tui-out.c: Likewise.
729 * tui/tui-regs.c: Likewise.
730 * tui/tui-source.c: Likewise.
731 * tui/tui-stack.c: Likewise.
732 * tui/tui-win.c: Likewise.
733 * tui/tui-windata.c: Likewise.
734 * tui/tui-winsource.c: Likewise.
735 * typeprint.c: Likewise.
736 * ui-file.c: Likewise.
737 * ui-out.c: Likewise.
738 * user-regs.c: Likewise.
739 * utils.c: Likewise.
740 * v850-tdep.c: Likewise.
741 * valarith.c: Likewise.
742 * valops.c: Likewise.
743 * valprint.c: Likewise.
744 * value.c: Likewise.
745 * varobj.c: Likewise.
746 * vax-tdep.c: Likewise.
747 * vaxnbsd-tdep.c: Likewise.
748 * vaxobsd-tdep.c: Likewise.
749 * windows-nat.c: Likewise.
750 * xcoffread.c: Likewise.
751 * xml-support.c: Likewise.
752 * xstormy16-tdep.c: Likewise.
753 * xtensa-linux-nat.c: Likewise.
754
dccbb609
GB
7552014-08-07 Gary Benson <gbenson@redhat.com>
756
757 * common/common-defs.h: Include gdb_assert.h.
758 * aarch64-tdep.c: Do not include gdb_assert.h.
759 * addrmap.c: Likewise.
760 * aix-thread.c: Likewise.
761 * alpha-linux-tdep.c: Likewise.
762 * alpha-mdebug-tdep.c: Likewise.
763 * alphanbsd-tdep.c: Likewise.
764 * amd64-nat.c: Likewise.
765 * amd64-tdep.c: Likewise.
766 * amd64bsd-nat.c: Likewise.
767 * amd64fbsd-nat.c: Likewise.
768 * amd64fbsd-tdep.c: Likewise.
769 * amd64nbsd-nat.c: Likewise.
770 * amd64nbsd-tdep.c: Likewise.
771 * amd64obsd-nat.c: Likewise.
772 * amd64obsd-tdep.c: Likewise.
773 * arch-utils.c: Likewise.
774 * arm-tdep.c: Likewise.
775 * armbsd-tdep.c: Likewise.
776 * auxv.c: Likewise.
777 * bcache.c: Likewise.
778 * bfin-tdep.c: Likewise.
779 * blockframe.c: Likewise.
780 * breakpoint.c: Likewise.
781 * bsd-kvm.c: Likewise.
782 * bsd-uthread.c: Likewise.
783 * buildsym.c: Likewise.
784 * c-exp.y: Likewise.
785 * c-lang.c: Likewise.
786 * charset.c: Likewise.
787 * cleanups.c: Likewise.
788 * cli-out.c: Likewise.
789 * cli/cli-decode.c: Likewise.
790 * cli/cli-dump.c: Likewise.
791 * cli/cli-logging.c: Likewise.
792 * cli/cli-script.c: Likewise.
793 * cli/cli-utils.c: Likewise.
794 * coffread.c: Likewise.
795 * common/common-utils.c: Likewise.
796 * common/queue.h: Likewise.
797 * common/signals.c: Likewise.
798 * common/vec.h: Likewise.
799 * complaints.c: Likewise.
800 * completer.c: Likewise.
801 * corelow.c: Likewise.
802 * cp-abi.c: Likewise.
803 * cp-name-parser.y: Likewise.
804 * cp-namespace.c: Likewise.
805 * cp-support.c: Likewise.
806 * cris-tdep.c: Likewise.
807 * dbxread.c: Likewise.
808 * dictionary.c: Likewise.
809 * doublest.c: Likewise.
810 * dsrec.c: Likewise.
811 * dummy-frame.c: Likewise.
812 * dwarf2-frame-tailcall.c: Likewise.
813 * dwarf2-frame.c: Likewise.
814 * dwarf2expr.c: Likewise.
815 * dwarf2loc.c: Likewise.
816 * dwarf2read.c: Likewise.
817 * eval.c: Likewise.
818 * event-loop.c: Likewise.
819 * exceptions.c: Likewise.
820 * expprint.c: Likewise.
821 * f-valprint.c: Likewise.
822 * fbsd-nat.c: Likewise.
823 * findvar.c: Likewise.
824 * frame-unwind.c: Likewise.
825 * frame.c: Likewise.
826 * frv-tdep.c: Likewise.
827 * gcore.c: Likewise.
828 * gdb-dlfcn.c: Likewise.
829 * gdb_bfd.c: Likewise.
830 * gdbarch.c: Likewise.
831 * gdbarch.sh: Likewise.
832 * gdbtypes.c: Likewise.
833 * gnu-nat.c: Likewise.
834 * gnu-v3-abi.c: Likewise.
835 * go-lang.c: Likewise.
836 * guile/scm-exception.c: Likewise.
837 * guile/scm-gsmob.c: Likewise.
838 * guile/scm-lazy-string.c: Likewise.
839 * guile/scm-math.c: Likewise.
840 * guile/scm-pretty-print.c: Likewise.
841 * guile/scm-safe-call.c: Likewise.
842 * guile/scm-utils.c: Likewise.
843 * guile/scm-value.c: Likewise.
844 * h8300-tdep.c: Likewise.
845 * hppa-hpux-nat.c: Likewise.
846 * hppa-tdep.c: Likewise.
847 * hppanbsd-tdep.c: Likewise.
848 * hppaobsd-tdep.c: Likewise.
849 * i386-darwin-nat.c: Likewise.
850 * i386-darwin-tdep.c: Likewise.
851 * i386-nto-tdep.c: Likewise.
852 * i386-tdep.c: Likewise.
853 * i386bsd-nat.c: Likewise.
854 * i386fbsd-tdep.c: Likewise.
855 * i386gnu-nat.c: Likewise.
856 * i386nbsd-tdep.c: Likewise.
857 * i386obsd-tdep.c: Likewise.
858 * i387-tdep.c: Likewise.
859 * ia64-libunwind-tdep.c: Likewise.
860 * ia64-tdep.c: Likewise.
861 * inf-ptrace.c: Likewise.
862 * inf-ttrace.c: Likewise.
863 * infcall.c: Likewise.
864 * infcmd.c: Likewise.
865 * infrun.c: Likewise.
866 * inline-frame.c: Likewise.
867 * interps.c: Likewise.
868 * jv-lang.c: Likewise.
869 * jv-typeprint.c: Likewise.
870 * linux-fork.c: Likewise.
871 * linux-nat.c: Likewise.
872 * linux-thread-db.c: Likewise.
873 * m32c-tdep.c: Likewise.
874 * m32r-linux-nat.c: Likewise.
875 * m32r-tdep.c: Likewise.
876 * m68k-tdep.c: Likewise.
877 * m68kbsd-nat.c: Likewise.
878 * m68kbsd-tdep.c: Likewise.
879 * m88k-tdep.c: Likewise.
880 * machoread.c: Likewise.
881 * macroexp.c: Likewise.
882 * macrotab.c: Likewise.
883 * maint.c: Likewise.
884 * mdebugread.c: Likewise.
885 * memory-map.c: Likewise.
886 * mep-tdep.c: Likewise.
887 * mi/mi-common.c: Likewise.
888 * microblaze-tdep.c: Likewise.
889 * mingw-hdep.c: Likewise.
890 * mips-linux-nat.c: Likewise.
891 * mips-linux-tdep.c: Likewise.
892 * mips-tdep.c: Likewise.
893 * mips64obsd-tdep.c: Likewise.
894 * mipsnbsd-tdep.c: Likewise.
895 * mn10300-linux-tdep.c: Likewise.
896 * mn10300-tdep.c: Likewise.
897 * moxie-tdep.c: Likewise.
898 * mt-tdep.c: Likewise.
899 * nat/linux-btrace.c: Likewise.
900 * nat/linux-osdata.c: Likewise.
901 * nat/linux-ptrace.c: Likewise.
902 * nat/mips-linux-watch.c: Likewise.
903 * nios2-linux-tdep.c: Likewise.
904 * nios2-tdep.c: Likewise.
905 * objc-lang.c: Likewise.
906 * objfiles.c: Likewise.
907 * obsd-nat.c: Likewise.
908 * opencl-lang.c: Likewise.
909 * osabi.c: Likewise.
910 * parse.c: Likewise.
911 * ppc-linux-nat.c: Likewise.
912 * ppc-sysv-tdep.c: Likewise.
913 * ppcfbsd-nat.c: Likewise.
914 * ppcfbsd-tdep.c: Likewise.
915 * ppcnbsd-nat.c: Likewise.
916 * ppcnbsd-tdep.c: Likewise.
917 * ppcobsd-nat.c: Likewise.
918 * ppcobsd-tdep.c: Likewise.
919 * printcmd.c: Likewise.
920 * procfs.c: Likewise.
921 * prologue-value.c: Likewise.
922 * psymtab.c: Likewise.
923 * python/py-lazy-string.c: Likewise.
924 * python/py-value.c: Likewise.
925 * regcache.c: Likewise.
926 * reggroups.c: Likewise.
927 * registry.c: Likewise.
928 * remote-sim.c: Likewise.
929 * remote.c: Likewise.
930 * rs6000-aix-tdep.c: Likewise.
931 * rs6000-tdep.c: Likewise.
932 * s390-linux-tdep.c: Likewise.
933 * score-tdep.c: Likewise.
934 * ser-base.c: Likewise.
935 * ser-mingw.c: Likewise.
936 * sh-tdep.c: Likewise.
937 * sh64-tdep.c: Likewise.
938 * solib-darwin.c: Likewise.
939 * solib-spu.c: Likewise.
940 * solib-svr4.c: Likewise.
941 * source.c: Likewise.
942 * sparc-nat.c: Likewise.
943 * sparc-sol2-tdep.c: Likewise.
944 * sparc-tdep.c: Likewise.
945 * sparc64-sol2-tdep.c: Likewise.
946 * sparc64-tdep.c: Likewise.
947 * sparc64fbsd-tdep.c: Likewise.
948 * sparc64nbsd-tdep.c: Likewise.
949 * sparc64obsd-tdep.c: Likewise.
950 * sparcnbsd-tdep.c: Likewise.
951 * sparcobsd-tdep.c: Likewise.
952 * spu-multiarch.c: Likewise.
953 * spu-tdep.c: Likewise.
954 * stabsread.c: Likewise.
955 * stack.c: Likewise.
956 * symfile.c: Likewise.
957 * symtab.c: Likewise.
958 * target-descriptions.c: Likewise.
959 * target-memory.c: Likewise.
960 * target.c: Likewise.
961 * tic6x-linux-tdep.c: Likewise.
962 * tic6x-tdep.c: Likewise.
963 * tilegx-linux-nat.c: Likewise.
964 * tilegx-tdep.c: Likewise.
965 * top.c: Likewise.
966 * tramp-frame.c: Likewise.
967 * tui/tui-out.c: Likewise.
968 * tui/tui-winsource.c: Likewise.
969 * ui-out.c: Likewise.
970 * user-regs.c: Likewise.
971 * utils.c: Likewise.
972 * v850-tdep.c: Likewise.
973 * valops.c: Likewise.
974 * value.c: Likewise.
975 * varobj.c: Likewise.
976 * vax-nat.c: Likewise.
977 * xml-syscall.c: Likewise.
978 * xml-tdesc.c: Likewise.
979 * xstormy16-tdep.c: Likewise.
980 * xtensa-linux-nat.c: Likewise.
981 * xtensa-tdep.c: Likewise.
982
e76df0d0
GB
9832014-08-07 Gary Benson <gbenson@redhat.com>
984
985 * common/common-defs.h: Include common-utils.h.
986 * defs.h: Do not include common-utils.h.
987 * common/gdb_assert.h: Likewise.
988 * darwin-nat.h: Likewise.
989 * nat/linux-btrace.c: Likewise.
990 * target/waitstatus.h: Likewise.
991
4cb9c816
GB
9922014-08-07 Gary Benson <gbenson@redhat.com>
993
994 * common/common-defs.h: Include ptid.h.
995 * defs.h: Do not include ptid.h.
996 * inferior.h: Likewise.
997 * infrun.h: Likewise.
998 * nat/linux-btrace.h: Likewise.
999 * nat/linux-osdata.h: Likewise.
1000 * target/waitstatus.h: Likewise.
1001
3995eeee
GB
10022014-08-07 Gary Benson <gbenson@redhat.com>
1003
1004 * common/common-defs.h: Include gdb_locale.h.
1005 * defs.h: Do not include gdb_locale.h.
1006
cb9f1a9b
GB
10072014-08-07 Gary Benson <gbenson@redhat.com>
1008
1009 * common/common-defs.h: Include gdb/signals.h.
1010 * defs.h: Do not include gdb/signals.h.
1011
a5fceff8
GB
10122014-08-07 Gary Benson <gbenson@redhat.com>
1013
1014 * common/common-defs.h: Include pathmax.h.
1015 * defs.h: Do not include pathmax.h.
1016
b9391142
GB
10172014-08-07 Gary Benson <gbenson@redhat.com>
1018
1019 * common/common-defs.h: Include libiberty.h.
1020 * defs.h: Do not include libiberty.h.
1021 * common/queue.h: Likewise.
1022 * cp-name-parser.y: Likewise.
1023 * mi/mi-cmd-catch.c: Likewise.
1024 * python/python.c: Likewise.
1025
0e443c87
GB
10262014-08-07 Gary Benson <gbenson@redhat.com>
1027
1028 * common/common-defs.h: Include ansidecl.h.
1029 * defs.h: Do not include ansidecl.h.
1030 * common/buffer.h: Likewise.
1031 * common/common-utils.h: Likewise.
1032
8ebb3f56
GB
10332014-08-07 Gary Benson <gbenson@redhat.com>
1034
1035 * common/common-defs.h: Include stddef.h.
1036 * defs.h: Do not include stddef.h.
1037 * common/common-utils.h: Likewise.
1038 * amd64fbsd-nat.c: Likewise.
1039 * bcache.c: Likewise.
1040 * charset.c: Likewise.
1041 * common/buffer.h: Likewise.
1042 * common/vec.h: Likewise.
1043 * i386bsd-nat.c: Likewise.
1044 * nat/linux-btrace.h: Likewise.
1045 * ppcfbsd-nat.c: Likewise.
1046 * ppcnbsd-tdep.h: Likewise.
1047 * ppcobsd-nat.c: Likewise.
1048 * ppcobsd-tdep.h: Likewise.
1049 * python/py-gdb-readline.c: Likewise.
1050
8980bdf6
GB
10512014-08-07 Gary Benson <gbenson@redhat.com>
1052
1053 * common/common-defs.h: Include stdarg.h.
1054 * defs.h: Do not include stdarg.h.
1055 * ada-lang.c: Likewise.
1056 * common/common-utils.h: Likewise.
1057 * guile/scm-string.c: Likewise.
1058 * guile/scm-utils.c: Likewise.
1059 * m32c-tdep.c: Likewise.
1060
d7096f71
GB
10612014-08-07 Gary Benson <gbenson@redhat.com>
1062
1063 * common/common-defs.h: Include stdlib.h.
1064 * defs.h: Do not include stdlib.h.
1065 * addrmap.c: Likewise.
1066 * bcache.c: Likewise.
1067 * common/buffer.c: Likewise.
1068 * common/common-utils.c: Likewise.
1069 * cp-name-parser.y: Likewise.
1070 * go32-nat.c: Likewise.
1071 * mn10300-linux-tdep.c: Likewise.
1072 * nat/linux-osdata.c: Likewise.
1073 * tui/tui.c: Likewise.
1074 * windows-nat.c: Likewise.
1075
d02f550d
GB
10762014-08-07 Gary Benson <gbenson@redhat.com>
1077
1078 * common/common-defs.h: Include stdio.h.
1079 * defs.h: Do not include stdio.h.
1080 * ada-lang.c: Likewise.
1081 * common/buffer.c: Likewise.
1082 * common/common-utils.c: Likewise.
1083 * cp-name-parser.y: Likewise.
1084 * gnu-nat.c: Likewise.
1085 * go32-nat.c: Likewise.
1086 * i386gnu-nat.c: Likewise.
1087 * proc-api.c: Likewise.
1088 * proc-events.c: Likewise.
1089 * proc-flags.c: Likewise.
1090 * proc-why.c: Likewise.
1091 * python/python-internal.h: Likewise.
1092 * target-memory.c: Likewise.
1093 * tui/tui-io.c: Likewise.
1094 * tui/tui.c: Likewise.
1095
b6d7a4bf
SM
10962014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1097
1098 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1099 (scan_dyntag_auxv): Same.
1100
af19829b
YQ
11012014-08-06 Yao Qi <yao@codesourcery.com>
1102
1103 * amd64-linux-nat.c: Remove duplicated include
1104 "x86-linux-nat.h".
1105 * i386-linux-nat.c: Likewise.
1106
8e07a239
YQ
11072014-08-06 Yao Qi <yao@codesourcery.com>
1108
1109 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1110 operand" with "Special opcode" in comments.
1111
7bfe8241
GB
11122014-08-05 Gary Benson <gbenson@redhat.com>
1113
1114 * interps.c (initialize_interps): Remove prototype.
1115 (interpreter_initialized): Remove static global.
1116 (interp_add): Do not call initialize_interps.
1117 (initialize_interps): Remove function.
1118
d6c95504
GB
11192014-08-05 Gary Benson <gbenson@redhat.com>
1120
1121 * utils.c (vwarning): Remove spurious va_end.
1122
241fd515
AM
11232014-08-05 Alan Modra <amodra@gmail.com>
1124
1125 * charset.c (convert_between_encodings): Cast result of obstack_base.
1126 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1127 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1128 (read_unwind_info): Use size_t for some locals.
1129 * jit.c (finalize_symtab): Likewise.
1130 * utils.c (hashtab_obstack_allocate): Likewise.
1131 * symmisc.c (print_objfile_statistics): Update format strings.
1132
dc304a94
JK
11332014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1134
1135 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1136 (Changes in GDB 7.8): ... here.
1137
3cecbbbe
TT
11382014-08-04 Tom Tromey <tromey@redhat.com>
1139
1140 * target.c (set_targetdebug): New function.
1141 (initialize_targets): Pass set_targetdebug when creating "set
1142 debug target".
1143
6908c509
JB
11442014-08-01 Joel Brobecker <brobecker@adacore.com>
1145
1146 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1147 if detecting a variable-sized field that is not the last field.
1148 Fix struct type length computation.
1149
53e8f97d
JB
11502014-08-01 Joel Brobecker <brobecker@adacore.com>
1151
1152 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1153 Add debug trace.
1154
e068c55d
JB
11552014-08-01 Joel Brobecker <brobecker@adacore.com>
1156
1157 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1158 Remove "+ 8" offset in computation of CHAIN_VMA.
1159
4d4ca2a1
DE
11602014-07-31 Doug Evans <dje@google.com>
1161
1162 * inflow.c (child_terminal_inferior): Add comment.
1163 (child_terminal_ours_for_output): Add comment.
1164 (child_terminal_ours): Add comment.
1165 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1166 (linux_nat_terminal_ours): Add comment.
1167
462f517e
GB
11682014-07-31 Gary Benson <gbenson@redhat.com>
1169
1170 * common/btrace-common.h: Do not include defs.h or server.h.
1171 * nat/mips-linux-watch.h: Likewise.
1172 * gdb-dlfcn.h: Do not include defs.h.
1173 * tracefile.h: Likewise.
1174
74228e77
RM
11752014-07-30 Roland McGrath <mcgrathr@google.com>
1176
1177 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1178
014f9477
TT
11792014-07-30 Tom Tromey <tromey@redhat.com>
1180
1181 * bsd-kvm.c (bsd_kvm_open): Constify.
1182 * corelow.c (core_open): Constify.
1183 * ctf.c (ctf_open): Constify.
1184 * dbug-rom.c (dbug_open): Constify.
1185 * exec.c (exec_open): Constify.
1186 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1187 * microblaze-rom.c (picobug_open): Constify.
1188 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1189 Constify.
1190 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1191 * record-btrace.c (record_btrace_open): Constify.
1192 * record-full.c (record_full_core_open_1, record_full_open_1)
1193 (record_full_open): Constify.
1194 * remote-m32r-sdi.c (m32r_open): Constify.
1195 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1196 (rockhopper_open, lsi_open): Constify.
1197 * remote-sim.c (gdbsim_open): Constify.
1198 * remote.c (remote_open, extended_remote_open, remote_open_1):
1199 Constify.
1200 * target.h (struct target_ops) <to_open>: Make "arg" const.
1201 * tracefile-tfile.c (tfile_open): Constify.
1202
e799154c
TT
12032014-07-30 Tom Tromey <tromey@redhat.com>
1204
1205 * breakpoint.c (map_breakpoint_numbers): Update.
1206 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1207 (get_number_const): New function.
1208 (get_number): Rewrite using get_number_const.
1209 (init_number_or_range): Make "string" const.
1210 (number_is_in_list): Make "list" const.
1211 * cli/cli-utils.h (get_number_const): Declare.
1212 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1213 (init_number_or_range, number_is_in_list): Update.
1214 * printcmd.c (map_display_numbers): Update.
1215 * value.c (value_from_history_ref): Constify.
1216 * value.h (value_from_history_ref): Update.
1217
5f08566b
TT
12182014-07-30 Tom Tromey <tromey@redhat.com>
1219
1220 * corefile.c (hook_type, call_extra_exec_file_hooks)
1221 (specify_exec_file_hook): Constify.
1222 * exec.c (exec_file_attach): Make "filename" const.
1223 * gdbcore.h (deprecated_exec_file_display_hook)
1224 (specify_exec_file_hook, exec_file_attach): Constify.
1225 * main.c (captured_main): Use catch_command_errors_const.
1226
8981c758
TT
12272014-07-30 Tom Tromey <tromey@redhat.com>
1228
1229 * target.c (open_target): New function.
1230 (add_target_with_completer, add_deprecated_target_alias): Use
1231 set_cmd_sfunc, set_cmd_context.
1232 (debug_to_open): Remove.
1233 (setup_target_debug): Update.
1234
a1c7835a
YQ
12352014-07-30 Yao Qi <yao@codesourcery.com>
1236
1237 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1238 comments.
1239 * parse.c (exp_iterate): Update comments.
1240
976411d6
GB
12412014-07-30 Gary Benson <gbenson@redhat.com>
1242
1243 * common/common-defs.h: New file.
1244 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1245 * defs.h: Include common-defs.h.
1246 Do not include config.h or build-gnulib/config.h.
1247
5d4848a4
GB
12482014-07-30 Gary Benson <gbenson@redhat.com>
1249
1250 * common/common-utils.h: Do not include config.h.
1251 * nat/linux-btrace.h: Likewise.
1252
d41f6d8e
GB
12532014-07-30 Gary Benson <gbenson@redhat.com>
1254
1255 * btrace.c: Include defs.h.
1256 * common/ptid.c: Include defs.h or server.h as appropriate.
1257 * nat/mips-linux-watch.c: Likewise.
1258
84202f9c
TT
12592014-07-29 Tom Tromey <tromey@redhat.com>
1260
1261 * target.c (target_is_pushed): Simplify.
1262
2530441c
JB
12632014-07-29 Joel Brobecker <brobecker@adacore.com>
1264
1265 GDB 7.8 released.
1266
7e09a223
YQ
12672014-07-29 Yao Qi <yao@codesourcery.com>
1268
1269 PR gdb/17206
1270 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1271
7ebdbe92
DE
12722014-07-28 Doug Evans <xdje42@gmail.com>
1273
1274 PR guile/17203
1275 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1276 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1277 parameters.
1278
f347ffc9
WN
12792014-07-28 Will Newton <will.newton@linaro.org>
1280
1281 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1282 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1283 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1284 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1285 (THUMB2_EABI_SYSCALL): Likewise.
1286 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1287 struct tramp_frame.
1288 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1289 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1290
37c5f1f7
DE
12912014-07-27 Doug Evans <xdje42@gmail.com>
1292
1293 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1294
0c3abbc7
DE
12952014-07-27 Doug Evans <xdje42@gmail.com>
1296
1297 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1298
e76c5d17
DE
12992014-07-26 Ludovic Courtès <ludo@gnu.org>
1300 Doug Evans <xdje42@gmail.com>
1301
1302 PR guile/17146
1303 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1304 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1305 * configure.ac: Try to use guild to compile an scm file, if it fails
1306 then disable guile support.
1307 * configure: Regenerate.
1308 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1309 GUILE_FILE_LIST.
1310 (GUILE_COMPILED_FILES): New variable.
1311 (GUILE_FILES) Update.
1312 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1313 (stamp-guile): Compile scm files.
1314 * guile/guile.c (boot_guile_support): New function.
1315 (standard_throw_args_p): New function.
1316 (print_standard_throw_error, print_throw_error): New functions.
1317 (handle_boot_error): New function.
1318 (initialize_scheme_side): Rewrite to call boot_guile_support.
1319 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1320 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1321
186fcde0
DE
13222014-07-26 Ludovic Courtès <ludo@gnu.org>
1323 Doug Evans <xdje42@gmail.com>
1324
1325 PR guile/17146
1326 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1327 * guile/lib/gdb/support.scm: New file.
1328 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1329 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1330 All uses updated.
1331 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1332 All uses updated.
1333 (%assert-type): Ditto, and renamed to assert-type.
1334 (%exception-print-style): Delete.
1335
4df42755
DE
13362014-07-26 Doug Evans <xdje42@gmail.com>
1337
1338 PR build/17105
1339 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1340 * configure: Regenerate.
1341 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1342 PYTHON_FILES.
1343 (PYTHON_FILES): New variable.
1344 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1345 (GUILE_FILES): New variable.
1346 (stamp-python, install-python, uninstall-python): Handle empty
1347 file list.
1348 (stamp-guile, install-guile, uninstall-guile): Ditto.
1349
ee7333ae
DE
13502014-07-26 Doug Evans <xdje42@gmail.com>
1351
1352 PR guile/17177
1353 * guile/lib/gdb.scm (pretty-printers): Export.
1354 (set-pretty-printers!): Export.
1355 * guile/lib/gdb/printing.scm (gdb module): Update.
1356 (prepend-pretty-printer!, append-pretty-printer!): Update.
1357 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1358 (pretty_printer_list_var): Delete.
1359 (pretty_printer_list): New static global.
1360 (gdbscm_pretty_printers): New function.
1361 (gdbscm_set_pretty_printers_x): New function.
1362 (ppscm_find_pretty_printer_from_gdb): Update.
1363 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1364 (gdbscm_initialize_pretty_printers): Update.
1365
74edf516
DE
13662014-07-26 Doug Evans <xdje42@gmail.com>
1367
1368 PR 17185
1369 * configure.ac: Add check for header gc/gc.h.
1370 Add check for function setenv.
1371 * configure: Regenerate.
1372 * config.in: Regenerate.
1373 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1374
d54398a7
MR
13752014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1376
1377 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1378 variation in gdbarch matching.
1379
ab16fce8
TT
13802014-07-25 Tom Tromey <tromey@redhat.com>
1381
1382 * exec.c (using_exec_ops): Remove.
1383 (exec_close_1): Update. Remove extraneous block, reindent.
1384 (add_target_sections): Use target_is_pushed.
1385
88056fbb
PA
13862014-07-25 Pedro Alves <palves@redhat.com>
1387
1388 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1389 * monitor.c (monitor_create_inferior): Likewise.
1390 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1391 * remote-sim.c (gdbsim_create_inferior): Likewise.
1392 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1393 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1394 * windows-nat.c (do_initial_windows_stuff): Likewise.
1395
70509625
PA
13962014-07-25 Pedro Alves <palves@redhat.com>
1397
1398 * NEWS: Mention signal passing and "signal" command changes.
1399 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1400 comment.
1401 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1402 call.
1403 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1404 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1405 (jump_command): Adjust clear_proceed_status call.
1406 (signal_command): Warn if other thread that are resumed have
1407 signals that will be delivered. Adjust clear_proceed_status call.
1408 (until_next_command, finish_command)
1409 (proceed_after_attach_callback, attach_command_post_wait)
1410 (attach_command): Adjust clear_proceed_status call.
1411 * infrun.c (proceed_after_vfork_done): Likewise.
1412 (proceed_after_attach_callback): Adjust comment.
1413 (clear_proceed_status_thread): Clear stop_signal if not in pass
1414 state.
1415 (clear_proceed_status_callback): Delete.
1416 (clear_proceed_status): New 'step' parameter. Only clear the
1417 proceed status of threads the command being prepared is about to
1418 resume.
1419 (proceed): If passed in an explicit signal, override stop_signal
1420 with it. Don't pass the last stop signal to the thread we're
1421 resuming.
1422 (init_wait_for_inferior): Adjust clear_proceed_status call.
1423 (switch_back_to_stepped_thread): Clear the signal if it should not
1424 be passed.
1425 * infrun.h (clear_proceed_status): New 'step' parameter.
1426 (user_visible_resume_ptid): Add comment.
1427 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1428 signal is in pass state.
1429 * remote.c (append_pending_thread_resumptions): Likewise.
1430 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1431
d8be2939
TT
14322014-07-25 Tom Tromey <tromey@redhat.com>
1433
1434 * target.h (target_stopped_data_address)
1435 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1436 parentheses.
1437
7d0d9d2b
PL
14382014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1439
1440 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1441 comments.
1442 (avr_pointer_to_address): Likewise.
1443
e9e7f724
TT
14442014-07-24 Tom Tromey <tromey@redhat.com>
1445
1446 * monitor.c (compile_pattern): Update.
1447 * target.h (struct target_ops) <to_shortname, to_longname,
1448 to_doc>: Now const.
1449
1947513d
TT
14502014-07-24 Tom Tromey <tromey@redhat.com>
1451
1452 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1453 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1454 (add_info_alias, add_com): Make "doc" const.
1455 (print_doc_line): Make "str" const.
1456 (delete_cmd): Update.
1457 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1458 (print_doc_line): Update.
1459 * cli/cli-script.c (document_command): Update.
1460 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1461 (add_com, add_info, add_info_alias): Update.
1462 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1463 * python/py-cmd.c (cmdpy_destroyer): Update.
1464
64e61d29
TT
14652014-07-24 Tom Tromey <tromey@redhat.com>
1466
1467 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1468 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1469 (help_cmd_list): Constify.
1470 (lookup_cmd): Update.
1471 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1472 const.
1473 (help_cmd_list, apropos_cmd): Update.
1474 * cli/cli-script.c (show_user): Update.
1475 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1476 * cli/cli-setshow.h (cmd_show_list): Update.
1477 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1478 (cmd_show_list): Update.
1479 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1480 * python/py-cmd.c (cmdpy_destroyer): Update.
1481
429e55ea
TT
14822014-07-24 Tom Tromey <tromey@redhat.com>
1483
1484 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1485 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1486 const.
1487 * command.h (deprecate_cmd): Update.
1488 * maint.c (maintenance_do_deprecate): Add casts.
1489
64669f3b
TT
14902014-07-24 Tom Tromey <tromey@redhat.com>
1491
1492 * cli/cli-decode.c (help_cmd): Make parameter "const".
1493 * cli/cli-decode.h (help_cmd): Update.
1494
d3d3328b
TT
14952014-07-24 Tom Tromey <tromey@redhat.com>
1496
1497 * stack.c (up_silently_base, down_silently_base): Make argument
1498 const.
1499
414842dc
TT
15002014-07-24 Tom Tromey <tromey@redhat.com>
1501
1502 * solib.c (solib_add): Make "pattern" const.
1503 * solib.h (solib_add): Update.
1504
baa336ce
TT
15052014-07-24 Tom Tromey <tromey@redhat.com>
1506
1507 * remote.c (remote_serial_open, print_packet, putpkt)
1508 (putpkt_binary): Constify.
1509 * remote.h (putpkt): Update.
1510
5a19e2d0
TT
15112014-07-24 Tom Tromey <tromey@redhat.com>
1512
1513 * monitor.c (monitor_open): Make "args" const.
1514 * monitor.h (monitor_open): Update.
1515
fc4baa5e
TT
15162014-07-24 Tom Tromey <tromey@redhat.com>
1517
1518 * maint.c (match_bfd_flags): Make "string" const.
1519 (print_bfd_section_info): Remove casts.
1520 (print_objfile_section_info): Make "string" const.
1521
0d5f0dbe
TT
15222014-07-24 Tom Tromey <tromey@redhat.com>
1523
1524 * inf-child.c (inf_child_open_target): Make "arg" const.
1525 * inf-child.h (inf_child_open_target): Update.
1526
41c77899
TT
15272014-07-24 Tom Tromey <tromey@redhat.com>
1528
1529 * environ.c (unset_in_environ): Make "var" const.
1530 * environ.h (unset_in_environ): Update.
1531
93db0d79
TT
15322014-07-24 Tom Tromey <tromey@redhat.com>
1533
1534 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1535 Make "cmd" const.
1536 (scan_filename_with_cleanup): Likewise.
1537 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1538 Make arguments const.
1539 (restore_command): Update.
1540
36d6eb95
PA
15412014-07-24 Pedro Alves <palves@redhat.com>
1542
1543 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1544
8009206a
TT
15452014-07-24 Tom Tromey <tromey@redhat.com>
1546 Gary Benson <gbenson@redhat.com>
1547
1548 * nat/linux-ptrace.c (additional_flags): New global.
1549 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1550 additional_flags; don't check GDBSERVER.
1551 (linux_ptrace_set_additional_flags): New function.
1552 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1553 Declare.
1554 * linux-nat.c (_initialize_linux_nat): Call
1555 linux_ptrace_set_additional_flags.
1556
a7068b60
TT
15572014-07-24 Tom Tromey <tromey@redhat.com>
1558
1559 * make-target-delegates (munge_type, write_debugmethod): New
1560 functions.
1561 (debug_names): New global.
1562 ($TARGET_DEBUG_PRINTER): New global.
1563 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1564 name.
1565 Write debug methods. Generate init_debug_target.
1566 * target-debug.h: New file.
1567 * target-delegates.c: Rebuild.
1568 * target.c: Include target-debug.h.
1569 (debug_target): Hoist definition.
1570 (target_kill, target_get_section_table, target_memory_map)
1571 (target_flash_erase, target_flash_done, target_detach)
1572 (target_disconnect, target_wait, target_resume)
1573 (target_pass_signals, target_program_signals, target_follow_fork)
1574 (target_mourn_inferior, target_search_memory)
1575 (target_thread_address_space, target_close)
1576 (target_find_new_threads, target_core_of_thread)
1577 (target_verify_memory, target_insert_mask_watchpoint)
1578 (target_remove_mask_watchpoint): Remove targetdebug code.
1579 (debug_to_post_attach, debug_to_prepare_to_store)
1580 (debug_to_files_info, debug_to_insert_breakpoint)
1581 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1582 (debug_to_region_ok_for_hw_watchpoint)
1583 (debug_to_can_accel_watchpoint_condition)
1584 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1585 (debug_to_watchpoint_addr_within_range)
1586 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1587 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1588 (debug_to_terminal_init, debug_to_terminal_inferior)
1589 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1590 (debug_to_terminal_save_ours, debug_to_terminal_info)
1591 (debug_to_load, debug_to_post_startup_inferior)
1592 (debug_to_insert_fork_catchpoint)
1593 (debug_to_remove_fork_catchpoint)
1594 (debug_to_insert_vfork_catchpoint)
1595 (debug_to_remove_vfork_catchpoint)
1596 (debug_to_insert_exec_catchpoint)
1597 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1598 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1599 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1600 (setup_target_debug): Call init_debug_target.
1601 * target.h (TARGET_DEBUG_PRINTER): New macro.
1602 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1603 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1604
2c51604d
GB
16052014-07-24 Gary Benson <gbenson@redhat.com>
1606
1607 * exceptions.h (throw_vfatal): Renamed to...
1608 (throw_vquit): New declaration.
1609 (throw_quit): Likewise.
1610 * exceptions.c (throw_vfatal): Renamed to...
1611 (throw_vquit): New function.
1612 (throw_quit): Likewise.
1613 (throw_error): Call throw_verror rather than throw_it.
1614 * utils.h (vfatal): Removed.
1615 (fatal): Likewise.
1616 * utils.c (vfatal): Removed.
1617 (fatal): Likewise.
1618 (internal_verror): Replaced call to fatal with call to throw_quit.
1619 (quit): Replaced calls to fatal with calls to throw_quit.
1620
34211963
ME
16212014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1622
1623 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1624 target_read_code.
1625
a52b4d3e
ME
16262014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1627
1628 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1629 less than zero in conditional expression.
1630
a8bdc56b
TT
16312014-07-23 Tom Tromey <tromey@redhat.com>
1632
1633 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1634 ($INTRO_PART): Don't match whitespace.
1635 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1636 argument matching.
1637 ($METHOD): Add $METHOD_TRAILER.
1638 (trim): Rewrite.
1639 (scan_target_h): New sub.
1640 Change main loop not to collect state.
1641 * target-delegates.c: Rebuild.
1642
91b52240
GB
16432014-07-23 Gary Benson <gbenson@redhat.com>
1644
1645 * cp-support.c (gdb_demangle): Fix build on systems without
1646 sigaltstack.
1647
45326f6f
JK
16482014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1649
1650 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1651 for reference entry value target data value.
1652
e214cf6c
JK
16532014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1654
1655 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1656 value_available_contents_eq.
1657
bddbbedd
PA
16582014-07-22 Pedro Alves <palves@redhat.com>
1659
1660 * value.c (allocate_optimized_out_value): Don't mark value as
1661 non-lazy.
1662
45c71484
JW
16632014-07-22 Jiong Wang <jiong.wang@arm.com>
1664
1665 * MAINTAINERS (Write After Approval): Update my email address.
1666
9597b22a
DE
16672014-07-20 Doug Evans <dje@google.com>
1668
1669 PR server/17147
1670 * remote.c (putpkt_binary): Add text to error message.
1671
91101fe5
YQ
16722014-07-20 Yao Qi <yao@codesourcery.com>
1673
1674 * eval.c: Remove "Chill" from comments.
1675 * gdbtypes.h: Likewise.
1676 * symtab.h: Likewise.
1677
c9402c95
YQ
16782014-07-20 Yao Qi <yao@codesourcery.com>
1679
1680 * std-operator.def: Update comments to TERNOP_SLICE.
1681
ae8fddda
YQ
16822014-07-20 Yao Qi <yao@codesourcery.com>
1683
1684 * std-operator.def: Remove BINOP_RANGE.
1685 * breakpoint.c (watchpoint_exp_is_const): Update.
1686 * expprint.c (dump_subexp_body_standard): Likewise.
1687 * eval.c (init_array_element): Remove dead code.
1688 (evaluate_subexp_standard): Likewise.
1689
9c816640
YQ
16902014-07-20 Yao Qi <yao@codesourcery.com>
1691
1692 * std-operator.def: Remove BINOP_IN.
1693 * breakpoint.c (watchpoint_exp_is_const): Update.
1694 * eval.c (evaluate_subexp_standard): Likewise.
1695 * expprint.c (dump_subexp_body_standard): Likewise.
1696
164224e9
ME
16972014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1698
1699 * microblaze-tdep.c (microblaze_register_names): Add
1700 the rshr and rslr register names.
1701 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1702 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1703 Use of tdesc_numbered_register. Use of
1704 microblaze_register_g_packet_guesses. Use of
1705 tdesc_use_registers. Use of set_gdbarch_register_type.
1706 (microblaze_register_g_packet_guesses): New.
1707 * microblaze-tdep.h (microblaze_reg_num): Add
1708 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1709 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1710 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1711 * features/microblaze-core.xml: New file.
1712 * features/microblaze-stack-protect.xml: New file.
1713 * features/microblaze-with-stack-protect.c: New file.
1714 * features/microblaze-with-stack-protect.xml: New file.
1715 * features/microblaze.xml: New file.
1716 * features/microblaze.c: New file.
1717 * features/Makefile (microblaze-with-stack-protect): Add
1718 microblaze-with-stack-protect microblaze and microblaze-expedite.
1719 * regformats/microblaze-with-stack-protect.dat: New file.
1720 * regformats/microblaze.dat: New file.
1721 * doc/gdb.texinfo (MicroBlaze Features): Added.
1722
e8b2341c
TT
17232014-07-18 Tom Tromey <tromey@redhat.com>
1724
1725 * exec.c (exec_ops): Now static.
1726 * exec.h (exec_ops): Don't declare.
1727
44e89118
TT
17282014-07-18 Tom Tromey <tromey@redhat.com>
1729
1730 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1731 to find_target_beneath.
1732 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1733 find_target_beneath.
1734 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1735
b0ed115f
TT
17362014-07-18 Tom Tromey <tromey@redhat.com>
1737
1738 PR gdb/17130:
1739 * utils.c (quit): Use target_supports_terminal_ours.
1740 * target.h (target_supports_terminal_ours): Declare.
1741 * target.c (target_supports_delete_record): Don't check
1742 to_delete_record against NULL.
1743 (target_supports_terminal_ours): New function.
1744
e75fdfca
TT
17452014-07-18 Tom Tromey <tromey@redhat.com>
1746
1747 PR gdb/17130:
1748 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1749 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1750 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1751 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1752 * windows-nat.c (windows_xfer_partial): Always delegate.
1753 * record-btrace.c (record_btrace_xfer_partial): Simplify
1754 delegation.
1755 (record_btrace_fetch_registers, record_btrace_store_registers)
1756 (record_btrace_prepare_to_store, record_btrace_resume)
1757 (record_btrace_wait, record_btrace_find_new_threads)
1758 (record_btrace_thread_alive): Likewise.
1759 * procfs.c (procfs_xfer_partial): Always delegate.
1760 * corelow.c (core_xfer_partial): Always delegate.
1761 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1762
83814951
TT
17632014-07-18 Tom Tromey <tromey@redhat.com>
1764
1765 * exec.c (exec_make_note_section): Move earlier.
1766
b8b8facf
DE
17672014-07-17 Doug Evans <dje@google.com>
1768
74b49205 1769 PR gdb/17170
b8b8facf
DE
1770 * maint.c (count_symtabs_and_blocks): Handle NULL
1771 current_program_space.
1772 (report_command_stats): Check global enabled flag in addition to
1773 recorded enabled flag.
1774 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1775
69ff6be5
PA
17762014-07-16 Pedro Alves <palves@redhat.com>
1777
1778 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1779
252db1b5
TT
17802014-07-16 Tom Tromey <tromey@redhat.com>
1781
1782 * target.h (struct target_ops) <to_delete_record>: Reformat
1783 comment.
1784
a432721e
TT
17852014-07-16 Tom Tromey <tromey@redhat.com>
1786
1787 * target-delegates.c: Rebuild.
1788
487d9753
PL
17892014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1790
1791 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1792 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1793 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1794 (avr_pointer_to_address): Likewise.
1795 (avr_address_class_type_flags): New function.
1796 (avr_address_class_type_flags_to_name): Likewise.
1797 (avr_address_class_name_to_type_flags): Likewise.
1798 (avr_gdbarch_init): Set address_class_type_flags,
1799 address_class_type_flags_to_name and
1800 address_class_name_to_type_flags.
1801
57745c90
PA
18022014-07-15 Pedro Alves <palves@redhat.com>
1803
1804 * linux-nat.c (kill_callback): Save errno and work with saved
1805 copy.
1806
2d40be18
SM
18072014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1808
1809 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1810
572f6555
EBM
18112014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1812
1813 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1814 breakpoint support correctly.
1815
cc1c52ad
PA
18162014-07-14 Pedro Alves <palves@redhat.com>
1817
1818 * utils.c (prompt_for_continue): Call target_terminal_ours.
1819
1e973570
PA
18202014-07-14 Pedro Alves <palves@redhat.com>
1821
1822 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1823 catch_errors. Don't re-enable stdin or notify observers where,
1824 and rethrow error.
1825 (fetch_inferior_event_wrapper): Delete.
1826
93d6eb10
PA
18272014-07-14 Pedro Alves <palves@redhat.com>
1828
1829 PR gdb/17072
1830 * top.c: Include "inf-loop.h".
1831 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1832 field.
1833 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1834 was async before.
1835 (gdb_readline_wrapper): Store whether the target is async, and
1836 make it sync.
1837
0017922d
PA
18382014-07-14 Pedro Alves <palves@redhat.com>
1839
1840 PR gdb/17072
1841 * top.c (gdb_readline_wrapper_line): Tweak comment.
1842 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1843 the input handler callback.
1844
94696ad3
PA
18452014-07-14 Pedro Alves <palves@redhat.com>
1846
1847 PR gdb/17072
1848 * main.c: Include event-top.h.
1849 (handle_command_errors): New function.
1850 (catch_command_errors, catch_command_errors_const): Use it.
1851
9d1e69a2
PA
18522014-07-14 Pedro Alves <palves@redhat.com>
1853
1854 * exceptions.c (catch_command_errors, catch_command_errors_const):
1855 Moved to main.c.
1856 * exceptions.h (catch_command_errors_ftype)
1857 (catch_command_errors_const_ftype): Moved to main.c.
1858 (catch_command_errors, catch_command_errors_const): Delete
1859 declarations.
1860 * main.c (catch_command_errors_ftype)
1861 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1862 (catch_command_errors, catch_command_errors_const)): Moved here
1863 from exceptions.c and make static.
1864
feefc97b
PA
18652014-07-14 Pedro Alves <palves@redhat.com>
1866
1867 * exceptions.c (print_any_exception): Delete.
1868 (catch_exceptions_with_msg): Use exception_print instead of
1869 print_any_exception.
1870 (catch_errors): Use exception_fprintf instead of
1871 print_any_exception.
1872 (catch_command_errors, catch_command_errors_const): Use
1873 exception_print instead of print_any_exception.
1874
c933f875
PA
18752014-07-14 Pedro Alves <palves@redhat.com>
1876
1877 * infcall.c (run_inferior_call): Set 'sync_execution' while
1878 running the inferior call.
1879
feb6f816
PA
18802014-07-14 Pedro Alves <palves@redhat.com>
1881
1882 * value.c (value_contents_equal): Delete function.
1883 * value.h (value_contents_equal): Delete declaration.
1884
d98b7a16
TT
18852014-07-14 Tom Tromey <tromey@redhat.com>
1886
1887 PR exp/17106:
1888 * gdbtypes.c (is_dynamic_type_internal): New function, from
1889 is_dynamic_type.
1890 (is_dynamic_type): Rewrite.
1891 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1892 (resolve_dynamic_struct): Likewise.
1893 (resolve_dynamic_type_internal): New function, from
1894 resolve_dynamic_type.
1895 (resolve_dynamic_type): Rewrite.
1896
548740d6
TT
18972014-07-14 Tom Tromey <tromey@redhat.com>
1898
1899 * target.c (target_require_runnable): Also check record_stratum.
1900 Update comment.
1901
808f7ab1
YQ
19022014-07-11 Yao Qi <yao@codesourcery.com>
1903
1904 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1905 thumb_instruction_restores_sp return true.
1906
540314bd
YQ
19072014-07-11 Yao Qi <yao@codesourcery.com>
1908
1909 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1910 (thumb_in_function_epilogue_p): Call
1911 thumb_instruction_restores_sp.
1912
1db01f22
YQ
19132014-07-11 Yao Qi <yao@codesourcery.com>
1914
1915 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1916 'add sp, #imm'.
1917 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1918
3116063b
GB
19192014-07-11 Gary Benson <gbenson@redhat.com>
1920
1921 * amd64-linux-nat.c (gdbcore.h): Remove include.
1922 (regset.h): Likewise.
1923 (nat/linux-btrace.h): Likewise.
1924 (btrace.h): Likewise.
1925 (gdb_assert.h): Likewise.
1926 (string.h): Likewise.
1927 (sys/uio.h): Likewise.
1928 (sys/debugreg.h): Likewise.
1929 (sys/syscall.h): Likewise.
1930 (sys/procfs.h): Likewise.
1931 (sys/user.h): Likewise.
1932 (asm/ptrace.h): Likewise.
1933 (i386-nat.h): Likewise.
1934 * i386-linux-nat.c (i386-nat.h): Likewise.
1935 (regset.h): Likewise.
1936 (target.h): Likewise.
1937 (linux-nat.h): Likewise.
1938 (nat/linux-btrace.h): Likewise.
1939 (btrace.h): Likewise.
1940 (gdb_assert.h): Likewise.
1941 (string.h): Likewise.
1942 (sys/uio.h): Likewise.
1943 (sys/user.h): Likewise.
1944 (sys/procfs.h): Likewise.
1945 (sys/reg.h): Likewise.
1946 (sys/debugreg.h): Likewise.
1947 (ORIG_EAX): Remove definition.
1948
040baaf6
GB
19492014-07-11 Gary Benson <gbenson@redhat.com>
1950
1951 * i386-linux-nat.h: New file.
1952 * x86-linux-nat.h: Likewise.
1953 * x86-linux-nat.c: Likewise.
1954 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1955 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1956 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1957 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1958 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1959 (PTRACE_SETREGSET): Likewise.
1960 (arch_lwp_info): Now in x86-linux-nat.c.
1961 (have_ptrace_getregset): Now in x86-linux-nat.h.
1962 (x86_linux_dr_get): Now in x86-linux-nat.c.
1963 (x86_linux_dr_set): Likewise.
1964 (x86_linux_dr_get_addr): Likewise.
1965 (x86_linux_dr_get_control): Likewise.
1966 (x86_linux_dr_get_status): Likewise.
1967 (update_debug_registers_callback): Likewise.
1968 (x86_linux_dr_set_control): Likewise.
1969 (x86_linux_dr_set_addr): Likewise.
1970 (x86_linux_prepare_to_resume): Likewise.
1971 (x86_linux_new_thread): Likewise.
1972 (x86_linux_new_fork): Likewise.
1973 (x86_linux_get_thread_area): Likewise.
1974 (super_post_startup_inferior): Likewise.
1975 (x86_linux_child_post_startup_inferior): Likewise.
1976 (AMD64_LINUX_USER64_CS): Likewise.
1977 (AMD64_LINUX_X32_DS): Likewise.
1978 (x86_linux_read_description): Likewise.
1979 (x86_linux_enable_btrace): Likewise.
1980 (x86_linux_disable_btrace): Likewise.
1981 (x86_linux_teardown_btrace): Likewise.
1982 (x86_linux_read_btrace): Likewise.
1983 (x86_linux_create_target): Likewise.
1984 (x86_linux_add_target): Likewise.
1985 * i386-linux-nat.c (x86-linux-nat.h): New include.
1986 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1987 (PTRACE_SETREGSET): Likewise.
1988 (arch_lwp_info): Now in x86-linux-nat.c.
1989 (have_ptrace_getregset): Now in x86-linux-nat.h.
1990 (x86_linux_dr_get): Now in x86-linux-nat.c.
1991 (x86_linux_dr_set): Likewise.
1992 (x86_linux_dr_get_addr): Likewise.
1993 (x86_linux_dr_get_control): Likewise.
1994 (x86_linux_dr_get_status): Likewise.
1995 (update_debug_registers_callback): Likewise.
1996 (x86_linux_dr_set_control): Likewise.
1997 (x86_linux_dr_set_addr): Likewise.
1998 (x86_linux_prepare_to_resume): Likewise.
1999 (x86_linux_new_thread): Likewise.
2000 (x86_linux_new_fork): Likewise.
2001 (x86_linux_get_thread_area): Likewise.
2002 (super_post_startup_inferior): Likewise.
2003 (x86_linux_child_post_startup_inferior): Likewise.
2004 (AMD64_LINUX_USER64_CS): Likewise.
2005 (AMD64_LINUX_X32_DS): Likewise.
2006 (x86_linux_read_description): Likewise.
2007 (x86_linux_enable_btrace): Likewise.
2008 (x86_linux_disable_btrace): Likewise.
2009 (x86_linux_teardown_btrace): Likewise.
2010 (x86_linux_read_btrace): Likewise.
2011 (x86_linux_create_target): Likewise.
2012 (x86_linux_add_target): Likewise.
2013
1aa7e42c
GB
20142014-07-11 Gary Benson <gbenson@redhat.com>
2015
2016 * amd64-linux-nat.c: Comment and whitespace changes.
2017 * i386-linux-nat.c: Comment and whitespace changes.
2018
c1e246a0
GB
20192014-07-11 Gary Benson <gbenson@redhat.com>
2020
2021 * amd64-linux-nat.c (x86_linux_create_target): New function.
2022 (x86_linux_add_target): Likewise.
2023 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2024 * i386-linux-nat.c (x86_linux_create_target): New function.
2025 (x86_linux_add_target): Likewise.
2026 (_initialize_i386_linux_nat): Delegate to the above new functions.
2027
8c420b8d
GB
20282014-07-11 Gary Benson <gbenson@redhat.com>
2029
2030 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2031 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2032 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2033 (ps_get_thread_area): Delegate to the above.
2034
cb1da100
GB
20352014-07-11 Gary Benson <gbenson@redhat.com>
2036
2037 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2038 x86_linux_read_description. All uses updated. amd64-specific
2039 code conditionalized. Conditionalized i386-specific code added.
2040 Redundant cast removed.
2041 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2042 x86_linux_read_description. All uses updated. i386-specific
2043 code conditionalized. Conditionalized amd64-specific code added.
2044 One sizeof replaced with the actual type it is describing.
2045
2acf3cd0
GB
20462014-07-11 Gary Benson <gbenson@redhat.com>
2047
2048 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2049 x86_linux_dr_get. All uses updated.
2050 (amd64_linux_dr_set): Renamed to
2051 x86_linux_dr_set. All uses updated.
2052 (amd64_linux_dr_get_addr): Renamed to
2053 x86_linux_dr_get_addr. All uses updated.
2054 (amd64_linux_dr_get_control): Renamed to
2055 x86_linux_dr_get_control. All uses updated.
2056 (amd64_linux_dr_get_status): Renamed to
2057 x86_linux_dr_get_status. All uses updated.
2058 (amd64_linux_dr_set_control): Renamed to
2059 x86_linux_dr_set_control. All uses updated.
2060 (amd64_linux_dr_set_addr): Renamed to
2061 x86_linux_dr_set_addr. All uses updated.
2062 (amd64_linux_prepare_to_resume): Renamed to
2063 x86_linux_prepare_to_resume. All uses updated.
2064 (amd64_linux_new_thread): Renamed to
2065 x86_linux_new_thread. All uses updated.
2066 (amd64_linux_new_fork): Renamed to
2067 x86_linux_new_fork. All uses updated.
2068 (amd64_linux_child_post_startup_inferior): Renamed to
2069 x86_linux_child_post_startup_inferior. All uses updated.
2070 (amd64_linux_enable_btrace): Renamed to
2071 x86_linux_enable_btrace. All uses updated.
2072 (amd64_linux_disable_btrace): Renamed to
2073 x86_linux_disable_btrace. All uses updated.
2074 (amd64_linux_teardown_btrace): Renamed to
2075 x86_linux_teardown_btrace. All uses updated.
2076 (amd64_linux_read_btrace): Renamed to
2077 x86_linux_read_btrace. All uses updated.
2078 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2079 x86_linux_dr_get. All uses updated.
2080 (i386_linux_dr_set): Renamed to
2081 x86_linux_dr_set. All uses updated.
2082 (i386_linux_dr_get_addr): Renamed to
2083 x86_linux_dr_get_addr. All uses updated.
2084 (i386_linux_dr_get_control): Renamed to
2085 x86_linux_dr_get_control. All uses updated.
2086 (i386_linux_dr_get_status): Renamed to
2087 x86_linux_dr_get_status. All uses updated.
2088 (i386_linux_dr_set_control): Renamed to
2089 x86_linux_dr_set_control. All uses updated.
2090 (i386_linux_dr_set_addr): Renamed to
2091 x86_linux_dr_set_addr. All uses updated.
2092 (i386_linux_prepare_to_resume): Renamed to
2093 x86_linux_prepare_to_resume. All uses updated.
2094 (i386_linux_new_thread): Renamed to
2095 x86_linux_new_thread. All uses updated.
2096 (i386_linux_new_fork): Renamed to
2097 x86_linux_new_fork. All uses updated.
2098 (i386_linux_child_post_startup_inferior): Renamed to
2099 x86_linux_child_post_startup_inferior. All uses updated.
2100 (i386_linux_enable_btrace): Renamed to
2101 x86_linux_enable_btrace. All uses updated.
2102 (i386_linux_disable_btrace): Renamed to
2103 x86_linux_disable_btrace. All uses updated.
2104 (i386_linux_teardown_btrace): Renamed to
2105 x86_linux_teardown_btrace. All uses updated.
2106 (i386_linux_read_btrace): Renamed to
2107 x86_linux_read_btrace. All uses updated.
2108
b9c1d481
AS
21092014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2110
2111 * remote.c (extended_remote_post_attach): New function.
2112 (init_extended_remote_ops): Install it as to_post_attach method.
2113
7180e04a
PA
21142014-07-09 Pedro Alves <palves@redhat.com>
2115
2116 * infcmd.c (attach_command_post_wait): Don't call
2117 target_terminal_inferior here.
2118 (attach_command): Call it here instead.
2119
9a9a7608
AB
21202014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2121
2122 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2123 field.
2124 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2125 from varobj.c, with additional checks.
2126 (c_varobj_ops): Fill in is_path_expr_parent field.
2127 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2128 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2129 field.
2130 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2131 ops method.
2132 (varobj_default_is_path_expr_parent): New function.
2133 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2134 (varobj_default_is_path_expr_parent): Declare new function.
2135
1f267ae3
MM
21362014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2137
2138 * infcmd.c (finish_backward): Turn internal error into normal error.
2139
b2ee242b
PA
21402014-07-07 Pedro Alves <palves@redhat.com>
2141
8a869bca 2142 PR gdb/17096
b2ee242b
PA
2143 * remote.c (async_handle_remote_sigint)
2144 (async_handle_remote_sigint_twice): Call
2145 gdb_call_async_signal_handler instead of
2146 mark_async_signal_handler.
2147
38e229b2
TT
21482014-07-07 Tom Tromey <tromey@redhat.com>
2149
2150 * target-delegates.c: Rebuild.
2151 * target.c (target_info_record): Remove.
2152 * record.c (info_record_command): Unconditionally call
2153 to_info_record.
2154 * target.h (struct target_ops) <to_info_record>: Use
2155 TARGET_DEFAULT_IGNORE.
2156 (target_info_record): Remove.
2157
f0f9ff95
TT
21582014-07-07 Tom Tromey <tromey@redhat.com>
2159
2160 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2161 TARGET_DEFAULT_NORETURN.
2162 * target.c (generic_tls_error): New function.
2163 (target_translate_tls_address): Don't search target stack.
2164 * target-delegates.c: Rebuild.
2165 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2166 stack.
2167 * linux-thread-db.c (thread_db_get_thread_local_address):
2168 Unconditionally call beneath target.
2169
4a5be5ee
MK
21702014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2171
2172 * cli/cli-logging.c (pop_output_files): Assign targerr to
2173 gdb_stdtargerr.
2174
92c3b204
AB
21752014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * MAINTAINERS (Write After Approval): Update my email address.
2178
9b11e3a7
GB
21792014-07-02 Gary Benson <gbenson@redhat.com>
2180
2181 * proc-service.c (ps_xfer_memory): Update comment.
2182 (ps_pstop): Remove unused function.
2183 (ps_pcontinue): Likewise.
2184 (ps_lstop): Likewise.
2185 (ps_lcontinue): Likewise.
2186 (ps_lgetxregsize): Likewise.
2187 (ps_lgetxregs): Likewise.
2188 (ps_lsetxregs): Likewise.
2189 (ps_plog): Likewise.
2190 (ps_ptread): Likewise.
2191 (ps_ptwrite): Likewise.
2192
cf363f18
MW
21932014-07-01 Mark Wielaard <mjw@redhat.com>
2194
2195 * dwarf2read.c (add_array_cv_type): New function.
2196 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2197 (read_tag_volatile_type): Likewise.
2198
82ae6c8d
TT
21992014-07-01 Tom Tromey <tromey@redhat.com>
2200
2201 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2202 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2203 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2204 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2205 * command.h (cmd_cfunc_ftype): Move earlier.
2206 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2207 (add_com, add_info): Use cmd_cfunc_ftype.
2208
96142726
TT
22092014-06-30 Tom Tromey <tromey@redhat.com>
2210
2211 * symtab.c (operator_chars): Make parameters and return type
2212 const.
2213 (file_matches): Make "files" const.
2214 (struct search_symbols_data) <files>: Now const.
2215 (search_symbols): Make "regexp" and "files" parameters const.
2216 Update.
2217 (symtab_symbol_info): Remove cast.
2218 (rbreak_command): Update.
2219 * symtab.h (search_symbols): Update.
2220
b67a2c6f
YQ
22212014-06-27 Yao Qi <yao@codesourcery.com>
2222
2223 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2224 Change parameter type to 'struct thread_info *'. Caller
2225 updated.
2226 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2227 Update declaration.
2228 * dummy-frame.c (struct dummy_frame_id): New.
2229 (dummy_frame_id_eq): New function.
2230 (struct dummy_frame) <id>: Change its type to 'struct
2231 dummy_frame_id'.
2232 (dummy_frame_push): Add parameter ptid and save it in
2233 dummy_frame_id.
2234 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2235 inferior_ptid.
2236 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2237 to inferior_ptid.
2238 (lookup_dummy_frame): Change parameter type to 'struct
2239 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2240 instead of frame_id_eq.
2241 (dummy_frame_pop): Add parameter ptid. Callers updated.
2242 Update comments. Compose dummy_frame_id and pass it to
2243 lookup_dummy_frame.
2244 (dummy_frame_discard): Add parameter ptid.
2245 (dummy_frame_sniffer): Compose dummy_frame_id and call
2246 dummy_frame_id_eq instead of frame_id_eq.
2247 (fprint_dummy_frames): Print ptid.
2248 * dummy-frame.h: Remove comments.
2249 (dummy_frame_push): Add ptid in declaration.
2250 (dummy_frame_pop, dummy_frame_discard): Likewise.
2251
5b10184c
TT
22522014-06-26 Tom Tromey <tromey@redhat.com>
2253
2254 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2255 * command.h (error_no_arg): Update.
2256
06900326
TT
22572014-06-26 Tom Tromey <tromey@redhat.com>
2258
2259 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2260 (do_show_command): Make "arg" const.
2261 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2262
c2bcbb1d
TT
22632014-06-26 Tom Tromey <tromey@redhat.com>
2264
2265 * record-full.c (record_full_get_bookmark): Make "args" const.
2266 (record_full_goto_bookmark): Make "raw_bookmark" const.
2267 * record.c (record_goto): New function.
2268 (cmd_record_goto): Use it. Now static.
2269 * record.h (record_goto): Declare.
2270 (cmd_record_goto): Remove declaration.
2271 * target-delegates.c: Rebuild.
2272 * target.h (struct target_ops) <to_get_bookmark,
2273 to_goto_bookmark>: Make parameter const.
2274
9cbe5fff
TT
22752014-06-26 Tom Tromey <tromey@redhat.com>
2276
2277 * defs.h (generic_load): Update.
2278 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2279 * monitor.c (monitor_load): Make "args" const.
2280 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2281 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2282 const.
2283 (mips_load): Make "file" const.
2284 * remote-sim.c (gdbsim_load): Make "args" const.
2285 * remote.c (remote_load): Make "name" const.
2286 * symfile.c (generic_load): Make "args" const.
2287 * target-delegates.c: Rebuild.
2288 * target.c (target_load): Make "arg" const.
2289 (debug_to_load): Make "args" const.
2290 * target.h (struct target_ops) <to_load>: Make parameter const.
2291 (target_load): Update.
2292
34a68019
TT
22932014-06-26 Tom Tromey <tromey@redhat.com>
2294
2295 PR symtab/16902:
2296 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2297 (dwarf2_physname, read_partial_die)
2298 (guess_partial_die_structure_name, fixup_partial_die)
2299 (guess_full_die_structure_name, anonymous_struct_prefix)
2300 (dwarf2_name): Use per-BFD obstack.
2301
efc889c1
YQ
23022014-06-26 Yao Qi <yao@codesourcery.com>
2303
2304 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2305 dummyframe and this_id into inner block below.
2306
4395285e
YQ
23072014-06-26 Yao Qi <yao@codesourcery.com>
2308
2309 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2310 with "signal_pass[0]" in the initialization of signal_pass.
2311
aef92902
MM
23122014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2313
2314 * record-btrace.c (record_btrace_generating_corefile)
2315 (record_btrace_prepare_to_generate_core)
2316 (record_btrace_done_generating_core): New.
2317 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2318 (record_btrace_store_registers, record_btrace_prepare_to_store):
2319 Forward request when generating a core file.
2320 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2321 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2322 to_done_generating_core.
2323
5fff78c4
MM
23242014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2325
2326 * target.h (target_ops) <to_prepare_to_generate_core>
2327 <to_done_generating_core>: New.
2328 (target_prepare_to_generate_core, target_done_generating_core): New.
2329 * target.c (target_prepare_to_generate_core)
2330 (target_done_generating_core): New.
2331 * target-delegates.c: Regenerate.
2332 * gcore.c: (write_gcore_file): Rename to ...
2333 (write_gcore_file_1): ...this.
2334 (write_gcore_file): Call target_prepare_to_generate_core
2335 and target_done_generating_core.
2336
1d1f1ccb
MM
23372014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2338
2339 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2340 * gcore.c (write_gcore_file): Free memory returned from
2341 make_corefile_notes.
2342 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2343 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2344
3343ef86
YQ
23452014-06-24 Yao Qi <yao@codesourcery.com>
2346
2347 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2348 (arm_linux_init_abi): Set skip_trampoline_code with
2349 gdbarch_skip_trampoline_code instead of
2350 find_solib_trampoline_target.
2351
18d18ac8
YQ
23522014-06-24 Yao Qi <yao@codesourcery.com>
2353
2354 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2355 arm_skip_bx_reg returns non-zero.
2356
80d8d390
YQ
23572014-06-24 Yao Qi <yao@codesourcery.com>
2358
2359 * arm-tdep.c (arm_skip_bx_reg): New function.
2360 (arm_skip_stub): Call arm_skip_bx_reg.
2361
6a18a01c
DB
23622014-06-23 Don Breazeal <donb@codesourcery.com>
2363
2364 * MAINTAINERS: Add myself as write-after-approval maintainer.
2365
8e9db26e
PA
23662014-06-23 Pedro Alves <palves@redhat.com>
2367
2368 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2369 DR_CONTROL before setting DR0..DR3.
2370 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2371 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2372 bits of DR_CONTROL related to the debug register slot being
2373 disabled. If all slots are vacant, clear local slowdown as well,
2374 and assert DR_CONTROL is 0.
2375
70afc5b7
SC
23762014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2377
2378 * python/lib/gdb/command/xmethods.py
2379 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2380 current progspace only if the string "progspace" matches LOCUS_RE.
2381
840ed64d
JK
23822014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2383
2384 Fix --with-system-readline with readline-6.3 patch 5.
2385 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2386 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2387 types.
2388
26f2dc30
TT
23892014-06-20 Tom Tromey <tromey@redhat.com>
2390
2391 * dwarf2read.c (dw2_get_real_path): Use correct type in
2392 OBSTACK_CALLOC.
2393 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2394
125f8a3d
GB
23952014-06-20 Gary Benson <gbenson@redhat.com>
2396
2397 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2398 * common/glibc_thread_db.h: Likewise.
2399 * common/i386-cpuid.h: Likewise.
2400 * common/i386-gcc-cpuid.h: Likewise.
2401 * common/linux-btrace.h: Likewise.
2402 * common/linux-osdata.h: Likewise.
2403 * common/linux-procfs.h: Likewise.
2404 * common/linux-ptrace.h: Likewise.
2405 * common/mips-linux-watch.h: Likewise.
2406 * common/linux-btrace.c: Moved to nat.
2407 * common/linux-osdata.c: Likewise.
2408 * common/linux-procfs.c: Likewise.
2409 * common/linux-ptrace.c: Likewise.
2410 * common/mips-linux-watch.c: Likewise.
2411 * nat/gdb_thread_db.h: Moved from common.
2412 * nat/glibc_thread_db.h: Likewise.
2413 * nat/i386-cpuid.h: Likewise.
2414 * nat/i386-gcc-cpuid.h: Likewise.
2415 * nat/linux-btrace.c: Likewise.
2416 * nat/linux-btrace.h: Likewise.
2417 * nat/linux-osdata.c: Likewise.
2418 * nat/linux-osdata.h: Likewise.
2419 * nat/linux-procfs.c: Likewise.
2420 * nat/linux-procfs.h: Likewise.
2421 * nat/linux-ptrace.c: Likewise.
2422 * nat/linux-ptrace.h: Likewise.
2423 * nat/mips-linux-watch.c: Likewise.
2424 * nat/mips-linux-watch.h: Likewise.
2425 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2426 (object file files): Reordered.
2427 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2428 of glibc_thread_db.h.
2429
42995dbd
GB
24302014-06-20 Gary Benson <gbenson@redhat.com>
2431
2432 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2433 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2434 (i386_dr_low): Likewise.
2435 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2436 (i386_dr_low_set_addr): Likewise.
2437 (i386_dr_low_get_addr): Likewise.
2438 (i386_dr_low_can_set_control): Likewise.
2439 (i386_dr_low_set_control): Likewise.
2440 (i386_dr_low_get_control): Likewise.
2441 (i386_dr_low_get_status): Likewise.
2442 (i386_get_debug_register_length): Likewise.
2443 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2444 (i386_dr_low): Likewise.
2445 * nat/i386-dregs.c (i386-low.h): Remove include.
2446 (i386-nat.h): Likewise.
2447 (nat/i386-dregs.h): New include.
2448 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2449 (i386_dr_low_set_addr): Likewise.
2450 (i386_dr_low_get_addr): Likewise.
2451 (i386_dr_low_can_set_control): Likewise.
2452 (i386_dr_low_set_control): Likewise.
2453 (i386_dr_low_get_control): Likewise.
2454 (i386_dr_low_get_status): Likewise.
2455 (i386_get_debug_register_length): Likewise.
2456 (debug_hw_points): Likewise.
2457
3ed9baed
IB
24582014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2459
2460 * Makefile.in (SFILES): Add d-exp.y.
2461 (YYFILES): Add d-exp.c.
2462 (YYOBJ): Add d-exp.o.
2463 (local-maintainer-clean): Delete d-exp.c.
2464 * d-exp.y: New file.
2465 * d-lang.h (d_parse): New declaration.
2466 (d_error): New declaration.
2467 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2468 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2469 PREC_ORDER operators.
2470 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2471
78c164b0
YQ
24722014-06-19 Yao Qi <yao@codesourcery.com>
2473
2474 * gdbthread.h (any_running): Remove the declaration.
2475 * thread.c (any_running): Remove.
2476
f6e29b6e
YQ
24772014-06-19 Yao Qi <yao@codesourcery.com>
2478
2479 * gdbthread.h (struct thread_info) <state>: Change its type to
2480 'enum thread_state'. Update comments.
2481
034f788c
PA
24822014-06-19 Pedro Alves <palves@redhat.com>
2483
2484 * gdbthread.h (ALL_THREADS): Delete.
2485 (ALL_NON_EXITED_THREADS): New macro.
2486 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2487 instead of ALL_THREADS.
2488 * infrun.c (find_thread_needs_step_over)
2489 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2490 instead of ALL_THREADS.
2491 * record-btrace.c (record_btrace_open)
2492 (record_btrace_stop_recording, record_btrace_close)
2493 (record_btrace_is_replaying, record_btrace_resume)
2494 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2495 * remote.c (append_pending_thread_resumptions): Likewise.
2496 * thread.c (thread_apply_all_command): Likewise.
2497
46e33252
GB
24982014-06-19 Gary Benson <gbenson@redhat.com>
2499
2500 * i386-nat.c (i386_stopped_by_watchpoint):
2501 Use i386_dr_stopped_by_watchpoint.
2502 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2503 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2504
3a8ee006
GB
25052014-06-19 Gary Benson <gbenson@redhat.com>
2506
2507 * nat/i386-dregs.c: New file.
2508 * Makefile.in (i386-dregs.o): New rule.
2509 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2510 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2511 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2512 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2513 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2514 * config/i386/go32.mh (NATDEPFILES): Likewise.
2515 * config/i386/linux.mh (NATDEPFILES): Likewise.
2516 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2517 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2518 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2519 * i386-nat.h (debug_hw_points): New declaration.
2520 * i386-nat.c (breakpoint.h): Remove include.
2521 (command.h): Likewise.
2522 (target.h): Likewise.
2523 (gdb_assert.h): Likewise.
2524 (debug_hw_points): Made nonstatic.
2525 (debug_printf): Now in i386-dregs.c.
2526 (TARGET_HAS_DR_LEN_8): Likewise.
2527 (DR_CONTROL_SHIFT): Likewise.
2528 (DR_CONTROL_SIZE): Likewise.
2529 (DR_RW_EXECUTE): Likewise.
2530 (DR_RW_WRITE): Likewise.
2531 (DR_RW_READ): Likewise.
2532 (DR_RW_IORW): Likewise.
2533 (DR_LEN_1): Likewise.
2534 (DR_LEN_2): Likewise.
2535 (DR_LEN_4): Likewise.
2536 (DR_LEN_8): Likewise.
2537 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2538 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2539 (DR_ENABLE_SIZE): Likewise.
2540 (DR_LOCAL_SLOWDOWN): Likewise.
2541 (DR_GLOBAL_SLOWDOWN): Likewise.
2542 (DR_CONTROL_RESERVED): Likewise.
2543 (I386_DR_CONTROL_MASK): Likewise.
2544 (I386_DR_VACANT): Likewise.
2545 (I386_DR_LOCAL_ENABLE): Likewise.
2546 (I386_DR_GLOBAL_ENABLE): Likewise.
2547 (I386_DR_DISABLE): Likewise.
2548 (I386_DR_SET_RW_LEN): Likewise.
2549 (I386_DR_GET_RW_LEN): Likewise.
2550 (I386_DR_WATCH_HIT): Likewise.
2551 (i386_wp_op_t): Likewise.
2552 (i386_show_dr): Likewise.
2553 (i386_length_and_rw_bits): Likewise.
2554 (i386_insert_aligned_watchpoint): Likewise.
2555 (i386_remove_aligned_watchpoint): Likewise.
2556 (i386_handle_nonaligned_watchpoint): Likewise.
2557 (i386_update_inferior_debug_regs): Likewise.
2558 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2559 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2560 (i386_region_ok_for_watchpoint):
2561 Use i386_dr_region_ok_for_watchpoint.
2562 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2563
322a8e06
GB
25642014-06-19 Gary Benson <gbenson@redhat.com>
2565
2566 * i386-nat.c (i386_insert_hw_breakpoint): Use
2567 i386_insert_watchpoint.
2568 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2569
8f26655c
GB
25702014-06-19 Gary Benson <gbenson@redhat.com>
2571
2572 * i386-nat.c (i386_dr_show): Renamed to
2573 i386_show_dr and made static. All uses updated.
2574 (i386_dr_length_and_rw_bits): Renamed to
2575 i386_length_and_rw_bits and made static.
2576 All uses updated.
2577 (i386_dr_insert_aligned_watchpoint): Renamed to
2578 i386_insert_aligned_watchpoint and made static.
2579 All uses updated.
2580 (i386_dr_remove_aligned_watchpoint): Renamed to
2581 i386_remove_aligned_watchpoint and made static.
2582 All uses updated.
2583 (i386_dr_update_inferior_debug_regs): Renamed to
2584 i386_update_inferior_debug_regs and made static.
2585 All uses updated.
2586 * nat/i386-dregs.h (i386_dr_show): Removed.
2587 (i386_dr_length_and_rw_bits): Likewise.
2588 (i386_dr_insert_aligned_watchpoint): Likewise.
2589 (i386_dr_remove_aligned_watchpoint): Likewise.
2590 (i386_dr_update_inferior_debug_regs): Likewise.
2591
992c7d70
GB
25922014-06-19 Gary Benson <gbenson@redhat.com>
2593
2594 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2595 * configure: Regenerate.
2596 * config.in: Likewise.
2597 * main.c (signal.h): New include.
2598 (setup_alternate_signal_stack): New function.
2599 (captured_main): Call the above.
2600 * cp-support.c (signal.h): New include.
2601 (catch_demangler_crashes): New flag.
2602 (SIGJMP_BUF): New define.
2603 (SIGSETJMP): Likewise.
2604 (SIGLONGJMP): Likewise.
2605 (gdb_demangle_jmp_buf): New static global.
2606 (gdb_demangle_attempt_core_dump): Likewise.
2607 (gdb_demangle_signal_handler): New function.
2608 (gdb_demangle): If catch_demangler_crashes is set, install the
2609 above signal handler before calling bfd_demangle, and restore
2610 the original signal handler afterwards. Display the offending
2611 symbol and call demangler_warning the first time a segmentation
2612 fault is caught.
2613 (_initialize_cp_support): New maint set/show command.
2614
eae7090b
GB
26152014-06-19 Gary Benson <gbenson@redhat.com>
2616
2617 * utils.h (resource_limit_kind): New enum.
2618 (can_dump_core): New declaration.
2619 (warn_cant_dump_core): Likewise.
2620 (dump_core): Likewise.
2621 * utils.c (dump_core): Made nonstatic. Added new
2622 parameter "limit_kind".
2623 (can_dump_core): Made nonstatic. Moved printing code to...
2624 (warn_cant_dump_core): New function.
2625 (can_dump_core_warn): Likewise.
2626 (internal_vproblem): Replace calls to can_dump_core with
2627 calls to can_dump_core_warn. Supply new argument to each.
2628
57fcfb1b
GB
26292014-06-19 Gary Benson <gbenson@redhat.com>
2630
2631 * utils.h (demangler_vwarning): New declaration.
2632 (demangler_warning): Likewise.
2633 * utils.c (struct internal_problem)
2634 <user_settable_should_quit>: New field.
2635 <user_settable_should_dump_core>: Likewise
2636 (internal_error_problem): Add values for above new fields.
2637 (internal_warning_problem): Likewise.
2638 (demangler_warning_problem): New static global.
2639 (demangler_vwarning): New function.
2640 (demangler_warning): Likewise.
2641 (add_internal_problem_command): Selectively add commands.
2642 (_initialize_utils): New internal problem command.
2643 * maint.c (maintenance_demangler_warning): New function.
2644 (_initialize_maint_cmds): New command.
2645
17a40b44
TT
26462014-06-18 Tom Tromey <tromey@redhat.com>
2647
2648 * f-valprint.c (info_common_command_for_block): Update.
2649 * symtab.h (struct general_symbol_info) <common_block>: Now
2650 const.
2651
346d1dfe
TT
26522014-06-18 Tom Tromey <tromey@redhat.com>
2653
2654 * symtab.h (struct symtab) <blockvector>: Now const.
2655 * ada-lang.c (ada_add_global_exceptions): Update.
2656 * buildsym.c (augment_type_symtab): Update.
2657 * dwarf2read.c (dw2_lookup_symbol): Update.
2658 * jit.c (finalize_symtab): Update.
2659 * jv-lang.c (add_class_symtab_symbol): Update.
2660 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2661 Update.
2662 * objfiles.c (objfile_relocate1): Update.
2663 * psymtab.c (lookup_symbol_aux_psymtabs)
2664 (maintenance_check_psymtabs): Update.
2665 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2666 Update.
2667 * spu-tdep.c (spu_catch_start): Update.
2668 * symmisc.c (dump_symtab_1): Update.
2669 * symtab.c (lookup_global_symbol_from_objfile)
2670 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2671 (basic_lookup_transparent_type_quick)
2672 (basic_lookup_transparent_type, find_pc_sect_symtab)
2673 (find_pc_sect_line, search_symbols): Update.
2674 * block.c (find_block_in_blockvector): Make "bl" const.
2675 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2676 const.
2677 (blockvector_contains_pc): Make "bv" const.
2678 (block_for_pc_sect): Update.
2679 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2680 (blockvector_contains_pc): Update.
2681 * breakpoint.c (resolve_sal_pc): Update.
2682 * inline-frame.c (block_starting_point_at): Update.
2683
1834676b
TT
26842014-06-18 Tom Tromey <tromey@redhat.com>
2685
2686 * completer.c (complete_line): Make "line_buffer" const.
2687 * completer.h (complete_line): Update.
2688
ac1a991b
TT
26892014-06-18 Tom Tromey <tromey@redhat.com>
2690
2691 * symtab.c (add_macro_name): Remove unneeded cast.
2692
5bc98e52
TT
26932014-06-18 Tom Tromey <tromey@redhat.com>
2694
2695 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2696 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2697
8236def8
TT
26982014-06-18 Tom Tromey <tromey@redhat.com>
2699
2700 * probe.c (info_probes_for_ops): Make "arg" const.
2701 * probe.h (info_probes_for_ops): Update.
2702
3977b71f
TT
27032014-06-18 Tom Tromey <tromey@redhat.com>
2704
2705 * varobj.c (varobj_create): Update.
2706 * valops.c (value_of_this): Update.
2707 * tracepoint.c (add_local_symbols, scope_info): Update.
2708 * symtab.h (struct general_symbol_info) <block>: Now const.
2709 * symtab.c (skip_prologue_sal)
2710 (default_make_symbol_completion_list_break_on)
2711 (skip_prologue_using_sal): Update.
2712 * stack.h (iterate_over_block_locals)
2713 (iterate_over_block_local_vars): Update.
2714 * stack.c (print_frame_args): Update.
2715 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2716 parameter const.
2717 (get_selected_block): Make return type const.
2718 * python/py-frame.c (frapy_block): Update.
2719 * python/py-block.c (gdbpy_block_for_pc): Update.
2720 * p-exp.y (%union) <bval>: Now const.
2721 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2722 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2723 * m2-exp.y (%union) <bval>: Now const.
2724 * linespec.c (get_current_search_block): Make return type const.
2725 (create_sals_line_offset, find_label_symbols): Update.
2726 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2727 Update.
2728 (block_starting_point_at): Make "block" const.
2729 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2730 (check_exception_resume): Update.
2731 * guile/scm-frame.c (gdbscm_frame_block): Update.
2732 * guile/scm-block.c (gdbscm_lookup_block): Update.
2733 * frame.h (get_frame_block): Update.
2734 (get_selected_block): Make return type const.
2735 * frame.c (frame_id_inner): Update.
2736 * f-valprint.c (info_common_command_for_block)
2737 (info_common_command): Update.
2738 * dwarf2loc.c (dwarf2_find_location_expression)
2739 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2740 (locexpr_describe_location_piece): Update.
2741 * c-exp.y (%union) <bval>: Now const.
2742 * breakpoint.c (resolve_sal_pc): Update.
2743 * blockframe.c (get_frame_block):Make return type const.
2744 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2745 (block_innermost_frame): Update.
2746 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2747 (block_for_pc, block_for_pc_sect): Update.
2748 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2749 'pblock' const.
2750 (block_for_pc_sect, block_for_pc): Make return type const.
2751 * ax-gdb.c (gen_expr): Update.
2752 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2753 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2754 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2755 (ada_read_var_value): Update.
2756 * ada-exp.y (struct name_info) <block>: Now const.
2757 (%union): Likewise.
2758 (block_lookup): Constify.
2759
b9228891
GB
27602014-06-18 Gary Benson <gbenson@redhat.com>
2761
2762 * nat/i386-dregs.h: New file.
2763 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2764 * i386-nat.h (i386-dregs.h): New include.
2765 (DR_FIRSTADDR): Now in i386-dregs.h.
2766 (DR_LASTADDR): Likewise.
2767 (DR_NADDR): Likewise.
2768 (DR_STATUS): Likewise.
2769 (DR_CONTROL): Likewise.
2770 (i386_debug_reg_state): Likewise.
2771 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2772
a1aa2221
LM
27732014-06-18 Don Breazeal <donb@codesourcery.com>
2774
2775 * breakpoint.c (set_longjmp_breakpoint): Call
2776 momentary_breakpoint_from_master with additional argument.
2777 (set_longjmp_breakpoint_for_call_dummy): Call
2778 momentary_breakpoint_from_master with additional argument.
2779 (set_std_terminate_breakpoint): Call
2780 momentary_breakpoint_from_master with additional argument.
2781 (momentary_breakpoint_from_master): Add argument to function
2782 definition and use it to initialize structure member flag.
74228e77 2783 (clone_momentary_breakpoint): Call
a1aa2221
LM
2784 momentary_breakpoint_from_master with additional argument.
2785 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2786 member flags set in momentary_breakpoint_from_master.
2787
4be83cc2
GB
27882014-06-18 Gary Benson <gbenson@redhat.com>
2789
2790 * i386-nat.c (i386_show_dr): Renamed to
2791 i386_dr_show and made nonstatic. All uses updated.
2792 (i386_length_and_rw_bits): Renamed to
2793 i386_dr_length_and_rw_bits and made nonstatic.
2794 All uses updated.
2795 (i386_insert_aligned_watchpoint): Renamed to
2796 i386_dr_insert_aligned_watchpoint and made nonstatic.
2797 All uses updated.
2798 (i386_remove_aligned_watchpoint): Renamed to
2799 i386_dr_remove_aligned_watchpoint and made nonstatic.
2800 All uses updated.
2801 (i386_update_inferior_debug_regs): Renamed to
2802 i386_dr_update_inferior_debug_regs and made nonstatic.
2803 All uses updated.
2804
131aa0d4
GB
28052014-06-18 Gary Benson <gbenson@redhat.com>
2806
2807 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2808 (i386_dr_low_can_set_control): Likewise.
2809 (i386_dr_low_set_addr): Likewise.
2810 (i386_dr_low_set_control): Likewise.
2811 (i386_dr_low_get_addr): Likewise.
2812 (i386_dr_low_get_status): Likewise.
2813 (i386_dr_low_get_control): Likewise.
2814 (i386_insert_aligned_watchpoint): Use new macros.
2815 (i386_update_inferior_debug_regs): Likewise.
2816 (i386_stopped_data_address): Likewise.
2817
d9305f7f
GB
28182014-06-18 Gary Benson <gbenson@redhat.com>
2819
2820 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2821 New parameter. All uses updated.
2822
ea008da4
GB
28232014-06-18 Gary Benson <gbenson@redhat.com>
2824
2825 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2826 All uses updated.
2827
1b6d4134
GB
28282014-06-18 Gary Benson <gbenson@redhat.com>
2829
2830 * i386-nat.c (debug_printf): New macro.
2831 (i386_get_debug_register_length): Likewise.
2832 (TARGET_HAS_DR_LEN_8): Use above macro.
2833 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2834 and printf_unfiltered. Use phex to format values.
2835
9b4550ef
GB
28362014-06-18 Gary Benson <gbenson@redhat.com>
2837
2838 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2839 Make const.
2840
6e62758f
GB
28412014-06-18 Gary Benson <gbenson@redhat.com>
2842
2843 * i386-nat.c: Comment changes.
2844
51c79e94
GB
28452014-06-18 Gary Benson <gbenson@redhat.com>
2846
2847 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2848
3e11889a
GB
28492014-06-18 Gary Benson <gbenson@redhat.com>
2850
2851 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2852 (i386_insert_aligned_watchpoint): Likewise.
2853 (i386_remove_aligned_watchpoint): Likewise.
2854 (i386_handle_nonaligned_watchpoint): Likewise.
2855
fc6e2f03
GB
28562014-06-18 Gary Benson <gbenson@redhat.com>
2857
2858 * i386-nat.c: Whitespace changes.
2859
2afe7d50
SB
28602014-06-17 Samuel Bronson <naesten@gmail.com>
2861
2862 * MAINTAINERS: Update Roland McGrath's email address.
2863 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2864 Red Hat a while ago, and giving me a current address.
2afe7d50 2865
3bca49ee
TT
28662014-06-17 Tom Tromey <tromey@redhat.com>
2867
2868 * utils.h (savestring): Remove declaration.
2869
6e366df1
TT
28702014-06-17 Tom Tromey <tromey@redhat.com>
2871
2872 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2873
6be47f0c
KS
28742014-06-16 Keith Seitz <keiths@redhat.com>
2875
2876 PR mi/15863
2877 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2878 to update the varobj if inferior_ptid is null_ptid.
2879
7bc112c1
TT
28802014-06-16 Tom Tromey <tromey@redhat.com>
2881
2882 * target.h (struct target_ops) <to_info_proc>: Make parameter
2883 const.
2884 (target_info_proc): Update.
2885 * target.c (target_info_proc): Make "args" const.
2886 * procfs.c (procfs_info_proc): Update.
2887 * linux-tdep.c (linux_info_proc): Update.
2888 (linux_core_info_proc_mappings): Make "args" const.
2889 (linux_core_info_proc): Update.
2890 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2891 * gdbarch.c: Rebuild.
2892 * gdbarch.h: Rebuild.
2893 * corelow.c (core_info_proc): Update.
2894
fee354ee
TT
28952014-06-16 Tom Tromey <tromey@redhat.com>
2896
2897 * target.h (struct target_ops) <to_disconnect>: Make parameter
2898 const.
2899 (target_disconnect): Update.
2900 * target.c (target_disconnect): Make "args" const.
2901 * target-delegates.c: Rebuild.
2902 * remote.c (remote_disconnect): Update.
2903 * record.h (record_disconnect): Update.
2904 * record.c (record_disconnect): Update.
2905 * inf-child.c (inf_child_disconnect): Update.
2906
a30bf1f1
TT
29072014-06-16 Tom Tromey <tromey@redhat.com>
2908
2909 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2910 * target.c (debug_to_rcmd, default_rcmd): Update.
2911 * target-delegates.c: Rebuild.
2912 * remote.c (remote_rcmd): Update.
2913 * monitor.c (monitor_rcmd): Update.
2914
d03de421
PA
29152014-06-16 Pedro Alves <palves@redhat.com>
2916
2917 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2918 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2919 have OBJF_SHARED set.
2920 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2921 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2922 instead of OBJF_USERLOADED.
2923 * objfiles.h (OBJF_SHARED): Update comment.
2924 (userloaded_objfile_contains_address_p): Rename to ...
2925 (shared_objfile_contains_address_p): ... this, and update
2926 comments.
2927 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2928 new objfile.
2929 (remove_symbol_file_command): Skip objfiles that don't have
2930 OBJF_SHARED set.
2931
99f4262f
TT
29322014-06-16 Tom Tromey <tromey@redhat.com>
2933
2934 * minsyms.h (prim_record_minimal_symbol)
2935 (prim_record_minimal_symbol_and_info): Update comments.
2936
97d66cc6
EZ
29372014-06-14 Eli Zaretskii <eliz@gnu.org>
2938
2939 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2940 or --without-guile, according to how GDB was built.
2941
635c7e8a
TT
29422014-06-13 Tom Tromey <tromey@redhat.com>
2943
2944 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2945 to help_list.
2946 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2947 to help_list.
2948 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2949 help_list.
2950 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2951 help_list.Pass all_commands, not -1, to help_list.
2952 * cli/cli-dump.c (dump_command, append_command)
2953 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2954 (binary_dump_command, binary_append_command): Pass all_commands,
2955 not -1, to help_list.
2956 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2957 -1, to help_list.
2958 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2959 -1, to help_list.
2960 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2961 help_list.
2962 * top.c (set_history): Pass all_commands, not -1, to help_list.
2963 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2964 all_commands, not -1, to help_list.
2965 * symfile.c (overlay_command): Pass all_commands, not -1, to
2966 help_list.
2967 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2968 help_list.
2969 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2970 help_list.
2971 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2972 -1, to help_list.
2973 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2974 not -1, to help_list.
2975 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2976 not -1, to help_list.
2977 * maint.c (maintenance_command, maintenance_info_command)
2978 (maintenance_print_command, maintenance_set_cmd): Pass
2979 all_commands, not -1, to help_list.
2980 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2981 help_list.
2982 * language.c (set_check): Pass all_commands, not -1, to help_list.
2983 * infcmd.c (unset_command): Pass all_commands, not -1, to
2984 help_list.
2985 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2986 help_list.
2987 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2988 help_list.
2989 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2990 help_list.
2991 * breakpoint.c (save_command): Pass all_commands, not -1, to
2992 help_list.
2993 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2994 all_commands, not -1, to help_list.
2995
b94ade42
PL
29962014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2997
2998 * regcache.c (struct register_to_invalidate): New structure.
2999 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3000 functions.
3001 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3002
31f628ae
YQ
30032014-06-12 Yao Qi <yao@codesourcery.com>
3004
3005 * varobj.c (varobj_get_num_children): Call
3006 varobj_is_dynamic_p.
3007 (varobj_list_children): Likewise.
3008 (varobj_update): Likewise. Update comments.
3009
cde5ef40
YQ
30102014-06-12 Yao Qi <yao@codesourcery.com>
3011
3012 * varobj.c (varobj_pretty_printed_p): Rename to ...
3013 (varobj_is_dynamic_p): ... this. New function.
3014 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3015 (varobj_is_dynamic_p): Declare.
3016 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3017 (mi_print_value_p, varobj_update_one): Likewise.
3018
576ea091
YQ
30192014-06-12 Pedro Alves <pedro@codesourcery.com>
3020 Yao Qi <yao@codesourcery.com>
3021
3022 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3023 (varobj_get_iterator): Wrap up code for pretty-printer by
3024 "#if HAVE_PYTHON" and "#endif".
3025 (update_dynamic_varobj_children): Likewise.
3026
827f100c
YQ
30272014-06-12 Pedro Alves <pedro@codesourcery.com>
3028 Yao Qi <yao@codesourcery.com>
3029
3030 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3031 gdb_python_initialized is false. Move some code from varobj.c.
3032 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3033 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3034 (struct varobj_item): Moved to varobj-iter.h".
3035 (varobj_clear_saved_item): New function.
3036 (update_dynamic_varobj_children): Move python-related code to
3037 py-varobj.c.
3038 (free_variable): Call varobj_clear_saved_item and
3039 varobj_iter_delete.
3040
e5250216
YQ
30412014-06-12 Pedro Alves <pedro@codesourcery.com>
3042 Yao Qi <yao@codesourcery.com>
3043
3044 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3045 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3046 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3047 (py-varobj.o): New rule.
3048 * python/py-varobj.c: New file.
3049 * python/python-internal.h (py_varobj_get_iterator): Declare.
3050 * varobj-iter.h: New file.
3051 * varobj.c: Include "varobj-iter.h"
3052 (struct varobj) <child_iter>: Change its type from "PyObject *"
3053 to "struct varobj_iter *".
3054 <saved_item>: Likewise.
3055 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3056 [HAVE_PYTHON] (varobj_get_iterator): New function.
3057 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3058 python-specific code to python/py-varobj.c.
3059 (install_visualizer): Call varobj_iter_delete instead of
3060 Py_XDECREF.
3061 * varobj.h (varobj_ensure_python_env): Declare.
3062
5a2e0d6e
YQ
30632014-06-12 Yao Qi <yao@codesourcery.com>
3064
3065 * varobj.c (struct varobj_item): New structure.
3066 (create_child_with_value): Update declaration.
3067 (varobj_add_child): Replace arguments 'name' and 'value' with
3068 'item'. All callers updated.
3069 (install_dynamic_child): Likewise.
3070 (update_dynamic_varobj_children): Likewise.
3071 (varobj_add_child): Likewise.
3072 (create_child_with_value): Likewise.
3073
919b9a93
JB
30742014-06-11 Joel Brobecker <brobecker@adacore.com>
3075
3076 * NEWS: Create a new section for the next release branch.
3077 Rename the section of the current branch, now that it has
3078 been cut.
3079
71a55bdf
JB
30802014-06-11 Joel Brobecker <brobecker@adacore.com>
3081
3082 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3083 * version.in: Bump version to 7.8.50.DATE-cvs.
3084
364fe1f7
PA
30852014-06-11 Pedro Alves <palves@redhat.com>
3086
3087 PR remote/17028
3088 * ser-mingw.c (net_windows_socket_check_pending): New function.
3089 (net_windows_select_thread): Ignore spurious wakeups. Use
3090 net_windows_socket_check_pending.
3091 (net_windows_wait_handle): Check for pending events with
3092 ioctlsocket, through net_windows_socket_check_pending, instead of
3093 checking the socket's event.
3094
5a6c7709
SC
30952014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3096
3097 * python/python-internal.h (gdb_PyObject_GetAttrString)
3098 (gdb_PyObject_HasAttrString): New inline function definitions.
3099 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3100 char * of the second argument to PyObject_GetAttrString.
74228e77 3101
0e58ee40
JB
31022014-06-10 Joel Brobecker <brobecker@adacore.com>
3103
3104 * serial.c (serial_write): Fix index of character to be printed
3105 in call to serial_logchar when serial debug traces are enabled.
3106
d190df30
JB
31072014-06-10 Joel Brobecker <brobecker@adacore.com>
3108
3109 * gdbtypes (resolve_dynamic_range): Add function description.
3110
b4b01d36
PA
31112014-06-09 Pedro Alves <palves@redhat.com>
3112
3113 * linux-nat.c (linux_child_follow_fork): Initialize status with
3114 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3115 inner block. Only pass the signal to PTRACE_DETACH if in pass
3116 state.
3117
3657956b
GB
31182014-06-09 Gary Benson <gbenson@redhat.com>
3119
3120 * common/signals.c (gdb_signal_from_host): Reorder to separate
3121 the always-available ANSI-standard signals from the signals that
3122 require checking.
3123 (do_gdb_signal_to_host): Likewise.
3124 * proc-events.c (signal_table): Likewise.
3125
c077881a
HZ
31262014-06-08 Hui Zhu <hui@codesourcery.com>
3127
3128 * common/linux-ptrace.c (linux_disable_event_reporting): New
3129 function.
3130 * common/linux-ptrace.h (linux_disable_event_reporting): New
3131 declaration.
3132 * linux-nat.c (linux_child_follow_fork): Do a single step before
3133 detach.
3134
4186eb54
KS
31352014-06-07 Keith Seitz <keiths@redhat.com>
3136
3137 Revert:
3138 PR c++/16253
3139 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3140 from symbol_matches_domain in symtab.c. All local callers
3141 of symbol_matches_domain updated.
3142 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3143 search STRUCT_DOMAIN.
3144 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3145 independently. standard_lookup will do that automatically.
3146 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3147 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3148 (cp_lookup_symbol_in_namespace): Likewise.
3149 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3150 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3151 may return a STRUCT_DOMAIN match.
3152 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3153 * cp-support.c: Include language.h.
3154 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3155 VAR_DOMAIN.
3156 * psymtab.c (match_partial_symbol): Compare the requested
3157 domain with the symbol's domain directly.
3158 (lookup_partial_symbol): Likewise.
3159 * symtab.c (lookup_symbol_in_language): Explain when/why
3160 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3161 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3162 appropriate languages.
3163 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3164 and moved to ada-lang.c
3165 (lookup_block_symbol): Explain that this function only returns
3166 symbol matching the requested DOMAIN.
3167 Compare the requested domain with the symbol's domain directly.
3168 (iterate_over_symbols): Compare the requested domain with the
3169 symbol's domain directly.
3170 * symtab.h (symbol_matches_domain): Remove.
3171
25326a28 31722014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3173
3174 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3175 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3176 (gdbscm_guile_version_is_at_least): Declare.
3177 (gdbscm_scm_string_to_int): Declare.
3178 * guile/guile.c (gdbscm_guile_major_version): New global.
3179 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3180 (guile_datadir): New static global.
3181 (gdbscm_guile_data_directory): New function.
3182 (initialize_scheme_side): Update.
3183 (misc_guile_functions): Add guile-data-directory.
3184 (initialize_gdb_module): Fetch guile version number.
3185 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3186 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3187 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3188 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3189 comments.
3190 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3191 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3192 * guile/scm-value.c (gdbscm_value_to_string): Only call
3193 scm_port_conversion_strategy if Guile version >= 2.0.6.
3194
0a770bb2 31952014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3196
3197 * main.c (print_gdb_help): Add -q and --silent.
3198
73ba372c
GB
31992014-06-06 Gary Benson <gbenson@redhat.com>
3200
3201 * common/signals.c: Remove preprocessor conditionals for
3202 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3203 SIGSEGV and SIGTERM.
3204 * proc-events.c: Likewise.
3205
c33b2f12
MM
32062014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3207
3208 * symfile.c (symfile_free_objfile): Remove restriction to
3209 OBJF_USERLOADED.
3210 * symfile-mem.c (symbol_file_add_from_memory): Call
3211 add_target_sections_of_objfile.
3212
fb934770
LC
32132014-06-05 Ludovic Courtès <ludo@gnu.org>
3214
3215 * guile/scm-value.c (gdbscm_history_append_x): Use
3216 'vlscm_get_value_smob_arg_unsafe' instead of
3217 'vlscm_scm_to_value'.
3218
6ef284bd
SM
32192014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3220
3221 PR mi/15806
3222 * utils.c (printchar): Don't escape at all if quoter is NUL.
3223 Update function documentation to clarify effect of parameter
3224 QUOTER.
3225 * remote.c (escape_buffer): Pass '\\' as the quoter to
3226 fputstrn_unfiltered.
3227 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3228 generate the output.
3229 (mi_solib_unloaded): Same.
3230
270c9937
JB
32312014-06-05 Joel Brobecker <brobecker@adacore.com>
3232
3233 * development.sh: Delete.
3234 * Makefile.in (config.status): Adjust dependency on development.sh.
3235 * configure.ac: Adjust development.sh source call.
3236 * configure: Regenerate.
3237
16f691fb
DE
32382014-06-04 Doug Evans <xdje42@gmail.com>
3239
3240 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3241 is_scheme_bkpt, spec.
3242 (bpscm_make_breakpoint_smob): Initialize new members.
3243 (gdbscm_create_breakpoint_x): Split into two ...
3244 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3245 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3246 (scheme_function breakpoint_functions): Update.
3247 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3248 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3249 register-breakpoint!.
3250
ef7cab6b
JB
32512014-06-04 Joel Brobecker <brobecker@adacorer.com>
3252
3253 PR server/17023
3254 * mem-break.c (z_type_supported): Return zero if
3255 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3256
012370f6
TT
32572014-06-04 Tom Tromey <tromey@redhat.com>
3258
3259 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3260 value_from_contents_and_address_unresolved.
3261 (ada_template_to_fixed_record_type_1): Likewise.
3262 (ada_which_variant_applies): Likewise.
3263 * value.h (value_from_contents_and_address_unresolved): Declare.
3264 * value.c (value_from_contents_and_address_unresolved): New
3265 function.
3266 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3267 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3268 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3269
92e2a17f
TT
32702014-06-04 Tom Tromey <tromey@redhat.com>
3271
3272 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3273
c0939df1
TT
32742014-06-04 Tom Tromey <tromey@redhat.com>
3275
3276 * procfs.c (procfs_attach): Make "args" const.
3277 * windows-nat.c (windows_attach): Make "args" const.
3278 * nto-procfs.c (procfs_attach): Make "args" const.
3279 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3280 * go32-nat.c (go32_attach): Make "args" const.
3281 * gnu-nat.c (gnu_attach): Make "args" const.
3282 * darwin-nat.c (darwin_attach): Make "args" const.
3283 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3284 * linux-nat.c (linux_nat_attach): Make "args" const.
3285 * remote.c (extended_remote_attach_1, extended_remote_attach):
3286 Make "args" const.
3287 * target.h (struct target_ops) <to_attach>: Make "args" const.
3288 (find_default_attach): Likewise.
3289 * utils.c (parse_pid_to_attach): Make "args" const.
3290 * utils.h (parse_pid_to_attach): Update.
3291
8eaff7cd
TT
32922014-06-04 Tom Tromey <tromey@redhat.com>
3293
3294 * target-delegates.c: Rebuild.
3295 * target.c (default_thread_address_space): New function.
3296 (target_thread_address_space): Simplify.
3297 * target.h (struct target_ops) <to_thread_address_space>: Add
3298 TARGET_DEFAULT_FUNC.
3299
1913f160
DE
33002014-06-04 Doug Evans <xdje42@gmail.com>
3301
3302 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3303
70ad5bff
MM
33042014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3305
3306 * record-btrace.c: Include event-loop.h and inf-loop.h.
3307 (record_btrace_resume_exec_dir)
3308 (record_btrace_async_inferior_event_handler)
3309 (record_btrace_handle_async_inferior_event): New.
3310 (record_btrace_open): Create async event handler.
3311 (record_btrace_close): Delete async event handler.
3312 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3313 Mark async event handler.
3314 (record_btrace_execution_direction): New.
3315 (init_record_btrace_ops): Initialize to_execution_direction.
3316
b6210538
DE
33172014-06-03 Doug Evans <xdje42@gmail.com>
3318
3319 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3320 (gdbscm_make_parameter): Ditto.
3321
a5b1fd27
DE
33222014-06-03 Doug Evans <dje@google.com>
3323
3324 * exec.c (exec_close_1): Call clear_section_table instead of
3325 resize_section_table.
3326 (clear_section_table): New function.
3327 (resize_section_table): Make static. Rename arg num_added to
3328 adjustment.
3329 * exec.h (clear_section_table): Declare.
3330 (resize_section_table): Delete.
3331 * progspace.c (release_program_space): Call clear_section_table
3332 instead of resize_section_table.
3333
0c6e92a5
SC
33342014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3335
3336 * NEWS (Python Scripting): Add entry about the new xmethods
3337 feature.
3338
883964a7
SC
33392014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3340
3341 * python/py-xmethods.c: New file.
3342 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3343 (objfpy_dealloc): XDECREF on the new xmethods field.
3344 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3345 field.
3346 (objfpy_get_xmethods): New function.
3347 (objfile_getset): New entry 'xmethods'.
3348 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3349 (pspy_dealloc): XDECREF on the new xmethods field.
3350 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3351 field.
3352 (pspy_get_xmethods): New function.
3353 (pspace_getset): New entry 'xmethods'.
3354 * python/python-internal.h: Add declarations for new functions.
3355 * python/python.c (_initialize_python): Invoke
3356 gdbpy_initialize_xmethods.
3357 * python/lib/gdb/__init__.py (xmethods): New
3358 attribute.
3359 * python/lib/gdb/xmethod.py: New file.
3360 * python/lib/gdb/command/xmethods.py: New file.
3361
58992dc5
SC
33622014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3363
3364 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3365 best match method returned by find_overload_match is an xmethod.
3366 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3367 the best matching operator returned by find_overload_match is an
3368 xmethod.
3369 * valops.c: #include "extension.h".
3370 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3371 Return void. The list of matching source methods is returned in
3372 "fn_list" and a vector of matching debug method workers is
3373 returned in "xm_worker_vec". Update all callers.
3374 (value_find_oload_method_list): Likewise.
3375 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3376 non-NULL, then the index of the best matching method in this
3377 vector is returned. Update all callers.
3378 (find_overload_match): Include xmethods while performing overload
3379 resolution.
3380
e81e7f5e
SC
33812014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3382
3383 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3384 * extension-priv.h (struct extension_language_ops): Add the
3385 xmethod interface.
3386 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3387 get_matching_xmethod_workers, get_xmethod_argtypes,
3388 invoke_xmethod, free_xmethod_worker,
3389 free_xmethod_worker_vec): New functions.
3390 * extension.h: #include "common/vec.h".
3391 New function declarations.
3392 (struct xmethod_worker): New struct.
3393 (VEC (xmethod_worker_ptr)): New vector type.
3394 (xmethod_worker_ptr): New typedef.
3395 (xmethod_worker_vec): Likewise.
3396 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3397 builtin_type.
3398 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3399 (struct builtin_type): New field "xmethod".
3400 * valarith.c (value_ptradd): Assert that the value argument is not
3401 lval_xcallable.
3402 * valops.c (value_must_coerce_to_target): Return 0 for
3403 lval_xcallable values.
3404 * value.c (struct value): New field XM_WORKER in the field
3405 LOCATION.
3406 (value_address, value_raw_address): Return 0 for lval_xcallable
3407 values.
3408 (set_value_address): Assert that the value is not an
3409 lval_xcallable.
3410 (value_free): Free the associated xmethod worker when freeing
3411 lval_xcallable values.
3412 (set_value_component_location): Assert that the WHOLE value is not
3413 lval_xcallable.
3414 (value_of_xmethod, call_xmethod): New functions.
3415 * value.h: Declare "struct xmethod_worker".
3416 Declare new functions value_of_xmethod, call_xmethod.
3417
ef370185
JB
34182014-06-03 Joel Brobecker <brobecker@adacore.com>
3419 Pedro Alves <palves@redhat.com>
3420
3421 PR breakpoints/17000
3422 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3423 New function, extracted from software_breakpoint_inserted_here_p.
3424 (software_breakpoint_inserted_here_p): Replace factored out code
3425 by call to find_non_raw_software_breakpoint_inserted_here.
3426 (bp_target_info_copy_insertion_state): New function.
3427 (bkpt_insert_location): Handle the case of a single-step
3428 breakpoint already inserted at the same address.
3429 (bkpt_remove_location): Handle the case of a single-step
3430 breakpoint still inserted at the same address.
3431 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3432 breakpoint already inserted at the same address.
3433 (deprecated_remove_raw_breakpoint): Handle the case of a
3434 non-raw breakpoint still inserted at the same address.
3435 (find_single_step_breakpoint): New function, extracted from
3436 single_step_breakpoint_inserted_here_p.
3437 (find_single_step_breakpoint): New function,
3438 factored out from single_step_breakpoint_inserted_here_p.
3439 (single_step_breakpoint_inserted_here_p): Reimplement.
3440
1e2ccb61
BM
34412014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3442
3443 Pushed by Joel Brobecker <brobecker@adacore.com>
3444 * source.c (show_substitute_path_command): Fix display of matching
3445 substitution rules.
3446
d3448d85
GB
34472014-06-03 Gary Benson <gbenson@redhat.com>
3448
3449 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3450
06eb1586
DE
34512014-06-02 Doug Evans <xdje42@gmail.com>
3452
3453 Add parameter support for Guile.
3454 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3455 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3456 (scm-param.o): New rule.
3457 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3458 (gdbscm_misc_error): Declare.
3459 (gdbscm_canonicalize_command_name): Declare.
3460 (gdbscm_scm_to_host_string): Declare.
3461 (gdbscm_scm_from_host_string): Declare.
3462 (gdbscm_initialize_parameters): Declare.
3463 * guile/guile.c (initialize_gdb_module): Call
3464 gdbscm_initialize_parameters.
3465 * guile/lib/gdb.scm: Export parameter symbols.
3466 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3467 cmdscm_canonicalize_name and made public. All callers updated.
3468 * guile/scm-exception.c (gdbscm_misc_error): New function.
3469 * guile/scm-param.c: New file.
3470 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3471 (gdbscm_scm_to_host_string): New function.
3472 (gdbscm_scm_from_host_string): New function.
3473 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3474
e698b8c4
DE
34752014-06-02 Doug Evans <xdje42@gmail.com>
3476
3477 Add command support for Guile.
3478 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3479 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3480 (scm-cmd.o): New rule.
3481 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3482 (gdbscm_user_error_p): Declare.
3483 (gdbscm_parse_command_name): Declare.
3484 (gdbscm_valid_command_class_p): Declare.
3485 (gdbscm_initialize_commands): Declare.
3486 * guile/guile.c (initialize_gdb_module): Call
3487 gdbscm_initialize_commands.
3488 * guile/lib/gdb.scm: Export command symbols.
3489 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3490 (throw-user-error): New function.
3491 * guile/scm-cmd.c: New file.
3492 * guile/scm-exception.c (user_error_symbol): New static global.
3493 (gdbscm_user_error_p): New function.
3494 (gdbscm_initialize_exceptions): Set user_error_symbol.
3495 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3496
fb1f94b0
PM
34972014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3498
3499 * top.c (command_loop): Handle comments here...
3500 (command_line_input): ... not here.
3501
ded03782
DE
35022014-06-02 Doug Evans <xdje42@gmail.com>
3503
3504 Add progspace support for Guile.
3505 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3506 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3507 (scm-progspace.o): New rule.
3508 * guile/guile-internal.h (pspace_smob): New typedef.
3509 (psscm_pspace_smob_pretty_printers): Declare.
3510 (psscm_pspace_smob_from_pspace): Declare.
3511 (psscm_scm_from_pspace): Declare.
3512 * guile/guile.c (initialize_gdb_module): Call
3513 gdbscm_initialize_pspaces.
3514 * guile/lib/gdb.scm: Export progspace symbols.
3515 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3516 support.
3517 (append-pretty-printer!): Ditto.
3518 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3519 Implement.
3520 * guile/scm-progspace.c: New file.
3521
397998fc
AM
35222014-06-03 Alan Modra <amodra@gmail.com>
3523
3524 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3525 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3526
6aa5f3a6
DE
35272014-06-02 Doug Evans <dje@google.com>
3528
3529 Add support for skeletonless type units.
3530 * dwarf2read.c (struct dwarf2_per_objfile): New member
3531 n_allocated_type_units.
3532 (struct dwarf2_per_objfile) <tu_stats>: New member
3533 nr_all_type_units_reallocs.
3534 (create_signatured_type_table_from_index): Initialize
3535 n_allocated_type_units
3536 (create_all_type_units): Ditto.
3537 (add_type_unit): Move up in file. New arg slot.
3538 All callers updated. Increase space for all_type_units more
3539 efficiently.
3540 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3541 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3542 (lookup_dwp_signatured_type): Ditto.
3543 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3544 All callers updated.
3545 (build_type_psymtabs_1): Leave type_unit_groups as
3546 NULL if no TUs present.
3547 (print_tu_stats): New function.
3548 (process_skeletonless_type_unit): New function.
3549 (process_dwo_file_for_skeletonless_type_units): New
3550 function.
3551 (process_skeletonless_type_units): New function.
3552 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3553 Call print tu_stats if debugging enabled.
3554
41fac0cf
PA
35552014-06-02 Pedro Alves <palves@redhat.com>
3556
3557 * breakpoint.c (build_target_command_list): Don't build a command
3558 list if we have any duplicate location that isn't a dprintf.
3559
cd1608cc
PA
35602014-06-02 Pedro Alves <palves@redhat.com>
3561
3562 * breakpoint.c (dprintf_breakpoint_hit): New function.
3563 (initialize_breakpoint_ops): Install it as dprintf's
3564 breakpoint_hit method.
3565
486ef3b9
JB
35662014-06-02 Joel Brobecker <brobecker@adacore.com>
3567
3568 * source.c (substitute_path_rule_matches): Simplify using
3569 filename_ncmp instead of FILENAME_CMP.
3570
230cd560
JB
35712014-06-02 Joel Brobecker <brobecker@adacore.com>
3572
3573 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3574
16954d5d
LC
35752014-06-01 Ludovic Courtès <ludo@gnu.org>
3576
3577 * configure.ac: When Guile is available, check for the
3578 availability of 'scm_new_smob'.
3579 * configure, config.h.in: Regenerate.
3580 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3581 function.
3582
53e8a631
AB
35832014-05-30 Andrew Burgess <aburgess@broadcom.com>
3584
3585 * frame.c (struct frame_info): Add stop_string field.
3586 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3587 (get_prev_frame_always): Old content moved into
3588 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3589 TRY_CATCH, handle MEMORY_ERROR exceptions.
3590 (frame_stop_reason_string): New function definition.
3591 * frame.h (unwind_stop_reason_to_string): Extend comment to
3592 mention frame_stop_reason_string.
3593 (frame_stop_reason_string): New function declaration.
3594 * stack.c (frame_info): Switch to frame_stop_reason_string.
3595 (backtrace_command_1): Switch to frame_stop_reason_string.
3596 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3597 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3598 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3599
70e38b8e
AB
36002014-05-30 Andrew Burgess <aburgess@broadcom.com>
3601
3602 * frame.c (frame_stop_reason_string): Rename to ...
3603 (unwind_stop_reason_to_string): this.
3604 * frame.h (frame_stop_reason_string): Rename to ...
3605 (unwind_stop_reason_to_string): this.
3606 * stack.c (frame_info): Update call to frame_stop_reason_string.
3607 (backtrace_command_1): Likewise.
3608 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3609 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3610
938f0e2f
AB
36112014-05-30 Andrew Burgess <aburgess@broadcom.com>
3612
3613 * frame.c (remove_prev_frame): New function.
3614 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3615 remove_prev_frame.
3616
a09dd441
PA
36172014-05-29 Pedro Alves <palves@redhat.com>
3618
3619 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3620 and make it const. When a single-step decays to a continue,
3621 clear 'step', not 'hw_step'. Pass whether the caller wanted
3622 to step to user_visible_resume_ptid, not what we ask the
3623 target to do.
3624
bdc36728
PA
36252014-05-29 Pedro Alves <palves@redhat.com>
3626
3627 * infrun.c (process_event_stop_test, handle_step_into_function)
3628 (handle_step_into_function_backward): Adjust.
3629 Don't set the even thread's stop_step and call stop_waiting before
3630 calling end_stepping_range. Instead do that ...
3631 (end_stepping_range): ... here. Take an ecs pointer parameter.
3632
22bcd14b
PA
36332014-05-29 Pedro Alves <palves@redhat.com>
3634
3635 * infrun.c (stop_stepping): Rename to ...
3636 (stop_waiting): ... this.
3637 (proceed): Update comment.
3638 (process_event_stop_test, handle_inferior_event)
3639 (handle_signal_stop, handle_step_into_function)
3640 (handle_step_into_function_backward): Update.
3641
4ae57c05
PA
36422014-05-29 Pedro Alves <palves@redhat.com>
3643
3644 * infcall.c (run_inferior_call): Don't check whether the current
3645 thread is running after the proceed call.
3646
329ea579
PA
36472014-05-29 Pedro Alves <palves@redhat.com>
3648 Tom Tromey <tromey@redhat.com>
3649
3650 * NEWS: Mention "maint set target-async", "set mi-async", and that
3651 background execution commands are now always available.
3652 * target.h (target_async_permitted): Update comment.
3653 * target.c (target_async_permitted, target_async_permitted_1):
3654 Default to 1.
3655 (set_target_async_command): Rename to ...
3656 (maint_set_target_async_command): ... this.
3657 (show_target_async_command): Rename to ...
3658 (maint_show_target_async_command): ... this.
3659 (_initialize_target): Adjust.
3660 * infcmd.c (prepare_execution_command): Make extern.
3661 * inferior.h (prepare_execution_command): Declare.
3662 * infrun.c (set_observer_mode): Leave target async alone.
3663 * mi/mi-interp.c (mi_interpreter_init): Install
3664 mi_on_sync_execution_done as sync_execution_done observer.
3665 (mi_on_sync_execution_done): New function.
3666 (mi_execute_command_input_handler): Don't print the prompt if we
3667 just started a synchronous command with an async target.
3668 (mi_on_resume): Check sync_execution before printing prompt.
3669 * mi/mi-main.h (mi_async_p): Declare.
3670 * mi/mi-main.c: Include gdbcmd.h.
3671 (mi_async_p): New function.
3672 (mi_async, mi_async_1): New globals.
3673 (set_mi_async_command, show_mi_async_command, mi_async): New
3674 functions.
3675 (exec_continue): Call prepare_execution_command.
3676 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3677 (mi_execute_async_cli_command): Use mi_async_p.
3678 (_initialize_mi_main): Install "set mi-async". Make
3679 "target-async" a deprecated alias.
3680
92bcb5f9
PA
36812014-05-29 Pedro Alves <palves@redhat.com>
3682
3683 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3684 (_initialize_cli_interp): Adjust.
3685 * event-loop.c: Include "observer.h".
3686 (start_event_loop): Notify 'command_error' observers instead of
3687 calling display_gdb_prompt. Remove FIXME comment.
3688 * event-top.c (display_gdb_prompt): Remove call into the
3689 interpreters.
3690 * inf-loop.c: Include "observer.h".
3691 (inferior_event_handler): Notify 'command_error' observers instead
3692 of calling display_gdb_prompt.
3693 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3694 observers instead of calling display_gdb_prompt.
3695 * interps.c (interp_set): Don't call display_gdb_prompt.
3696 (current_interp_display_prompt_p): Delete.
3697 * interps.h (interp_prompt_p): Delete declaration.
3698 (interp_prompt_p_ftype): Delete.
3699 (struct interp_procs) <prompt_proc_p>: Delete field.
3700 (current_interp_display_prompt_p): Delete declaration.
3701 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3702 (_initialize_mi_interp): Adjust.
3703 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3704 'command_error' observers.
3705 (tui_on_sync_execution_done, tui_on_command_error): New
3706 functions.
3707 (tui_display_prompt_p): Delete.
3708 (_initialize_tui_interp): Adjust.
3709
fd664c91
PA
37102014-05-29 Pedro Alves <palves@redhat.com>
3711
3712 PR gdb/13860
3713 * cli/cli-interp.c: Include infrun.h and observer.h.
3714 (cli_uiout, cli_interp): New globals.
3715 (cli_on_signal_received, cli_on_end_stepping_range)
3716 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3717 functions.
3718 (cli_interpreter_init): Install them as 'end_stepping_range',
3719 'signal_received' 'signal_exited', 'exited' and 'no_history'
3720 observers.
3721 (_initialize_cli_interp): Remove cli_interp local.
3722 * infrun.c (handle_inferior_event): Call the several stop reason
3723 observers instead of printing the stop reason directly.
3724 (end_stepping_range): New function.
3725 (print_end_stepping_range_reason, print_signal_exited_reason)
3726 (print_exited_reason, print_signal_received_reason)
3727 (print_no_history_reason): Make static, and add an uiout
3728 parameter. Print to that instead of to CURRENT_UIOUT.
3729 * infrun.h (print_end_stepping_range_reason)
3730 (print_signal_exited_reason, print_exited_reason)
3731 (print_signal_received_reason print_no_history_reason): New
3732 declarations.
3733 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3734 'mi_uiout'.
3735 <cli_uiout>: New field.
3736 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3737 uiout for CLI output. Install 'signal_received',
3738 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3739 observers.
3740 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3741 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3742 (mi_on_no_history): New functions.
3743 (ui_out_free_cleanup): Delete function.
3744 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3745 instead use the one already stored in the MI interpreter data.
3746 (mi_ui_out): Adjust.
3747 * tui/tui-interp.c: Include infrun.h and observer.h.
3748 (tui_interp): New global.
3749 (tui_on_signal_received, tui_on_end_stepping_range)
3750 (tui_on_signal_exited, tui_on_exited)
3751 (tui_on_no_history): New functions.
3752 (tui_init): Install them as 'end_stepping_range',
3753 'signal_received' 'signal_exited', 'exited' and 'no_history'
3754 observers.
3755 (_initialize_tui_interp): Delete tui_interp local.
3756
8817a6f2
PA
37572014-05-29 Pedro Alves <palves@redhat.com>
3758
3759 PR gdb/15713
3760 * linux-nat.c (linux_nat_resume_callback): Rename the second
3761 parameter to 'except'. Skip LP if it points to EXCEPT.
3762 (linux_nat_resume): Don't mark the event lwp as not stopped
3763 before resuming sibling lwps. Instead ask
3764 linux_nat_resume_callback to skip the event lwp. Mark it as not
3765 stopped after actually resuming it.
3766 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3767 resuming it.
3768 (wait_lwp): Mark the lwp as stopped here.
3769 (stop_wait_callback): Mark the lwp as not stopped right after
3770 resuming it. Don't mark lwps as stopped here.
3771 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3772 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3773
251bde03
PA
37742014-05-29 Pedro Alves <palves@redhat.com>
3775
3776 PR PR15693
3777 * infrun.c (resume): Determine how much to resume depending on
3778 whether the caller wanted a step, not whether we can hardware step
3779 the target. Mark all threads that we intend to run as running,
3780 unless we're calling an inferior function.
3781 (normal_stop): If the thread is running an infcall, don't finish
3782 thread state.
3783 * target.c (target_resume): Don't mark threads as running here.
3784
7f3c0343
JB
37852014-05-28 Joel Brobecker <brobecker@adacore.com>
3786
3787 * serial.c (_initialize_serial): Remove support for
3788 the "set remotebaud" and "show remotebaud" commands.
3789 * NEWS: Add entry documenting the removal of that command.
3790
ee34b3f9
YQ
37912014-05-28 Yao Qi <yao@codesourcery.com>
3792
3793 * charset.c: Fix typo in comments.
3794
add6c04d
GB
37952014-05-27 Gary Benson <gbenson@redhat.com>
3796
3797 * utils.c (internal_vproblem): Prompt for a bug report.
3798
92c48fc5
AW
37992014-05-26 Andy Wingo <wingo@igalia.com>
3800
3801 * guile/scm-arch.c (arscm_mark_arch_smob):
3802 * guile/scm-block.c (bkscm_mark_block_smob)
3803 (bkscm_mark_block_syms_progress_smob):
3804 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3805 * guile/scm-exception.c (exscm_mark_exception_smob):
3806 * guile/scm-frame.c (frscm_mark_frame_smob):
3807 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3808 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3809 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3810 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3811 (ppscm_mark_pretty_printer_worker_smob):
3812 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3813 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3814 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3815 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3816 mark functions.
3817 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3818 function.
3819
b2715b27
AW
38202014-05-26 Andy Wingo <wingo@igalia.com>
3821 Doug Evans <xdje42@gmail.com>
3822
3823 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3824 empty_base_class. All uses updated.
3825 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3826 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3827 Adapt all callers.
3828 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3829 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3830 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3831 (gdbscm_gsmob_has_property_p, add_property_name)
3832 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3833 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3834 (gdb-object-has-property?, gdb-object-properties): Remove.
3835 (gdb-object-kind): Renamed from gsmob-kind.
3836
214ab2da
AW
38372014-05-26 Andy Wingo <wingo@igalia.com>
3838
3839 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3840 * configure: Regenerate.
3841
589fdceb
MM
38422014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3843
3844 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3845
67b5c0c1
MM
38462014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3847
3848 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3849 (replay_memory_access_read_only, replay_memory_access_read_write)
3850 (replay_memory_access_types, replay_memory_access)
3851 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3852 (cmd_set_record_btrace, cmd_show_record_btrace)
3853 (cmd_show_replay_memory_access): New.
3854 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3855 (record_btrace_remove_breakpoint): Replace
3856 record_btrace_allow_memory_access with replay_memory_access.
3857 (_initialize_record_btrace): Add commands.
3858 * NEWS: Announce it.
3859
036cd381
RR
38602014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3861
3862 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3863
c77c1e42
RR
38642014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3865
3866 * MAINTAINERS (Write After Approval): Move self back from
3867 paper trail.
3868
45741a9c
PA
38692014-05-22 Pedro Alves <palves@redhat.com>
3870
3871 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3872 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3873 (disable_randomization, enum exec_direction_kind)
3874 (execution_direction, stop_registers, start_remote)
3875 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3876 (wait_for_inferior, normal_stop, get_last_target_status)
3877 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3878 (insert_step_resume_breakpoint_at_sal)
3879 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3880 (set_step_info, print_stop_event, signal_stop_state)
3881 (signal_print_state, signal_pass_state, signal_stop_update)
3882 (signal_print_update, signal_pass_update)
3883 (update_signals_program_target, clear_exit_convenience_vars)
3884 (displaced_step_dump_bytes, update_observer_mode)
3885 (signal_catch_update, gdb_signal_from_command): Move
3886 declarations ...
3887 * infrun.h: ... to this new file.
3888 * amd64-tdep.c: Include infrun.h.
3889 * annotate.c: Include infrun.h.
3890 * arch-utils.c: Include infrun.h.
3891 * arm-linux-tdep.c: Include infrun.h.
3892 * arm-tdep.c: Include infrun.h.
3893 * break-catch-sig.c: Include infrun.h.
3894 * breakpoint.c: Include infrun.h.
3895 * common/agent.c: Include infrun.h instead of inferior.h.
3896 * corelow.c: Include infrun.h.
3897 * event-top.c: Include infrun.h.
3898 * go32-nat.c: Include infrun.h.
3899 * i386-tdep.c: Include infrun.h.
3900 * inf-loop.c: Include infrun.h.
3901 * infcall.c: Include infrun.h.
3902 * infcmd.c: Include infrun.h.
3903 * infrun.c: Include infrun.h.
3904 * linux-fork.c: Include infrun.h.
3905 * linux-nat.c: Include infrun.h.
3906 * linux-thread-db.c: Include infrun.h.
3907 * monitor.c: Include infrun.h.
3908 * nto-tdep.c: Include infrun.h.
3909 * procfs.c: Include infrun.h.
3910 * record-btrace.c: Include infrun.h.
3911 * record-full.c: Include infrun.h.
3912 * remote-m32r-sdi.c: Include infrun.h.
3913 * remote-mips.c: Include infrun.h.
3914 * remote-notif.c: Include infrun.h.
3915 * remote-sim.c: Include infrun.h.
3916 * remote.c: Include infrun.h.
3917 * reverse.c: Include infrun.h.
3918 * rs6000-tdep.c: Include infrun.h.
3919 * s390-linux-tdep.c: Include infrun.h.
3920 * solib-irix.c: Include infrun.h.
3921 * solib-osf.c: Include infrun.h.
3922 * solib-svr4.c: Include infrun.h.
3923 * target.c: Include infrun.h.
3924 * top.c: Include infrun.h.
3925 * windows-nat.c: Include infrun.h.
3926 * mi/mi-interp.c: Include infrun.h.
3927 * mi/mi-main.c: Include infrun.h.
3928 * python/py-threadevent.c: Include infrun.h.
3929
98eb56a4
PA
39302014-05-22 Pedro Alves <palves@redhat.com>
3931
3932 * infrun.c (handle_inferior_event): Store the exit code for
3933 --return-child-result here, instead of ...
3934 (print_exited_reason): ... here.
3935
17b2616c
PA
39362014-05-21 Pedro Alves <palves@redhat.com>
3937
3938 PR gdb/13860
3939 * gdbthread.h (struct thread_control_state): New field
3940 `command_interp'.
3941 * infrun.c (follow_fork): Copy the new thread control field to the
3942 child fork thread.
3943 (clear_proceed_status_thread): Clear the new thread control field.
3944 (proceed): Set the new thread control field.
3945 * interps.h (command_interp): Declare.
3946 * interps.c (command_interpreter): New global.
3947 (command_interp): New function.
3948 (interp_exec): Set `command_interpreter' while here.
3949 * cli-out.c (cli_uiout_dtor): New function.
3950 (cli_ui_out_impl): Install it.
3951 * mi/mi-interp.c: Include cli-out.h.
3952 (mi_cmd_interpreter_exec): Add comment.
3953 (restore_current_uiout_cleanup): New function.
3954 (ui_out_free_cleanup): New function.
3955 (mi_on_normal_stop): If finishing an execution command started by
3956 a CLI command, or any kind of breakpoint-like event triggered,
3957 print the stop event to the output (CLI) stream.
3958 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3959
5166082f
PA
39602014-05-21 Pedro Alves <palves@redhat.com>
3961
3962 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3963 current source line having changed.
3964 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3965 * infrun.c (normal_stop): Adjust call to
3966 set_current_sal_from_frame.
3967 * source.c (clear_lines_listed_range): New function.
3968 (set_current_source_symtab_and_line, identify_source_line): Clear
3969 the lines listed range.
3970 (line_info): Handle the first "info line" after the current source
3971 line having changed.
3972 * stack.c (print_stack_frame): Remove center handling.
3973 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3974 center sal.line.
3975
c1ee2fb3
PA
39762014-05-21 Pedro Alves <palves@redhat.com>
3977
3978 * inf-child.c (inf_child_mourn_inferior): New function.
3979 * inf-child.h (inf_child_mourn_inferior): New declaration.
3980 * darwin-nat.c (darwin_mourn_inferior): Use
3981 inf_child_mourn_inferior.
3982 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3983 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3984 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3985 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3986 * windows-nat.c (windows_mourn_inferior): Likewise.
3987
5c6d4fb2
DE
39882014-05-21 Doug Evans <xdje42@gmail.com>
3989
250748cb 3990 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3991
4a2722c5
DE
39922014-05-21 Doug Evans <xdje42@gmail.com>
3993
17292b30 3994 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3995 (gdbscm_out_of_range_error): Ditto.
3996 (gdbscm_memory_error): Ditto.
250748cb
DE
3997 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3998 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3999 (gdbscm_out_of_range_error): Update.
4000 (gdbscm_memory_error): Update.
4001 (gdbscm_scm_to_target_string_unsafe): Delete.
4002
6a3cb8e8
PA
40032014-05-21 Pedro Alves <palves@redhat.com>
4004
4005 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4006 globals.
4007 (inf_child_open_target): New function.
4008 (inf_child_open): Use inf_child_open_target to push the target
4009 instead of erroring out.
4010 (inf_child_disconnect, inf_child_close)
4011 (inf_child_maybe_unpush_target): New functions.
4012 (inf_child_target): Install inf_child_disconnect and
4013 inf_child_close. Store a pointer to the returned object.
4014 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4015 declarations.
4016 * target.c (auto_connect_native_target): New global.
4017 (show_default_run_target): New function.
4018 (find_default_run_target): Return NULL if automatically connecting
4019 to the native target is disabled.
4020 (_initialize_target): Install set/show auto-connect-native-target.
4021 * NEWS: Mention "set auto-connect-native-target", and "target
4022 native".
4023 * linux-nat.c (super_close): New global.
4024 (linux_nat_close): Call super_close.
4025 (linux_nat_add_target): Store a pointer to the base class's
4026 to_close method.
4027 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4028 inf_child_maybe_unpush.
4029 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4030 already pushed.
4031 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4032 the inferior. Use inf_child_maybe_unpush_target.
4033 (inf_ttrace_attach): Don't push the target if it is already
4034 pushed.
4035 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4036 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4037 after mourning the inferior. Use inf_child_maybe_unpush_target.
4038 (darwin_attach_pid): Don't push the target if it is already
4039 pushed.
4040 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4041 mourning the inferior. Use inf_child_maybe_unpush_target.
4042 (gnu_detach): Use inf_child_maybe_unpush_target.
4043 * go32-nat.c (go32_create_inferior): Don't push the target if it
4044 is already pushed.
4045 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4046 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4047 (procfs_open): Rename to ...
4048 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4049 comments. Can target_preopen before changing node. Call
4050 inf_child_open_target to push the target explicitly.
4051 (procfs_attach): Don't push the target if it is already pushed.
4052 (procfs_detach): Use inf_child_maybe_unpush_target.
4053 (procfs_create_inferior): Don't push the target if it is already
4054 pushed.
4055 (nto_native_ops): New global.
4056 (procfs_open): Reimplement.
4057 (procfs_native_open): New function.
4058 (init_procfs_targets): Install procfs_native_open as to_open of
4059 "target native". Store a pointer to the "native" target in
4060 nto_native_ops.
4061 * procfs.c (procfs_attach): Don't push the target if it is already
4062 pushed.
4063 (procfs_detach): Use inf_child_maybe_unpush_target.
4064 (procfs_mourn_inferior): Only unpush the target after mourning the
4065 inferior. Use inf_child_maybe_unpush_target.
4066 (procfs_init_inferior): Don't push the target if it is already
4067 pushed.
4068 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4069 if it is already pushed.
4070
930ee1b1
PA
40712014-05-21 Pedro Alves <palves@redhat.com>
4072
4073 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4074 and "procfs" targets are now called "native" instead.
4075
1f5d1b13
PA
40762014-05-21 Pedro Alves <palves@redhat.com>
4077
4078 * go32-nat.c (go32_open): Delete.
4079 (go32_target): Don't override the to_open method.
4080
132f8e03
PA
40812014-05-21 Pedro Alves <palves@redhat.com>
4082
4083 * nto-procfs.c (procfs_can_run): New function.
4084 (nto_procfs_ops): New global.
4085 (init_procfs_targets): New, based on procfs_target. Install
4086 "target native" in addition to "target procfs".
4087 (_initialize_procfs): Call init_procfs_targets instead of adding
4088 the target here.
4089
03c136c3
PA
40902014-05-21 Pedro Alves <palves@redhat.com>
4091
4092 * windows-nat.c (windows_target): Don't override to_shortname,
4093 to_longname or to_doc.
4094
a635d0f3
PA
40952014-05-21 Pedro Alves <palves@redhat.com>
4096
4097 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4098 to_doc.
4099
4f9b5133
PA
41002014-05-21 Pedro Alves <palves@redhat.com>
4101
4102 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4103 to_shortname, to_longname or to_doc.
4104
bc85afde
PA
41052014-05-21 Pedro Alves <palves@redhat.com>
4106
4107 * go32-nat.c (go32_target): Don't override to_shortname,
4108 to_longname or to_doc.
4109
4ebfc96e
PA
41102014-05-21 Pedro Alves <palves@redhat.com>
4111
4112 * inf-child.c (inf_child_open): Remove mention of "child".
4113 (inf_child_target): Rename target to "native" instead of "child".
4114
2648dfed
AA
41152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4116
4117 * Makefile.in (SFILES): Delete "regset.c".
4118 (COMMON_OBS): Delete "regset.o".
4119 * regset.c: Remove.
4120 * regset.h (regset_alloc): Delete prototype.
4121
b13feb94
AA
41222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4123
4124 * sparc-linux-tdep.c (sparc32_linux_gregset)
4125 (sparc32_linux_fpregset): New static regset structures.
4126 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4127 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4128 'fpregset' fields.
4129 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4130 (sparc64_linux_fpregset): New static regset structures.
4131 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4132 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4133 New static regset structures.
4134 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4135 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4136 New static regset structures.
4137 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4138 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4139 New static regset structures.
4140 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4141 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4142 New static regset structures.
4143 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4144
b4fd25c9
AA
41452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4146
4147 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4148 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4149 register maps ("regmaps") from "*regset" to "*regmap". Do this
4150 for all regmap types and variables.
4151 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4152 (sparc32_linux_supply_core_gregset)
4153 (sparc32_linux_collect_core_gregset)
4154 (sparc32_linux_supply_core_fpregset)
4155 (sparc32_linux_collect_core_fpregset): Likewise.
4156 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4157 (sparc_gregmap, sparc_fpregmap): ... these.
4158 (sparc_supply_gregset, sparc_collect_gregset)
4159 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4160 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4161 (_initialize_sparc_nat): Rename regmaps.
4162 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4163 (sparc_gregmap, sparc_fpregmap): ... these.
4164 (sparc_supply_gregset, sparc_collect_gregset)
4165 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4166 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4167 Rename macros to...
4168 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4169 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4170 Likewise.
4171 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4172 Rename to...
4173 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4174 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4175 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4176 regmaps.
4177 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4178 (sparc32_bsd_fpregset): Rename to...
4179 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4180 (sparc32_bsd_fpregmap): ... these.
4181 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4182 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4183 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4184 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4185 (struct sparc_gregmap, struct sparc_fpregmap)
4186 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4187 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4188 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4189 (sparc32_supply_regset, sparc32_collect_gregset)
4190 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4191 prototypes.
4192 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4193 (sparc64_linux_ptrace_gregmap): ... this.
4194 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4195 (_initialize_sparc64_linux_nat): Rename regmaps.
4196 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4197 (sparc64_linux_core_gregmap): ... this.
4198 (sparc64_linux_supply_core_gregset)
4199 (sparc64_linux_collect_core_gregset)
4200 (sparc64_linux_supply_core_fpregset)
4201 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4202 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4203 (sparc64_sol2_fpregset): Rename to...
4204 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4205 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4206 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4207 regmaps.
4208 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4209 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4210 (sparc64_bsd_fpregset): Rename to...
4211 (struct sparc_gregmap, sparc64_sol2_gregmap)
4212 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4213 (sparc64_bsd_fpregmap): ... these.
4214 (sparc64_supply_gregset, sparc64_collect_gregset)
4215 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4216 prototypes.
4217 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4218 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4219 (sparc64fbsd_gregmap): ... this.
4220 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4221 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4222 Rename regmaps.
4223 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4224 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4225 (sparc64nbsd_collect_fpregset): Likewise.
4226 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4227 (sparc64nbsd_gregmap): ... this.
4228 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4229 regmaps.
4230 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4231 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4232 (sparc64obsd_gregmap): ... this.
4233 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4234 regmaps.
4235 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4236 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4237 (sparc32nbsd_gregmap): ... this.
4238 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4239 regmaps.
4240
8fea3224
AA
42412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4242
4243 * score-tdep.c (score7_linux_gregset): New static regset
4244 structure.
4245 (score7_linux_regset_from_core_section): Remove dynamic regset
4246 allocation.
4247 (score_gdbarch_init): Drop allocation of tdep structure.
4248 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4249
24534243
AA
42502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4251
4252 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4253 regset structures.
4254 (am33_regset_from_core_section): Remove dynamic regset
4255 allocations.
4256
b7195f27
AA
42572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4258
4259 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4260 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4261 structures.
4262 (mips_linux_regset_from_core_section): Remove dynamic regset
4263 allocations.
4264 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4265 'gregset64', 'fpregset', and 'fpregset64'.
4266 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4267 deleted tdep fields.
4268
ecc37a5a
AA
42692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4270
4271 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4272 regset structures.
4273 (amd64_regset_from_core_section): Remove dynamic regset
4274 allocations.
4275 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4276 structure.
4277 (amd64obsd_regset_from_core_section): Remove dynamic regset
4278 allocation.
4279 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4280 Likewise.
4281 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4282 x86-common regset supply function.
4283 * i386-tdep.c (i386_collect_gregset): Make static.
4284 (i386_gregset): New global regset structure.
4285 (i386_fpregset, i386_xstateregset): New static regset structures.
4286 (i386_regset_from_core_section): Remove dynamic regset
4287 allocations.
4288 (i386_gdbarch_init): Remove initialization of tdep fields
4289 'gregset', 'fpregset', and 'xstateregset'.
4290 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4291 'fpregset', and 'xstateregset'.
4292 (i386_collect_gregset): Remove prototype.
4293 (i386_gregset): New declaration.
4294 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4295 structure.
4296 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4297 allocation.
4298
b7611c43
AA
42992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4300
4301 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4302 (arm_linux_vfpregset): New static regset structures.
4303 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4304 regset structures.
4305 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4306 and 'vfpregset' fields.
4307
a069a2bd
AA
43082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4309
4310 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4311 (aarch64_linux_fpregset): New static regset structures.
4312 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4313 of regset structures.
4314 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4315 'fpregset' fields.
4316
09424cff
AA
43172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4318
4319 * regset.h (struct regset): Remove gdbarch field.
4320 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4321 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4322 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4323 Likewise.
4324 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4325 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4326 (ppc32_linux_vsxregset): Likewise.
4327 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4328 via the regcache instead of the regset.
4329 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4330 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4331 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4332 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4333 Likewise.
4334
3ca7dae4
AA
43352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4336
4337 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4338 Constify structures.
4339 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4340 (alphanbsd_aout_gregset): Likewise.
4341 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4342 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4343 Likewise.
4344 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4345 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4346 Likewise.
4347 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4348 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4349 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4350 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4351 * m88k-tdep.c (m88k_gregset): Likewise.
4352 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4353 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4354 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4355 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4356 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4357 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4358 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4359 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4360 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4361 Likewise.
4362 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4363 * sh-tdep.h (sh_corefile_gregset): Likewise.
4364 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4365 * vax-tdep.c (vax_gregset): Likewise.
4366
5876f503
JK
43672014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4368
4369 Fix TLS access for -static -pthread.
4370 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4371 (try_thread_db_load_1): Initialize it.
4372 (thread_db_get_thread_local_address): Call it if LM is zero.
4373 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4374 * target.h (struct target_ops) (to_get_thread_local_address): Add
4375 load_module_addr comment.
4376
0256a6ac
PA
43772014-05-21 Pedro Alves <palves@redhat.com>
4378
4379 * dcache.c (dcache_read_memory_partial): If reading the cache line
4380 fails, fallback to reading just the memory the caller wanted.
4381
227533ac
DE
43822014-05-20 Doug Evans <dje@google.com>
4383
4384 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4385 instead of get_current_arch.
4386
936d2992
PA
43872014-05-20 Pedro Alves <palves@redhat.com>
4388
4389 * NEWS: Mention that compare-sections now works with all targets.
4390
4391 * remote.c (PACKET_qCRC): New enum value.
4392 (remote_verify_memory): Don't send qCRC if the target has no
4393 execution. Use packet_support/packet_ok. If the target doesn't
4394 support the qCRC packet, fallback to a deep memory copy.
4395 (compare_sections_command): Say "target image" instead of "remote
4396 executable".
4397 (_initialize_remote): Add PACKET_qCRC to the list of config
4398 packets that have no associated command. Extend comment.
4399 * target.c (simple_verify_memory, default_verify_memory): New
4400 function.
4401 * target.h (struct target_ops) <to_verify_memory>: Default to
4402 default_verify_memory.
4403 (simple_verify_memory): New declaration.
4404 * target-delegates.c: Regenerate.
4405
e59fa00f
MM
44062014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4407
4408 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4409
f2205de0
HZ
44102014-05-20 Hui Zhu <hui@codesourcery.com>
4411 Yao Qi <yao@codesourcery.com>
4412
4413 PR backtrace/16558
4414 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4415 and change address of sp and pc.
4416
c4e54771
TT
44172014-05-19 Tom Tromey <tromey@redhat.com>
4418
4419 * gdbtypes.c (rank_function): Use XNEWVEC.
4420 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4421
73051182
DE
44222014-05-19 Doug Evans <dje@google.com>
4423
4424 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4425 build_type_unit_groups and moved closer to only caller. Remove
4426 arguments. All references updated. Remove outdated .gdb_index
4427 comment.
4428 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4429 build_type_psymtabs_1.
4430
8832e7e3
DE
44312014-05-19 Doug Evans <dje@google.com>
4432
4433 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4434 n_type_unit_groups, all_type_unit_groups. All uses removed.
4435 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4436 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4437 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4438 (add_type_unit_group_to_table): Delete.
4439
cd8ae15e
DE
44402014-05-19 Doug Evans <dje@google.com>
4441
4442 * eval.c (evaluate_subexp_standard): Add some comments.
4443
08f4850b
DE
44442014-05-17 Doug Evans <xdje42@gmail.com>
4445
4446 * progspace.c (remove_program_space): Delete, unused.
4447 * progspace.h (remove_program_space): Ditto.
4448
bed8455c
DE
44492014-05-17 Doug Evans <xdje42@gmail.com>
4450
4451 * inferior.c (prune_inferiors): Fix comment.
4452 (remove_inferior_command): Call prune_program_spaces.
4453
8d551b02
DE
44542014-05-16 Doug Evans <dje@google.com>
4455
4456 New command line option -D.
4457 * NEWS: Mention it.
4458 * main.c (set_gdb_data_directory): New function.
4459 (captured_main): Recognize -D. Flag error for --data-directory "".
4460 Call set_gdb_data_directory.
4461 (print_gdb_help): Print --data-directory, -D.
4462 * main.h (set_gdb_data_directory): Declare.
4463 * top.c (staged_gdb_datadir): New static global.
4464 (set_gdb_datadir): Call set_gdb_data_directory
4465 (show_gdb_datadir): New function.
4466 (init_main): Update init of data-directory parameter.
4467
18848e28
GF
44682014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4469
4470 Import the "dirfd" gnulib module.
4471 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4472 * gnulib/aclocal.m4: Update.
4473 * gnulib/config.in: Update.
4474 * gnulib/configure: Update.
4475 * gnulib/import/Makefile.am: Update.
4476 * gnulib/import/Makefile.in: Update.
4477 * gnulib/import/dirfd.c: New.
4478 * gnulib/import/m4/dirfd.m4: New.
4479 * gnulib/import/m4/gnulib-cache.m4: Update.
4480 * gnulib/import/m4/gnulib-comp.m4: Update.
4481
95c64f92
YQ
44822014-05-16 Pierre Muller <muller@sourceware.org>
4483 Yao Qi <yao@codesourcery.com>
4484
4485 * valprint.c (print_wchar): Move the code on checking whether
4486 W is a printable wide char to the default branch of switch
4487 statement below. Call wchar_printable instead of gdb_iswprint.
4488
cac395ea
TM
44892014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4490
19679eca 4491 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4492 ldr.w and ldrd instructions.
4493
83655187
DE
44942014-05-15 Doug Evans <dje@google.com>
4495
4496 * dwarf2read.c (read_structure_type): Delete outdated comments.
4497
dd756689
TT
44982014-05-14 Tom Tromey <tromey@redhat.com>
4499
4500 * macrocmd.c (print_macro_definition): Reindent.
4501
75ddda77
DE
45022014-05-13 Doug Evans <xdje42@gmail.com>
4503
4504 * python/py-cmd.c (cmdpy_completer): Add comment.
4505 (completers): Make const.
4506
b0f16a3e
SM
45072014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4508
4509 * infrun.c (resume): Remove should_resume (unused). Move up
4510 declaration of resume_ptid.
4511
033c3379
TT
45122014-05-13 Tom Tromey <tromey@redhat.com>
4513
4514 * language.h (unop_type_check): Remove.
4515 (binop_type_check): Don't declare.
4516
9b44a3a5
AA
45172014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4518
4519 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4520 call to regcache_raw_collect.
4521
303a33fa
SM
45222014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4523
4524 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4525 mi_console->quote as the quoting character.
4526
196100a0
SM
45272014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4528
4529 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4530
f989a1c8
TT
45312014-04-29 Tom Tromey <tromey@redhat.com>
4532
4533 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4534 "show debug varobj".
4535
9404b58f
KM
45362014-05-07 Kyle McMartin <kyle@redhat.com>
4537
4538 Pushed by Joel Brobecker <brobecker@adacore.com>.
4539 * aarch64-tdep.c (aarch64_software_single_step): New function.
4540 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4541 with aarch64_software_single_step.
4542
5e49ba57
JB
45432014-05-05 Joel Brobecker <brobecker@adacore.com>
4544
4545 GDB 7.7.1 released.
4546
c888a17d
KS
45472014-05-05 Keith Seitz <keiths@redhat.com>
4548
4549 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4550 variable or history value is successfully parsed.
4551
290a839c
YQ
45522014-05-05 Yao Qi <yao@codesourcery.com>
4553 Pedro Alves <palves@redhat.com>
4554
4555 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4556 address of blocks that intersects the requested range. Trim
4557 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4558 sections.
4559 * ctf.c (ctf_xfer_partial): Likewise.
4560
91256dc2
YQ
45612014-05-05 Yao Qi <yao@codesourcery.com>
4562
4563 * printcmd.c (display_command): Remove the check to
4564 target_has_execution.
4565
07284463
MK
45662014-05-03 Mark Kettenis <kettenis@gnu.org>
4567
4568 * ppcobsd-nat.c: Include "obsd-nat.h".
4569 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4570 add_target.
4571 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4572
30a1e6cc
SDJ
45732014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4574
4575 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4576 and 16-bit signed and unsigned arguments. Update comment.
4577 (stap_parse_probe_arguments): Extend code to handle such
4578 arguments. Use warning instead of complaint to notify about
4579 unrecognized bitness.
4580
f33da99a
SDJ
45812014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4582
4583 PR breakpoints/16889
4584 * stap-probe.c (stap_parse_probe_arguments): Simplify
4585 check for non-prefixed probes (i.e., probes whose
4586 arguments do not start with "N@"). Always set the
4587 argument type to a sane value.
4588
95cf3b38
DT
45892014-05-01 David Taylor <dtaylor@emc.com>
4590
4591 * remote.c (compare_sections_command): Add -r option to compare
4592 all loadable read-only sections.
4593
1cfdf534
SC
45942014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4595
4596 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4597 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4598 Update all callers.
4599 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4600 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4601 Remove unused CORE_ADDR argument. Update all callers.
4602
ca4f7f8b
PA
46032014-04-29 Pedro Alves <palves@redhat.com>
4604
4605 * remote.c (struct packet_config) <detect>: Extend comment.
4606 (add_packet_config_cmd): Don't set the config's detect or support
4607 fields here.
4608 (init_all_packet_configs): Also initialize the config's 'detect'
4609 field.
4610 (reset_all_packet_configs_support): New function.
4611 (remote_open_1): Call reset_all_packet_configs_support instead of
4612 init_all_packet_configs.
4613 (_initialize_remote): Initialize all packet configs. Assert that
4614 all packets have an associated command, except a few known
4615 outliers.
4616
11c1ba78
JB
46172014-04-28 Joel Brobecker <brobecker@adacore.com>
4618
4619 * dwarf2read.c (read_subrange_type): Handle dynamic
4620 DW_AT_lower_bound attributes.
4621
8739bc53
JB
46222014-04-28 Joel Brobecker <brobecker@adacore.com>
4623
4624 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4625 dynamic bounds before computing its upper bound.
4626 (ada_discrete_type_low_bound): Same as above with the lower bound.
4627
6f8a3220
JB
46282014-04-28 Joel Brobecker <brobecker@adacore.com>
4629
4630 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4631 range types. Adjust the array handling implementation to
4632 take advantage of this change.
4633 (resolve_dynamic_range): New function, mostly extracted from
4634 resolve_dynamic_bounds.
4635 (resolve_dynamic_array): New function, mostly extracted from
4636 resolve_dynamic_bounds.
4637 (resolve_dynamic_bounds): Delete.
4638 (resolve_dynamic_type): Reimplement. Add handling of
4639 TYPE_CODE_RANGE types.
4640
4d072ce4
JB
46412014-04-28 Joel Brobecker <brobecker@adacore.com>
4642
4643 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4644 handling of parallel ___XA types.
4645
52865325
JB
46462014-04-28 Joel Brobecker <brobecker@adacore.com>
4647
4648 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4649 unnecessary second call to static_unwrap_type.
4650
433e77fa
HZ
46512014-04-27 Hui Zhu <hui@codesourcery.com>
4652
4653 * stack.c (print_frame_info): Call do_gdb_disassembly with
4654 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4655
b51a69ee
DE
46562014-04-26 Doug Evans <xdje42@gmail.com>
4657
4658 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4659
7ae1a6a6
PA
46602014-04-25 Pedro Alves <palves@redhat.com>
4661
4662 PR server/16255
4663 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4664 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4665 and newline from built string.
4666 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4667 (linux_ptrace_attach_fail_reason): ... this.
4668 * linux-nat.c (linux_nat_attach): Adjust to use
4669 linux_ptrace_attach_fail_reason.
4670
4082afcc
PA
46712014-04-25 Pedro Alves <palves@redhat.com>
4672
4673 * remote.c (struct remote_state): Remove multi_process_aware,
4674 non_stop_aware, cond_tracepoints, cond_breakpoints,
4675 breakpoint_commands, fast_tracepoints, static_tracepoints,
4676 install_in_trace, disconnected_tracing,
4677 enable_disable_tracepoints, string_tracing, and
4678 augmented_libraries_svr4_read fields.
4679 (remote_multi_process_p): Move further below in the file.
4680 (struct packet_config): Add comments.
4681 (update_packet_config): Delete function.
4682 (show_packet_config_cmd): Use packet_config_support.
4683 (add_packet_config_cmd): Use NULL as set callback.
4684 (packet_ok): "set remote foo-packet"-style commands no longer
4685 change config->supported -- adjust.
4686 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4687 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4688 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4689 (PACKET_QNonStop, PACKET_multiprocess_feature)
4690 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4691 (PACKET_DisconnectedTracing_feature)
4692 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4693 (set_remote_protocol_packet_cmd): Delete function.
4694 (packet_config_support, packet_support): New functions.
4695 (set_remote_protocol_Z_packet_cmd): Don't call
4696 update_packet_config.
4697 (remote_query_attached, remote_pass_signals)
4698 (remote_program_signals, remote_threads_info)
4699 (remote_threads_extra_info, remote_start_remote): Use
4700 packet_support.
4701 (remote_start_remote): Use packet_config_support and
4702 packet_support.
4703 (init_all_packet_configs): Set all packets to unknown support,
4704 instead of calling update_packet_config.
4705 (remote_check_symbols): Use packet_support.
4706 (remote_supported_packet): Unconditionally set the packet config's
4707 support status.
4708 (remote_multi_process_feature, remote_non_stop_feature)
4709 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4710 (remote_breakpoint_commands_feature)
4711 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4712 (remote_install_in_trace_feature)
4713 (remote_disconnected_tracing_feature)
4714 (remote_enable_disable_tracepoint_feature)
4715 (remote_string_tracing_feature)
4716 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4717 (remote_protocol_features): Adjust to use remote_supported_packet
4718 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4719 "ConditionalTracepoints", "ConditionalBreakpoints",
4720 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4721 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4722 "EnableDisableTracepoints", and "tracenz".
4723 (remote_query_supported): Use packet_support.
4724 (remote_open_1): Adjust.
4725 (extended_remote_attach_1): Use packet_support. Switch on the
4726 result of packet_ok instead of checking whether the packet ended
4727 up disabled.
4728 (remote_vcont_resume): Use packet_support.
4729 (remote_resume, remote_stop_ns, fetch_register_using_p)
4730 (remote_prepare_to_store, store_register_using_P)
4731 (check_binary_download, remote_write_bytes): Use packet_support.
4732 (remote_vkill): Use packet_support. Switch on the result of
4733 packet_ok instead of checking whether the packet ended up
4734 disabled.
4735 (extended_remote_supports_disable_randomization): Use
4736 packet_support.
4737 (extended_remote_run): Switch on the result of packet_ok instead
4738 of checking whether the packet ended up disabled.
4739 (remote_insert_breakpoint, remote_remove_breakpoint)
4740 (remote_insert_watchpoint, remote_remove_watchpoint)
4741 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4742 packet_support.
4743 (remote_search_memory): Use packet_config_support.
4744 (remote_get_thread_local_address, remote_get_tib_address)
4745 (remote_hostio_send_command, remote_can_execute_reverse): Use
4746 packet_support.
4747 (remote_supports_cond_tracepoints)
4748 (remote_supports_cond_breakpoints)
4749 (remote_supports_fast_tracepoints)
4750 (remote_supports_static_tracepoints)
4751 (remote_supports_install_in_trace)
4752 (remote_supports_enable_disable_tracepoint)
4753 (remote_supports_string_tracing)
4754 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4755 the packet config says the feature is enabled or disabled.
4756 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4757 (remote_get_trace_status): Use packet_support.
4758 (remote_set_disconnected_tracing): Adjust to check whether the
4759 feature is enabled with packet_support.
4760 (remote_set_trace_buffer_size, remote_use_agent)
4761 (remote_can_use_agent, remote_supports_btrace): Use
4762 packet_support.
4763 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4764 Use packet_config_support.
4765 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4766 the packet config says the feature is enabled or disabled.
4767 (set_range_stepping): Use packet_support.
4768
bdb52a22
TT
47692014-04-25 Tom Tromey <tromey@redhat.com>
4770
4771 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4772 argument.
4773
e9475ead
SA
47742014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4775
4776 * NEWS: Mention support for C99 variable length arrays.
4777
82eacd52
JB
47782014-04-24 Joel Brobecker <brobecker@adacore.com>
4779
4780 * ada-lang.c (standard_exc): Expand introductory comment.
4781
01f9f808
MS
47822014-04-24 Michael Sturm <michael.sturm@mintel.com>
4783 Walfred Tedeschi <walfred.tedeschi@intel.com>
4784
4785 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4786 AVX512 registers.
4787 (amd64_linux_read_description): Add code to handle AVX512 xstate
4788 mask and return respective tdesc.
4789 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4790 and features/i386/x32-avx512-linux.c.
4791 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4792 (amd64_linux_core_read_description): Add code to handle AVX512
4793 xstate mask and return respective tdesc.
4794 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4795 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4796 calculation.
4797 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4798 (tdesc_amd64_avx512_linux): New prototype.
4799 (tdesc_x32_avx512_linux): Likewise.
4800 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4801 features/i386/x32-avx512.c.
4802 (amd64_ymm_avx512_names): New register names for pseudo
4803 registers YMM16-31.
4804 (amd64_ymmh_avx512_names): New register names for raw registers
4805 YMMH16-31.
4806 (amd64_k_names): New register names for K registers.
4807 (amd64_zmmh_names): New register names for ZMM raw registers.
4808 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4809 (amd64_xmm_avx512_names): New register names for XMM16-31
4810 registers.
4811 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4812 registers.
4813 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4814 if feature is present.
4815 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4816 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4817 (AMD64_NUM_REGS): Adjust to new number of registers.
4818 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4819 registers supplied via XSTATE by AVX512 registers.
4820 (i386_linux_read_description): Add case for AVX512.
4821 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4822 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4823 (i386_linux_core_read_description): Add case for AVX512.
4824 (i386_linux_init_abi): Install supported register note section
4825 for AVX512.
4826 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4827 AVX512.
4828 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4829 registers to be number of zmm7h + 1.
4830 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4831 * i386-tdep.c: Include features/i386/i386-avx512.c.
4832 (i386_zmm_names): Add ZMM pseudo register names array.
4833 (i386_zmmh_names): Add ZMM raw register names array.
4834 (i386_k_names): Add K raw register names array.
4835 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4836 registers. AVX512 has 16 more ZMM registers than there are YMM
4837 registers.
4838 (i386_zmmh_regnum_p): Add function to look up register number of
4839 ZMM raw registers.
4840 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4841 (i386_k_regnum_p): Likewise for K raw registers.
4842 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4843 registers added by AVX512.
4844 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4845 registers added by AVX512.
4846 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4847 added by AVX512.
4848 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4849 (i386_pseudo_register_name): Add ZMM pseudo registers.
4850 (i386_zmm_type): Construct and return vector registers type for ZMM
4851 registers.
4852 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4853 ZMM0-31 pseudo registers and K registers.
4854 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4855 and YMM16-31 registers from register cache.
4856 (i386_pseudo_register_write): Add code to write K, ZMM and
4857 YMM16-31 registers.
4858 (i386_register_reggroup_p): Add code to include/exclude AVX512
4859 registers in/from respective register groups.
4860 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4861 registers if feature is present in xcr0.
4862 (i386_gdbarch_init): Add code to initialize AVX512 feature
4863 variables in tdep structure, wire in pseudo registers and call
4864 initialize_tdesc_i386_avx512.
4865 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4866 variables.
4867 (i386_regnum): Add AVX512 registers.
4868 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4869 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4870 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4871 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4872 512 bits wide.
4873 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4874 (i386_ymm_avx512_regnum_p): Likewise.
4875 (i386_k_regnum_p): Likewise.
4876 (i386_zmm_regnum_p): Likewise.
4877 (i386_zmmh_regnum_p): Likewise.
4878 * i387-tdep.c : Update year in copyright notice.
4879 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4880 XSAVE buffer.
4881 (XSAVE_YMM_AVX512_ADDR): New macro.
4882 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4883 XSAVE buffer.
4884 (XSAVE_XMM_AVX512_ADDR): New macro.
4885 (xsave_avx512_k_offset): New table for K register offsets in
4886 XSAVE buffer.
4887 (XSAVE_AVX512_K_ADDR): New macro.
4888 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4889 in XSAVE buffer.
4890 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4891 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4892 buffer.
4893 (i387_collect_xsave): Add code to collect AVX512 registers from
4894 XSAVE buffer.
4895 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4896 of XMM16-31 registers.
4897 (I387_NUM_K_REGS): New define for number of K registers.
4898 (I387_K0_REGNUM): New define for K0 register number.
4899 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4900 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4901 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4902 registers.
4903 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4904 (I387_XMM16_REGNUM): New define for XMM16 register number.
4905 (I387_YMM0_REGNUM): New define for YMM0 register number.
4906 (I387_KEND_REGNUM): New define for last K register number.
4907 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4908 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4909 number.
4910 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4911 number.
4912 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4913 size.
4914 * features/Makefile: Add AVX512 related files.
4915 * features/i386/32bit-avx512.xml: New file.
4916 * features/i386/64bit-avx512.xml: Likewise.
4917 * features/i386/amd64-avx512-linux.c: Likewise.
4918 * features/i386/amd64-avx512-linux.xml: Likewise.
4919 * features/i386/amd64-avx512.c: Likewise.
4920 * features/i386/amd64-avx512.xml: Likewise.
4921 * features/i386/i386-avx512-linux.c: Likewise.
4922 * features/i386/i386-avx512-linux.xml: Likewise.
4923 * features/i386/i386-avx512.c: Likewise.
4924 * features/i386/i386-avx512.xml: Likewise.
4925 * features/i386/x32-avx512-linux.c: Likewise.
4926 * features/i386/x32-avx512-linux.xml: Likewise.
4927 * features/i386/x32-avx512.c: Likewise.
4928 * features/i386/x32-avx512.xml: Likewise.
4929 * regformats/i386/amd64-avx512-linux.dat: New file.
4930 * regformats/i386/amd64-avx512.dat: Likewise.
4931 * regformats/i386/i386-avx512-linux.dat: Likewise.
4932 * regformats/i386/i386-avx512.dat: Likewise.
4933 * regformats/i386/x32-avx512-linux.dat: Likewise.
4934 * regformats/i386/x32-avx512.dat: Likewise.
4935 * NEWS: Add note about new support for AVX512.
4936
4937
08351840
PA
49382014-04-23 Pedro Alves <palves@redhat.com>
4939
4940 * breakpoint.c (insert_bp_location): Tolerate errors if the
4941 breakpoint is set in a user-loaded objfile.
4942 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4943 location is marked shlib_disabled. If the breakpoint is set in a
4944 user-loaded objfile is a GDB-side memory breakpoint, validate it
4945 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4946 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4947 flag.
4948 * mem-break.c (memory_validate_breakpoint): New function.
4949 * objfiles.c (userloaded_objfile_contains_address_p): New
4950 function.
4951 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4952 * target.h (memory_validate_breakpoint): New declaration.
4953
076855f9
PA
49542014-04-23 Pedro Alves <palves@redhat.com>
4955
4956 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4957 the breakpoint is set in a shared library, only suppress
4958 errors for software breakpoints, not hardware breakpoints.
4959
483805cf
PA
49602014-04-22 Pedro Alves <palves@redhat.com>
4961
4962 * infrun.c (schedlock_applies): New function, factored out from
4963 find_thread_needs_step_over.
4964 (find_thread_needs_step_over): Use it.
4965 (switch_back_to_stepped_thread): Always clear trap_expected if the
4966 step over is finished. Return early if scheduler locking applies.
4967 Look for the stepping thread and a potential step-over thread with
4968 a single loop.
4969 (currently_stepping_or_nexting_callback): Delete.
4970
a75fef0e
NC
49712014-04-22 Nick Clifton <nickc@redhat.com>
4972
4973 * NEWS: Mention that ARM sim now supports tracing.
4974
48b6e87e
YQ
49752014-04-22 Yao Qi <yao@codesourcery.com>
4976
4977 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4978 to ...
4979 * tracefile.c (tracefile_fetch_registers): ... it. New
4980 function.
4981 * tracefile.h (tracefile_fetch_registers): Declare.
4982 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4983 tracefile_fetch_registers.
4984
17617f2d
EZ
49852014-04-19 Eli Zaretskii <eliz@gnu.org>
4986
4987 PR gdb/14018
4988 * windows-nat.c (thread_rec): Don't display a warning when
4989 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4990 fails for any reason, set th->suspended to -1, so that we don't
4991 try to resume such a thread. Also, don't return NULL in these
4992 cases, to avoid completely ruin the session due to "PC register is
4993 not available" error.
4994 (do_windows_fetch_inferior_registers): Check errors in
4995 GetThreadContext call.
4996 (windows_continue): Accept an additional argument KILLED; if not
4997 zero, ignore errors in the SetThreadContext call, since the
4998 inferior was killed and is shutting down.
4999 (windows_resume, get_windows_debug_event)
5000 (windows_create_inferior, windows_mourn_inferior)
5001 (windows_kill_inferior): All callers of windows_continue changed
5002 to adjust to its new calling sequence.
5003
5723a6fd
YQ
50042014-04-19 Yao Qi <yao@codesourcery.com>
5005
5006 * ctf.c (ctf_open): Call post_create_inferior.
5007
614d5099
YQ
50082014-04-19 Yao Qi <yao@codesourcery.com>
5009
5010 * ctf.c (handle_id): New static variable.
5011 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5012 value. Get the declaration of event "register" and get length
5013 of field "contents".
5014
dac3e710
YQ
50152014-04-19 Yao Qi <yao@codesourcery.com>
5016
5017 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5018
2bca57ba
SC
50192014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5020
5021 * valops.c (oload_method_static): Remove unnecessary argument
5022 METHOD. Update all callers.
5023
51d48146
PA
50242014-04-18 Pedro alves <palves@redhat.com>
5025 Tom Tromey <tromey@redhat.com>
5026
5027 PR backtrace/15558
5028 * frame.c (get_prev_frame_1): Rename to ...
5029 (get_prev_frame_always): ... this, and make extern. Adjust.
5030 (skip_artificial_frames): Use get_prev_frame_always.
5031 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5032 (get_frame_unwind_stop_reason): Adjust to rename.
5033 * frame.h (get_prev_frame_always): Declare.
5034 * inline-frame.c: Include frame.h.
5035 (inline_frame_this_id): Use get_prev_frame_always.
5036
1bdad2e0
TG
50372014-04-18 Tristan Gingold <gingold@adacore.com>
5038
5039 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5040 code by using bfd_mach_o_get_base_address.
5041
7ce16bd4
UW
50422014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5043
5044 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5045 (spu_ax_pseudo_register_collect): New function.
5046 (spu_ax_pseudo_register_push_stack): Likewise.
5047 (spu_dwarf_reg_to_regnum): Likewise.
5048 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5049
2ed3c037
UW
50502014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5051
5052 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5053 Replace FRAME argument with FRAME_ID.
5054 * gdbarch.c, gdbarch.h: Regenerate.
5055 * findvar.c (default_value_from_register): Add GDBARCH argument;
5056 replace FRAME by FRAME_ID. No longer call get_frame_id.
5057 (value_from_register): Update call to gdbarch_value_from_register.
5058 * value.h (default_value_from_register): Update prototype.
5059 * s390-linux-tdep.c (s390_value_from_register): Update interface
5060 and call to default_value_from_register.
5061 * spu-tdep.c (spu_value_from_register): Likewise.
5062
5063 * findvar.c (address_from_register): Remove TYPE argument.
5064 Do not call value_from_register; use gdbarch_value_from_register
5065 with null_frame_id instead.
5066 * value.h (address_from_register): Update prototype.
5067 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5068 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5069 address_from_register interface change.
5070
71e50e83
YQ
50712014-04-17 Yao Qi <yao@codesourcery.com>
5072
5073 * gdbtypes.h: Update comments to link to types and macros'
5074 definitions.
5075
7a23c549
SC
50762014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5077
5078 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5079
22869d73
KS
50802014-04-16 Keith Seitz <keiths@redhat.com>
5081
5082 PR gdb/15827
5083 * dwarf2read.c (skip_one_die): Check that all relative-offset
5084 sibling DIEs fall within range of the current reader's buffer.
5085 (read_partial_die): Likewise.
5086
c4f87ca6
KS
50872014-04-16 Keith Seitz <keiths@redhat.com>
5088
5089 PR c++/16597
5090 * cp-namespace.c (lookup_symbol_file): If the type name of
5091 `this' is NULL, return immediately.
5092
b50c8614
KS
50932014-04-14 Keith Seitz <keiths@redhat.com>
5094
5095 PR c++/16253
5096 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5097 from symbol_matches_domain in symtab.c. All local callers
5098 of symbol_matches_domain updated.
5099 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5100 search STRUCT_DOMAIN.
5101 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5102 independently. standard_lookup will do that automatically.
5103 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5104 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5105 (cp_lookup_symbol_in_namespace): Likewise.
5106 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5107 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5108 may return a STRUCT_DOMAIN match.
5109 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5110 * cp-support.c: Include language.h.
5111 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5112 VAR_DOMAIN.
5113 * psymtab.c (match_partial_symbol): Compare the requested
5114 domain with the symbol's domain directly.
5115 (lookup_partial_symbol): Likewise.
5116 * symtab.c (lookup_symbol_in_language): Explain when/why
5117 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5118 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5119 appropriate languages.
5120 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5121 and moved to ada-lang.c
5122 (lookup_block_symbol): Explain that this function only returns
5123 symbol matching the requested DOMAIN.
5124 Compare the requested domain with the symbol's domain directly.
5125 (iterate_over_symbols): Compare the requested domain with the
5126 symbol's domain directly.
5127 * symtab.h (symbol_matches_domain): Remove.
5128
3d567982
TT
51292014-04-14 Tom Tromey <tromey@redhat.com>
5130
5131 PR c++/15246:
5132 * c-exp.y (type_aggregate_p): New function.
5133 (qualified_name, classify_inner_name): Use it.
5134 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5135 and TYPE_TARGET_TYPE of an enum type.
5136 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5137 an enum type.
5138 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5139 handle TYPE_DECLARED_CLASS.
5140 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5141 types.
5142 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5143 * valops.c (enum_constant_from_type): New function.
5144 (value_aggregate_elt): Use it.
5145 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5146 TYPE_CODE_ENUM.
5147
c848d642
TT
51482014-04-14 Tom Tromey <tromey@redhat.com>
5149
5150 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5151 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5152 const.
5153 * value.h (value_aggregate_elt): Update.
5154
0626fc76
TT
51552014-04-14 Tom Tromey <tromey@redhat.com>
5156
5157 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5158
5ecaaa66
SA
51592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5160
5161 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5162 (evaluate_subexp_standard): Pass noside argument.
5163 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5164 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5165 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5166 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5167 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5168
1612e0c0
SA
51692014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5170
5171 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5172 points to a constant blob.
5173
c451ebe5
SA
51742014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5175
5176 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5177 property and store it as the high bound and flag the range accordingly.
5178 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5179 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5180 * gdbtypes.h (enum range_flags): New enum.
5181 (struct range_bounds): Add flags member.
5182
1d42e4c4
SA
51832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5184
5185 * c-typeprint.c (c_type_print_varspec_suffix): Added
5186 check for not yet resolved high bound. If unresolved, print
5187 "variable length" string to the console instead of random
5188 length.
5189
9f1f738a
SA
51902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5191
5192 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5193 value.
5194 (ada_template_to_fixed_record_type_1): Likewise.
5195 (ada_to_fixed_type_1): Likewise.
5196 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5197 (cp_print_value): Likewise.
5198 * d-valprint.c (dynamic_array_type): Likewise.
5199 * findvar.c (address_of_variable): Likewise.
5200 * jv-valprint.c (java_value_print): Likewise.
5201 * valops.c (value_ind): Likewise.
5202 * value.c (coerce_ref): Likewise.
5203
3c8452d4
SA
52042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5205
5206 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5207 value and retrieve the dynamic type size.
5208
4ad88275
SA
52092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5210
5211 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5212 passed to sizeof is dynamic evaluate the argument to compute the length.
5213
80180f79
SA
52142014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5215 Joel Brobecker <brobecker@adacore.com>
5216
5217 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5218 (dwarf2_evaluate_property): New function.
5219 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5220 * dwarf2read.c (attr_to_dynamic_prop): New function.
5221 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5222 attribute.
5223 * gdbtypes.c: Include dwarf2loc.h.
5224 (is_dynamic_type): New function.
5225 (resolve_dynamic_type): New function.
5226 (resolve_dynamic_bounds): New function.
5227 (get_type_length): New function.
5228 (check_typedef): Use get_type_length to compute type length.
5229 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5230 (TYPE_LOW_BOUND_KIND): New macro.
5231 (is_dynamic_type): New function prototype.
5232 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5233 to resolve dynamic properties of the type. Update comment.
5234 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5235
a1556843
RH
52362014-04-14 Richard Henderson <rth@redhat.com>
5237
5238 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5239
0be03e84
DE
52402014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5241 Doug Evans <xdje42@gmail.com>
5242
5243 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5244 dereference TYPE_CODE_REF values.
5245
6b662e19
JB
52462014-04-11 Joel Brobecker <brobecker@adacore.com>
5247
5248 Revert the following changes due to regressions:
5249
5250 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5251 (dwarf2_evaluate_property): New function.
5252 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5253 * dwarf2read.c (attr_to_dynamic_prop): New function.
5254 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5255 attribute.
5256 * gdbtypes.c: Include dwarf2loc.h.
5257 (is_dynamic_type): New function.
5258 (resolve_dynamic_type): New function.
5259 (resolve_dynamic_bounds): New function.
5260 (get_type_length): New function.
5261 (check_typedef): Use get_type_length to compute type length.
5262 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5263 (TYPE_LOW_BOUND_KIND): New macro.
5264 (is_dynamic_type): New function prototype.
5265 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5266 to resolve dynamic properties of the type. Update comment.
5267 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5268
5269 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5270 passed to sizeof is dynamic evaluate the argument to compute the length.
5271
5272 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5273 value and retrieve the dynamic type size.
5274
5275 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5276 (ada_template_to_fixed_record_type_1): Likewise.
5277 (ada_to_fixed_type_1): Likewise.
5278 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5279 (cp_print_value): Likewise.
5280 * d-valprint.c (dynamic_array_type): Likewise.
5281 * eval.c (evaluate_subexp_with_coercion): Likewise.
5282 * findvar.c (address_of_variable): Likewise.
5283 * jv-valprint.c (java_value_print): Likewise.
5284 * valops.c (value_ind): Likewise.
5285 * value.c (coerce_ref): Likewise.
5286
5287 * c-typeprint.c (c_type_print_varspec_suffix): Added
5288 check for not yet resolved high bound. If unresolved, print
5289 "variable length" string to the console instead of random
5290 length.
5291
5292 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5293 property and store it as the high bound and flag the range accordingly.
5294 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5295 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5296 * gdbtypes.h (enum range_flags): New enum.
5297 (struct range_bounds): Add flags member.
5298
5299 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5300 points to a constant blob.
5301
5302 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5303 (evaluate_subexp_standard): Pass noside argument.
5304 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5305 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5306 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5307 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5308 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5309
245a5f0b
KS
53102014-04-11 Keith Seitz <keiths@redhat.com>
5311
5312 PR c++/16675
5313 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5314 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5315 reference types.
5316
3bce8237
SA
53172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5318
5319 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5320 (evaluate_subexp_standard): Pass noside argument.
5321 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5322 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5323 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5324 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5325 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5326
92b09522
SA
53272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5328
5329 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5330 points to a constant blob.
5331
e1969afb
SA
53322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5333
5334 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5335 property and store it as the high bound and flag the range accordingly.
5336 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5337 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5338 * gdbtypes.h (enum range_flags): New enum.
5339 (struct range_bounds): Add flags member.
5340
b86138fb
SA
53412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5342
5343 * c-typeprint.c (c_type_print_varspec_suffix): Added
5344 check for not yet resolved high bound. If unresolved, print
5345 "variable length" string to the console instead of random
5346 length.
5347
bcd629a4
SA
53482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5349
5350 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5351 (ada_template_to_fixed_record_type_1): Likewise.
5352 (ada_to_fixed_type_1): Likewise.
5353 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5354 (cp_print_value): Likewise.
5355 * d-valprint.c (dynamic_array_type): Likewise.
5356 * eval.c (evaluate_subexp_with_coercion): Likewise.
5357 * findvar.c (address_of_variable): Likewise.
5358 * jv-valprint.c (java_value_print): Likewise.
5359 * valops.c (value_ind): Likewise.
5360 * value.c (coerce_ref): Likewise.
5361
04b19544
SA
53622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5363
5364 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5365 value and retrieve the dynamic type size.
5366
26cb189f
SA
53672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5368
5369 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5370 passed to sizeof is dynamic evaluate the argument to compute the length.
5371
37c1ab67
SA
53722014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5373
5374 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5375 (dwarf2_evaluate_property): New function.
5376 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5377 * dwarf2read.c (attr_to_dynamic_prop): New function.
5378 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5379 attribute.
5380 * gdbtypes.c: Include dwarf2loc.h.
5381 (is_dynamic_type): New function.
5382 (resolve_dynamic_type): New function.
5383 (resolve_dynamic_bounds): New function.
5384 (get_type_length): New function.
5385 (check_typedef): Use get_type_length to compute type length.
5386 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5387 (TYPE_LOW_BOUND_KIND): New macro.
5388 (is_dynamic_type): New function prototype.
5389 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5390 to resolve dynamic properties of the type. Update comment.
5391 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5392
729efb13
SA
53932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5394
5395 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5396 declaring high/low bounds and change uses accordingly. Call
5397 create_range_type instead of create_static_range_type.
5398 * gdbtypes.c (create_range_type): New function.
5399 (create_range_type): Convert bounds into struct bound_prop and pass
5400 them to create_range_type.
5401 * gdbtypes.h (struct bound_prop): New struct.
5402 (create_range_type): New function prototype.
5403 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5404 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5405 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5406 part of the bound.
5407 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5408
0c9c3474
SA
54092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5410
5411 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5412 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5413 * ada-lang.c: All uses of create_range_type updated.
5414 * coffread.c: All uses of create_range_type updated.
5415 * dwarf2read.c: All uses of create_range_type updated.
5416 * f-exp.y: All uses of create_range_type updated.
5417 * m2-valprint.c: All uses of create_range_type updated.
5418 * mdebugread.c: All uses of create_range_type updated.
5419 * stabsread.c: All uses of create_range_type updated.
5420 * valops.c: All uses of create_range_type updated.
5421 * valprint.c: All uses of create_range_type updated.
5422
9d497a19
PA
54232014-04-10 Pedro Alves <palves@redhat.com>
5424
5425 * breakpoint.c (single_step_breakpoints)
5426 (single_step_gdbarch): Move up in the file.
5427 (one_breakpoint_xfer_memory): New function, factored out from ...
5428 (breakpoint_xfer_memory): ... here. Also process single-step
5429 breakpoints.
5430
15a9128a
TG
54312014-04-09 Tristan Gingold <gingold@adacore.com>
5432
5433 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5434 comments.
5435 (darwin_decode_exception_message): Free port only after use.
5436
9c97a070
PL
54372014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5438
5439 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5440 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5441 when setting the size of call_length.
5442
7af389b8
SC
54432014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5444
5445 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5446 dereference TYPE_CODE_REF values.
5447
86ad98c3
JB
54482014-04-07 Joel Brobecker <brobecker@adacore.com>
5449
5450 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5451 end of warning message.
5452
b0aeadb3
DE
54532014-04-03 Doug Evans <dje@google.com>
5454
5455 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5456 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5457
5979d6b6
AM
54582014-04-02 Alan Modra <amodra@gmail.com>
5459
5460 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5461 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5462 (struct symbol_file_add_from_memory_args): Add size field.
5463 (find_vdso_size): New function.
5464 (add_vsyscall_page): Attempt to find vdso size.
5465
0d60c288
DE
54662014-04-01 Doug Evans <dje@google.com>
5467
5468 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5469
a41f2563
TG
54702014-04-01 Tristan Gingold <gingold@adacore.com>
5471
5472 * darwin-nat.c (darwin_encode_reply): Add prototype.
5473 (darwin_decode_exception_message): Reply to unknown inferiors.
5474 (darwin_decode_message): Handle message by id. Ignore message
5475 to unknown inferior.
5476 (darwin_wait): Discard unknown messages, add debug trace.
5477
11a865c8
DE
54782014-03-31 Doug Evans <dje@google.com>
5479
5480 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5481 comp_dir_string.
5482
770e7fc7
DE
54832014-03-31 Doug Evans <dje@google.com>
5484
5485 New option "set print symbol-loading".
5486 * NEWS: Mention it.
5487 * solib.c (solib_read_symbols): Only print symbol loading messages
5488 if requested.
5489 (solib_add): If symbol loading is in "brief" mode, notify user
5490 symbols are being loaded.
5491 (reload_shared_libraries_1): Ditto.
5492 * symfile.c (print_symbol_loading_off): New static global.
5493 (print_symbol_loading_brief): New static global.
5494 (print_symbol_loading_full): New static global.
5495 (print_symbol_loading_enums): New static global.
5496 (print_symbol_loading): New static global.
5497 (print_symbol_loading_p): New function.
5498 (symbol_file_add_with_addrs): Only print symbol loading messages
5499 if requested.
5500 (_initialize_symfile): Register "print symbol-loading" set/show
5501 command.
5502 * symfile.h (print_symbol_loading_p): Declare.
5503
c32c64b7
DE
55042014-03-30 Doug Evans <xdje42@gmail.com>
5505
5506 * infrun.c (set_last_target_status): New function.
5507 (handle_inferior_event): Call it.
5508
7c0bc051
DE
55092014-03-30 Doug Evans <xdje42@gmail.com>
5510
5511 * inferior.h (enum stop_kind): Improve comment.
5512
8776cfe9
JB
55132014-03-28 Joel Brobecker <brobecker@adacore.com>
5514
5515 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5516 a reference, strip the reference layer before calling
5517 the lang_ops value_has_mutated callback.
5518
410a0ff2
SDJ
55192014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5520
5521 Remove some globals from our parser.
5522 * language.c (unk_lang_parser): Add "struct parser_state"
5523 argument.
5524 * language.h (struct language_defn) <la_parser>: Likewise.
5525 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5526 (initialize_expout): Add "struct parser_state" argument.
5527 Rewrite function to use the parser state.
5528 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5529 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5530 write_exp_elt_longcst, write_exp_elt_dblcst,
5531 write_exp_elt_decfloatcst, write_exp_elt_type,
5532 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5533 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5534 write_dollar_variable): Likewise.
5535 (parse_exp_in_context_1): Use parser state.
5536 (insert_type_address_space): Add "struct parser_state" argument.
5537 Use parser state.
5538 (increase_expout_size): New function.
5539 * parser-defs.h: Forward declare "struct language_defn" and
5540 "struct parser_state".
5541 (expout, expout_size, expout_ptr): Remove extern declarations.
5542 (parse_gdbarch, parse_language): Rewrite macro declarations to
5543 accept the parser state.
5544 (struct parser_state): New struct.
5545 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5546 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5547 write_exp_elt_decfloatcst, write_exp_elt_type,
5548 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5549 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5550 write_exp_msymbol, write_dollar_variable,
5551 mark_struct_expression, insert_type_address_space): Add "struct
5552 parser_state" argument.
5553 (increase_expout_size): New function.
5554 * utils.c (do_clear_parser_state): New function.
5555 (make_cleanup_clear_parser_state): Likewise.
5556 * utils.h (make_cleanup_clear_parser_state): New function
5557 prototype.
5558 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5559 Update calls to write_exp* in order to pass the parser state.
5560 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5561 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5562 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5563 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5564 * stap-probe.c (stap_parse_register_operand): Likewise.
5565 (stap_parse_single_operand): Likewise.
5566 (stap_parse_argument_1): Likewise.
5567 (stap_parse_argument): Use parser state.
5568 * stap-probe.h: Include "parser-defs.h".
5569 (struct stap_parse_info) <pstate>: New field.
5570 * c-exp.y (parse_type): Rewrite to use parser state.
5571 (yyparse): Redefine to c_parse_internal.
5572 (pstate): New global variable.
5573 (parse_number): Add "struct parser_state" argument.
5574 (write_destructor_name): Likewise.
5575 (type_exp): Update calls to write_exp* and similars in order to
5576 use parser state.
5577 (exp1, exp, variable, qualified_name, space_identifier,
5578 typename, typebase): Likewise.
5579 (write_destructor_name, parse_number, lex_one_token,
5580 classify_name, classify_inner_name, c_parse): Add "struct
5581 parser_state" argument. Update function to use parser state.
5582 * c-lang.h: Forward declare "struct parser_state".
5583 (c_parse): Add "struct parser_state" argument.
5584 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5585 (yyparse): Redefine macro to ada_parse_internal.
5586 (pstate): New variable.
5587 (write_int, write_object_renaming, write_var_or_type,
5588 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5589 type_int, type_long, type_long_long, type_float, type_double,
5590 type_long_double, type_char, type_boolean, type_system_address):
5591 Add "struct parser_state" argument.
5592 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5593 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5594 var_or_type, aggregate, aggregate_component_list,
5595 positional_list, others, component_group,
5596 component_associations): Update calls to write_exp* and similar
5597 functions in order to use parser state.
5598 (ada_parse, write_var_from_sym, write_int,
5599 write_exp_op_with_string, write_object_renaming,
5600 find_primitive_type, write_selectors, write_ambiguous_var,
5601 write_var_or_type, write_name_assoc, type_int, type_long,
5602 type_long_long, type_float, type_double, type_long_double,
5603 type_char, type_boolean, type_system_address): Add "struct
5604 parser_state" argument. Adjust function to use parser state.
5605 * ada-lang.c (parse): Likewise.
5606 * ada-lang.h: Forward declare "struct parser_state".
5607 (ada_parse): Add "struct parser_state" argument.
5608 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5609 calls to both functions.
5610 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5611 parser state.
5612 (yyparse): Redefine macro to f_parse_internal.
5613 (pstate): New variable.
5614 (parse_number): Add "struct parser_state" argument.
5615 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5616 and similars in order to use parser state.
5617 (parse_number): Adjust code to use parser state.
5618 (yylex): Likewise.
5619 (f_parse): New function.
5620 * f-lang.h: Forward declare "struct parser_state".
5621 (f_parse): Add "struct parser_state" argument.
5622 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5623 parser state.
5624 (yyparse): Redefine macro for java_parse_internal.
5625 (pstate): New variable.
5626 (push_expression_name, push_expression_name, insert_exp): Add
5627 "struct parser_state" argument.
5628 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5629 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5630 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5631 PostIncrementExpression, PostDecrementExpression,
5632 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5633 UnaryExpressionNotPlusMinus, CastExpression,
5634 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5635 RelationalExpression, EqualityExpression, AndExpression,
5636 ExclusiveOrExpression, InclusiveOrExpression,
5637 ConditionalAndExpression, ConditionalOrExpression,
5638 ConditionalExpression, Assignment, LeftHandSide): Update
5639 calls to write_exp* and similars in order to use parser state.
5640 (parse_number): Ajust code to use parser state.
5641 (yylex): Likewise.
5642 (java_parse): New function.
5643 (push_variable): Add "struct parser_state" argument. Adjust
5644 code to user parser state.
5645 (push_fieldnames, push_qualified_expression_name,
5646 push_expression_name, insert_exp): Likewise.
5647 * jv-lang.h: Forward declare "struct parser_state".
5648 (java_parse): Add "struct parser_state" argument.
5649 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5650 parser state.
5651 (yyparse): Redefine macro to m2_parse_internal.
5652 (pstate): New variable.
5653 (type_exp, exp, fblock, variable, type): Update calls to
5654 write_exp* and similars to use parser state.
5655 (yylex): Likewise.
5656 (m2_parse): New function.
5657 * m2-lang.h: Forward declare "struct parser_state".
5658 (m2_parse): Add "struct parser_state" argument.
5659 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5660 * objc-lang.h: Forward declare "struct parser_state".
5661 (end_msglist): Add "struct parser_state" argument.
5662 * p-exp.y (parse_type): Rewrite macro to use parser state.
5663 (yyparse): Redefine macro to pascal_parse_internal.
5664 (pstate): New variable.
5665 (parse_number): Add "struct parser_state" argument.
5666 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5667 write_exp* and similars in order to use parser state.
5668 (parse_number, yylex): Adjust code to use parser state.
5669 (pascal_parse): New function.
5670 * p-lang.h: Forward declare "struct parser_state".
5671 (pascal_parse): Add "struct parser_state" argument.
5672 * go-exp.y (parse_type): Rewrite macro to use parser state.
5673 (yyparse): Redefine macro to go_parse_internal.
5674 (pstate): New variable.
5675 (parse_number): Add "struct parser_state" argument.
5676 (type_exp, exp1, exp, variable, type): Update calls to
5677 write_exp* and similars in order to use parser state.
5678 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5679 to use parser state.
5680 (go_parse): Likewise.
5681 * go-lang.h: Forward declare "struct parser_state".
5682 (go_parse): Add "struct parser_state" argument.
5683
342587c4
DE
56842014-03-27 Doug Evans <dje@google.com>
5685
5686 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5687
33e80786
DE
56882014-03-27 Doug Evans <dje@google.com>
5689
5690 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5691 Remove argument abbrev_section. All callers updated.
5692
1dbab08b
DE
56932014-03-27 Doug Evans <dje@google.com>
5694
5695 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5696 addr_base, ranges_base.
5697
318d3177
KS
56982014-03-26 Keith Seitz <keiths@redhat.com>
5699
5700 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5701 types, not VAR_DOMAIN.
5702
1e54db15
SL
57032014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5704
5705 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5706 "ra" registers.
5707 * features/nios2-linux.c: Regenerated.
5708 * features/nios2.c: Regenerated.
5709
d3839ede
PA
57102014-03-25 Pedro Alves <palves@redhat.com>
5711
5712 * cli/cli-script.c (script_from_file): Force the interpreter to
5713 sync mode.
5714
7588d2ec
PL
57152014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5716
5717 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5718 small stack allocation.
5719
a6290449
TG
57202014-03-24 Tristan Gingold <gingold@adacore.com>
5721
5722 * darwin-nat.c (exc_server): Remove unused prototype.
5723 (darwin_dump_message): Correctly display data on x86_64.
5724 (darwin_encode_reply): Fix style.
5725 Add comments and fix indentation.
5726
31ae9d24 57272014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5728
5729 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5730
6339bfc4
DE
57312014-03-22 Doug Evans <xdje42@gmail.com>
5732
5733 * infcmd.c: Whitespace fixes.
5734 (interrupt_command): Merge two function comments into one.
5735
0a07590b
DE
57362014-03-22 Doug Evans <xdje42@gmail.com>
5737
5738 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5739 All uses updated.
5740
b55fbac4
YQ
57412014-03-22 Yao Qi <yao@codesourcery.com>
5742
5743 * remote.c (target_read_live_memory): Remove.
5744 (memory_xfer_live_readonly_partial): Rename it to
5745 remote_xfer_live_readonly_partial. Remove argument 'object'.
5746 All callers updated. Call remote_read_bytes_1
5747 instead of target_read_live_memory.
5748 * tracepoint.c (set_traceframe_number): Remove.
5749 (make_cleanup_restore_traceframe_number): Likewise .
5750 * tracepoint.h (set_traceframe_number): Remove declaration.
5751 (make_cleanup_restore_traceframe_number): Likewise.
5752
9217e74e
YQ
57532014-03-22 Yao Qi <yao@codesourcery.com>
5754
5755 * remote.c (remote_read_bytes): Move code on reading from the
5756 remote stub to ...
5757 (remote_read_bytes_1): ... here. New function.
5758
8acf9577
YQ
57592014-03-22 Yao Qi <yao@codesourcery.com>
5760
5761 * ctf.c (ctf_xfer_partial): Check the return value of
5762 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5763 return TARGET_XFER_UNAVAILABLE.
5764 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5765 * target.c (target_read_live_memory): Move it to remote.c.
5766 (memory_xfer_live_readonly_partial): Likewise.
5767 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5768 * remote.c (target_read_live_memory): Moved from target.c.
5769 (memory_xfer_live_readonly_partial): Likewise.
5770 (remote_read_bytes): Factored out from
5771 memory_xfer_partial_1.
5772
feef67ab
DE
57732014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5774
5775 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5776 NULL pointer.
5777
b65dc60b
PA
57782014-03-21 Pedro Alves <palves@redhat.com>
5779
5780 * infrun.c (normal_stop): Extend comment.
5781
b4ab256d
HZ
57822014-03-21 Hui Zhu <hui@codesourcery.com>
5783 Pedro Alves <palves@redhat.com>
5784
5785 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5786 static buffer.
5787 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5788 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5789 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5790
deba7593
MR
57912014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5792
5793 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5794 `z' formatted output modifier.
5795
1bff71c3
SDJ
57962014-03-20 Tom Tromey <tromey@redhat.com>
5797 Sergio Durigan Junior <sergiodj@redhat.com>
5798
5799 * probe.c (parse_probes): Turn assert into an ordinary error.
5800 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5801 exceptions when parsing probes. Rearrange the code for clarity.
5802
90e28950
TT
58032014-03-20 Tom Tromey <tromey@redhat.com>
5804
5805 PR gdb/14135
5806 * top.c (execute_command): Only dispatch events if the command
5807 started the target.
5808
beb460e8
PA
58092014-03-20 Tom Tromey <tromey@redhat.com>
5810
5811 PR cli/15718
5812 * infcall.c: Include event-top.h.
5813 (run_inferior_call): Call async_disable_stdin if needed.
5814
99619bea
PA
58152014-03-20 Pedro Alves <palves@redhat.com>
5816
5817 * infrun.c (prepare_to_proceed): Delete.
5818 (thread_still_needs_step_over): New function.
5819 (find_thread_needs_step_over): New function.
5820 (proceed): If the current thread needs a step-over, set its
5821 steping_over_breakpoint flag. Adjust to use
5822 find_thread_needs_step_over instead of prepare_to_proceed.
5823 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5824 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5825 breakpoint.
5826 (switch_back_to_stepped_thread): Step over breakpoints of all
5827 threads not the stepping thread, before switching back to the
5828 stepping thread.
5829
2adfaa28
PA
58302014-03-20 Pedro Alves <palves@redhat.com>
5831
5832 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5833 extern.
5834 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5835 * infrun.c (saved_singlestep_ptid)
5836 (stepping_past_singlestep_breakpoint): Delete.
5837 (resume): Remove stepping_past_singlestep_breakpoint handling.
5838 (proceed): Store the prev_pc of the stepping thread too.
5839 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5840 singlestep_pc.
5841 (enum infwait_states): Delete infwait_thread_hop_state.
5842 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5843 field.
5844 (handle_inferior_event): Adjust.
5845 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5846 handling and the thread-hop code. Before removing single-step
5847 breakpoints, check whether the thread hit a single-step breakpoint
5848 of another thread. If it did, the trap is not a random signal.
5849 (switch_back_to_stepped_thread): If the event thread hit a
5850 single-step breakpoint, unblock it before switching to the
5851 stepping thread. Handle the case of the stepped thread having
5852 advanced already.
5853 (keep_going): Handle the case of the current thread moving past a
5854 single-step breakpoint.
5855
31e77af2
PA
58562014-03-20 Pedro Alves <palves@redhat.com>
5857
5858 PR breakpoints/7143
5859 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5860 are being stepped over.
5861 (breakpoint_address_match): Make extern.
5862 * breakpoint.h (breakpoint_address_match): New declaration.
5863 * inferior.h (stepping_past_instruction_at): New declaration.
5864 * infrun.c (struct step_over_info): New type.
5865 (step_over_info): New global.
5866 (set_step_over_info, clear_step_over_info)
5867 (stepping_past_instruction_at): New functions.
5868 (handle_inferior_event): Clear the step-over info when
5869 trap_expected is cleared.
5870 (resume): Remove now stale comment.
5871 (clear_proceed_status): Clear step-over info.
5872 (proceed): Adjust step-over handling to set or clear the step-over
5873 info instead of removing all breakpoints.
5874 (handle_signal_stop): When setting up a thread-hop, don't remove
5875 breakpoints here.
5876 (stop_stepping): Clear step-over info.
5877 (keep_going): Adjust step-over handling to set or clear step-over
5878 info and then always inserting breakpoints, instead of removing
5879 all breakpoints when stepping over one.
5880
b9f437de
PA
58812014-03-20 Pedro Alves <palves@redhat.com>
5882
5883 * infrun.c (previous_inferior_ptid): Adjust comment.
5884 (deferred_step_ptid): Delete.
5885 (infrun_thread_ptid_changed, prepare_to_proceed)
5886 (init_wait_for_inferior): Adjust.
5887 (handle_signal_stop): Delete deferred_step_ptid handling.
5888
06c868a8
JK
58892014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5890
5891 PR gdb/15358
5892 * defs.h (sync_quit_force_run): New declaration.
5893 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5894 * event-top.c (async_sigterm_handler): New declaration.
5895 (async_sigterm_token): New variable.
5896 (async_init_signals): Create also async_sigterm_token.
5897 (async_sigterm_handler): New function.
5898 (sync_quit_force_run): New variable.
5899 (handle_sigterm): Replace quit_force call by other calls.
5900 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5901
dea80df0
MR
59022014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5903
5904 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5905 offset into SPE pseudo registers.
5906
0c7e1a46
PA
59072014-03-18 Pedro Alves <palves@redhat.com>
5908
5909 PR gdb/13860
5910 * inferior.h (print_stop_event): Declare.
5911 * infrun.c (print_stop_event): New, factored out from ...
5912 (normal_stop): ... this.
5913 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5914 of bpstat_print/print_stack_frame.
5915
9c1fcd01
TT
59162014-03-17 Tom Tromey <tromey@redhat.com>
5917
5918 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5919
11aa919a
PMR
59202014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5921
5922 * ada-lang.c (decode_constrained_packed_array): Perform a
5923 minimal coercion for reference with coerce_ref instead of
5924 ada_coerce_ref.
5925
d4ccb5e0
TG
59262014-03-17 Tristan Gingold <gingold@adacore.com>
5927
5928 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5929 (darwin_solib_create_inferior_hook): Emit a warning if version
5930 is unhandled.
5931
49840f2a
UW
59322014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5933
5934 * python/py-value.c (get_field_flag): Cast flag_name argument to
5935 PyObject_GetAttrString to support Python 2.4.
5936
ed4123e5
JK
59372014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5938
5939 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5940 (Global Maintainers): Remove Jan Kratochvil.
5941
d6b64346
PA
59422014-03-14 Pedro Alves <palves@redhat.com>
5943
5944 * inferior.h (terminal_ours_for_output): Rename to ...
5945 (child_terminal_ours_for_output): ... this.
5946 (terminal_save_ours): Rename to ...
5947 (child_terminal_save_ours): ... this.
5948 (terminal_ours): Rename to ...
5949 (child_terminal_ours): ... this.
5950 (terminal_inferior): Rename to ...
5951 (child_terminal_inferior): ... this.
5952 (terminal_init_inferior): Rename to ...
5953 (child_terminal_init_inferior): ... this.
5954 (terminal_init_inferior_with_pgrp): Rename to ...
5955 (child_terminal_init_inferior_with_pgrp): ... this.
5956 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5957 (child_terminal_init_with_pgrp): ... this.
5958 (terminal_save_ours): Rename to ...
5959 (child_terminal_save_ours): ... this.
5960 (terminal_init_inferior): Rename to ...
5961 (child_terminal_init): ... this. Adjust.
5962 (terminal_inferior): Rename to ...
5963 (child_terminal_inferior): ... this.
5964 (terminal_ours_for_output): Rename to ...
5965 (child_terminal_ours_for_output): ... this. Adjust.
5966 (terminal_ours): Rename to ...
5967 (child_terminal_ours): ... this.
5968 (terminal_ours_1): Rename to ...
5969 (child_terminal_ours_1): ... this. Adjust.
5970 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5971 * windows-nat.c (do_initial_windows_stuff): Adjust.
5972 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5973 (gnu_terminal_init): ... this. Adjust.
5974 (gnu_target): Adjust.
5975 * inf-child.c (inf_child_target): Adjust.
5976
5a1e8c7a
DE
59772014-03-13 Doug Evans <xdje42@gmail.com>
5978
5979 PR guile/16612
5980 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5981 new eq?-hashtab.
5982
350e1a76
DE
59832014-03-13 Doug Evans <xdje42@gmail.com>
5984
5985 * value.c (record_latest_value): Call release_value_or_incref
5986 instead of release_value.
5987
a69900ae
PA
59882014-03-13 Pedro Alves <palves@redhat.com>
5989
5990 * procfs.c (procfs_target): Don't override to_shortname,
5991 to_longname or to_doc.
5992
5db9f0bd
PA
59932014-03-13 Pedro Alves <palves@redhat.com>
5994
5995 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5996 Unix in user visible strings.
5997
5e3a2c38
SS
59982014-03-12 Stan Shebs <stan@codesourcery.com>
5999
6000 * gdbtypes.h: Annotate comments for Doxygen, add a page
6001 block comment with some general info.
6002
8bc2fe48
PA
60032014-03-12 Pedro Alves <palves@redhat.com>
6004
6005 * infcmd.c (prepare_execution_command): New function, factored out
6006 from several execution commands.
6007 (run_command_1, continue_command, step_1, jump_command)
6008 (signal_command, until_command, advance_command, finish_command)
6009 (attach_command): Use prepare_execution_command.
6010
638c5f49
OJ
60112014-03-12 Omair Javaid <omair.javaid@linaro.org>
6012
6013 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6014 (MAX_BPTS): Define.
6015 (MAX_WPTS): Define.
6016 (struct arm_linux_thread_points): Removed.
6017 (struct arm_linux_process_info): New.
6018 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6019 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6020 (arm_linux_find_breakpoints_by_tid): Removed.
6021 (struct arch_lwp_info): New.
6022 (arm_linux_find_process_pid): New functions.
6023 (arm_linux_add_process): New functions.
6024 (arm_linux_process_info_get): New functions.
6025 (arm_linux_forget_process): New function.
6026 (arm_linux_get_debug_reg_state): New function.
6027 (struct update_registers_data): New.
6028 (update_registers_callback): New function.
6029 (arm_linux_insert_hw_breakpoint1): Updated.
6030 (arm_linux_remove_hw_breakpoint1): Updated.
6031 (arm_linux_insert_hw_breakpoint): Updated.
6032 (arm_linux_remove_hw_breakpoint): Updated.
6033 (arm_linux_insert_watchpoint): Updated.
6034 (arm_linux_remove_watchpoint): Updated.
6035 (arm_linux_new_thread): Updated.
6036 (arm_linux_prepare_to_resume): New function.
6037 (arm_linux_new_fork): New function.
6038 (_initialize_arm_linux_nat): Updated.
6039
6d03af93
PA
60402014-03-12 Pedro Alves <palves@redhat.com>
6041
6042 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6043
b3ccfe11
TT
60442014-03-12 Tom Tromey <tromey@redhat.com>
6045
6046 * inf-child.c (return_zero): New function.
6047 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6048 * aix-thread.c (aix_thread_inferior_created): New function.
6049 (aix_thread_attach): Remove.
6050 (init_aix_thread_ops): Don't set to_attach.
6051 (_initialize_aix_thread): Register inferior_created observer.
6052 * corelow.c (init_core_ops): Don't set to_attach or
6053 to_create_inferior.
6054 * exec.c (init_exec_ops): Don't set to_attach or
6055 to_create_inferior.
6056 * infcmd.c (run_command_1): Use find_run_target. Make direct
6057 target calls.
6058 (attach_command): Use find_attach_target. Make direct target
6059 calls.
6060 * record-btrace.c (init_record_btrace_ops): Don't set
6061 to_create_inferior.
6062 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6063 Remove.
6064 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6065 set to_create_inferior.
6066 * target.c (complete_target_initialization): Add assertion.
6067 (target_create_inferior): Remove.
6068 (find_default_attach, find_default_create_inferior): Remove.
6069 (find_attach_target, find_run_target): New functions.
6070 (find_default_is_async_p, find_default_can_async_p)
6071 (target_supports_non_stop, target_attach): Remove.
6072 (init_dummy_target): Don't set to_create_inferior or
6073 to_supports_non_stop.
6074 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6075 TARGET_DEFAULT_FUNC.
6076 <to_create_inferior>: Add comment.
6077 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6078 TARGET_DEFAULT_RETURN.
6079 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6080 (find_attach_target, find_run_target): Declare.
6081 (target_create_inferior): Remove.
6082 (target_has_execution_1): Update comment.
6083 (target_supports_non_stop): Remove.
6084 * target-delegates.c: Rebuild.
6085
91f83b02
PA
60862014-03-12 Pedro Alves <palves@redhat.com>
6087
6088 * inf-child.h: Update comment to not mention Unix.
6089
f1aea813
PA
60902014-03-12 Pedro Alves <palves@redhat.com>
6091
6092 * inf-child.c: Update top comment to not mention Unix. Add
6093 generic comment describing how this target is meant to be used.
6094 (inf_child_post_attach, inf_child_post_startup_inferior)
6095 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6096 Unix in comment.
6097
ee8e9165
PA
60982014-03-12 Pedro Alves <palves@redhat.com>
6099
6100 * nto-procfs.c: Include inf-child.h.
6101 (procfs_ops): Delete global.
6102 (procfs_can_run): Delete method.
6103 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6104 target pointer instead of referencing procfs_ops.
6105 (procfs_prepare_to_store): Delete.
6106 (init_procfs_ops): Delete function.
6107 (procfs_target): New function, based on init_procfs_ops, but
6108 inherit inf_child_target.
6109 (_initialize_procfs): Use procfs_target.
6110
51a9c8c5
PA
61112014-03-12 Pedro Alves <palves@redhat.com>
6112
6113 * windows-nat.c: Include inf-child.h.
6114 (windows_ops): Delete global.
6115 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6116 methods.
6117 (init_windows_ops): Delete function.
6118 (windows_target): New function, based on init_windows_ops, but
6119 inherit inf_child_target.
6120 (_initialize_windows_nat): Use windows_target. Install x86
6121 specific target methods here.
6122
c1966e26
DE
61232014-03-10 Doug Evans <xdje42@gmail.com>
6124
6125 * guile/guile.c (call_initialize_gdb_module): New function.
6126 (initialize_guile): Replace call to scm_init_guile with call to
6127 scm_with_guile.
6128
023db19c
JB
61292014-03-10 Joel Brobecker <brobecker@adacore.com>
6130
6131 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6132 in call to TYPE_CODE macro.
6133
5ec18f2b
JG
61342014-03-10 Jerome Guitton <guitton@adacore.com>
6135
8668be63
JB
6136 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6137 Resolve tagged types to full view.
5ec18f2b 6138
7d03f2eb
HZ
61392014-03-10 Hui Zhu <hui@codesourcery.com>
6140
6141 * target.h (target_insert_breakpoint): Remove "hardware" from its
6142 comments.
6143
c5164cbc
DE
61442014-03-07 Doug Evans <dje@google.com>
6145
6146 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6147
c4a3fee2
DE
61482014-03-07 Doug Evans <dje@google.com>
6149
6150 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6151 Remove unused local comp_dir_attr. Assert exactly one of
6152 stub_comp_unit_die, stub_comp_dir is non-NULL.
6153
3156469c
JB
61542014-03-07 Joel Brobecker <brobecker@adacore.com>
6155
6156 * target.h (complete_target_initialization, add_target):
6157 Add comment.
6158
c1a7b7c6
PA
61592014-03-07 Pedro Alves <palves@redhat.com>
6160
6161 * go32-nat.c: Include inf-child.h.
6162 (go32_ops): Delete global.
6163 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6164 Delete methods.
6165 (go32_create_inferior): Push the passed in target pointer instead
6166 of referencing go32_ops.
6167 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6168 (go32_target): New function, based on init_go32_ops, but inherit
6169 inf_child_target.
6170 (_initialize_go32_nat): Use go32_target. Move parts of
6171 init_go32_ops here.
6172
d3c1a85f
JB
61732014-03-06 Joel Brobecker <brobecker@adacore.com>
6174
6175 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6176 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6177 SYMBOL_VALUE_ADDRESS.
6178 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6179
5fa1d40e
YQ
61802014-03-06 Yao Qi <yao@codesourcery.com>
6181
6182 * breakpoint.c (get_tracepoint_by_number): Remove argument
6183 optional_p. All callers updated. Adjust comments. Update
6184 output message.
6185 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6186
0c13193f
YQ
61872014-03-06 Yao Qi <yao@codesourcery.com>
6188
6189 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6190 early if get_number returns zero. Use 'p' instead of 'args'.
6191
2217da06
YQ
61922014-03-06 Yao Qi <yao@codesourcery.com>
6193
6194 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6195 message.
6196
cc3da688
YQ
61972014-03-06 Yao Qi <yao@codesourcery.com>
6198
6199 PR breakpoints/16508
6200 * tracepoint.c (check_trace_running): New function.
6201 (trace_find_command): Move code to check_trace_running and
6202 call check_trace_running.
6203 (trace_find_pc_command): Likewise.
6204 (trace_find_tracepoint_command): Likewise.
6205 (trace_find_line_command): Likewise.
6206 (trace_find_range_command): Likewise.
6207 * tracepoint.h (check_trace_running): Likewise.
6208 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6209
6a5f844b
YQ
62102014-03-06 Yao Qi <yao@codesourcery.com>
6211
6212 * target.h (struct target_ops) <to_traceframe_info>: Use
6213 TARGET_DEFAULT_NORETURN (tcomplain ()).
6214 * target-delegates.c: Regenerated.
6215
0f26cec1
PA
62162014-03-05 Pedro Alves <palves@redhat.com>
6217
6218 PR gdb/16575
6219 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6220 void. Update comment.
6221 (dcache_xfer_memory): Delete.
6222 (dcache_read_memory_partial): New, based on the read bits of
6223 dcache_xfer_memory.
6224 (dcache_update): Add status parameter. Use ULONGEST for len, and
6225 adjust. Discard cache lines if the reason for the update was
6226 error.
6227 * dcache.h (dcache_xfer_memory): Delete declaration.
6228 (dcache_read_memory_partial): New declaration.
6229 (dcache_update): Update prototype.
6230 * target.c (raw_memory_xfer_partial): Update the dcache here.
6231 (memory_xfer_partial_1): Don't handle dcache writes here.
6232
b2b255bd
MF
62332014-03-05 Mike Frysinger <vapier@gentoo.org>
6234
6235 * remote-sim.c (gdbsim_load): Add const to prog.
6236
5d9cf8a4
TT
62372014-03-03 Tom Tromey <tromey@redhat.com>
6238
6239 * elfread.c (probe_key): Change to bfd_data.
6240 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6241 now per-BFD, not per-objfile.
6242 * stap-probe.c (stap_probe_destroy): Update comment.
6243 (handle_stap_probe): Allocate on the per-BFD obstack.
6244
729662a5
TT
62452014-03-03 Tom Tromey <tromey@redhat.com>
6246
6247 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6248 * breakpoint.c (create_longjmp_master_breakpoint): Use
6249 get_probe_address.
6250 (add_location_to_breakpoint, bkpt_probe_insert_location)
6251 (bkpt_probe_remove_location): Update.
6252 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6253 * elfread.c (elf_symfile_relocate_probe): Remove.
6254 (elf_probe_fns): Update.
6255 (insert_exception_resume_breakpoint): Change type of "probe"
6256 parameter to bound_probe.
6257 (check_exception_resume): Update.
6258 * objfiles.c (objfile_relocate1): Don't relocate probes.
6259 * probe.c (bound_probe_s): New typedef.
6260 (parse_probes): Use get_probe_address. Set sal's objfile.
6261 (find_probe_by_pc): Return a bound_probe.
6262 (collect_probes): Return a VEC(bound_probe_s).
6263 (compare_probes): Update.
6264 (gen_ui_out_table_header_info): Change type of "probes"
6265 parameter. Update.
6266 (info_probes_for_ops): Update.
6267 (get_probe_address): New function.
6268 (probe_safe_evaluate_at_pc): Update.
6269 * probe.h (struct probe_ops) <get_probe_address>: New field.
6270 <set_semaphore, clear_semaphore>: Add objfile parameter.
6271 (struct probe) <objfile>: Remove field.
6272 <arch>: New field.
6273 <address>: Update comment.
6274 (struct bound_probe): New.
6275 (find_probe_by_pc): Return a bound_probe.
6276 (get_probe_address): Declare.
6277 * solib-svr4.c (struct probe_and_action) <address>: New field.
6278 (hash_probe_and_action, equal_probe_and_action): Update.
6279 (register_solib_event_probe): Add address parameter.
6280 (solib_event_probe_at): Update.
6281 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6282 get_probe_address.
6283 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6284 (stap_get_probe_address): New function.
6285 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6286 (compile_probe_arg): Update.
6287 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6288 address.
6289 (handle_stap_probe): Don't relocate the probe.
6290 (stap_relocate): Remove.
6291 (stap_gen_info_probes_table_values): Update.
6292 (stap_probe_ops): Remove stap_relocate.
6293 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6294 (debug_sym_probe_fns): Update.
6295 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6296 * symtab.c (init_sal): Use memset.
6297 * symtab.h (struct symtab_and_line) <objfile>: New field.
6298 * tracepoint.c (start_tracing, stop_tracing): Update.
6299
ff887920
TT
63002014-03-03 Tom Tromey <tromey@redhat.com>
6301
6302 * probe.h (parse_probes, find_probe_by_pc)
6303 (find_probes_in_objfile): Fix comments.
6304
f0407826
DE
63052014-03-02 Doug Evans <xdje42@gmail.com>
6306
6307 * infrun.c (handle_signal_stop): Replace test for
6308 TARGET_WAITKIND_STOPPED with an assert.
6309
35e6a711
DE
63102014-03-02 Doug Evans <xdje42@gmail.com>
6311
6312 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6313
667f9d0b
DE
63142014-03-02 Doug Evans <xdje42@gmail.com>
6315
6316 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6317
dc92ace0
MK
63182014-03-01 Mark Kettenis <kettenis@gnu.org>
6319
6320 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6321
a900370f
MK
63222014-03-01 Mark Kettenis <kettenis@gnu.org>
6323
6324 * i386obsd-nat.c: Include "obsd-nat.h".
6325 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6326 add_target.
6327 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6328
b72a7981
MK
63292014-03-01 Mark Kettenis <kettenis@gnu.org>
6330
6331 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6332
96c70aba
MK
63332014-03-01 Mark Kettenis <kettenis@gnu.org>
6334
6335 * mips64obsd-nat.c: Include "obsd-nath".
6336 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6337 add_target
6338 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6339
874a80af
MK
63402014-03-01 Mark Kettenis <kettenis@gnu.org>
6341
8fd408f1
MK
6342 * amd64obsd-nat.c: Include "obsd-nat,h.
6343 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6344 add_target.
874a80af
MK
6345 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6346
9cf95373
SC
63472014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6348
6349 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6350 (find_overload_match): Update call to find_oload_champ.
6351 (find_oload_champ_namespace_loop): Likewise
6352
863e4da4
MK
63532014-02-28 Mark Kettenis <kettenis@gnu.org>
6354
025cac40
MK
6355 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6356
1ed586ce
MK
6357 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6358 * config/sparc/obsd64.mh: New file.
6359 * sparc64obsd-nat.c: New file.
6360
863e4da4
MK
6361 * obsd-nat.h: New file.
6362 * obsd-nat.c: New file.
6363 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6364 (ALLDEPFILES): Add obsd-nat.c.
6365
89de4da4
TT
63662014-02-28 Tom Tromey <tromey@redhat.com>
6367
6368 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6369 * cli-out.h (cli_ui_out_impl): Now const.
6370 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6371 * ui-out.c (struct ui_out) <impl>: Now const.
6372 (default_ui_out_impl): Now const.
6373 (ui_out_new): Make 'impl' parameter const.
6374 * ui-out.h (ui_out_new): Update.
6375
c725e7b6
MK
63762014-02-27 Mark Kettenis <kettenis@gnu.org>
6377
6378 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6379
670b46b3
MK
63802014-02-27 Mark Kettenis <kettenis@gnu.org>
6381
6382 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6383
c91550fc
JK
63842014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6385
6386 Additional PR 8882 fix.
6387 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6388
2fa0369e
PA
63892014-02-27 Pedro Alves <palves@redhat.com>
6390
6391 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6392 isn't set.
6393
d632a097
PA
63942014-02-27 Pedro Alves <palves@redhat.com>
6395
6396 PR 12702
6397 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6398 * nat/linux-waitpid.c: Include string.h.
6399 (status_to_str): Moved here and made extern.
6400 * nat/linux-waitpid.h (status_to_str): New declaration.
6401
2ebd5a35
HZ
64022014-02-27 Hui Zhu <hui@codesourcery.com>
6403
6404 PR 12702
6405 * infrun.c (ptid_match): Move ...
6406 * common/ptid.c (ptid_match): ... here.
6407 * inferior.h (ptid_match): Move ...
6408 * common/ptid.h (ptid_match): ... here.
6409
3cdd631f
MK
64102014-02-27 Mark Kettenis <kettenis@gnu.org>
6411
6412 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6413 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6414 gdb_target_obs.
6415
bee30a64
MK
64162014-02-27 Mark Kettenis <kettenis@gnu.org>
6417
6418 * obsd-tdep.c (obsd_auxv_parse): New function.
6419 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6420
6421 * gdbarch.sh (auxv_parse): New.
6422 * gdbarch.h: Regenerated.
6423 * gdbarch.c: Regenerated.
6424 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6425
7a5a839f
LC
64262014-02-26 Ludovic Courtès <ludo@gnu.org>
6427
6428 * guile/scm-value.c (gdbscm_history_append_x): New function.
6429 (value_functions): Add it.
6430
31aa7e4e
JB
64312014-02-27 Joel Brobecker <brobecker@adacore.com>
6432
6433 * dwarf2read.c (attr_value_as_address): New function.
6434 (dwarf2_find_base_address, read_call_site_scope): Use
6435 attr_value_as_address in place of DW_ADDR.
6436 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6437 the low and high addresses. Slight rework of the handling
6438 of the high pc being a constant form, and limit it to
6439 DWARF verson 4 or higher.
6440 (dwarf2_record_block_ranges): Likewise.
6441 (read_partial_die): Likewise.
6442 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6443
9b333ba3
TT
64442014-02-26 Tom Tromey <tromey@redhat.com>
6445
6446 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6447
5f6cac40
TT
64482014-02-26 Tom Tromey <tromey@redhat.com>
6449
6450 * elfread.c (elf_read_minimal_symbols): Return early if
6451 minimal symbols have already been read. Add "ei" parameter.
6452 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6453 * minsyms.c (prim_record_minimal_symbol_full): Update.
6454 * objfiles.h (struct objstats) <n_minsyms>: Move...
6455 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6456 * symmisc.c (print_objfile_statistics): Update.
6457
2750ef27
TT
64582014-02-26 Tom Tromey <tromey@redhat.com>
6459
6460 * elfread.c (elf_read_minimal_symbols): New function, from
6461 elf_symfile_read.
6462 (elf_symfile_read): Call it.
6463
34643a32
TT
64642014-02-26 Tom Tromey <tromey@redhat.com>
6465
6466 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6467 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6468 (lookup_minimal_symbol_solib_trampoline)
6469 (lookup_minimal_symbol_by_pc_section_1)
6470 (lookup_minimal_symbol_and_objfile): Update.
6471 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6472 Don't allocate a minimal symbol if minsyms have already been read.
6473 (build_minimal_symbol_hash_tables): Update.
6474 (install_minimal_symbols): Do nothing if minsyms already read.
6475 Use the per-BFD obstack.
6476 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6477 * objfiles.c (allocate_objfile): Call
6478 terminate_minimal_symbol_table later.
6479 (have_minimal_symbols): Update.
6480 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6481 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6482 Move from struct objfile.
6483 <minsyms_read>: New field.
6484 (struct objfile) <msymbols, minimal_symbol_count,
6485 msymbol_hash, msymbol_demangled_hash>: Move.
6486 (ALL_OBJFILE_MSYMBOLS): Update.
6487 * symfile.c (read_symbols): Set minsyms_read.
6488 (reread_symbols): Update.
6489 * symmisc.c (dump_objfile, dump_msymbols): Update.
6490
2273f0ac
TT
64912014-02-26 Tom Tromey <tromey@redhat.com>
6492
6493 * minsyms.c (msymbols_sort): Remove.
6494 * minsyms.h (msymbols_sort): Remove.
6495 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6496 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6497 * elfread.c (elf_symtab_read): Don't add section offsets.
6498 * xcoffread.c (record_minimal_symbol): Don't add section offset
6499 to minimal symbol address.
6500 * somread.c (text_offset, data_offset): Remove.
6501 (som_symtab_read): Don't add section offsets to minimal symbol
6502 addresses.
6503 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6504 Don't add section offsets to minimal symbols.
6505 * coffread.c (coff_symtab_read): Don't add section offsets
6506 to minimal symbol addresses.
6507 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6508 to minimal symbol addresses.
6509 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6510 section offset to minimal symbol addresses.
6511 * mdebugread.c (parse_partial_symbols): Don't add section
6512 offset to minimal symbol addresses.
6513 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6514 offset to minimal symbol addresses.
6515
77e371c0
TT
65162014-02-26 Tom Tromey <tromey@redhat.com>
6517
6518 * ada-lang.c (ada_main_name): Update.
6519 (ada_add_standard_exceptions): Update.
6520 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6521 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6522 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6523 * auxv.c (ld_so_xfer_auxv): Update.
6524 * avr-tdep.c (avr_scan_prologue): Update.
6525 * ax-gdb.c (gen_var_ref): Update.
6526 * blockframe.c (get_pc_function_start)
6527 (find_pc_partial_function_gnu_ifunc): Update.
6528 * breakpoint.c (create_overlay_event_breakpoint)
6529 (create_longjmp_master_breakpoint)
6530 (create_std_terminate_master_breakpoint)
6531 (create_exception_master_breakpoint): Update.
6532 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6533 * c-valprint.c (c_val_print): Update.
6534 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6535 * common/agent.c (agent_look_up_symbols): Update.
6536 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6537 * dwarf2loc.c (call_site_to_target_addr): Update.
6538 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6539 * elfread.c (elf_gnu_ifunc_record_cache)
6540 (elf_gnu_ifunc_resolve_by_got): Update.
6541 * findvar.c (default_read_var_value): Update.
6542 * frame.c (inside_main_func): Update.
6543 * frv-tdep.c (frv_frame_this_id): Update.
6544 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6545 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6546 Update.
6547 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6548 (hppa_hpux_find_dummy_bpaddr): Update.
6549 * hppa-tdep.c (hppa_symbol_address): Update.
6550 * infcmd.c (until_next_command): Update.
6551 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6552 Update.
6553 * linespec.c (minsym_found, add_minsym): Update.
6554 * linux-nat.c (get_signo): Update.
6555 * linux-thread-db.c (inferior_has_bug): Update.
6556 * m32c-tdep.c (m32c_return_value)
6557 (m32c_m16c_address_to_pointer): Update.
6558 * m32r-tdep.c (m32r_frame_this_id): Update.
6559 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6560 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6561 * maint.c (maintenance_translate_address): Update.
6562 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6563 (frob_address): New function.
6564 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6565 frob_address. Rename parameter to "pc_in".
6566 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6567 addresses.
6568 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6569 Update.
6570 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6571 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6572 * objc-lang.c (find_objc_msgsend): Update.
6573 * objfiles.c (objfile_relocate1): Update.
6574 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6575 * p-valprint.c (pascal_val_print): Update.
6576 * parse.c (write_exp_msymbol): Update.
6577 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6578 (ppc_elfv2_skip_entrypoint): Update.
6579 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6580 * printcmd.c (build_address_symbolic, msym_info)
6581 (address_info): Update.
6582 * proc-service.c (ps_pglobal_lookup): Update.
6583 * psymtab.c (find_pc_sect_psymtab_closer)
6584 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6585 Change msymbol parameter to bound_minimal_symbol.
6586 * ravenscar-thread.c (get_running_thread_id): Update.
6587 * remote.c (remote_check_symbols): Update.
6588 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6589 address.
6590 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6591 * solib-dsbt.c (lm_base): Update.
6592 * solib-frv.c (lm_base, main_got): Update.
6593 * solib-irix.c (locate_base): Update.
6594 * solib-som.c (som_solib_create_inferior_hook)
6595 (link_map_start): Update.
6596 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6597 * solib-svr4.c (elf_locate_base, enable_break): Update.
6598 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6599 (flush_ea_cache): Update.
6600 * stabsread.c (define_symbol, scan_file_globals): Update.
6601 * stack.c (find_frame_funname): Update.
6602 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6603 (debug_qf_find_pc_sect_symtab): Update.
6604 * symfile.c (simple_read_overlay_table)
6605 (simple_overlay_update): Update.
6606 * symfile.h (struct quick_symbol_functions)
6607 <find_pc_sect_symtab>: Change type of msymbol to
6608 bound_minimal_symbol.
6609 * symmisc.c (dump_msymbols): Update.
6610 * symtab.c (find_pc_sect_symtab_via_partial)
6611 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6612 (search_symbols, print_msymbol_info): Update.
6613 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6614 (MSYMBOL_VALUE_ADDRESS): Redefine.
6615 (BMSYMBOL_VALUE_ADDRESS): New macro.
6616 * tracepoint.c (scope_info): Update.
6617 * tui/tui-disasm.c (tui_find_disassembly_address)
6618 (tui_get_begin_asm_address): Update.
6619 * valops.c (find_function_in_inferior): Update.
6620 * value.c (value_static_field, value_fn_field): Update.
6621
3b7344d5
TT
66222014-02-26 Tom Tromey <tromey@redhat.com>
6623
6624 * ada-lang.c (ada_update_initial_language): Update.
6625 (ada_main_name, ada_has_this_exception_support): Update.
6626 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6627 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6628 * arm-tdep.c (arm_skip_stub): Update.
6629 * auxv.c (ld_so_xfer_auxv): Update.
6630 * avr-tdep.c (avr_scan_prologue): Update.
6631 * ax-gdb.c (gen_var_ref): Update.
6632 * breakpoint.c (struct breakpoint_objfile_data)
6633 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6634 type to bound_minimal_symbol.
6635 (create_overlay_event_breakpoint)
6636 (create_longjmp_master_breakpoint)
6637 (create_std_terminate_master_breakpoint)
6638 (create_exception_master_breakpoint): Update.
6639 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6640 * c-exp.y (classify_name): Update.
6641 * coffread.c (coff_symfile_read): Update.
6642 * common/agent.c (agent_look_up_symbols): Update.
6643 * d-lang.c (d_main_name): Update.
6644 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6645 * dec-thread.c (enable_dec_thread): Update.
6646 * dwarf2loc.c (call_site_to_target_addr): Update.
6647 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6648 * eval.c (evaluate_subexp_standard): Update.
6649 * findvar.c (struct minsym_lookup_data) <result>: Change type
6650 to bound_minimal_symbol.
6651 <objfile>: Remove.
6652 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6653 * frame.c (inside_main_func): Update.
6654 * frv-tdep.c (frv_frame_this_id): Update.
6655 * gcore.c (call_target_sbrk): Update.
6656 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6657 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6658 Update.
6659 * go-lang.c (go_main_name): Update.
6660 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6661 (hppa_hpux_find_import_stub_for_addr): Update.
6662 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6663 Update. Change return type.
6664 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6665 type.
6666 * jit.c (jit_breakpoint_re_set_internal): Update.
6667 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6668 Update.
6669 * linux-nat.c (get_signo): Update.
6670 * linux-thread-db.c (inferior_has_bug): Update
6671 * m32c-tdep.c (m32c_return_value)
6672 (m32c_m16c_address_to_pointer): Update.
6673 * m32r-tdep.c (m32r_frame_this_id): Update.
6674 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6675 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6676 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6677 lookup_minimal_symbol. Change return type.
6678 (lookup_minimal_symbol): Remove.
6679 (lookup_bound_minimal_symbol): Update.
6680 (lookup_minimal_symbol_text): Change return type.
6681 (lookup_minimal_symbol_solib_trampoline): Change return type.
6682 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6683 (lookup_minimal_symbol_solib_trampoline): Change return type.
6684 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6685 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6686 (value_nsstring, find_imps): Update.
6687 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6688 * p-lang.c (pascal_main_name): Update.
6689 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6690 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6691 * proc-service.c (ps_pglobal_lookup): Update.
6692 * ravenscar-thread.c (get_running_thread_msymbol): Change
6693 return type.
6694 (has_ravenscar_runtime, get_running_thread_id): Update.
6695 * remote.c (remote_check_symbols): Update.
6696 * sol-thread.c (ps_pglobal_lookup): Update.
6697 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6698 * solib-dsbt.c (lm_base): Update.
6699 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6700 Update.
6701 * solib-irix.c (locate_base): Update.
6702 * solib-som.c (som_solib_create_inferior_hook)
6703 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6704 Update.
6705 * solib-spu.c (spu_enable_break): Update.
6706 * solib-svr4.c (elf_locate_base, enable_break): Update.
6707 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6708 (flush_ea_cache): Update.
6709 * stabsread.c (define_symbol): Update.
6710 * symfile.c (simple_read_overlay_table): Update.
6711 * symtab.c (find_pc_sect_line): Update.
6712 * tracepoint.c (scope_info): Update.
6713 * tui-disasm.c (tui_get_begin_asm_address): Update.
6714 * value.c (value_static_field): Update.
6715
40c1a007
TT
67162014-02-26 Tom Tromey <tromey@redhat.com>
6717
6718 * minsyms.c (prim_record_minimal_symbol_full): Use
6719 SET_MSYMBOL_VALUE_ADDRESS.
6720 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6721 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6722 SET_MSYMBOL_VALUE_ADDRESS.
6723 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6724 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6725
efd66ac6
TT
67262014-02-26 Tom Tromey <tromey@redhat.com>
6727
6728 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6729 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6730 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6731 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6732 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6733 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6734 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6735 * ada-lang.c (ada_main_name): Update.
6736 (ada_lookup_simple_minsym): Update.
6737 (ada_make_symbol_completion_list): Update.
6738 (ada_add_standard_exceptions): Update.
6739 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6740 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6741 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6742 * arm-tdep.c (skip_prologue_function): Update.
6743 (arm_skip_stack_protector, arm_skip_stub): Update.
6744 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6745 (arm_wince_skip_main_prologue): Update.
6746 * auxv.c (ld_so_xfer_auxv): Update.
6747 * avr-tdep.c (avr_scan_prologue): Update.
6748 * ax-gdb.c (gen_var_ref): Update.
6749 * block.c (call_site_for_pc): Update.
6750 * blockframe.c (get_pc_function_start): Update.
6751 (find_pc_partial_function_gnu_ifunc): Update.
6752 * breakpoint.c (create_overlay_event_breakpoint): Update.
6753 (create_longjmp_master_breakpoint): Update.
6754 (create_std_terminate_master_breakpoint): Update.
6755 (create_exception_master_breakpoint): Update.
6756 (resolve_sal_pc): Update.
6757 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6758 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6759 Update.
6760 * c-valprint.c (c_val_print): Update.
6761 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6762 * coffread.c (coff_symfile_read): Update.
6763 * common/agent.c (agent_look_up_symbols): Update.
6764 * dbxread.c (find_stab_function_addr): Update.
6765 (end_psymtab): Update.
6766 * dwarf2loc.c (call_site_to_target_addr): Update.
6767 (func_verify_no_selftailcall): Update.
6768 (tailcall_dump): Update.
6769 (call_site_find_chain_1): Update.
6770 (dwarf_expr_reg_to_entry_parameter): Update.
6771 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6772 (elf_gnu_ifunc_resolve_by_got): Update.
6773 * f-valprint.c (info_common_command): Update.
6774 * findvar.c (read_var_value): Update.
6775 * frame.c (get_prev_frame_1): Update.
6776 (inside_main_func): Update.
6777 * frv-tdep.c (frv_skip_main_prologue): Update.
6778 (frv_frame_this_id): Update.
6779 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6780 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6781 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6782 (gnuv3_skip_trampoline): Update.
6783 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6784 (hppa64_hpux_in_solib_call_trampoline): Update.
6785 (hppa_hpux_skip_trampoline_code): Update.
6786 (hppa64_hpux_search_dummy_call_sequence): Update.
6787 (hppa_hpux_find_import_stub_for_addr): Update.
6788 (hppa_hpux_find_dummy_bpaddr): Update.
6789 * hppa-tdep.c (hppa_symbol_address)
6790 (hppa_lookup_stub_minimal_symbol): Update.
6791 * i386-tdep.c (i386_skip_main_prologue): Update.
6792 (i386_pe_skip_trampoline_code): Update.
6793 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6794 * infcall.c (get_function_name): Update.
6795 * infcmd.c (until_next_command): Update.
6796 * jit.c (jit_breakpoint_re_set_internal): Update.
6797 (jit_inferior_init): Update.
6798 * linespec.c (minsym_found): Update.
6799 (add_minsym): Update.
6800 * linux-fork.c (info_checkpoints_command): Update.
6801 * linux-nat.c (get_signo): Update.
6802 * linux-thread-db.c (inferior_has_bug): Update.
6803 * m32c-tdep.c (m32c_return_value): Update.
6804 (m32c_m16c_address_to_pointer): Update.
6805 (m32c_m16c_pointer_to_address): Update.
6806 * m32r-tdep.c (m32r_frame_this_id): Update.
6807 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6808 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6809 * maint.c (maintenance_translate_address): Update.
6810 * minsyms.c (add_minsym_to_hash_table): Update.
6811 (add_minsym_to_demangled_hash_table): Update.
6812 (msymbol_objfile): Update.
6813 (lookup_minimal_symbol): Update.
6814 (iterate_over_minimal_symbols): Update.
6815 (lookup_minimal_symbol_text): Update.
6816 (lookup_minimal_symbol_by_pc_name): Update.
6817 (lookup_minimal_symbol_solib_trampoline): Update.
6818 (lookup_minimal_symbol_by_pc_section_1): Update.
6819 (lookup_minimal_symbol_and_objfile): Update.
6820 (prim_record_minimal_symbol_full): Update.
6821 (compare_minimal_symbols): Update.
6822 (compact_minimal_symbols): Update.
6823 (build_minimal_symbol_hash_tables): Update.
6824 (install_minimal_symbols): Update.
6825 (terminate_minimal_symbol_table): Update.
6826 (find_solib_trampoline_target): Update.
6827 (minimal_symbol_upper_bound): Update.
6828 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6829 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6830 (mips_skip_pic_trampoline_code): Update.
6831 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6832 * objc-lang.c (selectors_info): Update.
6833 (classes_info): Update.
6834 (find_methods): Update.
6835 (find_imps): Update.
6836 (find_objc_msgsend): Update.
6837 * objfiles.c (objfile_relocate1): Update.
6838 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6839 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6840 * p-valprint.c (pascal_val_print): Update.
6841 * parse.c (write_exp_msymbol): Update.
6842 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6843 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6844 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6845 * printcmd.c (build_address_symbolic): Update.
6846 (sym_info): Update.
6847 (address_info): Update.
6848 * proc-service.c (ps_pglobal_lookup): Update.
6849 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6850 (find_pc_sect_psymtab): Update.
6851 * python/py-framefilter.c (py_print_frame): Update.
6852 * ravenscar-thread.c (get_running_thread_id): Update.
6853 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6854 Update.
6855 * remote.c (remote_check_symbols): Update.
6856 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6857 (rs6000_skip_trampoline_code): Update.
6858 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6859 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6860 * solib-dsbt.c (lm_base): Update.
6861 * solib-frv.c (lm_base): Update.
6862 (main_got): Update.
6863 * solib-irix.c (locate_base): Update.
6864 * solib-som.c (som_solib_create_inferior_hook): Update.
6865 (som_solib_desire_dynamic_linker_symbols): Update.
6866 (link_map_start): Update.
6867 * solib-spu.c (spu_enable_break): Update.
6868 (ocl_enable_break): Update.
6869 * solib-svr4.c (elf_locate_base): Update.
6870 (enable_break): Update.
6871 * spu-tdep.c (spu_get_overlay_table): Update.
6872 (spu_catch_start): Update.
6873 (flush_ea_cache): Update.
6874 * stabsread.c (define_symbol): Update.
6875 (scan_file_globals): Update.
6876 * stack.c (find_frame_funname): Update.
6877 (frame_info): Update.
6878 * symfile.c (simple_read_overlay_table): Update.
6879 (simple_overlay_update): Update.
6880 * symmisc.c (dump_msymbols): Update.
6881 * symtab.c (fixup_section): Update.
6882 (find_pc_sect_line): Update.
6883 (skip_prologue_sal): Update.
6884 (search_symbols): Update.
6885 (print_msymbol_info): Update.
6886 (rbreak_command): Update.
6887 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6888 (completion_list_objc_symbol): Update.
6889 (default_make_symbol_completion_list_break_on): Update.
6890 * tracepoint.c (scope_info): Update.
6891 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6892 (tui_get_begin_asm_address): Update.
6893 * valops.c (find_function_in_inferior): Update.
6894 * value.c (value_static_field): Update.
6895 (value_fn_field): Update.
6896
50e65b17
TT
68972014-02-26 Tom Tromey <tromey@redhat.com>
6898
6899 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6900 bound minimal symbols. Move code that knows about minsym
6901 table layout...
6902 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6903 function.
6904 * minsyms.h (minimal_symbol_upper_bound): Declare.
6905 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6906 minimal_symbol_upper_bound.
6907
1b588015
JB
69082014-02-27 Joel Brobecker <brobecker@adacore.com>
6909
6910 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6911 Use the type's name if its basic type does not have a tag.
6912
dbb9c2b1
JB
69132014-02-27 Joel Brobecker <brobecker@adacore.com>
6914
6915 * dwarf2read.c (read_subrange_type): Add comment.
6916
55426c9d
JB
69172014-02-27 Joel Brobecker <brobecker@adacore.com>
6918
6919 * dwarf2read.c (update_enumeration_type_from_children): New
6920 function, mostly extracted from process_structure_scope.
6921 (read_enumeration_type): Call update_enumeration_type_from_children.
6922 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6923 and flag_flag_enum fields.
6924
f2fce0ca
PA
69252014-02-26 Pedro Alves <palves@redhat.com>
6926
6927 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6928 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6929 to_xfer_partial method.
6930
7a44e40e
PA
69312014-02-26 Pedro Alves <palves@redhat.com>
6932
6933 * target.c (complete_target_initialization): Don't install
6934 default_xfer_partial as to_xfer_partial hook.
6935 (nomemory): Delete.
6936 (update_current_target): Don't INHERIT nor de_fault
6937 deprecated_xfer_memory. Delete de_fault macro.
6938 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6939 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6940 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6941 field.
6942
bd265cd0
PA
69432014-02-26 Pedro Alves <palves@redhat.com>
6944
6945 * go32-nat.c (my_write_child): New function.
6946 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6947 (go32_xfer_partial): New function.
6948 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6949 Instead install a to_xfer_partial hook.
6950
9d46c4e5
PA
69512014-02-26 Pedro Alves <palves@redhat.com>
6952
6953 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6954 to_xfer_partial helper. Rewrite.
6955 (procfs_xfer_partial): New function.
6956 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6957 Install a to_xfer_partial hook.
6958
a1583b1f
PA
69592014-02-26 Pedro Alves <palves@redhat.com>
6960
6961 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6962 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6963 (m32r_xfer_partial): New function.
6964 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6965 Install a to_xfer_partial hook.
6966
6df1b29f
PA
69672014-02-26 Pedro Alves <palves@redhat.com>
6968
6969 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6970 helper.
6971 (mips_xfer_partial): New function.
6972 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6973 hook. Install a to_xfer_partial hook.
6974
dc53a7ad
JB
69752014-02-26 Joel Brobecker <brobecker@adacore.com>
6976
6977 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6978 * gdbtypes.c (create_array_type_with_stride): New function,
6979 renaming create_array_type, but with an added parameter
6980 called "bit_stride".
6981 (create_array_type): Re-implement using
6982 create_array_type_with_stride.
6983 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6984 and DW_AT_bit_stride attributes.
6985
12ab52e9
PA
69862014-02-26 Pedro Alves <palves@redhat.com>
6987
6988 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6989 task-specific breakpoints.
6990
d16461ae
PA
69912014-02-25 Pedro Alves <palves@redhat.com>
6992
6993 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6994 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6995
a8b16220
SS
69962014-02-25 Stan Shebs <stan@codesourcery.com>
6997
6998 * defs.h: Annotate comments for Doxygen.
6999
b9e795ee
TT
70002014-02-25 Tom Tromey <tromey@redhat.com>
7001
7002 * target.h (target_ignore): Don't declare.
7003 * target.c (target_ignore): Remove.
7004
849c862e
JK
70052014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7006
7007 PR gdb/16626
7008 * auto-load.c (auto_load_objfile_script_1): Change filename to
7009 debugfile.
7010
475109d8
JB
70112014-02-25 Joel Brobecker <brobecker@adacore.com>
7012
7013 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7014 documentation. Adjust prototype to match the target_ops
7015 to_xfer_partial method. Adjust implementation accordingly.
7016
e186c3bd
HZ
70172014-02-25 Hui Zhu <hui@codesourcery.com>
7018
7019 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7020 to_traceframe_info.
7021
6d451942
KB
70222014-02-25 Kevin Buettner <kevinb@redhat.com>
7023
041ab8b4 7024 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7025 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7026 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7027 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7028 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7029 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7030 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7031 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7032 New constants.
7033 (rl78_register_type): Use a data pointer type for SP and
7034 new pseudo registers mentioned above. Use a 16 bit integer
7035 type for all other register pairs.
7036 (rl78_register_name, rl78_g10_register_name): Update for
7037 new pseudo registers.
7038 (rl78_pseudo_register_read): Likewise.
7039 (rl78_pseudo_register_write): Likewise.
7040 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7041 to the newly added pseudo registers.
7042
eddf0bae
DE
70432014-02-24 Doug Evans <dje@google.com>
7044
7045 * value.c (record_latest_value): Fix comment.
7046 * printcmd.c (print_command_1): Remove code to handle -1 return from
7047 record_latest_value.
7048
e96027e0
PA
70492014-02-24 Pedro Alves <palves@redhat.com>
7050
7051 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7052 deprecated_xfer_memory hook.
7053 (procfs_xfer_partial): Call procfs_xfer_memory instead
7054 of the deprecated_xfer_memory target hook.
7055 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7056 helper.
7057
0837c976
YZ
70582014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7059
7060 * windows-nat.c (windows_xfer_shared_libraries): Return
7061 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7062 requested object is TARGET_OBJECT_LIBRARIES.
7063
bc113b4e
YQ
70642014-02-24 Yao Qi <yao@codesourcery.com>
7065
7066 * target.h (enum target_xfer_status)
7067 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7068 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7069 explicitly. New.
7070 * corefile.c (memory_error_message): User updated.
7071 * exec.c (section_table_read_available_memory): Likewise.
7072 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7073 * target.c (target_xfer_status_to_string): Likewise.
7074 (raw_memory_xfer_partial): Likewise.
7075 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7076 * valops.c (read_value_memory): Likewise.
7077 * exec.h: Update comments.
7078
01cb8804
YQ
70792014-02-24 Yao Qi <yao@codesourcery.com>
7080
7081 * target.c (target_xfer_status_to_string): Rename argument err
7082 to status.
7083 * target.h (target_xfer_status_to_string): Update declaration.
7084 Replace target_xfer_error_to_string with
7085 target_xfer_status_to_string in comment.
7086
93063aa6
YQ
70872014-02-24 Yao Qi <yao@codesourcery.com>
7088
7089 * mips-linux-nat.c (super_close): Update its type.
7090 (mips_linux_close): Pass 'self' to super_close.
7091
5c328c05
YQ
70922014-02-24 Yao Qi <yao@codesourcery.com>
7093
7094 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7095 * corefile.c (read_memory): Adjusted.
7096 * target.c (target_write_with_progress): Adjusted.
7097
f73023dd
YQ
70982014-02-23 Yao Qi <yao@codesourcery.com>
7099
7100 Revert two patches:
7101
7102 2013-10-25 Yao Qi <yao@codesourcery.com>
7103
7104 * remote.c (remote_traceframe_info): Return early if
7105 traceframe is not selected.
7106
7107 2013-07-19 Yao Qi <yao@codesourcery.com>
7108
7109 * target.c (update_current_target): Change the default action
7110 of 'to_traceframe_info' from tcomplain to return_zero.
7111 * target.h (struct target_ops) <to_traceframe_info>: Add more
7112 comments.
7113
5a2eb0ef
YQ
71142014-02-23 Yao Qi <yao@codesourcery.com>
7115
7116 * valops.c (read_value_memory): Rewrite it. Call
7117 target_xfer_partial in a loop.
7118 * exec.h (section_table_available_memory): Remove declaration.
7119 Move comments to ...
7120 * exec.c (section_table_available_memory): ... here. Make it
7121 static.
7122
1ee79381
YQ
71232014-02-23 Yao Qi <yao@codesourcery.com>
7124
7125 * exec.c (section_table_read_available_memory): New function.
7126 * exec.h (section_table_read_available_memory): Declare.
7127 * ctf.c (ctf_xfer_partial): Call
7128 section_table_read_available_memory.
7129 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7130
1ca49d37
YQ
71312014-02-23 Yao Qi <yao@codesourcery.com>
7132
7133 * ctf.c (ctf_xfer_partial): Move code to ...
7134 * exec.c (exec_read_partial_read_only): ... it. New function.
7135 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7136 * tracefile.c: Include "exec.h".
7137 * exec.h (exec_read_partial_read_only): Declare.
7138
a283690e
YQ
71392014-02-23 Yao Qi <yao@codesourcery.com>
7140
7141 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7142 (tfile_has_memory): Remove.
7143 (init_tfile_ops): Don't set fields to_has_all_memory and
7144 to_has_memory of tfile_ops.
7145 * tracefile.c (tracefile_has_all_memory): New function.
7146 (tracefile_has_memory): New function.
7147 (init_tracefile_ops): Initialize fields to_has_all_memory and
7148 to_has_memory of 'ops'.
7149
12e03cd0
YQ
71502014-02-23 Yao Qi <yao@codesourcery.com>
7151
7152 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7153 (ctf_thread_alive, ctf_get_trace_status): Remove.
7154 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7155 init_tracefile_ops.
7156 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7157 (tfile_has_stack, tfile_has_registers): Remove.
7158 (tfile_thread_alive): Remove.
7159 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7160 init_tracefile_ops.
7161 * tracefile.c (tracefile_has_stack): New function.
7162 (tracefile_has_registers): New function.
7163 (tracefile_thread_alive): New function.
7164 (tracefile_get_trace_status): New function.
7165 (init_tracefile_ops): New function.
7166 * tracefile.h (init_tracefile_ops): Declare.
7167
11395323
YQ
71682014-02-23 Yao Qi <yao@codesourcery.com>
7169
7170 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7171 (O_LARGEFILE): Likewise.
7172 (tfile_ops): Likewise.
7173 (TRACE_HEADER_SIZE): Likewise.
7174 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7175 (cur_data_size): Likewise.
7176 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7177 (tfile_close, tfile_files_info): Likewise.
7178 (tfile_get_trace_status): Likewise.
7179 (tfile_get_tracepoint_status): Likewise.
7180 (tfile_get_traceframe_address): Likewise.
7181 (tfile_trace_find, match_blocktype): Likewise.
7182 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7183 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7184 (tfile_get_trace_state_variable_value): Likewise.
7185 (tfile_has_all_memory, tfile_has_memory): Likewise.
7186 (tfile_has_stack, tfile_has_registers): Likewise.
7187 (tfile_thread_alive, build_traceframe_info): Likewise.
7188 (tfile_traceframe_info, init_tfile_ops): Likewise.
7189 (_initialize_tracepoint): Don't call init_tfile_ops
7190 and add_target_with_completer.
7191 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7192 exec.h, completer.h and filenames.h.
7193 (_initialize_tracefile_tfile): New function.
7194
7951c4eb
YQ
71952014-02-23 Yao Qi <yao@codesourcery.com>
7196
7197 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7198 tracefile-tfile.o.
7199 (HFILES_NO_SRCDIR): Add tracefile.h.
7200 * ctf.c: Include "tracefile.h".
7201 * tracefile.h: New file.
7202 * tracefile.c: New file
7203 * tracefile-tfile.c: New file.
7204 * tracepoint.c: Include "tracefile.h".
7205 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7206 (stop_reason_names): Add const.
7207 (trace_file_writer_xfree): Move it to tracefile.c.
7208 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7209 (trace_save_ctf): Likewise.
7210 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7211 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7212 (tfile_write_header, tfile_write_regblock_type): Likewise.
7213 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7214 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7215 (tfile_write_raw_data, tfile_end): Likewise.
7216 (tfile_trace_file_writer_new): Likewise.
7217 (free_uploaded_tp): Make it extern.
7218 (free_uploaded_tsv): Make it extern.
7219 (_initialize_tracepoint): Move code to register command 'tsave'
7220 to tracefile.c.
7221 * tracepoint.h (stop_reason_names): Declare.
7222 (struct trace_frame_write_ops): Move it to tracefile.h.
7223 (struct trace_file_write_ops): Likewise.
7224 (struct trace_file_writer): Likewise.
7225 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7226
184cd072
JK
72272014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7228
7229 PR gdb/16594
7230 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7231 process name.
7232 (get_cores_used_by_process): New parameter num_cores, use it.
7233 (linux_xfer_osdata_processes): Pass num_cores to it.
7234 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7235 process name.
7236
c63528fc
AK
72372014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7238
7239 * target.c (memory_xfer_partial): Fix length arg in call to
7240 breakpoint_xfer_memory.
7241
d7b30f67
SDJ
72422014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7243
7244 PR tdep/16397
7245 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7246 number comes after the + or - signs. Adjust length of register
7247 name to be extracted.
7248
8838afaf
TT
72492014-02-20 Tom Tromey <tromey@redhat.com>
7250
7251 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7252 (ada_varobj_ops): Mark "extern".
7253
05227d14
TT
72542014-02-20 Tom Tromey <tromey@redhat.com>
7255
7256 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7257
1254eefc
DE
72582014-02-20 Doug Evans <xdje42@gmail.com>
7259
7260 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7261 All callers updated.
7262 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7263 All callers updated.
7264 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7265 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7266
adde2bff
DE
72672014-02-20 lin zuojian <manjian2006@gmail.com>
7268 Joel Brobecker <brobecker@adacore.com>
7269 Doug Evans <xdje42@gmail.com>
7270
7271 PR symtab/16581
7272 * dwarf2read.c (struct die_info): New member in_process.
7273 (reset_die_in_process): New function.
7274 (process_die): Set it at the start, reset when returning.
7275 (inherit_abstract_dies): Only call process_die if origin_child_die
7276 not already being processed.
7277
3be75f87
JB
72782014-02-20 Joel Brobecker <brobecker@adacore.com>
7279
7280 * windows-nat.c (handle_unload_dll): Add function documentation.
7281 (do_initial_windows_stuff): Add comment explaining why we wait
7282 until after inferior initialization has finished before
7283 processing all DLLs.
7284
47f7ffdb
JB
72852014-02-20 Joel Brobecker <brobecker@adacore.com>
7286
7287 * windows-nat.c (get_module_name): Delete.
7288 (windows_get_exec_module_filename): New function, mostly
7289 inspired from get_module_name.
7290 (windows_pid_to_exec_file): Replace call to get_module_name
7291 by call to windows_get_exec_module_filename.
7292
1cd9feab
JB
72932014-02-20 Joel Brobecker <brobecker@adacore.com>
7294
7295 * windows-nat.c (handle_load_dll): Rewrite this function's
7296 introductory comment. Remove code using get_module_name
7297 to get the DLL's name.
7298
ea39ad35
JB
72992014-02-20 Joel Brobecker <brobecker@adacore.com>
7300
7301 * windows-nat.c (get_windows_debug_event): Ignore
7302 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7303 if windows_initialization_done == 0.
7304 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7305 Adjust implementation to always load all DLLs.
7306 (do_initial_windows_stuff): Replace call to
7307 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7308
95060284
JB
73092014-02-20 Joel Brobecker <brobecker@adacore.com>
7310
7311 * windows-nat.c (_initialize_windows_nat): Deprecate the
7312 "dll-symbols" command. Turn the "add-shared-symbol-files"
7313 and "assf" aliases into commands, and deprecate them as well.
7314 * NEWS: Add entry explaining that "dll-symbols" and its two
7315 aliases are now deprecated.
7316
8d4fdb12
JB
73172014-02-20 Joel Brobecker <brobecker@adacore.com>
7318
7319 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7320 new-line in debug string. Remove trailing spaces.
7321
1b281443
SS
73222014-02-19 Stan Shebs <stan@codesourcery.com>
7323
7324 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7325
f7bd0f78
SC
73262014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7327
7328 * NEWS: Add entry for the new feature
7329 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7330 and class values.
7331
399ebc3d
SS
73322014-02-19 Stan Shebs <stan@codesourcery.com>
7333
7334 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7335
c658158d
PA
73362014-02-19 Pedro Alves <palves@redhat.com>
7337
7338 * common/ptid.h (struct ptid): Mention that process_stratum
7339 targets should prefer ptid.lwp.
7340
ba348170
PA
73412014-02-19 Pedro Alves <palves@redhat.com>
7342
7343 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7344 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7345 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7346 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7347 store remote thread ids rather than ptid.tid.
7348 (_initialize_remote): Adjust.
7349
ac01945b
TT
73502014-02-19 Tom Tromey <tromey@redhat.com>
7351
7352 * target.c (target_get_unwinder): Rewrite.
7353 (target_get_tailcall_unwinder): Rewrite.
7354 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7355 (record_btrace_to_get_tailcall_unwinder): New function.
7356 (init_record_btrace_ops): Update.
7357 * target.h (struct target_ops) <to_get_unwinder,
7358 to_get_tailcall_unwinder>: Now function pointers. Use
7359 TARGET_DEFAULT_RETURN.
7360
8476dc92
TT
73612014-02-19 Tom Tromey <tromey@redhat.com>
7362
7363 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7364 argument.
7365 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7366
c0eca49f
TT
73672014-02-19 Tom Tromey <tromey@redhat.com>
7368
7369 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7370 directly.
7371 * target-delegates.c: Rebuild.
7372 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7373 TARGET_DEFAULT_FUNC.
7374 * target.c (default_target_decr_pc_after_break): Rename from
7375 forward_target_decr_pc_after_break. Simplify.
7376 (target_decr_pc_after_break): Rely on delegation.
7377
596b6b39
TT
73782014-02-19 Tom Tromey <tromey@redhat.com>
7379
7380 * target.c (update_current_target): Do not INHERIT to_doc or
7381 to_magic. Do not de_fault to_open or to_close.
7382
b427c1bc
TT
73832014-02-19 Tom Tromey <tromey@redhat.com>
7384
7385 * gcore.h (objfile_find_memory_regions): Declare.
7386 * gcore.c (objfile_find_memory_regions): No longer static. Add
7387 "self" argument.
7388 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7389 * exec.c: Include gcore.h.
7390 (exec_set_find_memory_regions): Remove.
7391 (exec_find_memory_regions): Remove.
7392 (exec_do_find_memory_regions): Remove.
7393 (init_exec_ops): Update.
7394 * defs.h (exec_set_find_memory_regions): Remove.
7395
9b144037
TT
73962014-02-19 Tom Tromey <tromey@redhat.com>
7397
7398 * target-delegates.c: Rebuild.
7399 * target.h (struct target_ops) <to_extra_thread_info,
7400 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7401 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7402 not 0, in TARGET_DEFAULT_RETURN.
7403
555bbdeb
TT
74042014-02-19 Tom Tromey <tromey@redhat.com>
7405
7406 * target.c (complete_target_initialization): Remove casts. Use
7407 return_zero_has_execution.
7408 (return_zero): Add "ignore" argument.
7409 (return_zero_has_execution): New function.
7410 (init_dummy_target): Remove casts. Use
7411 return_zero_has_execution.
7412
be4ddd36
TT
74132014-02-19 Tom Tromey <tromey@redhat.com>
7414
7415 * target.c (update_current_target): Update comments. Do not
7416 INHERIT to_stratum.
7417
2117c711
TT
74182014-02-19 Tom Tromey <tromey@redhat.com>
7419
7420 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7421 needed.
7422 * corelow.c (core_read_description): Delegate when needed.
7423 * remote.c (remote_read_description): Delegate when needed.
7424 * target-delegates.c: Rebuild.
7425 * target.c (target_read_description): Rewrite.
7426 * target.h (struct target_ops) <to_read_description>: Update
7427 comment. Use TARGET_DEFAULT_RETURN.
7428
e88ef65c
TT
74292014-02-19 Tom Tromey <tromey@redhat.com>
7430
7431 * target-delegates.c: Rebuild.
7432 * target.c (update_current_target): Don't inherit or default
7433 to_can_run.
7434 (find_default_run_target): Check against delegate_can_run.
7435 * target.h (struct target_ops) <to_can_run>: Use
7436 TARGET_DEFAULT_RETURN.
7437
86a0854a
TT
74382014-02-19 Tom Tromey <tromey@redhat.com>
7439
7440 * target-delegates.c: Rebuild.
7441 * target.c (target_disconnect): Unconditionally delegate.
7442 * target.h (struct target_ops) <to_disconnect>: Use
7443 TARGET_DEFAULT_NORETURN.
7444
ee97f592
TT
74452014-02-19 Tom Tromey <tromey@redhat.com>
7446
7447 * record.c (record_stop): Unconditionally delegate.
7448 * target-delegates.c: Rebuild.
7449 * target.c (target_stop_recording): Unconditionally delegate.
7450 * target.h (struct target_ops) <to_stop_recording>: Use
7451 TARGET_DEFAULT_IGNORE.
7452
6dc7fcf4
TT
74532014-02-19 Tom Tromey <tromey@redhat.com>
7454
7455 * target-delegates.c: Rebuild.
7456 * target.c (target_enable_btrace): Unconditionally delegate.
7457 * target.h (struct target_ops) <to_enable_btrace>: Use
7458 TARGET_DEFAULT_NORETURN.
7459
eb5b20d4
TT
74602014-02-19 Tom Tromey <tromey@redhat.com>
7461
7462 * target-delegates.c: Rebuild.
7463 * target.c (target_read_btrace): Unconditionally delegate.
7464 * target.h (struct target_ops) <to_read_btrace>: Use
7465 TARGET_DEFAULT_NORETURN.
7466
9ace480d
TT
74672014-02-19 Tom Tromey <tromey@redhat.com>
7468
7469 * target-delegates.c: Rebuild.
7470 * target.c (target_teardown_btrace): Unconditionally delegate.
7471 * target.h (struct target_ops) <to_teardown_btrace>: Use
7472 TARGET_DEFAULT_NORETURN.
7473
8dc292d3
TT
74742014-02-19 Tom Tromey <tromey@redhat.com>
7475
7476 * target-delegates.c: Rebuild.
7477 * target.c (target_disable_btrace): Unconditionally delegate.
7478 * target.h (struct target_ops) <to_disable_btrace>: Use
7479 TARGET_DEFAULT_NORETURN.
7480
58a5184e
TT
74812014-02-19 Tom Tromey <tromey@redhat.com>
7482
7483 * target-delegates.c: Rebuild.
7484 * target.c (default_search_memory): New function.
7485 (simple_search_memory): Update comment.
7486 (target_search_memory): Unconditionally delegate.
7487 * target.h (struct target_ops) <to_search_memory>: Use
7488 TARGET_DEFAULT_FUNC.
7489
8de71aab
TT
74902014-02-19 Tom Tromey <tromey@redhat.com>
7491
7492 * auxv.c (default_auxv_parse): No longer static.
7493 (target_auxv_parse): Unconditionally delegate.
7494 * auxv.h (default_auxv_parse): Declare.
7495 * target-delegates.c: Rebuild.
7496 * target.c: Include auxv.h.
7497 * target.h (struct target_ops) <to_auxv_parse>: Use
7498 TARGET_DEFAULT_FUNC.
7499
6b2c5a57
TT
75002014-02-19 Tom Tromey <tromey@redhat.com>
7501
7502 * target-delegates.c: Rebuild.
7503 * target.c (target_memory_map): Unconditionally delegate.
7504 * target.h (struct target_ops) <to_memory_map>: Use
7505 TARGET_DEFAULT_RETURN.
7506
cbffc065
TT
75072014-02-19 Tom Tromey <tromey@redhat.com>
7508
7509 * target-delegates.c: Rebuild.
7510 * target.c (target_thread_alive): Unconditionally delegate.
7511 * target.h (struct target_ops) <to_thread_alive>: Use
7512 TARGET_DEFAULT_RETURN.
7513
f09e2107
TT
75142014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target-delegates.c: Rebuild.
7517 * target.c (target_save_record): Unconditionally delegate.
7518 * target.h (struct target_ops) <to_save_record>: Use
7519 TARGET_DEFAULT_NORETURN.
7520
07366925
TT
75212014-02-19 Tom Tromey <tromey@redhat.com>
7522
7523 * target-delegates.c: Rebuild.
7524 * target.c (target_delete_record): Unconditionally delegate.
7525 * target.h (struct target_ops) <to_delete_record>: Use
7526 TARGET_DEFAULT_NORETURN.
7527
dd2e9d25
TT
75282014-02-19 Tom Tromey <tromey@redhat.com>
7529
7530 * target-delegates.c: Rebuild.
7531 * target.c (target_record_is_replaying): Unconditionally
7532 delegate.
7533 * target.h (struct target_ops) <to_record_is_replaying>: Use
7534 TARGET_DEFAULT_RETURN.
7535
671e76cc
TT
75362014-02-19 Tom Tromey <tromey@redhat.com>
7537
7538 * target-delegates.c: Rebuild.
7539 * target.c (target_goto_record_begin): Unconditionally delegate.
7540 * target.h (struct target_ops) <to_goto_record_begin>: Use
7541 TARGET_DEFAULT_NORETURN.
7542
e9179bb3
TT
75432014-02-19 Tom Tromey <tromey@redhat.com>
7544
7545 * target-delegates.c: Rebuild.
7546 * target.c (target_goto_record_end): Unconditionally delegate.
7547 * target.h (struct target_ops) <to_goto_record_end>: Use
7548 TARGET_DEFAULT_NORETURN.
7549
05969c84
TT
75502014-02-19 Tom Tromey <tromey@redhat.com>
7551
7552 * target-delegates.c: Rebuild.
7553 * target.c (target_goto_record): Unconditionally delegate.
7554 * target.h (struct target_ops) <to_goto_record>: Use
7555 TARGET_DEFAULT_NORETURN.
7556
3679abfa
TT
75572014-02-19 Tom Tromey <tromey@redhat.com>
7558
7559 * target-delegates.c: Rebuild.
7560 * target.c (target_insn_history): Unconditionally delegate.
7561 * target.h (struct target_ops) <to_insn_history>: Use
7562 TARGET_DEFAULT_NORETURN.
7563
8444ab58
TT
75642014-02-19 Tom Tromey <tromey@redhat.com>
7565
7566 * target-delegates.c: Rebuild.
7567 * target.c (target_insn_history_from): Unconditionally delegate.
7568 * target.h (struct target_ops) <to_insn_history_from>: Use
7569 TARGET_DEFAULT_NORETURN.
7570
c29302cc
TT
75712014-02-19 Tom Tromey <tromey@redhat.com>
7572
7573 * target-delegates.c: Rebuild.
7574 * target.c (target_insn_history_range): Unconditionally delegate.
7575 * target.h (struct target_ops) <to_insn_history_range>: Use
7576 TARGET_DEFAULT_NORETURN.
7577
170049d4
TT
75782014-02-19 Tom Tromey <tromey@redhat.com>
7579
7580 * target-delegates.c: Rebuild.
7581 * target.c (target_call_history): Unconditionally delegate.
7582 * target.h (struct target_ops) <to_call_history>: Use
7583 TARGET_DEFAULT_NORETURN.
7584
16fc27d6
TT
75852014-02-19 Tom Tromey <tromey@redhat.com>
7586
7587 * target-delegates.c: Rebuild.
7588 * target.c (target_call_history_from): Unconditionally delegate.
7589 * target.h (struct target_ops) <to_call_history_from>: Use
7590 TARGET_DEFAULT_NORETURN.
7591
115d9817
TT
75922014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * target-delegates.c: Rebuild.
7595 * target.c (target_call_history_range): Unconditionally delegate.
7596 * target.h (struct target_ops) <to_call_history_range>: Use
7597 TARGET_DEFAULT_NORETURN.
7598
eb276a6b
TT
75992014-02-19 Tom Tromey <tromey@redhat.com>
7600
7601 * target-delegates.c: Rebuild.
7602 * target.c (target_verify_memory): Unconditionally delegate.
7603 * target.h (struct target_ops) <to_verify_memory>: Use
7604 TARGET_DEFAULT_NORETURN.
7605
9e538d0d
TT
76062014-02-19 Tom Tromey <tromey@redhat.com>
7607
7608 * target-delegates.c: Rebuild.
7609 * target.c (target_core_of_thread): Unconditionally delegate.
7610 * target.h (struct target_ops) <to_core_of_thread>: Use
7611 TARGET_DEFAULT_RETURN.
7612
f6fb2925
TT
76132014-02-19 Tom Tromey <tromey@redhat.com>
7614
7615 * target-delegates.c: Rebuild.
7616 * target.c (target_flash_done): Unconditionally delegate.
7617 * target.h (struct target_ops) <to_flash_done>: Use
7618 TARGET_DEFAULT_NORETURN.
7619
e8a6c6ac
TT
76202014-02-19 Tom Tromey <tromey@redhat.com>
7621
7622 * target-delegates.c: Rebuild.
7623 * target.c (target_flash_erase): Unconditionally delegate.
7624 * target.h (struct target_ops) <to_flash_erase>: Use
7625 TARGET_DEFAULT_NORETURN.
7626
7e35c012
TT
76272014-02-19 Tom Tromey <tromey@redhat.com>
7628
7629 * target-delegates.c: Rebuild.
7630 * target.c (target_get_section_table): Unconditionally delegate.
7631 * target.h (struct target_ops) <to_get_section_table>: Use
7632 TARGET_DEFAULT_RETURN.
7633
770234d3
TT
76342014-02-19 Tom Tromey <tromey@redhat.com>
7635
7636 * target-delegates.c: Rebuild.
7637 * target.c (target_pid_to_str): Unconditionally delegate.
7638 (init_dummy_target): Don't initialize to_pid_to_str.
7639 (default_pid_to_str): Rename from dummy_pid_to_str.
7640 * target.h (struct target_ops) <to_pid_to_str>: Use
7641 TARGET_DEFAULT_FUNC.
7642
09b0dc2b
TT
76432014-02-19 Tom Tromey <tromey@redhat.com>
7644
7645 * target-delegates.c: Rebuild.
7646 * target.c (target_find_new_threads): Unconditionally delegate.
7647 * target.h (struct target_ops) <to_find_new_threads>: Use
7648 TARGET_DEFAULT_RETURN.
7649
7d4f8efa
TT
76502014-02-19 Tom Tromey <tromey@redhat.com>
7651
7652 * target-delegates.c: Rebuild.
7653 * target.c (target_program_signals): Unconditionally delegate.
7654 * target.h (struct target_ops) <to_program_signals>: Use
7655 TARGET_DEFAULT_IGNORE.
7656
035cad7f
TT
76572014-02-19 Tom Tromey <tromey@redhat.com>
7658
7659 * target-delegates.c: Rebuild.
7660 * target.c (target_pass_signals): Unconditionally delegate.
7661 * target.h (struct target_ops) <to_pass_signals>: Use
7662 TARGET_DEFAULT_IGNORE.
7663
8d657035
TT
76642014-02-19 Tom Tromey <tromey@redhat.com>
7665
7666 * target-delegates.c: Rebuild.
7667 * target.c (default_mourn_inferior): New function.
7668 (target_mourn_inferior): Unconditionally delegate.
7669 * target.h (struct target_ops) <to_mourn_inferior>: Use
7670 TARGET_DEFAULT_FUNC.
7671
098dba18
TT
76722014-02-19 Tom Tromey <tromey@redhat.com>
7673
7674 * target-delegates.c: Rebuild.
7675 * target.c (default_follow_fork): New function.
7676 (target_follow_fork): Unconditionally delegate.
7677 * target.h (struct target_ops) <to_follow_fork>: Use
7678 TARGET_DEFAULT_FUNC.
7679
423a4807
TT
76802014-02-19 Tom Tromey <tromey@redhat.com>
7681
7682 * target-delegates.c: Rebuild.
7683 * target.c (target_kill): Unconditionally delegate.
7684 * target.h (struct target_ops) <to_kill>: Use
7685 TARGET_DEFAULT_NORETURN.
7686
6c7e5e5c
TT
76872014-02-19 Tom Tromey <tromey@redhat.com>
7688
7689 * target-delegates.c: Rebuild.
7690 * target.c (target_masked_watch_num_registers): Unconditionally
7691 delegate.
7692 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7693 Use TARGET_DEFAULT_RETURN.
7694
8b1c364c
TT
76952014-02-19 Tom Tromey <tromey@redhat.com>
7696
7697 * target-delegates.c: Rebuild.
7698 * target.c (target_remove_mask_watchpoint): Unconditionally
7699 delegate.
7700 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7701 TARGET_DEFAULT_RETURN.
7702
cd4ae029
TT
77032014-02-19 Tom Tromey <tromey@redhat.com>
7704
7705 * target-delegates.c: Rebuild.
7706 * target.c (target_insert_mask_watchpoint): Unconditionally
7707 delegate.
7708 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7709 TARGET_DEFAULT_RETURN.
7710
a134316b
TT
77112014-02-19 Tom Tromey <tromey@redhat.com>
7712
7713 * target-delegates.c: Rebuild.
7714 * target.c (target_ranged_break_num_registers): Unconditionally
7715 delegate.
7716 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7717 Use TARGET_DEFAULT_RETURN.
7718
ad5989bd
TT
77192014-02-19 Tom Tromey <tromey@redhat.com>
7720
7721 * target-delegates.c: Rebuild.
7722 * target.c (target_fetch_registers): Unconditionally delegate.
7723 * target.h (struct target_ops) <to_fetch_registers>: Use
7724 TARGET_DEFAULT_NORETURN.
7725
46ee7e8d
TT
77262014-02-19 Tom Tromey <tromey@redhat.com>
7727
7728 * target-delegates.c: Rebuild.
7729 * target.c (update_current_target): Don't inherit or default
7730 to_stop.
7731 * target.h (struct target_ops) <to_stop>: Use
7732 TARGET_DEFAULT_IGNORE.
7733
843f59ed
TT
77342014-02-19 Tom Tromey <tromey@redhat.com>
7735
7736 * target-delegates.c: Rebuild.
7737 * target.c (update_current_target): Don't inherit or default
7738 to_can_run_breakpoint_commands.
7739 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7740 Use TARGET_DEFAULT_RETURN.
7741
ccfde2a0
TT
77422014-02-19 Tom Tromey <tromey@redhat.com>
7743
7744 * target-delegates.c: Rebuild.
7745 * target.c (update_current_target): Don't inherit or default
7746 to_supports_evaluation_of_breakpoint_conditions.
7747 * target.h (struct target_ops)
7748 <to_supports_evaluation_of_breakpoint_conditions>: Use
7749 TARGET_DEFAULT_RETURN.
7750
0de91722
TT
77512014-02-19 Tom Tromey <tromey@redhat.com>
7752
7753 * target-delegates.c: Rebuild.
7754 * target.c (update_current_target): Don't inherit or default
7755 to_augmented_libraries_svr4_read.
7756 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7757 Use TARGET_DEFAULT_RETURN.
7758
9a7d8b48
TT
77592014-02-19 Tom Tromey <tromey@redhat.com>
7760
7761 * target-delegates.c: Rebuild.
7762 * target.c (update_current_target): Don't inherit or default
7763 to_can_use_agent.
7764 * target.h (struct target_ops) <to_can_use_agent>: Use
7765 TARGET_DEFAULT_RETURN.
7766
d9db5b21
TT
77672014-02-19 Tom Tromey <tromey@redhat.com>
7768
7769 * target-delegates.c: Rebuild.
7770 * target.c (update_current_target): Don't inherit or default
7771 to_use_agent.
7772 * target.h (struct target_ops) <to_use_agent>: Use
7773 TARGET_DEFAULT_NORETURN.
7774
92155eeb
TT
77752014-02-19 Tom Tromey <tromey@redhat.com>
7776
7777 * target-delegates.c: Rebuild.
7778 * target.c (update_current_target): Don't inherit or default
7779 to_traceframe_info.
7780 (return_null): Remove.
7781 * target.h (struct target_ops) <to_traceframe_info>: Use
7782 TARGET_DEFAULT_RETURN.
7783
d6522a22
TT
77842014-02-19 Tom Tromey <tromey@redhat.com>
7785
7786 * target-delegates.c: Rebuild.
7787 * target.c (update_current_target): Don't inherit or default
7788 to_static_tracepoint_markers_by_strid.
7789 * target.h (struct target_ops)
7790 <to_static_tracepoint_markers_by_strid>: Use
7791 TARGET_DEFAULT_NORETURN.
7792
4c3e4425
TT
77932014-02-19 Tom Tromey <tromey@redhat.com>
7794
7795 * target-delegates.c: Rebuild.
7796 * target.c (update_current_target): Don't inherit or default
7797 to_static_tracepoint_marker_at.
7798 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7799 Use TARGET_DEFAULT_RETURN.
7800
dcd6917f
TT
78012014-02-19 Tom Tromey <tromey@redhat.com>
7802
7803 * target-delegates.c: Rebuild.
7804 * target.c (update_current_target): Don't inherit or default
7805 to_set_permissions.
7806 * target.h (struct target_ops) <to_set_permissions>: Use
7807 TARGET_DEFAULT_IGNORE.
7808
22bcceee
TT
78092014-02-19 Tom Tromey <tromey@redhat.com>
7810
7811 * target-delegates.c: Rebuild.
7812 * target.c (update_current_target): Don't inherit or default
7813 to_get_tib_address.
7814 * target.h (struct target_ops) <to_get_tib_address>: Use
7815 TARGET_DEFAULT_NORETURN.
7816
8586ccaa
TT
78172014-02-19 Tom Tromey <tromey@redhat.com>
7818
7819 * target-delegates.c: Rebuild.
7820 * target.c (update_current_target): Don't inherit or default
7821 to_set_trace_notes.
7822 * target.h (struct target_ops) <to_set_trace_notes>: Use
7823 TARGET_DEFAULT_RETURN.
7824
91df8d1d
TT
78252014-02-19 Tom Tromey <tromey@redhat.com>
7826
7827 * target-delegates.c: Rebuild.
7828 * target.c (update_current_target): Don't initialize
7829 to_set_trace_buffer_size.
7830 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7831 TARGET_DEFAULT_IGNORE.
7832
8d526939
TT
78332014-02-19 Tom Tromey <tromey@redhat.com>
7834
7835 * target-delegates.c: Rebuild.
7836 * target.c (update_current_target): Don't inherit or default
7837 to_set_circular_trace_buffer.
7838 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7839 TARGET_DEFAULT_IGNORE.
7840
0bcfeddf
TT
78412014-02-19 Tom Tromey <tromey@redhat.com>
7842
7843 * target-delegates.c: Rebuild.
7844 * target.c (update_current_target): Don't inherit or default
7845 to_set_disconnected_tracing.
7846 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7847 TARGET_DEFAULT_IGNORE.
7848
9249843f
TT
78492014-02-19 Tom Tromey <tromey@redhat.com>
7850
7851 * target-delegates.c: Rebuild.
7852 * target.c (update_current_target): Don't inherit or default
7853 to_get_min_fast_tracepoint_insn_len.
7854 (return_minus_one): Remove.
7855 * target.h (struct target_ops)
7856 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7857
ace92e7d
TT
78582014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.c (update_current_target): Don't inherit or default
7862 to_get_raw_trace_data.
7863 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7864 TARGET_DEFAULT_NORETURN.
7865
08120467
TT
78662014-02-19 Tom Tromey <tromey@redhat.com>
7867
7868 * target-delegates.c: Rebuild.
7869 * target.c (update_current_target): Don't inherit or default
7870 to_upload_trace_state_variables.
7871 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7872 Use TARGET_DEFAULT_RETURN.
7873
1e949b00
TT
78742014-02-19 Tom Tromey <tromey@redhat.com>
7875
7876 * target-delegates.c: Rebuild.
7877 * target.c (update_current_target): Don't inherit or default
7878 to_upload_tracepoints.
7879 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7880 TARGET_DEFAULT_RETURN.
7881
a2e6c147
TT
78822014-02-19 Tom Tromey <tromey@redhat.com>
7883
7884 * target-delegates.c: Rebuild.
7885 * target.c (update_current_target): Don't inherit or default
7886 to_save_trace_data.
7887 * target.h (struct target_ops) <to_save_trace_data>: Use
7888 TARGET_DEFAULT_NORETURN.
7889
959bcd0b
TT
78902014-02-19 Tom Tromey <tromey@redhat.com>
7891
7892 * target-delegates.c: Rebuild.
7893 * target.c (update_current_target): Don't inherit or default
7894 to_get_trace_state_variable_value.
7895 * target.h (struct target_ops)
7896 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7897
afc94e66
TT
78982014-02-19 Tom Tromey <tromey@redhat.com>
7899
7900 * target-delegates.c: Rebuild.
7901 * target.c (update_current_target): Don't inherit or default
7902 to_trace_find.
7903 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7904
e51c07ea
TT
79052014-02-19 Tom Tromey <tromey@redhat.com>
7906
7907 * target-delegates.c: Rebuild.
7908 * target.c (update_current_target): Don't inherit or default
7909 to_trace_stop.
7910 * target.h (struct target_ops) <to_trace_stop>: Use
7911 TARGET_DEFAULT_NORETURN.
7912
6fea14cd
TT
79132014-02-19 Tom Tromey <tromey@redhat.com>
7914
7915 * target-delegates.c: Rebuild.
7916 * target.c (update_current_target): Don't inherit or default
7917 to_get_tracepoint_status.
7918 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7919 TARGET_DEFAULT_NORETURN.
7920
4072d4ff
TT
79212014-02-19 Tom Tromey <tromey@redhat.com>
7922
7923 * target-delegates.c: Rebuild.
7924 * target.c (update_current_target): Don't inherit or default
7925 to_get_trace_status.
7926 * target.h (struct target_ops) <to_get_trace_status>: Use
7927 TARGET_DEFAULT_RETURN.
7928
25da2e80
TT
79292014-02-19 Tom Tromey <tromey@redhat.com>
7930
7931 * target-delegates.c: Rebuild.
7932 * target.c (update_current_target): Don't inherit or default
7933 to_trace_start.
7934 * target.h (struct target_ops) <to_trace_start>: Use
7935 TARGET_DEFAULT_NORETURN.
7936
86dd181d
TT
79372014-02-19 Tom Tromey <tromey@redhat.com>
7938
7939 * target-delegates.c: Rebuild.
7940 * target.c (update_current_target): Don't inherit or default
7941 to_trace_set_readonly_regions.
7942 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7943 Use TARGET_DEFAULT_NORETURN.
7944
05c41993
TT
79452014-02-19 Tom Tromey <tromey@redhat.com>
7946
7947 * target-delegates.c: Rebuild.
7948 * target.c (update_current_target): Don't inherit or default
7949 to_disable_tracepoint.
7950 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7951 TARGET_DEFAULT_NORETURN.
7952
151f70f1
TT
79532014-02-19 Tom Tromey <tromey@redhat.com>
7954
7955 * target-delegates.c: Rebuild.
7956 * target.c (update_current_target): Don't inherit or default
7957 to_enable_tracepoint.
7958 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7959 TARGET_DEFAULT_NORETURN.
7960
94eb98b9
TT
79612014-02-19 Tom Tromey <tromey@redhat.com>
7962
7963 * target-delegates.c: Rebuild.
7964 * target.c (update_current_target): Don't inherit or default
7965 to_download_trace_state_variable.
7966 * target.h (struct target_ops) <to_download_trace_state_variable>:
7967 Use TARGET_DEFAULT_NORETURN.
7968
719acc4a
TT
79692014-02-19 Tom Tromey <tromey@redhat.com>
7970
7971 * target-delegates.c: Rebuild.
7972 * target.c (update_current_target): Don't inherit or default
7973 to_can_download_tracepoint.
7974 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7975 TARGET_DEFAULT_RETURN.
7976
9a980a22
TT
79772014-02-19 Tom Tromey <tromey@redhat.com>
7978
7979 * target-delegates.c: Rebuild.
7980 * target.c (update_current_target): Don't inherit or default
7981 to_download_tracepoint.
7982 * target.h (struct target_ops) <to_download_tracepoint>: Use
7983 TARGET_DEFAULT_NORETURN.
7984
5536135b
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_trace_init.
7990 * target.h (struct target_ops) <to_trace_init>: Use
7991 TARGET_DEFAULT_RETURN.
7992
9409d39e
TT
79932014-02-19 Tom Tromey <tromey@redhat.com>
7994
7995 * target-delegates.c: Rebuild.
7996 * target.c (update_current_target): Don't inherit or default
7997 to_supports_string_tracing.
7998 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7999 TARGET_DEFAULT_RETURN.
8000
aab1b22d
TT
80012014-02-19 Tom Tromey <tromey@redhat.com>
8002
8003 * target-delegates.c: Rebuild.
8004 * target.c (update_current_target): Don't inherit or default
8005 to_supports_enable_disable_tracepoint.
8006 * target.h (struct target_ops)
8007 <to_supports_enable_disable_tracepoint>: Use
8008 TARGET_DEFAULT_RETURN.
8009
a7304748
TT
80102014-02-19 Tom Tromey <tromey@redhat.com>
8011
8012 * target-delegates.c: Rebuild.
8013 * target.c (update_current_target): Don't inherit or default
8014 to_supports_multi_process.
8015 * target.h (struct target_ops) <to_supports_multi_process>: Use
8016 TARGET_DEFAULT_RETURN.
8017
4229b31d
TT
80182014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * target-delegates.c: Rebuild.
8021 * target.c (update_current_target): Don't inherit or default
8022 to_get_ada_task_ptid.
8023 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8024 TARGET_DEFAULT_FUNC.
8025
43eba180
TT
80262014-02-19 Tom Tromey <tromey@redhat.com>
8027
8028 * target-delegates.c: Rebuild.
8029 * target.c (update_current_target): Don't inherit or default
8030 to_thread_architecture.
8031 * target.h (struct target_ops) <to_thread_architecture>: Use
8032 TARGET_DEFAULT_FUNC.
8033
fe31bf5b
TT
80342014-02-19 Tom Tromey <tromey@redhat.com>
8035
8036 * target-delegates.c: Rebuild.
8037 * target.c (update_current_target): Don't inherit or default
8038 to_execution_direction.
8039 * target.h (struct target_ops) <to_execution_direction>: Use
8040 TARGET_DEFAULT_FUNC.
8041
53e1cfc7
TT
80422014-02-19 Tom Tromey <tromey@redhat.com>
8043
8044 * target-delegates.c: Rebuild.
8045 * target.c (update_current_target): Don't inherit or default
8046 to_can_execute_reverse.
8047 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8048 TARGET_DEFAULT_RETURN.
8049 (target_can_execute_reverse): Unconditionally delegate.
8050
9bb9d61d
TT
80512014-02-19 Tom Tromey <tromey@redhat.com>
8052
8053 * target-delegates.c: Rebuild.
8054 * target.c (update_current_target): Don't inherit or default
8055 to_goto_bookmark.
8056 (dummy_goto_bookmark): Remove.
8057 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8058 * target.h (struct target_ops) <to_goto_bookmark>: Use
8059 TARGET_DEFAULT_NORETURN.
8060
3dbafbbb
TT
80612014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target-delegates.c: Rebuild.
8064 * target.c (update_current_target): Don't inherit or default
8065 to_get_bookmark.
8066 (dummy_get_bookmark): Remove.
8067 (init_dummy_target): Don't inherit or default to_get_bookmark.
8068 * target.h (struct target_ops) <to_get_bookmark>: Use
8069 TARGET_DEFAULT_NORETURN
8070
16f796b1
TT
80712014-02-19 Tom Tromey <tromey@redhat.com>
8072
8073 * target-delegates.c: Rebuild.
8074 * target.c (update_current_target): Don't inherit or default
8075 to_make_corefile_notes.
8076 (init_dummy_target): Don't initialize to_make_corefile_notes.
8077 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8078 TARGET_DEFAULT_FUNC.
8079
0b5a2719
TT
80802014-02-19 Tom Tromey <tromey@redhat.com>
8081
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8084 to_find_memory_regions.
8085 (init_dummy_target): Don't initialize to_find_memory_regions.
8086 * target.h (struct target_ops) <to_find_memory_regions>: Use
8087 TARGET_DEFAULT_FUNC.
8088
d9cb0195
TT
80892014-02-19 Tom Tromey <tromey@redhat.com>
8090
8091 * target-delegates.c: Rebuild.
8092 * target.c (update_current_target): Don't inherit or default
8093 to_log_command.
8094 * target.h (struct target_ops) <to_log_command>: Use
8095 TARGET_DEFAULT_IGNORE.
8096 (target_log_command): Unconditionally delegate.
8097
830ca330
TT
80982014-02-19 Tom Tromey <tromey@redhat.com>
8099
8100 * target-delegates.c: Rebuild.
8101 * target.c (update_current_target): Don't inherit or default
8102 to_pid_to_exec_file.
8103 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8104 TARGET_DEFAULT_RETURN.
8105
825828fc
TT
81062014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * target-delegates.c: Rebuild.
8109 * target.c (update_current_target): Don't inherit or default
8110 to_thread_name.
8111 (target_thread_name): Unconditionally delegate.
8112 * target.h (struct target_ops) <to_thread_name>: Use
8113 TARGET_DEFAULT_RETURN.
8114
4a7e6dda
TT
81152014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target-delegates.c: Rebuild.
8118 * target.c (update_current_target): Don't inherit or default
8119 to_extra_thread_info.
8120 * target.h (struct target_ops) <to_extra_thread_info>: Use
8121 TARGET_DEFAULT_RETURN.
8122
0db88c1d
TT
81232014-02-19 Tom Tromey <tromey@redhat.com>
8124
8125 * target-delegates.c: Rebuild.
8126 * target.c (update_current_target): Don't inherit or default
8127 to_has_exited.
8128 * target.h (struct target_ops) <to_has_exited>: Use
8129 TARGET_DEFAULT_RETURN..
8130
6a9fa051
TT
81312014-02-19 Tom Tromey <tromey@redhat.com>
8132
8133 * target-delegates.c: Rebuild.
8134 * target.c (update_current_target): Don't inherit or default
8135 to_set_syscall_catchpoint.
8136 (return_one): Remove.
8137 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8138 TARGET_DEFAULT_RETURN.
8139
62f64d7a
TT
81402014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_insert_exec_catchpoint.
8145 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8146 TARGET_DEFAULT_RETURN.
8147
cda0f38c
TT
81482014-01-08 Tom Tromey <tromey@redhat.com>
8149
8150 * target-delegates.c: Rebuild.
8151 * target.c (update_current_target): Don't inherit or default
8152 to_insert_exec_catchpoint.
8153 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8154 TARGET_DEFAULT_RETURN.
8155
95c3375e
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (update_current_target): Don't inherit or default
8160 to_remove_vfork_catchpoint.
8161 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8162 TARGET_DEFAULT_RETURN.
8163
7e18a8dc
TT
81642014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8168 to_insert_vfork_catchpoint.
8169 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8170 TARGET_DEFAULT_RETURN.
8171
e1a21fb7
TT
81722014-02-19 Tom Tromey <tromey@redhat.com>
8173
8174 * target-delegates.c: Rebuild.
8175 * target.c (update_current_target): Don't inherit or default
8176 to_remove_fork_catchpoint.
8177 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8178 TARGET_DEFAULT_RETURN.
8179
5958ebeb
TT
81802014-02-19 Tom Tromey <tromey@redhat.com>
8181
8182 * target-delegates.c: Rebuild.
8183 * target.c (update_current_target): Don't inherit or default
8184 to_insert_fork_catchpoint.
8185 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8186 TARGET_DEFAULT_RETURN.
8187
340ba4bf
TT
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target-delegates.c: Rebuild.
8191 * target.c (update_current_target): Don't inherit or default
8192 to_post_startup_inferior.
8193 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8194 TARGET_DEFAULT_IGNORE.
8195
7634da87
TT
81962014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target-delegates.c: Rebuild.
8199 * target.c (update_current_target): Don't inherit or default
8200 to_load.
8201 * target.h (struct target_ops) <to_load>: Use
8202 TARGET_DEFAULT_NORETURN.
8203
e19e919f
TT
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target-delegates.c: Rebuild.
8207 * target.c (update_current_target): Don't inherit or default
8208 to_terminal_info.
8209 * target.h (struct target_ops) <to_terminal_info>: Use
8210 TARGET_DEFAULT_FUNC.
8211
c6ea8f79
TT
82122014-02-19 Tom Tromey <tromey@redhat.com>
8213
8214 * target-delegates.c: Rebuild.
8215 * target.c (update_current_target): Don't inherit or default
8216 to_terminal_save_ours.
8217 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8218 TARGET_DEFAULT_IGNORE.
8219
e4a733f1
TT
82202014-02-19 Tom Tromey <tromey@redhat.com>
8221
8222 * target-delegates.c: Rebuild.
8223 * target.c (update_current_target): Don't inherit or default
8224 to_terminal_ours.
8225 * target.h (struct target_ops) <to_terminal_ours>: Use
8226 TARGET_DEFAULT_IGNORE.
8227
74fcbef9
TT
82282014-02-19 Tom Tromey <tromey@redhat.com>
8229
8230 * target-delegates.c: Rebuild.
8231 * target.c (update_current_target): Don't inherit or default
8232 to_terminal_ours_for_output.
8233 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8234 TARGET_DEFAULT_IGNORE.
8235
ddeaacc9
TT
82362014-02-19 Tom Tromey <tromey@redhat.com>
8237
8238 * target-delegates.c: Rebuild.
8239 * target.c (update_current_target): Don't inherit or default
8240 to_terminal_inferior.
8241 * target.h (struct target_ops) <to_terminal_inferior>: Use
8242 TARGET_DEFAULT_IGNORE.
8243
0343661d
TT
82442014-02-19 Tom Tromey <tromey@redhat.com>
8245
8246 * target-delegates.c: Rebuild.
8247 * target.c (update_current_target): Don't inherit or default
8248 to_terminal_init.
8249 * target.h (struct target_ops) <to_terminal_init>: Use
8250 TARGET_DEFAULT_IGNORE.
8251
77cdffe9
TT
82522014-02-19 Tom Tromey <tromey@redhat.com>
8253
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8256 to_can_accel_watchpoint_condition.
8257 * target.h (struct target_ops)
8258 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8259
d03655e4
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8264 to_region_ok_for_hw_watchpoint.
8265 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8266 Use TARGET_DEFAULT_FUNC.
8267
65f160a9
TT
82682014-02-19 Tom Tromey <tromey@redhat.com>
8269
8270 * target-delegates.c: Rebuild.
8271 * target.c (update_current_target): Don't inherit or default
8272 to_watchpoint_addr_within_range.
8273 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8274 Use TARGET_DEFAULT_FUNC.
8275
61dd109f
TT
82762014-02-19 Tom Tromey <tromey@redhat.com>
8277
8278 * target-delegates.c: Rebuild.
8279 * target.c (update_current_target): Don't inherit or default
8280 to_remove_watchpoint.
8281 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8282 TARGET_DEFAULT_NORETURN.
8283
016facd4
TT
82842014-02-19 Tom Tromey <tromey@redhat.com>
8285
8286 * target-delegates.c: Rebuild.
8287 * target.c (update_current_target): Don't inherit or default
8288 to_insert_watchpoint.
8289 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8290 TARGET_DEFAULT_RETURN.
8291
418dabac
TT
82922014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target-delegates.c: Rebuild.
8295 * target.c (update_current_target): Don't inherit or default
8296 to_remove_hw_breakpoint.
8297 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8298 TARGET_DEFAULT_RETURN.
8299
61b371f9
TT
83002014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target-delegates.c: Rebuild.
8303 * target.c (update_current_target): Don't inherit or default
8304 to_insert_hw_breakpoint.
8305 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8306 TARGET_DEFAULT_RETURN.
8307
52b51d06
TT
83082014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target-delegates.c: Rebuild.
8311 * target.c (update_current_target): Don't inherit or default
8312 to_can_use_hw_breakpoint.
8313 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8314 TARGET_DEFAULT_RETURN.
8315
f86e59b2
TT
83162014-02-19 Tom Tromey <tromey@redhat.com>
8317
8318 * target-delegates.c: Rebuild.
8319 * target.c (update_current_target): Don't inherit or default
8320 to_files_info.
8321 * target.h (struct target_ops) <to_files_info>: Use
8322 TARGET_DEFAULT_IGNORE.
8323
6c628163
TT
83242014-02-19 Tom Tromey <tromey@redhat.com>
8325
8326 * target-delegates.c: Rebuild.
8327 * target.c (update_current_target): Don't inherit or default
8328 to_store.
8329 * target.h (struct target_ops) <to_store>: Use
8330 TARGET_DEFAULT_NORETURN.
8331
bebd3233
TT
83322014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target-delegates.c: Rebuild.
8335 * target.c (update_current_target): Don't inherit or default
8336 to_post_attach.
8337 * target.h (struct target_ops) <to_post_attach>: Use
8338 TARGET_DEFAULT_IGNORE.
8339
a53f3625
TT
83402014-02-19 Tom Tromey <tromey@redhat.com>
8341
8342 * target-delegates.c: Rebuild.
8343 * target.c (update_current_target): Don't inherit or default
8344 to_rcmd.
8345 (default_rcmd): New function.
8346 (do_monitor_command): Unconditionally delegate.
8347 * target.h (struct target_ops) <to_rmcd>: Use
8348 TARGET_DEFAULT_FUNC.
8349
e9a29200
TT
83502014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target-delegates.c: Rebuild.
8353 * target.c (init_dummy_target): Don't initialize to_attach.
8354 (target_attach): Unconditionally delegate.
8355 * target.h (struct target_ops) <to_attach>: Use
8356 TARGET_DEFAULT_FUNC.
8357
09da0d0a
TT
83582014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target-delegates.c: Rebuild.
8361 * target.c (target_detach): Unconditionally delegate.
8362 (init_dummy_target): Don't initialize to_detach.
8363 * target.h (struct target_ops) <to_detach>: Use
8364 TARGET_DEFAULT_IGNORE.
8365
5436ff03
TT
83662014-02-19 Tom Tromey <tromey@redhat.com>
8367
8368 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8369 Add argument.
8370 (target_augmented_libraries_svr4_read): Add argument.
8371 * target.c (update_current_target): Update.
8372 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8373 argument.
8374
f0d960ea
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target.h (struct target_ops) <to_call_history_range>: Add
8378 argument.
8379 * target.c (target_call_history_range): Add argument.
8380 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8381 argument.
8382 (record_btrace_call_history_from): Update.
8383
ec0aea04
TT
83842014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * target.h (struct target_ops) <to_call_history_from>: Add
8387 argument.
8388 * target.c (target_call_history_from): Add argument.
8389 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8390 argument.
8391
5df2fcba
TT
83922014-02-19 Tom Tromey <tromey@redhat.com>
8393
8394 * target.h (struct target_ops) <to_call_history>: Add argument.
8395 * target.c (target_call_history): Add argument.
8396 * record-btrace.c (record_btrace_call_history): Add 'self'
8397 argument.
8398
4e99c6b7
TT
83992014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target.h (struct target_ops) <to_insn_history_range>: Add
8402 argument.
8403 * target.c (target_insn_history_range): Add argument.
8404 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8405 argument.
8406 (record_btrace_insn_history_from): Update.
8407
9abc3ff3
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target.h (struct target_ops) <to_insn_history_from>: Add
8411 argument.
8412 * target.c (target_insn_history_from): Add argument.
8413 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8414 argument.
8415
7a6c5609
TT
84162014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target.h (struct target_ops) <to_insn_history>: Add argument.
8419 * target.c (target_insn_history): Add argument.
8420 * record-btrace.c (record_btrace_insn_history): Add 'self'
8421 argument.
8422
606183ac
TT
84232014-02-19 Tom Tromey <tromey@redhat.com>
8424
8425 * target.h (struct target_ops) <to_goto_record>: Add argument.
8426 * target.c (target_goto_record): Add argument.
8427 * record-full.c (record_full_goto): Add 'self' argument.
8428 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8429
307a1b91
TT
84302014-02-19 Tom Tromey <tromey@redhat.com>
8431
8432 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8433 * target.c (target_goto_record_end): Add argument.
8434 * record-full.c (record_full_goto_end): Add 'self' argument.
8435 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8436
08475817
TT
84372014-02-19 Tom Tromey <tromey@redhat.com>
8438
8439 * target.h (struct target_ops) <to_goto_record_begin>: Add
8440 argument.
8441 * target.c (target_goto_record_begin): Add argument.
8442 * record-full.c (record_full_goto_begin): Add 'self' argument.
8443 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8444 argument.
8445
1c63c994
TT
84462014-02-19 Tom Tromey <tromey@redhat.com>
8447
8448 * target.h (struct target_ops) <to_record_is_replaying>: Add
8449 argument.
8450 * target.c (target_record_is_replaying): Add argument.
8451 * record-full.c (record_full_is_replaying): Add 'self' argument.
8452 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8453 argument.
8454 (record_btrace_xfer_partial, record_btrace_store_registers)
8455 (record_btrace_prepare_to_store, record_btrace_resume)
8456 (record_btrace_wait, record_btrace_decr_pc_after_break)
8457 (record_btrace_find_new_threads, record_btrace_thread_alive):
8458 Update.
8459
d1b55219
TT
84602014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target.h (struct target_ops) <to_delete_record>: Add argument.
8463 * target.c (target_delete_record): Add argument.
8464 * record-full.c (record_full_delete): Add 'self' argument.
8465
1390f529
TT
84662014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target.h (struct target_ops) <to_save_record>: Add argument.
8469 * target.c (target_save_record): Add argument.
8470 * record-full.c (record_full_save): Add 'self' argument.
8471 (record_full_save): Add 'self' argument.
8472
630d6a4a
TT
84732014-02-19 Tom Tromey <tromey@redhat.com>
8474
8475 * target.h (struct target_ops) <to_info_record>: Add argument.
8476 * target.c (target_info_record): Add argument.
8477 * record.c (info_record_command): Add argument.
8478 * record-full.c (record_full_info): Add 'self' argument.
8479 * record-btrace.c (record_btrace_info): Add 'self' argument.
8480
c6cd7c02
TT
84812014-02-19 Tom Tromey <tromey@redhat.com>
8482
8483 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8484 * target.c (target_stop_recording): Add argument.
8485 * record.c (record_stop): Add argument.
8486 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8487 argument.
8488
39c49f83
TT
84892014-02-19 Tom Tromey <tromey@redhat.com>
8490
8491 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8492 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8493 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8494 argument.
8495 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8496 (_initialize_amd64_linux_nat): Use it.
8497 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8498 (_initialize_i386_linux_nat): Use it.
8499
1777056d
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8503 * target.c (target_teardown_btrace): Add argument.
8504 * remote.c (remote_teardown_btrace): Add 'self' argument.
8505 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8506 argument.
8507 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8508 argument.
8509
25e95349
TT
85102014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8513 * target.c (target_disable_btrace): Add argument.
8514 * remote.c (remote_disable_btrace): Add 'self' argument.
8515 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8516 argument.
8517 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8518 argument.
8519
e3c49f88
TT
85202014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8523 * target.c (target_enable_btrace): Add argument.
8524 * remote.c (remote_enable_btrace): Add 'self' argument.
8525 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8526 argument.
8527 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8528 argument.
8529
fe38f897
TT
85302014-02-19 Tom Tromey <tromey@redhat.com>
8531
8532 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8533 (target_can_use_agent): Add argument.
8534 * target.c (update_current_target): Update.
8535 * remote.c (remote_can_use_agent): Add 'self' argument.
8536 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8537
2c152180
TT
85382014-02-19 Tom Tromey <tromey@redhat.com>
8539
8540 * target.h (struct target_ops) <to_use_agent>: Add argument.
8541 (target_use_agent): Add argument.
8542 * target.c (update_current_target): Update.
8543 * remote.c (remote_use_agent): Add 'self' argument.
8544 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8545
a893e81f
TT
85462014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8549 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8550 (target_traceframe_info): Add argument.
8551 * target.c (update_current_target): Update.
8552 * remote.c (remote_traceframe_info): Add 'self' argument.
8553 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8554
c686c57f
TT
85552014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target.h (target_static_tracepoint_markers_by_strid): Add
8558 argument.
8559 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8560 'self' argument.
8561 * target.c (update_current_target): Update.
8562 * remote.c (struct target_ops)
8563 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8564 * linux-nat.c (struct target_ops)
8565 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8566
61fc905d
TT
85672014-02-19 Tom Tromey <tromey@redhat.com>
8568
8569 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8570 Add argument.
8571 (target_static_tracepoint_marker_at): Add argument.
8572 * target.c (update_current_target): Update.
8573 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8574 argument.
8575
c378d69d
TT
85762014-02-19 Tom Tromey <tromey@redhat.com>
8577
8578 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8579 (target_set_permissions): Add argument.
8580 * target.c (update_current_target): Update.
8581 * remote.c (remote_set_permissions): Add 'self' argument.
8582 (remote_start_remote): Update.
8583
bd7ae0f5
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8587 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8588 (target_get_tib_address): Add argument.
8589 * target.c (update_current_target): Update.
8590 * remote.c (remote_get_tib_address): Add 'self' argument.
8591
d9e68a2c
TT
85922014-02-19 Tom Tromey <tromey@redhat.com>
8593
8594 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8595 (target_set_trace_notes): Add argument.
8596 * target.c (update_current_target): Update.
8597 * remote.c (remote_set_trace_notes): Add 'self' argument.
8598
4da384be
TT
85992014-02-19 Tom Tromey <tromey@redhat.com>
8600
8601 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8602 argument.
8603 (target_set_trace_buffer_size): Add argument.
8604 * target.c (update_current_target): Update.
8605 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8606
736d5b1f
TT
86072014-02-19 Tom Tromey <tromey@redhat.com>
8608
8609 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8610 argument.
8611 (target_set_circular_trace_buffer): Add argument.
8612 * target.c (update_current_target): Update.
8613 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8614 argument.
8615
37b25738
TT
86162014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8619 argument.
8620 (target_set_disconnected_tracing): Add argument.
8621 * target.c (update_current_target): Update.
8622 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8623
0e67620a
TT
86242014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * target.h (struct target_ops)
8627 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8628 (target_get_min_fast_tracepoint_insn_len): Add argument.
8629 * target.c (update_current_target): Update.
8630 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8631 argument.
8632
88ee6f45
TT
86332014-02-19 Tom Tromey <tromey@redhat.com>
8634
8635 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8636 argument.
8637 (target_get_raw_trace_data): Add argument.
8638 * target.c (update_current_target): Update.
8639 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8640
181e3713
TT
86412014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8644 Add argument.
8645 (target_upload_trace_state_variables): Add argument.
8646 * target.c (update_current_target): Update.
8647 * remote.c (remote_upload_trace_state_variables): Add 'self'
8648 argument.
8649 (remote_start_remote): Update.
8650
ab6617cc
TT
86512014-02-19 Tom Tromey <tromey@redhat.com>
8652
8653 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8654 argument.
8655 (target_upload_tracepoints): Add argument.
8656 * target.c (update_current_target): Update.
8657 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8658 (remote_start_remote): Update.
8659
dc3decaf
TT
86602014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8663 (target_save_trace_data): Add argument.
8664 * target.c (update_current_target): Update.
8665 * remote.c (remote_save_trace_data): Add 'self' argument.
8666
4011015b
TT
86672014-02-19 Tom Tromey <tromey@redhat.com>
8668
8669 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8670 argument.
8671 * target.h (struct target_ops)
8672 <to_get_trace_state_variable_value>: Add argument.
8673 (target_get_trace_state_variable_value): Add argument.
8674 * target.c (update_current_target): Update.
8675 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8676 argument.
8677 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8678
bd4c6793
TT
86792014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8682 * target.h (struct target_ops) <to_trace_find>: Add argument.
8683 (target_trace_find): Add argument.
8684 * target.c (update_current_target): Update.
8685 * remote.c (remote_trace_find): Add 'self' argument.
8686 * ctf.c (ctf_trace_find): Add 'self' argument.
8687
74499f1b
TT
86882014-02-19 Tom Tromey <tromey@redhat.com>
8689
8690 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8691 (target_trace_stop): Add argument.
8692 * target.c (update_current_target): Update.
8693 * remote.c (remote_trace_stop): Add 'self' argument.
8694
db90e85c
TT
86952014-02-19 Tom Tromey <tromey@redhat.com>
8696
8697 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8698 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8699 argument.
8700 (target_get_tracepoint_status): Add argument.
8701 * target.c (update_current_target): Update.
8702 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8703
8bd200f1
TT
87042014-02-19 Tom Tromey <tromey@redhat.com>
8705
8706 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8707 * target.h (struct target_ops) <to_get_trace_status>: Add
8708 argument.
8709 (target_get_trace_status): Add argument.
8710 * target.c (update_current_target): Update.
8711 * remote.c (remote_get_trace_status): Add 'self' argument.
8712 (remote_start_remote, remote_can_download_tracepoint): Update.
8713 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8714
e2d1aae3
TT
87152014-02-19 Tom Tromey <tromey@redhat.com>
8716
8717 * target.h (struct target_ops) <to_trace_start>: Add argument.
8718 (target_trace_start): Add argument.
8719 * target.c (update_current_target): Update.
8720 * remote.c (remote_trace_start): Add 'self' argument.
8721
583f9a86
TT
87222014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8725 Add argument.
8726 (target_trace_set_readonly_regions): Add argument.
8727 * target.c (update_current_target): Update.
8728 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8729 argument.
8730
780b049c
TT
87312014-02-19 Tom Tromey <tromey@redhat.com>
8732
8733 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8734 argument.
8735 (target_disable_tracepoint): Add argument.
8736 * target.c (update_current_target): Update.
8737 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8738
46670d57
TT
87392014-02-19 Tom Tromey <tromey@redhat.com>
8740
8741 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8742 argument.
8743 (target_enable_tracepoint): Add argument.
8744 * target.c (update_current_target): Update.
8745 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8746
559d2b81
TT
87472014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * target.h (struct target_ops) <to_download_trace_state_variable>:
8750 Add argument.
8751 (target_download_trace_state_variable): Add argument.
8752 * target.c (update_current_target): Update.
8753 * remote.c (remote_download_trace_state_variable): Add 'self'
8754 argument.
8755
a52a8357
TT
87562014-02-19 Tom Tromey <tromey@redhat.com>
8757
8758 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8759 argument.
8760 (target_can_download_tracepoint): Add argument.
8761 * target.c (update_current_target): Update.
8762 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8763
548f7808
TT
87642014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * target.h (struct target_ops) <to_download_tracepoint>: Add
8767 argument.
8768 (target_download_tracepoint): Add argument.
8769 * target.c (update_current_target): Update.
8770 * remote.c (remote_download_tracepoint): Add 'self' argument.
8771
ecae04e1
TT
87722014-02-19 Tom Tromey <tromey@redhat.com>
8773
8774 * target.h (struct target_ops) <to_trace_init>: Add argument.
8775 (target_trace_init): Add argument.
8776 * target.c (update_current_target): Update.
8777 * remote.c (remote_trace_init): Add 'self' argument.
8778
fab5aa7c
TT
87792014-02-19 Tom Tromey <tromey@redhat.com>
8780
8781 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8782 * target.c (target_fileio_readlink): Add argument.
8783 * remote.c (remote_hostio_readlink): Add 'self' argument.
8784 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8785
dbbca37d
TT
87862014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8789 * target.c (target_fileio_unlink): Add argument.
8790 * remote.c (remote_hostio_unlink): Add 'self' argument.
8791 (remote_file_delete): Update.
8792 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8793
df39ea25
TT
87942014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8797 * target.c (target_fileio_close): Add argument.
8798 * remote.c (remote_hostio_close): Add 'self' argument.
8799 (remote_hostio_close_cleanup): Update.
8800 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8801 Update.
8802 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8803
a3be983c
TT
88042014-02-19 Tom Tromey <tromey@redhat.com>
8805
8806 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8807 * target.c (target_fileio_pread): Add argument.
8808 * remote.c (remote_hostio_pread): Add 'self' argument.
8809 (remote_bfd_iovec_pread, remote_file_get): Update.
8810 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8811
0d866f62
TT
88122014-02-19 Tom Tromey <tromey@redhat.com>
8813
8814 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8815 * target.c (target_fileio_pwrite): Add argument.
8816 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8817 (remote_file_put): Update.
8818 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8819
cd897586
TT
88202014-02-19 Tom Tromey <tromey@redhat.com>
8821
8822 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8823 * target.c (target_fileio_open): Add argument.
8824 * remote.c (remote_hostio_open): Add 'self' argument.
8825 (remote_bfd_iovec_open): Add 'self' argument.
8826 (remote_file_put): Add 'self' argument.
8827 (remote_file_get): Add 'self' argument.
8828 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8829
78eff0ec
TT
88302014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8833 Add argument.
8834 (target_can_run_breakpoint_commands): Add argument.
8835 * target.c (update_current_target): Update.
8836 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8837 argument.
8838 (remote_insert_breakpoint): Add 'self' argument.
8839 (remote_insert_hw_breakpoint): Add 'self' argument.
8840 (remote_can_run_breakpoint_commands): Add 'self' argument.
8841
efcc2da7
TT
88422014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target.h (struct target_ops)
8845 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8846 (target_supports_evaluation_of_breakpoint_conditions): Add
8847 argument.
8848 * target.c (update_current_target): Update.
8849 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8850 argument.
8851 (remote_insert_breakpoint): Add 'self' argument.
8852 (remote_insert_hw_breakpoint): Add 'self' argument.
8853 (remote_supports_cond_breakpoints): Add 'self' argument.
8854
6de37a3a
TT
88552014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8858 argument.
8859 (target_supports_string_tracing): Add argument.
8860 * target.c (update_current_target): Update.
8861 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8862
2bfc0540
TT
88632014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target.h (struct target_ops)
8866 <to_supports_disable_randomization>: Add argument.
8867 * target.c (find_default_supports_disable_randomization): Add
8868 argument.
8869 (target_supports_disable_randomization): Add argument.
8870 (find_default_supports_disable_randomization): Add 'self'
8871 argument.
8872 * remote.c (extended_remote_supports_disable_randomization): Add
8873 'self' argument.
8874 (remote_supports_disable_randomization): Add 'self' argument.
8875 (extended_remote_create_inferior): Update.
8876 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8877 'self' argument.
8878
7d178d6a
TT
88792014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target.h (struct target_ops)
8882 <to_supports_enable_disable_tracepoint>: Add argument.
8883 (target_supports_enable_disable_tracepoint): Add argument.
8884 * target.c (update_current_target): Update.
8885 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8886 argument.
8887
86ce2668
TT
88882014-02-19 Tom Tromey <tromey@redhat.com>
8889
8890 * target.h (struct target_ops) <to_supports_multi_process>: Add
8891 argument.
8892 (target_supports_multi_process): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_supports_multi_process): Add 'self' argument.
8895 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8896 argument.
8897 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8898 argument.
8899
4c612759
TT
89002014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target.h (struct target_ops) <to_execution_direction>: Add
8903 argument.
8904 (target_execution_direction): Add argument.
8905 * target.c (default_execution_direction): Add 'self' argument.
8906 * record-full.c (record_full_execution_direction): Add 'self'
8907 argument.
8908
19db3e69
TT
89092014-02-19 Tom Tromey <tromey@redhat.com>
8910
8911 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8912 argument.
8913 (target_can_execute_reverse): Add argument.
8914 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8915 * record-full.c (record_full_can_execute_reverse): Add 'self'
8916 argument.
8917 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8918 argument.
8919
1e6b91a4
TT
89202014-02-19 Tom Tromey <tromey@redhat.com>
8921
8922 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8923 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8924 argument.
8925 (target_get_ada_task_ptid): Add argument.
8926 * target.c (update_current_target): Update.
8927 (default_get_ada_task_ptid): Add 'self' argument.
8928 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8929 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8930 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8931 argument.
8932 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8933 argument.
8934 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8935 argument.
8936 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8937 argument.
8938 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8939 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8940 argument.
8941
3c80fb48
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8945 (target_goto_bookmark): Add argument.
8946 * target.c (dummy_goto_bookmark): Add 'self' argument.
8947 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8948
dd0e2830
TT
89492014-02-19 Tom Tromey <tromey@redhat.com>
8950
8951 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8952 (target_get_bookmark): Add argument.
8953 * target.c (dummy_get_bookmark): Add 'self' argument.
8954 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8955
fc6691b2
TT
89562014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8959 argument.
8960 (target_make_corefile_notes): Add argument.
8961 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8962 * procfs.c (procfs_make_note_section): Add 'self' argument.
8963 (procfs_make_note_section): Add 'self' argument.
8964 (procfs_make_note_section): Add 'self' argument.
8965 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8966 argument.
8967 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8968 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8969 * exec.c (exec_make_note_section): Add 'self' argument.
8970 (exec_make_note_section): Add 'self' argument.
8971
2e73927c
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target.h (struct target_ops) <to_find_memory_regions>: Add
8975 argument.
8976 (target_find_memory_regions): Add argument.
8977 * target.c (dummy_find_memory_regions): Add 'self' argument.
8978 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8979 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8980 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8981 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8982 * exec. (exec_do_find_memory_regions): New global.
8983 (exec_set_find_memory_regions): Rewrite.
8984 (exec_find_memory_regions): New function.
8985 (init_exec_ops): Use exec_find_memory_regions.
8986
2a9a2795
TT
89872014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target.h (struct target_ops) <to_supports_non_stop>: Add
8990 argument.
8991 * target.c (find_default_supports_non_stop): Add argument.
8992 (target_supports_non_stop): Add argument.
8993 (find_default_supports_non_stop): Add 'self' argument.
8994 * remote.c (remote_supports_non_stop): Add 'self' argument.
8995 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8996
4ab76ea3
TT
89972014-02-19 Tom Tromey <tromey@redhat.com>
8998
8999 * target.h (struct target_ops) <to_log_command>: Add argument.
9000 (target_log_command): Add argument.
9001 * serial.h (serial_log_command): Add 'self' argument.
9002 * serial.c (serial_log_command): Add 'self' argument.
9003
8dd27370
TT
90042014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9007 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9008 argument.
9009 (target_pid_to_exec_file): Add argument.
9010 * target.c (debug_to_pid_to_exec_file): Add argument.
9011 (update_current_target): Update.
9012 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9013 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9014 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9015 (linux_handle_extended_wait): Update.
9016 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9017 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9018 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9019 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9020
1aac633b
TT
90212014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target.h (struct target_ops) <to_rcmd>: Add argument.
9024 (target_rcmd): Add argument.
9025 * target.c (debug_to_rcmd): Add argument.
9026 (update_current_target, do_monitor_command): Update.
9027 * remote.c (remote_rcmd): Add 'self' argument.
9028 * monitor.c (monitor_rcmd): Add 'self' argument.
9029
1eab8a48
TT
90302014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * windows-nat.c (windows_stop): Add 'self' argument.
9033 * target.h (struct target_ops) <to_stop>: Add argument.
9034 * target.c (target_stop): Add argument.
9035 (debug_to_stop): Add argument.
9036 (update_current_target): Update.
9037 * remote.c (remote_stop): Add 'self' argument.
9038 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9039 (gdbsim_cntrl_c): Update.
9040 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9041 * procfs.c (procfs_stop): Add 'self' argument.
9042 * nto-procfs.c (procfs_stop): Add 'self' argument.
9043 * monitor.c (monitor_stop): Add 'self' argument.
9044 (monitor_open): Update.
9045 * linux-nat.c (linux_nat_stop): Add argument.
9046 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9047 * gnu-nat.c (gnu_stop): Add 'self' argument.
9048 * darwin-nat.c (darwin_stop): Add 'self' argument.
9049
503a628d
TT
90502014-02-19 Tom Tromey <tromey@redhat.com>
9051
9052 * target.h (struct target_ops) <to_thread_name>: Add argument.
9053 * target.c (target_thread_name): Add argument.
9054 (update_current_target): Update.
9055 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9056
c15906d8
TT
90572014-02-19 Tom Tromey <tromey@redhat.com>
9058
9059 * target.h (struct target_ops) <to_extra_thread_info>: Add
9060 argument.
9061 (target_extra_thread_info): Add argument.
9062 * target.c (update_current_target): Update.
9063 * remote.c (remote_threads_extra_info): Add 'self' argument.
9064 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9065 argument.
9066 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9067 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9068 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9069 argument.
9070 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9071 argument.
9072 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9073 argument.
9074 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9075 argument.
9076
daf5e9b6
TT
90772014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target.h (struct target_ops) <to_program_signals>: Add argument.
9080 * target.c (target_program_signals): Add argument.
9081 * remote.c (remote_program_signals): Add 'self' argument.
9082
94bedb42
TT
90832014-02-19 Tom Tromey <tromey@redhat.com>
9084
9085 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9086 * target.c (target_pass_signals): Add argument.
9087 * remote.c (remote_pass_signals): Add 'self' argument.
9088 (remote_start_remote): Update.
9089 * procfs.c (procfs_pass_signals): Add 'self' argument.
9090 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9091 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9092 (linux_nat_create_inferior, linux_nat_attach): Update.
9093
da82bd6b
TT
90942014-02-19 Tom Tromey <tromey@redhat.com>
9095
9096 * windows-nat.c (windows_can_run): Add 'self' argument.
9097 * target.h (struct target_ops) <to_can_run>: Add argument.
9098 (target_can_run): Add argument.
9099 * target.c (debug_to_can_run): Add argument.
9100 (update_current_target): Update.
9101 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9102 * inf-child.c (inf_child_can_run): Add 'self' argument.
9103 * go32-nat.c (go32_can_run): Add 'self' argument.
9104
d796e1d6
TT
91052014-02-19 Tom Tromey <tromey@redhat.com>
9106
9107 * target.h (struct target_ops) <to_has_exited>: Add argument.
9108 (target_has_exited): Add argument.
9109 * target.c (debug_to_has_exited): Add argument.
9110 (update_current_target): Update.
9111
ff214e67
TT
91122014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9115 argument.
9116 (target_set_syscall_catchpoint): Add argument.
9117 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9118 argument.
9119 * target.c (update_current_target): Update.
9120
758e29d2
TT
91212014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9124 argument.
9125 (target_remove_exec_catchpoint): Add argument.
9126 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9127 (update_current_target): Update.
9128 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9129 argument.
9130
ba025e51
TT
91312014-02-19 Tom Tromey <tromey@redhat.com>
9132
9133 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9134 argument.
9135 (target_insert_exec_catchpoint): Add argument.
9136 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9137 (update_current_target): Update.
9138 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9139 argument.
9140
e98cf0cd
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9144 argument.
9145 (target_remove_vfork_catchpoint): Add argument.
9146 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9147 (update_current_target): Update.
9148 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9149 argument.
9150
3ecc7da0
TT
91512014-02-19 Tom Tromey <tromey@redhat.com>
9152
9153 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9154 argument.
9155 (target_insert_vfork_catchpoint): Add argument.
9156 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9157 (update_current_target): Update.
9158 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9159 argument.
9160
973fc227
TT
91612014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9164 argument.
9165 (target_remove_fork_catchpoint): Add argument.
9166 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9167 (update_current_target): Update.
9168 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9169 argument.
9170
a863b201
TT
91712014-02-19 Tom Tromey <tromey@redhat.com>
9172
9173 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9174 argument.
9175 (target_insert_fork_catchpoint): Add argument.
9176 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9177 (update_current_target): Update.
9178 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9179 argument.
9180
2e97a79e
TT
91812014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9184 argument.
9185 (target_post_startup_inferior): Add argument.
9186 * target.c (debug_to_post_startup_inferior): Add argument.
9187 (update_current_target): Update.
9188 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9189 argument.
9190 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9191 argument.
9192 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9193 argument.
9194 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9195 argument.
9196 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9197 'self' argument.
9198 (super_post_startup_inferior): Likewise.
9199 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9200 'self' argument.
9201 (super_post_startup_inferior): Likewise.
9202 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9203 Add 'self' argument.
9204 (super_post_startup_inferior): Likewise.
9205
71a9f134
TT
92062014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target.h (struct target_ops) <to_load>: Add argument.
9209 * target.c (target_load): Add argument.
9210 (debug_to_load): Add argument.
9211 (update_current_target): Update.
9212 * remote.c (remote_load): Add 'self' argument.
9213 * remote-sim.c (gdbsim_load): Add 'self' argument.
9214 * remote-mips.c (mips_load): Add 'self' argument.
9215 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9216 * monitor.c (monitor_load): Add 'self' argument.
9217 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9218
0a4f40a2
TT
92192014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9222 (target_terminal_info): Add argument.
9223 * target.c (debug_to_terminal_info): Add argument.
9224 (default_terminal_info): Likewise.
9225 * inflow.c (child_terminal_info): Add 'self' argument.
9226 * inferior.h (child_terminal_info): Add 'self' argument.
9227 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9228
ae3bd431
TT
92292014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9232 argument.
9233 (target_terminal_save_ours): Add argument.
9234 * target.c (debug_to_terminal_save_ours): Add argument.
9235 (update_current_target): Update.
9236 * inflow.c (terminal_save_ours): Add 'self' argument.
9237 * inferior.h (terminal_save_ours): Add 'self' argument.
9238
e3594fd1
TT
92392014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9242 (target_terminal_ours): Add argument.
9243 * target.c (debug_to_terminal_ours): Add argument.
9244 (update_current_target): Update.
9245 * remote.c (remote_terminal_ours): Add 'self' argument.
9246 (remote_close): Update.
9247 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9248 * inflow.c (terminal_ours): Add 'self' argument.
9249 * inferior.h (terminal_ours): Add 'self' argument.
9250 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9251
2e1e1a19
TT
92522014-02-19 Pedro Alves <palves@redhat.com>
9253 Tom Tromey <tromey@redhat.com>
9254
9255 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9256 argument.
9257 (target_terminal_ours_for_output): Add argument.
9258 * target.c (debug_to_terminal_ours_for_output): Add argument.
9259 (update_current_target): Update.
9260 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9261 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9262 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9263
d2f640d4
TT
92642014-02-19 Tom Tromey <tromey@redhat.com>
9265
9266 * target.h (struct target_ops) <to_terminal_inferior>: Add
9267 argument.
9268 * target.c (target_terminal_inferior): Add argument.
9269 (update_current_target): Update.
9270 * remote.c (remote_terminal_inferior): Add 'self' argument.
9271 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9272 * inflow.c (terminal_inferior): Add 'self' argument.
9273 * inferior.h (terminal_inferior): Add 'self' argument.
9274 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9275 (go32_terminal_inferior): Add 'self' argument.
9276
c42bf286
TT
92772014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9280 (target_terminal_init): Add argument.
9281 * target.c (debug_to_terminal_init): Add argument.
9282 (update_current_target): Update.
9283 * inflow.c (terminal_init_inferior): Add 'self' argument.
9284 * inferior.h (terminal_init_inferior): Add 'self' argument.
9285 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9286 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9287
c3a5ff89
TT
92882014-02-19 Tom Tromey <tromey@redhat.com>
9289
9290 * target.h (struct target_ops)
9291 <to_can_accel_watchpoint_condition>: Add argument.
9292 (target_can_accel_watchpoint_condition): Add argument.
9293 * target.c (debug_to_can_accel_watchpoint_condition): Add
9294 argument.
9295 (update_current_target): Update.
9296 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9297 'self' argument.
9298
31568a15
TT
92992014-02-19 Tom Tromey <tromey@redhat.com>
9300
9301 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9302 Add argument.
9303 (target_region_ok_for_hw_watchpoint): Add argument.
9304 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9305 (default_region_ok_for_hw_watchpoint): Add argument.
9306 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9307 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9308 argument.
9309 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9310 argument.
9311 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9312 argument.
9313 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9314 'self' argument.
9315 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9316 'self' argument.
9317 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9318 'self' argument.
9319 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9320 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9321 'self' argument.
9322 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9323 Add 'self' argument.
9324
7bb99c53
TT
93252014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9328 argument.
9329 (target_insert_watchpoint): Add argument.
9330 * target.c (debug_to_insert_watchpoint): Add argument.
9331 (update_current_target): Update.
9332 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9333 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9334 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9335 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9336 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9337 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9338 argument.
9339 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9340 (procfs_insert_hw_watchpoint): Add 'self' argument.
9341 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9342 argument.
9343 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9344 argument.
9345 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9346 argument.
9347 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9348 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9349 argument.
9350 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9351 'self' argument.
9352
11b5219a
TT
93532014-02-19 Tom Tromey <tromey@redhat.com>
9354
9355 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9356 argument.
9357 (target_remove_watchpoint): Add argument.
9358 * target.c (debug_to_remove_watchpoint): Add argument.
9359 (update_current_target): Update.
9360 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9361 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9362 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9363 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9364 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9365 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9366 argument.
9367 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9368 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9369 argument.
9370 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9371 argument.
9372 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9373 argument.
9374 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9375 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9376 argument.
9377 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9378 'self' argument.
9379
a64dc96c
TT
93802014-02-19 Tom Tromey <tromey@redhat.com>
9381
9382 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9383 argument.
9384 (target_remove_hw_breakpoint): Add argument.
9385 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9386 (update_current_target): Update.
9387 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9388 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9389 argument.
9390 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9391 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9392 argument.
9393 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9394 'self' argument.
9395
23a26771
TT
93962014-02-19 Tom Tromey <tromey@redhat.com>
9397
9398 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9399 argument.
9400 (target_insert_hw_breakpoint): Add argument.
9401 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9402 (update_current_target): Update.
9403 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9404 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9405 argument.
9406 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9407 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9408 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9409 argument.
9410 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9411 'self' argument.
9412
5461485a
TT
94132014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9416 argument.
9417 (target_can_use_hardware_watchpoint): Add argument.
9418 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9419 (update_current_target): Update.
9420 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9421 argument.
9422 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9423 argument.
9424 * remote.c (remote_check_watch_resources): Add 'self' argument.
9425 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9426 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9427 argument.
9428 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9429 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9430 argument.
9431 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9432 argument.
9433 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9434 argument.
9435 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9436 argument.
9437 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9438 argument.
9439 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9440 argument.
9441 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9442 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9443 argument.
9444 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9445 'self' argument.
9446
f045800c
TT
94472014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target.h (struct target_ops) <to_post_attach>: Add argument.
9450 (target_post_attach): Add argument.
9451 * target.c (debug_to_post_attach): Add argument.
9452 (update_current_target): Update.
9453 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9454 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9455 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9456 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9457 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9458
de90e03d
TT
94592014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * windows-nat.c (windows_close): Add 'self' argument.
9462 * tracepoint.c (tfile_close): Add 'self' argument.
9463 * target.h (struct target_ops) <to_close>: Add argument.
9464 * target.c (target_close): Add argument.
9465 (update_current_target): Update.
9466 * remote.c (remote_close): Add 'self' argument.
9467 * remote-sim.c (gdbsim_close): Add 'self' argument.
9468 * remote-mips.c (mips_close): Add 'self' argument.
9469 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9470 * record-full.c (record_full_close): Add 'self' argument.
9471 * record-btrace.c (record_btrace_close): Add 'self' argument.
9472 * monitor.h (monitor_close): Add 'self' argument.
9473 * monitor.c (monitor_close): Add 'self' argument.
9474 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9475 * linux-nat.c (linux_nat_close): Add argument.
9476 * go32-nat.c (go32_close): Add 'self' argument.
9477 * exec.c (exec_close_1): Add 'self' argument.
9478 * ctf.c (ctf_close): Add 'self' argument.
9479 * corelow.c (core_close): Add 'self' argument.
9480 (core_close_cleanup): Update.
9481 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9482 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9483
9dd130a0
TT
94842014-02-19 Tom Tromey <tromey@redhat.com>
9485
9486 * remote.c (remote_load): New function.
9487 (init_remote_ops): Use it.
9488
46917d26
TT
94892014-02-19 Tom Tromey <tromey@redhat.com>
9490
9491 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9492 argument.
9493 * common/linux-btrace.h (linux_supports_btrace): Update.
9494 * remote.c (remote_supports_btrace): Add "self" argument.
9495 * target-delegates.c: Rebuild.
9496 * target.c (target_supports_btrace): Remove.
9497 * target.h (struct target_ops) <to_supports_btrace>: Add
9498 target_ops argument.
9499 (target_supports_btrace): New define.
9500
6b84065d
TT
95012014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * record-full.c (record_full_beneath_to_resume_ops)
9504 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9505 (record_full_beneath_to_wait)
9506 (record_full_beneath_to_store_registers_ops)
9507 (record_full_beneath_to_store_registers)
9508 (record_full_beneath_to_xfer_partial_ops)
9509 (record_full_beneath_to_xfer_partial)
9510 (record_full_beneath_to_insert_breakpoint_ops)
9511 (record_full_beneath_to_insert_breakpoint)
9512 (record_full_beneath_to_remove_breakpoint_ops)
9513 (record_full_beneath_to_remove_breakpoint)
9514 (record_full_beneath_to_stopped_by_watchpoint)
9515 (record_full_beneath_to_stopped_data_address)
9516 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9517 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9518 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9519 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9520 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9521 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9522 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9523 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9524 (record_full_resume, record_full_wait_1)
9525 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9526 (record_full_store_registers, record_full_xfer_partial)
9527 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9528 (record_full_async, record_full_core_xfer_partial): Use target
9529 delegation.
9530 * target-delegates.c: Rebuild.
9531 * target.c (current_xfer_partial): Remove.
9532 (update_current_target): Do not INHERIT or de_fault
9533 to_insert_breakpoint, to_remove_breakpoint,
9534 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9535 to_is_async_p, to_async. Do not set to_xfer_partial field.
9536 (default_xfer_partial): Simplify.
9537 (current_xfer_partial): Remove.
9538 (target_wait, target_resume): Simplify.
9539 (find_default_can_async_p, find_default_is_async_p): Update.
9540 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9541 to_xfer_partial, to_stopped_by_watchpoint,
9542 to_stopped_data_address.
9543 (target_store_registers): Simplify.
9544 (forward_target_remove_breakpoint)
9545 (forward_target_insert_breakpoint): Remove.
9546 (target_remove_breakpoint, target_insert_breakpoint)
9547 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9548 * target.h (struct target_ops) <to_resume, to_wait,
9549 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9550 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9551 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9552 markup.
9553 (forward_target_remove_breakpoint)
9554 (forward_target_insert_breakpoint): Remove.
9555 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9556 directly.
9557 (record_btrace_insert_breakpoint): Delegate directly.
9558
1101cb7b
TT
95592014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 PR build/7701:
9562 * target-delegates.c: New file.
9563 * target.c: Include target-delegates.c.
9564 (init_dummy_target): Call install_dummy_methods.
9565 (complete_target_initialization): Call install_delegators.
9566 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9567 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9568 * make-target-delegates: New file.
9569
8b06beed
TT
95702014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * record.c (find_record_target): Use find_target_at.
9573 * target.c (find_target_at): New function.
9574 * target.h (find_target_at): Declare.
9575
6a109b6b
TT
95762014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9579 Add 'ops' argument.
9580 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9581 'ops' argument.
9582 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9583 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9584 'ops' argument.
9585 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9586 argument.
9587 * linux-nat.c (save_sigtrap): Update.
9588 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9589 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9590 (linux_nat_close): Update.
9591 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9592 argument.
9593 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9594 argument.
9595 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9596 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9597 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9598 (tmp_to_async): Add 'ops' argument.
9599 (record_full_stopped_by_watchpoint, record_full_async)
9600 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9601 argument.
9602 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9603 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9604 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9605 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9606 (remote_is_async_p, remote_async): Add 'ops' argument.
9607 (remote_stopped_data_address): Update.
9608 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9609 * target.c (update_current_target)
9610 (find_default_can_async_p, find_default_is_async_p): Update.
9611 (init_dummy_target): Update.
9612 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9613 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9614 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9615 (target_can_async_p, target_is_async_p, target_async)
9616 (target_stopped_by_watchpoint): Update.
9617
e095146b
YQ
96182014-02-19 Yao Qi <yao@codesourcery.com>
9619
9620 PR gdb/16220
9621 * gdbarch.sh: Remove startup_gdbarch.
9622 * gdbarch.c: Regenerated.
9623 * gdbarch.h: Likewise.
9624
bc3c6b36
KB
96252014-02-17 Kevin Buettner <kevinb@redhat.com>
9626
9627 * rl78-tdep.c (rl78_g10_register_name): New function.
9628 (rl78_return_value): Add g10 support.
9629 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9630 g10.
9631
98dc0167 96322014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9633
9634 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9635 (SUBDIR_GUILE_SRCS): Ditto.
9636 (scm-gsmob.o): Ditto.
9637
842c05cd
YQ
96382014-02-17 Yao Qi <yao@codesourcery.com>
9639
9640 * gnu-nat.c (ILL_RPC): Declare defined function.
9641
25c0bd04
YQ
96422014-02-17 Yao Qi <yao@codesourcery.com>
9643
9644 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9645 mach_msg_type_number_t.
9646 (gnu_write_inferior): Likewise.
9647
a9a758e3
YQ
96482014-02-17 Yao Qi <yao@codesourcery.com>
9649
9650 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9651 in format string.
9652 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9653 (inf_validate_procs, inf_signal): Likewise.
9654 (S_exception_raise_request): Likewise.
9655 (do_mach_notify_dead_name): Likewise.
9656 (steal_exc_port): Likewise.
9657 (gnu_read_inferior): Change 'copy_count''s type to
9658 mach_msg_type_number_t.
9659 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9660 format string.
9661
bae8023e
TS
96622014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9663
c82f56d9
TS
9664 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9665 flag. Adjust all users; in particular...
9666 (gnu_wait): ..., don't decrement its value in here...
9667 (gnu_create_inferior): ..., and instead set the flag in here,
9668 around the startup_inferior call, and call that one with
9669 START_INFERIOR_TRAPS_EXPECTED.
9670
3398af6a
TS
9671 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9672 (ILL_RPC): ... new macro.
9673 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9674 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9675 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9676 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9677 functions with ILL_RPC macro.
9678 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9679 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9680 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9681 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9682 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9683 (S_proc_getlogin_reply, S_proc_getsid_reply)
9684 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9685 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9686 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9687 (S_proc_getnports_reply, S_proc_is_important_reply)
9688 (S_proc_get_code_reply): New stub functions, generated with
9689 ILL_RPC macro.
9690
d47642c9
TS
9691 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9692 collected the type check structures.
9693
bae8023e
TS
9694 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9695
8a55ffb0
DE
96962014-02-14 Doug Evans <dje@google.com>
9697
9698 * target.c (target_write_partial): Fix result type.
9699
c2853f3d
JM
97002014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9701
9702 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9703 the proper offsets to access fpregset_t.
9704
ac61d2db
SA
97052014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9706
9707 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9708 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9709 * h8300-tdep.c (setmachinelist): Remove global.
9710 * hppa-tdep.c (hppa_sigtramp): Remove global.
9711 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9712 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9713 * ravenscar-thread.c (update_target_observer): Remove global.
9714 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9715
9d2d0b8b
TT
97162014-02-12 Tom Tromey <tromey@redhat.com>
9717
9718 * common/rsp-low.c: Update comments.
9719 * common/rsp-low.h: Update comments.
9720
a7191e8b
TT
97212014-02-12 Tom Tromey <tromey@redhat.com>
9722
9723 * common/rsp-low.c (convert_ascii_to_int): Remove.
9724 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9725
ff0e980e
TT
97262014-02-12 Tom Tromey <tromey@redhat.com>
9727
9728 * common/rsp-low.h (unhexify): Don't declare.
9729 * common/rsp-low.c (unhexify): Remove.
9730
e9371aff
TT
97312014-02-12 Tom Tromey <tromey@redhat.com>
9732
9733 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9734 * common/rsp-low.c (convert_int_to_ascii): Remove.
9735
971dc0b8
TT
97362014-02-12 Tom Tromey <tromey@redhat.com>
9737
9738 * common/rsp-low.h (hexify): Don't declare.
9739 * common/rsp-low.c (hexify): Remove.
9740
0a822afb
TT
97412014-02-12 Tom Tromey <tromey@redhat.com>
9742
9743 * common/rsp-low.c (hexify): Never take strlen of argument.
9744
9f1b45b0
TT
97452014-02-12 Tom Tromey <tromey@redhat.com>
9746
9747 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9748 * remote.c (extended_remote_run, remote_rcmd)
9749 (remote_download_trace_state_variable, remote_save_trace_data)
9750 (remote_set_trace_notes): Update.
9751 * tracepoint.c (encode_source_string, tfile_write_status)
9752 (tfile_write_uploaded_tsv): Update.
9753
9c3d6531
TT
97542014-02-12 Tom Tromey <tromey@redhat.com>
9755
9756 * tracepoint.c: Include rsp-low.h.
9757 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9758 * remote.c: Include rsp-low.h.
9759 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9760 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9761 (remote_unescape_input): Move to common/rsp-low.c.
9762 * common/rsp-low.h: New file.
9763 * common/rsp-low.c: New file.
9764 * Makefile.in (SFILES): Add common/rsp-low.c.
9765 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9766 (COMMON_OBS): Add rsp-low.o.
9767 (rsp-low.o): New target.
9768
01fd3ea5
TT
97692014-02-12 Tom Tromey <tromey@redhat.com>
9770
9771 * utils.h: Include print-utils.h.
9772 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9773 (int_string, core_addr_to_string, core_addr_to_string_nz)
9774 (hex_string, hex_string_custom): Don't declare.
9775 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9776 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9777 (hex_string_custom, int_string, core_addr_to_string)
9778 (core_addr_to_string_nz, host_address_to_string): Move to
9779 common/print-utils.c.
9780 * common/print-utils.h: New file.
9781 * common/print-utils.c: New file
9782 * Makefile.in (SFILES): Add common/print-utils.c.
9783 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9784 (COMMON_OBS): Add print-utils.o.
9785 (print-utils.o): New target.
9786
9fb50108
TT
97872014-02-12 Tom Tromey <tromey@redhat.com>
9788
9789 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9790
0548b5db
MK
97912014-02-12 Mark Kettenis <kettenis@gnu.org>
9792
9793 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9794
493443a4
MK
97952014-02-12 Mark Kettenis <kettenis@gnu.org>
9796
9797 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9798 if a PT_IO ptrace request returns sucessfully but indicates that 0
9799 bytes were transferred.
9800
706d0883
PA
98012014-02-12 Pedro Alves <palves@redhat.com>
9802 Kevin Buettner <kevinb@redhat.com>
9803
9804 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9805 TYPE_INSTANCE_FLAG_CODE_SPACE.
9806
5caa2f0b
PA
98072014-02-12 Pedro Alves <palves@redhat.com>
9808
9809 * h8300-tdep.c (pseudo_from_raw_register)
9810 (raw_from_pseudo_register): New functions.
9811 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9812 them.
9813
76fd5f74
PA
98142014-02-12 Pedro Alves <palves@redhat.com>
9815
9816 * h8300-tdep.c (h8300_register_sim_regno): New function.
9817 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9818 gdbarch_register_sim_regno hook.
9819
8f008406
SA
98202014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9821
9822 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9823
195abc10
SA
98242014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9825
9826 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9827
93ffa5b9
MK
98282014-02-12 Mark Kettenis <kettenis@gnu.org>
9829
9830 * obsd-tdep.h (obsd_init_abi): New prototype.
9831 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9832 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9833 (obsd_init_abi): New functions.
9834 * i386obsd-tdep.c: Include "obsd-tdep.h".
9835 (i386obsd_init_abi): Call obsd_init_abi.
9836 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9837 (amd64obsd_init_abi): Call obsd_init_abi.
9838 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9839 obsd-tdep.c to gdb_target_obs.
9840
49caec94
JM
98412014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9842
9843 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9844 double float arguments to 16-byte in the argument slots.
9845
e1402065
DE
98462014-02-11 Doug Evans <xdje42@gmail.com>
9847
9848 * configure.ac: Don't crash if pkg-config is not found and guile
9849 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9850 in guile checks.
9851 * configure: Regenerate.
9852
edcc890f
YQ
98532014-02-11 Yao Qi <yao@codesourcery.com>
9854
9855 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9856 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9857 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9858 * gnu-nat.c (gnu_xfer_memory): Likewise.
9859 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9860 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9861 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9862 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9863
9b409511
YQ
98642014-02-11 Yao Qi <yao@codesourcery.com>
9865
9866 * target.h (enum target_xfer_error): Rename to ...
9867 (enum target_xfer_status): ... it. New. All users updated.
9868 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9869 New.
9870 (TARGET_XFER_STATUS_ERROR_P): New macro.
9871 (target_xfer_error_to_string): Remove declaration.
9872 (target_xfer_status_to_string): Declare.
9873 (target_xfer_partial_ftype): Adjust it.
9874 (struct target_ops) <to_xfer_partial>: Return
9875 target_xfer_status. Add argument xfered_len. Update
9876 comments.
9877 * target.c (target_xfer_error_to_string): Rename to ...
9878 (target_xfer_status_to_string): ... it. New. All callers
9879 updated.
9880 (target_read_live_memory): Likewise. Call target_xfer_partial
9881 instead of target_read.
9882 (memory_xfer_live_readonly_partial): Return
9883 target_xfer_status. Add argument xfered_len.
9884 (raw_memory_xfer_partial): Likewise.
9885 (memory_xfer_partial_1): Likewise.
9886 (memory_xfer_partial): Likewise.
9887 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9888 properly. Update debug message.
9889 (default_xfer_partial, current_xfer_partial): Likewise.
9890 (target_write_partial): Likewise.
9891 (target_read_partial): Likewise. All callers updated.
9892 (read_whatever_is_readable): Likewise.
9893 (target_write_with_progress): Likewise.
9894 (target_read_alloc_1): Likewise.
9895
9896 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9897 * auxv.c (procfs_xfer_auxv): Likewise.
9898 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9899 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9900 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9901 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9902 * corefile.c (read_memory): Adjust.
9903 * corelow.c (core_xfer_partial): Likewise.
9904 * ctf.c (ctf_xfer_partial): Likewise.
9905 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9906 updated.
9907 (darwin_xfer_partial): Likewise.
9908 * exec.c (section_table_xfer_memory_partial): Likewise. All
9909 callers updated.
9910 (exec_xfer_partial): Likewise.
9911 * exec.h (section_table_xfer_memory_partial): Update
9912 declaration.
9913 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9914 negative.
9915 (gnu_xfer_partial): Likewise.
9916 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9917 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9918 (ia64_hpux_xfer_solib_got): Likewise.
9919 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9920 type of 'partial_len' to ULONGEST.
9921 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9922 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9923 (linux_nat_xfer_partial): Likewise.
9924 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9925 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9926 * monitor.c (monitor_xfer_memory): Likewise.
9927 (monitor_xfer_partial): Likewise.
9928 * procfs.c (procfs_xfer_partial): Likewise.
9929 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9930 * record-full.c (record_full_xfer_partial): Likewise.
9931 (record_full_core_xfer_partial): Likewise.
9932 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9933 (gdbsim_xfer_partial): Likewise.
9934 * remote.c (remote_write_bytes_aux): Likewise. All callers
9935 updated.
9936 (remote_write_bytes, remote_read_bytes): Likewise. All
9937 callers updated.
9938 (remote_flash_erase): Likewise. All callers updated.
9939 (remote_write_qxfer): Likewise. All callers updated.
9940 (remote_read_qxfer): Likewise. All callers updated.
9941 (remote_xfer_partial): Likewise.
9942 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9943 (rs6000_xfer_shared_libraries): Likewise.
9944 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9945 (sol_thread_xfer_partial): Likewise.
9946 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9947 (sparc_xfer_partial): Likewise.
9948 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9949 updated.
9950 (spu_xfer_partial): Likewise.
9951 * spu-multiarch.c (spu_xfer_partial): Likewise.
9952 * tracepoint.c (tfile_xfer_partial): Likewise.
9953 * windows-nat.c (windows_xfer_memory): Likewise.
9954 (windows_xfer_shared_libraries): Likewise.
9955 (windows_xfer_partial): Likewise.
9956 * valprint.c: Replace 'target_xfer_error' with
9957 'target_xfer_status' in comments.
9958
a8e63083
JB
99592014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9960
9961 Checked in by Joel Brobecker <brobecker@adacore.com>.
9962 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9963
e86b67d3
JB
99642014-02-11 Joel Brobecker <brobecker@adacore.com>
9965
9966 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9967 function parameters.
9968
4b7d1f7f
WN
99692014-02-10 Will Newton <will.newton@linaro.org>
9970
9971 * elfread.c (elf_rel_plt_read): Look for a .got section if
9972 looking up .got.plt fails.
9973 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9974 on address passed to elf_gnu_ifunc_record_cache.
9975 (elf_gnu_ifunc_resolve_addr): Likewise.
9976 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9977
961842b2
JM
99782014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9979
9980 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9981 (X_RETTURN): New macro.
9982 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9983
9984 * sparc64-tdep.c (sparc64_init_abi): Hook
9985 sparc_in_function_epilogue_p.
9986
3f03e7b1
GB
99872014-02-10 Gary Benson <gbenson@redhat.com>
9988
9989 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9990 Rename name_matcher to symbol_matcher.
9991
96f861ef
GB
99922014-02-10 Gary Benson <gbenson@redhat.com>
9993
9994 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9995 Use expand_symtabs_file_matcher_ftype and
9996 expand_symtabs_symbol_matcher_ftype.
9997
ee01b665
JB
99982014-02-10 Joel Brobecker <brobecker@adacore.com>
9999
10000 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10001 (struct ada_symbol_cache): New.
10002 (ada_free_symbol_cache): Forward declare.
10003 (struct ada_pspace_data): New.
10004 (ada_pspace_data_handle): New static global.
10005 (get_ada_pspace_data, ada_pspace_data_cleanup)
10006 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10007 (cache_space, cache): Delete, now folded inside struct
10008 ada_pspace_data.
10009 (ada_get_symbol_cache): New function.
10010 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10011 implementation.
10012 (_initialize_ada_language): Remove initialization of cache_space.
10013 Move call to observer_attach_inferior_exit up, grouping it
10014 with the other observer registrations inside this function.
10015 Rename command to be more general. Add call to
10016 register_program_space_data_with_cleanup.
10017
143adbbf
JB
100182014-02-10 Joel Brobecker <brobecker@adacore.com>
10019
10020 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10021 ada_new_objfile_observer.
10022 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10023 (_initialize_tasks): Update uses of ada_new_objfile_observer
10024 and ada_tasks_normal_stop_observer.
10025
aa4fb036
JB
100262014-02-10 Joel Brobecker <brobecker@adacore.com>
10027
10028 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10029 returned by the 'Length attribute to integer.
10030
9dee8cc6
JB
100312014-02-10 Joel Brobecker <brobecker@adacore.com>
10032
10033 * ada-lang.c (_initialize_ada_language): Initialize
10034 cache_space obstack.
10035
3d9434b5
JB
100362014-02-10 Joel Brobecker <brobecker@adacore.com>
10037
10038 * ada-lang.c (HASH_SIZE): New macro.
10039 (struct cache_entry): New type.
10040 (cache_space, cache): New static globals.
10041 (ada_clear_symbol_cache, find_entry): New functions.
10042 (lookup_cached_symbol, cache_symbol): Implement.
10043 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10044 (_initialize_ada_language): Attach ada_new_objfile_observer
10045 and ada_free_objfile_observer.
10046
f0c5f9b2
JB
100472014-02-10 Joel Brobecker <brobecker@adacore.com>
10048
10049 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10050 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10051 struct block * parameter.
10052 (ada_lookup_symbol_list_worker): Constify local variable "block".
10053 Remove cast which is no longer necessary.
10054
ed3ef339
DE
100552014-02-10 Doug Evans <xdje42@gmail.com>
10056
10057 Add Guile as an extension language.
10058 * NEWS: Mention Guile scripting.
10059 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10060 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10061 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10062 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10063 (CLIBS): Add GUILE_LIBS.
10064 (install-guile): New rule.
10065 (guile.o): New rule.
10066 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10067 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10068 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10069 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10070 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10071 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10072 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10073 * configure.ac: New option --with-guile.
10074 * configure: Regenerate.
10075 * config.in: Regenerate.
10076 * auto-load.c: Remove #include "python/python.h". Add #include
10077 "gdb/section-scripts.h".
10078 (source_section_scripts): Handle Guile scripts.
10079 (_initialize_auto_load): Add name of Guile objfile script to
10080 scripts-directory help text.
10081 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10082 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10083 (struct breakpoint): New member scm_bp_object.
10084 * defs.h (enum command_control_type): New value guile_control.
10085 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10086 "extension.h".
10087 (show_user): Update comment.
10088 (_initialize_cli_cmds): Update help text for "show user". Update help
10089 text for max-user-call-depth.
10090 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10091 "extension.h".
10092 (multi_line_command_p): Add guile_control.
10093 (print_command_lines): Handle guile_control.
10094 (execute_control_command, recurse_read_control_structure): Ditto.
10095 (process_next_line): Recognize "guile" commands.
10096 * disasm.c (gdb_disassemble_info): Make non-static.
10097 * disasm.h: #include "dis-asm.h".
10098 (struct gdbarch): Add forward decl.
10099 (gdb_disassemble_info): Declare.
10100 * extension.c: #include "guile/guile.h".
10101 (extension_languages): Add guile.
10102 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10103 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10104 * gdbtypes.c (get_unsigned_type_max): New function.
10105 (get_signed_type_minmax): New function.
10106 * gdbtypes.h (get_unsigned_type_max): Declare.
10107 (get_signed_type_minmax): Declare.
10108 * guile/README: New file.
10109 * guile/guile-internal.h: New file.
10110 * guile/guile.c: New file.
10111 * guile/guile.h: New file.
10112 * guile/scm-arch.c: New file.
10113 * guile/scm-auto-load.c: New file.
10114 * guile/scm-block.c: New file.
10115 * guile/scm-breakpoint.c: New file.
10116 * guile/scm-disasm.c: New file.
10117 * guile/scm-exception.c: New file.
10118 * guile/scm-frame.c: New file.
10119 * guile/scm-gsmob.c: New file.
10120 * guile/scm-iterator.c: New file.
10121 * guile/scm-lazy-string.c: New file.
10122 * guile/scm-math.c: New file.
10123 * guile/scm-objfile.c: New file.
10124 * guile/scm-ports.c: New file.
10125 * guile/scm-pretty-print.c: New file.
10126 * guile/scm-safe-call.c: New file.
10127 * guile/scm-string.c: New file.
10128 * guile/scm-symbol.c: New file.
10129 * guile/scm-symtab.c: New file.
10130 * guile/scm-type.c: New file.
10131 * guile/scm-utils.c: New file.
10132 * guile/scm-value.c: New file.
10133 * guile/lib/gdb.scm: New file.
10134 * guile/lib/gdb/boot.scm: New file.
10135 * guile/lib/gdb/experimental.scm: New file.
10136 * guile/lib/gdb/init.scm: New file.
10137 * guile/lib/gdb/iterator.scm: New file.
10138 * guile/lib/gdb/printing.scm: New file.
10139 * guile/lib/gdb/types.scm: New file.
10140 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10141 (VPATH): Add $(GUILE_SRCDIR).
10142 (GUILE_DIR): New variable.
10143 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10144 (all): Add stamp-guile dependency.
10145 (stamp-guile): New rule.
10146 (clean-guile, install-guile, uninstall-guile): New rules.
10147 (install-only): Add install-guile dependency.
10148 (uninstall): Add uninstall-guile dependency.
10149 (clean): Add clean-guile dependency.
10150
ac020ec5
DE
101512014-02-09 Doug Evans <xdje42@gmail.com>
10152
10153 Revert this patch (which I approved, mea culpa).
10154
10155 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10156
10157 * Makefile.in (all-lib): Remove.
10158 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10159
2a081c59
JK
101602014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10161
10162 Fix Python stack corruption.
10163 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10164 gdb_py_longest.
10165
0a6bd22d
MK
101662014-02-08 Mark Kettenis <kettenis@gnu.org>
10167
10168 * Makefile.in (all-lib): Remove.
10169 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10170
1a860409
DE
101712014-02-07 Doug Evans <dje@google.com>
10172
10173 * extension-priv.h (extension_language_script_ops): Add comment.
10174 (extension_language_ops): Add comment.
caf5a491 10175 (active_ext_lang_state): Fix typo in comment.
1a860409 10176
d137e6dc
PA
101772014-02-07 Pedro Alves <palves@redhat.com>
10178
0dcb32c3 10179 PR breakpoints/16292
d137e6dc
PA
10180 * infrun.c (handle_signal_stop) <signal arrives while stepping
10181 over a breakpoint>: Switch back to the stepping thread.
10182
ce6d0892
YQ
101832014-02-07 Yao Qi <yao@codesourcery.com>
10184
10185 * target.c (target_xfer_partial): Return zero if LEN is zero.
10186
2ed4b548
YQ
101872014-02-07 Yao Qi <yao@codesourcery.com>
10188
10189 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10190 (ld_so_xfer_auxv): Likewise.
10191 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10192 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10193 * corelow.c (core_xfer_partial): Likewise.
10194 * ctf.c (ctf_xfer_partial): Likewise.
10195 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10196 (darwin_xfer_partial): Likewise.
10197 * exec.c (exec_xfer_partial): Likewise.
10198 * gnu-nat.c (gnu_xfer_partial): Likewise.
10199 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10200 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10201 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10202 * linux-nat.c (linux_xfer_siginfo): Likewise.
10203 (linux_proc_xfer_spu): Likewise.
10204 * procfs.c (procfs_xfer_partial): Likewise.
10205 * record-full.c (record_full_xfer_partial): Likewise.
10206 (record_full_core_xfer_partial): Likewise.
10207 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10208 * remote.c (remote_write_qxfer): Likewise.
10209 (remote_write_qxfer, remote_read_qxfer): Likewise.
10210 (remote_xfer_partial): Likewise.
10211 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10212 (rs6000_xfer_shared_libraries): Likewise.
10213 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10214 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10215 (spu_xfer_partial): Likewise.
10216 * target.c (memory_xfer_partial_1): Likewise.
10217 * tracepoint.c (tfile_xfer_partial): Likewise.
10218 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10219 (windows_xfer_partial): Likewise.
10220
c09f20e4
YQ
102212014-02-07 Yao Qi <yao@codesourcery.com>
10222
10223 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10224 comments.
10225 (core_xfer_shared_libraries_aix): Likewise.
10226 * gdbarch.c, gdbarch.h: Regenerated.
10227 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10228 ULONGEST. Change 'len_avail' type to ULONGEST.
10229 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10230 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10231 declaration.
10232 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10233
8635b3bf
YQ
102342014-02-07 Yao Qi <yao@codesourcery.com>
10235
10236 * corefile.c (memory_error): Get 'exception' from ERR and pass
10237 'exception' to throw_error.
10238
6dddc817
DE
102392014-02-06 Doug Evans <xdje42@gmail.com>
10240
10241 * configure.ac (libpython checking): Remove all but python.o from
10242 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10243 * configure: Regenerate.
10244
10245 * Makefile.in (SFILES): Add extension.c.
10246 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10247 (COMMON_OBS): Add extension.o.
10248 * extension.h: New file.
10249 * extension-priv.h: New file.
10250 * extension.c: New file.
10251
10252 * python/python-internal.h: #include "extension.h".
10253 (gdbpy_auto_load_enabled): Declare.
10254 (gdbpy_apply_val_pretty_printer): Declare.
10255 (gdbpy_apply_frame_filter): Declare.
10256 (gdbpy_preserve_values): Declare.
10257 (gdbpy_breakpoint_cond_says_stop): Declare.
10258 (gdbpy_breakpoint_has_cond): Declare.
10259 (void source_python_script_for_objfile): Delete.
10260 * python/python.c: #include "extension-priv.h".
10261 Delete inclusion of "observer.h".
10262 (extension_language_python): Moved here and renamed from
10263 script_language_python in py-auto-load.c.
10264 Redefined to be of type extension_language_defn.
10265 (python_extension_script_ops): New global.
10266 (python_extension_ops): New global.
10267 (struct python_env): New member previous_active.
10268 (restore_python_env): Call restore_active_ext_lang.
10269 (ensure_python_env): Call set_active_ext_lang.
10270 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10271 New arg extlang.
10272 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10273 New arg extlang.
10274 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10275 New arg extlang.
10276 (gdbpy_eval_from_control_command): Renamed from
10277 eval_python_from_control_command, made static. New arg extlang.
10278 (gdbpy_source_script) Renamed from source_python_script, made static.
10279 New arg extlang.
10280 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10281 result to int. New arg extlang.
10282 (gdbpy_source_objfile_script): Renamed from
10283 source_python_script_for_objfile, made static. New arg extlang.
10284 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10285 static. New args extlang, extlang_printers. Change result type to
10286 "void".
10287 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10288 static. New arg extlang. Rename arg printers to extlang_printers
10289 and change type to ext_lang_type_printers *.
10290 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10291 static. Replace argument arg with extlang, extlang_printers.
10292 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10293 (!HAVE_PYTHON, source_python_script): Delete.
10294 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10295 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10296 (!HAVE_PYTHON, start_type_printers): Delete.
10297 (!HAVE_PYTHON, apply_type_printers): Delete.
10298 (!HAVE_PYTHON, free_type_printers): Delete.
10299 (_initialize_python): Delete call to observer_attach_before_prompt.
10300 (finalize_python): Set/restore active extension language.
10301 (gdbpy_finish_initialization) Renamed from
10302 finish_python_initialization, made static. New arg extlang.
10303 (gdbpy_initialized): New function.
10304 * python/python.h: #include "extension.h". Delete #include
10305 "value.h", "mi/mi-cmds.h".
10306 (extension_language_python): Declare.
10307 (GDBPY_AUTO_FILE_NAME): Delete.
10308 (enum py_bt_status): Moved to extension.h and renamed to
10309 ext_lang_bt_status.
10310 (enum frame_filter_flags): Moved to extension.h.
10311 (enum py_frame_args): Moved to extension.h and renamed to
10312 ext_lang_frame_args.
10313 (finish_python_initialization): Delete.
10314 (eval_python_from_control_command): Delete.
10315 (source_python_script): Delete.
10316 (apply_val_pretty_printer): Delete.
10317 (apply_frame_filter): Delete.
10318 (preserve_python_values): Delete.
10319 (gdbpy_script_language_defn): Delete.
10320 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10321 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10322
10323 * auto-load.c: #include "extension.h".
10324 (GDB_AUTO_FILE_NAME): Delete.
10325 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10326 (script_language_gdb): Delete, moved to extension.c and renamed to
10327 extension_language_gdb.
10328 (source_gdb_script_for_objfile): Delete.
10329 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10330 (loaded_script): Change type of language member to
10331 struct extension_language_defn *.
10332 (init_loaded_scripts_info): Initialize
10333 unsupported_script_warning_printed.
10334 (maybe_add_script): Make static. Change type of language arg to
10335 struct extension_language_defn *.
10336 (clear_section_scripts): Reset unsupported_script_warning_printed.
10337 (auto_load_objfile_script_1): Rewrite to use extension language API.
10338 (auto_load_objfile_script): Make public. Remove support-compiled-in
10339 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10340 (source_section_scripts): Rewrite to use extension language API.
10341 (load_auto_scripts_for_objfile): Rewrite to use
10342 auto_load_scripts_for_objfile.
10343 (collect_matching_scripts_data): Change type of language member to
10344 struct extension_language_defn *.
10345 (auto_load_info_scripts): Change type of language arg to
10346 struct extension_language_defn *.
10347 (unsupported_script_warning_print): New function.
10348 (script_not_found_warning_print): Make static.
10349 (_initialize_auto_load): Rewrite construction of scripts-directory
10350 help.
10351 * auto-load.h (struct objfile): Add forward decl.
10352 (struct script_language): Delete.
10353 (struct auto_load_pspace_info): Add forward decl.
10354 (struct extension_language_defn): Add forward decl.
10355 (maybe_add_script): Delete.
10356 (auto_load_objfile_script): Declare.
10357 (script_not_found_warning_print): Delete.
10358 (auto_load_info_scripts): Update prototype.
10359 (auto_load_gdb_scripts_enabled): Declare.
10360 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10361 auto_load_python_scripts_enabled and made public.
10362 (script_language_python): Delete, moved to python.c.
10363 (gdbpy_script_language_defn): Delete.
10364 (info_auto_load_python_scripts): Update to use
10365 extension_language_python.
10366
10367 * breakpoint.c (condition_command): Replace call to
10368 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10369 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10370 with call to breakpoint_ext_lang_cond_says_stop.
10371 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10372 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10373 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10374 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10375 New arg slang.
10376 (local_setattro): Print name of extension language with existing
10377 stop condition.
10378
10379 * valprint.c (val_print, value_print): Update to call
10380 apply_ext_lang_val_pretty_printer.
10381 * cp-valprint.c (cp_print_value): Update call to
10382 apply_ext_lang_val_pretty_printer.
10383 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10384 (gdbpy_apply_val_pretty_printer): Renamed from
10385 apply_val_pretty_printer. New arg extlang.
10386 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10387
10388 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10389 extension language API.
10390 * cli/cli-script.c (execute_control_command): Update to call
10391 eval_ext_lang_from_control_command.
10392
10393 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10394 enum ext_lang_bt_status values. Update call to
10395 apply_ext_lang_frame_filter.
10396 (mi_cmd_stack_list_locals): Ditto.
10397 (mi_cmd_stack_list_args): Ditto.
10398 (mi_cmd_stack_list_variables): Ditto.
10399 * mi/mi-main.c: Delete #include "python/python-internal.h".
10400 Add #include "extension.h".
10401 (mi_cmd_list_features): Replace reference to python internal variable
10402 gdb_python_initialized with call to ext_lang_initialized_p.
10403
10404 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10405 Update to use enum ext_lang_frame_args. Update to call
10406 apply_ext_lang_frame_filter.
10407 * python/py-framefilter.c (extract_sym): Update to use enum
10408 ext_lang_bt_status.
10409 (extract_value, py_print_type, py_print_value): Ditto.
10410 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10411 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10412 (py_print_frame): Ditto.
10413 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10414 New arg extlang. Update to use enum ext_lang_bt_status.
10415
10416 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10417 finish_python_initialization. Replace with call to
10418 finish_ext_lang_initialization.
10419
10420 * typeprint.c (do_free_global_table): Update to call
10421 free_ext_lang_type_printers.
10422 (create_global_typedef_table): Update to call
10423 start_ext_lang_type_printers.
10424 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10425 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10426 (type_print_options): Change type of global_printers from "void *"
10427 to "struct ext_lang_type_printers *".
10428
10429 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10430 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10431 (gdbpy_preserve_values): Renamed from preserve_python_values.
10432 New arg extlang.
10433 (!HAVE_PYTHON, preserve_python_values): Delete.
10434
10435 * utils.c (quit_flag): Delete, moved to extension.c.
10436 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10437 extension.c.
10438
10439 * eval.c: Delete #include "python/python.h".
10440 * main.c: Delete #include "python/python.h".
10441
10442 * defs.h: Update comment.
10443
6af79985
JB
104442014-02-06 Joel Brobecker <brobecker@adacore.com>
10445
10446 GDB 7.7 released.
10447
12c5175d
MK
104482014-02-05 Mark Kettenis <kettenis@gnu.org>
10449
10450 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10451 defined.
10452
8dc5b319
YQ
104532014-02-05 Yao Qi <yao@codesourcery.com>
10454
10455 * remote.c (remote_pass_signals): Remove local 'buf' and use
10456 rs->buf.
10457 (remote_program_signals): Likewise.
10458
de7b2893
YQ
104592014-02-05 Yao Qi <yao@codesourcery.com>
10460
10461 * ctf.c: Include "inferior.h" and "gdbthread.h".
10462 (CTF_PID): A new macro.
10463 (ctf_open): Call inferior_appeared and add_thread_silent.
10464 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10465 (ctf_thread_alive): New function.
10466 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10467
66d032ac
YQ
104682014-02-05 Yao Qi <yao@codesourcery.com>
10469
10470 Revert this patch:
10471
10472 2013-05-24 Yao Qi <yao@codesourcery.com>
10473
10474 * tracepoint.c (TFILE_PID): Remove.
10475 (tfile_open): Don't add thread and inferior.
10476 (tfile_close): Don't set 'inferior_ptid'. Don't call
10477 exit_inferior_silent.
10478 (tfile_thread_alive): Remove.
10479 (init_tfile_ops): Don't set field 'to_thread_alive' of
10480 tfile_ops.
10481
f4ccffad
CE
104822014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10483
10484 * remote.c (remote_start_remote): Call remote_check_symbols even
10485 if only symbol-file (not file) has been given.
10486
591a12a1
UW
104872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10488
10489 * gdbarch.sh (skip_entrypoint): New callback.
10490 * gdbarch.c, gdbarch.h: Regenerate.
10491 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10492 * infrun.c (fill_in_stop_func): Likewise.
10493 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10494 (ppc_elfv2_elf_make_msymbol_special): New function.
10495 (ppc_elfv2_skip_entrypoint): Likewise.
10496 (ppc_linux_init_abi): Install them for ELFv2.
10497
cc0e89c5
UW
104982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10499
10500 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10501 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10502 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10503 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10504 structures returned in GPRs.
10505
52f548e4
UW
105062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10507
10508 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10509 offset to the stack parameter list for the ELFv2 ABI.
10510
d4094b6a
UW
105112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10512
10513 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10514 set_gdbarch_convert_from_func_ptr_addr and
10515 set_gdbarch_elf_make_msymbol_special for ELFv1.
10516 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10517 function descriptors on ELFv1.
10518 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10519 set up r12 at function entry.
10520
cd453cd0
UW
105212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10522
10523 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10524 (struct gdbarch_tdep): New member elf_abi.
10525
10526 * rs6000-tdep.c: Include "elf/ppc64.h".
10527 (rs6000_gdbarch_init): Detect ELF ABI version.
10528
0ff3e01f
UW
105292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10530
10531 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10532 within a register pair holding a DFP 128-bit value on little-endian.
10533 (ppc64_sysv_abi_return_value_base): Likewise.
10534 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10535 (dfp_pseudo_register_write): Likewise.
10536
5b757e5d
UW
105372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10538
10539 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10540 offset on little-endian when passing _Decimal32.
10541 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10542
084ee545
UW
105432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10544
10545 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10546 of the overlapped FP register within the VSX register on little-
10547 endian platforms.
10548 (efpr_pseudo_register_write): Likewise.
10549
d63167af
UW
105502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10551
10552 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10553 offset on little-endian when passing small structures.
10554
e765b44c
UW
105552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10556
10557 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10558 (struct ppc64_sysv_argpos): New data structure.
10559 (ppc64_sysv_abi_push_float): Remove.
10560 (ppc64_sysv_abi_push_val): New function.
10561 (ppc64_sysv_abi_push_integer): Likewise.
10562 (ppc64_sysv_abi_push_freg): Likewise.
10563 (ppc64_sysv_abi_push_vreg): Likewise.
10564 (ppc64_sysv_abi_push_param): Likewise.
10565 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10566 (ppc64_sysv_abi_return_value_base): New function.
10567 (ppc64_sysv_abi_return_value): Refactor to use it.
10568
36c24d95
UW
105692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10570
10571 * NEWS: Document new target powerpc64le-*-linux*.
10572
26fd9228
MK
105732014-02-04 Mark Kettenis <kettenis@gnu.org>
10574
10575 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10576 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10577 core dumps.
10578 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10579 register set used in ELF core dumps. Add floating-point register set.
10580
c5bb7362
KB
105812014-02-03 Kevin Buettner <kevinb@redhat.com>
10582
74228e77 10583 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10584 dwarf2_to_gdb[] table using symbolic constants. Adjust
10585 penultimate entry from number representing the PC register
10586 to symbolic constant representing the MDR register. Add
10587 constant for the PC register to the end of the table.
10588
af09351e
MK
105892014-02-03 Mark Kettenis <kettenis@gnu.org>
10590
10591 * bsd-kvm.c: Include <sys/param.h>
10592
8507e05d
MK
105932014-02-03 Mark Kettenis <kettenis@gnu.org>
10594
10595 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10596
ae56bfb8
JB
105972014-01-31 Joel Brobecker <brobecker@adacore.com>
10598
10599 * ada-lang.h (clear_ada_sym_cache): Delete.
10600
718ee4dc
UW
106012014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10602
10603 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10604
401e27fd
JM
106052014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10606
10607 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10608 the sigreturn register save area only if the syscall is
10609 sigreturn.
10610
a7c88acd
JB
106112014-01-29 Joel Brobecker <brobecker@adacore.com>
10612
10613 * valops.c (value_slice): Minor reformatting.
10614
fa0079ea
UW
106152014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10616
10617 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10618
c6044dd1
JB
106192014-01-28 Joel Brobecker <brobecker@adacore.com>
10620
10621 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10622 New static globals.
10623 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10624 (ada_ignore_descriptive_types_p): New static global.
10625 (find_parallel_type_by_descriptive_type): Return immediately
10626 if ada_ignore_descriptive_types_p is set.
10627 (_initialize_ada_language): Register new commands "maintenance
10628 set ada", "maintenance show ada", "maintenance set ada
10629 ignore-descriptive-types" and "maintenance show ada
10630 ignore-descriptive-types".
10631 * NEWS: Add entry for new "maint ada set/show
10632 ignore-descriptive-types" commands.
10633
568e808b
MM
106342014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10635
10636 * record-btrace.c (record_btrace_close): Call btrace_teardown
10637 for all threads.
10638
467d141b
JB
106392014-01-27 Joel Brobecker <brobecker@adacore.com>
10640
10641 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10642 "ui-out.h".
10643
fb151210
JB
106442014-01-27 Joel Brobecker <brobecker@adacore.com>
10645
10646 * ada-typeprint (type_is_full_subrange_of_target_type):
10647 New function.
10648 (print_range): Add parameter bounds_prefered_p. If not set,
10649 try printing range types using the name of their base type.
10650 (print_range_type): Add parameter bounds_prefered_p.
10651 Use it in call to print_range.
10652 (print_array_type, ada_print_type): Update calls to print_range
10653 and print_range_type.
10654
aba02109
JB
106552014-01-27 Joel Brobecker <brobecker@adacore.com>
10656
10657 * ada-typeprint.c (print_array_type, print_choices, print_range)
10658 (print_range_bound, print_dynamic_range_bound, print_range_type):
10659 Remove declaration.
10660
e62e21fd
JB
106612014-01-27 Joel Brobecker <brobecker@adacore.com>
10662
10663 * ada-typeprint.c (print_range): Add missing empty line
10664 after local declaration.
10665
859cf5d1
JB
106662014-01-27 Joel Brobecker <brobecker@adacore.com>
10667
10668 * ada-valprint.c (print_optional_low_bound): Get index_type's
10669 target type for as long as it is a TYPE_CODE_RANGE.
10670
25790f6f
JB
106712014-01-27 Joel Brobecker <brobecker@adacore.com>
10672
10673 * procfs.c (procfs_make_note_section): Remove assertion and
10674 associated comment.
10675
6b6aa828
YQ
106762014-01-24 Yao Qi <yao@codesourcery.com>
10677
10678 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10679 * corelow.c (get_core_siginfo): Likewise.
10680
5d6df423
YQ
106812014-01-24 Yao Qi <yao@codesourcery.com>
10682
10683 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10684 ULONGEST. Don't check 'len' is negative.
10685 (remote_write_bytes): Change type of 'len' to ULONGEST.
10686
83b645b8
TT
106872014-01-23 Tom Tromey <tromey@redhat.com>
10688
10689 PR python/16485:
10690 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10691 Handle exception from frame.block.
10692 (FrameVars.fetch_frame_locals): Likewise.
10693
0740f8d8
TT
106942014-01-23 Tom Tromey <tromey@redhat.com>
10695
10696 PR python/16487:
10697 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10698 on a NULL pointer. Move "goto error" to correct place.
10699
21909fa1
TT
107002014-01-23 Tom Tromey <tromey@redhat.com>
10701
10702 PR python/16491:
10703 * python/py-framefilter.c (apply_frame_filter): Call
10704 ensure_python_env after computing gdbarch.
10705
17fde6d0
YQ
107062014-01-23 Yao Qi <yao@codesourcery.com>
10707
10708 * target.c (raw_memory_xfer_partial): Change argument type
10709 from void * to gdb_byte *.
10710 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10711
87ce2a04
DE
107122014-01-22 Doug Evans <dje@google.com>
10713
10714 New gdbserver option --debug-format=timestamp.
10715 * NEWS: Mention it.
10716
237b092b
AA
107172014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10718
10719 * syscalls/s390x-linux.xml: New file.
10720 * syscalls/s390-linux.xml: New file.
10721 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10722 (XML_SYSCALL_FILENAME_S390X): Likewise.
10723 (op_svc): New enum value for SVC opcode.
10724 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10725 (s390_linux_get_syscall_number): New function.
10726 (s390_gdbarch_init): Register '*get_syscall_number' and the
10727 syscall xml file name.
10728 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10729 "s390-linux.xml" and "s390x-linux.xml".
10730 * NEWS: Announce new feature.
10731
54bff650
BS
107322014-01-22 Baruch Siach <baruch@tkos.co.il>
10733
10734 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10735
14e361d7
PA
107362014-01-22 Pedro Alves <palves@redhat.com>
10737
10738 * xtensa-config.c: Include defs.h.
10739
46bbb3ed
JB
107402014-01-22 Joel Brobecker <brobecker@adacore.com>
10741
10742 * common/common-utils.h: Add "ARI:" comment beside __func__
10743 reference.
10744
3a80edfc
JB
107452014-01-22 Joel Brobecker <brobecker@adacore.com>
10746
10747 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10748 documentation a bit.
10749
4869db5e
RM
107502014-01-21 Roland McGrath <mcgrathr@google.com>
10751
10752 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10753 * configure: Regenerate.
10754 * aclocal.m4: Regenerate.
10755 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10756 New substituted variables.
10757 (install-strip): New target.
10758 (INSTALL_SCRIPT): New substituted variable.
10759 (FLAGS_TO_PASS): Add it.
10760 (install-only): Use $(INSTALL_SCRIPT) rather than
10761 $(INSTALL_PROGRAM) for gcore.
10762
9ea4267d
TT
107632014-01-20 Tom Tromey <tromey@redhat.com>
10764
10765 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10766 together.
10767
1f2bdf09
TT
107682014-01-20 Tom Tromey <tromey@redhat.com>
10769
10770 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10771 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10772 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10773 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10774 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10775 (struct cmd_list_element) <flags>: Remove.
10776 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10777 doc_allocated>: New fields.
10778 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10779 bitfields.
10780 * maint.c (maintenance_do_deprecate): Update.
10781 * top.c (execute_command): Update.
10782
e671835b
BS
107832014-01-20 Baruch Siach <baruch@tkos.co.il>
10784
10785 * xtensa-linux-nat.c: Include asm/ptrace.h.
10786
50367cd2
IB
107872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10788
10789 * Makefile.in (SFILES): Add d-support.c.
10790 (COMMON_OBS): Add d-support.o.
10791 * d-lang.h (d_parse_symbol): Add comment, now defined in
10792 d-support.c.
10793 * d-lang.c (parse_call_convention)
10794 (parse_attributes, parse_function_types)
10795 (parse_function_args, parse_type, parse_identifier)
10796 (call_convention_p, d_parse_symbol): Move functions to ...
10797 * d-support.c: ... New file.
10798
ec9f644a
IB
107992014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10800
10801 * d-lang.h (d_parse_symbol): Add declaration.
10802 * d-lang.c (extract_identifiers)
10803 (extract_type_info): Remove functions.
10804 (parse_call_convention, parse_attributes)
10805 (parse_function_types, parse_function_args)
10806 (parse_type, parse_identifier, call_convention_p)
10807 (d_parse_symbol): New functions.
10808 (d_demangle): Use d_parse_symbol to demangle D symbols.
10809
94b1b47e
IB
108102014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10811
10812 * d-lang.h (struct builtin_d_type): New data type.
10813 (builtin_d_type): Add declaration.
10814 * d-lang.c (d_language_arch_info, build_d_types)
10815 (builtin_d_type): New functions.
10816 (enum d_primitive_types): New data type.
10817 (d_language_defn): Change c_language_arch_info to
10818 d_language_arch_info.
10819 (d_type_data): New static variable.
10820 (_initialize_d_language): Initialize d_type_data.
10821
63778547
IB
108222014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10823
10824 * d-lang.h (d_main_name): Add declaration.
10825 * d-lang.c (d_main_name): New function.
10826 * symtab.c (find_main_name): Add call to d_main_name.
10827
3271ba66
IB
108282014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10829
10830 * d-lang.c (d_language_defn): Change macro_expansion_c to
10831 macro_expansion_no.
10832
d36b3012
IB
108332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10834
10835 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10836
c90a6fb7
SDJ
108372014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10838
10839 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10840 gdb_exception" declaration.
10841 * remote.c (getpkt_or_notif_sane): Likewise.
10842
749234e5
DE
108432014-01-17 Doug Evans <dje@google.com>
10844
10845 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10846 function, contents of dirnames_to_char_ptr_vec_append moved here.
10847 (delim_string_to_char_ptr_vec): New function.
10848 (dirnames_to_char_ptr_vec_append): Rewrite.
10849 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10850
df049a58
DE
108512014-01-17 Doug Evans <dje@google.com>
10852
10853 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10854 and moved here ...
10855 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10856 #include "common-utils.h".
10857 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10858 * common/vec.h (VEC_ASSERT_PASS): Update.
10859 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10860 (MACH_CHECK_ERROR): Update.
10861
69f97648
SM
108622014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10863
10864 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10865 comments.
10866 * gdbarch.h: Regenerate.
10867
98b1cfdc
TT
108682014-01-16 Tom Tromey <tromey@redhat.com>
10869
10870 * value.c (struct value) <regnum>: Move earlier.
10871
77a19445
TT
108722014-01-16 Tom Tromey <tromey@redhat.com>
10873
10874 * remote.c (extended_remote_create_inferior): Rename from
10875 extended_remote_create_inferior_1. Add "ops" argument. Remove
10876 old implementation.
10877
62261490
PA
108782014-01-16 Pedro Alves <palves@redhat.com>
10879
10880 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10881 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10882 the backchain.
10883
4d65956b
DE
108842014-01-16 Doug Evans <dje@google.com>
10885
10886 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10887
52834460
MM
108882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10889
10890 * btrace.h (btrace_thread_flag): New.
10891 (struct btrace_thread_info) <flags>: New.
10892 * record-btrace.c (record_btrace_resume_thread)
10893 (record_btrace_find_thread_to_move, btrace_step_no_history)
10894 (btrace_step_stopped, record_btrace_start_replaying)
10895 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10896 (record_btrace_find_resume_thread): New.
10897 (record_btrace_resume, record_btrace_wait): Extend.
10898 (record_btrace_can_execute_reverse): New.
10899 (record_btrace_open): Fail in non-stop mode.
10900 (record_btrace_set_replay): Split into this, ...
10901 (record_btrace_stop_replaying): ... this, ...
10902 (record_btrace_clear_histories): ... and this.
10903 (init_record_btrace_ops): Init to_can_execute_reverse.
10904 * NEWS: Announce it.
10905
118e6252
MM
109062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10907
10908 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10909 (forward_target_decr_pc_after_break)
10910 (target_decr_pc_after_break): New.
10911 * target.c (forward_target_decr_pc_after_break)
10912 (target_decr_pc_after_break): New.
10913 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10914 instead of gdbarch_decr_pc_after_break.
10915 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10916 instead of gdbarch_decr_pc_after_break.
10917 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10918 instead of gdbarch_decr_pc_after_break.
10919 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10920 instead of gdbarch_decr_pc_after_break.
10921 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10922 instead of gdbarch_decr_pc_after_break.
10923 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10924 instead of gdbarch_decr_pc_after_break.
10925
6e07b1d2
MM
109262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10927
10928 * btrace.c: Include regcache.h.
10929 (btrace_add_pc): New.
10930 (btrace_enable): Call btrace_add_pc.
10931 (btrace_is_empty): New.
10932 * btrace.h (btrace_is_empty): New.
10933 * record-btrace.c (require_btrace, record_btrace_info): Call
10934 btrace_is_empty.
10935
969c39fb
MM
109362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10937
10938 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10939 Support delta reads.
10940 (linux_disable_btrace): Change return type.
10941 * common/linux-btrace.h (linux_read_btrace): Change parameters
10942 and return type to allow error reporting. Update users.
10943 (linux_disable_btrace): Change return type. Update users.
10944 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10945 New.
10946 (btrace_error): New.
10947 (btrace_block) <begin>: Comment on BEGIN == 0.
10948 * btrace.c (btrace_compute_ftrace): Start from the end of
10949 the current trace.
10950 (btrace_stitch_trace, btrace_clear_history): New.
10951 (btrace_fetch): Read delta trace, return if replaying.
10952 (btrace_clear): Move clear history code to btrace_clear_history.
10953 (parse_xml_btrace): Throw an error if parsing failed.
10954 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10955 and return type to allow error reporting.
10956 (target_read_btrace): Change parameters and return type to allow
10957 error reporting.
10958 * target.c (target_read_btrace): Update.
10959 * remote.c (remote_read_btrace): Support delta reads. Pass
10960 errors on.
10961 * NEWS: Announce it.
10962
0b722aec
MM
109632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10964
10965 * record.h (record_btrace_frame_unwind)
10966 (record_btrace_tailcall_frame_unwind): New declarations.
10967 * dwarf2-frame: Include record.h
10968 (dwarf2_frame_cfa): Throw an error for btrace frames.
10969 * record-btrace.c: Include hashtab.h.
10970 (btrace_get_bfun_name): New.
10971 (btrace_call_history): Call btrace_get_bfun_name.
10972 (struct btrace_frame_cache): New.
10973 (bfcache): New.
10974 (bfcache_hash, bfcache_eq, bfcache_new): New.
10975 (btrace_get_frame_function): New.
10976 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10977 (record_btrace_frame_this_id): Compute own id.
10978 (record_btrace_frame_prev_register): Provide PC, throw_error
10979 for all other registers.
10980 (record_btrace_frame_sniffer): Detect btrace frames.
10981 (record_btrace_tailcall_frame_sniffer): New.
10982 (record_btrace_frame_dealloc_cache): New.
10983 (record_btrace_frame_unwind): Add new functions.
10984 (record_btrace_tailcall_frame_unwind): New.
10985 (_initialize_record_btrace): Allocate cache.
10986 * btrace.c (btrace_clear): Call reinit_frame_cache.
10987 * NEWS: Announce it.
10988
066ce621
MM
109892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10990
10991 * record-btrace.c (record_btrace_set_replay)
10992 (record_btrace_goto_begin, record_btrace_goto_end)
10993 (record_btrace_goto): New.
10994 (init_record_btrace_ops): Initialize them.
10995 * NEWS: Announce it.
10996
e2887aa3
MM
109972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10998
10999 * record-btrace.c (record_btrace_find_new_threads)
11000 (record_btrace_thread_alive): New.
11001 (init_record_btrace_ops): Initialize to_find_new_threads and
11002 to_thread_alive.
11003
b2f4cfde
MM
110042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11005
11006 * record-btrace.c (record_btrace_resume): New.
11007 (record_btrace_wait): New.
11008 (init_record_btrace_ops): Initialize to_wait and to_resume.
11009
633785ff
MM
110102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11011
11012 * record-btrace.c (record_btrace_xfer_partial)
11013 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11014 (record_btrace_allow_memory_access): New.
11015 (init_record_btrace_ops): Initialize new methods.
11016 * target.c (raw_memory_xfer_partial): Bail out if target reports
11017 that this memory is not available.
11018
3db08215
MM
110192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11020
11021 * target.h (target_ops) <to_insert_breakpoint>
11022 <to_remove_breakpoint>: Add target_ops parameter.
11023 (forward_target_insert_breakpoint): New.
11024 (forward_target_remove_breakpoint): New.
11025 (memory_remove_breakpoint, memory_insert_breakpoint):
11026 Add target_ops parameter.
11027 * target.c (target_insert_breakpoint): Split into this and ...
11028 (forward_target_insert_breakpoint): ... this.
11029 (target_remove_breakpoint): Split into this and ...
11030 (forward_target_remove_breakpoint): ... this.
11031 (debug_to_insert_breakpoint): Add target_ops parameter.
11032 Call forward_target_insert_breakpoint.
11033 (debug_to_remove_breakpoint): Add target_ops parameter.
11034 Call forward_target_remove_breakpoint.
11035 (update_current_target): Do not inherit or default to_insert_breakpoint
11036 and to_remove_breakpoint.
11037 * corelow.c (ignore): Add target_ops parameter.
11038 * exec.c (ignore): Add target_ops parameter.
11039 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11040 Add target_ops parameter.
11041 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11042 Add target_ops parameter.
11043 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11044 Add target_ops parameter.
11045 * record-full.c (record_full_beneath_to_insert_breakpoint)
11046 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11047 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11048 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11049 (record_full_core_remove_breakpoint): Add target_ops parameter.
11050 Update users.
11051 (record_full_beneath_to_insert_breakpoint_ops)
11052 (record_full_beneath_to_remove_breakpoint_ops)
11053 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11054 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11055 tmp_to_remove_breakpoint_ops,
11056 record_full_beneath_to_insert_breakpoint_ops, and
11057 record_full_beneath_to_remove_breakpoint_ops.
11058 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11059 (m32r_remove_breakpoint): Add target_ops parameter.
11060 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11061 Add target_ops parameter.
11062 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11063 Add target_ops parameter.
11064
cecac1ab
MM
110652014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11066 Markus Metzger <markus.t.metzger@intel.com>
11067
11068 * record-btrace.c: Include frame-unwind.h.
11069 (record_btrace_frame_unwind_stop_reason)
11070 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11071 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11072 New.
11073 (init_record_btrace_ops): Install it.
11074
824344ca
MM
110752014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11076
11077 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11078 get_prev_frame_1.
11079
32261e52
MM
110802014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11081
11082 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11083 earlier.
11084
ea001bdc
MM
110852014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11086
11087 * frame-unwind.c: Include target.h.
11088 (frame_unwind_try_unwinder): New function with code from ...
11089 (frame_unwind_find_by_frame): ... here. New variable
11090 unwinder_from_target, call also target_get_unwinder)
11091 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11092 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11093 * target.h (struct target_ops): New fields to_get_unwinder and
11094 to_get_tailcall_unwinder.
11095 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11096
1f3ef581
MM
110972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11098
11099 * record-btrace.c (record_btrace_fetch_registers)
11100 (record_btrace_store_registers)
11101 (record_btrace_to_prepare_to_store): New.
11102 (init_record_btrace_ops): Add the above.
11103
f32dbf8c
MM
111042014-01-16 Tom Tromey <tromey@redhat.com>
11105
11106 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11107 * target.h (struct target_ops) <to_prepare_to_store>: Add
11108 argument.
11109 (target_prepare_to_store): Add argument.
11110 * target.c (debug_to_prepare_to_store): Add argument.
11111 (update_current_target): Update.
11112 * remote.c (remote_prepare_to_store): Add 'self' argument.
11113 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11114 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11115 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11116 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11117 argument.
11118 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11119 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11120 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11121 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11122 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11123
07bbe694
MM
111242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11125
11126 * btrace.h (replay) <replay>: New.
11127 (btrace_is_replaying): New.
11128 * btrace.c (btrace_clear): Free replay iterator.
11129 (btrace_is_replaying): New.
11130 * record-btrace.c (record_btrace_is_replaying): New.
11131 (record_btrace_info): Print insn number if replaying.
11132 (record_btrace_insn_history): Start at replay position.
11133 (record_btrace_call_history): Start at replay position.
11134 (init_record_btrace_ops): Init to_record_is_replaying.
11135
0688d04e
MM
111362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11137
11138 * record-btrace.c (record_btrace_insn_history_range): Include
11139 end.
11140 (record_btrace_insn_history_from): Adjust range.
11141 (record_btrace_call_history_range): Include
11142 end.
11143 (record_btrace_call_history_from): Adjust range.
11144 * NEWS: Announce changes.
11145
8710b709
MM
111462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11147
11148 * record.h (enum record_print_flag)
11149 <record_print_indent_calls>: New.
11150 * record.c (get_call_history_modifiers): Recognize /c modifier.
11151 (_initialize_record): Document /c modifier.
11152 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11153 Reorder fields. Optionally indent the function name. Update
11154 all users.
11155 * NEWS: Announce changes.
11156
d0fa7535
MM
111572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11158
11159 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11160
5de9129b
MM
111612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11162
11163 * btrace.c (ftrace_new_function): Start counting at one.
11164 * record-btrace.c (record_btrace_info): Adjust number of calls
11165 and insns.
11166 * NEWS: Announce it.
11167
7acbe133
MM
111682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11169
11170 * record-btrace.c (btrace_call_history_insn_range): Print
11171 insn range as [begin, end].
11172
23a7fe75
MM
111732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11174
11175 * btrace.h (struct btrace_func_link): New.
11176 (enum btrace_function_flag): New.
11177 (struct btrace_inst): Rename to ...
11178 (struct btrace_insn): ...this. Update all users.
11179 (struct btrace_func) <ibegin, iend>: Remove.
11180 (struct btrace_func_link): New.
11181 (struct btrace_func): Rename to ...
11182 (struct btrace_function): ...this. Update all users.
11183 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11184 (number, level, flags>: New.
11185 (struct btrace_insn_iterator): Rename to ...
11186 (struct btrace_insn_history): ...this.
11187 Update all users.
11188 (struct btrace_insn_iterator, btrace_call_iterator): New.
11189 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11190 (struct btrace_target_info) <begin, end, level>
11191 <insn_history, call_history>: New.
11192 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11193 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11194 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11195 (btrace_call_number, btrace_call_begin, btrace_call_end)
11196 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11197 (btrace_find_function_by_number, btrace_set_insn_history)
11198 (btrace_set_call_history): New.
11199 * btrace.c (btrace_init_insn_iterator)
11200 (btrace_init_func_iterator, compute_itrace): Remove.
11201 (ftrace_print_function_name, ftrace_print_filename)
11202 (ftrace_skip_file): Change
11203 parameter to const.
11204 (ftrace_init_func): Remove.
11205 (ftrace_debug): Use new btrace_function fields.
11206 (ftrace_function_switched): Also consider gaining and
11207 losing symbol information).
11208 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11209 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11210 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11211 New.
11212 (ftrace_new_function): Move. Remove debug print.
11213 (ftrace_update_lines, ftrace_update_insns): New.
11214 (ftrace_update_function): Check for call, ret, and jump.
11215 (compute_ftrace): Renamed to ...
11216 (btrace_compute_ftrace): ...this. Rewritten to compute call
11217 stack.
11218 (btrace_fetch, btrace_clear): Updated.
11219 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11220 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11221 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11222 (btrace_call_number, btrace_call_begin, btrace_call_end)
11223 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11224 (btrace_find_function_by_number, btrace_set_insn_history)
11225 (btrace_set_call_history): New.
11226 * record-btrace.c (require_btrace): Use new btrace thread
11227 info fields.
11228 (record_btrace_info, btrace_insn_history)
11229 (record_btrace_insn_history, record_btrace_insn_history_range):
11230 Use new btrace thread info fields and new iterator.
11231 (btrace_func_history_src_line): Rename to ...
11232 (btrace_call_history_src_line): ...this. Use new btrace
11233 thread info fields.
11234 (btrace_func_history): Rename to ...
11235 (btrace_call_history): ...this. Use new btrace thread info
11236 fields and new iterator.
11237 (record_btrace_call_history, record_btrace_call_history_range):
11238 Use new btrace thread info fields and new iterator.
11239
8372a7cb
MM
112402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11241
11242 * frame.h (frame_id_build_unavailable_stack_special): New.
11243 * frame.c (frame_id_build_unavailable_stack_special): New.
11244
c2170eef
MM
112452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11246
11247 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11248 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11249 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11250 to gdbarch.
11251 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11252 (i386_insn_is_jump, i386_jmp_p): New.
11253 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11254 insn_is_jump to gdbarch.
11255 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11256 * gdbarch.h: Regenerated.
11257 * gdbarch.c: Regenerated.
11258 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11259 (default_insn_is_jump): New.
11260 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11261 (default_insn_is_jump): New.
11262
864089d2
MM
112632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11264
11265 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11266 Change to ...
11267 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11268 (btrace_read_type) <btrace_read_new>: Change to ...
11269 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11270
ed9edfb5
MM
112712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11272
11273 * common/linux-btrace.c (linux_read_btrace): Free trace from
11274 previous iteration.
11275
fbcbc3fd
DE
112762014-01-15 Doug Evans <dje@google.com>
11277
11278 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11279 uint32_t.
11280
3d548a53
TT
112812014-01-15 Tom Tromey <tromey@redhat.com>
11282
11283 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11284 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11285 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11286 (set_objfile_main_name): New function.
11287 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11288 language_of_main>: New fields.
11289 (set_objfile_main_name): Declare.
11290 * symtab.c (find_main_name): Loop over objfiles to find the main
11291 name and language.
11292 (set_main_name): Now static.
11293 (get_main_info): Add comment.
11294 * symtab.h (set_main_name): Don't declare.
11295
32ac0d11
TT
112962014-01-15 Tom Tromey <tromey@redhat.com>
11297
11298 * symtab.c (main_progspace_key): New global.
11299 (struct main_info): New.
11300 (name_of_main, language_of_main): Remove.
11301 (get_main_info, main_info_cleanup): New function.
11302 (set_main_name, main_name, main_language): Use get_main_info.
11303 (_initialize_symtab): Initialize main_progspace_key.
11304
9e6c82ad
TT
113052014-01-15 Tom Tromey <tromey@redhat.com>
11306
11307 * dbxread.c (process_one_symbol): Update.
11308 * dwarf2read.c (read_partial_die): Update.
11309 * symfile.c (set_initial_language): Call main_language.
11310 * symtab.c (language_of_main): Now static.
11311 (set_main_name): Add 'lang' parameter.
11312 (find_main_name): Update.
11313 (main_language): New function.
11314 (symtab_observer_executable_changed): Update.
11315 * symtab.h (set_main_name): Update.
11316 (language_of_main): Remove.
11317 (main_language): Declare.
11318
6ef55de7
TT
113192014-01-15 Tom Tromey <tromey@redhat.com>
11320
11321 * symfile.c (init_entry_point_info): Use new "initialized" field.
11322 Update.
11323 * objfiles.h (struct entry_point) <initialized>: New field.
11324 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11325 (struct objfile) <ei>: ...here. Remove.
11326 * objfiles.c (entry_point_address_query): Update.
11327
53eddfa6
TT
113282014-01-15 Tom Tromey <tromey@redhat.com>
11329
11330 * objfiles.c (entry_point_address_query): Relocate entry point
11331 address.
11332 (objfile_relocate1): Do not relocate entry point address.
11333 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11334 <the_bfd_section_index>: New field.
11335 * symfile.c (init_entry_point_info): Find the entry point's
11336 section.
11337
d56e56aa
TT
113382014-01-15 Tom Tromey <tromey@redhat.com>
11339
11340 * solib-frv.c (enable_break): Use entry_point_address_query.
11341
33a97bbe
OJ
113422014-01-15 Omair Javaid <omair.javaid@linaro.org>
11343
11344 * NEWS: Add note on improved process record-replay on
11345 arm*-linux* targets.
11346
c6ec2b30
OJ
113472014-01-15 Omair Javaid <omair.javaid@linaro.org>
11348
11349 * arm-tdep.c (enum arm_record_result): New enum.
11350 (arm_record_unsupported_insn): New function.
11351 (arm_record_coproc_data_proc): Removed.
11352 (thumb2_record_ld_st_multiple): New function.
11353 (thumb2_record_ld_st_dual_ex_tbb): New function.
11354 (thumb2_record_data_proc_sreg_mimm): New function.
11355 (thumb2_record_ps_dest_generic): New function.
11356 (thumb2_record_branch_misc_cntrl): New function.
11357 (thumb2_record_str_single_data): New function.
11358 (thumb2_record_ld_mem_hints): New function.
11359 (thumb2_record_ld_word): New function.
11360 (thumb2_record_lmul_lmla_div): New function.
11361 (thumb2_record_decode_insn_handler): New function.
11362 (decode_insn): Add thumb32 instruction handlers.
11363
97dfe206
OJ
113642014-01-15 Omair Javaid <omair.javaid@linaro.org>
11365
11366 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11367 (struct arm_linux_record_tdep): Declare.
11368 (arm_canonicalize_syscall): New function.
11369 (arm_all_but_pc_registers_record): New function.
11370 (arm_linux_syscall_record): New function.
11371 (arm_linux_init_abi): Add syscall recording constructs.
11372 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11373 decoding. (arm_record_coproc_data_proc): Update arm syscall
11374 decoding.
11375 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11376 <arm_syscall_record>: New field.
11377 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11378 gdb_target_obs.
11379
9904a494
OJ
113802014-01-15 Omair Javaid <omair.javaid@linaro.org>
11381
11382 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11383 register for push instruction recording.
11384
f969241e
OJ
113852014-01-15 Omair Javaid <omair.javaid@linaro.org>
11386
11387 * arm-tdep.c (thumb_record_misc): Update to correct logical
11388 error while recording ldm, ldmia and pop instructions.
11389
bfbbec00
OJ
113902014-01-15 Omair Javaid <omair.javaid@linaro.org>
11391
11392 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11393
e40adcc9
PA
113942014-01-15 Pedro Alves <palves@redhat.com>
11395
11396 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11397 (go32_resume, go32_fetch_registers, store_register)
11398 (go32_store_registers, go32_prepare_to_store)
11399 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11400 (go32_create_inferior, go32_can_run, go32_terminal_init)
11401 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11402 declarations.
11403
b0a16e66
TT
114042014-01-15 Tom Tromey <tromey@redhat.com>
11405
11406 * target.h (async_callback_ftype): New typedef.
11407 (struct target_ops) <to_async>: Use it.
11408
bf7105a4
JB
114092014-01-15 Joel Brobecker <brobecker@adacore.com>
11410
11411 * python/py-value.c (get_field_type): Remove unnecessary curly
11412 braces for single-statement if block.
11413
a8f35c2e
JB
114142014-01-15 Joel Brobecker <brobecker@adacore.com>
11415
11416 * python/py-type.c (convert_field): Add missing empty line
11417 after declarations.
11418
bb4142cf
DE
114192014-01-14 Doug Evans <dje@google.com>
11420
11421 * symfile.h (expand_symtabs_matching): Renamed from
11422 expand_partial_symbol_names. Update prototype.
11423 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11424 * symfile.c (expand_symtabs_matching): Renamed from
11425 expand_partial_symbol_names. New args file_matcher, kind.
11426 Rename arg fun to symbol_matcher.
11427 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11428 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11429 ada_expand_partial_symbol_name.
11430 (ada_make_symbol_completion_list): Update to call
11431 expand_symtabs_matching.
11432 (ada_add_global_exceptions): Call expand_symtabs_matching.
11433 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11434 call map_symbol_filenames.
11435 * symtab.c (sources_info): Update to call map_symbol_filenames.
11436 (search_symbols): Call expand_symtabs_matching.
11437 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11438 (default_make_symbol_completion_list_break_on): Update to call
11439 expand_symtabs_matching.
11440 (make_source_files_completion_list): Update to call
11441 map_symbol_filenames.
11442
206f2a57
DE
114432014-01-14 Doug Evans <dje@google.com>
11444
11445 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11446 (expand_symtabs_symbol_matcher_ftype): New typedef.
11447 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11448 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11449 * symfile.c (expand_partial_symbol_names): Update to use
11450 expand_symtabs_symbol_matcher_ftype.
11451 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11452 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11453 Arg name_matcher renamed to symbol_matcher.
11454 * psymtab.c (recursively_search_psymtabs): Update to use
11455 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11456 sym_matcher.
11457 (expand_symtabs_matching_via_partial): Update to use
11458 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11459 Arg name_matcher renamed to symbol_matcher.
11460
540c2971
DE
114612014-01-14 Doug Evans <dje@google.com>
11462
11463 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11464 (map_partial_symbol_filenames): Ditto.
11465 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11466 (map_partial_symbol_filenames): Ditto.
11467 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11468 (map_partial_symbol_filenames): Ditto.
11469 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11470 (map_partial_symbol_filenames): Ditto.
11471 * symtab.c: Delete #include "psymtab.h".
11472
8213266a
PA
114732014-01-14 Pedro Alves <palves@redhat.com>
11474 Tom Tromey <tromey@redhat.com>
11475
11476 * infrun.c (use_displaced_stepping): Use find_record_target
11477 instead of RECORD_IS_USED.
11478 (adjust_pc_after_break): Use record_full_is_used instead of
11479 RECORD_IS_USED.
11480 * record-btrace.c (record_btrace_open): Call record_preopen
11481 instead of checking RECORD_IS_USED.
11482 * record-full.c (record_full_shortname)
11483 (record_full_core_shortname): New globals.
11484 (record_full_is_used): New function.
11485 (find_full_open): Call record_preopen instead of checking
11486 RECORD_IS_USED.
11487 (init_record_full_ops): Set the target's shortname to
11488 record_full_shortname.
11489 (init_record_full_core_ops): Set the target's shortname to
11490 record_full_core_shortname.
11491 * record-full.h (record_full_is_used): Declare.
11492 * record.c (find_record_target): Make extern.
11493 (record_preopen): New function.
11494 * record.h (RECORD_IS_USED): Delete macro.
11495 (find_record_target, record_preopen): Declare functions.
11496
7ec1862d
YQ
114972014-01-14 Yao Qi <yao@codesourcery.com>
11498
11499 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11500 'len''s type to ULONGEST.
11501 (core_xfer_shared_libraries_aix): Likewise.
11502 * gdbarch.c, gdbarch.h: Regenerated.
11503 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11504 Change type of 'len' to ULONGEST.
11505 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11506 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11507
dea80a27
YQ
115082014-01-14 Yao Qi <yao@codesourcery.com>
11509
11510 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11511 type of 'len' to ULONGEST.
11512 (linux_xfer_osdata_processgroups): Likewise.
11513 (linux_xfer_osdata_threads): Likewise.
11514 (linux_xfer_osdata_fds): Likewise.
11515 (linux_xfer_osdata_isockets): Likewise.
11516 (linux_xfer_osdata_shm): Likewise.
11517 (linux_xfer_osdata_sem): Likewise.
11518 (linux_xfer_osdata_msg): Likewise.
11519 (linux_common_xfer_osdata): Likewise.
11520 (struct osdata_type) <getter>: Likewise.
11521 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11522 the declaration.
11523
b55e14c7
YQ
115242014-01-14 Yao Qi <yao@codesourcery.com>
11525
11526 * target.h (target_xfer_partial_ftype): Update.
11527 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11528 ULONGEST.
11529 * aix-thread.c (aix_thread_xfer_partial): Change type of
11530 argument 'len' to ULONGEST.
11531 * auxv.c (procfs_xfer_auxv): Likewise.
11532 (ld_so_xfer_auxv): Likewise.
11533 (memory_xfer_auxv): Likewise.
11534 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11535 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11536 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11537 * corelow.c (core_xfer_partial): Likewise.
11538 * ctf.c (ctf_xfer_partial): Likewise.
11539 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11540 '%u'.
11541 (darwin_read_dyld_info): Likewise.
11542 (darwin_xfer_partial): Likewise.
11543 * exec.c (section_table_xfer_memory_partial): Likewise.
11544 (exec_xfer_partial): Likewise.
11545 * exec.h (section_table_xfer_memory_partial): Update
11546 declaration.
11547 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11548 instead of plongest.
11549 (gnu_xfer_partial): Likewise.
11550 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11551 (ia64_hpux_xfer_solib_got): Likewise.
11552 (ia64_hpux_xfer_partial): Likewise.
11553 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11554 * inf-ptrace.c (inf_ptrace_xfer_partial):
11555 * inf-ttrace.c (inf_ttrace_xfer_partial):
11556 * linux-nat.c (linux_xfer_siginfo): Likewise.
11557 (linux_nat_xfer_partial): Likewise.
11558 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11559 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11560 * monitor.c (monitor_xfer_memory): Likewise.
11561 (monitor_xfer_partial): Likewise.
11562 * procfs.c (procfs_xfer_partial): Likewise.
11563 * record-full.c (record_full_xfer_partial): Likewise.
11564 (record_full_core_xfer_partial): Likewise.
11565 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11566 instead of plongest.
11567 (gdbsim_xfer_partial): Likewise.
11568 * remote.c (remote_xfer_partial): Likewise.
11569 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11570 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11571 declaration.
11572 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11573 (rs6000_xfer_shared_libraries): Likewise.
11574 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11575 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11576 (sparc_xfer_partial): Likewise.
11577 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11578 (spu_xfer_partial): Likewise.
11579 * spu-multiarch.c (spu_xfer_partial): Likewise.
11580 * target.c (target_read_live_memory): Likewise.
11581 (memory_xfer_live_readonly_partial): Likewise.
11582 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11583 (target_xfer_partial, default_xfer_partial): Likewise.
11584 (current_xfer_partial): Likewise.
11585 * tracepoint.c (tfile_xfer_partial): Likewise.
11586 * windows-nat.c (windows_xfer_memory): Likewise. Call
11587 pulongest instead of plongest.
11588 (windows_xfer_partial): Likewise.
11589 (windows_xfer_shared_libraries): Likewise.
11590
05804640
YQ
115912014-01-14 Yao Qi <yao@codesourcery.com>
11592
11593 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11594 target_xfer_partial_ftype.
11595
b5b08fb4
SC
115962014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11597
11598 PR python/15464
11599 PR python/16113
11600 * valops.c (value_struct_elt_bitpos): New function
11601 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11602 object to 'None' if the field name is an empty string ("").
11603 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11604 attribute to look for a field when 'name' is 'None'.
11605 (get_field_type): New function
11606
13aaf454
DE
116072014-01-13 Doug Evans <dje@google.com>
11608
11609 PR symtab/16426
11610 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11611 (try_open_dwop_file): Ditto.
11612 * gdb_bfd.c: #include "vec.h".
11613 (bfdp): New typedef.
11614 (struct gdb_bfd_data): New member included_bfds.
11615 (gdb_bfd_unref): Unref all included bfds.
11616 (gdb_bfd_record_inclusion): New function.
11617 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11618
c2cec97c
TT
116192014-01-13 Tom Tromey <tromey@redhat.com>
11620
11621 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11622
78e5999d
TT
116232014-01-13 Tom Tromey <tromey@redhat.com>
11624
11625 * defs.h (use_windows): Remove.
11626 * gdb.c (main): Update.
11627 * main.c (captured_main, gdb_main): Update.
11628 * main.h (struct captured_main_args) <use_windows>: Remove.
11629 * top.c (use_windows): Remove.
11630
f2052bbe
TT
116312014-01-13 Tom Tromey <tromey@redhat.com>
11632
11633 * defs.h (deprecated_flush_hook): Remove.
11634
fde4f8ed
JK
116352014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11636
11637 PR threads/16216
11638 * linux-thread-db.c (try_thread_db_load): Add parameter
11639 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11640 (try_thread_db_load_from_pdir_1): Move it there from here.
11641 (try_thread_db_load_from_sdir): Update caller.
11642 (try_thread_db_load_from_dir): Move it there from here.
11643
bdf61915
PP
116442014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11645
11646 * regformats/regdat.sh: Always rewrite the register file.
11647
f71e1a8d
PA
116482014-01-13 Pedro Alves <palves@redhat.com>
11649
11650 * Makefile.in (CHECK_HEADERS): New variable.
11651 (check-headers:): New rule.
11652
42c85435
TT
116532014-01-13 Tom Tromey <tromey@redhat.com>
11654
11655 * cli/cli-setshow.c (do_set_command): Update.
11656 * defs.h (deprecated_set_hook): Remove.
11657 * top.c (deprecated_set_hook): Remove.
11658
f8de5129
PA
116592014-01-13 Pedro Alves <palves@redhat.com>
11660
11661 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11662 the tracepoint if the PC is a pseudo-register.
11663
fc270c35
TT
116642014-01-13 Tom Tromey <tromey@redhat.com>
11665
11666 * defs.h (XCALLOC): Remove.
11667 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11668 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11669 * dwarf2loc.c (allocate_piece_closure): Likewise.
11670 * elfread.c (elf_symfile_segments): Likewise.
11671 (elf_symfile_segments): Likewise.
11672 * gdbtypes.c (copy_type_recursive): Likewise.
11673 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11674 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11675 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11676 XCALLOC.
11677 * mt-tdep.c (mt_gdbarch_init): Likewise.
11678 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11679 XCALLOC.
11680 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11681 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11682 * registry.c (registry_alloc_data): Likewise.
11683 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11684 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11685 * serial.c (serial_fdopen_ops): Likewise.
11686 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11687 XCALLOC.
11688 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11689 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11690 not XCALLOC.
11691
70ba0933
TT
116922014-01-13 Tom Tromey <tromey@redhat.com>
11693
11694 * defs.h (XMALLOC): Remove.
11695 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11696 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11697 * cli-out.c (struct ui_out *): Likewise.
11698 * cli/cli-dump.c (add_dump_command): Likewise.
11699 (add_dump_command): Likewise.
11700 * complaints.c (get_complaints): Likewise.
11701 (find_complaint): Likewise.
11702 * dwarf2-frame.c (execute_cfa_program): Likewise.
11703 * dwarf2read.c (abbrev_table_read_table): Likewise.
11704 * gdbarch.sh: Likewise.
11705 * gdbarch.c: Rebuild.
11706 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11707 * interps.c (interp_new): Likewise.
11708 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11709 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11710 * mi/mi-console.c (mi_console_file_new): Likewise.
11711 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11712 * mi/mi-out.c (mi_out_new): Likewise.
11713 * mi/mi-parse.c (mi_parse): Likewise.
11714 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11715 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11716 * observer.c (xalloc_observer_list_node): Likewise.
11717 * regcache.c (regcache_xmalloc_1): Likewise.
11718 * reggroups.c (reggroup_new): Likewise.
11719 (_initialize_reggroup): Likewise.
11720 * registry.c (register_data_with_cleanup): Likewise.
11721 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11722 * ser-base.c (serial_ttystate): Likewise.
11723 * ser-mingw.c (make_pipe_state): Likewise.
11724 * ser-pipe.c (pipe_open): Likewise.
11725 * serial.c (serial_open): Likewise.
11726 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11727 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11728 (tui_alloc_win_info): Likewise.
11729 (tui_add_content_elements): Likewise.
11730 * tui/tui-file.c (tui_file_new): Likewise.
11731 * tui/tui-out.c (tui_out_new): Likewise.
11732 * ui-file.c (mem_file_new): Likewise.
11733 * ui-out.c (push_level): Likewise.
11734 (make_cleanup_ui_out_end): Likewise.
11735 (append_header_to_list): Likewise.
11736 (ui_out_new): Likewise.
11737 * user-regs.c (user_reg_add_builtin): Likewise.
11738
41bf6aca
TT
117392014-01-13 Tom Tromey <tromey@redhat.com>
11740
11741 * defs.h (XZALLOC): Remove.
11742 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11743 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11744 (get_ada_tasks_inferior_data): Likewise.
11745 * auto-load.c (get_auto_load_pspace_data): Likewise.
11746 * auxv.c (get_auxv_inferior_data): Likewise.
11747 * bfd-target.c (target_bfd_reopen): Likewise.
11748 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11749 (deprecated_insert_raw_breakpoint): Likewise.
11750 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11751 * corelow.c (core_open): Likewise.
11752 * darwin-nat.c (darwin_check_new_threads): Likewise.
11753 (darwin_attach_pid): Likewise.
11754 * dummy-frame.c (dummy_frame_push): Likewise.
11755 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11756 * dwarf2loc.c (allocate_piece_closure): Likewise.
11757 * elfread.c (elf_symfile_segments): Likewise.
11758 * eval.c (ptrmath_type_p): Likewise.
11759 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11760 * gdbtypes.c (alloc_type_arch): Likewise.
11761 (alloc_type_instance): Likewise.
11762 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11763 * inf-child.c (inf_child_can_use_agent): Likewise.
11764 * inflow.c (get_inflow_inferior_data): Likewise.
11765 * infrun.c (save_infcall_suspend_state): Likewise.
11766 * jit.c (jit_reader_load): Likewise.
11767 (get_jit_objfile_data): Likewise.
11768 (get_jit_program_space_data): Likewise.
11769 (jit_object_open_impl): Likewise.
11770 (jit_symtab_open_impl): Likewise.
11771 (jit_block_open_impl): Likewise.
11772 (jit_frame_sniffer): Likewise.
11773 * linux-fork.c (add_fork): Likewise.
11774 * maint.c (make_command_stats_cleanup): Likewise.
11775 * objfiles.c (get_objfile_pspace_data): Likewise.
11776 * opencl-lang.c (struct lval_closure): Likewise.
11777 * osdata.c (osdata_start_osdata): Likewise.
11778 * progspace.c (new_address_space): Likewise.
11779 (add_program_space): Likewise.
11780 * remote-sim.c (get_sim_inferior_data): Likewise.
11781 * sh-tdep.c (sh_gdbarch_init): Likewise.
11782 * skip.c (Ignore): Likewise.
11783 (skip_delete_command): Likewise.
11784 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11785 (library_list_start_library): Likewise.
11786 (solib_aix_current_sos): Likewise.
11787 * solib-darwin.c (get_darwin_info): Likewise.
11788 (darwin_current_sos): Likewise.
11789 * solib-dsbt.c (get_dsbt_info): Likewise.
11790 * solib-ia64-hpux.c (new_so_list): Likewise.
11791 (ia64_hpux_get_solib_linkage_addr): Likewise.
11792 * solib-spu.c (append_ocl_sos): Likewise.
11793 (spu_current_sos): Likewise.
11794 * solib-svr4.c (get_svr4_info): Likewise.
11795 (svr4_keep_data_in_core): Likewise.
11796 (library_list_start_library): Likewise.
11797 (svr4_default_sos): Likewise.
11798 (svr4_read_so_list): Likewise.
11799 * solib-target.c (library_list_start_library): Likewise.
11800 (solib_target_current_sos): Likewise.
11801 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11802 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11803 * symfile.c (default_symfile_segments): Likewise.
11804 * target-descriptions.c (tdesc_data_init): Likewise.
11805 (tdesc_create_reg): Likewise.
11806 (struct tdesc_type *): Likewise.
11807 (tdesc_create_vector): Likewise.
11808 (tdesc_set_struct_size): Likewise.
11809 (struct tdesc_type *): Likewise.
11810 (tdesc_free_feature): Likewise.
11811 (tdesc_create_feature): Likewise.
11812 * windows-nat.c (windows_add_thread): Likewise.
11813 (windows_make_so): Likewise.
11814 * xml-support.c (gdb_xml_body_text): Likewise.
11815 (gdb_xml_create_parser_and_cleanup): Likewise.
11816 (xml_process_xincludes): Likewise.
11817 * xml-syscall.c (allocate_syscalls_info): Likewise.
11818 (syscall_create_syscall_desc): Likewise.
11819
5acfdbae
SDJ
118202014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11821
11822 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11823 function, with code from i386_stap_parse_special_token.
11824 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11825 (i386_stap_parse_special_token): Move code to the two functions
11826 above; simplify it.
11827
0000e5cc
PA
118282014-01-09 Pedro Alves <palves@redhat.com>
11829 Hui Zhu <hui@codesourcery.com>
11830
11831 PR gdb/16101
11832 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11833 bp_err_string. Don't mark the location shlib_disabled if the
11834 error thrown wasn't a generic or memory error. Catch errors
11835 thrown while inserting breakpoints in overlayed code. Output
11836 error message of software breakpoints.
11837 * remote.c (remote_insert_breakpoint): If this breakpoint has
11838 target-side commands but this stub doesn't support Z0 packets,
11839 throw NOT_SUPPORTED_ERROR error.
11840 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11841 * target.h (target_insert_breakpoint): Extend comment.
11842 (target_insert_hw_breakpoint): Add comment.
11843
b7ea362b
PA
118442014-01-08 Pedro Alves <palves@redhat.com>
11845
11846 * remote.c (remote_add_thread): Add threads silently if starting
11847 up.
11848 (remote_notice_new_inferior): If in all-stop, and starting up,
11849 don't call notice_new_inferior.
11850 (get_current_thread): New function, factored out from ...
11851 (add_current_inferior_and_thread): ... this. Adjust.
11852 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11853 found any thread, then select the remote's current thread as GDB's
11854 current thread too.
11855
b7bba001
JB
118562014-01-08 Joel Brobecker <brobecker@adacore.com>
11857
11858 * NEWS: Create a new section for the next release branch.
11859 Rename the section of the current branch, now that it has
11860 been cut.
11861
16dfbded
JB
118622014-01-08 Joel Brobecker <brobecker@adacore.com>
11863
11864 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11865 * version.in: Bump version to 7.7.50.DATE-cvs.
11866
22c90ac1
YQ
118672014-01-08 Yao Qi <yao@codesourcery.com>
11868
11869 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11870 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11871 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11872
d64ad97c
YQ
118732014-01-08 Yao Qi <yao@codesourcery.com>
11874
11875 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11876 return value of bfd_get_filename to symbol_file_add_from_bfd.
11877
f93ba80c
PM
118782014-01-08 Pierre Muller <muller@sourceware.org>
11879
11880 Fix PR16201.
11881 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11882 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11883 to prim_record_mininal_symbol_and_info.
11884 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11885 in call to prim_record_minimal_symbol_and_info.
11886 (read_pe_exported_syms): Set index field of section_data.
11887
a4d9ba85
AP
118882014-01-07 Andrew Pinski <apinski@cavium.com>
11889
11890 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11891 * features/aarch64.c: Regenerate.
11892
1b67eb02
AS
118932014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11894
11895 * target.c (return_null): Define.
11896 (update_current_target): Use it instead of return_zero for
11897 functions that return a pointer.
11898
5e3f4fab
EBM
118992014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11900
11901 * source.c (add_path): Fix check for duplicated paths in the previously
11902 included paths.
11903
e2616788
HK
119042014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11905
11906 * ada-lang.c: Remove duplicated include statements.
11907 * alphabsd-nat.c: Ditto.
11908 * amd64-darwin-tdep.c: Ditto.
11909 * amd64fbsd-nat.c: Ditto.
11910 * auto-load.c: Ditto.
11911 * ax-gdb.c: Ditto.
11912 * breakpoint.c: Ditto.
11913 * dbxread.c: Ditto.
11914 * fork-child.c: Ditto.
11915 * gdb_usleep.c: Ditto.
11916 * i386-darwin-tdep.c: Ditto.
11917 * i386fbsd-nat.c: Ditto.
11918 * infcmd.c: Ditto.
11919 * inferior.c: Ditto.
11920 * jv-lang.c: Ditto.
11921 * linux-nat.c: Ditto.
11922 * linux-tdep.c: Ditto.
11923 * m68kbsd-nat.c: Ditto.
11924 * m68klinux-nat.c: Ditto.
11925 * microblaze-tdep.c: Ditto.
11926 * mips-linux-tdep.c: Ditto.
11927 * mn10300-tdep.c: Ditto.
11928 * nto-tdep.c: Ditto.
11929 * opencl-lang.c: Ditto.
11930 * osdata.c: Ditto.
11931 * printcmd.c: Ditto.
11932 * regcache.c: Ditto.
11933 * remote-m32r-sdi.c: Ditto.
11934 * remote.c: Ditto.
11935 * symfile.c: Ditto.
11936 * symtab.c: Ditto.
11937 * tilegx-linux-nat.c: Ditto.
11938 * tilegx-tdep.c: Ditto.
11939 * tracepoint.c: Ditto.
11940 * valops.c: Ditto.
11941 * vaxbsd-nat.c: Ditto.
11942 * windows-nat.c: Ditto.
11943 * xtensa-tdep.c: Ditto.
11944
bd1f7788
YQ
119452014-01-07 Yao Qi <yao@codesourcery.com>
11946
11947 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11948
79301218
JB
119492014-01-07 Yao Qi <yao@codesourcery.com>
11950 Joel Brobecker <brobecker@adacore.com>
11951
11952 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11953 (pdc_write_regs): Likewise.
11954 (fetch_regs_kernel_thread): Likewise.
11955 (store_regs_kernel_thread): Likewise.
11956
119572014-01-07 Joel Brobecker <brobecker@adacore.com>
11958
11959 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11960 tagged type objects to their actual type.
11961
8e355c5d
JB
119622014-01-07 Joel Brobecker <brobecker@adacore.com>
11963
11964 * ada-valprint.c (print_field_values): Add "language" parameter.
11965 Update calls to print_field_values and print_variant_part.
11966 Pass new parameter "language" in call to val_print instead
11967 of "current_language". Replace call to ada_val_print by call
11968 to val_print.
11969 (print_variant_part): Add "language" parameter.
11970 (ada_val_print_struct_union): Update call to print_field_values.
11971
4fbf5aa5
JB
119722014-01-07 Joel Brobecker <brobecker@adacore.com>
11973
11974 * ada-valprint.c (ui_memcpy): Delete.
11975 (ada_print_floating): Update documentation. Add empty line
11976 between between function documentation and implementation.
11977 Delete variable "buffer". Use ui_file_xstrdup in place of
11978 ui_file_put. Minor adjustments following this change.
11979
71855601
JB
119802014-01-07 Joel Brobecker <brobecker@adacore.com>
11981
11982 * ada-valprint.c (ada_val_print_string): New function,
11983 extracted from ada_val_print_array.
11984 (ada_val_print_array): Replace extracted code by call
11985 to ada_val_print_string followed by a return. Move
11986 "else" branch to the function's top block.
11987
4eb27a30
JB
119882014-01-07 Joel Brobecker <brobecker@adacore.com>
11989
11990 * ada-valprint.c (ada_val_print_array): Move implementation
11991 down. Rename parameter "offset" and "val" into "offset_aligned"
11992 and "original_value" respectively. Add parameter "offset".
11993
34b27950
JB
119942014-01-07 Joel Brobecker <brobecker@adacore.com>
11995
11996 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11997 re-organizing the code. Change the "???" message printed
11998 when target type is a TYPE_CODE_UNDEF into
11999 "<ref to undefined type>".
12000
079e4591
JB
120012014-01-07 Joel Brobecker <brobecker@adacore.com>
12002
12003 * ada-valprint.c (print_record): Delete, implementation inlined...
12004 (ada_val_print_struct_union): ... here. Remove call to
12005 ada_check_typedef in inlined implementation.
12006
8004dfd1
JB
120072014-01-07 Joel Brobecker <brobecker@adacore.com>
12008
12009 * ada-valprint.c (ada_val_print_gnat_array): New function,
12010 extracted from ada_val_print_1;
12011 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12012 (ada_val_print_flt, ada_val_print_struct_union)
12013 (ada_val_print_ref): Likewise.
12014 (ada_val_print_1): Delete variables i and elttype.
12015 Replace extracted-out code by call to corresponding
12016 new functions.
12017
760a2db0
JB
120182014-01-07 Joel Brobecker <brobecker@adacore.com>
12019
12020 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12021
3a92c861
JB
120222014-01-07 Joel Brobecker <brobecker@adacore.com>
12023
12024 * ada-valprint.c (ada_val_print_1): Replace calls to
12025 ada_val_print_1 by calls to val_print.
12026
cd1630f9
JB
120272014-01-07 Joel Brobecker <brobecker@adacore.com>
12028
12029 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12030 Update calls to self accordingly. Replace calls to c_val_print
12031 by calls to val_print.
12032
bdf779a0
JB
120332014-01-07 Joel Brobecker <brobecker@adacore.com>
12034
12035 * ada-valprint.c (print_record): Delete declaration.
12036 (adjust_type_signedness, ada_val_print_1): Likewise.
12037 (ada_val_print): Move function implementation down.
12038 (print_variant_part, print_field_values, print_record):
12039 Move function implementation up.
12040
c0d48811
JB
120412014-01-07 Joel Brobecker <brobecker@adacore.com>
12042
12043 * python/py-type.c (typy_get_name): New function.
12044 (type_object_getset): Add entry for attribute "name".
12045 * NEWS: Add entry mentioning this new attribute.
12046
c26e9cbb
YQ
120472014-01-07 Yao Qi <yao@codesourcery.com>
12048
12049 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12050 statement.
12051
0cc6f43d
YQ
120522014-01-07 Yao Qi <yao@codesourcery.com>
12053
12054 * gnu-nat.c (info_port_rights): Add qualifier const to
12055 argument args.
12056
eec03155
YQ
120572014-01-07 Yao Qi <yao@codesourcery.com>
12058
12059 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12060
f04a82ef
YQ
120612014-01-07 Yao Qi <yao@codesourcery.com>
12062
12063 * gnu-nat.c (make_inf) Update declaration.
12064 (make_inf): Make it static.
12065 (inf_set_traced): Likewise.
12066 (inf_port_to_thread, inf_task_died_status): Likewise.
12067
d57dda0a
YQ
120682014-01-07 Yao Qi <yao@codesourcery.com>
12069
12070 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12071
3aa8c969
YQ
120722014-01-07 Yao Qi <yao@codesourcery.com>
12073
12074 * gnu-nat.c (_initialize_gnu_nat): Declare.
12075
94123b4f
YQ
120762014-01-07 Yao Qi <yao@codesourcery.com>
12077
12078 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12079 'enum bfd_endian'.
12080 (struct gdbarch_info) <byte_order>: Change type to
12081 'enum bfd_endian'.
12082 <byte_order_for_code>: Likewise.
12083 * gdbarch.c, gdbarch.h: Regenerated.
12084
dc81d70a
TT
120852014-01-06 Sasha Smundak <asmundak@google.com>
12086
12087 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12088
cc2f3c35
TT
120892014-01-06 Tom Tromey <tromey@redhat.com>
12090
12091 * doublest.c (convert_doublest_to_floatformat): Use const, not
12092 CONST.
12093 * somread.c (som_symtab_read): Likewise.
12094
adcf2eed
HZ
120952014-01-07 Hui Zhu <hui@codesourcery.com>
12096
12097 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12098 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12099 (gdb_bfd_fopen): Ditto.
12100 (gdb_bfd_openr): Ditto.
12101 (gdb_bfd_openw): Ditto.
12102 (gdb_bfd_openr_iovec): Ditto.
12103 (gdb_bfd_fdopenr): Ditto.
12104 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12105 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12106 with xstrdup.
12107 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12108 with xstrdup.
12109 * symfile-mem.c (symbol_file_add_from_memory): Removed
12110 gdb_bfd_stash_filename.
12111
50722198
DE
121122014-01-03 Doug Evans <dje@google.com>
12113
12114 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12115 output.
12116
2fa4b862
JB
121172014-01-01 Joel Brobecker <brobecker@adacore.com>
12118
12119 Update year range in copyright notice of all files.
12120
28498c42
JB
121212014-01-01 Joel Brobecker <brobecker@adacore.com>
12122
12123 * top.c (print_gdb_version): Set copyright year to 2014.
12124
7b6e1046
JB
121252014-01-01 Joel Brobecker <brobecker@adacore.com>
12126
12127 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12128
df96af55 12129For older changes see ChangeLog-2013.
c906108c
SS
12130\f
12131Local Variables:
12132mode: change-log
12133left-margin: 8
12134fill-column: 74
12135version-control: never
57da7796 12136coding: utf-8
c906108c 12137End:
This page took 2.168294 seconds and 4 git commands to generate.