Introduce common-debug.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
34abf635
GB
12014-08-19 Tom Tromey <tromey@redhat.com>
2 Gary Benson <gbenson@redhat.com>
3
4 * common/common-debug.h: New file.
5 * common/common-debug.c: Likewise.
6 * debug.c: Likewise.
7 * Makefile.in (SFILES): Add common/common-debug.c.
8 (HFILES_NO_SRCDIR): Add common/common-debug.h.
9 (COMMON_OBS): Add common-debug.o and debug.o.
10 (common-debug.o): New rule.
11 * common/common-defs.h: Include common-debug.h.
12 * common/agent.c (debug_agent_printf): New function.
13 (DEBUG_AGENT): Redefine.
14 * nat/i386-dregs.c (debug_printf): Undefine.
15
f6e94d78
GB
162014-08-19 Gary Benson <gbenson@redhat.com>
17
18 * common/common-defs.h: Include print-utils.h.
19 * utils.h: Do not include print-utils.h.
20
9239eeab
GB
212014-08-19 Tom Tromey <tromey@redhat.com>
22 Gary Benson <gbenson@redhat.com>
23
24 * common/common-types.h: New file.
25 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
26 * common/common-defs.h: Include common-types.h.
27 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
28 (ULONGEST): Remove.
29
ef87c8bb
GB
302014-08-19 Tom Tromey <tromey@redhat.com>
31 Gary Benson <gbenson@redhat.com>
32
33 * common/errors.h: New file.
34 * common/errors.c: Likewise.
35 * Makefile.in (SFILES): Add common/errors.c.
36 (HFILES_NO_SRCDIR): Add common/errors.h.
37 (COMMON_OBS): Add errors.o.
38 (errors.o): New rule.
39 * common/common-defs.h: Include errors.h.
40 * utils.h (perror_with_name, error, verror, warning, vwarning):
41 Don't declare.
42 * common/common-utils.h: (malloc_failure, internal_error):
43 Likewise.
44
196a707b
GB
452014-08-19 Gary Benson <gbenson@redhat.com>
46
47 * utils.c (internal_vproblem): Always print the message.
48
ded4fc8f
DE
492014-08-18 Doug Evans <dje@google.com>
50
51 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
52
950c97d8
JB
532014-08-18 Joel Brobecker <brobecker@adacore.com>
54
55 * ada-typeprint.c (type_is_full_subrange_of_target_type):
56 Return 0 if TYPE is dynamic.
57 (print_range): Add handling of dynamic ranges.
58
3cdcd0ce
JB
592014-08-18 Keven Boell <keven.boell@intel.com>
60 Joel Brobecker <brobecker@adacore.com>
61
62 * gdbtypes.h (struct main_type): Add field "data_location".
63 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
64 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
65 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
66 a dynamic data location.
67 (resolve_dynamic_type): Add DW_AT_data_location handling.
68 (copy_recursive, copy_type): Copy the data_location information
69 when present.
70 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
71 * value.c (value_from_contents_and_address): Add
72 DW_AT_data_location handling.
73
08412b07
JB
742014-08-18 Keven Boell <keven.boell@intel.com>
75 Joel Brobecker <brobecker@adacore.com>
76
77 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
78 field "get_object_address".
79 * dwarf2expr.c (execute_stack_op): Add handling for
80 DW_OP_push_object_address.
81 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
82 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
83 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
84 (dwarf_expr_get_obj_addr): New function.
85 (dwarf_expr_ctx_funcs): Add get_object_address field.
86 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
87 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
88 (dwarf2_evaluate_property): Add parameter "address". Use it.
89 (needs_get_obj_addr): New function.
90 (needs_frame_ctx_funcs): Add get_object_address field.
91 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
92 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
93 (resolve_dynamic_array): Likewise.
94
84754697
JB
952014-08-18 Joel Brobecker <brobecker@adacore.com>
96
97 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
98 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
99 fixed value for records and unions for which some GNAT encodings
100 are present.
101
da5c522f
JB
1022014-08-18 Joel Brobecker <brobecker@adacore.com>
103
104 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
105 rewrite to avoid "else if" and "else" constructs. Should be
106 a no-op in practice.
107
0d72a7c3
JB
1082014-08-18 Joel Brobecker <brobecker@adacore.com>
109
110 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
111 of lexical block.
112
e66d4446
SC
1132014-08-15 Siva Chandra Reddy <sivachandra@google.com>
114
115 PR c++/17132
116 * eval.c: Update all calls to find_overload_match.
117 * valarith.c: Likewise.
118 (value_user_defined_cpp_op, value_user_defined_op): New
119 argument NOSIDE. Update all callers.
120 * valops.c (find_overload_match): New argument NOSIDE.
121 * value.h (find_overload_match): Update signature.
122
940df408
SC
1232014-08-15 Siva Chandra Reddy <sivachandra@google.com>
124
125 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
126 'items' methods instead of 'iteritems' method on dictionaries.
127
699ca60a
DE
1282014-08-15 Doug Evans <dje@google.com>
129
130 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
131 closer to use.
132
37780ee5
DE
1332014-08-15 Doug Evans <dje@google.com>
134
135 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
136
0ad93d4f
DE
1372014-08-15 Doug Evans <dje@google.com>
138
139 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
140
20d8c372
DE
1412014-08-15 Doug Evans <dje@google.com>
142
143 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
144 unused.
145
cb039ba4
EZ
1462014-08-15 Eli Zaretskii <eliz@gnu.org>
147
148 * dcache.h: Include target.h, to avoid compile time warnings.
149
eb7a547a
JB
1502014-08-15 Joel Brobecker <brobecker@adacore.com>
151
152 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
153 frame_info" partial declaration.
154 * gdbarch.h: Regenerate.
155
783cecc8
YQ
1562014-08-15 Yao Qi <yao@codesourcery.com>
157
158 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
159 Add parameter 'decode_for_pst_p'. Callers update.
160
65c749e7
YQ
1612014-08-13 Yao Qi <yao@codesourcery.com>
162
163 PR build/17104
164 * configure.ac: Use local variable 'pos'.
165 * configure: Regenerated.
166
d769e349
DE
1672014-08-11 Doug Evans <dje@google.com>
168
169 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
170 message, it is redundant with "Reading symbols from ..." message.
171
24f1235e
DE
1722014-08-10 Doug Evans <xdje42@gmail.com>
173
174 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
175
dcd2e6ef
YQ
1762014-08-09 Yao Qi <yao@codesourcery.com>
177
178 PR remote/9053
179 * remote.c (remote_xfer_partial): Remove dead code.
180
070bdf0b
AA
1812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
182
183 * ia64-linux-tdep.c: Include "regset.h".
184 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
185 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
186 (ia64_linux_supply_fpregset): New function.
187 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
188 (ia64_linux_regset_from_core_section): New function.
189 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
190 method.
191
08f9f542
AA
1922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
193
194 * m68klinux-tdep.c: Include "regset.h".
195 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
196 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
197 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
198 (m68k_linux_regset_from_core_section): New function.
199 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
200 method.
201
8f1cee41
AA
2022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
203
204 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
205 function. Move logic to...
206 (tilegx_linux_regmap): ... this new register map.
207 (tilegx_linux_regset): Refer to register map, replace supply
208 method by regcache_supply_regset, and add collect method.
209 * tilegx-tdep.h (enum tilegx_regnum): New enum value
210 TILEGX_FIRST_EASY_REGNUM.
211
c5741217
AA
2122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
213
214 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
215 that calls regcache_supply_regset and handles the EPC register
216 separately. Move main logic to...
217 (score7_linux_gregmap): ... this new register map.
218 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
219 (score7_linux_gregset): Refer to register map. Add collect method.
220 (score7_linux_regset_from_core_section): Replace
221 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
222 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
223 (struct regset): Delete unused forward declaraction.
224 (struct pt_regs): Delete structure definition.
225 (elf_gregset_t): Delete typedef.
226
81580573
AA
2272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
228
229 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
230 (nios2_core_regset): Add collect method.
231
ba199d7d
AA
2322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
233
234 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
235 platform-independent and don't write to read-only input buffer.
236 (m32r_linux_collect_gregset): New function.
237 (m32r_linux_gregset): Add collect method.
238
0006a9da
AA
2392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
240
241 * hppa-linux-tdep.c (greg_map): Rename to...
242 (hppa_linux_gregmap): ... this. Also convert to
243 regcache_map_entry format.
244 (hppa_linux_supply_regset): Delete function.
245 (hppa_linux_supply_fpregset): Delete function. Move logic to...
246 (hppa_linux_fpregmap): ... this new register map.
247 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
248 register map, replace supply method by regcache_supply_regset, and
249 add collect method regcache_collect_regset.
250
901e1b23
AA
2512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
252
253 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
254 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
255 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
256 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
257 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
258 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
259 (frv_linux_supply_gregset): Replace main logic by call to
260 regcache_supply_regset, but keep clearing gr32-gr63.
261 (frv_linux_supply_fpregset): Delete function.
262 (frv_linux_gregset): Refer to appropriate register map and add
263 regcache_collect_regset as the collect method.
264 (frv_linux_fpregset): Likewise. Also exchange the supply method
265 by regcache_supply_regset.
266
1d6e7555
AA
2672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
268
269 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
270 by call to alpha_supply_int_regs.
271 (alpha_linux_collect_gregset): New function.
272 (alpha_linux_supply_fpregset): Replace logic by call to
273 alpha_supply_fp_regs.
274 (alpha_linux_collect_fpregset): New function.
275 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
276
d4d793bf
AA
2772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
278
279 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
280 by call to regcache_collect_regset.
281 (supply_gregset, supply_fpregset): Call regcache_supply_regset
282 instead of aarch64_linux_supply_gregset/_fpregset.
283 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
284 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
285 header file instead.
286 (aarch64_linux_supply_gregset, supply_gregset_from_core)
287 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
288 functions. Move logic to ...
289 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
290 register maps.
291 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
292 refer to new register maps, replace *_regset_from_core by
293 regcache_supply_regset, and also use regcache_collect_regset.
294 * aarch64-linux-tdep.h: Include "regset.h".
295 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
296 Delete prototypes.
297 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
298 macros, moved from C source file.
299 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
300 variable declarations.
301
99b7da5d
AA
3022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
303
304 * s390-linux-nat.c: Include "regset.h".
305 (regmap_gregset): Delete macro.
306 (s390_64_regmap_gregset): New register map for
307 regcache_supply/_collect_regset.
308 (s390_64_gregset): New regset.
309 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
310 (regmap_fpregset): Delete macro.
311 (s390_native_supply, s390_native_collect): Delete functions.
312 (supply_gregset, fill_gregset): Replace s390-specific regmap
313 handling by a call to regcache_supply/_collect_regset.
314 (supply_fpregset, fill_fpregset): Call regcache_supply/
315 _collect_regset instead of s390_native_supply/_collect.
316 (fetch_regset, store_regset): Likewise. Also change the last
317 parameter to a regset instead of a regmap.
318 (s390_linux_fetch_inferior_registers)
319 (390_linux_store_inferior_registers): Adjust last parameter in
320 calls to fetch_regset and store_regset.
321 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
322 (s390_gregmap): ... this. Also make static const and convert to
323 regcache_map_entry format.
324 (s390x_regmap_gregset): Delete.
325 (s390_regmap_fpregset): Rename to...
326 (s390_fpregmap): ... this. Make static const and convert to
327 regcache_map_entry format.
328 (s390_regmap_upper, s390_regmap_last_break)
329 (s390x_regmap_last_break, s390_regmap_system_call)
330 (s390_regmap_tdb): Likewise.
331 (s390_supply_regset, s390_collect_regset): Remove functions.
332 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
333 s390_supply_regset.
334 (s390_gregset, s390_fpregset, s390_upper_regset)
335 (s390_last_break_regset, s390x_last_break_regset)
336 (s390_system_call_regset, s390_tdb_regset): Make global and
337 replace s390_supply/_collect_regset by regcache_supply/
338 _collect_regset.
339 (s390x_gregset): Delete.
340 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
341 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
342 (s390_regmap_fpregset, s390_regmap_last_break)
343 (s390x_regmap_last_break, s390_regmap_system_call)
344 (s390_regmap_tdb): Delete global variable declarations.
345 (s390_gregset, s390_fpregset, s390_last_break_regset)
346 (s390x_last_break_regset, s390_system_call_regset)
347 (s390_tdb_regset): New global variable declarations.
348
0b309272
AA
3492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
350
351 * regcache.c: Include "regset.h".
352 (regcache_transfer_regset): New local function.
353 (regcache_supply_regset, regcache_collect_regset): New functions.
354 * regcache.h (struct regcache_map_entry): New structure.
355 (REGCACHE_MAP_SKIP): New enum value.
356 (regcache_supply_regset, regcache_collect_regset): New prototypes.
357
7fefa8d7
AA
3582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
359
360 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
361 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
362 (ppc_linux_collect_gregset ): Likewise.
363 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
364 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
365 (ppc_collect_vrregset): Likewise.
366 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
367 Likewise.
368
96c4f946
YQ
3692014-08-07 Yao Qi <yao@codesourcery.com>
370
371 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
372 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
373 * remote.c (remote_read_bytes): Likewise.
374
fffbe6a8
YQ
3752014-08-07 Yao Qi <yao@codesourcery.com>
376
377 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
378
5ee8a82c
YQ
3792014-08-07 Yao Qi <yao@codesourcery.com>
380
381 PR remote/17230
382 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
383 TARGET_XFER_OK instead of 0.
384
bb974a24
GB
3852014-08-07 Gary Benson <gbenson@redhat.com>
386
387 * common/common-defs.h: Include errno.h.
388 * defs.h: Do not include errno.h.
389 * ada-typeprint.c: Likewise.
390 * c-typeprint.c: Likewise.
391 * core-regset.c: Likewise.
392 * corefile.c: Likewise.
393 * corelow.c: Likewise.
394 * event-loop.c: Likewise.
395 * f-typeprint.c: Likewise.
396 * gnu-nat.c: Likewise.
397 * go32-nat.c: Likewise.
398 * i386gnu-nat.c: Likewise.
399 * m2-typeprint.c: Likewise.
400 * nat/linux-btrace.c: Likewise.
401 * p-typeprint.c: Likewise.
402 * procfs.c: Likewise.
403 * remote-sim.c: Likewise.
404 * rs6000-nat.c: Likewise.
405 * target.c: Likewise.
406 * typeprint.c: Likewise.
407 * ui-file.c: Likewise.
408 * valops.c: Likewise.
409 * valprint.c: Likewise.
410
6d3d12eb
GB
4112014-08-07 Gary Benson <gbenson@redhat.com>
412
413 * common/common-defs.h: Include string.h.
414 * aarch64-tdep.c: Do not include string.h.
415 * ada-exp.y: Likewise.
416 * ada-lang.c: Likewise.
417 * ada-lex.l: Likewise.
418 * ada-typeprint.c: Likewise.
419 * ada-valprint.c: Likewise.
420 * aix-thread.c: Likewise.
421 * alpha-linux-tdep.c: Likewise.
422 * alpha-mdebug-tdep.c: Likewise.
423 * alpha-nat.c: Likewise.
424 * alpha-osf1-tdep.c: Likewise.
425 * alpha-tdep.c: Likewise.
426 * alphanbsd-tdep.c: Likewise.
427 * amd64-dicos-tdep.c: Likewise.
428 * amd64-linux-tdep.c: Likewise.
429 * amd64-nat.c: Likewise.
430 * amd64-sol2-tdep.c: Likewise.
431 * amd64fbsd-tdep.c: Likewise.
432 * amd64obsd-tdep.c: Likewise.
433 * arch-utils.c: Likewise.
434 * arm-linux-nat.c: Likewise.
435 * arm-linux-tdep.c: Likewise.
436 * arm-tdep.c: Likewise.
437 * arm-wince-tdep.c: Likewise.
438 * armbsd-tdep.c: Likewise.
439 * armnbsd-nat.c: Likewise.
440 * armnbsd-tdep.c: Likewise.
441 * armobsd-tdep.c: Likewise.
442 * avr-tdep.c: Likewise.
443 * ax-gdb.c: Likewise.
444 * ax-general.c: Likewise.
445 * bcache.c: Likewise.
446 * bfin-tdep.c: Likewise.
447 * breakpoint.c: Likewise.
448 * build-id.c: Likewise.
449 * buildsym.c: Likewise.
450 * c-exp.y: Likewise.
451 * c-lang.c: Likewise.
452 * c-typeprint.c: Likewise.
453 * c-valprint.c: Likewise.
454 * charset.c: Likewise.
455 * cli-out.c: Likewise.
456 * cli/cli-cmds.c: Likewise.
457 * cli/cli-decode.c: Likewise.
458 * cli/cli-dump.c: Likewise.
459 * cli/cli-interp.c: Likewise.
460 * cli/cli-logging.c: Likewise.
461 * cli/cli-script.c: Likewise.
462 * cli/cli-setshow.c: Likewise.
463 * cli/cli-utils.c: Likewise.
464 * coffread.c: Likewise.
465 * common/agent.c: Likewise.
466 * common/buffer.c: Likewise.
467 * common/buffer.h: Likewise.
468 * common/common-utils.c: Likewise.
469 * common/filestuff.c: Likewise.
470 * common/filestuff.c: Likewise.
471 * common/format.c: Likewise.
472 * common/print-utils.c: Likewise.
473 * common/rsp-low.c: Likewise.
474 * common/signals.c: Likewise.
475 * common/vec.h: Likewise.
476 * common/xml-utils.c: Likewise.
477 * core-regset.c: Likewise.
478 * corefile.c: Likewise.
479 * corelow.c: Likewise.
480 * cp-abi.c: Likewise.
481 * cp-name-parser.y: Likewise.
482 * cp-support.c: Likewise.
483 * cp-valprint.c: Likewise.
484 * cris-tdep.c: Likewise.
485 * d-exp.y: Likewise.
486 * darwin-nat.c: Likewise.
487 * dbxread.c: Likewise.
488 * dcache.c: Likewise.
489 * demangle.c: Likewise.
490 * dicos-tdep.c: Likewise.
491 * disasm.c: Likewise.
492 * doublest.c: Likewise.
493 * dsrec.c: Likewise.
494 * dummy-frame.c: Likewise.
495 * dwarf2-frame.c: Likewise.
496 * dwarf2loc.c: Likewise.
497 * dwarf2read.c: Likewise.
498 * elfread.c: Likewise.
499 * environ.c: Likewise.
500 * eval.c: Likewise.
501 * event-loop.c: Likewise.
502 * exceptions.c: Likewise.
503 * exec.c: Likewise.
504 * expprint.c: Likewise.
505 * f-exp.y: Likewise.
506 * f-lang.c: Likewise.
507 * f-typeprint.c: Likewise.
508 * f-valprint.c: Likewise.
509 * fbsd-nat.c: Likewise.
510 * findcmd.c: Likewise.
511 * findvar.c: Likewise.
512 * fork-child.c: Likewise.
513 * frame.c: Likewise.
514 * frv-linux-tdep.c: Likewise.
515 * frv-tdep.c: Likewise.
516 * gdb.c: Likewise.
517 * gdb_bfd.c: Likewise.
518 * gdbarch.c: Likewise.
519 * gdbarch.sh: Likewise.
520 * gdbtypes.c: Likewise.
521 * gnu-nat.c: Likewise.
522 * gnu-v2-abi.c: Likewise.
523 * gnu-v3-abi.c: Likewise.
524 * go-exp.y: Likewise.
525 * go-lang.c: Likewise.
526 * go32-nat.c: Likewise.
527 * guile/guile.c: Likewise.
528 * guile/scm-auto-load.c: Likewise.
529 * hppa-hpux-tdep.c: Likewise.
530 * hppa-linux-nat.c: Likewise.
531 * hppanbsd-tdep.c: Likewise.
532 * hppaobsd-tdep.c: Likewise.
533 * i386-cygwin-tdep.c: Likewise.
534 * i386-dicos-tdep.c: Likewise.
535 * i386-linux-tdep.c: Likewise.
536 * i386-nto-tdep.c: Likewise.
537 * i386-sol2-tdep.c: Likewise.
538 * i386-tdep.c: Likewise.
539 * i386bsd-tdep.c: Likewise.
540 * i386gnu-nat.c: Likewise.
541 * i386nbsd-tdep.c: Likewise.
542 * i386obsd-tdep.c: Likewise.
543 * i387-tdep.c: Likewise.
544 * ia64-libunwind-tdep.c: Likewise.
545 * ia64-linux-nat.c: Likewise.
546 * inf-child.c: Likewise.
547 * inf-ptrace.c: Likewise.
548 * inf-ttrace.c: Likewise.
549 * infcall.c: Likewise.
550 * infcmd.c: Likewise.
551 * inflow.c: Likewise.
552 * infrun.c: Likewise.
553 * interps.c: Likewise.
554 * iq2000-tdep.c: Likewise.
555 * irix5-nat.c: Likewise.
556 * jv-exp.y: Likewise.
557 * jv-lang.c: Likewise.
558 * jv-typeprint.c: Likewise.
559 * jv-valprint.c: Likewise.
560 * language.c: Likewise.
561 * linux-fork.c: Likewise.
562 * linux-nat.c: Likewise.
563 * lm32-tdep.c: Likewise.
564 * m2-exp.y: Likewise.
565 * m2-typeprint.c: Likewise.
566 * m32c-tdep.c: Likewise.
567 * m32r-linux-nat.c: Likewise.
568 * m32r-linux-tdep.c: Likewise.
569 * m32r-rom.c: Likewise.
570 * m32r-tdep.c: Likewise.
571 * m68hc11-tdep.c: Likewise.
572 * m68k-tdep.c: Likewise.
573 * m68kbsd-tdep.c: Likewise.
574 * m68klinux-nat.c: Likewise.
575 * m68klinux-tdep.c: Likewise.
576 * m88k-tdep.c: Likewise.
577 * machoread.c: Likewise.
578 * macrocmd.c: Likewise.
579 * main.c: Likewise.
580 * mdebugread.c: Likewise.
581 * mem-break.c: Likewise.
582 * memattr.c: Likewise.
583 * memory-map.c: Likewise.
584 * mep-tdep.c: Likewise.
585 * mi/mi-cmd-break.c: Likewise.
586 * mi/mi-cmd-disas.c: Likewise.
587 * mi/mi-cmd-env.c: Likewise.
588 * mi/mi-cmd-stack.c: Likewise.
589 * mi/mi-cmd-var.c: Likewise.
590 * mi/mi-cmds.c: Likewise.
591 * mi/mi-console.c: Likewise.
592 * mi/mi-getopt.c: Likewise.
593 * mi/mi-interp.c: Likewise.
594 * mi/mi-main.c: Likewise.
595 * mi/mi-parse.c: Likewise.
596 * microblaze-rom.c: Likewise.
597 * microblaze-tdep.c: Likewise.
598 * mingw-hdep.c: Likewise.
599 * minidebug.c: Likewise.
600 * minsyms.c: Likewise.
601 * mips-irix-tdep.c: Likewise.
602 * mips-linux-tdep.c: Likewise.
603 * mips-tdep.c: Likewise.
604 * mips64obsd-tdep.c: Likewise.
605 * mipsnbsd-tdep.c: Likewise.
606 * mipsread.c: Likewise.
607 * mn10300-linux-tdep.c: Likewise.
608 * mn10300-tdep.c: Likewise.
609 * monitor.c: Likewise.
610 * moxie-tdep.c: Likewise.
611 * mt-tdep.c: Likewise.
612 * nat/linux-btrace.c: Likewise.
613 * nat/linux-osdata.c: Likewise.
614 * nat/linux-procfs.c: Likewise.
615 * nat/linux-ptrace.c: Likewise.
616 * nat/linux-waitpid.c: Likewise.
617 * nbsd-tdep.c: Likewise.
618 * nios2-linux-tdep.c: Likewise.
619 * nto-procfs.c: Likewise.
620 * nto-tdep.c: Likewise.
621 * objc-lang.c: Likewise.
622 * objfiles.c: Likewise.
623 * opencl-lang.c: Likewise.
624 * osabi.c: Likewise.
625 * osdata.c: Likewise.
626 * p-exp.y: Likewise.
627 * p-lang.c: Likewise.
628 * p-typeprint.c: Likewise.
629 * parse.c: Likewise.
630 * posix-hdep.c: Likewise.
631 * ppc-linux-nat.c: Likewise.
632 * ppc-sysv-tdep.c: Likewise.
633 * ppcfbsd-tdep.c: Likewise.
634 * ppcnbsd-tdep.c: Likewise.
635 * ppcobsd-tdep.c: Likewise.
636 * printcmd.c: Likewise.
637 * procfs.c: Likewise.
638 * prologue-value.c: Likewise.
639 * python/py-auto-load.c: Likewise.
640 * python/py-gdb-readline.c: Likewise.
641 * ravenscar-thread.c: Likewise.
642 * regcache.c: Likewise.
643 * registry.c: Likewise.
644 * remote-fileio.c: Likewise.
645 * remote-m32r-sdi.c: Likewise.
646 * remote-mips.c: Likewise.
647 * remote-notif.c: Likewise.
648 * remote-sim.c: Likewise.
649 * remote.c: Likewise.
650 * reverse.c: Likewise.
651 * rs6000-aix-tdep.c: Likewise.
652 * ser-base.c: Likewise.
653 * ser-go32.c: Likewise.
654 * ser-mingw.c: Likewise.
655 * ser-pipe.c: Likewise.
656 * ser-tcp.c: Likewise.
657 * ser-unix.c: Likewise.
658 * serial.c: Likewise.
659 * sh-tdep.c: Likewise.
660 * sh64-tdep.c: Likewise.
661 * shnbsd-tdep.c: Likewise.
662 * skip.c: Likewise.
663 * sol-thread.c: Likewise.
664 * solib-dsbt.c: Likewise.
665 * solib-frv.c: Likewise.
666 * solib-osf.c: Likewise.
667 * solib-som.c: Likewise.
668 * solib-spu.c: Likewise.
669 * solib-target.c: Likewise.
670 * solib.c: Likewise.
671 * somread.c: Likewise.
672 * source.c: Likewise.
673 * sparc-nat.c: Likewise.
674 * sparc-sol2-tdep.c: Likewise.
675 * sparc-tdep.c: Likewise.
676 * sparc64-tdep.c: Likewise.
677 * sparc64fbsd-tdep.c: Likewise.
678 * sparc64nbsd-tdep.c: Likewise.
679 * sparcnbsd-tdep.c: Likewise.
680 * spu-linux-nat.c: Likewise.
681 * spu-multiarch.c: Likewise.
682 * spu-tdep.c: Likewise.
683 * stabsread.c: Likewise.
684 * stack.c: Likewise.
685 * std-regs.c: Likewise.
686 * symfile.c: Likewise.
687 * symmisc.c: Likewise.
688 * symtab.c: Likewise.
689 * target.c: Likewise.
690 * thread.c: Likewise.
691 * tilegx-linux-nat.c: Likewise.
692 * tilegx-tdep.c: Likewise.
693 * top.c: Likewise.
694 * tracepoint.c: Likewise.
695 * tui/tui-command.c: Likewise.
696 * tui/tui-data.c: Likewise.
697 * tui/tui-disasm.c: Likewise.
698 * tui/tui-file.c: Likewise.
699 * tui/tui-layout.c: Likewise.
700 * tui/tui-out.c: Likewise.
701 * tui/tui-regs.c: Likewise.
702 * tui/tui-source.c: Likewise.
703 * tui/tui-stack.c: Likewise.
704 * tui/tui-win.c: Likewise.
705 * tui/tui-windata.c: Likewise.
706 * tui/tui-winsource.c: Likewise.
707 * typeprint.c: Likewise.
708 * ui-file.c: Likewise.
709 * ui-out.c: Likewise.
710 * user-regs.c: Likewise.
711 * utils.c: Likewise.
712 * v850-tdep.c: Likewise.
713 * valarith.c: Likewise.
714 * valops.c: Likewise.
715 * valprint.c: Likewise.
716 * value.c: Likewise.
717 * varobj.c: Likewise.
718 * vax-tdep.c: Likewise.
719 * vaxnbsd-tdep.c: Likewise.
720 * vaxobsd-tdep.c: Likewise.
721 * windows-nat.c: Likewise.
722 * xcoffread.c: Likewise.
723 * xml-support.c: Likewise.
724 * xstormy16-tdep.c: Likewise.
725 * xtensa-linux-nat.c: Likewise.
726
dccbb609
GB
7272014-08-07 Gary Benson <gbenson@redhat.com>
728
729 * common/common-defs.h: Include gdb_assert.h.
730 * aarch64-tdep.c: Do not include gdb_assert.h.
731 * addrmap.c: Likewise.
732 * aix-thread.c: Likewise.
733 * alpha-linux-tdep.c: Likewise.
734 * alpha-mdebug-tdep.c: Likewise.
735 * alphanbsd-tdep.c: Likewise.
736 * amd64-nat.c: Likewise.
737 * amd64-tdep.c: Likewise.
738 * amd64bsd-nat.c: Likewise.
739 * amd64fbsd-nat.c: Likewise.
740 * amd64fbsd-tdep.c: Likewise.
741 * amd64nbsd-nat.c: Likewise.
742 * amd64nbsd-tdep.c: Likewise.
743 * amd64obsd-nat.c: Likewise.
744 * amd64obsd-tdep.c: Likewise.
745 * arch-utils.c: Likewise.
746 * arm-tdep.c: Likewise.
747 * armbsd-tdep.c: Likewise.
748 * auxv.c: Likewise.
749 * bcache.c: Likewise.
750 * bfin-tdep.c: Likewise.
751 * blockframe.c: Likewise.
752 * breakpoint.c: Likewise.
753 * bsd-kvm.c: Likewise.
754 * bsd-uthread.c: Likewise.
755 * buildsym.c: Likewise.
756 * c-exp.y: Likewise.
757 * c-lang.c: Likewise.
758 * charset.c: Likewise.
759 * cleanups.c: Likewise.
760 * cli-out.c: Likewise.
761 * cli/cli-decode.c: Likewise.
762 * cli/cli-dump.c: Likewise.
763 * cli/cli-logging.c: Likewise.
764 * cli/cli-script.c: Likewise.
765 * cli/cli-utils.c: Likewise.
766 * coffread.c: Likewise.
767 * common/common-utils.c: Likewise.
768 * common/queue.h: Likewise.
769 * common/signals.c: Likewise.
770 * common/vec.h: Likewise.
771 * complaints.c: Likewise.
772 * completer.c: Likewise.
773 * corelow.c: Likewise.
774 * cp-abi.c: Likewise.
775 * cp-name-parser.y: Likewise.
776 * cp-namespace.c: Likewise.
777 * cp-support.c: Likewise.
778 * cris-tdep.c: Likewise.
779 * dbxread.c: Likewise.
780 * dictionary.c: Likewise.
781 * doublest.c: Likewise.
782 * dsrec.c: Likewise.
783 * dummy-frame.c: Likewise.
784 * dwarf2-frame-tailcall.c: Likewise.
785 * dwarf2-frame.c: Likewise.
786 * dwarf2expr.c: Likewise.
787 * dwarf2loc.c: Likewise.
788 * dwarf2read.c: Likewise.
789 * eval.c: Likewise.
790 * event-loop.c: Likewise.
791 * exceptions.c: Likewise.
792 * expprint.c: Likewise.
793 * f-valprint.c: Likewise.
794 * fbsd-nat.c: Likewise.
795 * findvar.c: Likewise.
796 * frame-unwind.c: Likewise.
797 * frame.c: Likewise.
798 * frv-tdep.c: Likewise.
799 * gcore.c: Likewise.
800 * gdb-dlfcn.c: Likewise.
801 * gdb_bfd.c: Likewise.
802 * gdbarch.c: Likewise.
803 * gdbarch.sh: Likewise.
804 * gdbtypes.c: Likewise.
805 * gnu-nat.c: Likewise.
806 * gnu-v3-abi.c: Likewise.
807 * go-lang.c: Likewise.
808 * guile/scm-exception.c: Likewise.
809 * guile/scm-gsmob.c: Likewise.
810 * guile/scm-lazy-string.c: Likewise.
811 * guile/scm-math.c: Likewise.
812 * guile/scm-pretty-print.c: Likewise.
813 * guile/scm-safe-call.c: Likewise.
814 * guile/scm-utils.c: Likewise.
815 * guile/scm-value.c: Likewise.
816 * h8300-tdep.c: Likewise.
817 * hppa-hpux-nat.c: Likewise.
818 * hppa-tdep.c: Likewise.
819 * hppanbsd-tdep.c: Likewise.
820 * hppaobsd-tdep.c: Likewise.
821 * i386-darwin-nat.c: Likewise.
822 * i386-darwin-tdep.c: Likewise.
823 * i386-nto-tdep.c: Likewise.
824 * i386-tdep.c: Likewise.
825 * i386bsd-nat.c: Likewise.
826 * i386fbsd-tdep.c: Likewise.
827 * i386gnu-nat.c: Likewise.
828 * i386nbsd-tdep.c: Likewise.
829 * i386obsd-tdep.c: Likewise.
830 * i387-tdep.c: Likewise.
831 * ia64-libunwind-tdep.c: Likewise.
832 * ia64-tdep.c: Likewise.
833 * inf-ptrace.c: Likewise.
834 * inf-ttrace.c: Likewise.
835 * infcall.c: Likewise.
836 * infcmd.c: Likewise.
837 * infrun.c: Likewise.
838 * inline-frame.c: Likewise.
839 * interps.c: Likewise.
840 * jv-lang.c: Likewise.
841 * jv-typeprint.c: Likewise.
842 * linux-fork.c: Likewise.
843 * linux-nat.c: Likewise.
844 * linux-thread-db.c: Likewise.
845 * m32c-tdep.c: Likewise.
846 * m32r-linux-nat.c: Likewise.
847 * m32r-tdep.c: Likewise.
848 * m68k-tdep.c: Likewise.
849 * m68kbsd-nat.c: Likewise.
850 * m68kbsd-tdep.c: Likewise.
851 * m88k-tdep.c: Likewise.
852 * machoread.c: Likewise.
853 * macroexp.c: Likewise.
854 * macrotab.c: Likewise.
855 * maint.c: Likewise.
856 * mdebugread.c: Likewise.
857 * memory-map.c: Likewise.
858 * mep-tdep.c: Likewise.
859 * mi/mi-common.c: Likewise.
860 * microblaze-tdep.c: Likewise.
861 * mingw-hdep.c: Likewise.
862 * mips-linux-nat.c: Likewise.
863 * mips-linux-tdep.c: Likewise.
864 * mips-tdep.c: Likewise.
865 * mips64obsd-tdep.c: Likewise.
866 * mipsnbsd-tdep.c: Likewise.
867 * mn10300-linux-tdep.c: Likewise.
868 * mn10300-tdep.c: Likewise.
869 * moxie-tdep.c: Likewise.
870 * mt-tdep.c: Likewise.
871 * nat/linux-btrace.c: Likewise.
872 * nat/linux-osdata.c: Likewise.
873 * nat/linux-ptrace.c: Likewise.
874 * nat/mips-linux-watch.c: Likewise.
875 * nios2-linux-tdep.c: Likewise.
876 * nios2-tdep.c: Likewise.
877 * objc-lang.c: Likewise.
878 * objfiles.c: Likewise.
879 * obsd-nat.c: Likewise.
880 * opencl-lang.c: Likewise.
881 * osabi.c: Likewise.
882 * parse.c: Likewise.
883 * ppc-linux-nat.c: Likewise.
884 * ppc-sysv-tdep.c: Likewise.
885 * ppcfbsd-nat.c: Likewise.
886 * ppcfbsd-tdep.c: Likewise.
887 * ppcnbsd-nat.c: Likewise.
888 * ppcnbsd-tdep.c: Likewise.
889 * ppcobsd-nat.c: Likewise.
890 * ppcobsd-tdep.c: Likewise.
891 * printcmd.c: Likewise.
892 * procfs.c: Likewise.
893 * prologue-value.c: Likewise.
894 * psymtab.c: Likewise.
895 * python/py-lazy-string.c: Likewise.
896 * python/py-value.c: Likewise.
897 * regcache.c: Likewise.
898 * reggroups.c: Likewise.
899 * registry.c: Likewise.
900 * remote-sim.c: Likewise.
901 * remote.c: Likewise.
902 * rs6000-aix-tdep.c: Likewise.
903 * rs6000-tdep.c: Likewise.
904 * s390-linux-tdep.c: Likewise.
905 * score-tdep.c: Likewise.
906 * ser-base.c: Likewise.
907 * ser-mingw.c: Likewise.
908 * sh-tdep.c: Likewise.
909 * sh64-tdep.c: Likewise.
910 * solib-darwin.c: Likewise.
911 * solib-spu.c: Likewise.
912 * solib-svr4.c: Likewise.
913 * source.c: Likewise.
914 * sparc-nat.c: Likewise.
915 * sparc-sol2-tdep.c: Likewise.
916 * sparc-tdep.c: Likewise.
917 * sparc64-sol2-tdep.c: Likewise.
918 * sparc64-tdep.c: Likewise.
919 * sparc64fbsd-tdep.c: Likewise.
920 * sparc64nbsd-tdep.c: Likewise.
921 * sparc64obsd-tdep.c: Likewise.
922 * sparcnbsd-tdep.c: Likewise.
923 * sparcobsd-tdep.c: Likewise.
924 * spu-multiarch.c: Likewise.
925 * spu-tdep.c: Likewise.
926 * stabsread.c: Likewise.
927 * stack.c: Likewise.
928 * symfile.c: Likewise.
929 * symtab.c: Likewise.
930 * target-descriptions.c: Likewise.
931 * target-memory.c: Likewise.
932 * target.c: Likewise.
933 * tic6x-linux-tdep.c: Likewise.
934 * tic6x-tdep.c: Likewise.
935 * tilegx-linux-nat.c: Likewise.
936 * tilegx-tdep.c: Likewise.
937 * top.c: Likewise.
938 * tramp-frame.c: Likewise.
939 * tui/tui-out.c: Likewise.
940 * tui/tui-winsource.c: Likewise.
941 * ui-out.c: Likewise.
942 * user-regs.c: Likewise.
943 * utils.c: Likewise.
944 * v850-tdep.c: Likewise.
945 * valops.c: Likewise.
946 * value.c: Likewise.
947 * varobj.c: Likewise.
948 * vax-nat.c: Likewise.
949 * xml-syscall.c: Likewise.
950 * xml-tdesc.c: Likewise.
951 * xstormy16-tdep.c: Likewise.
952 * xtensa-linux-nat.c: Likewise.
953 * xtensa-tdep.c: Likewise.
954
e76df0d0
GB
9552014-08-07 Gary Benson <gbenson@redhat.com>
956
957 * common/common-defs.h: Include common-utils.h.
958 * defs.h: Do not include common-utils.h.
959 * common/gdb_assert.h: Likewise.
960 * darwin-nat.h: Likewise.
961 * nat/linux-btrace.c: Likewise.
962 * target/waitstatus.h: Likewise.
963
4cb9c816
GB
9642014-08-07 Gary Benson <gbenson@redhat.com>
965
966 * common/common-defs.h: Include ptid.h.
967 * defs.h: Do not include ptid.h.
968 * inferior.h: Likewise.
969 * infrun.h: Likewise.
970 * nat/linux-btrace.h: Likewise.
971 * nat/linux-osdata.h: Likewise.
972 * target/waitstatus.h: Likewise.
973
3995eeee
GB
9742014-08-07 Gary Benson <gbenson@redhat.com>
975
976 * common/common-defs.h: Include gdb_locale.h.
977 * defs.h: Do not include gdb_locale.h.
978
cb9f1a9b
GB
9792014-08-07 Gary Benson <gbenson@redhat.com>
980
981 * common/common-defs.h: Include gdb/signals.h.
982 * defs.h: Do not include gdb/signals.h.
983
a5fceff8
GB
9842014-08-07 Gary Benson <gbenson@redhat.com>
985
986 * common/common-defs.h: Include pathmax.h.
987 * defs.h: Do not include pathmax.h.
988
b9391142
GB
9892014-08-07 Gary Benson <gbenson@redhat.com>
990
991 * common/common-defs.h: Include libiberty.h.
992 * defs.h: Do not include libiberty.h.
993 * common/queue.h: Likewise.
994 * cp-name-parser.y: Likewise.
995 * mi/mi-cmd-catch.c: Likewise.
996 * python/python.c: Likewise.
997
0e443c87
GB
9982014-08-07 Gary Benson <gbenson@redhat.com>
999
1000 * common/common-defs.h: Include ansidecl.h.
1001 * defs.h: Do not include ansidecl.h.
1002 * common/buffer.h: Likewise.
1003 * common/common-utils.h: Likewise.
1004
8ebb3f56
GB
10052014-08-07 Gary Benson <gbenson@redhat.com>
1006
1007 * common/common-defs.h: Include stddef.h.
1008 * defs.h: Do not include stddef.h.
1009 * common/common-utils.h: Likewise.
1010 * amd64fbsd-nat.c: Likewise.
1011 * bcache.c: Likewise.
1012 * charset.c: Likewise.
1013 * common/buffer.h: Likewise.
1014 * common/vec.h: Likewise.
1015 * i386bsd-nat.c: Likewise.
1016 * nat/linux-btrace.h: Likewise.
1017 * ppcfbsd-nat.c: Likewise.
1018 * ppcnbsd-tdep.h: Likewise.
1019 * ppcobsd-nat.c: Likewise.
1020 * ppcobsd-tdep.h: Likewise.
1021 * python/py-gdb-readline.c: Likewise.
1022
8980bdf6
GB
10232014-08-07 Gary Benson <gbenson@redhat.com>
1024
1025 * common/common-defs.h: Include stdarg.h.
1026 * defs.h: Do not include stdarg.h.
1027 * ada-lang.c: Likewise.
1028 * common/common-utils.h: Likewise.
1029 * guile/scm-string.c: Likewise.
1030 * guile/scm-utils.c: Likewise.
1031 * m32c-tdep.c: Likewise.
1032
d7096f71
GB
10332014-08-07 Gary Benson <gbenson@redhat.com>
1034
1035 * common/common-defs.h: Include stdlib.h.
1036 * defs.h: Do not include stdlib.h.
1037 * addrmap.c: Likewise.
1038 * bcache.c: Likewise.
1039 * common/buffer.c: Likewise.
1040 * common/common-utils.c: Likewise.
1041 * cp-name-parser.y: Likewise.
1042 * go32-nat.c: Likewise.
1043 * mn10300-linux-tdep.c: Likewise.
1044 * nat/linux-osdata.c: Likewise.
1045 * tui/tui.c: Likewise.
1046 * windows-nat.c: Likewise.
1047
d02f550d
GB
10482014-08-07 Gary Benson <gbenson@redhat.com>
1049
1050 * common/common-defs.h: Include stdio.h.
1051 * defs.h: Do not include stdio.h.
1052 * ada-lang.c: Likewise.
1053 * common/buffer.c: Likewise.
1054 * common/common-utils.c: Likewise.
1055 * cp-name-parser.y: Likewise.
1056 * gnu-nat.c: Likewise.
1057 * go32-nat.c: Likewise.
1058 * i386gnu-nat.c: Likewise.
1059 * proc-api.c: Likewise.
1060 * proc-events.c: Likewise.
1061 * proc-flags.c: Likewise.
1062 * proc-why.c: Likewise.
1063 * python/python-internal.h: Likewise.
1064 * target-memory.c: Likewise.
1065 * tui/tui-io.c: Likewise.
1066 * tui/tui.c: Likewise.
1067
b6d7a4bf
SM
10682014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1069
1070 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1071 (scan_dyntag_auxv): Same.
1072
af19829b
YQ
10732014-08-06 Yao Qi <yao@codesourcery.com>
1074
1075 * amd64-linux-nat.c: Remove duplicated include
1076 "x86-linux-nat.h".
1077 * i386-linux-nat.c: Likewise.
1078
8e07a239
YQ
10792014-08-06 Yao Qi <yao@codesourcery.com>
1080
1081 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1082 operand" with "Special opcode" in comments.
1083
7bfe8241
GB
10842014-08-05 Gary Benson <gbenson@redhat.com>
1085
1086 * interps.c (initialize_interps): Remove prototype.
1087 (interpreter_initialized): Remove static global.
1088 (interp_add): Do not call initialize_interps.
1089 (initialize_interps): Remove function.
1090
d6c95504
GB
10912014-08-05 Gary Benson <gbenson@redhat.com>
1092
1093 * utils.c (vwarning): Remove spurious va_end.
1094
241fd515
AM
10952014-08-05 Alan Modra <amodra@gmail.com>
1096
1097 * charset.c (convert_between_encodings): Cast result of obstack_base.
1098 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1099 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1100 (read_unwind_info): Use size_t for some locals.
1101 * jit.c (finalize_symtab): Likewise.
1102 * utils.c (hashtab_obstack_allocate): Likewise.
1103 * symmisc.c (print_objfile_statistics): Update format strings.
1104
dc304a94
JK
11052014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1106
1107 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1108 (Changes in GDB 7.8): ... here.
1109
3cecbbbe
TT
11102014-08-04 Tom Tromey <tromey@redhat.com>
1111
1112 * target.c (set_targetdebug): New function.
1113 (initialize_targets): Pass set_targetdebug when creating "set
1114 debug target".
1115
6908c509
JB
11162014-08-01 Joel Brobecker <brobecker@adacore.com>
1117
1118 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1119 if detecting a variable-sized field that is not the last field.
1120 Fix struct type length computation.
1121
53e8f97d
JB
11222014-08-01 Joel Brobecker <brobecker@adacore.com>
1123
1124 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1125 Add debug trace.
1126
e068c55d
JB
11272014-08-01 Joel Brobecker <brobecker@adacore.com>
1128
1129 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1130 Remove "+ 8" offset in computation of CHAIN_VMA.
1131
4d4ca2a1
DE
11322014-07-31 Doug Evans <dje@google.com>
1133
1134 * inflow.c (child_terminal_inferior): Add comment.
1135 (child_terminal_ours_for_output): Add comment.
1136 (child_terminal_ours): Add comment.
1137 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1138 (linux_nat_terminal_ours): Add comment.
1139
462f517e
GB
11402014-07-31 Gary Benson <gbenson@redhat.com>
1141
1142 * common/btrace-common.h: Do not include defs.h or server.h.
1143 * nat/mips-linux-watch.h: Likewise.
1144 * gdb-dlfcn.h: Do not include defs.h.
1145 * tracefile.h: Likewise.
1146
74228e77
RM
11472014-07-30 Roland McGrath <mcgrathr@google.com>
1148
1149 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1150
014f9477
TT
11512014-07-30 Tom Tromey <tromey@redhat.com>
1152
1153 * bsd-kvm.c (bsd_kvm_open): Constify.
1154 * corelow.c (core_open): Constify.
1155 * ctf.c (ctf_open): Constify.
1156 * dbug-rom.c (dbug_open): Constify.
1157 * exec.c (exec_open): Constify.
1158 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1159 * microblaze-rom.c (picobug_open): Constify.
1160 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1161 Constify.
1162 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1163 * record-btrace.c (record_btrace_open): Constify.
1164 * record-full.c (record_full_core_open_1, record_full_open_1)
1165 (record_full_open): Constify.
1166 * remote-m32r-sdi.c (m32r_open): Constify.
1167 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1168 (rockhopper_open, lsi_open): Constify.
1169 * remote-sim.c (gdbsim_open): Constify.
1170 * remote.c (remote_open, extended_remote_open, remote_open_1):
1171 Constify.
1172 * target.h (struct target_ops) <to_open>: Make "arg" const.
1173 * tracefile-tfile.c (tfile_open): Constify.
1174
e799154c
TT
11752014-07-30 Tom Tromey <tromey@redhat.com>
1176
1177 * breakpoint.c (map_breakpoint_numbers): Update.
1178 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1179 (get_number_const): New function.
1180 (get_number): Rewrite using get_number_const.
1181 (init_number_or_range): Make "string" const.
1182 (number_is_in_list): Make "list" const.
1183 * cli/cli-utils.h (get_number_const): Declare.
1184 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1185 (init_number_or_range, number_is_in_list): Update.
1186 * printcmd.c (map_display_numbers): Update.
1187 * value.c (value_from_history_ref): Constify.
1188 * value.h (value_from_history_ref): Update.
1189
5f08566b
TT
11902014-07-30 Tom Tromey <tromey@redhat.com>
1191
1192 * corefile.c (hook_type, call_extra_exec_file_hooks)
1193 (specify_exec_file_hook): Constify.
1194 * exec.c (exec_file_attach): Make "filename" const.
1195 * gdbcore.h (deprecated_exec_file_display_hook)
1196 (specify_exec_file_hook, exec_file_attach): Constify.
1197 * main.c (captured_main): Use catch_command_errors_const.
1198
8981c758
TT
11992014-07-30 Tom Tromey <tromey@redhat.com>
1200
1201 * target.c (open_target): New function.
1202 (add_target_with_completer, add_deprecated_target_alias): Use
1203 set_cmd_sfunc, set_cmd_context.
1204 (debug_to_open): Remove.
1205 (setup_target_debug): Update.
1206
a1c7835a
YQ
12072014-07-30 Yao Qi <yao@codesourcery.com>
1208
1209 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1210 comments.
1211 * parse.c (exp_iterate): Update comments.
1212
976411d6
GB
12132014-07-30 Gary Benson <gbenson@redhat.com>
1214
1215 * common/common-defs.h: New file.
1216 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1217 * defs.h: Include common-defs.h.
1218 Do not include config.h or build-gnulib/config.h.
1219
5d4848a4
GB
12202014-07-30 Gary Benson <gbenson@redhat.com>
1221
1222 * common/common-utils.h: Do not include config.h.
1223 * nat/linux-btrace.h: Likewise.
1224
d41f6d8e
GB
12252014-07-30 Gary Benson <gbenson@redhat.com>
1226
1227 * btrace.c: Include defs.h.
1228 * common/ptid.c: Include defs.h or server.h as appropriate.
1229 * nat/mips-linux-watch.c: Likewise.
1230
84202f9c
TT
12312014-07-29 Tom Tromey <tromey@redhat.com>
1232
1233 * target.c (target_is_pushed): Simplify.
1234
2530441c
JB
12352014-07-29 Joel Brobecker <brobecker@adacore.com>
1236
1237 GDB 7.8 released.
1238
7e09a223
YQ
12392014-07-29 Yao Qi <yao@codesourcery.com>
1240
1241 PR gdb/17206
1242 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1243
7ebdbe92
DE
12442014-07-28 Doug Evans <xdje42@gmail.com>
1245
1246 PR guile/17203
1247 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1248 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1249 parameters.
1250
f347ffc9
WN
12512014-07-28 Will Newton <will.newton@linaro.org>
1252
1253 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1254 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1255 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1256 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1257 (THUMB2_EABI_SYSCALL): Likewise.
1258 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1259 struct tramp_frame.
1260 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1261 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1262
37c5f1f7
DE
12632014-07-27 Doug Evans <xdje42@gmail.com>
1264
1265 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1266
0c3abbc7
DE
12672014-07-27 Doug Evans <xdje42@gmail.com>
1268
1269 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1270
e76c5d17
DE
12712014-07-26 Ludovic Courtès <ludo@gnu.org>
1272 Doug Evans <xdje42@gmail.com>
1273
1274 PR guile/17146
1275 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1276 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1277 * configure.ac: Try to use guild to compile an scm file, if it fails
1278 then disable guile support.
1279 * configure: Regenerate.
1280 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1281 GUILE_FILE_LIST.
1282 (GUILE_COMPILED_FILES): New variable.
1283 (GUILE_FILES) Update.
1284 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1285 (stamp-guile): Compile scm files.
1286 * guile/guile.c (boot_guile_support): New function.
1287 (standard_throw_args_p): New function.
1288 (print_standard_throw_error, print_throw_error): New functions.
1289 (handle_boot_error): New function.
1290 (initialize_scheme_side): Rewrite to call boot_guile_support.
1291 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1292 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1293
186fcde0
DE
12942014-07-26 Ludovic Courtès <ludo@gnu.org>
1295 Doug Evans <xdje42@gmail.com>
1296
1297 PR guile/17146
1298 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1299 * guile/lib/gdb/support.scm: New file.
1300 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1301 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1302 All uses updated.
1303 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1304 All uses updated.
1305 (%assert-type): Ditto, and renamed to assert-type.
1306 (%exception-print-style): Delete.
1307
4df42755
DE
13082014-07-26 Doug Evans <xdje42@gmail.com>
1309
1310 PR build/17105
1311 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1312 * configure: Regenerate.
1313 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1314 PYTHON_FILES.
1315 (PYTHON_FILES): New variable.
1316 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1317 (GUILE_FILES): New variable.
1318 (stamp-python, install-python, uninstall-python): Handle empty
1319 file list.
1320 (stamp-guile, install-guile, uninstall-guile): Ditto.
1321
ee7333ae
DE
13222014-07-26 Doug Evans <xdje42@gmail.com>
1323
1324 PR guile/17177
1325 * guile/lib/gdb.scm (pretty-printers): Export.
1326 (set-pretty-printers!): Export.
1327 * guile/lib/gdb/printing.scm (gdb module): Update.
1328 (prepend-pretty-printer!, append-pretty-printer!): Update.
1329 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1330 (pretty_printer_list_var): Delete.
1331 (pretty_printer_list): New static global.
1332 (gdbscm_pretty_printers): New function.
1333 (gdbscm_set_pretty_printers_x): New function.
1334 (ppscm_find_pretty_printer_from_gdb): Update.
1335 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1336 (gdbscm_initialize_pretty_printers): Update.
1337
74edf516
DE
13382014-07-26 Doug Evans <xdje42@gmail.com>
1339
1340 PR 17185
1341 * configure.ac: Add check for header gc/gc.h.
1342 Add check for function setenv.
1343 * configure: Regenerate.
1344 * config.in: Regenerate.
1345 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1346
d54398a7
MR
13472014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1348
1349 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1350 variation in gdbarch matching.
1351
ab16fce8
TT
13522014-07-25 Tom Tromey <tromey@redhat.com>
1353
1354 * exec.c (using_exec_ops): Remove.
1355 (exec_close_1): Update. Remove extraneous block, reindent.
1356 (add_target_sections): Use target_is_pushed.
1357
88056fbb
PA
13582014-07-25 Pedro Alves <palves@redhat.com>
1359
1360 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1361 * monitor.c (monitor_create_inferior): Likewise.
1362 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1363 * remote-sim.c (gdbsim_create_inferior): Likewise.
1364 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1365 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1366 * windows-nat.c (do_initial_windows_stuff): Likewise.
1367
70509625
PA
13682014-07-25 Pedro Alves <palves@redhat.com>
1369
1370 * NEWS: Mention signal passing and "signal" command changes.
1371 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1372 comment.
1373 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1374 call.
1375 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1376 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1377 (jump_command): Adjust clear_proceed_status call.
1378 (signal_command): Warn if other thread that are resumed have
1379 signals that will be delivered. Adjust clear_proceed_status call.
1380 (until_next_command, finish_command)
1381 (proceed_after_attach_callback, attach_command_post_wait)
1382 (attach_command): Adjust clear_proceed_status call.
1383 * infrun.c (proceed_after_vfork_done): Likewise.
1384 (proceed_after_attach_callback): Adjust comment.
1385 (clear_proceed_status_thread): Clear stop_signal if not in pass
1386 state.
1387 (clear_proceed_status_callback): Delete.
1388 (clear_proceed_status): New 'step' parameter. Only clear the
1389 proceed status of threads the command being prepared is about to
1390 resume.
1391 (proceed): If passed in an explicit signal, override stop_signal
1392 with it. Don't pass the last stop signal to the thread we're
1393 resuming.
1394 (init_wait_for_inferior): Adjust clear_proceed_status call.
1395 (switch_back_to_stepped_thread): Clear the signal if it should not
1396 be passed.
1397 * infrun.h (clear_proceed_status): New 'step' parameter.
1398 (user_visible_resume_ptid): Add comment.
1399 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1400 signal is in pass state.
1401 * remote.c (append_pending_thread_resumptions): Likewise.
1402 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1403
d8be2939
TT
14042014-07-25 Tom Tromey <tromey@redhat.com>
1405
1406 * target.h (target_stopped_data_address)
1407 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1408 parentheses.
1409
7d0d9d2b
PL
14102014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1411
1412 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1413 comments.
1414 (avr_pointer_to_address): Likewise.
1415
e9e7f724
TT
14162014-07-24 Tom Tromey <tromey@redhat.com>
1417
1418 * monitor.c (compile_pattern): Update.
1419 * target.h (struct target_ops) <to_shortname, to_longname,
1420 to_doc>: Now const.
1421
1947513d
TT
14222014-07-24 Tom Tromey <tromey@redhat.com>
1423
1424 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1425 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1426 (add_info_alias, add_com): Make "doc" const.
1427 (print_doc_line): Make "str" const.
1428 (delete_cmd): Update.
1429 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1430 (print_doc_line): Update.
1431 * cli/cli-script.c (document_command): Update.
1432 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1433 (add_com, add_info, add_info_alias): Update.
1434 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1435 * python/py-cmd.c (cmdpy_destroyer): Update.
1436
64e61d29
TT
14372014-07-24 Tom Tromey <tromey@redhat.com>
1438
1439 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1440 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1441 (help_cmd_list): Constify.
1442 (lookup_cmd): Update.
1443 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1444 const.
1445 (help_cmd_list, apropos_cmd): Update.
1446 * cli/cli-script.c (show_user): Update.
1447 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1448 * cli/cli-setshow.h (cmd_show_list): Update.
1449 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1450 (cmd_show_list): Update.
1451 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1452 * python/py-cmd.c (cmdpy_destroyer): Update.
1453
429e55ea
TT
14542014-07-24 Tom Tromey <tromey@redhat.com>
1455
1456 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1457 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1458 const.
1459 * command.h (deprecate_cmd): Update.
1460 * maint.c (maintenance_do_deprecate): Add casts.
1461
64669f3b
TT
14622014-07-24 Tom Tromey <tromey@redhat.com>
1463
1464 * cli/cli-decode.c (help_cmd): Make parameter "const".
1465 * cli/cli-decode.h (help_cmd): Update.
1466
d3d3328b
TT
14672014-07-24 Tom Tromey <tromey@redhat.com>
1468
1469 * stack.c (up_silently_base, down_silently_base): Make argument
1470 const.
1471
414842dc
TT
14722014-07-24 Tom Tromey <tromey@redhat.com>
1473
1474 * solib.c (solib_add): Make "pattern" const.
1475 * solib.h (solib_add): Update.
1476
baa336ce
TT
14772014-07-24 Tom Tromey <tromey@redhat.com>
1478
1479 * remote.c (remote_serial_open, print_packet, putpkt)
1480 (putpkt_binary): Constify.
1481 * remote.h (putpkt): Update.
1482
5a19e2d0
TT
14832014-07-24 Tom Tromey <tromey@redhat.com>
1484
1485 * monitor.c (monitor_open): Make "args" const.
1486 * monitor.h (monitor_open): Update.
1487
fc4baa5e
TT
14882014-07-24 Tom Tromey <tromey@redhat.com>
1489
1490 * maint.c (match_bfd_flags): Make "string" const.
1491 (print_bfd_section_info): Remove casts.
1492 (print_objfile_section_info): Make "string" const.
1493
0d5f0dbe
TT
14942014-07-24 Tom Tromey <tromey@redhat.com>
1495
1496 * inf-child.c (inf_child_open_target): Make "arg" const.
1497 * inf-child.h (inf_child_open_target): Update.
1498
41c77899
TT
14992014-07-24 Tom Tromey <tromey@redhat.com>
1500
1501 * environ.c (unset_in_environ): Make "var" const.
1502 * environ.h (unset_in_environ): Update.
1503
93db0d79
TT
15042014-07-24 Tom Tromey <tromey@redhat.com>
1505
1506 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1507 Make "cmd" const.
1508 (scan_filename_with_cleanup): Likewise.
1509 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1510 Make arguments const.
1511 (restore_command): Update.
1512
36d6eb95
PA
15132014-07-24 Pedro Alves <palves@redhat.com>
1514
1515 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1516
8009206a
TT
15172014-07-24 Tom Tromey <tromey@redhat.com>
1518 Gary Benson <gbenson@redhat.com>
1519
1520 * nat/linux-ptrace.c (additional_flags): New global.
1521 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1522 additional_flags; don't check GDBSERVER.
1523 (linux_ptrace_set_additional_flags): New function.
1524 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1525 Declare.
1526 * linux-nat.c (_initialize_linux_nat): Call
1527 linux_ptrace_set_additional_flags.
1528
a7068b60
TT
15292014-07-24 Tom Tromey <tromey@redhat.com>
1530
1531 * make-target-delegates (munge_type, write_debugmethod): New
1532 functions.
1533 (debug_names): New global.
1534 ($TARGET_DEBUG_PRINTER): New global.
1535 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1536 name.
1537 Write debug methods. Generate init_debug_target.
1538 * target-debug.h: New file.
1539 * target-delegates.c: Rebuild.
1540 * target.c: Include target-debug.h.
1541 (debug_target): Hoist definition.
1542 (target_kill, target_get_section_table, target_memory_map)
1543 (target_flash_erase, target_flash_done, target_detach)
1544 (target_disconnect, target_wait, target_resume)
1545 (target_pass_signals, target_program_signals, target_follow_fork)
1546 (target_mourn_inferior, target_search_memory)
1547 (target_thread_address_space, target_close)
1548 (target_find_new_threads, target_core_of_thread)
1549 (target_verify_memory, target_insert_mask_watchpoint)
1550 (target_remove_mask_watchpoint): Remove targetdebug code.
1551 (debug_to_post_attach, debug_to_prepare_to_store)
1552 (debug_to_files_info, debug_to_insert_breakpoint)
1553 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1554 (debug_to_region_ok_for_hw_watchpoint)
1555 (debug_to_can_accel_watchpoint_condition)
1556 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1557 (debug_to_watchpoint_addr_within_range)
1558 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1559 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1560 (debug_to_terminal_init, debug_to_terminal_inferior)
1561 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1562 (debug_to_terminal_save_ours, debug_to_terminal_info)
1563 (debug_to_load, debug_to_post_startup_inferior)
1564 (debug_to_insert_fork_catchpoint)
1565 (debug_to_remove_fork_catchpoint)
1566 (debug_to_insert_vfork_catchpoint)
1567 (debug_to_remove_vfork_catchpoint)
1568 (debug_to_insert_exec_catchpoint)
1569 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1570 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1571 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1572 (setup_target_debug): Call init_debug_target.
1573 * target.h (TARGET_DEBUG_PRINTER): New macro.
1574 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1575 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1576
2c51604d
GB
15772014-07-24 Gary Benson <gbenson@redhat.com>
1578
1579 * exceptions.h (throw_vfatal): Renamed to...
1580 (throw_vquit): New declaration.
1581 (throw_quit): Likewise.
1582 * exceptions.c (throw_vfatal): Renamed to...
1583 (throw_vquit): New function.
1584 (throw_quit): Likewise.
1585 (throw_error): Call throw_verror rather than throw_it.
1586 * utils.h (vfatal): Removed.
1587 (fatal): Likewise.
1588 * utils.c (vfatal): Removed.
1589 (fatal): Likewise.
1590 (internal_verror): Replaced call to fatal with call to throw_quit.
1591 (quit): Replaced calls to fatal with calls to throw_quit.
1592
34211963
ME
15932014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1594
1595 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1596 target_read_code.
1597
a52b4d3e
ME
15982014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1599
1600 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1601 less than zero in conditional expression.
1602
a8bdc56b
TT
16032014-07-23 Tom Tromey <tromey@redhat.com>
1604
1605 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1606 ($INTRO_PART): Don't match whitespace.
1607 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1608 argument matching.
1609 ($METHOD): Add $METHOD_TRAILER.
1610 (trim): Rewrite.
1611 (scan_target_h): New sub.
1612 Change main loop not to collect state.
1613 * target-delegates.c: Rebuild.
1614
91b52240
GB
16152014-07-23 Gary Benson <gbenson@redhat.com>
1616
1617 * cp-support.c (gdb_demangle): Fix build on systems without
1618 sigaltstack.
1619
45326f6f
JK
16202014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1621
1622 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1623 for reference entry value target data value.
1624
e214cf6c
JK
16252014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1626
1627 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1628 value_available_contents_eq.
1629
bddbbedd
PA
16302014-07-22 Pedro Alves <palves@redhat.com>
1631
1632 * value.c (allocate_optimized_out_value): Don't mark value as
1633 non-lazy.
1634
45c71484
JW
16352014-07-22 Jiong Wang <jiong.wang@arm.com>
1636
1637 * MAINTAINERS (Write After Approval): Update my email address.
1638
9597b22a
DE
16392014-07-20 Doug Evans <dje@google.com>
1640
1641 PR server/17147
1642 * remote.c (putpkt_binary): Add text to error message.
1643
91101fe5
YQ
16442014-07-20 Yao Qi <yao@codesourcery.com>
1645
1646 * eval.c: Remove "Chill" from comments.
1647 * gdbtypes.h: Likewise.
1648 * symtab.h: Likewise.
1649
c9402c95
YQ
16502014-07-20 Yao Qi <yao@codesourcery.com>
1651
1652 * std-operator.def: Update comments to TERNOP_SLICE.
1653
ae8fddda
YQ
16542014-07-20 Yao Qi <yao@codesourcery.com>
1655
1656 * std-operator.def: Remove BINOP_RANGE.
1657 * breakpoint.c (watchpoint_exp_is_const): Update.
1658 * expprint.c (dump_subexp_body_standard): Likewise.
1659 * eval.c (init_array_element): Remove dead code.
1660 (evaluate_subexp_standard): Likewise.
1661
9c816640
YQ
16622014-07-20 Yao Qi <yao@codesourcery.com>
1663
1664 * std-operator.def: Remove BINOP_IN.
1665 * breakpoint.c (watchpoint_exp_is_const): Update.
1666 * eval.c (evaluate_subexp_standard): Likewise.
1667 * expprint.c (dump_subexp_body_standard): Likewise.
1668
164224e9
ME
16692014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1670
1671 * microblaze-tdep.c (microblaze_register_names): Add
1672 the rshr and rslr register names.
1673 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1674 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1675 Use of tdesc_numbered_register. Use of
1676 microblaze_register_g_packet_guesses. Use of
1677 tdesc_use_registers. Use of set_gdbarch_register_type.
1678 (microblaze_register_g_packet_guesses): New.
1679 * microblaze-tdep.h (microblaze_reg_num): Add
1680 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1681 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1682 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1683 * features/microblaze-core.xml: New file.
1684 * features/microblaze-stack-protect.xml: New file.
1685 * features/microblaze-with-stack-protect.c: New file.
1686 * features/microblaze-with-stack-protect.xml: New file.
1687 * features/microblaze.xml: New file.
1688 * features/microblaze.c: New file.
1689 * features/Makefile (microblaze-with-stack-protect): Add
1690 microblaze-with-stack-protect microblaze and microblaze-expedite.
1691 * regformats/microblaze-with-stack-protect.dat: New file.
1692 * regformats/microblaze.dat: New file.
1693 * doc/gdb.texinfo (MicroBlaze Features): Added.
1694
e8b2341c
TT
16952014-07-18 Tom Tromey <tromey@redhat.com>
1696
1697 * exec.c (exec_ops): Now static.
1698 * exec.h (exec_ops): Don't declare.
1699
44e89118
TT
17002014-07-18 Tom Tromey <tromey@redhat.com>
1701
1702 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1703 to find_target_beneath.
1704 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1705 find_target_beneath.
1706 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1707
b0ed115f
TT
17082014-07-18 Tom Tromey <tromey@redhat.com>
1709
1710 PR gdb/17130:
1711 * utils.c (quit): Use target_supports_terminal_ours.
1712 * target.h (target_supports_terminal_ours): Declare.
1713 * target.c (target_supports_delete_record): Don't check
1714 to_delete_record against NULL.
1715 (target_supports_terminal_ours): New function.
1716
e75fdfca
TT
17172014-07-18 Tom Tromey <tromey@redhat.com>
1718
1719 PR gdb/17130:
1720 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1721 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1722 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1723 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1724 * windows-nat.c (windows_xfer_partial): Always delegate.
1725 * record-btrace.c (record_btrace_xfer_partial): Simplify
1726 delegation.
1727 (record_btrace_fetch_registers, record_btrace_store_registers)
1728 (record_btrace_prepare_to_store, record_btrace_resume)
1729 (record_btrace_wait, record_btrace_find_new_threads)
1730 (record_btrace_thread_alive): Likewise.
1731 * procfs.c (procfs_xfer_partial): Always delegate.
1732 * corelow.c (core_xfer_partial): Always delegate.
1733 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1734
83814951
TT
17352014-07-18 Tom Tromey <tromey@redhat.com>
1736
1737 * exec.c (exec_make_note_section): Move earlier.
1738
b8b8facf
DE
17392014-07-17 Doug Evans <dje@google.com>
1740
74b49205 1741 PR gdb/17170
b8b8facf
DE
1742 * maint.c (count_symtabs_and_blocks): Handle NULL
1743 current_program_space.
1744 (report_command_stats): Check global enabled flag in addition to
1745 recorded enabled flag.
1746 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1747
69ff6be5
PA
17482014-07-16 Pedro Alves <palves@redhat.com>
1749
1750 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1751
252db1b5
TT
17522014-07-16 Tom Tromey <tromey@redhat.com>
1753
1754 * target.h (struct target_ops) <to_delete_record>: Reformat
1755 comment.
1756
a432721e
TT
17572014-07-16 Tom Tromey <tromey@redhat.com>
1758
1759 * target-delegates.c: Rebuild.
1760
487d9753
PL
17612014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1762
1763 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1764 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1765 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1766 (avr_pointer_to_address): Likewise.
1767 (avr_address_class_type_flags): New function.
1768 (avr_address_class_type_flags_to_name): Likewise.
1769 (avr_address_class_name_to_type_flags): Likewise.
1770 (avr_gdbarch_init): Set address_class_type_flags,
1771 address_class_type_flags_to_name and
1772 address_class_name_to_type_flags.
1773
57745c90
PA
17742014-07-15 Pedro Alves <palves@redhat.com>
1775
1776 * linux-nat.c (kill_callback): Save errno and work with saved
1777 copy.
1778
2d40be18
SM
17792014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1780
1781 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1782
572f6555
EBM
17832014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1784
1785 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1786 breakpoint support correctly.
1787
cc1c52ad
PA
17882014-07-14 Pedro Alves <palves@redhat.com>
1789
1790 * utils.c (prompt_for_continue): Call target_terminal_ours.
1791
1e973570
PA
17922014-07-14 Pedro Alves <palves@redhat.com>
1793
1794 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1795 catch_errors. Don't re-enable stdin or notify observers where,
1796 and rethrow error.
1797 (fetch_inferior_event_wrapper): Delete.
1798
93d6eb10
PA
17992014-07-14 Pedro Alves <palves@redhat.com>
1800
1801 PR gdb/17072
1802 * top.c: Include "inf-loop.h".
1803 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1804 field.
1805 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1806 was async before.
1807 (gdb_readline_wrapper): Store whether the target is async, and
1808 make it sync.
1809
0017922d
PA
18102014-07-14 Pedro Alves <palves@redhat.com>
1811
1812 PR gdb/17072
1813 * top.c (gdb_readline_wrapper_line): Tweak comment.
1814 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1815 the input handler callback.
1816
94696ad3
PA
18172014-07-14 Pedro Alves <palves@redhat.com>
1818
1819 PR gdb/17072
1820 * main.c: Include event-top.h.
1821 (handle_command_errors): New function.
1822 (catch_command_errors, catch_command_errors_const): Use it.
1823
9d1e69a2
PA
18242014-07-14 Pedro Alves <palves@redhat.com>
1825
1826 * exceptions.c (catch_command_errors, catch_command_errors_const):
1827 Moved to main.c.
1828 * exceptions.h (catch_command_errors_ftype)
1829 (catch_command_errors_const_ftype): Moved to main.c.
1830 (catch_command_errors, catch_command_errors_const): Delete
1831 declarations.
1832 * main.c (catch_command_errors_ftype)
1833 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1834 (catch_command_errors, catch_command_errors_const)): Moved here
1835 from exceptions.c and make static.
1836
feefc97b
PA
18372014-07-14 Pedro Alves <palves@redhat.com>
1838
1839 * exceptions.c (print_any_exception): Delete.
1840 (catch_exceptions_with_msg): Use exception_print instead of
1841 print_any_exception.
1842 (catch_errors): Use exception_fprintf instead of
1843 print_any_exception.
1844 (catch_command_errors, catch_command_errors_const): Use
1845 exception_print instead of print_any_exception.
1846
c933f875
PA
18472014-07-14 Pedro Alves <palves@redhat.com>
1848
1849 * infcall.c (run_inferior_call): Set 'sync_execution' while
1850 running the inferior call.
1851
feb6f816
PA
18522014-07-14 Pedro Alves <palves@redhat.com>
1853
1854 * value.c (value_contents_equal): Delete function.
1855 * value.h (value_contents_equal): Delete declaration.
1856
d98b7a16
TT
18572014-07-14 Tom Tromey <tromey@redhat.com>
1858
1859 PR exp/17106:
1860 * gdbtypes.c (is_dynamic_type_internal): New function, from
1861 is_dynamic_type.
1862 (is_dynamic_type): Rewrite.
1863 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1864 (resolve_dynamic_struct): Likewise.
1865 (resolve_dynamic_type_internal): New function, from
1866 resolve_dynamic_type.
1867 (resolve_dynamic_type): Rewrite.
1868
548740d6
TT
18692014-07-14 Tom Tromey <tromey@redhat.com>
1870
1871 * target.c (target_require_runnable): Also check record_stratum.
1872 Update comment.
1873
808f7ab1
YQ
18742014-07-11 Yao Qi <yao@codesourcery.com>
1875
1876 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1877 thumb_instruction_restores_sp return true.
1878
540314bd
YQ
18792014-07-11 Yao Qi <yao@codesourcery.com>
1880
1881 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1882 (thumb_in_function_epilogue_p): Call
1883 thumb_instruction_restores_sp.
1884
1db01f22
YQ
18852014-07-11 Yao Qi <yao@codesourcery.com>
1886
1887 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1888 'add sp, #imm'.
1889 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1890
3116063b
GB
18912014-07-11 Gary Benson <gbenson@redhat.com>
1892
1893 * amd64-linux-nat.c (gdbcore.h): Remove include.
1894 (regset.h): Likewise.
1895 (nat/linux-btrace.h): Likewise.
1896 (btrace.h): Likewise.
1897 (gdb_assert.h): Likewise.
1898 (string.h): Likewise.
1899 (sys/uio.h): Likewise.
1900 (sys/debugreg.h): Likewise.
1901 (sys/syscall.h): Likewise.
1902 (sys/procfs.h): Likewise.
1903 (sys/user.h): Likewise.
1904 (asm/ptrace.h): Likewise.
1905 (i386-nat.h): Likewise.
1906 * i386-linux-nat.c (i386-nat.h): Likewise.
1907 (regset.h): Likewise.
1908 (target.h): Likewise.
1909 (linux-nat.h): Likewise.
1910 (nat/linux-btrace.h): Likewise.
1911 (btrace.h): Likewise.
1912 (gdb_assert.h): Likewise.
1913 (string.h): Likewise.
1914 (sys/uio.h): Likewise.
1915 (sys/user.h): Likewise.
1916 (sys/procfs.h): Likewise.
1917 (sys/reg.h): Likewise.
1918 (sys/debugreg.h): Likewise.
1919 (ORIG_EAX): Remove definition.
1920
040baaf6
GB
19212014-07-11 Gary Benson <gbenson@redhat.com>
1922
1923 * i386-linux-nat.h: New file.
1924 * x86-linux-nat.h: Likewise.
1925 * x86-linux-nat.c: Likewise.
1926 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1927 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1928 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1929 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1930 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1931 (PTRACE_SETREGSET): Likewise.
1932 (arch_lwp_info): Now in x86-linux-nat.c.
1933 (have_ptrace_getregset): Now in x86-linux-nat.h.
1934 (x86_linux_dr_get): Now in x86-linux-nat.c.
1935 (x86_linux_dr_set): Likewise.
1936 (x86_linux_dr_get_addr): Likewise.
1937 (x86_linux_dr_get_control): Likewise.
1938 (x86_linux_dr_get_status): Likewise.
1939 (update_debug_registers_callback): Likewise.
1940 (x86_linux_dr_set_control): Likewise.
1941 (x86_linux_dr_set_addr): Likewise.
1942 (x86_linux_prepare_to_resume): Likewise.
1943 (x86_linux_new_thread): Likewise.
1944 (x86_linux_new_fork): Likewise.
1945 (x86_linux_get_thread_area): Likewise.
1946 (super_post_startup_inferior): Likewise.
1947 (x86_linux_child_post_startup_inferior): Likewise.
1948 (AMD64_LINUX_USER64_CS): Likewise.
1949 (AMD64_LINUX_X32_DS): Likewise.
1950 (x86_linux_read_description): Likewise.
1951 (x86_linux_enable_btrace): Likewise.
1952 (x86_linux_disable_btrace): Likewise.
1953 (x86_linux_teardown_btrace): Likewise.
1954 (x86_linux_read_btrace): Likewise.
1955 (x86_linux_create_target): Likewise.
1956 (x86_linux_add_target): Likewise.
1957 * i386-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
1aa7e42c
GB
19862014-07-11 Gary Benson <gbenson@redhat.com>
1987
1988 * amd64-linux-nat.c: Comment and whitespace changes.
1989 * i386-linux-nat.c: Comment and whitespace changes.
1990
c1e246a0
GB
19912014-07-11 Gary Benson <gbenson@redhat.com>
1992
1993 * amd64-linux-nat.c (x86_linux_create_target): New function.
1994 (x86_linux_add_target): Likewise.
1995 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1996 * i386-linux-nat.c (x86_linux_create_target): New function.
1997 (x86_linux_add_target): Likewise.
1998 (_initialize_i386_linux_nat): Delegate to the above new functions.
1999
8c420b8d
GB
20002014-07-11 Gary Benson <gbenson@redhat.com>
2001
2002 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2003 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2004 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2005 (ps_get_thread_area): Delegate to the above.
2006
cb1da100
GB
20072014-07-11 Gary Benson <gbenson@redhat.com>
2008
2009 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2010 x86_linux_read_description. All uses updated. amd64-specific
2011 code conditionalized. Conditionalized i386-specific code added.
2012 Redundant cast removed.
2013 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2014 x86_linux_read_description. All uses updated. i386-specific
2015 code conditionalized. Conditionalized amd64-specific code added.
2016 One sizeof replaced with the actual type it is describing.
2017
2acf3cd0
GB
20182014-07-11 Gary Benson <gbenson@redhat.com>
2019
2020 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2021 x86_linux_dr_get. All uses updated.
2022 (amd64_linux_dr_set): Renamed to
2023 x86_linux_dr_set. All uses updated.
2024 (amd64_linux_dr_get_addr): Renamed to
2025 x86_linux_dr_get_addr. All uses updated.
2026 (amd64_linux_dr_get_control): Renamed to
2027 x86_linux_dr_get_control. All uses updated.
2028 (amd64_linux_dr_get_status): Renamed to
2029 x86_linux_dr_get_status. All uses updated.
2030 (amd64_linux_dr_set_control): Renamed to
2031 x86_linux_dr_set_control. All uses updated.
2032 (amd64_linux_dr_set_addr): Renamed to
2033 x86_linux_dr_set_addr. All uses updated.
2034 (amd64_linux_prepare_to_resume): Renamed to
2035 x86_linux_prepare_to_resume. All uses updated.
2036 (amd64_linux_new_thread): Renamed to
2037 x86_linux_new_thread. All uses updated.
2038 (amd64_linux_new_fork): Renamed to
2039 x86_linux_new_fork. All uses updated.
2040 (amd64_linux_child_post_startup_inferior): Renamed to
2041 x86_linux_child_post_startup_inferior. All uses updated.
2042 (amd64_linux_enable_btrace): Renamed to
2043 x86_linux_enable_btrace. All uses updated.
2044 (amd64_linux_disable_btrace): Renamed to
2045 x86_linux_disable_btrace. All uses updated.
2046 (amd64_linux_teardown_btrace): Renamed to
2047 x86_linux_teardown_btrace. All uses updated.
2048 (amd64_linux_read_btrace): Renamed to
2049 x86_linux_read_btrace. All uses updated.
2050 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2051 x86_linux_dr_get. All uses updated.
2052 (i386_linux_dr_set): Renamed to
2053 x86_linux_dr_set. All uses updated.
2054 (i386_linux_dr_get_addr): Renamed to
2055 x86_linux_dr_get_addr. All uses updated.
2056 (i386_linux_dr_get_control): Renamed to
2057 x86_linux_dr_get_control. All uses updated.
2058 (i386_linux_dr_get_status): Renamed to
2059 x86_linux_dr_get_status. All uses updated.
2060 (i386_linux_dr_set_control): Renamed to
2061 x86_linux_dr_set_control. All uses updated.
2062 (i386_linux_dr_set_addr): Renamed to
2063 x86_linux_dr_set_addr. All uses updated.
2064 (i386_linux_prepare_to_resume): Renamed to
2065 x86_linux_prepare_to_resume. All uses updated.
2066 (i386_linux_new_thread): Renamed to
2067 x86_linux_new_thread. All uses updated.
2068 (i386_linux_new_fork): Renamed to
2069 x86_linux_new_fork. All uses updated.
2070 (i386_linux_child_post_startup_inferior): Renamed to
2071 x86_linux_child_post_startup_inferior. All uses updated.
2072 (i386_linux_enable_btrace): Renamed to
2073 x86_linux_enable_btrace. All uses updated.
2074 (i386_linux_disable_btrace): Renamed to
2075 x86_linux_disable_btrace. All uses updated.
2076 (i386_linux_teardown_btrace): Renamed to
2077 x86_linux_teardown_btrace. All uses updated.
2078 (i386_linux_read_btrace): Renamed to
2079 x86_linux_read_btrace. All uses updated.
2080
b9c1d481
AS
20812014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2082
2083 * remote.c (extended_remote_post_attach): New function.
2084 (init_extended_remote_ops): Install it as to_post_attach method.
2085
7180e04a
PA
20862014-07-09 Pedro Alves <palves@redhat.com>
2087
2088 * infcmd.c (attach_command_post_wait): Don't call
2089 target_terminal_inferior here.
2090 (attach_command): Call it here instead.
2091
9a9a7608
AB
20922014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2095 field.
2096 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2097 from varobj.c, with additional checks.
2098 (c_varobj_ops): Fill in is_path_expr_parent field.
2099 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2100 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2101 field.
2102 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2103 ops method.
2104 (varobj_default_is_path_expr_parent): New function.
2105 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2106 (varobj_default_is_path_expr_parent): Declare new function.
2107
1f267ae3
MM
21082014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2109
2110 * infcmd.c (finish_backward): Turn internal error into normal error.
2111
b2ee242b
PA
21122014-07-07 Pedro Alves <palves@redhat.com>
2113
8a869bca 2114 PR gdb/17096
b2ee242b
PA
2115 * remote.c (async_handle_remote_sigint)
2116 (async_handle_remote_sigint_twice): Call
2117 gdb_call_async_signal_handler instead of
2118 mark_async_signal_handler.
2119
38e229b2
TT
21202014-07-07 Tom Tromey <tromey@redhat.com>
2121
2122 * target-delegates.c: Rebuild.
2123 * target.c (target_info_record): Remove.
2124 * record.c (info_record_command): Unconditionally call
2125 to_info_record.
2126 * target.h (struct target_ops) <to_info_record>: Use
2127 TARGET_DEFAULT_IGNORE.
2128 (target_info_record): Remove.
2129
f0f9ff95
TT
21302014-07-07 Tom Tromey <tromey@redhat.com>
2131
2132 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2133 TARGET_DEFAULT_NORETURN.
2134 * target.c (generic_tls_error): New function.
2135 (target_translate_tls_address): Don't search target stack.
2136 * target-delegates.c: Rebuild.
2137 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2138 stack.
2139 * linux-thread-db.c (thread_db_get_thread_local_address):
2140 Unconditionally call beneath target.
2141
4a5be5ee
MK
21422014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2143
2144 * cli/cli-logging.c (pop_output_files): Assign targerr to
2145 gdb_stdtargerr.
2146
92c3b204
AB
21472014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * MAINTAINERS (Write After Approval): Update my email address.
2150
9b11e3a7
GB
21512014-07-02 Gary Benson <gbenson@redhat.com>
2152
2153 * proc-service.c (ps_xfer_memory): Update comment.
2154 (ps_pstop): Remove unused function.
2155 (ps_pcontinue): Likewise.
2156 (ps_lstop): Likewise.
2157 (ps_lcontinue): Likewise.
2158 (ps_lgetxregsize): Likewise.
2159 (ps_lgetxregs): Likewise.
2160 (ps_lsetxregs): Likewise.
2161 (ps_plog): Likewise.
2162 (ps_ptread): Likewise.
2163 (ps_ptwrite): Likewise.
2164
cf363f18
MW
21652014-07-01 Mark Wielaard <mjw@redhat.com>
2166
2167 * dwarf2read.c (add_array_cv_type): New function.
2168 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2169 (read_tag_volatile_type): Likewise.
2170
82ae6c8d
TT
21712014-07-01 Tom Tromey <tromey@redhat.com>
2172
2173 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2174 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2175 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2176 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2177 * command.h (cmd_cfunc_ftype): Move earlier.
2178 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2179 (add_com, add_info): Use cmd_cfunc_ftype.
2180
96142726
TT
21812014-06-30 Tom Tromey <tromey@redhat.com>
2182
2183 * symtab.c (operator_chars): Make parameters and return type
2184 const.
2185 (file_matches): Make "files" const.
2186 (struct search_symbols_data) <files>: Now const.
2187 (search_symbols): Make "regexp" and "files" parameters const.
2188 Update.
2189 (symtab_symbol_info): Remove cast.
2190 (rbreak_command): Update.
2191 * symtab.h (search_symbols): Update.
2192
b67a2c6f
YQ
21932014-06-27 Yao Qi <yao@codesourcery.com>
2194
2195 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2196 Change parameter type to 'struct thread_info *'. Caller
2197 updated.
2198 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2199 Update declaration.
2200 * dummy-frame.c (struct dummy_frame_id): New.
2201 (dummy_frame_id_eq): New function.
2202 (struct dummy_frame) <id>: Change its type to 'struct
2203 dummy_frame_id'.
2204 (dummy_frame_push): Add parameter ptid and save it in
2205 dummy_frame_id.
2206 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2207 inferior_ptid.
2208 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2209 to inferior_ptid.
2210 (lookup_dummy_frame): Change parameter type to 'struct
2211 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2212 instead of frame_id_eq.
2213 (dummy_frame_pop): Add parameter ptid. Callers updated.
2214 Update comments. Compose dummy_frame_id and pass it to
2215 lookup_dummy_frame.
2216 (dummy_frame_discard): Add parameter ptid.
2217 (dummy_frame_sniffer): Compose dummy_frame_id and call
2218 dummy_frame_id_eq instead of frame_id_eq.
2219 (fprint_dummy_frames): Print ptid.
2220 * dummy-frame.h: Remove comments.
2221 (dummy_frame_push): Add ptid in declaration.
2222 (dummy_frame_pop, dummy_frame_discard): Likewise.
2223
5b10184c
TT
22242014-06-26 Tom Tromey <tromey@redhat.com>
2225
2226 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2227 * command.h (error_no_arg): Update.
2228
06900326
TT
22292014-06-26 Tom Tromey <tromey@redhat.com>
2230
2231 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2232 (do_show_command): Make "arg" const.
2233 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2234
c2bcbb1d
TT
22352014-06-26 Tom Tromey <tromey@redhat.com>
2236
2237 * record-full.c (record_full_get_bookmark): Make "args" const.
2238 (record_full_goto_bookmark): Make "raw_bookmark" const.
2239 * record.c (record_goto): New function.
2240 (cmd_record_goto): Use it. Now static.
2241 * record.h (record_goto): Declare.
2242 (cmd_record_goto): Remove declaration.
2243 * target-delegates.c: Rebuild.
2244 * target.h (struct target_ops) <to_get_bookmark,
2245 to_goto_bookmark>: Make parameter const.
2246
9cbe5fff
TT
22472014-06-26 Tom Tromey <tromey@redhat.com>
2248
2249 * defs.h (generic_load): Update.
2250 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2251 * monitor.c (monitor_load): Make "args" const.
2252 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2253 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2254 const.
2255 (mips_load): Make "file" const.
2256 * remote-sim.c (gdbsim_load): Make "args" const.
2257 * remote.c (remote_load): Make "name" const.
2258 * symfile.c (generic_load): Make "args" const.
2259 * target-delegates.c: Rebuild.
2260 * target.c (target_load): Make "arg" const.
2261 (debug_to_load): Make "args" const.
2262 * target.h (struct target_ops) <to_load>: Make parameter const.
2263 (target_load): Update.
2264
34a68019
TT
22652014-06-26 Tom Tromey <tromey@redhat.com>
2266
2267 PR symtab/16902:
2268 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2269 (dwarf2_physname, read_partial_die)
2270 (guess_partial_die_structure_name, fixup_partial_die)
2271 (guess_full_die_structure_name, anonymous_struct_prefix)
2272 (dwarf2_name): Use per-BFD obstack.
2273
efc889c1
YQ
22742014-06-26 Yao Qi <yao@codesourcery.com>
2275
2276 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2277 dummyframe and this_id into inner block below.
2278
4395285e
YQ
22792014-06-26 Yao Qi <yao@codesourcery.com>
2280
2281 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2282 with "signal_pass[0]" in the initialization of signal_pass.
2283
aef92902
MM
22842014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2285
2286 * record-btrace.c (record_btrace_generating_corefile)
2287 (record_btrace_prepare_to_generate_core)
2288 (record_btrace_done_generating_core): New.
2289 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2290 (record_btrace_store_registers, record_btrace_prepare_to_store):
2291 Forward request when generating a core file.
2292 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2293 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2294 to_done_generating_core.
2295
5fff78c4
MM
22962014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2297
2298 * target.h (target_ops) <to_prepare_to_generate_core>
2299 <to_done_generating_core>: New.
2300 (target_prepare_to_generate_core, target_done_generating_core): New.
2301 * target.c (target_prepare_to_generate_core)
2302 (target_done_generating_core): New.
2303 * target-delegates.c: Regenerate.
2304 * gcore.c: (write_gcore_file): Rename to ...
2305 (write_gcore_file_1): ...this.
2306 (write_gcore_file): Call target_prepare_to_generate_core
2307 and target_done_generating_core.
2308
1d1f1ccb
MM
23092014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2310
2311 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2312 * gcore.c (write_gcore_file): Free memory returned from
2313 make_corefile_notes.
2314 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2315 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2316
3343ef86
YQ
23172014-06-24 Yao Qi <yao@codesourcery.com>
2318
2319 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2320 (arm_linux_init_abi): Set skip_trampoline_code with
2321 gdbarch_skip_trampoline_code instead of
2322 find_solib_trampoline_target.
2323
18d18ac8
YQ
23242014-06-24 Yao Qi <yao@codesourcery.com>
2325
2326 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2327 arm_skip_bx_reg returns non-zero.
2328
80d8d390
YQ
23292014-06-24 Yao Qi <yao@codesourcery.com>
2330
2331 * arm-tdep.c (arm_skip_bx_reg): New function.
2332 (arm_skip_stub): Call arm_skip_bx_reg.
2333
6a18a01c
DB
23342014-06-23 Don Breazeal <donb@codesourcery.com>
2335
2336 * MAINTAINERS: Add myself as write-after-approval maintainer.
2337
8e9db26e
PA
23382014-06-23 Pedro Alves <palves@redhat.com>
2339
2340 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2341 DR_CONTROL before setting DR0..DR3.
2342 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2343 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2344 bits of DR_CONTROL related to the debug register slot being
2345 disabled. If all slots are vacant, clear local slowdown as well,
2346 and assert DR_CONTROL is 0.
2347
70afc5b7
SC
23482014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2349
2350 * python/lib/gdb/command/xmethods.py
2351 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2352 current progspace only if the string "progspace" matches LOCUS_RE.
2353
840ed64d
JK
23542014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2355
2356 Fix --with-system-readline with readline-6.3 patch 5.
2357 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2358 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2359 types.
2360
26f2dc30
TT
23612014-06-20 Tom Tromey <tromey@redhat.com>
2362
2363 * dwarf2read.c (dw2_get_real_path): Use correct type in
2364 OBSTACK_CALLOC.
2365 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2366
125f8a3d
GB
23672014-06-20 Gary Benson <gbenson@redhat.com>
2368
2369 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2370 * common/glibc_thread_db.h: Likewise.
2371 * common/i386-cpuid.h: Likewise.
2372 * common/i386-gcc-cpuid.h: Likewise.
2373 * common/linux-btrace.h: Likewise.
2374 * common/linux-osdata.h: Likewise.
2375 * common/linux-procfs.h: Likewise.
2376 * common/linux-ptrace.h: Likewise.
2377 * common/mips-linux-watch.h: Likewise.
2378 * common/linux-btrace.c: Moved to nat.
2379 * common/linux-osdata.c: Likewise.
2380 * common/linux-procfs.c: Likewise.
2381 * common/linux-ptrace.c: Likewise.
2382 * common/mips-linux-watch.c: Likewise.
2383 * nat/gdb_thread_db.h: Moved from common.
2384 * nat/glibc_thread_db.h: Likewise.
2385 * nat/i386-cpuid.h: Likewise.
2386 * nat/i386-gcc-cpuid.h: Likewise.
2387 * nat/linux-btrace.c: Likewise.
2388 * nat/linux-btrace.h: Likewise.
2389 * nat/linux-osdata.c: Likewise.
2390 * nat/linux-osdata.h: Likewise.
2391 * nat/linux-procfs.c: Likewise.
2392 * nat/linux-procfs.h: Likewise.
2393 * nat/linux-ptrace.c: Likewise.
2394 * nat/linux-ptrace.h: Likewise.
2395 * nat/mips-linux-watch.c: Likewise.
2396 * nat/mips-linux-watch.h: Likewise.
2397 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2398 (object file files): Reordered.
2399 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2400 of glibc_thread_db.h.
2401
42995dbd
GB
24022014-06-20 Gary Benson <gbenson@redhat.com>
2403
2404 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2405 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2406 (i386_dr_low): Likewise.
2407 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2408 (i386_dr_low_set_addr): Likewise.
2409 (i386_dr_low_get_addr): Likewise.
2410 (i386_dr_low_can_set_control): Likewise.
2411 (i386_dr_low_set_control): Likewise.
2412 (i386_dr_low_get_control): Likewise.
2413 (i386_dr_low_get_status): Likewise.
2414 (i386_get_debug_register_length): Likewise.
2415 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2416 (i386_dr_low): Likewise.
2417 * nat/i386-dregs.c (i386-low.h): Remove include.
2418 (i386-nat.h): Likewise.
2419 (nat/i386-dregs.h): New include.
2420 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2421 (i386_dr_low_set_addr): Likewise.
2422 (i386_dr_low_get_addr): Likewise.
2423 (i386_dr_low_can_set_control): Likewise.
2424 (i386_dr_low_set_control): Likewise.
2425 (i386_dr_low_get_control): Likewise.
2426 (i386_dr_low_get_status): Likewise.
2427 (i386_get_debug_register_length): Likewise.
2428 (debug_hw_points): Likewise.
2429
3ed9baed
IB
24302014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2431
2432 * Makefile.in (SFILES): Add d-exp.y.
2433 (YYFILES): Add d-exp.c.
2434 (YYOBJ): Add d-exp.o.
2435 (local-maintainer-clean): Delete d-exp.c.
2436 * d-exp.y: New file.
2437 * d-lang.h (d_parse): New declaration.
2438 (d_error): New declaration.
2439 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2440 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2441 PREC_ORDER operators.
2442 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2443
78c164b0
YQ
24442014-06-19 Yao Qi <yao@codesourcery.com>
2445
2446 * gdbthread.h (any_running): Remove the declaration.
2447 * thread.c (any_running): Remove.
2448
f6e29b6e
YQ
24492014-06-19 Yao Qi <yao@codesourcery.com>
2450
2451 * gdbthread.h (struct thread_info) <state>: Change its type to
2452 'enum thread_state'. Update comments.
2453
034f788c
PA
24542014-06-19 Pedro Alves <palves@redhat.com>
2455
2456 * gdbthread.h (ALL_THREADS): Delete.
2457 (ALL_NON_EXITED_THREADS): New macro.
2458 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2459 instead of ALL_THREADS.
2460 * infrun.c (find_thread_needs_step_over)
2461 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2462 instead of ALL_THREADS.
2463 * record-btrace.c (record_btrace_open)
2464 (record_btrace_stop_recording, record_btrace_close)
2465 (record_btrace_is_replaying, record_btrace_resume)
2466 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2467 * remote.c (append_pending_thread_resumptions): Likewise.
2468 * thread.c (thread_apply_all_command): Likewise.
2469
46e33252
GB
24702014-06-19 Gary Benson <gbenson@redhat.com>
2471
2472 * i386-nat.c (i386_stopped_by_watchpoint):
2473 Use i386_dr_stopped_by_watchpoint.
2474 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2475 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2476
3a8ee006
GB
24772014-06-19 Gary Benson <gbenson@redhat.com>
2478
2479 * nat/i386-dregs.c: New file.
2480 * Makefile.in (i386-dregs.o): New rule.
2481 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2482 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2483 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2484 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2485 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2486 * config/i386/go32.mh (NATDEPFILES): Likewise.
2487 * config/i386/linux.mh (NATDEPFILES): Likewise.
2488 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2489 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2490 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2491 * i386-nat.h (debug_hw_points): New declaration.
2492 * i386-nat.c (breakpoint.h): Remove include.
2493 (command.h): Likewise.
2494 (target.h): Likewise.
2495 (gdb_assert.h): Likewise.
2496 (debug_hw_points): Made nonstatic.
2497 (debug_printf): Now in i386-dregs.c.
2498 (TARGET_HAS_DR_LEN_8): Likewise.
2499 (DR_CONTROL_SHIFT): Likewise.
2500 (DR_CONTROL_SIZE): Likewise.
2501 (DR_RW_EXECUTE): Likewise.
2502 (DR_RW_WRITE): Likewise.
2503 (DR_RW_READ): Likewise.
2504 (DR_RW_IORW): Likewise.
2505 (DR_LEN_1): Likewise.
2506 (DR_LEN_2): Likewise.
2507 (DR_LEN_4): Likewise.
2508 (DR_LEN_8): Likewise.
2509 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2510 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2511 (DR_ENABLE_SIZE): Likewise.
2512 (DR_LOCAL_SLOWDOWN): Likewise.
2513 (DR_GLOBAL_SLOWDOWN): Likewise.
2514 (DR_CONTROL_RESERVED): Likewise.
2515 (I386_DR_CONTROL_MASK): Likewise.
2516 (I386_DR_VACANT): Likewise.
2517 (I386_DR_LOCAL_ENABLE): Likewise.
2518 (I386_DR_GLOBAL_ENABLE): Likewise.
2519 (I386_DR_DISABLE): Likewise.
2520 (I386_DR_SET_RW_LEN): Likewise.
2521 (I386_DR_GET_RW_LEN): Likewise.
2522 (I386_DR_WATCH_HIT): Likewise.
2523 (i386_wp_op_t): Likewise.
2524 (i386_show_dr): Likewise.
2525 (i386_length_and_rw_bits): Likewise.
2526 (i386_insert_aligned_watchpoint): Likewise.
2527 (i386_remove_aligned_watchpoint): Likewise.
2528 (i386_handle_nonaligned_watchpoint): Likewise.
2529 (i386_update_inferior_debug_regs): Likewise.
2530 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2531 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2532 (i386_region_ok_for_watchpoint):
2533 Use i386_dr_region_ok_for_watchpoint.
2534 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2535
322a8e06
GB
25362014-06-19 Gary Benson <gbenson@redhat.com>
2537
2538 * i386-nat.c (i386_insert_hw_breakpoint): Use
2539 i386_insert_watchpoint.
2540 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2541
8f26655c
GB
25422014-06-19 Gary Benson <gbenson@redhat.com>
2543
2544 * i386-nat.c (i386_dr_show): Renamed to
2545 i386_show_dr and made static. All uses updated.
2546 (i386_dr_length_and_rw_bits): Renamed to
2547 i386_length_and_rw_bits and made static.
2548 All uses updated.
2549 (i386_dr_insert_aligned_watchpoint): Renamed to
2550 i386_insert_aligned_watchpoint and made static.
2551 All uses updated.
2552 (i386_dr_remove_aligned_watchpoint): Renamed to
2553 i386_remove_aligned_watchpoint and made static.
2554 All uses updated.
2555 (i386_dr_update_inferior_debug_regs): Renamed to
2556 i386_update_inferior_debug_regs and made static.
2557 All uses updated.
2558 * nat/i386-dregs.h (i386_dr_show): Removed.
2559 (i386_dr_length_and_rw_bits): Likewise.
2560 (i386_dr_insert_aligned_watchpoint): Likewise.
2561 (i386_dr_remove_aligned_watchpoint): Likewise.
2562 (i386_dr_update_inferior_debug_regs): Likewise.
2563
992c7d70
GB
25642014-06-19 Gary Benson <gbenson@redhat.com>
2565
2566 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2567 * configure: Regenerate.
2568 * config.in: Likewise.
2569 * main.c (signal.h): New include.
2570 (setup_alternate_signal_stack): New function.
2571 (captured_main): Call the above.
2572 * cp-support.c (signal.h): New include.
2573 (catch_demangler_crashes): New flag.
2574 (SIGJMP_BUF): New define.
2575 (SIGSETJMP): Likewise.
2576 (SIGLONGJMP): Likewise.
2577 (gdb_demangle_jmp_buf): New static global.
2578 (gdb_demangle_attempt_core_dump): Likewise.
2579 (gdb_demangle_signal_handler): New function.
2580 (gdb_demangle): If catch_demangler_crashes is set, install the
2581 above signal handler before calling bfd_demangle, and restore
2582 the original signal handler afterwards. Display the offending
2583 symbol and call demangler_warning the first time a segmentation
2584 fault is caught.
2585 (_initialize_cp_support): New maint set/show command.
2586
eae7090b
GB
25872014-06-19 Gary Benson <gbenson@redhat.com>
2588
2589 * utils.h (resource_limit_kind): New enum.
2590 (can_dump_core): New declaration.
2591 (warn_cant_dump_core): Likewise.
2592 (dump_core): Likewise.
2593 * utils.c (dump_core): Made nonstatic. Added new
2594 parameter "limit_kind".
2595 (can_dump_core): Made nonstatic. Moved printing code to...
2596 (warn_cant_dump_core): New function.
2597 (can_dump_core_warn): Likewise.
2598 (internal_vproblem): Replace calls to can_dump_core with
2599 calls to can_dump_core_warn. Supply new argument to each.
2600
57fcfb1b
GB
26012014-06-19 Gary Benson <gbenson@redhat.com>
2602
2603 * utils.h (demangler_vwarning): New declaration.
2604 (demangler_warning): Likewise.
2605 * utils.c (struct internal_problem)
2606 <user_settable_should_quit>: New field.
2607 <user_settable_should_dump_core>: Likewise
2608 (internal_error_problem): Add values for above new fields.
2609 (internal_warning_problem): Likewise.
2610 (demangler_warning_problem): New static global.
2611 (demangler_vwarning): New function.
2612 (demangler_warning): Likewise.
2613 (add_internal_problem_command): Selectively add commands.
2614 (_initialize_utils): New internal problem command.
2615 * maint.c (maintenance_demangler_warning): New function.
2616 (_initialize_maint_cmds): New command.
2617
17a40b44
TT
26182014-06-18 Tom Tromey <tromey@redhat.com>
2619
2620 * f-valprint.c (info_common_command_for_block): Update.
2621 * symtab.h (struct general_symbol_info) <common_block>: Now
2622 const.
2623
346d1dfe
TT
26242014-06-18 Tom Tromey <tromey@redhat.com>
2625
2626 * symtab.h (struct symtab) <blockvector>: Now const.
2627 * ada-lang.c (ada_add_global_exceptions): Update.
2628 * buildsym.c (augment_type_symtab): Update.
2629 * dwarf2read.c (dw2_lookup_symbol): Update.
2630 * jit.c (finalize_symtab): Update.
2631 * jv-lang.c (add_class_symtab_symbol): Update.
2632 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2633 Update.
2634 * objfiles.c (objfile_relocate1): Update.
2635 * psymtab.c (lookup_symbol_aux_psymtabs)
2636 (maintenance_check_psymtabs): Update.
2637 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2638 Update.
2639 * spu-tdep.c (spu_catch_start): Update.
2640 * symmisc.c (dump_symtab_1): Update.
2641 * symtab.c (lookup_global_symbol_from_objfile)
2642 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2643 (basic_lookup_transparent_type_quick)
2644 (basic_lookup_transparent_type, find_pc_sect_symtab)
2645 (find_pc_sect_line, search_symbols): Update.
2646 * block.c (find_block_in_blockvector): Make "bl" const.
2647 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2648 const.
2649 (blockvector_contains_pc): Make "bv" const.
2650 (block_for_pc_sect): Update.
2651 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2652 (blockvector_contains_pc): Update.
2653 * breakpoint.c (resolve_sal_pc): Update.
2654 * inline-frame.c (block_starting_point_at): Update.
2655
1834676b
TT
26562014-06-18 Tom Tromey <tromey@redhat.com>
2657
2658 * completer.c (complete_line): Make "line_buffer" const.
2659 * completer.h (complete_line): Update.
2660
ac1a991b
TT
26612014-06-18 Tom Tromey <tromey@redhat.com>
2662
2663 * symtab.c (add_macro_name): Remove unneeded cast.
2664
5bc98e52
TT
26652014-06-18 Tom Tromey <tromey@redhat.com>
2666
2667 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2668 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2669
8236def8
TT
26702014-06-18 Tom Tromey <tromey@redhat.com>
2671
2672 * probe.c (info_probes_for_ops): Make "arg" const.
2673 * probe.h (info_probes_for_ops): Update.
2674
3977b71f
TT
26752014-06-18 Tom Tromey <tromey@redhat.com>
2676
2677 * varobj.c (varobj_create): Update.
2678 * valops.c (value_of_this): Update.
2679 * tracepoint.c (add_local_symbols, scope_info): Update.
2680 * symtab.h (struct general_symbol_info) <block>: Now const.
2681 * symtab.c (skip_prologue_sal)
2682 (default_make_symbol_completion_list_break_on)
2683 (skip_prologue_using_sal): Update.
2684 * stack.h (iterate_over_block_locals)
2685 (iterate_over_block_local_vars): Update.
2686 * stack.c (print_frame_args): Update.
2687 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2688 parameter const.
2689 (get_selected_block): Make return type const.
2690 * python/py-frame.c (frapy_block): Update.
2691 * python/py-block.c (gdbpy_block_for_pc): Update.
2692 * p-exp.y (%union) <bval>: Now const.
2693 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2694 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2695 * m2-exp.y (%union) <bval>: Now const.
2696 * linespec.c (get_current_search_block): Make return type const.
2697 (create_sals_line_offset, find_label_symbols): Update.
2698 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2699 Update.
2700 (block_starting_point_at): Make "block" const.
2701 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2702 (check_exception_resume): Update.
2703 * guile/scm-frame.c (gdbscm_frame_block): Update.
2704 * guile/scm-block.c (gdbscm_lookup_block): Update.
2705 * frame.h (get_frame_block): Update.
2706 (get_selected_block): Make return type const.
2707 * frame.c (frame_id_inner): Update.
2708 * f-valprint.c (info_common_command_for_block)
2709 (info_common_command): Update.
2710 * dwarf2loc.c (dwarf2_find_location_expression)
2711 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2712 (locexpr_describe_location_piece): Update.
2713 * c-exp.y (%union) <bval>: Now const.
2714 * breakpoint.c (resolve_sal_pc): Update.
2715 * blockframe.c (get_frame_block):Make return type const.
2716 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2717 (block_innermost_frame): Update.
2718 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2719 (block_for_pc, block_for_pc_sect): Update.
2720 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2721 'pblock' const.
2722 (block_for_pc_sect, block_for_pc): Make return type const.
2723 * ax-gdb.c (gen_expr): Update.
2724 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2725 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2726 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2727 (ada_read_var_value): Update.
2728 * ada-exp.y (struct name_info) <block>: Now const.
2729 (%union): Likewise.
2730 (block_lookup): Constify.
2731
b9228891
GB
27322014-06-18 Gary Benson <gbenson@redhat.com>
2733
2734 * nat/i386-dregs.h: New file.
2735 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2736 * i386-nat.h (i386-dregs.h): New include.
2737 (DR_FIRSTADDR): Now in i386-dregs.h.
2738 (DR_LASTADDR): Likewise.
2739 (DR_NADDR): Likewise.
2740 (DR_STATUS): Likewise.
2741 (DR_CONTROL): Likewise.
2742 (i386_debug_reg_state): Likewise.
2743 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2744
a1aa2221
LM
27452014-06-18 Don Breazeal <donb@codesourcery.com>
2746
2747 * breakpoint.c (set_longjmp_breakpoint): Call
2748 momentary_breakpoint_from_master with additional argument.
2749 (set_longjmp_breakpoint_for_call_dummy): Call
2750 momentary_breakpoint_from_master with additional argument.
2751 (set_std_terminate_breakpoint): Call
2752 momentary_breakpoint_from_master with additional argument.
2753 (momentary_breakpoint_from_master): Add argument to function
2754 definition and use it to initialize structure member flag.
74228e77 2755 (clone_momentary_breakpoint): Call
a1aa2221
LM
2756 momentary_breakpoint_from_master with additional argument.
2757 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2758 member flags set in momentary_breakpoint_from_master.
2759
4be83cc2
GB
27602014-06-18 Gary Benson <gbenson@redhat.com>
2761
2762 * i386-nat.c (i386_show_dr): Renamed to
2763 i386_dr_show and made nonstatic. All uses updated.
2764 (i386_length_and_rw_bits): Renamed to
2765 i386_dr_length_and_rw_bits and made nonstatic.
2766 All uses updated.
2767 (i386_insert_aligned_watchpoint): Renamed to
2768 i386_dr_insert_aligned_watchpoint and made nonstatic.
2769 All uses updated.
2770 (i386_remove_aligned_watchpoint): Renamed to
2771 i386_dr_remove_aligned_watchpoint and made nonstatic.
2772 All uses updated.
2773 (i386_update_inferior_debug_regs): Renamed to
2774 i386_dr_update_inferior_debug_regs and made nonstatic.
2775 All uses updated.
2776
131aa0d4
GB
27772014-06-18 Gary Benson <gbenson@redhat.com>
2778
2779 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2780 (i386_dr_low_can_set_control): Likewise.
2781 (i386_dr_low_set_addr): Likewise.
2782 (i386_dr_low_set_control): Likewise.
2783 (i386_dr_low_get_addr): Likewise.
2784 (i386_dr_low_get_status): Likewise.
2785 (i386_dr_low_get_control): Likewise.
2786 (i386_insert_aligned_watchpoint): Use new macros.
2787 (i386_update_inferior_debug_regs): Likewise.
2788 (i386_stopped_data_address): Likewise.
2789
d9305f7f
GB
27902014-06-18 Gary Benson <gbenson@redhat.com>
2791
2792 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2793 New parameter. All uses updated.
2794
ea008da4
GB
27952014-06-18 Gary Benson <gbenson@redhat.com>
2796
2797 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2798 All uses updated.
2799
1b6d4134
GB
28002014-06-18 Gary Benson <gbenson@redhat.com>
2801
2802 * i386-nat.c (debug_printf): New macro.
2803 (i386_get_debug_register_length): Likewise.
2804 (TARGET_HAS_DR_LEN_8): Use above macro.
2805 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2806 and printf_unfiltered. Use phex to format values.
2807
9b4550ef
GB
28082014-06-18 Gary Benson <gbenson@redhat.com>
2809
2810 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2811 Make const.
2812
6e62758f
GB
28132014-06-18 Gary Benson <gbenson@redhat.com>
2814
2815 * i386-nat.c: Comment changes.
2816
51c79e94
GB
28172014-06-18 Gary Benson <gbenson@redhat.com>
2818
2819 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2820
3e11889a
GB
28212014-06-18 Gary Benson <gbenson@redhat.com>
2822
2823 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2824 (i386_insert_aligned_watchpoint): Likewise.
2825 (i386_remove_aligned_watchpoint): Likewise.
2826 (i386_handle_nonaligned_watchpoint): Likewise.
2827
fc6e2f03
GB
28282014-06-18 Gary Benson <gbenson@redhat.com>
2829
2830 * i386-nat.c: Whitespace changes.
2831
2afe7d50
SB
28322014-06-17 Samuel Bronson <naesten@gmail.com>
2833
2834 * MAINTAINERS: Update Roland McGrath's email address.
2835 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2836 Red Hat a while ago, and giving me a current address.
2afe7d50 2837
3bca49ee
TT
28382014-06-17 Tom Tromey <tromey@redhat.com>
2839
2840 * utils.h (savestring): Remove declaration.
2841
6e366df1
TT
28422014-06-17 Tom Tromey <tromey@redhat.com>
2843
2844 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2845
6be47f0c
KS
28462014-06-16 Keith Seitz <keiths@redhat.com>
2847
2848 PR mi/15863
2849 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2850 to update the varobj if inferior_ptid is null_ptid.
2851
7bc112c1
TT
28522014-06-16 Tom Tromey <tromey@redhat.com>
2853
2854 * target.h (struct target_ops) <to_info_proc>: Make parameter
2855 const.
2856 (target_info_proc): Update.
2857 * target.c (target_info_proc): Make "args" const.
2858 * procfs.c (procfs_info_proc): Update.
2859 * linux-tdep.c (linux_info_proc): Update.
2860 (linux_core_info_proc_mappings): Make "args" const.
2861 (linux_core_info_proc): Update.
2862 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2863 * gdbarch.c: Rebuild.
2864 * gdbarch.h: Rebuild.
2865 * corelow.c (core_info_proc): Update.
2866
fee354ee
TT
28672014-06-16 Tom Tromey <tromey@redhat.com>
2868
2869 * target.h (struct target_ops) <to_disconnect>: Make parameter
2870 const.
2871 (target_disconnect): Update.
2872 * target.c (target_disconnect): Make "args" const.
2873 * target-delegates.c: Rebuild.
2874 * remote.c (remote_disconnect): Update.
2875 * record.h (record_disconnect): Update.
2876 * record.c (record_disconnect): Update.
2877 * inf-child.c (inf_child_disconnect): Update.
2878
a30bf1f1
TT
28792014-06-16 Tom Tromey <tromey@redhat.com>
2880
2881 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2882 * target.c (debug_to_rcmd, default_rcmd): Update.
2883 * target-delegates.c: Rebuild.
2884 * remote.c (remote_rcmd): Update.
2885 * monitor.c (monitor_rcmd): Update.
2886
d03de421
PA
28872014-06-16 Pedro Alves <palves@redhat.com>
2888
2889 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2890 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2891 have OBJF_SHARED set.
2892 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2893 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2894 instead of OBJF_USERLOADED.
2895 * objfiles.h (OBJF_SHARED): Update comment.
2896 (userloaded_objfile_contains_address_p): Rename to ...
2897 (shared_objfile_contains_address_p): ... this, and update
2898 comments.
2899 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2900 new objfile.
2901 (remove_symbol_file_command): Skip objfiles that don't have
2902 OBJF_SHARED set.
2903
99f4262f
TT
29042014-06-16 Tom Tromey <tromey@redhat.com>
2905
2906 * minsyms.h (prim_record_minimal_symbol)
2907 (prim_record_minimal_symbol_and_info): Update comments.
2908
97d66cc6
EZ
29092014-06-14 Eli Zaretskii <eliz@gnu.org>
2910
2911 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2912 or --without-guile, according to how GDB was built.
2913
635c7e8a
TT
29142014-06-13 Tom Tromey <tromey@redhat.com>
2915
2916 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2917 to help_list.
2918 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2919 to help_list.
2920 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2921 help_list.
2922 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2923 help_list.Pass all_commands, not -1, to help_list.
2924 * cli/cli-dump.c (dump_command, append_command)
2925 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2926 (binary_dump_command, binary_append_command): Pass all_commands,
2927 not -1, to help_list.
2928 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2929 -1, to help_list.
2930 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2931 -1, to help_list.
2932 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2933 help_list.
2934 * top.c (set_history): Pass all_commands, not -1, to help_list.
2935 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2936 all_commands, not -1, to help_list.
2937 * symfile.c (overlay_command): Pass all_commands, not -1, to
2938 help_list.
2939 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2940 help_list.
2941 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2942 help_list.
2943 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2944 -1, to help_list.
2945 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2946 not -1, to help_list.
2947 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2948 not -1, to help_list.
2949 * maint.c (maintenance_command, maintenance_info_command)
2950 (maintenance_print_command, maintenance_set_cmd): Pass
2951 all_commands, not -1, to help_list.
2952 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2953 help_list.
2954 * language.c (set_check): Pass all_commands, not -1, to help_list.
2955 * infcmd.c (unset_command): Pass all_commands, not -1, to
2956 help_list.
2957 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2958 help_list.
2959 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2960 help_list.
2961 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2962 help_list.
2963 * breakpoint.c (save_command): Pass all_commands, not -1, to
2964 help_list.
2965 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2966 all_commands, not -1, to help_list.
2967
b94ade42
PL
29682014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2969
2970 * regcache.c (struct register_to_invalidate): New structure.
2971 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2972 functions.
2973 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2974
31f628ae
YQ
29752014-06-12 Yao Qi <yao@codesourcery.com>
2976
2977 * varobj.c (varobj_get_num_children): Call
2978 varobj_is_dynamic_p.
2979 (varobj_list_children): Likewise.
2980 (varobj_update): Likewise. Update comments.
2981
cde5ef40
YQ
29822014-06-12 Yao Qi <yao@codesourcery.com>
2983
2984 * varobj.c (varobj_pretty_printed_p): Rename to ...
2985 (varobj_is_dynamic_p): ... this. New function.
2986 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2987 (varobj_is_dynamic_p): Declare.
2988 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2989 (mi_print_value_p, varobj_update_one): Likewise.
2990
576ea091
YQ
29912014-06-12 Pedro Alves <pedro@codesourcery.com>
2992 Yao Qi <yao@codesourcery.com>
2993
2994 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2995 (varobj_get_iterator): Wrap up code for pretty-printer by
2996 "#if HAVE_PYTHON" and "#endif".
2997 (update_dynamic_varobj_children): Likewise.
2998
827f100c
YQ
29992014-06-12 Pedro Alves <pedro@codesourcery.com>
3000 Yao Qi <yao@codesourcery.com>
3001
3002 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3003 gdb_python_initialized is false. Move some code from varobj.c.
3004 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3005 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3006 (struct varobj_item): Moved to varobj-iter.h".
3007 (varobj_clear_saved_item): New function.
3008 (update_dynamic_varobj_children): Move python-related code to
3009 py-varobj.c.
3010 (free_variable): Call varobj_clear_saved_item and
3011 varobj_iter_delete.
3012
e5250216
YQ
30132014-06-12 Pedro Alves <pedro@codesourcery.com>
3014 Yao Qi <yao@codesourcery.com>
3015
3016 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3017 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3018 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3019 (py-varobj.o): New rule.
3020 * python/py-varobj.c: New file.
3021 * python/python-internal.h (py_varobj_get_iterator): Declare.
3022 * varobj-iter.h: New file.
3023 * varobj.c: Include "varobj-iter.h"
3024 (struct varobj) <child_iter>: Change its type from "PyObject *"
3025 to "struct varobj_iter *".
3026 <saved_item>: Likewise.
3027 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3028 [HAVE_PYTHON] (varobj_get_iterator): New function.
3029 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3030 python-specific code to python/py-varobj.c.
3031 (install_visualizer): Call varobj_iter_delete instead of
3032 Py_XDECREF.
3033 * varobj.h (varobj_ensure_python_env): Declare.
3034
5a2e0d6e
YQ
30352014-06-12 Yao Qi <yao@codesourcery.com>
3036
3037 * varobj.c (struct varobj_item): New structure.
3038 (create_child_with_value): Update declaration.
3039 (varobj_add_child): Replace arguments 'name' and 'value' with
3040 'item'. All callers updated.
3041 (install_dynamic_child): Likewise.
3042 (update_dynamic_varobj_children): Likewise.
3043 (varobj_add_child): Likewise.
3044 (create_child_with_value): Likewise.
3045
919b9a93
JB
30462014-06-11 Joel Brobecker <brobecker@adacore.com>
3047
3048 * NEWS: Create a new section for the next release branch.
3049 Rename the section of the current branch, now that it has
3050 been cut.
3051
71a55bdf
JB
30522014-06-11 Joel Brobecker <brobecker@adacore.com>
3053
3054 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3055 * version.in: Bump version to 7.8.50.DATE-cvs.
3056
364fe1f7
PA
30572014-06-11 Pedro Alves <palves@redhat.com>
3058
3059 PR remote/17028
3060 * ser-mingw.c (net_windows_socket_check_pending): New function.
3061 (net_windows_select_thread): Ignore spurious wakeups. Use
3062 net_windows_socket_check_pending.
3063 (net_windows_wait_handle): Check for pending events with
3064 ioctlsocket, through net_windows_socket_check_pending, instead of
3065 checking the socket's event.
3066
5a6c7709
SC
30672014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3068
3069 * python/python-internal.h (gdb_PyObject_GetAttrString)
3070 (gdb_PyObject_HasAttrString): New inline function definitions.
3071 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3072 char * of the second argument to PyObject_GetAttrString.
74228e77 3073
0e58ee40
JB
30742014-06-10 Joel Brobecker <brobecker@adacore.com>
3075
3076 * serial.c (serial_write): Fix index of character to be printed
3077 in call to serial_logchar when serial debug traces are enabled.
3078
d190df30
JB
30792014-06-10 Joel Brobecker <brobecker@adacore.com>
3080
3081 * gdbtypes (resolve_dynamic_range): Add function description.
3082
b4b01d36
PA
30832014-06-09 Pedro Alves <palves@redhat.com>
3084
3085 * linux-nat.c (linux_child_follow_fork): Initialize status with
3086 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3087 inner block. Only pass the signal to PTRACE_DETACH if in pass
3088 state.
3089
3657956b
GB
30902014-06-09 Gary Benson <gbenson@redhat.com>
3091
3092 * common/signals.c (gdb_signal_from_host): Reorder to separate
3093 the always-available ANSI-standard signals from the signals that
3094 require checking.
3095 (do_gdb_signal_to_host): Likewise.
3096 * proc-events.c (signal_table): Likewise.
3097
c077881a
HZ
30982014-06-08 Hui Zhu <hui@codesourcery.com>
3099
3100 * common/linux-ptrace.c (linux_disable_event_reporting): New
3101 function.
3102 * common/linux-ptrace.h (linux_disable_event_reporting): New
3103 declaration.
3104 * linux-nat.c (linux_child_follow_fork): Do a single step before
3105 detach.
3106
4186eb54
KS
31072014-06-07 Keith Seitz <keiths@redhat.com>
3108
3109 Revert:
3110 PR c++/16253
3111 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3112 from symbol_matches_domain in symtab.c. All local callers
3113 of symbol_matches_domain updated.
3114 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3115 search STRUCT_DOMAIN.
3116 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3117 independently. standard_lookup will do that automatically.
3118 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3119 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3120 (cp_lookup_symbol_in_namespace): Likewise.
3121 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3122 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3123 may return a STRUCT_DOMAIN match.
3124 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3125 * cp-support.c: Include language.h.
3126 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3127 VAR_DOMAIN.
3128 * psymtab.c (match_partial_symbol): Compare the requested
3129 domain with the symbol's domain directly.
3130 (lookup_partial_symbol): Likewise.
3131 * symtab.c (lookup_symbol_in_language): Explain when/why
3132 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3133 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3134 appropriate languages.
3135 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3136 and moved to ada-lang.c
3137 (lookup_block_symbol): Explain that this function only returns
3138 symbol matching the requested DOMAIN.
3139 Compare the requested domain with the symbol's domain directly.
3140 (iterate_over_symbols): Compare the requested domain with the
3141 symbol's domain directly.
3142 * symtab.h (symbol_matches_domain): Remove.
3143
25326a28 31442014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3145
3146 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3147 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3148 (gdbscm_guile_version_is_at_least): Declare.
3149 (gdbscm_scm_string_to_int): Declare.
3150 * guile/guile.c (gdbscm_guile_major_version): New global.
3151 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3152 (guile_datadir): New static global.
3153 (gdbscm_guile_data_directory): New function.
3154 (initialize_scheme_side): Update.
3155 (misc_guile_functions): Add guile-data-directory.
3156 (initialize_gdb_module): Fetch guile version number.
3157 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3158 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3159 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3160 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3161 comments.
3162 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3163 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3164 * guile/scm-value.c (gdbscm_value_to_string): Only call
3165 scm_port_conversion_strategy if Guile version >= 2.0.6.
3166
0a770bb2 31672014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3168
3169 * main.c (print_gdb_help): Add -q and --silent.
3170
73ba372c
GB
31712014-06-06 Gary Benson <gbenson@redhat.com>
3172
3173 * common/signals.c: Remove preprocessor conditionals for
3174 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3175 SIGSEGV and SIGTERM.
3176 * proc-events.c: Likewise.
3177
c33b2f12
MM
31782014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3179
3180 * symfile.c (symfile_free_objfile): Remove restriction to
3181 OBJF_USERLOADED.
3182 * symfile-mem.c (symbol_file_add_from_memory): Call
3183 add_target_sections_of_objfile.
3184
fb934770
LC
31852014-06-05 Ludovic Courtès <ludo@gnu.org>
3186
3187 * guile/scm-value.c (gdbscm_history_append_x): Use
3188 'vlscm_get_value_smob_arg_unsafe' instead of
3189 'vlscm_scm_to_value'.
3190
6ef284bd
SM
31912014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3192
3193 PR mi/15806
3194 * utils.c (printchar): Don't escape at all if quoter is NUL.
3195 Update function documentation to clarify effect of parameter
3196 QUOTER.
3197 * remote.c (escape_buffer): Pass '\\' as the quoter to
3198 fputstrn_unfiltered.
3199 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3200 generate the output.
3201 (mi_solib_unloaded): Same.
3202
270c9937
JB
32032014-06-05 Joel Brobecker <brobecker@adacore.com>
3204
3205 * development.sh: Delete.
3206 * Makefile.in (config.status): Adjust dependency on development.sh.
3207 * configure.ac: Adjust development.sh source call.
3208 * configure: Regenerate.
3209
16f691fb
DE
32102014-06-04 Doug Evans <xdje42@gmail.com>
3211
3212 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3213 is_scheme_bkpt, spec.
3214 (bpscm_make_breakpoint_smob): Initialize new members.
3215 (gdbscm_create_breakpoint_x): Split into two ...
3216 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3217 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3218 (scheme_function breakpoint_functions): Update.
3219 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3220 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3221 register-breakpoint!.
3222
ef7cab6b
JB
32232014-06-04 Joel Brobecker <brobecker@adacorer.com>
3224
3225 PR server/17023
3226 * mem-break.c (z_type_supported): Return zero if
3227 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3228
012370f6
TT
32292014-06-04 Tom Tromey <tromey@redhat.com>
3230
3231 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3232 value_from_contents_and_address_unresolved.
3233 (ada_template_to_fixed_record_type_1): Likewise.
3234 (ada_which_variant_applies): Likewise.
3235 * value.h (value_from_contents_and_address_unresolved): Declare.
3236 * value.c (value_from_contents_and_address_unresolved): New
3237 function.
3238 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3239 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3240 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3241
92e2a17f
TT
32422014-06-04 Tom Tromey <tromey@redhat.com>
3243
3244 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3245
c0939df1
TT
32462014-06-04 Tom Tromey <tromey@redhat.com>
3247
3248 * procfs.c (procfs_attach): Make "args" const.
3249 * windows-nat.c (windows_attach): Make "args" const.
3250 * nto-procfs.c (procfs_attach): Make "args" const.
3251 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3252 * go32-nat.c (go32_attach): Make "args" const.
3253 * gnu-nat.c (gnu_attach): Make "args" const.
3254 * darwin-nat.c (darwin_attach): Make "args" const.
3255 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3256 * linux-nat.c (linux_nat_attach): Make "args" const.
3257 * remote.c (extended_remote_attach_1, extended_remote_attach):
3258 Make "args" const.
3259 * target.h (struct target_ops) <to_attach>: Make "args" const.
3260 (find_default_attach): Likewise.
3261 * utils.c (parse_pid_to_attach): Make "args" const.
3262 * utils.h (parse_pid_to_attach): Update.
3263
8eaff7cd
TT
32642014-06-04 Tom Tromey <tromey@redhat.com>
3265
3266 * target-delegates.c: Rebuild.
3267 * target.c (default_thread_address_space): New function.
3268 (target_thread_address_space): Simplify.
3269 * target.h (struct target_ops) <to_thread_address_space>: Add
3270 TARGET_DEFAULT_FUNC.
3271
1913f160
DE
32722014-06-04 Doug Evans <xdje42@gmail.com>
3273
3274 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3275
70ad5bff
MM
32762014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3277
3278 * record-btrace.c: Include event-loop.h and inf-loop.h.
3279 (record_btrace_resume_exec_dir)
3280 (record_btrace_async_inferior_event_handler)
3281 (record_btrace_handle_async_inferior_event): New.
3282 (record_btrace_open): Create async event handler.
3283 (record_btrace_close): Delete async event handler.
3284 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3285 Mark async event handler.
3286 (record_btrace_execution_direction): New.
3287 (init_record_btrace_ops): Initialize to_execution_direction.
3288
b6210538
DE
32892014-06-03 Doug Evans <xdje42@gmail.com>
3290
3291 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3292 (gdbscm_make_parameter): Ditto.
3293
a5b1fd27
DE
32942014-06-03 Doug Evans <dje@google.com>
3295
3296 * exec.c (exec_close_1): Call clear_section_table instead of
3297 resize_section_table.
3298 (clear_section_table): New function.
3299 (resize_section_table): Make static. Rename arg num_added to
3300 adjustment.
3301 * exec.h (clear_section_table): Declare.
3302 (resize_section_table): Delete.
3303 * progspace.c (release_program_space): Call clear_section_table
3304 instead of resize_section_table.
3305
0c6e92a5
SC
33062014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3307
3308 * NEWS (Python Scripting): Add entry about the new xmethods
3309 feature.
3310
883964a7
SC
33112014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3312
3313 * python/py-xmethods.c: New file.
3314 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3315 (objfpy_dealloc): XDECREF on the new xmethods field.
3316 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3317 field.
3318 (objfpy_get_xmethods): New function.
3319 (objfile_getset): New entry 'xmethods'.
3320 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3321 (pspy_dealloc): XDECREF on the new xmethods field.
3322 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3323 field.
3324 (pspy_get_xmethods): New function.
3325 (pspace_getset): New entry 'xmethods'.
3326 * python/python-internal.h: Add declarations for new functions.
3327 * python/python.c (_initialize_python): Invoke
3328 gdbpy_initialize_xmethods.
3329 * python/lib/gdb/__init__.py (xmethods): New
3330 attribute.
3331 * python/lib/gdb/xmethod.py: New file.
3332 * python/lib/gdb/command/xmethods.py: New file.
3333
58992dc5
SC
33342014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3335
3336 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3337 best match method returned by find_overload_match is an xmethod.
3338 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3339 the best matching operator returned by find_overload_match is an
3340 xmethod.
3341 * valops.c: #include "extension.h".
3342 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3343 Return void. The list of matching source methods is returned in
3344 "fn_list" and a vector of matching debug method workers is
3345 returned in "xm_worker_vec". Update all callers.
3346 (value_find_oload_method_list): Likewise.
3347 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3348 non-NULL, then the index of the best matching method in this
3349 vector is returned. Update all callers.
3350 (find_overload_match): Include xmethods while performing overload
3351 resolution.
3352
e81e7f5e
SC
33532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3354
3355 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3356 * extension-priv.h (struct extension_language_ops): Add the
3357 xmethod interface.
3358 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3359 get_matching_xmethod_workers, get_xmethod_argtypes,
3360 invoke_xmethod, free_xmethod_worker,
3361 free_xmethod_worker_vec): New functions.
3362 * extension.h: #include "common/vec.h".
3363 New function declarations.
3364 (struct xmethod_worker): New struct.
3365 (VEC (xmethod_worker_ptr)): New vector type.
3366 (xmethod_worker_ptr): New typedef.
3367 (xmethod_worker_vec): Likewise.
3368 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3369 builtin_type.
3370 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3371 (struct builtin_type): New field "xmethod".
3372 * valarith.c (value_ptradd): Assert that the value argument is not
3373 lval_xcallable.
3374 * valops.c (value_must_coerce_to_target): Return 0 for
3375 lval_xcallable values.
3376 * value.c (struct value): New field XM_WORKER in the field
3377 LOCATION.
3378 (value_address, value_raw_address): Return 0 for lval_xcallable
3379 values.
3380 (set_value_address): Assert that the value is not an
3381 lval_xcallable.
3382 (value_free): Free the associated xmethod worker when freeing
3383 lval_xcallable values.
3384 (set_value_component_location): Assert that the WHOLE value is not
3385 lval_xcallable.
3386 (value_of_xmethod, call_xmethod): New functions.
3387 * value.h: Declare "struct xmethod_worker".
3388 Declare new functions value_of_xmethod, call_xmethod.
3389
ef370185
JB
33902014-06-03 Joel Brobecker <brobecker@adacore.com>
3391 Pedro Alves <palves@redhat.com>
3392
3393 PR breakpoints/17000
3394 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3395 New function, extracted from software_breakpoint_inserted_here_p.
3396 (software_breakpoint_inserted_here_p): Replace factored out code
3397 by call to find_non_raw_software_breakpoint_inserted_here.
3398 (bp_target_info_copy_insertion_state): New function.
3399 (bkpt_insert_location): Handle the case of a single-step
3400 breakpoint already inserted at the same address.
3401 (bkpt_remove_location): Handle the case of a single-step
3402 breakpoint still inserted at the same address.
3403 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3404 breakpoint already inserted at the same address.
3405 (deprecated_remove_raw_breakpoint): Handle the case of a
3406 non-raw breakpoint still inserted at the same address.
3407 (find_single_step_breakpoint): New function, extracted from
3408 single_step_breakpoint_inserted_here_p.
3409 (find_single_step_breakpoint): New function,
3410 factored out from single_step_breakpoint_inserted_here_p.
3411 (single_step_breakpoint_inserted_here_p): Reimplement.
3412
1e2ccb61
BM
34132014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3414
3415 Pushed by Joel Brobecker <brobecker@adacore.com>
3416 * source.c (show_substitute_path_command): Fix display of matching
3417 substitution rules.
3418
d3448d85
GB
34192014-06-03 Gary Benson <gbenson@redhat.com>
3420
3421 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3422
06eb1586
DE
34232014-06-02 Doug Evans <xdje42@gmail.com>
3424
3425 Add parameter support for Guile.
3426 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3427 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3428 (scm-param.o): New rule.
3429 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3430 (gdbscm_misc_error): Declare.
3431 (gdbscm_canonicalize_command_name): Declare.
3432 (gdbscm_scm_to_host_string): Declare.
3433 (gdbscm_scm_from_host_string): Declare.
3434 (gdbscm_initialize_parameters): Declare.
3435 * guile/guile.c (initialize_gdb_module): Call
3436 gdbscm_initialize_parameters.
3437 * guile/lib/gdb.scm: Export parameter symbols.
3438 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3439 cmdscm_canonicalize_name and made public. All callers updated.
3440 * guile/scm-exception.c (gdbscm_misc_error): New function.
3441 * guile/scm-param.c: New file.
3442 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3443 (gdbscm_scm_to_host_string): New function.
3444 (gdbscm_scm_from_host_string): New function.
3445 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3446
e698b8c4
DE
34472014-06-02 Doug Evans <xdje42@gmail.com>
3448
3449 Add command support for Guile.
3450 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3451 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3452 (scm-cmd.o): New rule.
3453 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3454 (gdbscm_user_error_p): Declare.
3455 (gdbscm_parse_command_name): Declare.
3456 (gdbscm_valid_command_class_p): Declare.
3457 (gdbscm_initialize_commands): Declare.
3458 * guile/guile.c (initialize_gdb_module): Call
3459 gdbscm_initialize_commands.
3460 * guile/lib/gdb.scm: Export command symbols.
3461 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3462 (throw-user-error): New function.
3463 * guile/scm-cmd.c: New file.
3464 * guile/scm-exception.c (user_error_symbol): New static global.
3465 (gdbscm_user_error_p): New function.
3466 (gdbscm_initialize_exceptions): Set user_error_symbol.
3467 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3468
fb1f94b0
PM
34692014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3470
3471 * top.c (command_loop): Handle comments here...
3472 (command_line_input): ... not here.
3473
ded03782
DE
34742014-06-02 Doug Evans <xdje42@gmail.com>
3475
3476 Add progspace support for Guile.
3477 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3478 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3479 (scm-progspace.o): New rule.
3480 * guile/guile-internal.h (pspace_smob): New typedef.
3481 (psscm_pspace_smob_pretty_printers): Declare.
3482 (psscm_pspace_smob_from_pspace): Declare.
3483 (psscm_scm_from_pspace): Declare.
3484 * guile/guile.c (initialize_gdb_module): Call
3485 gdbscm_initialize_pspaces.
3486 * guile/lib/gdb.scm: Export progspace symbols.
3487 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3488 support.
3489 (append-pretty-printer!): Ditto.
3490 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3491 Implement.
3492 * guile/scm-progspace.c: New file.
3493
397998fc
AM
34942014-06-03 Alan Modra <amodra@gmail.com>
3495
3496 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3497 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3498
6aa5f3a6
DE
34992014-06-02 Doug Evans <dje@google.com>
3500
3501 Add support for skeletonless type units.
3502 * dwarf2read.c (struct dwarf2_per_objfile): New member
3503 n_allocated_type_units.
3504 (struct dwarf2_per_objfile) <tu_stats>: New member
3505 nr_all_type_units_reallocs.
3506 (create_signatured_type_table_from_index): Initialize
3507 n_allocated_type_units
3508 (create_all_type_units): Ditto.
3509 (add_type_unit): Move up in file. New arg slot.
3510 All callers updated. Increase space for all_type_units more
3511 efficiently.
3512 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3513 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3514 (lookup_dwp_signatured_type): Ditto.
3515 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3516 All callers updated.
3517 (build_type_psymtabs_1): Leave type_unit_groups as
3518 NULL if no TUs present.
3519 (print_tu_stats): New function.
3520 (process_skeletonless_type_unit): New function.
3521 (process_dwo_file_for_skeletonless_type_units): New
3522 function.
3523 (process_skeletonless_type_units): New function.
3524 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3525 Call print tu_stats if debugging enabled.
3526
41fac0cf
PA
35272014-06-02 Pedro Alves <palves@redhat.com>
3528
3529 * breakpoint.c (build_target_command_list): Don't build a command
3530 list if we have any duplicate location that isn't a dprintf.
3531
cd1608cc
PA
35322014-06-02 Pedro Alves <palves@redhat.com>
3533
3534 * breakpoint.c (dprintf_breakpoint_hit): New function.
3535 (initialize_breakpoint_ops): Install it as dprintf's
3536 breakpoint_hit method.
3537
486ef3b9
JB
35382014-06-02 Joel Brobecker <brobecker@adacore.com>
3539
3540 * source.c (substitute_path_rule_matches): Simplify using
3541 filename_ncmp instead of FILENAME_CMP.
3542
230cd560
JB
35432014-06-02 Joel Brobecker <brobecker@adacore.com>
3544
3545 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3546
16954d5d
LC
35472014-06-01 Ludovic Courtès <ludo@gnu.org>
3548
3549 * configure.ac: When Guile is available, check for the
3550 availability of 'scm_new_smob'.
3551 * configure, config.h.in: Regenerate.
3552 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3553 function.
3554
53e8a631
AB
35552014-05-30 Andrew Burgess <aburgess@broadcom.com>
3556
3557 * frame.c (struct frame_info): Add stop_string field.
3558 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3559 (get_prev_frame_always): Old content moved into
3560 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3561 TRY_CATCH, handle MEMORY_ERROR exceptions.
3562 (frame_stop_reason_string): New function definition.
3563 * frame.h (unwind_stop_reason_to_string): Extend comment to
3564 mention frame_stop_reason_string.
3565 (frame_stop_reason_string): New function declaration.
3566 * stack.c (frame_info): Switch to frame_stop_reason_string.
3567 (backtrace_command_1): Switch to frame_stop_reason_string.
3568 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3569 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3570 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3571
70e38b8e
AB
35722014-05-30 Andrew Burgess <aburgess@broadcom.com>
3573
3574 * frame.c (frame_stop_reason_string): Rename to ...
3575 (unwind_stop_reason_to_string): this.
3576 * frame.h (frame_stop_reason_string): Rename to ...
3577 (unwind_stop_reason_to_string): this.
3578 * stack.c (frame_info): Update call to frame_stop_reason_string.
3579 (backtrace_command_1): Likewise.
3580 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3581 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3582
938f0e2f
AB
35832014-05-30 Andrew Burgess <aburgess@broadcom.com>
3584
3585 * frame.c (remove_prev_frame): New function.
3586 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3587 remove_prev_frame.
3588
a09dd441
PA
35892014-05-29 Pedro Alves <palves@redhat.com>
3590
3591 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3592 and make it const. When a single-step decays to a continue,
3593 clear 'step', not 'hw_step'. Pass whether the caller wanted
3594 to step to user_visible_resume_ptid, not what we ask the
3595 target to do.
3596
bdc36728
PA
35972014-05-29 Pedro Alves <palves@redhat.com>
3598
3599 * infrun.c (process_event_stop_test, handle_step_into_function)
3600 (handle_step_into_function_backward): Adjust.
3601 Don't set the even thread's stop_step and call stop_waiting before
3602 calling end_stepping_range. Instead do that ...
3603 (end_stepping_range): ... here. Take an ecs pointer parameter.
3604
22bcd14b
PA
36052014-05-29 Pedro Alves <palves@redhat.com>
3606
3607 * infrun.c (stop_stepping): Rename to ...
3608 (stop_waiting): ... this.
3609 (proceed): Update comment.
3610 (process_event_stop_test, handle_inferior_event)
3611 (handle_signal_stop, handle_step_into_function)
3612 (handle_step_into_function_backward): Update.
3613
4ae57c05
PA
36142014-05-29 Pedro Alves <palves@redhat.com>
3615
3616 * infcall.c (run_inferior_call): Don't check whether the current
3617 thread is running after the proceed call.
3618
329ea579
PA
36192014-05-29 Pedro Alves <palves@redhat.com>
3620 Tom Tromey <tromey@redhat.com>
3621
3622 * NEWS: Mention "maint set target-async", "set mi-async", and that
3623 background execution commands are now always available.
3624 * target.h (target_async_permitted): Update comment.
3625 * target.c (target_async_permitted, target_async_permitted_1):
3626 Default to 1.
3627 (set_target_async_command): Rename to ...
3628 (maint_set_target_async_command): ... this.
3629 (show_target_async_command): Rename to ...
3630 (maint_show_target_async_command): ... this.
3631 (_initialize_target): Adjust.
3632 * infcmd.c (prepare_execution_command): Make extern.
3633 * inferior.h (prepare_execution_command): Declare.
3634 * infrun.c (set_observer_mode): Leave target async alone.
3635 * mi/mi-interp.c (mi_interpreter_init): Install
3636 mi_on_sync_execution_done as sync_execution_done observer.
3637 (mi_on_sync_execution_done): New function.
3638 (mi_execute_command_input_handler): Don't print the prompt if we
3639 just started a synchronous command with an async target.
3640 (mi_on_resume): Check sync_execution before printing prompt.
3641 * mi/mi-main.h (mi_async_p): Declare.
3642 * mi/mi-main.c: Include gdbcmd.h.
3643 (mi_async_p): New function.
3644 (mi_async, mi_async_1): New globals.
3645 (set_mi_async_command, show_mi_async_command, mi_async): New
3646 functions.
3647 (exec_continue): Call prepare_execution_command.
3648 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3649 (mi_execute_async_cli_command): Use mi_async_p.
3650 (_initialize_mi_main): Install "set mi-async". Make
3651 "target-async" a deprecated alias.
3652
92bcb5f9
PA
36532014-05-29 Pedro Alves <palves@redhat.com>
3654
3655 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3656 (_initialize_cli_interp): Adjust.
3657 * event-loop.c: Include "observer.h".
3658 (start_event_loop): Notify 'command_error' observers instead of
3659 calling display_gdb_prompt. Remove FIXME comment.
3660 * event-top.c (display_gdb_prompt): Remove call into the
3661 interpreters.
3662 * inf-loop.c: Include "observer.h".
3663 (inferior_event_handler): Notify 'command_error' observers instead
3664 of calling display_gdb_prompt.
3665 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3666 observers instead of calling display_gdb_prompt.
3667 * interps.c (interp_set): Don't call display_gdb_prompt.
3668 (current_interp_display_prompt_p): Delete.
3669 * interps.h (interp_prompt_p): Delete declaration.
3670 (interp_prompt_p_ftype): Delete.
3671 (struct interp_procs) <prompt_proc_p>: Delete field.
3672 (current_interp_display_prompt_p): Delete declaration.
3673 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3674 (_initialize_mi_interp): Adjust.
3675 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3676 'command_error' observers.
3677 (tui_on_sync_execution_done, tui_on_command_error): New
3678 functions.
3679 (tui_display_prompt_p): Delete.
3680 (_initialize_tui_interp): Adjust.
3681
fd664c91
PA
36822014-05-29 Pedro Alves <palves@redhat.com>
3683
3684 PR gdb/13860
3685 * cli/cli-interp.c: Include infrun.h and observer.h.
3686 (cli_uiout, cli_interp): New globals.
3687 (cli_on_signal_received, cli_on_end_stepping_range)
3688 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3689 functions.
3690 (cli_interpreter_init): Install them as 'end_stepping_range',
3691 'signal_received' 'signal_exited', 'exited' and 'no_history'
3692 observers.
3693 (_initialize_cli_interp): Remove cli_interp local.
3694 * infrun.c (handle_inferior_event): Call the several stop reason
3695 observers instead of printing the stop reason directly.
3696 (end_stepping_range): New function.
3697 (print_end_stepping_range_reason, print_signal_exited_reason)
3698 (print_exited_reason, print_signal_received_reason)
3699 (print_no_history_reason): Make static, and add an uiout
3700 parameter. Print to that instead of to CURRENT_UIOUT.
3701 * infrun.h (print_end_stepping_range_reason)
3702 (print_signal_exited_reason, print_exited_reason)
3703 (print_signal_received_reason print_no_history_reason): New
3704 declarations.
3705 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3706 'mi_uiout'.
3707 <cli_uiout>: New field.
3708 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3709 uiout for CLI output. Install 'signal_received',
3710 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3711 observers.
3712 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3713 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3714 (mi_on_no_history): New functions.
3715 (ui_out_free_cleanup): Delete function.
3716 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3717 instead use the one already stored in the MI interpreter data.
3718 (mi_ui_out): Adjust.
3719 * tui/tui-interp.c: Include infrun.h and observer.h.
3720 (tui_interp): New global.
3721 (tui_on_signal_received, tui_on_end_stepping_range)
3722 (tui_on_signal_exited, tui_on_exited)
3723 (tui_on_no_history): New functions.
3724 (tui_init): Install them as 'end_stepping_range',
3725 'signal_received' 'signal_exited', 'exited' and 'no_history'
3726 observers.
3727 (_initialize_tui_interp): Delete tui_interp local.
3728
8817a6f2
PA
37292014-05-29 Pedro Alves <palves@redhat.com>
3730
3731 PR gdb/15713
3732 * linux-nat.c (linux_nat_resume_callback): Rename the second
3733 parameter to 'except'. Skip LP if it points to EXCEPT.
3734 (linux_nat_resume): Don't mark the event lwp as not stopped
3735 before resuming sibling lwps. Instead ask
3736 linux_nat_resume_callback to skip the event lwp. Mark it as not
3737 stopped after actually resuming it.
3738 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3739 resuming it.
3740 (wait_lwp): Mark the lwp as stopped here.
3741 (stop_wait_callback): Mark the lwp as not stopped right after
3742 resuming it. Don't mark lwps as stopped here.
3743 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3744 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3745
251bde03
PA
37462014-05-29 Pedro Alves <palves@redhat.com>
3747
3748 PR PR15693
3749 * infrun.c (resume): Determine how much to resume depending on
3750 whether the caller wanted a step, not whether we can hardware step
3751 the target. Mark all threads that we intend to run as running,
3752 unless we're calling an inferior function.
3753 (normal_stop): If the thread is running an infcall, don't finish
3754 thread state.
3755 * target.c (target_resume): Don't mark threads as running here.
3756
7f3c0343
JB
37572014-05-28 Joel Brobecker <brobecker@adacore.com>
3758
3759 * serial.c (_initialize_serial): Remove support for
3760 the "set remotebaud" and "show remotebaud" commands.
3761 * NEWS: Add entry documenting the removal of that command.
3762
ee34b3f9
YQ
37632014-05-28 Yao Qi <yao@codesourcery.com>
3764
3765 * charset.c: Fix typo in comments.
3766
add6c04d
GB
37672014-05-27 Gary Benson <gbenson@redhat.com>
3768
3769 * utils.c (internal_vproblem): Prompt for a bug report.
3770
92c48fc5
AW
37712014-05-26 Andy Wingo <wingo@igalia.com>
3772
3773 * guile/scm-arch.c (arscm_mark_arch_smob):
3774 * guile/scm-block.c (bkscm_mark_block_smob)
3775 (bkscm_mark_block_syms_progress_smob):
3776 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3777 * guile/scm-exception.c (exscm_mark_exception_smob):
3778 * guile/scm-frame.c (frscm_mark_frame_smob):
3779 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3780 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3781 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3782 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3783 (ppscm_mark_pretty_printer_worker_smob):
3784 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3785 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3786 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3787 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3788 mark functions.
3789 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3790 function.
3791
b2715b27
AW
37922014-05-26 Andy Wingo <wingo@igalia.com>
3793 Doug Evans <xdje42@gmail.com>
3794
3795 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3796 empty_base_class. All uses updated.
3797 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3798 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3799 Adapt all callers.
3800 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3801 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3802 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3803 (gdbscm_gsmob_has_property_p, add_property_name)
3804 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3805 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3806 (gdb-object-has-property?, gdb-object-properties): Remove.
3807 (gdb-object-kind): Renamed from gsmob-kind.
3808
214ab2da
AW
38092014-05-26 Andy Wingo <wingo@igalia.com>
3810
3811 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3812 * configure: Regenerate.
3813
589fdceb
MM
38142014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3815
3816 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3817
67b5c0c1
MM
38182014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3819
3820 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3821 (replay_memory_access_read_only, replay_memory_access_read_write)
3822 (replay_memory_access_types, replay_memory_access)
3823 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3824 (cmd_set_record_btrace, cmd_show_record_btrace)
3825 (cmd_show_replay_memory_access): New.
3826 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3827 (record_btrace_remove_breakpoint): Replace
3828 record_btrace_allow_memory_access with replay_memory_access.
3829 (_initialize_record_btrace): Add commands.
3830 * NEWS: Announce it.
3831
036cd381
RR
38322014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3833
3834 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3835
c77c1e42
RR
38362014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3837
3838 * MAINTAINERS (Write After Approval): Move self back from
3839 paper trail.
3840
45741a9c
PA
38412014-05-22 Pedro Alves <palves@redhat.com>
3842
3843 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3844 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3845 (disable_randomization, enum exec_direction_kind)
3846 (execution_direction, stop_registers, start_remote)
3847 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3848 (wait_for_inferior, normal_stop, get_last_target_status)
3849 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3850 (insert_step_resume_breakpoint_at_sal)
3851 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3852 (set_step_info, print_stop_event, signal_stop_state)
3853 (signal_print_state, signal_pass_state, signal_stop_update)
3854 (signal_print_update, signal_pass_update)
3855 (update_signals_program_target, clear_exit_convenience_vars)
3856 (displaced_step_dump_bytes, update_observer_mode)
3857 (signal_catch_update, gdb_signal_from_command): Move
3858 declarations ...
3859 * infrun.h: ... to this new file.
3860 * amd64-tdep.c: Include infrun.h.
3861 * annotate.c: Include infrun.h.
3862 * arch-utils.c: Include infrun.h.
3863 * arm-linux-tdep.c: Include infrun.h.
3864 * arm-tdep.c: Include infrun.h.
3865 * break-catch-sig.c: Include infrun.h.
3866 * breakpoint.c: Include infrun.h.
3867 * common/agent.c: Include infrun.h instead of inferior.h.
3868 * corelow.c: Include infrun.h.
3869 * event-top.c: Include infrun.h.
3870 * go32-nat.c: Include infrun.h.
3871 * i386-tdep.c: Include infrun.h.
3872 * inf-loop.c: Include infrun.h.
3873 * infcall.c: Include infrun.h.
3874 * infcmd.c: Include infrun.h.
3875 * infrun.c: Include infrun.h.
3876 * linux-fork.c: Include infrun.h.
3877 * linux-nat.c: Include infrun.h.
3878 * linux-thread-db.c: Include infrun.h.
3879 * monitor.c: Include infrun.h.
3880 * nto-tdep.c: Include infrun.h.
3881 * procfs.c: Include infrun.h.
3882 * record-btrace.c: Include infrun.h.
3883 * record-full.c: Include infrun.h.
3884 * remote-m32r-sdi.c: Include infrun.h.
3885 * remote-mips.c: Include infrun.h.
3886 * remote-notif.c: Include infrun.h.
3887 * remote-sim.c: Include infrun.h.
3888 * remote.c: Include infrun.h.
3889 * reverse.c: Include infrun.h.
3890 * rs6000-tdep.c: Include infrun.h.
3891 * s390-linux-tdep.c: Include infrun.h.
3892 * solib-irix.c: Include infrun.h.
3893 * solib-osf.c: Include infrun.h.
3894 * solib-svr4.c: Include infrun.h.
3895 * target.c: Include infrun.h.
3896 * top.c: Include infrun.h.
3897 * windows-nat.c: Include infrun.h.
3898 * mi/mi-interp.c: Include infrun.h.
3899 * mi/mi-main.c: Include infrun.h.
3900 * python/py-threadevent.c: Include infrun.h.
3901
98eb56a4
PA
39022014-05-22 Pedro Alves <palves@redhat.com>
3903
3904 * infrun.c (handle_inferior_event): Store the exit code for
3905 --return-child-result here, instead of ...
3906 (print_exited_reason): ... here.
3907
17b2616c
PA
39082014-05-21 Pedro Alves <palves@redhat.com>
3909
3910 PR gdb/13860
3911 * gdbthread.h (struct thread_control_state): New field
3912 `command_interp'.
3913 * infrun.c (follow_fork): Copy the new thread control field to the
3914 child fork thread.
3915 (clear_proceed_status_thread): Clear the new thread control field.
3916 (proceed): Set the new thread control field.
3917 * interps.h (command_interp): Declare.
3918 * interps.c (command_interpreter): New global.
3919 (command_interp): New function.
3920 (interp_exec): Set `command_interpreter' while here.
3921 * cli-out.c (cli_uiout_dtor): New function.
3922 (cli_ui_out_impl): Install it.
3923 * mi/mi-interp.c: Include cli-out.h.
3924 (mi_cmd_interpreter_exec): Add comment.
3925 (restore_current_uiout_cleanup): New function.
3926 (ui_out_free_cleanup): New function.
3927 (mi_on_normal_stop): If finishing an execution command started by
3928 a CLI command, or any kind of breakpoint-like event triggered,
3929 print the stop event to the output (CLI) stream.
3930 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3931
5166082f
PA
39322014-05-21 Pedro Alves <palves@redhat.com>
3933
3934 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3935 current source line having changed.
3936 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3937 * infrun.c (normal_stop): Adjust call to
3938 set_current_sal_from_frame.
3939 * source.c (clear_lines_listed_range): New function.
3940 (set_current_source_symtab_and_line, identify_source_line): Clear
3941 the lines listed range.
3942 (line_info): Handle the first "info line" after the current source
3943 line having changed.
3944 * stack.c (print_stack_frame): Remove center handling.
3945 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3946 center sal.line.
3947
c1ee2fb3
PA
39482014-05-21 Pedro Alves <palves@redhat.com>
3949
3950 * inf-child.c (inf_child_mourn_inferior): New function.
3951 * inf-child.h (inf_child_mourn_inferior): New declaration.
3952 * darwin-nat.c (darwin_mourn_inferior): Use
3953 inf_child_mourn_inferior.
3954 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3955 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3956 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3957 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3958 * windows-nat.c (windows_mourn_inferior): Likewise.
3959
5c6d4fb2
DE
39602014-05-21 Doug Evans <xdje42@gmail.com>
3961
250748cb 3962 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3963
4a2722c5
DE
39642014-05-21 Doug Evans <xdje42@gmail.com>
3965
17292b30 3966 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3967 (gdbscm_out_of_range_error): Ditto.
3968 (gdbscm_memory_error): Ditto.
250748cb
DE
3969 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3970 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3971 (gdbscm_out_of_range_error): Update.
3972 (gdbscm_memory_error): Update.
3973 (gdbscm_scm_to_target_string_unsafe): Delete.
3974
6a3cb8e8
PA
39752014-05-21 Pedro Alves <palves@redhat.com>
3976
3977 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3978 globals.
3979 (inf_child_open_target): New function.
3980 (inf_child_open): Use inf_child_open_target to push the target
3981 instead of erroring out.
3982 (inf_child_disconnect, inf_child_close)
3983 (inf_child_maybe_unpush_target): New functions.
3984 (inf_child_target): Install inf_child_disconnect and
3985 inf_child_close. Store a pointer to the returned object.
3986 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3987 declarations.
3988 * target.c (auto_connect_native_target): New global.
3989 (show_default_run_target): New function.
3990 (find_default_run_target): Return NULL if automatically connecting
3991 to the native target is disabled.
3992 (_initialize_target): Install set/show auto-connect-native-target.
3993 * NEWS: Mention "set auto-connect-native-target", and "target
3994 native".
3995 * linux-nat.c (super_close): New global.
3996 (linux_nat_close): Call super_close.
3997 (linux_nat_add_target): Store a pointer to the base class's
3998 to_close method.
3999 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4000 inf_child_maybe_unpush.
4001 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4002 already pushed.
4003 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4004 the inferior. Use inf_child_maybe_unpush_target.
4005 (inf_ttrace_attach): Don't push the target if it is already
4006 pushed.
4007 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4008 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4009 after mourning the inferior. Use inf_child_maybe_unpush_target.
4010 (darwin_attach_pid): Don't push the target if it is already
4011 pushed.
4012 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4013 mourning the inferior. Use inf_child_maybe_unpush_target.
4014 (gnu_detach): Use inf_child_maybe_unpush_target.
4015 * go32-nat.c (go32_create_inferior): Don't push the target if it
4016 is already pushed.
4017 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4018 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4019 (procfs_open): Rename to ...
4020 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4021 comments. Can target_preopen before changing node. Call
4022 inf_child_open_target to push the target explicitly.
4023 (procfs_attach): Don't push the target if it is already pushed.
4024 (procfs_detach): Use inf_child_maybe_unpush_target.
4025 (procfs_create_inferior): Don't push the target if it is already
4026 pushed.
4027 (nto_native_ops): New global.
4028 (procfs_open): Reimplement.
4029 (procfs_native_open): New function.
4030 (init_procfs_targets): Install procfs_native_open as to_open of
4031 "target native". Store a pointer to the "native" target in
4032 nto_native_ops.
4033 * procfs.c (procfs_attach): Don't push the target if it is already
4034 pushed.
4035 (procfs_detach): Use inf_child_maybe_unpush_target.
4036 (procfs_mourn_inferior): Only unpush the target after mourning the
4037 inferior. Use inf_child_maybe_unpush_target.
4038 (procfs_init_inferior): Don't push the target if it is already
4039 pushed.
4040 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4041 if it is already pushed.
4042
930ee1b1
PA
40432014-05-21 Pedro Alves <palves@redhat.com>
4044
4045 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4046 and "procfs" targets are now called "native" instead.
4047
1f5d1b13
PA
40482014-05-21 Pedro Alves <palves@redhat.com>
4049
4050 * go32-nat.c (go32_open): Delete.
4051 (go32_target): Don't override the to_open method.
4052
132f8e03
PA
40532014-05-21 Pedro Alves <palves@redhat.com>
4054
4055 * nto-procfs.c (procfs_can_run): New function.
4056 (nto_procfs_ops): New global.
4057 (init_procfs_targets): New, based on procfs_target. Install
4058 "target native" in addition to "target procfs".
4059 (_initialize_procfs): Call init_procfs_targets instead of adding
4060 the target here.
4061
03c136c3
PA
40622014-05-21 Pedro Alves <palves@redhat.com>
4063
4064 * windows-nat.c (windows_target): Don't override to_shortname,
4065 to_longname or to_doc.
4066
a635d0f3
PA
40672014-05-21 Pedro Alves <palves@redhat.com>
4068
4069 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4070 to_doc.
4071
4f9b5133
PA
40722014-05-21 Pedro Alves <palves@redhat.com>
4073
4074 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4075 to_shortname, to_longname or to_doc.
4076
bc85afde
PA
40772014-05-21 Pedro Alves <palves@redhat.com>
4078
4079 * go32-nat.c (go32_target): Don't override to_shortname,
4080 to_longname or to_doc.
4081
4ebfc96e
PA
40822014-05-21 Pedro Alves <palves@redhat.com>
4083
4084 * inf-child.c (inf_child_open): Remove mention of "child".
4085 (inf_child_target): Rename target to "native" instead of "child".
4086
2648dfed
AA
40872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4088
4089 * Makefile.in (SFILES): Delete "regset.c".
4090 (COMMON_OBS): Delete "regset.o".
4091 * regset.c: Remove.
4092 * regset.h (regset_alloc): Delete prototype.
4093
b13feb94
AA
40942014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4095
4096 * sparc-linux-tdep.c (sparc32_linux_gregset)
4097 (sparc32_linux_fpregset): New static regset structures.
4098 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4099 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4100 'fpregset' fields.
4101 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4102 (sparc64_linux_fpregset): New static regset structures.
4103 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4104 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4105 New static regset structures.
4106 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4107 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4108 New static regset structures.
4109 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4110 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4111 New static regset structures.
4112 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4113 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4114 New static regset structures.
4115 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4116
b4fd25c9
AA
41172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4118
4119 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4120 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4121 register maps ("regmaps") from "*regset" to "*regmap". Do this
4122 for all regmap types and variables.
4123 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4124 (sparc32_linux_supply_core_gregset)
4125 (sparc32_linux_collect_core_gregset)
4126 (sparc32_linux_supply_core_fpregset)
4127 (sparc32_linux_collect_core_fpregset): Likewise.
4128 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4129 (sparc_gregmap, sparc_fpregmap): ... these.
4130 (sparc_supply_gregset, sparc_collect_gregset)
4131 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4132 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4133 (_initialize_sparc_nat): Rename regmaps.
4134 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4135 (sparc_gregmap, sparc_fpregmap): ... these.
4136 (sparc_supply_gregset, sparc_collect_gregset)
4137 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4138 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4139 Rename macros to...
4140 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4141 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4142 Likewise.
4143 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4144 Rename to...
4145 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4146 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4147 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4148 regmaps.
4149 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4150 (sparc32_bsd_fpregset): Rename to...
4151 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4152 (sparc32_bsd_fpregmap): ... these.
4153 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4154 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4155 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4156 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4157 (struct sparc_gregmap, struct sparc_fpregmap)
4158 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4159 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4160 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4161 (sparc32_supply_regset, sparc32_collect_gregset)
4162 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4163 prototypes.
4164 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4165 (sparc64_linux_ptrace_gregmap): ... this.
4166 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4167 (_initialize_sparc64_linux_nat): Rename regmaps.
4168 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4169 (sparc64_linux_core_gregmap): ... this.
4170 (sparc64_linux_supply_core_gregset)
4171 (sparc64_linux_collect_core_gregset)
4172 (sparc64_linux_supply_core_fpregset)
4173 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4174 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4175 (sparc64_sol2_fpregset): Rename to...
4176 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4177 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4178 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4179 regmaps.
4180 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4181 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4182 (sparc64_bsd_fpregset): Rename to...
4183 (struct sparc_gregmap, sparc64_sol2_gregmap)
4184 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4185 (sparc64_bsd_fpregmap): ... these.
4186 (sparc64_supply_gregset, sparc64_collect_gregset)
4187 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4188 prototypes.
4189 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4190 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4191 (sparc64fbsd_gregmap): ... this.
4192 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4193 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4194 Rename regmaps.
4195 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4196 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4197 (sparc64nbsd_collect_fpregset): Likewise.
4198 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4199 (sparc64nbsd_gregmap): ... this.
4200 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4201 regmaps.
4202 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4203 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4204 (sparc64obsd_gregmap): ... this.
4205 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4206 regmaps.
4207 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4208 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4209 (sparc32nbsd_gregmap): ... this.
4210 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4211 regmaps.
4212
8fea3224
AA
42132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4214
4215 * score-tdep.c (score7_linux_gregset): New static regset
4216 structure.
4217 (score7_linux_regset_from_core_section): Remove dynamic regset
4218 allocation.
4219 (score_gdbarch_init): Drop allocation of tdep structure.
4220 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4221
24534243
AA
42222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4223
4224 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4225 regset structures.
4226 (am33_regset_from_core_section): Remove dynamic regset
4227 allocations.
4228
b7195f27
AA
42292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4230
4231 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4232 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4233 structures.
4234 (mips_linux_regset_from_core_section): Remove dynamic regset
4235 allocations.
4236 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4237 'gregset64', 'fpregset', and 'fpregset64'.
4238 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4239 deleted tdep fields.
4240
ecc37a5a
AA
42412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4242
4243 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4244 regset structures.
4245 (amd64_regset_from_core_section): Remove dynamic regset
4246 allocations.
4247 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4248 structure.
4249 (amd64obsd_regset_from_core_section): Remove dynamic regset
4250 allocation.
4251 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4252 Likewise.
4253 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4254 x86-common regset supply function.
4255 * i386-tdep.c (i386_collect_gregset): Make static.
4256 (i386_gregset): New global regset structure.
4257 (i386_fpregset, i386_xstateregset): New static regset structures.
4258 (i386_regset_from_core_section): Remove dynamic regset
4259 allocations.
4260 (i386_gdbarch_init): Remove initialization of tdep fields
4261 'gregset', 'fpregset', and 'xstateregset'.
4262 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4263 'fpregset', and 'xstateregset'.
4264 (i386_collect_gregset): Remove prototype.
4265 (i386_gregset): New declaration.
4266 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4267 structure.
4268 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4269 allocation.
4270
b7611c43
AA
42712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4272
4273 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4274 (arm_linux_vfpregset): New static regset structures.
4275 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4276 regset structures.
4277 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4278 and 'vfpregset' fields.
4279
a069a2bd
AA
42802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4281
4282 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4283 (aarch64_linux_fpregset): New static regset structures.
4284 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4285 of regset structures.
4286 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4287 'fpregset' fields.
4288
09424cff
AA
42892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4290
4291 * regset.h (struct regset): Remove gdbarch field.
4292 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4293 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4294 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4295 Likewise.
4296 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4297 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4298 (ppc32_linux_vsxregset): Likewise.
4299 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4300 via the regcache instead of the regset.
4301 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4302 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4303 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4304 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4305 Likewise.
4306
3ca7dae4
AA
43072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4308
4309 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4310 Constify structures.
4311 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4312 (alphanbsd_aout_gregset): Likewise.
4313 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4314 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4315 Likewise.
4316 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4317 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4318 Likewise.
4319 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4320 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4321 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4322 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4323 * m88k-tdep.c (m88k_gregset): Likewise.
4324 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4325 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4326 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4327 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4328 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4329 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4330 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4331 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4332 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4333 Likewise.
4334 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4335 * sh-tdep.h (sh_corefile_gregset): Likewise.
4336 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4337 * vax-tdep.c (vax_gregset): Likewise.
4338
5876f503
JK
43392014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4340
4341 Fix TLS access for -static -pthread.
4342 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4343 (try_thread_db_load_1): Initialize it.
4344 (thread_db_get_thread_local_address): Call it if LM is zero.
4345 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4346 * target.h (struct target_ops) (to_get_thread_local_address): Add
4347 load_module_addr comment.
4348
0256a6ac
PA
43492014-05-21 Pedro Alves <palves@redhat.com>
4350
4351 * dcache.c (dcache_read_memory_partial): If reading the cache line
4352 fails, fallback to reading just the memory the caller wanted.
4353
227533ac
DE
43542014-05-20 Doug Evans <dje@google.com>
4355
4356 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4357 instead of get_current_arch.
4358
936d2992
PA
43592014-05-20 Pedro Alves <palves@redhat.com>
4360
4361 * NEWS: Mention that compare-sections now works with all targets.
4362
4363 * remote.c (PACKET_qCRC): New enum value.
4364 (remote_verify_memory): Don't send qCRC if the target has no
4365 execution. Use packet_support/packet_ok. If the target doesn't
4366 support the qCRC packet, fallback to a deep memory copy.
4367 (compare_sections_command): Say "target image" instead of "remote
4368 executable".
4369 (_initialize_remote): Add PACKET_qCRC to the list of config
4370 packets that have no associated command. Extend comment.
4371 * target.c (simple_verify_memory, default_verify_memory): New
4372 function.
4373 * target.h (struct target_ops) <to_verify_memory>: Default to
4374 default_verify_memory.
4375 (simple_verify_memory): New declaration.
4376 * target-delegates.c: Regenerate.
4377
e59fa00f
MM
43782014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4379
4380 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4381
f2205de0
HZ
43822014-05-20 Hui Zhu <hui@codesourcery.com>
4383 Yao Qi <yao@codesourcery.com>
4384
4385 PR backtrace/16558
4386 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4387 and change address of sp and pc.
4388
c4e54771
TT
43892014-05-19 Tom Tromey <tromey@redhat.com>
4390
4391 * gdbtypes.c (rank_function): Use XNEWVEC.
4392 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4393
73051182
DE
43942014-05-19 Doug Evans <dje@google.com>
4395
4396 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4397 build_type_unit_groups and moved closer to only caller. Remove
4398 arguments. All references updated. Remove outdated .gdb_index
4399 comment.
4400 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4401 build_type_psymtabs_1.
4402
8832e7e3
DE
44032014-05-19 Doug Evans <dje@google.com>
4404
4405 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4406 n_type_unit_groups, all_type_unit_groups. All uses removed.
4407 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4408 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4409 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4410 (add_type_unit_group_to_table): Delete.
4411
cd8ae15e
DE
44122014-05-19 Doug Evans <dje@google.com>
4413
4414 * eval.c (evaluate_subexp_standard): Add some comments.
4415
08f4850b
DE
44162014-05-17 Doug Evans <xdje42@gmail.com>
4417
4418 * progspace.c (remove_program_space): Delete, unused.
4419 * progspace.h (remove_program_space): Ditto.
4420
bed8455c
DE
44212014-05-17 Doug Evans <xdje42@gmail.com>
4422
4423 * inferior.c (prune_inferiors): Fix comment.
4424 (remove_inferior_command): Call prune_program_spaces.
4425
8d551b02
DE
44262014-05-16 Doug Evans <dje@google.com>
4427
4428 New command line option -D.
4429 * NEWS: Mention it.
4430 * main.c (set_gdb_data_directory): New function.
4431 (captured_main): Recognize -D. Flag error for --data-directory "".
4432 Call set_gdb_data_directory.
4433 (print_gdb_help): Print --data-directory, -D.
4434 * main.h (set_gdb_data_directory): Declare.
4435 * top.c (staged_gdb_datadir): New static global.
4436 (set_gdb_datadir): Call set_gdb_data_directory
4437 (show_gdb_datadir): New function.
4438 (init_main): Update init of data-directory parameter.
4439
18848e28
GF
44402014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4441
4442 Import the "dirfd" gnulib module.
4443 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4444 * gnulib/aclocal.m4: Update.
4445 * gnulib/config.in: Update.
4446 * gnulib/configure: Update.
4447 * gnulib/import/Makefile.am: Update.
4448 * gnulib/import/Makefile.in: Update.
4449 * gnulib/import/dirfd.c: New.
4450 * gnulib/import/m4/dirfd.m4: New.
4451 * gnulib/import/m4/gnulib-cache.m4: Update.
4452 * gnulib/import/m4/gnulib-comp.m4: Update.
4453
95c64f92
YQ
44542014-05-16 Pierre Muller <muller@sourceware.org>
4455 Yao Qi <yao@codesourcery.com>
4456
4457 * valprint.c (print_wchar): Move the code on checking whether
4458 W is a printable wide char to the default branch of switch
4459 statement below. Call wchar_printable instead of gdb_iswprint.
4460
cac395ea
TM
44612014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4462
19679eca 4463 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4464 ldr.w and ldrd instructions.
4465
83655187
DE
44662014-05-15 Doug Evans <dje@google.com>
4467
4468 * dwarf2read.c (read_structure_type): Delete outdated comments.
4469
dd756689
TT
44702014-05-14 Tom Tromey <tromey@redhat.com>
4471
4472 * macrocmd.c (print_macro_definition): Reindent.
4473
75ddda77
DE
44742014-05-13 Doug Evans <xdje42@gmail.com>
4475
4476 * python/py-cmd.c (cmdpy_completer): Add comment.
4477 (completers): Make const.
4478
b0f16a3e
SM
44792014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4480
4481 * infrun.c (resume): Remove should_resume (unused). Move up
4482 declaration of resume_ptid.
4483
033c3379
TT
44842014-05-13 Tom Tromey <tromey@redhat.com>
4485
4486 * language.h (unop_type_check): Remove.
4487 (binop_type_check): Don't declare.
4488
9b44a3a5
AA
44892014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4490
4491 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4492 call to regcache_raw_collect.
4493
303a33fa
SM
44942014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4495
4496 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4497 mi_console->quote as the quoting character.
4498
196100a0
SM
44992014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4500
4501 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4502
f989a1c8
TT
45032014-04-29 Tom Tromey <tromey@redhat.com>
4504
4505 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4506 "show debug varobj".
4507
9404b58f
KM
45082014-05-07 Kyle McMartin <kyle@redhat.com>
4509
4510 Pushed by Joel Brobecker <brobecker@adacore.com>.
4511 * aarch64-tdep.c (aarch64_software_single_step): New function.
4512 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4513 with aarch64_software_single_step.
4514
5e49ba57
JB
45152014-05-05 Joel Brobecker <brobecker@adacore.com>
4516
4517 GDB 7.7.1 released.
4518
c888a17d
KS
45192014-05-05 Keith Seitz <keiths@redhat.com>
4520
4521 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4522 variable or history value is successfully parsed.
4523
290a839c
YQ
45242014-05-05 Yao Qi <yao@codesourcery.com>
4525 Pedro Alves <palves@redhat.com>
4526
4527 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4528 address of blocks that intersects the requested range. Trim
4529 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4530 sections.
4531 * ctf.c (ctf_xfer_partial): Likewise.
4532
91256dc2
YQ
45332014-05-05 Yao Qi <yao@codesourcery.com>
4534
4535 * printcmd.c (display_command): Remove the check to
4536 target_has_execution.
4537
07284463
MK
45382014-05-03 Mark Kettenis <kettenis@gnu.org>
4539
4540 * ppcobsd-nat.c: Include "obsd-nat.h".
4541 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4542 add_target.
4543 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4544
30a1e6cc
SDJ
45452014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4546
4547 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4548 and 16-bit signed and unsigned arguments. Update comment.
4549 (stap_parse_probe_arguments): Extend code to handle such
4550 arguments. Use warning instead of complaint to notify about
4551 unrecognized bitness.
4552
f33da99a
SDJ
45532014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4554
4555 PR breakpoints/16889
4556 * stap-probe.c (stap_parse_probe_arguments): Simplify
4557 check for non-prefixed probes (i.e., probes whose
4558 arguments do not start with "N@"). Always set the
4559 argument type to a sane value.
4560
95cf3b38
DT
45612014-05-01 David Taylor <dtaylor@emc.com>
4562
4563 * remote.c (compare_sections_command): Add -r option to compare
4564 all loadable read-only sections.
4565
1cfdf534
SC
45662014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4567
4568 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4569 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4570 Update all callers.
4571 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4572 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4573 Remove unused CORE_ADDR argument. Update all callers.
4574
ca4f7f8b
PA
45752014-04-29 Pedro Alves <palves@redhat.com>
4576
4577 * remote.c (struct packet_config) <detect>: Extend comment.
4578 (add_packet_config_cmd): Don't set the config's detect or support
4579 fields here.
4580 (init_all_packet_configs): Also initialize the config's 'detect'
4581 field.
4582 (reset_all_packet_configs_support): New function.
4583 (remote_open_1): Call reset_all_packet_configs_support instead of
4584 init_all_packet_configs.
4585 (_initialize_remote): Initialize all packet configs. Assert that
4586 all packets have an associated command, except a few known
4587 outliers.
4588
11c1ba78
JB
45892014-04-28 Joel Brobecker <brobecker@adacore.com>
4590
4591 * dwarf2read.c (read_subrange_type): Handle dynamic
4592 DW_AT_lower_bound attributes.
4593
8739bc53
JB
45942014-04-28 Joel Brobecker <brobecker@adacore.com>
4595
4596 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4597 dynamic bounds before computing its upper bound.
4598 (ada_discrete_type_low_bound): Same as above with the lower bound.
4599
6f8a3220
JB
46002014-04-28 Joel Brobecker <brobecker@adacore.com>
4601
4602 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4603 range types. Adjust the array handling implementation to
4604 take advantage of this change.
4605 (resolve_dynamic_range): New function, mostly extracted from
4606 resolve_dynamic_bounds.
4607 (resolve_dynamic_array): New function, mostly extracted from
4608 resolve_dynamic_bounds.
4609 (resolve_dynamic_bounds): Delete.
4610 (resolve_dynamic_type): Reimplement. Add handling of
4611 TYPE_CODE_RANGE types.
4612
4d072ce4
JB
46132014-04-28 Joel Brobecker <brobecker@adacore.com>
4614
4615 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4616 handling of parallel ___XA types.
4617
52865325
JB
46182014-04-28 Joel Brobecker <brobecker@adacore.com>
4619
4620 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4621 unnecessary second call to static_unwrap_type.
4622
433e77fa
HZ
46232014-04-27 Hui Zhu <hui@codesourcery.com>
4624
4625 * stack.c (print_frame_info): Call do_gdb_disassembly with
4626 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4627
b51a69ee
DE
46282014-04-26 Doug Evans <xdje42@gmail.com>
4629
4630 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4631
7ae1a6a6
PA
46322014-04-25 Pedro Alves <palves@redhat.com>
4633
4634 PR server/16255
4635 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4636 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4637 and newline from built string.
4638 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4639 (linux_ptrace_attach_fail_reason): ... this.
4640 * linux-nat.c (linux_nat_attach): Adjust to use
4641 linux_ptrace_attach_fail_reason.
4642
4082afcc
PA
46432014-04-25 Pedro Alves <palves@redhat.com>
4644
4645 * remote.c (struct remote_state): Remove multi_process_aware,
4646 non_stop_aware, cond_tracepoints, cond_breakpoints,
4647 breakpoint_commands, fast_tracepoints, static_tracepoints,
4648 install_in_trace, disconnected_tracing,
4649 enable_disable_tracepoints, string_tracing, and
4650 augmented_libraries_svr4_read fields.
4651 (remote_multi_process_p): Move further below in the file.
4652 (struct packet_config): Add comments.
4653 (update_packet_config): Delete function.
4654 (show_packet_config_cmd): Use packet_config_support.
4655 (add_packet_config_cmd): Use NULL as set callback.
4656 (packet_ok): "set remote foo-packet"-style commands no longer
4657 change config->supported -- adjust.
4658 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4659 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4660 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4661 (PACKET_QNonStop, PACKET_multiprocess_feature)
4662 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4663 (PACKET_DisconnectedTracing_feature)
4664 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4665 (set_remote_protocol_packet_cmd): Delete function.
4666 (packet_config_support, packet_support): New functions.
4667 (set_remote_protocol_Z_packet_cmd): Don't call
4668 update_packet_config.
4669 (remote_query_attached, remote_pass_signals)
4670 (remote_program_signals, remote_threads_info)
4671 (remote_threads_extra_info, remote_start_remote): Use
4672 packet_support.
4673 (remote_start_remote): Use packet_config_support and
4674 packet_support.
4675 (init_all_packet_configs): Set all packets to unknown support,
4676 instead of calling update_packet_config.
4677 (remote_check_symbols): Use packet_support.
4678 (remote_supported_packet): Unconditionally set the packet config's
4679 support status.
4680 (remote_multi_process_feature, remote_non_stop_feature)
4681 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4682 (remote_breakpoint_commands_feature)
4683 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4684 (remote_install_in_trace_feature)
4685 (remote_disconnected_tracing_feature)
4686 (remote_enable_disable_tracepoint_feature)
4687 (remote_string_tracing_feature)
4688 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4689 (remote_protocol_features): Adjust to use remote_supported_packet
4690 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4691 "ConditionalTracepoints", "ConditionalBreakpoints",
4692 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4693 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4694 "EnableDisableTracepoints", and "tracenz".
4695 (remote_query_supported): Use packet_support.
4696 (remote_open_1): Adjust.
4697 (extended_remote_attach_1): Use packet_support. Switch on the
4698 result of packet_ok instead of checking whether the packet ended
4699 up disabled.
4700 (remote_vcont_resume): Use packet_support.
4701 (remote_resume, remote_stop_ns, fetch_register_using_p)
4702 (remote_prepare_to_store, store_register_using_P)
4703 (check_binary_download, remote_write_bytes): Use packet_support.
4704 (remote_vkill): Use packet_support. Switch on the result of
4705 packet_ok instead of checking whether the packet ended up
4706 disabled.
4707 (extended_remote_supports_disable_randomization): Use
4708 packet_support.
4709 (extended_remote_run): Switch on the result of packet_ok instead
4710 of checking whether the packet ended up disabled.
4711 (remote_insert_breakpoint, remote_remove_breakpoint)
4712 (remote_insert_watchpoint, remote_remove_watchpoint)
4713 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4714 packet_support.
4715 (remote_search_memory): Use packet_config_support.
4716 (remote_get_thread_local_address, remote_get_tib_address)
4717 (remote_hostio_send_command, remote_can_execute_reverse): Use
4718 packet_support.
4719 (remote_supports_cond_tracepoints)
4720 (remote_supports_cond_breakpoints)
4721 (remote_supports_fast_tracepoints)
4722 (remote_supports_static_tracepoints)
4723 (remote_supports_install_in_trace)
4724 (remote_supports_enable_disable_tracepoint)
4725 (remote_supports_string_tracing)
4726 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4727 the packet config says the feature is enabled or disabled.
4728 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4729 (remote_get_trace_status): Use packet_support.
4730 (remote_set_disconnected_tracing): Adjust to check whether the
4731 feature is enabled with packet_support.
4732 (remote_set_trace_buffer_size, remote_use_agent)
4733 (remote_can_use_agent, remote_supports_btrace): Use
4734 packet_support.
4735 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4736 Use packet_config_support.
4737 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4738 the packet config says the feature is enabled or disabled.
4739 (set_range_stepping): Use packet_support.
4740
bdb52a22
TT
47412014-04-25 Tom Tromey <tromey@redhat.com>
4742
4743 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4744 argument.
4745
e9475ead
SA
47462014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4747
4748 * NEWS: Mention support for C99 variable length arrays.
4749
82eacd52
JB
47502014-04-24 Joel Brobecker <brobecker@adacore.com>
4751
4752 * ada-lang.c (standard_exc): Expand introductory comment.
4753
01f9f808
MS
47542014-04-24 Michael Sturm <michael.sturm@mintel.com>
4755 Walfred Tedeschi <walfred.tedeschi@intel.com>
4756
4757 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4758 AVX512 registers.
4759 (amd64_linux_read_description): Add code to handle AVX512 xstate
4760 mask and return respective tdesc.
4761 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4762 and features/i386/x32-avx512-linux.c.
4763 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4764 (amd64_linux_core_read_description): Add code to handle AVX512
4765 xstate mask and return respective tdesc.
4766 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4767 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4768 calculation.
4769 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4770 (tdesc_amd64_avx512_linux): New prototype.
4771 (tdesc_x32_avx512_linux): Likewise.
4772 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4773 features/i386/x32-avx512.c.
4774 (amd64_ymm_avx512_names): New register names for pseudo
4775 registers YMM16-31.
4776 (amd64_ymmh_avx512_names): New register names for raw registers
4777 YMMH16-31.
4778 (amd64_k_names): New register names for K registers.
4779 (amd64_zmmh_names): New register names for ZMM raw registers.
4780 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4781 (amd64_xmm_avx512_names): New register names for XMM16-31
4782 registers.
4783 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4784 registers.
4785 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4786 if feature is present.
4787 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4788 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4789 (AMD64_NUM_REGS): Adjust to new number of registers.
4790 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4791 registers supplied via XSTATE by AVX512 registers.
4792 (i386_linux_read_description): Add case for AVX512.
4793 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4794 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4795 (i386_linux_core_read_description): Add case for AVX512.
4796 (i386_linux_init_abi): Install supported register note section
4797 for AVX512.
4798 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4799 AVX512.
4800 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4801 registers to be number of zmm7h + 1.
4802 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4803 * i386-tdep.c: Include features/i386/i386-avx512.c.
4804 (i386_zmm_names): Add ZMM pseudo register names array.
4805 (i386_zmmh_names): Add ZMM raw register names array.
4806 (i386_k_names): Add K raw register names array.
4807 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4808 registers. AVX512 has 16 more ZMM registers than there are YMM
4809 registers.
4810 (i386_zmmh_regnum_p): Add function to look up register number of
4811 ZMM raw registers.
4812 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4813 (i386_k_regnum_p): Likewise for K raw registers.
4814 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4815 registers added by AVX512.
4816 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4817 registers added by AVX512.
4818 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4819 added by AVX512.
4820 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4821 (i386_pseudo_register_name): Add ZMM pseudo registers.
4822 (i386_zmm_type): Construct and return vector registers type for ZMM
4823 registers.
4824 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4825 ZMM0-31 pseudo registers and K registers.
4826 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4827 and YMM16-31 registers from register cache.
4828 (i386_pseudo_register_write): Add code to write K, ZMM and
4829 YMM16-31 registers.
4830 (i386_register_reggroup_p): Add code to include/exclude AVX512
4831 registers in/from respective register groups.
4832 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4833 registers if feature is present in xcr0.
4834 (i386_gdbarch_init): Add code to initialize AVX512 feature
4835 variables in tdep structure, wire in pseudo registers and call
4836 initialize_tdesc_i386_avx512.
4837 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4838 variables.
4839 (i386_regnum): Add AVX512 registers.
4840 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4841 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4842 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4843 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4844 512 bits wide.
4845 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4846 (i386_ymm_avx512_regnum_p): Likewise.
4847 (i386_k_regnum_p): Likewise.
4848 (i386_zmm_regnum_p): Likewise.
4849 (i386_zmmh_regnum_p): Likewise.
4850 * i387-tdep.c : Update year in copyright notice.
4851 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4852 XSAVE buffer.
4853 (XSAVE_YMM_AVX512_ADDR): New macro.
4854 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4855 XSAVE buffer.
4856 (XSAVE_XMM_AVX512_ADDR): New macro.
4857 (xsave_avx512_k_offset): New table for K register offsets in
4858 XSAVE buffer.
4859 (XSAVE_AVX512_K_ADDR): New macro.
4860 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4861 in XSAVE buffer.
4862 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4863 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4864 buffer.
4865 (i387_collect_xsave): Add code to collect AVX512 registers from
4866 XSAVE buffer.
4867 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4868 of XMM16-31 registers.
4869 (I387_NUM_K_REGS): New define for number of K registers.
4870 (I387_K0_REGNUM): New define for K0 register number.
4871 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4872 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4873 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4874 registers.
4875 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4876 (I387_XMM16_REGNUM): New define for XMM16 register number.
4877 (I387_YMM0_REGNUM): New define for YMM0 register number.
4878 (I387_KEND_REGNUM): New define for last K register number.
4879 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4880 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4881 number.
4882 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4883 number.
4884 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4885 size.
4886 * features/Makefile: Add AVX512 related files.
4887 * features/i386/32bit-avx512.xml: New file.
4888 * features/i386/64bit-avx512.xml: Likewise.
4889 * features/i386/amd64-avx512-linux.c: Likewise.
4890 * features/i386/amd64-avx512-linux.xml: Likewise.
4891 * features/i386/amd64-avx512.c: Likewise.
4892 * features/i386/amd64-avx512.xml: Likewise.
4893 * features/i386/i386-avx512-linux.c: Likewise.
4894 * features/i386/i386-avx512-linux.xml: Likewise.
4895 * features/i386/i386-avx512.c: Likewise.
4896 * features/i386/i386-avx512.xml: Likewise.
4897 * features/i386/x32-avx512-linux.c: Likewise.
4898 * features/i386/x32-avx512-linux.xml: Likewise.
4899 * features/i386/x32-avx512.c: Likewise.
4900 * features/i386/x32-avx512.xml: Likewise.
4901 * regformats/i386/amd64-avx512-linux.dat: New file.
4902 * regformats/i386/amd64-avx512.dat: Likewise.
4903 * regformats/i386/i386-avx512-linux.dat: Likewise.
4904 * regformats/i386/i386-avx512.dat: Likewise.
4905 * regformats/i386/x32-avx512-linux.dat: Likewise.
4906 * regformats/i386/x32-avx512.dat: Likewise.
4907 * NEWS: Add note about new support for AVX512.
4908
4909
08351840
PA
49102014-04-23 Pedro Alves <palves@redhat.com>
4911
4912 * breakpoint.c (insert_bp_location): Tolerate errors if the
4913 breakpoint is set in a user-loaded objfile.
4914 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4915 location is marked shlib_disabled. If the breakpoint is set in a
4916 user-loaded objfile is a GDB-side memory breakpoint, validate it
4917 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4918 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4919 flag.
4920 * mem-break.c (memory_validate_breakpoint): New function.
4921 * objfiles.c (userloaded_objfile_contains_address_p): New
4922 function.
4923 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4924 * target.h (memory_validate_breakpoint): New declaration.
4925
076855f9
PA
49262014-04-23 Pedro Alves <palves@redhat.com>
4927
4928 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4929 the breakpoint is set in a shared library, only suppress
4930 errors for software breakpoints, not hardware breakpoints.
4931
483805cf
PA
49322014-04-22 Pedro Alves <palves@redhat.com>
4933
4934 * infrun.c (schedlock_applies): New function, factored out from
4935 find_thread_needs_step_over.
4936 (find_thread_needs_step_over): Use it.
4937 (switch_back_to_stepped_thread): Always clear trap_expected if the
4938 step over is finished. Return early if scheduler locking applies.
4939 Look for the stepping thread and a potential step-over thread with
4940 a single loop.
4941 (currently_stepping_or_nexting_callback): Delete.
4942
a75fef0e
NC
49432014-04-22 Nick Clifton <nickc@redhat.com>
4944
4945 * NEWS: Mention that ARM sim now supports tracing.
4946
48b6e87e
YQ
49472014-04-22 Yao Qi <yao@codesourcery.com>
4948
4949 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4950 to ...
4951 * tracefile.c (tracefile_fetch_registers): ... it. New
4952 function.
4953 * tracefile.h (tracefile_fetch_registers): Declare.
4954 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4955 tracefile_fetch_registers.
4956
17617f2d
EZ
49572014-04-19 Eli Zaretskii <eliz@gnu.org>
4958
4959 PR gdb/14018
4960 * windows-nat.c (thread_rec): Don't display a warning when
4961 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4962 fails for any reason, set th->suspended to -1, so that we don't
4963 try to resume such a thread. Also, don't return NULL in these
4964 cases, to avoid completely ruin the session due to "PC register is
4965 not available" error.
4966 (do_windows_fetch_inferior_registers): Check errors in
4967 GetThreadContext call.
4968 (windows_continue): Accept an additional argument KILLED; if not
4969 zero, ignore errors in the SetThreadContext call, since the
4970 inferior was killed and is shutting down.
4971 (windows_resume, get_windows_debug_event)
4972 (windows_create_inferior, windows_mourn_inferior)
4973 (windows_kill_inferior): All callers of windows_continue changed
4974 to adjust to its new calling sequence.
4975
5723a6fd
YQ
49762014-04-19 Yao Qi <yao@codesourcery.com>
4977
4978 * ctf.c (ctf_open): Call post_create_inferior.
4979
614d5099
YQ
49802014-04-19 Yao Qi <yao@codesourcery.com>
4981
4982 * ctf.c (handle_id): New static variable.
4983 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4984 value. Get the declaration of event "register" and get length
4985 of field "contents".
4986
dac3e710
YQ
49872014-04-19 Yao Qi <yao@codesourcery.com>
4988
4989 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4990
2bca57ba
SC
49912014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4992
4993 * valops.c (oload_method_static): Remove unnecessary argument
4994 METHOD. Update all callers.
4995
51d48146
PA
49962014-04-18 Pedro alves <palves@redhat.com>
4997 Tom Tromey <tromey@redhat.com>
4998
4999 PR backtrace/15558
5000 * frame.c (get_prev_frame_1): Rename to ...
5001 (get_prev_frame_always): ... this, and make extern. Adjust.
5002 (skip_artificial_frames): Use get_prev_frame_always.
5003 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5004 (get_frame_unwind_stop_reason): Adjust to rename.
5005 * frame.h (get_prev_frame_always): Declare.
5006 * inline-frame.c: Include frame.h.
5007 (inline_frame_this_id): Use get_prev_frame_always.
5008
1bdad2e0
TG
50092014-04-18 Tristan Gingold <gingold@adacore.com>
5010
5011 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5012 code by using bfd_mach_o_get_base_address.
5013
7ce16bd4
UW
50142014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5015
5016 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5017 (spu_ax_pseudo_register_collect): New function.
5018 (spu_ax_pseudo_register_push_stack): Likewise.
5019 (spu_dwarf_reg_to_regnum): Likewise.
5020 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5021
2ed3c037
UW
50222014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5023
5024 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5025 Replace FRAME argument with FRAME_ID.
5026 * gdbarch.c, gdbarch.h: Regenerate.
5027 * findvar.c (default_value_from_register): Add GDBARCH argument;
5028 replace FRAME by FRAME_ID. No longer call get_frame_id.
5029 (value_from_register): Update call to gdbarch_value_from_register.
5030 * value.h (default_value_from_register): Update prototype.
5031 * s390-linux-tdep.c (s390_value_from_register): Update interface
5032 and call to default_value_from_register.
5033 * spu-tdep.c (spu_value_from_register): Likewise.
5034
5035 * findvar.c (address_from_register): Remove TYPE argument.
5036 Do not call value_from_register; use gdbarch_value_from_register
5037 with null_frame_id instead.
5038 * value.h (address_from_register): Update prototype.
5039 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5040 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5041 address_from_register interface change.
5042
71e50e83
YQ
50432014-04-17 Yao Qi <yao@codesourcery.com>
5044
5045 * gdbtypes.h: Update comments to link to types and macros'
5046 definitions.
5047
7a23c549
SC
50482014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5049
5050 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5051
22869d73
KS
50522014-04-16 Keith Seitz <keiths@redhat.com>
5053
5054 PR gdb/15827
5055 * dwarf2read.c (skip_one_die): Check that all relative-offset
5056 sibling DIEs fall within range of the current reader's buffer.
5057 (read_partial_die): Likewise.
5058
c4f87ca6
KS
50592014-04-16 Keith Seitz <keiths@redhat.com>
5060
5061 PR c++/16597
5062 * cp-namespace.c (lookup_symbol_file): If the type name of
5063 `this' is NULL, return immediately.
5064
b50c8614
KS
50652014-04-14 Keith Seitz <keiths@redhat.com>
5066
5067 PR c++/16253
5068 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5069 from symbol_matches_domain in symtab.c. All local callers
5070 of symbol_matches_domain updated.
5071 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5072 search STRUCT_DOMAIN.
5073 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5074 independently. standard_lookup will do that automatically.
5075 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5076 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5077 (cp_lookup_symbol_in_namespace): Likewise.
5078 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5079 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5080 may return a STRUCT_DOMAIN match.
5081 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5082 * cp-support.c: Include language.h.
5083 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5084 VAR_DOMAIN.
5085 * psymtab.c (match_partial_symbol): Compare the requested
5086 domain with the symbol's domain directly.
5087 (lookup_partial_symbol): Likewise.
5088 * symtab.c (lookup_symbol_in_language): Explain when/why
5089 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5090 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5091 appropriate languages.
5092 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5093 and moved to ada-lang.c
5094 (lookup_block_symbol): Explain that this function only returns
5095 symbol matching the requested DOMAIN.
5096 Compare the requested domain with the symbol's domain directly.
5097 (iterate_over_symbols): Compare the requested domain with the
5098 symbol's domain directly.
5099 * symtab.h (symbol_matches_domain): Remove.
5100
3d567982
TT
51012014-04-14 Tom Tromey <tromey@redhat.com>
5102
5103 PR c++/15246:
5104 * c-exp.y (type_aggregate_p): New function.
5105 (qualified_name, classify_inner_name): Use it.
5106 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5107 and TYPE_TARGET_TYPE of an enum type.
5108 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5109 an enum type.
5110 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5111 handle TYPE_DECLARED_CLASS.
5112 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5113 types.
5114 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5115 * valops.c (enum_constant_from_type): New function.
5116 (value_aggregate_elt): Use it.
5117 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5118 TYPE_CODE_ENUM.
5119
c848d642
TT
51202014-04-14 Tom Tromey <tromey@redhat.com>
5121
5122 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5123 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5124 const.
5125 * value.h (value_aggregate_elt): Update.
5126
0626fc76
TT
51272014-04-14 Tom Tromey <tromey@redhat.com>
5128
5129 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5130
5ecaaa66
SA
51312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5132
5133 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5134 (evaluate_subexp_standard): Pass noside argument.
5135 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5136 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5137 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5138 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5139 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5140
1612e0c0
SA
51412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5142
5143 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5144 points to a constant blob.
5145
c451ebe5
SA
51462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5147
5148 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5149 property and store it as the high bound and flag the range accordingly.
5150 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5151 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5152 * gdbtypes.h (enum range_flags): New enum.
5153 (struct range_bounds): Add flags member.
5154
1d42e4c4
SA
51552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5156
5157 * c-typeprint.c (c_type_print_varspec_suffix): Added
5158 check for not yet resolved high bound. If unresolved, print
5159 "variable length" string to the console instead of random
5160 length.
5161
9f1f738a
SA
51622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5163
5164 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5165 value.
5166 (ada_template_to_fixed_record_type_1): Likewise.
5167 (ada_to_fixed_type_1): Likewise.
5168 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5169 (cp_print_value): Likewise.
5170 * d-valprint.c (dynamic_array_type): Likewise.
5171 * findvar.c (address_of_variable): Likewise.
5172 * jv-valprint.c (java_value_print): Likewise.
5173 * valops.c (value_ind): Likewise.
5174 * value.c (coerce_ref): Likewise.
5175
3c8452d4
SA
51762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5177
5178 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5179 value and retrieve the dynamic type size.
5180
4ad88275
SA
51812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5182
5183 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5184 passed to sizeof is dynamic evaluate the argument to compute the length.
5185
80180f79
SA
51862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5187 Joel Brobecker <brobecker@adacore.com>
5188
5189 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5190 (dwarf2_evaluate_property): New function.
5191 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5192 * dwarf2read.c (attr_to_dynamic_prop): New function.
5193 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5194 attribute.
5195 * gdbtypes.c: Include dwarf2loc.h.
5196 (is_dynamic_type): New function.
5197 (resolve_dynamic_type): New function.
5198 (resolve_dynamic_bounds): New function.
5199 (get_type_length): New function.
5200 (check_typedef): Use get_type_length to compute type length.
5201 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5202 (TYPE_LOW_BOUND_KIND): New macro.
5203 (is_dynamic_type): New function prototype.
5204 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5205 to resolve dynamic properties of the type. Update comment.
5206 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5207
a1556843
RH
52082014-04-14 Richard Henderson <rth@redhat.com>
5209
5210 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5211
0be03e84
DE
52122014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5213 Doug Evans <xdje42@gmail.com>
5214
5215 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5216 dereference TYPE_CODE_REF values.
5217
6b662e19
JB
52182014-04-11 Joel Brobecker <brobecker@adacore.com>
5219
5220 Revert the following changes due to regressions:
5221
5222 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5223 (dwarf2_evaluate_property): New function.
5224 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5225 * dwarf2read.c (attr_to_dynamic_prop): New function.
5226 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5227 attribute.
5228 * gdbtypes.c: Include dwarf2loc.h.
5229 (is_dynamic_type): New function.
5230 (resolve_dynamic_type): New function.
5231 (resolve_dynamic_bounds): New function.
5232 (get_type_length): New function.
5233 (check_typedef): Use get_type_length to compute type length.
5234 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5235 (TYPE_LOW_BOUND_KIND): New macro.
5236 (is_dynamic_type): New function prototype.
5237 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5238 to resolve dynamic properties of the type. Update comment.
5239 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5240
5241 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5242 passed to sizeof is dynamic evaluate the argument to compute the length.
5243
5244 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5245 value and retrieve the dynamic type size.
5246
5247 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5248 (ada_template_to_fixed_record_type_1): Likewise.
5249 (ada_to_fixed_type_1): Likewise.
5250 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5251 (cp_print_value): Likewise.
5252 * d-valprint.c (dynamic_array_type): Likewise.
5253 * eval.c (evaluate_subexp_with_coercion): Likewise.
5254 * findvar.c (address_of_variable): Likewise.
5255 * jv-valprint.c (java_value_print): Likewise.
5256 * valops.c (value_ind): Likewise.
5257 * value.c (coerce_ref): Likewise.
5258
5259 * c-typeprint.c (c_type_print_varspec_suffix): Added
5260 check for not yet resolved high bound. If unresolved, print
5261 "variable length" string to the console instead of random
5262 length.
5263
5264 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5265 property and store it as the high bound and flag the range accordingly.
5266 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5267 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5268 * gdbtypes.h (enum range_flags): New enum.
5269 (struct range_bounds): Add flags member.
5270
5271 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5272 points to a constant blob.
5273
5274 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5275 (evaluate_subexp_standard): Pass noside argument.
5276 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5277 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5278 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5279 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5280 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5281
245a5f0b
KS
52822014-04-11 Keith Seitz <keiths@redhat.com>
5283
5284 PR c++/16675
5285 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5286 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5287 reference types.
5288
3bce8237
SA
52892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5290
5291 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5292 (evaluate_subexp_standard): Pass noside argument.
5293 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5294 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5295 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5296 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5297 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5298
92b09522
SA
52992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5300
5301 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5302 points to a constant blob.
5303
e1969afb
SA
53042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5305
5306 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5307 property and store it as the high bound and flag the range accordingly.
5308 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5309 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5310 * gdbtypes.h (enum range_flags): New enum.
5311 (struct range_bounds): Add flags member.
5312
b86138fb
SA
53132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5314
5315 * c-typeprint.c (c_type_print_varspec_suffix): Added
5316 check for not yet resolved high bound. If unresolved, print
5317 "variable length" string to the console instead of random
5318 length.
5319
bcd629a4
SA
53202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5321
5322 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5323 (ada_template_to_fixed_record_type_1): Likewise.
5324 (ada_to_fixed_type_1): Likewise.
5325 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5326 (cp_print_value): Likewise.
5327 * d-valprint.c (dynamic_array_type): Likewise.
5328 * eval.c (evaluate_subexp_with_coercion): Likewise.
5329 * findvar.c (address_of_variable): Likewise.
5330 * jv-valprint.c (java_value_print): Likewise.
5331 * valops.c (value_ind): Likewise.
5332 * value.c (coerce_ref): Likewise.
5333
04b19544
SA
53342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5335
5336 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5337 value and retrieve the dynamic type size.
5338
26cb189f
SA
53392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5340
5341 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5342 passed to sizeof is dynamic evaluate the argument to compute the length.
5343
37c1ab67
SA
53442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5345
5346 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5347 (dwarf2_evaluate_property): New function.
5348 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5349 * dwarf2read.c (attr_to_dynamic_prop): New function.
5350 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5351 attribute.
5352 * gdbtypes.c: Include dwarf2loc.h.
5353 (is_dynamic_type): New function.
5354 (resolve_dynamic_type): New function.
5355 (resolve_dynamic_bounds): New function.
5356 (get_type_length): New function.
5357 (check_typedef): Use get_type_length to compute type length.
5358 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5359 (TYPE_LOW_BOUND_KIND): New macro.
5360 (is_dynamic_type): New function prototype.
5361 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5362 to resolve dynamic properties of the type. Update comment.
5363 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5364
729efb13
SA
53652014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5366
5367 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5368 declaring high/low bounds and change uses accordingly. Call
5369 create_range_type instead of create_static_range_type.
5370 * gdbtypes.c (create_range_type): New function.
5371 (create_range_type): Convert bounds into struct bound_prop and pass
5372 them to create_range_type.
5373 * gdbtypes.h (struct bound_prop): New struct.
5374 (create_range_type): New function prototype.
5375 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5376 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5377 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5378 part of the bound.
5379 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5380
0c9c3474
SA
53812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5382
5383 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5384 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5385 * ada-lang.c: All uses of create_range_type updated.
5386 * coffread.c: All uses of create_range_type updated.
5387 * dwarf2read.c: All uses of create_range_type updated.
5388 * f-exp.y: All uses of create_range_type updated.
5389 * m2-valprint.c: All uses of create_range_type updated.
5390 * mdebugread.c: All uses of create_range_type updated.
5391 * stabsread.c: All uses of create_range_type updated.
5392 * valops.c: All uses of create_range_type updated.
5393 * valprint.c: All uses of create_range_type updated.
5394
9d497a19
PA
53952014-04-10 Pedro Alves <palves@redhat.com>
5396
5397 * breakpoint.c (single_step_breakpoints)
5398 (single_step_gdbarch): Move up in the file.
5399 (one_breakpoint_xfer_memory): New function, factored out from ...
5400 (breakpoint_xfer_memory): ... here. Also process single-step
5401 breakpoints.
5402
15a9128a
TG
54032014-04-09 Tristan Gingold <gingold@adacore.com>
5404
5405 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5406 comments.
5407 (darwin_decode_exception_message): Free port only after use.
5408
9c97a070
PL
54092014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5410
5411 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5412 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5413 when setting the size of call_length.
5414
7af389b8
SC
54152014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5416
5417 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5418 dereference TYPE_CODE_REF values.
5419
86ad98c3
JB
54202014-04-07 Joel Brobecker <brobecker@adacore.com>
5421
5422 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5423 end of warning message.
5424
b0aeadb3
DE
54252014-04-03 Doug Evans <dje@google.com>
5426
5427 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5428 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5429
5979d6b6
AM
54302014-04-02 Alan Modra <amodra@gmail.com>
5431
5432 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5433 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5434 (struct symbol_file_add_from_memory_args): Add size field.
5435 (find_vdso_size): New function.
5436 (add_vsyscall_page): Attempt to find vdso size.
5437
0d60c288
DE
54382014-04-01 Doug Evans <dje@google.com>
5439
5440 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5441
a41f2563
TG
54422014-04-01 Tristan Gingold <gingold@adacore.com>
5443
5444 * darwin-nat.c (darwin_encode_reply): Add prototype.
5445 (darwin_decode_exception_message): Reply to unknown inferiors.
5446 (darwin_decode_message): Handle message by id. Ignore message
5447 to unknown inferior.
5448 (darwin_wait): Discard unknown messages, add debug trace.
5449
11a865c8
DE
54502014-03-31 Doug Evans <dje@google.com>
5451
5452 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5453 comp_dir_string.
5454
770e7fc7
DE
54552014-03-31 Doug Evans <dje@google.com>
5456
5457 New option "set print symbol-loading".
5458 * NEWS: Mention it.
5459 * solib.c (solib_read_symbols): Only print symbol loading messages
5460 if requested.
5461 (solib_add): If symbol loading is in "brief" mode, notify user
5462 symbols are being loaded.
5463 (reload_shared_libraries_1): Ditto.
5464 * symfile.c (print_symbol_loading_off): New static global.
5465 (print_symbol_loading_brief): New static global.
5466 (print_symbol_loading_full): New static global.
5467 (print_symbol_loading_enums): New static global.
5468 (print_symbol_loading): New static global.
5469 (print_symbol_loading_p): New function.
5470 (symbol_file_add_with_addrs): Only print symbol loading messages
5471 if requested.
5472 (_initialize_symfile): Register "print symbol-loading" set/show
5473 command.
5474 * symfile.h (print_symbol_loading_p): Declare.
5475
c32c64b7
DE
54762014-03-30 Doug Evans <xdje42@gmail.com>
5477
5478 * infrun.c (set_last_target_status): New function.
5479 (handle_inferior_event): Call it.
5480
7c0bc051
DE
54812014-03-30 Doug Evans <xdje42@gmail.com>
5482
5483 * inferior.h (enum stop_kind): Improve comment.
5484
8776cfe9
JB
54852014-03-28 Joel Brobecker <brobecker@adacore.com>
5486
5487 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5488 a reference, strip the reference layer before calling
5489 the lang_ops value_has_mutated callback.
5490
410a0ff2
SDJ
54912014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5492
5493 Remove some globals from our parser.
5494 * language.c (unk_lang_parser): Add "struct parser_state"
5495 argument.
5496 * language.h (struct language_defn) <la_parser>: Likewise.
5497 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5498 (initialize_expout): Add "struct parser_state" argument.
5499 Rewrite function to use the parser state.
5500 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5501 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5502 write_exp_elt_longcst, write_exp_elt_dblcst,
5503 write_exp_elt_decfloatcst, write_exp_elt_type,
5504 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5505 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5506 write_dollar_variable): Likewise.
5507 (parse_exp_in_context_1): Use parser state.
5508 (insert_type_address_space): Add "struct parser_state" argument.
5509 Use parser state.
5510 (increase_expout_size): New function.
5511 * parser-defs.h: Forward declare "struct language_defn" and
5512 "struct parser_state".
5513 (expout, expout_size, expout_ptr): Remove extern declarations.
5514 (parse_gdbarch, parse_language): Rewrite macro declarations to
5515 accept the parser state.
5516 (struct parser_state): New struct.
5517 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5518 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5519 write_exp_elt_decfloatcst, write_exp_elt_type,
5520 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5521 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5522 write_exp_msymbol, write_dollar_variable,
5523 mark_struct_expression, insert_type_address_space): Add "struct
5524 parser_state" argument.
5525 (increase_expout_size): New function.
5526 * utils.c (do_clear_parser_state): New function.
5527 (make_cleanup_clear_parser_state): Likewise.
5528 * utils.h (make_cleanup_clear_parser_state): New function
5529 prototype.
5530 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5531 Update calls to write_exp* in order to pass the parser state.
5532 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5533 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5534 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5535 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5536 * stap-probe.c (stap_parse_register_operand): Likewise.
5537 (stap_parse_single_operand): Likewise.
5538 (stap_parse_argument_1): Likewise.
5539 (stap_parse_argument): Use parser state.
5540 * stap-probe.h: Include "parser-defs.h".
5541 (struct stap_parse_info) <pstate>: New field.
5542 * c-exp.y (parse_type): Rewrite to use parser state.
5543 (yyparse): Redefine to c_parse_internal.
5544 (pstate): New global variable.
5545 (parse_number): Add "struct parser_state" argument.
5546 (write_destructor_name): Likewise.
5547 (type_exp): Update calls to write_exp* and similars in order to
5548 use parser state.
5549 (exp1, exp, variable, qualified_name, space_identifier,
5550 typename, typebase): Likewise.
5551 (write_destructor_name, parse_number, lex_one_token,
5552 classify_name, classify_inner_name, c_parse): Add "struct
5553 parser_state" argument. Update function to use parser state.
5554 * c-lang.h: Forward declare "struct parser_state".
5555 (c_parse): Add "struct parser_state" argument.
5556 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5557 (yyparse): Redefine macro to ada_parse_internal.
5558 (pstate): New variable.
5559 (write_int, write_object_renaming, write_var_or_type,
5560 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5561 type_int, type_long, type_long_long, type_float, type_double,
5562 type_long_double, type_char, type_boolean, type_system_address):
5563 Add "struct parser_state" argument.
5564 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5565 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5566 var_or_type, aggregate, aggregate_component_list,
5567 positional_list, others, component_group,
5568 component_associations): Update calls to write_exp* and similar
5569 functions in order to use parser state.
5570 (ada_parse, write_var_from_sym, write_int,
5571 write_exp_op_with_string, write_object_renaming,
5572 find_primitive_type, write_selectors, write_ambiguous_var,
5573 write_var_or_type, write_name_assoc, type_int, type_long,
5574 type_long_long, type_float, type_double, type_long_double,
5575 type_char, type_boolean, type_system_address): Add "struct
5576 parser_state" argument. Adjust function to use parser state.
5577 * ada-lang.c (parse): Likewise.
5578 * ada-lang.h: Forward declare "struct parser_state".
5579 (ada_parse): Add "struct parser_state" argument.
5580 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5581 calls to both functions.
5582 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5583 parser state.
5584 (yyparse): Redefine macro to f_parse_internal.
5585 (pstate): New variable.
5586 (parse_number): Add "struct parser_state" argument.
5587 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5588 and similars in order to use parser state.
5589 (parse_number): Adjust code to use parser state.
5590 (yylex): Likewise.
5591 (f_parse): New function.
5592 * f-lang.h: Forward declare "struct parser_state".
5593 (f_parse): Add "struct parser_state" argument.
5594 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5595 parser state.
5596 (yyparse): Redefine macro for java_parse_internal.
5597 (pstate): New variable.
5598 (push_expression_name, push_expression_name, insert_exp): Add
5599 "struct parser_state" argument.
5600 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5601 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5602 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5603 PostIncrementExpression, PostDecrementExpression,
5604 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5605 UnaryExpressionNotPlusMinus, CastExpression,
5606 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5607 RelationalExpression, EqualityExpression, AndExpression,
5608 ExclusiveOrExpression, InclusiveOrExpression,
5609 ConditionalAndExpression, ConditionalOrExpression,
5610 ConditionalExpression, Assignment, LeftHandSide): Update
5611 calls to write_exp* and similars in order to use parser state.
5612 (parse_number): Ajust code to use parser state.
5613 (yylex): Likewise.
5614 (java_parse): New function.
5615 (push_variable): Add "struct parser_state" argument. Adjust
5616 code to user parser state.
5617 (push_fieldnames, push_qualified_expression_name,
5618 push_expression_name, insert_exp): Likewise.
5619 * jv-lang.h: Forward declare "struct parser_state".
5620 (java_parse): Add "struct parser_state" argument.
5621 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5622 parser state.
5623 (yyparse): Redefine macro to m2_parse_internal.
5624 (pstate): New variable.
5625 (type_exp, exp, fblock, variable, type): Update calls to
5626 write_exp* and similars to use parser state.
5627 (yylex): Likewise.
5628 (m2_parse): New function.
5629 * m2-lang.h: Forward declare "struct parser_state".
5630 (m2_parse): Add "struct parser_state" argument.
5631 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5632 * objc-lang.h: Forward declare "struct parser_state".
5633 (end_msglist): Add "struct parser_state" argument.
5634 * p-exp.y (parse_type): Rewrite macro to use parser state.
5635 (yyparse): Redefine macro to pascal_parse_internal.
5636 (pstate): New variable.
5637 (parse_number): Add "struct parser_state" argument.
5638 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5639 write_exp* and similars in order to use parser state.
5640 (parse_number, yylex): Adjust code to use parser state.
5641 (pascal_parse): New function.
5642 * p-lang.h: Forward declare "struct parser_state".
5643 (pascal_parse): Add "struct parser_state" argument.
5644 * go-exp.y (parse_type): Rewrite macro to use parser state.
5645 (yyparse): Redefine macro to go_parse_internal.
5646 (pstate): New variable.
5647 (parse_number): Add "struct parser_state" argument.
5648 (type_exp, exp1, exp, variable, type): Update calls to
5649 write_exp* and similars in order to use parser state.
5650 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5651 to use parser state.
5652 (go_parse): Likewise.
5653 * go-lang.h: Forward declare "struct parser_state".
5654 (go_parse): Add "struct parser_state" argument.
5655
342587c4
DE
56562014-03-27 Doug Evans <dje@google.com>
5657
5658 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5659
33e80786
DE
56602014-03-27 Doug Evans <dje@google.com>
5661
5662 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5663 Remove argument abbrev_section. All callers updated.
5664
1dbab08b
DE
56652014-03-27 Doug Evans <dje@google.com>
5666
5667 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5668 addr_base, ranges_base.
5669
318d3177
KS
56702014-03-26 Keith Seitz <keiths@redhat.com>
5671
5672 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5673 types, not VAR_DOMAIN.
5674
1e54db15
SL
56752014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5676
5677 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5678 "ra" registers.
5679 * features/nios2-linux.c: Regenerated.
5680 * features/nios2.c: Regenerated.
5681
d3839ede
PA
56822014-03-25 Pedro Alves <palves@redhat.com>
5683
5684 * cli/cli-script.c (script_from_file): Force the interpreter to
5685 sync mode.
5686
7588d2ec
PL
56872014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5688
5689 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5690 small stack allocation.
5691
a6290449
TG
56922014-03-24 Tristan Gingold <gingold@adacore.com>
5693
5694 * darwin-nat.c (exc_server): Remove unused prototype.
5695 (darwin_dump_message): Correctly display data on x86_64.
5696 (darwin_encode_reply): Fix style.
5697 Add comments and fix indentation.
5698
31ae9d24 56992014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5700
5701 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5702
6339bfc4
DE
57032014-03-22 Doug Evans <xdje42@gmail.com>
5704
5705 * infcmd.c: Whitespace fixes.
5706 (interrupt_command): Merge two function comments into one.
5707
0a07590b
DE
57082014-03-22 Doug Evans <xdje42@gmail.com>
5709
5710 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5711 All uses updated.
5712
b55fbac4
YQ
57132014-03-22 Yao Qi <yao@codesourcery.com>
5714
5715 * remote.c (target_read_live_memory): Remove.
5716 (memory_xfer_live_readonly_partial): Rename it to
5717 remote_xfer_live_readonly_partial. Remove argument 'object'.
5718 All callers updated. Call remote_read_bytes_1
5719 instead of target_read_live_memory.
5720 * tracepoint.c (set_traceframe_number): Remove.
5721 (make_cleanup_restore_traceframe_number): Likewise .
5722 * tracepoint.h (set_traceframe_number): Remove declaration.
5723 (make_cleanup_restore_traceframe_number): Likewise.
5724
9217e74e
YQ
57252014-03-22 Yao Qi <yao@codesourcery.com>
5726
5727 * remote.c (remote_read_bytes): Move code on reading from the
5728 remote stub to ...
5729 (remote_read_bytes_1): ... here. New function.
5730
8acf9577
YQ
57312014-03-22 Yao Qi <yao@codesourcery.com>
5732
5733 * ctf.c (ctf_xfer_partial): Check the return value of
5734 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5735 return TARGET_XFER_UNAVAILABLE.
5736 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5737 * target.c (target_read_live_memory): Move it to remote.c.
5738 (memory_xfer_live_readonly_partial): Likewise.
5739 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5740 * remote.c (target_read_live_memory): Moved from target.c.
5741 (memory_xfer_live_readonly_partial): Likewise.
5742 (remote_read_bytes): Factored out from
5743 memory_xfer_partial_1.
5744
feef67ab
DE
57452014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5746
5747 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5748 NULL pointer.
5749
b65dc60b
PA
57502014-03-21 Pedro Alves <palves@redhat.com>
5751
5752 * infrun.c (normal_stop): Extend comment.
5753
b4ab256d
HZ
57542014-03-21 Hui Zhu <hui@codesourcery.com>
5755 Pedro Alves <palves@redhat.com>
5756
5757 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5758 static buffer.
5759 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5760 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5761 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5762
deba7593
MR
57632014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5764
5765 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5766 `z' formatted output modifier.
5767
1bff71c3
SDJ
57682014-03-20 Tom Tromey <tromey@redhat.com>
5769 Sergio Durigan Junior <sergiodj@redhat.com>
5770
5771 * probe.c (parse_probes): Turn assert into an ordinary error.
5772 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5773 exceptions when parsing probes. Rearrange the code for clarity.
5774
90e28950
TT
57752014-03-20 Tom Tromey <tromey@redhat.com>
5776
5777 PR gdb/14135
5778 * top.c (execute_command): Only dispatch events if the command
5779 started the target.
5780
beb460e8
PA
57812014-03-20 Tom Tromey <tromey@redhat.com>
5782
5783 PR cli/15718
5784 * infcall.c: Include event-top.h.
5785 (run_inferior_call): Call async_disable_stdin if needed.
5786
99619bea
PA
57872014-03-20 Pedro Alves <palves@redhat.com>
5788
5789 * infrun.c (prepare_to_proceed): Delete.
5790 (thread_still_needs_step_over): New function.
5791 (find_thread_needs_step_over): New function.
5792 (proceed): If the current thread needs a step-over, set its
5793 steping_over_breakpoint flag. Adjust to use
5794 find_thread_needs_step_over instead of prepare_to_proceed.
5795 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5796 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5797 breakpoint.
5798 (switch_back_to_stepped_thread): Step over breakpoints of all
5799 threads not the stepping thread, before switching back to the
5800 stepping thread.
5801
2adfaa28
PA
58022014-03-20 Pedro Alves <palves@redhat.com>
5803
5804 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5805 extern.
5806 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5807 * infrun.c (saved_singlestep_ptid)
5808 (stepping_past_singlestep_breakpoint): Delete.
5809 (resume): Remove stepping_past_singlestep_breakpoint handling.
5810 (proceed): Store the prev_pc of the stepping thread too.
5811 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5812 singlestep_pc.
5813 (enum infwait_states): Delete infwait_thread_hop_state.
5814 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5815 field.
5816 (handle_inferior_event): Adjust.
5817 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5818 handling and the thread-hop code. Before removing single-step
5819 breakpoints, check whether the thread hit a single-step breakpoint
5820 of another thread. If it did, the trap is not a random signal.
5821 (switch_back_to_stepped_thread): If the event thread hit a
5822 single-step breakpoint, unblock it before switching to the
5823 stepping thread. Handle the case of the stepped thread having
5824 advanced already.
5825 (keep_going): Handle the case of the current thread moving past a
5826 single-step breakpoint.
5827
31e77af2
PA
58282014-03-20 Pedro Alves <palves@redhat.com>
5829
5830 PR breakpoints/7143
5831 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5832 are being stepped over.
5833 (breakpoint_address_match): Make extern.
5834 * breakpoint.h (breakpoint_address_match): New declaration.
5835 * inferior.h (stepping_past_instruction_at): New declaration.
5836 * infrun.c (struct step_over_info): New type.
5837 (step_over_info): New global.
5838 (set_step_over_info, clear_step_over_info)
5839 (stepping_past_instruction_at): New functions.
5840 (handle_inferior_event): Clear the step-over info when
5841 trap_expected is cleared.
5842 (resume): Remove now stale comment.
5843 (clear_proceed_status): Clear step-over info.
5844 (proceed): Adjust step-over handling to set or clear the step-over
5845 info instead of removing all breakpoints.
5846 (handle_signal_stop): When setting up a thread-hop, don't remove
5847 breakpoints here.
5848 (stop_stepping): Clear step-over info.
5849 (keep_going): Adjust step-over handling to set or clear step-over
5850 info and then always inserting breakpoints, instead of removing
5851 all breakpoints when stepping over one.
5852
b9f437de
PA
58532014-03-20 Pedro Alves <palves@redhat.com>
5854
5855 * infrun.c (previous_inferior_ptid): Adjust comment.
5856 (deferred_step_ptid): Delete.
5857 (infrun_thread_ptid_changed, prepare_to_proceed)
5858 (init_wait_for_inferior): Adjust.
5859 (handle_signal_stop): Delete deferred_step_ptid handling.
5860
06c868a8
JK
58612014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5862
5863 PR gdb/15358
5864 * defs.h (sync_quit_force_run): New declaration.
5865 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5866 * event-top.c (async_sigterm_handler): New declaration.
5867 (async_sigterm_token): New variable.
5868 (async_init_signals): Create also async_sigterm_token.
5869 (async_sigterm_handler): New function.
5870 (sync_quit_force_run): New variable.
5871 (handle_sigterm): Replace quit_force call by other calls.
5872 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5873
dea80df0
MR
58742014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5875
5876 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5877 offset into SPE pseudo registers.
5878
0c7e1a46
PA
58792014-03-18 Pedro Alves <palves@redhat.com>
5880
5881 PR gdb/13860
5882 * inferior.h (print_stop_event): Declare.
5883 * infrun.c (print_stop_event): New, factored out from ...
5884 (normal_stop): ... this.
5885 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5886 of bpstat_print/print_stack_frame.
5887
9c1fcd01
TT
58882014-03-17 Tom Tromey <tromey@redhat.com>
5889
5890 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5891
11aa919a
PMR
58922014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5893
5894 * ada-lang.c (decode_constrained_packed_array): Perform a
5895 minimal coercion for reference with coerce_ref instead of
5896 ada_coerce_ref.
5897
d4ccb5e0
TG
58982014-03-17 Tristan Gingold <gingold@adacore.com>
5899
5900 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5901 (darwin_solib_create_inferior_hook): Emit a warning if version
5902 is unhandled.
5903
49840f2a
UW
59042014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5905
5906 * python/py-value.c (get_field_flag): Cast flag_name argument to
5907 PyObject_GetAttrString to support Python 2.4.
5908
ed4123e5
JK
59092014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5910
5911 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5912 (Global Maintainers): Remove Jan Kratochvil.
5913
d6b64346
PA
59142014-03-14 Pedro Alves <palves@redhat.com>
5915
5916 * inferior.h (terminal_ours_for_output): Rename to ...
5917 (child_terminal_ours_for_output): ... this.
5918 (terminal_save_ours): Rename to ...
5919 (child_terminal_save_ours): ... this.
5920 (terminal_ours): Rename to ...
5921 (child_terminal_ours): ... this.
5922 (terminal_inferior): Rename to ...
5923 (child_terminal_inferior): ... this.
5924 (terminal_init_inferior): Rename to ...
5925 (child_terminal_init_inferior): ... this.
5926 (terminal_init_inferior_with_pgrp): Rename to ...
5927 (child_terminal_init_inferior_with_pgrp): ... this.
5928 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5929 (child_terminal_init_with_pgrp): ... this.
5930 (terminal_save_ours): Rename to ...
5931 (child_terminal_save_ours): ... this.
5932 (terminal_init_inferior): Rename to ...
5933 (child_terminal_init): ... this. Adjust.
5934 (terminal_inferior): Rename to ...
5935 (child_terminal_inferior): ... this.
5936 (terminal_ours_for_output): Rename to ...
5937 (child_terminal_ours_for_output): ... this. Adjust.
5938 (terminal_ours): Rename to ...
5939 (child_terminal_ours): ... this.
5940 (terminal_ours_1): Rename to ...
5941 (child_terminal_ours_1): ... this. Adjust.
5942 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5943 * windows-nat.c (do_initial_windows_stuff): Adjust.
5944 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5945 (gnu_terminal_init): ... this. Adjust.
5946 (gnu_target): Adjust.
5947 * inf-child.c (inf_child_target): Adjust.
5948
5a1e8c7a
DE
59492014-03-13 Doug Evans <xdje42@gmail.com>
5950
5951 PR guile/16612
5952 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5953 new eq?-hashtab.
5954
350e1a76
DE
59552014-03-13 Doug Evans <xdje42@gmail.com>
5956
5957 * value.c (record_latest_value): Call release_value_or_incref
5958 instead of release_value.
5959
a69900ae
PA
59602014-03-13 Pedro Alves <palves@redhat.com>
5961
5962 * procfs.c (procfs_target): Don't override to_shortname,
5963 to_longname or to_doc.
5964
5db9f0bd
PA
59652014-03-13 Pedro Alves <palves@redhat.com>
5966
5967 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5968 Unix in user visible strings.
5969
5e3a2c38
SS
59702014-03-12 Stan Shebs <stan@codesourcery.com>
5971
5972 * gdbtypes.h: Annotate comments for Doxygen, add a page
5973 block comment with some general info.
5974
8bc2fe48
PA
59752014-03-12 Pedro Alves <palves@redhat.com>
5976
5977 * infcmd.c (prepare_execution_command): New function, factored out
5978 from several execution commands.
5979 (run_command_1, continue_command, step_1, jump_command)
5980 (signal_command, until_command, advance_command, finish_command)
5981 (attach_command): Use prepare_execution_command.
5982
638c5f49
OJ
59832014-03-12 Omair Javaid <omair.javaid@linaro.org>
5984
5985 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5986 (MAX_BPTS): Define.
5987 (MAX_WPTS): Define.
5988 (struct arm_linux_thread_points): Removed.
5989 (struct arm_linux_process_info): New.
5990 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5991 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5992 (arm_linux_find_breakpoints_by_tid): Removed.
5993 (struct arch_lwp_info): New.
5994 (arm_linux_find_process_pid): New functions.
5995 (arm_linux_add_process): New functions.
5996 (arm_linux_process_info_get): New functions.
5997 (arm_linux_forget_process): New function.
5998 (arm_linux_get_debug_reg_state): New function.
5999 (struct update_registers_data): New.
6000 (update_registers_callback): New function.
6001 (arm_linux_insert_hw_breakpoint1): Updated.
6002 (arm_linux_remove_hw_breakpoint1): Updated.
6003 (arm_linux_insert_hw_breakpoint): Updated.
6004 (arm_linux_remove_hw_breakpoint): Updated.
6005 (arm_linux_insert_watchpoint): Updated.
6006 (arm_linux_remove_watchpoint): Updated.
6007 (arm_linux_new_thread): Updated.
6008 (arm_linux_prepare_to_resume): New function.
6009 (arm_linux_new_fork): New function.
6010 (_initialize_arm_linux_nat): Updated.
6011
6d03af93
PA
60122014-03-12 Pedro Alves <palves@redhat.com>
6013
6014 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6015
b3ccfe11
TT
60162014-03-12 Tom Tromey <tromey@redhat.com>
6017
6018 * inf-child.c (return_zero): New function.
6019 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6020 * aix-thread.c (aix_thread_inferior_created): New function.
6021 (aix_thread_attach): Remove.
6022 (init_aix_thread_ops): Don't set to_attach.
6023 (_initialize_aix_thread): Register inferior_created observer.
6024 * corelow.c (init_core_ops): Don't set to_attach or
6025 to_create_inferior.
6026 * exec.c (init_exec_ops): Don't set to_attach or
6027 to_create_inferior.
6028 * infcmd.c (run_command_1): Use find_run_target. Make direct
6029 target calls.
6030 (attach_command): Use find_attach_target. Make direct target
6031 calls.
6032 * record-btrace.c (init_record_btrace_ops): Don't set
6033 to_create_inferior.
6034 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6035 Remove.
6036 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6037 set to_create_inferior.
6038 * target.c (complete_target_initialization): Add assertion.
6039 (target_create_inferior): Remove.
6040 (find_default_attach, find_default_create_inferior): Remove.
6041 (find_attach_target, find_run_target): New functions.
6042 (find_default_is_async_p, find_default_can_async_p)
6043 (target_supports_non_stop, target_attach): Remove.
6044 (init_dummy_target): Don't set to_create_inferior or
6045 to_supports_non_stop.
6046 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6047 TARGET_DEFAULT_FUNC.
6048 <to_create_inferior>: Add comment.
6049 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6050 TARGET_DEFAULT_RETURN.
6051 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6052 (find_attach_target, find_run_target): Declare.
6053 (target_create_inferior): Remove.
6054 (target_has_execution_1): Update comment.
6055 (target_supports_non_stop): Remove.
6056 * target-delegates.c: Rebuild.
6057
91f83b02
PA
60582014-03-12 Pedro Alves <palves@redhat.com>
6059
6060 * inf-child.h: Update comment to not mention Unix.
6061
f1aea813
PA
60622014-03-12 Pedro Alves <palves@redhat.com>
6063
6064 * inf-child.c: Update top comment to not mention Unix. Add
6065 generic comment describing how this target is meant to be used.
6066 (inf_child_post_attach, inf_child_post_startup_inferior)
6067 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6068 Unix in comment.
6069
ee8e9165
PA
60702014-03-12 Pedro Alves <palves@redhat.com>
6071
6072 * nto-procfs.c: Include inf-child.h.
6073 (procfs_ops): Delete global.
6074 (procfs_can_run): Delete method.
6075 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6076 target pointer instead of referencing procfs_ops.
6077 (procfs_prepare_to_store): Delete.
6078 (init_procfs_ops): Delete function.
6079 (procfs_target): New function, based on init_procfs_ops, but
6080 inherit inf_child_target.
6081 (_initialize_procfs): Use procfs_target.
6082
51a9c8c5
PA
60832014-03-12 Pedro Alves <palves@redhat.com>
6084
6085 * windows-nat.c: Include inf-child.h.
6086 (windows_ops): Delete global.
6087 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6088 methods.
6089 (init_windows_ops): Delete function.
6090 (windows_target): New function, based on init_windows_ops, but
6091 inherit inf_child_target.
6092 (_initialize_windows_nat): Use windows_target. Install x86
6093 specific target methods here.
6094
c1966e26
DE
60952014-03-10 Doug Evans <xdje42@gmail.com>
6096
6097 * guile/guile.c (call_initialize_gdb_module): New function.
6098 (initialize_guile): Replace call to scm_init_guile with call to
6099 scm_with_guile.
6100
023db19c
JB
61012014-03-10 Joel Brobecker <brobecker@adacore.com>
6102
6103 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6104 in call to TYPE_CODE macro.
6105
5ec18f2b
JG
61062014-03-10 Jerome Guitton <guitton@adacore.com>
6107
8668be63
JB
6108 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6109 Resolve tagged types to full view.
5ec18f2b 6110
7d03f2eb
HZ
61112014-03-10 Hui Zhu <hui@codesourcery.com>
6112
6113 * target.h (target_insert_breakpoint): Remove "hardware" from its
6114 comments.
6115
c5164cbc
DE
61162014-03-07 Doug Evans <dje@google.com>
6117
6118 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6119
c4a3fee2
DE
61202014-03-07 Doug Evans <dje@google.com>
6121
6122 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6123 Remove unused local comp_dir_attr. Assert exactly one of
6124 stub_comp_unit_die, stub_comp_dir is non-NULL.
6125
3156469c
JB
61262014-03-07 Joel Brobecker <brobecker@adacore.com>
6127
6128 * target.h (complete_target_initialization, add_target):
6129 Add comment.
6130
c1a7b7c6
PA
61312014-03-07 Pedro Alves <palves@redhat.com>
6132
6133 * go32-nat.c: Include inf-child.h.
6134 (go32_ops): Delete global.
6135 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6136 Delete methods.
6137 (go32_create_inferior): Push the passed in target pointer instead
6138 of referencing go32_ops.
6139 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6140 (go32_target): New function, based on init_go32_ops, but inherit
6141 inf_child_target.
6142 (_initialize_go32_nat): Use go32_target. Move parts of
6143 init_go32_ops here.
6144
d3c1a85f
JB
61452014-03-06 Joel Brobecker <brobecker@adacore.com>
6146
6147 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6148 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6149 SYMBOL_VALUE_ADDRESS.
6150 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6151
5fa1d40e
YQ
61522014-03-06 Yao Qi <yao@codesourcery.com>
6153
6154 * breakpoint.c (get_tracepoint_by_number): Remove argument
6155 optional_p. All callers updated. Adjust comments. Update
6156 output message.
6157 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6158
0c13193f
YQ
61592014-03-06 Yao Qi <yao@codesourcery.com>
6160
6161 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6162 early if get_number returns zero. Use 'p' instead of 'args'.
6163
2217da06
YQ
61642014-03-06 Yao Qi <yao@codesourcery.com>
6165
6166 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6167 message.
6168
cc3da688
YQ
61692014-03-06 Yao Qi <yao@codesourcery.com>
6170
6171 PR breakpoints/16508
6172 * tracepoint.c (check_trace_running): New function.
6173 (trace_find_command): Move code to check_trace_running and
6174 call check_trace_running.
6175 (trace_find_pc_command): Likewise.
6176 (trace_find_tracepoint_command): Likewise.
6177 (trace_find_line_command): Likewise.
6178 (trace_find_range_command): Likewise.
6179 * tracepoint.h (check_trace_running): Likewise.
6180 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6181
6a5f844b
YQ
61822014-03-06 Yao Qi <yao@codesourcery.com>
6183
6184 * target.h (struct target_ops) <to_traceframe_info>: Use
6185 TARGET_DEFAULT_NORETURN (tcomplain ()).
6186 * target-delegates.c: Regenerated.
6187
0f26cec1
PA
61882014-03-05 Pedro Alves <palves@redhat.com>
6189
6190 PR gdb/16575
6191 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6192 void. Update comment.
6193 (dcache_xfer_memory): Delete.
6194 (dcache_read_memory_partial): New, based on the read bits of
6195 dcache_xfer_memory.
6196 (dcache_update): Add status parameter. Use ULONGEST for len, and
6197 adjust. Discard cache lines if the reason for the update was
6198 error.
6199 * dcache.h (dcache_xfer_memory): Delete declaration.
6200 (dcache_read_memory_partial): New declaration.
6201 (dcache_update): Update prototype.
6202 * target.c (raw_memory_xfer_partial): Update the dcache here.
6203 (memory_xfer_partial_1): Don't handle dcache writes here.
6204
b2b255bd
MF
62052014-03-05 Mike Frysinger <vapier@gentoo.org>
6206
6207 * remote-sim.c (gdbsim_load): Add const to prog.
6208
5d9cf8a4
TT
62092014-03-03 Tom Tromey <tromey@redhat.com>
6210
6211 * elfread.c (probe_key): Change to bfd_data.
6212 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6213 now per-BFD, not per-objfile.
6214 * stap-probe.c (stap_probe_destroy): Update comment.
6215 (handle_stap_probe): Allocate on the per-BFD obstack.
6216
729662a5
TT
62172014-03-03 Tom Tromey <tromey@redhat.com>
6218
6219 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6220 * breakpoint.c (create_longjmp_master_breakpoint): Use
6221 get_probe_address.
6222 (add_location_to_breakpoint, bkpt_probe_insert_location)
6223 (bkpt_probe_remove_location): Update.
6224 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6225 * elfread.c (elf_symfile_relocate_probe): Remove.
6226 (elf_probe_fns): Update.
6227 (insert_exception_resume_breakpoint): Change type of "probe"
6228 parameter to bound_probe.
6229 (check_exception_resume): Update.
6230 * objfiles.c (objfile_relocate1): Don't relocate probes.
6231 * probe.c (bound_probe_s): New typedef.
6232 (parse_probes): Use get_probe_address. Set sal's objfile.
6233 (find_probe_by_pc): Return a bound_probe.
6234 (collect_probes): Return a VEC(bound_probe_s).
6235 (compare_probes): Update.
6236 (gen_ui_out_table_header_info): Change type of "probes"
6237 parameter. Update.
6238 (info_probes_for_ops): Update.
6239 (get_probe_address): New function.
6240 (probe_safe_evaluate_at_pc): Update.
6241 * probe.h (struct probe_ops) <get_probe_address>: New field.
6242 <set_semaphore, clear_semaphore>: Add objfile parameter.
6243 (struct probe) <objfile>: Remove field.
6244 <arch>: New field.
6245 <address>: Update comment.
6246 (struct bound_probe): New.
6247 (find_probe_by_pc): Return a bound_probe.
6248 (get_probe_address): Declare.
6249 * solib-svr4.c (struct probe_and_action) <address>: New field.
6250 (hash_probe_and_action, equal_probe_and_action): Update.
6251 (register_solib_event_probe): Add address parameter.
6252 (solib_event_probe_at): Update.
6253 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6254 get_probe_address.
6255 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6256 (stap_get_probe_address): New function.
6257 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6258 (compile_probe_arg): Update.
6259 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6260 address.
6261 (handle_stap_probe): Don't relocate the probe.
6262 (stap_relocate): Remove.
6263 (stap_gen_info_probes_table_values): Update.
6264 (stap_probe_ops): Remove stap_relocate.
6265 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6266 (debug_sym_probe_fns): Update.
6267 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6268 * symtab.c (init_sal): Use memset.
6269 * symtab.h (struct symtab_and_line) <objfile>: New field.
6270 * tracepoint.c (start_tracing, stop_tracing): Update.
6271
ff887920
TT
62722014-03-03 Tom Tromey <tromey@redhat.com>
6273
6274 * probe.h (parse_probes, find_probe_by_pc)
6275 (find_probes_in_objfile): Fix comments.
6276
f0407826
DE
62772014-03-02 Doug Evans <xdje42@gmail.com>
6278
6279 * infrun.c (handle_signal_stop): Replace test for
6280 TARGET_WAITKIND_STOPPED with an assert.
6281
35e6a711
DE
62822014-03-02 Doug Evans <xdje42@gmail.com>
6283
6284 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6285
667f9d0b
DE
62862014-03-02 Doug Evans <xdje42@gmail.com>
6287
6288 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6289
dc92ace0
MK
62902014-03-01 Mark Kettenis <kettenis@gnu.org>
6291
6292 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6293
a900370f
MK
62942014-03-01 Mark Kettenis <kettenis@gnu.org>
6295
6296 * i386obsd-nat.c: Include "obsd-nat.h".
6297 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6298 add_target.
6299 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6300
b72a7981
MK
63012014-03-01 Mark Kettenis <kettenis@gnu.org>
6302
6303 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6304
96c70aba
MK
63052014-03-01 Mark Kettenis <kettenis@gnu.org>
6306
6307 * mips64obsd-nat.c: Include "obsd-nath".
6308 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6309 add_target
6310 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6311
874a80af
MK
63122014-03-01 Mark Kettenis <kettenis@gnu.org>
6313
8fd408f1
MK
6314 * amd64obsd-nat.c: Include "obsd-nat,h.
6315 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6316 add_target.
874a80af
MK
6317 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6318
9cf95373
SC
63192014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6320
6321 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6322 (find_overload_match): Update call to find_oload_champ.
6323 (find_oload_champ_namespace_loop): Likewise
6324
863e4da4
MK
63252014-02-28 Mark Kettenis <kettenis@gnu.org>
6326
025cac40
MK
6327 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6328
1ed586ce
MK
6329 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6330 * config/sparc/obsd64.mh: New file.
6331 * sparc64obsd-nat.c: New file.
6332
863e4da4
MK
6333 * obsd-nat.h: New file.
6334 * obsd-nat.c: New file.
6335 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6336 (ALLDEPFILES): Add obsd-nat.c.
6337
89de4da4
TT
63382014-02-28 Tom Tromey <tromey@redhat.com>
6339
6340 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6341 * cli-out.h (cli_ui_out_impl): Now const.
6342 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6343 * ui-out.c (struct ui_out) <impl>: Now const.
6344 (default_ui_out_impl): Now const.
6345 (ui_out_new): Make 'impl' parameter const.
6346 * ui-out.h (ui_out_new): Update.
6347
c725e7b6
MK
63482014-02-27 Mark Kettenis <kettenis@gnu.org>
6349
6350 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6351
670b46b3
MK
63522014-02-27 Mark Kettenis <kettenis@gnu.org>
6353
6354 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6355
c91550fc
JK
63562014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6357
6358 Additional PR 8882 fix.
6359 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6360
2fa0369e
PA
63612014-02-27 Pedro Alves <palves@redhat.com>
6362
6363 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6364 isn't set.
6365
d632a097
PA
63662014-02-27 Pedro Alves <palves@redhat.com>
6367
6368 PR 12702
6369 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6370 * nat/linux-waitpid.c: Include string.h.
6371 (status_to_str): Moved here and made extern.
6372 * nat/linux-waitpid.h (status_to_str): New declaration.
6373
2ebd5a35
HZ
63742014-02-27 Hui Zhu <hui@codesourcery.com>
6375
6376 PR 12702
6377 * infrun.c (ptid_match): Move ...
6378 * common/ptid.c (ptid_match): ... here.
6379 * inferior.h (ptid_match): Move ...
6380 * common/ptid.h (ptid_match): ... here.
6381
3cdd631f
MK
63822014-02-27 Mark Kettenis <kettenis@gnu.org>
6383
6384 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6385 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6386 gdb_target_obs.
6387
bee30a64
MK
63882014-02-27 Mark Kettenis <kettenis@gnu.org>
6389
6390 * obsd-tdep.c (obsd_auxv_parse): New function.
6391 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6392
6393 * gdbarch.sh (auxv_parse): New.
6394 * gdbarch.h: Regenerated.
6395 * gdbarch.c: Regenerated.
6396 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6397
7a5a839f
LC
63982014-02-26 Ludovic Courtès <ludo@gnu.org>
6399
6400 * guile/scm-value.c (gdbscm_history_append_x): New function.
6401 (value_functions): Add it.
6402
31aa7e4e
JB
64032014-02-27 Joel Brobecker <brobecker@adacore.com>
6404
6405 * dwarf2read.c (attr_value_as_address): New function.
6406 (dwarf2_find_base_address, read_call_site_scope): Use
6407 attr_value_as_address in place of DW_ADDR.
6408 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6409 the low and high addresses. Slight rework of the handling
6410 of the high pc being a constant form, and limit it to
6411 DWARF verson 4 or higher.
6412 (dwarf2_record_block_ranges): Likewise.
6413 (read_partial_die): Likewise.
6414 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6415
9b333ba3
TT
64162014-02-26 Tom Tromey <tromey@redhat.com>
6417
6418 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6419
5f6cac40
TT
64202014-02-26 Tom Tromey <tromey@redhat.com>
6421
6422 * elfread.c (elf_read_minimal_symbols): Return early if
6423 minimal symbols have already been read. Add "ei" parameter.
6424 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6425 * minsyms.c (prim_record_minimal_symbol_full): Update.
6426 * objfiles.h (struct objstats) <n_minsyms>: Move...
6427 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6428 * symmisc.c (print_objfile_statistics): Update.
6429
2750ef27
TT
64302014-02-26 Tom Tromey <tromey@redhat.com>
6431
6432 * elfread.c (elf_read_minimal_symbols): New function, from
6433 elf_symfile_read.
6434 (elf_symfile_read): Call it.
6435
34643a32
TT
64362014-02-26 Tom Tromey <tromey@redhat.com>
6437
6438 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6439 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6440 (lookup_minimal_symbol_solib_trampoline)
6441 (lookup_minimal_symbol_by_pc_section_1)
6442 (lookup_minimal_symbol_and_objfile): Update.
6443 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6444 Don't allocate a minimal symbol if minsyms have already been read.
6445 (build_minimal_symbol_hash_tables): Update.
6446 (install_minimal_symbols): Do nothing if minsyms already read.
6447 Use the per-BFD obstack.
6448 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6449 * objfiles.c (allocate_objfile): Call
6450 terminate_minimal_symbol_table later.
6451 (have_minimal_symbols): Update.
6452 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6453 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6454 Move from struct objfile.
6455 <minsyms_read>: New field.
6456 (struct objfile) <msymbols, minimal_symbol_count,
6457 msymbol_hash, msymbol_demangled_hash>: Move.
6458 (ALL_OBJFILE_MSYMBOLS): Update.
6459 * symfile.c (read_symbols): Set minsyms_read.
6460 (reread_symbols): Update.
6461 * symmisc.c (dump_objfile, dump_msymbols): Update.
6462
2273f0ac
TT
64632014-02-26 Tom Tromey <tromey@redhat.com>
6464
6465 * minsyms.c (msymbols_sort): Remove.
6466 * minsyms.h (msymbols_sort): Remove.
6467 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6468 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6469 * elfread.c (elf_symtab_read): Don't add section offsets.
6470 * xcoffread.c (record_minimal_symbol): Don't add section offset
6471 to minimal symbol address.
6472 * somread.c (text_offset, data_offset): Remove.
6473 (som_symtab_read): Don't add section offsets to minimal symbol
6474 addresses.
6475 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6476 Don't add section offsets to minimal symbols.
6477 * coffread.c (coff_symtab_read): Don't add section offsets
6478 to minimal symbol addresses.
6479 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6480 to minimal symbol addresses.
6481 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6482 section offset to minimal symbol addresses.
6483 * mdebugread.c (parse_partial_symbols): Don't add section
6484 offset to minimal symbol addresses.
6485 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6486 offset to minimal symbol addresses.
6487
77e371c0
TT
64882014-02-26 Tom Tromey <tromey@redhat.com>
6489
6490 * ada-lang.c (ada_main_name): Update.
6491 (ada_add_standard_exceptions): Update.
6492 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6493 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6494 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6495 * auxv.c (ld_so_xfer_auxv): Update.
6496 * avr-tdep.c (avr_scan_prologue): Update.
6497 * ax-gdb.c (gen_var_ref): Update.
6498 * blockframe.c (get_pc_function_start)
6499 (find_pc_partial_function_gnu_ifunc): Update.
6500 * breakpoint.c (create_overlay_event_breakpoint)
6501 (create_longjmp_master_breakpoint)
6502 (create_std_terminate_master_breakpoint)
6503 (create_exception_master_breakpoint): Update.
6504 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6505 * c-valprint.c (c_val_print): Update.
6506 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6507 * common/agent.c (agent_look_up_symbols): Update.
6508 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6509 * dwarf2loc.c (call_site_to_target_addr): Update.
6510 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6511 * elfread.c (elf_gnu_ifunc_record_cache)
6512 (elf_gnu_ifunc_resolve_by_got): Update.
6513 * findvar.c (default_read_var_value): Update.
6514 * frame.c (inside_main_func): Update.
6515 * frv-tdep.c (frv_frame_this_id): Update.
6516 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6517 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6518 Update.
6519 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6520 (hppa_hpux_find_dummy_bpaddr): Update.
6521 * hppa-tdep.c (hppa_symbol_address): Update.
6522 * infcmd.c (until_next_command): Update.
6523 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6524 Update.
6525 * linespec.c (minsym_found, add_minsym): Update.
6526 * linux-nat.c (get_signo): Update.
6527 * linux-thread-db.c (inferior_has_bug): Update.
6528 * m32c-tdep.c (m32c_return_value)
6529 (m32c_m16c_address_to_pointer): Update.
6530 * m32r-tdep.c (m32r_frame_this_id): Update.
6531 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6532 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6533 * maint.c (maintenance_translate_address): Update.
6534 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6535 (frob_address): New function.
6536 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6537 frob_address. Rename parameter to "pc_in".
6538 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6539 addresses.
6540 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6541 Update.
6542 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6543 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6544 * objc-lang.c (find_objc_msgsend): Update.
6545 * objfiles.c (objfile_relocate1): Update.
6546 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6547 * p-valprint.c (pascal_val_print): Update.
6548 * parse.c (write_exp_msymbol): Update.
6549 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6550 (ppc_elfv2_skip_entrypoint): Update.
6551 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6552 * printcmd.c (build_address_symbolic, msym_info)
6553 (address_info): Update.
6554 * proc-service.c (ps_pglobal_lookup): Update.
6555 * psymtab.c (find_pc_sect_psymtab_closer)
6556 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6557 Change msymbol parameter to bound_minimal_symbol.
6558 * ravenscar-thread.c (get_running_thread_id): Update.
6559 * remote.c (remote_check_symbols): Update.
6560 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6561 address.
6562 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6563 * solib-dsbt.c (lm_base): Update.
6564 * solib-frv.c (lm_base, main_got): Update.
6565 * solib-irix.c (locate_base): Update.
6566 * solib-som.c (som_solib_create_inferior_hook)
6567 (link_map_start): Update.
6568 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6569 * solib-svr4.c (elf_locate_base, enable_break): Update.
6570 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6571 (flush_ea_cache): Update.
6572 * stabsread.c (define_symbol, scan_file_globals): Update.
6573 * stack.c (find_frame_funname): Update.
6574 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6575 (debug_qf_find_pc_sect_symtab): Update.
6576 * symfile.c (simple_read_overlay_table)
6577 (simple_overlay_update): Update.
6578 * symfile.h (struct quick_symbol_functions)
6579 <find_pc_sect_symtab>: Change type of msymbol to
6580 bound_minimal_symbol.
6581 * symmisc.c (dump_msymbols): Update.
6582 * symtab.c (find_pc_sect_symtab_via_partial)
6583 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6584 (search_symbols, print_msymbol_info): Update.
6585 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6586 (MSYMBOL_VALUE_ADDRESS): Redefine.
6587 (BMSYMBOL_VALUE_ADDRESS): New macro.
6588 * tracepoint.c (scope_info): Update.
6589 * tui/tui-disasm.c (tui_find_disassembly_address)
6590 (tui_get_begin_asm_address): Update.
6591 * valops.c (find_function_in_inferior): Update.
6592 * value.c (value_static_field, value_fn_field): Update.
6593
3b7344d5
TT
65942014-02-26 Tom Tromey <tromey@redhat.com>
6595
6596 * ada-lang.c (ada_update_initial_language): Update.
6597 (ada_main_name, ada_has_this_exception_support): Update.
6598 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6599 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6600 * arm-tdep.c (arm_skip_stub): Update.
6601 * auxv.c (ld_so_xfer_auxv): Update.
6602 * avr-tdep.c (avr_scan_prologue): Update.
6603 * ax-gdb.c (gen_var_ref): Update.
6604 * breakpoint.c (struct breakpoint_objfile_data)
6605 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6606 type to bound_minimal_symbol.
6607 (create_overlay_event_breakpoint)
6608 (create_longjmp_master_breakpoint)
6609 (create_std_terminate_master_breakpoint)
6610 (create_exception_master_breakpoint): Update.
6611 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6612 * c-exp.y (classify_name): Update.
6613 * coffread.c (coff_symfile_read): Update.
6614 * common/agent.c (agent_look_up_symbols): Update.
6615 * d-lang.c (d_main_name): Update.
6616 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6617 * dec-thread.c (enable_dec_thread): Update.
6618 * dwarf2loc.c (call_site_to_target_addr): Update.
6619 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6620 * eval.c (evaluate_subexp_standard): Update.
6621 * findvar.c (struct minsym_lookup_data) <result>: Change type
6622 to bound_minimal_symbol.
6623 <objfile>: Remove.
6624 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6625 * frame.c (inside_main_func): Update.
6626 * frv-tdep.c (frv_frame_this_id): Update.
6627 * gcore.c (call_target_sbrk): Update.
6628 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6629 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6630 Update.
6631 * go-lang.c (go_main_name): Update.
6632 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6633 (hppa_hpux_find_import_stub_for_addr): Update.
6634 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6635 Update. Change return type.
6636 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6637 type.
6638 * jit.c (jit_breakpoint_re_set_internal): Update.
6639 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6640 Update.
6641 * linux-nat.c (get_signo): Update.
6642 * linux-thread-db.c (inferior_has_bug): Update
6643 * m32c-tdep.c (m32c_return_value)
6644 (m32c_m16c_address_to_pointer): Update.
6645 * m32r-tdep.c (m32r_frame_this_id): Update.
6646 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6647 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6648 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6649 lookup_minimal_symbol. Change return type.
6650 (lookup_minimal_symbol): Remove.
6651 (lookup_bound_minimal_symbol): Update.
6652 (lookup_minimal_symbol_text): Change return type.
6653 (lookup_minimal_symbol_solib_trampoline): Change return type.
6654 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6655 (lookup_minimal_symbol_solib_trampoline): Change return type.
6656 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6657 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6658 (value_nsstring, find_imps): Update.
6659 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6660 * p-lang.c (pascal_main_name): Update.
6661 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6662 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6663 * proc-service.c (ps_pglobal_lookup): Update.
6664 * ravenscar-thread.c (get_running_thread_msymbol): Change
6665 return type.
6666 (has_ravenscar_runtime, get_running_thread_id): Update.
6667 * remote.c (remote_check_symbols): Update.
6668 * sol-thread.c (ps_pglobal_lookup): Update.
6669 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6670 * solib-dsbt.c (lm_base): Update.
6671 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6672 Update.
6673 * solib-irix.c (locate_base): Update.
6674 * solib-som.c (som_solib_create_inferior_hook)
6675 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6676 Update.
6677 * solib-spu.c (spu_enable_break): Update.
6678 * solib-svr4.c (elf_locate_base, enable_break): Update.
6679 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6680 (flush_ea_cache): Update.
6681 * stabsread.c (define_symbol): Update.
6682 * symfile.c (simple_read_overlay_table): Update.
6683 * symtab.c (find_pc_sect_line): Update.
6684 * tracepoint.c (scope_info): Update.
6685 * tui-disasm.c (tui_get_begin_asm_address): Update.
6686 * value.c (value_static_field): Update.
6687
40c1a007
TT
66882014-02-26 Tom Tromey <tromey@redhat.com>
6689
6690 * minsyms.c (prim_record_minimal_symbol_full): Use
6691 SET_MSYMBOL_VALUE_ADDRESS.
6692 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6693 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6694 SET_MSYMBOL_VALUE_ADDRESS.
6695 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6696 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6697
efd66ac6
TT
66982014-02-26 Tom Tromey <tromey@redhat.com>
6699
6700 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6701 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6702 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6703 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6704 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6705 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6706 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6707 * ada-lang.c (ada_main_name): Update.
6708 (ada_lookup_simple_minsym): Update.
6709 (ada_make_symbol_completion_list): Update.
6710 (ada_add_standard_exceptions): Update.
6711 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6712 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6713 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6714 * arm-tdep.c (skip_prologue_function): Update.
6715 (arm_skip_stack_protector, arm_skip_stub): Update.
6716 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6717 (arm_wince_skip_main_prologue): Update.
6718 * auxv.c (ld_so_xfer_auxv): Update.
6719 * avr-tdep.c (avr_scan_prologue): Update.
6720 * ax-gdb.c (gen_var_ref): Update.
6721 * block.c (call_site_for_pc): Update.
6722 * blockframe.c (get_pc_function_start): Update.
6723 (find_pc_partial_function_gnu_ifunc): Update.
6724 * breakpoint.c (create_overlay_event_breakpoint): Update.
6725 (create_longjmp_master_breakpoint): Update.
6726 (create_std_terminate_master_breakpoint): Update.
6727 (create_exception_master_breakpoint): Update.
6728 (resolve_sal_pc): Update.
6729 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6730 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6731 Update.
6732 * c-valprint.c (c_val_print): Update.
6733 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6734 * coffread.c (coff_symfile_read): Update.
6735 * common/agent.c (agent_look_up_symbols): Update.
6736 * dbxread.c (find_stab_function_addr): Update.
6737 (end_psymtab): Update.
6738 * dwarf2loc.c (call_site_to_target_addr): Update.
6739 (func_verify_no_selftailcall): Update.
6740 (tailcall_dump): Update.
6741 (call_site_find_chain_1): Update.
6742 (dwarf_expr_reg_to_entry_parameter): Update.
6743 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6744 (elf_gnu_ifunc_resolve_by_got): Update.
6745 * f-valprint.c (info_common_command): Update.
6746 * findvar.c (read_var_value): Update.
6747 * frame.c (get_prev_frame_1): Update.
6748 (inside_main_func): Update.
6749 * frv-tdep.c (frv_skip_main_prologue): Update.
6750 (frv_frame_this_id): Update.
6751 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6752 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6753 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6754 (gnuv3_skip_trampoline): Update.
6755 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6756 (hppa64_hpux_in_solib_call_trampoline): Update.
6757 (hppa_hpux_skip_trampoline_code): Update.
6758 (hppa64_hpux_search_dummy_call_sequence): Update.
6759 (hppa_hpux_find_import_stub_for_addr): Update.
6760 (hppa_hpux_find_dummy_bpaddr): Update.
6761 * hppa-tdep.c (hppa_symbol_address)
6762 (hppa_lookup_stub_minimal_symbol): Update.
6763 * i386-tdep.c (i386_skip_main_prologue): Update.
6764 (i386_pe_skip_trampoline_code): Update.
6765 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6766 * infcall.c (get_function_name): Update.
6767 * infcmd.c (until_next_command): Update.
6768 * jit.c (jit_breakpoint_re_set_internal): Update.
6769 (jit_inferior_init): Update.
6770 * linespec.c (minsym_found): Update.
6771 (add_minsym): Update.
6772 * linux-fork.c (info_checkpoints_command): Update.
6773 * linux-nat.c (get_signo): Update.
6774 * linux-thread-db.c (inferior_has_bug): Update.
6775 * m32c-tdep.c (m32c_return_value): Update.
6776 (m32c_m16c_address_to_pointer): Update.
6777 (m32c_m16c_pointer_to_address): Update.
6778 * m32r-tdep.c (m32r_frame_this_id): Update.
6779 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6780 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6781 * maint.c (maintenance_translate_address): Update.
6782 * minsyms.c (add_minsym_to_hash_table): Update.
6783 (add_minsym_to_demangled_hash_table): Update.
6784 (msymbol_objfile): Update.
6785 (lookup_minimal_symbol): Update.
6786 (iterate_over_minimal_symbols): Update.
6787 (lookup_minimal_symbol_text): Update.
6788 (lookup_minimal_symbol_by_pc_name): Update.
6789 (lookup_minimal_symbol_solib_trampoline): Update.
6790 (lookup_minimal_symbol_by_pc_section_1): Update.
6791 (lookup_minimal_symbol_and_objfile): Update.
6792 (prim_record_minimal_symbol_full): Update.
6793 (compare_minimal_symbols): Update.
6794 (compact_minimal_symbols): Update.
6795 (build_minimal_symbol_hash_tables): Update.
6796 (install_minimal_symbols): Update.
6797 (terminate_minimal_symbol_table): Update.
6798 (find_solib_trampoline_target): Update.
6799 (minimal_symbol_upper_bound): Update.
6800 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6801 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6802 (mips_skip_pic_trampoline_code): Update.
6803 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6804 * objc-lang.c (selectors_info): Update.
6805 (classes_info): Update.
6806 (find_methods): Update.
6807 (find_imps): Update.
6808 (find_objc_msgsend): Update.
6809 * objfiles.c (objfile_relocate1): Update.
6810 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6811 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6812 * p-valprint.c (pascal_val_print): Update.
6813 * parse.c (write_exp_msymbol): Update.
6814 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6815 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6816 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6817 * printcmd.c (build_address_symbolic): Update.
6818 (sym_info): Update.
6819 (address_info): Update.
6820 * proc-service.c (ps_pglobal_lookup): Update.
6821 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6822 (find_pc_sect_psymtab): Update.
6823 * python/py-framefilter.c (py_print_frame): Update.
6824 * ravenscar-thread.c (get_running_thread_id): Update.
6825 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6826 Update.
6827 * remote.c (remote_check_symbols): Update.
6828 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6829 (rs6000_skip_trampoline_code): Update.
6830 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6831 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6832 * solib-dsbt.c (lm_base): Update.
6833 * solib-frv.c (lm_base): Update.
6834 (main_got): Update.
6835 * solib-irix.c (locate_base): Update.
6836 * solib-som.c (som_solib_create_inferior_hook): Update.
6837 (som_solib_desire_dynamic_linker_symbols): Update.
6838 (link_map_start): Update.
6839 * solib-spu.c (spu_enable_break): Update.
6840 (ocl_enable_break): Update.
6841 * solib-svr4.c (elf_locate_base): Update.
6842 (enable_break): Update.
6843 * spu-tdep.c (spu_get_overlay_table): Update.
6844 (spu_catch_start): Update.
6845 (flush_ea_cache): Update.
6846 * stabsread.c (define_symbol): Update.
6847 (scan_file_globals): Update.
6848 * stack.c (find_frame_funname): Update.
6849 (frame_info): Update.
6850 * symfile.c (simple_read_overlay_table): Update.
6851 (simple_overlay_update): Update.
6852 * symmisc.c (dump_msymbols): Update.
6853 * symtab.c (fixup_section): Update.
6854 (find_pc_sect_line): Update.
6855 (skip_prologue_sal): Update.
6856 (search_symbols): Update.
6857 (print_msymbol_info): Update.
6858 (rbreak_command): Update.
6859 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6860 (completion_list_objc_symbol): Update.
6861 (default_make_symbol_completion_list_break_on): Update.
6862 * tracepoint.c (scope_info): Update.
6863 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6864 (tui_get_begin_asm_address): Update.
6865 * valops.c (find_function_in_inferior): Update.
6866 * value.c (value_static_field): Update.
6867 (value_fn_field): Update.
6868
50e65b17
TT
68692014-02-26 Tom Tromey <tromey@redhat.com>
6870
6871 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6872 bound minimal symbols. Move code that knows about minsym
6873 table layout...
6874 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6875 function.
6876 * minsyms.h (minimal_symbol_upper_bound): Declare.
6877 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6878 minimal_symbol_upper_bound.
6879
1b588015
JB
68802014-02-27 Joel Brobecker <brobecker@adacore.com>
6881
6882 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6883 Use the type's name if its basic type does not have a tag.
6884
dbb9c2b1
JB
68852014-02-27 Joel Brobecker <brobecker@adacore.com>
6886
6887 * dwarf2read.c (read_subrange_type): Add comment.
6888
55426c9d
JB
68892014-02-27 Joel Brobecker <brobecker@adacore.com>
6890
6891 * dwarf2read.c (update_enumeration_type_from_children): New
6892 function, mostly extracted from process_structure_scope.
6893 (read_enumeration_type): Call update_enumeration_type_from_children.
6894 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6895 and flag_flag_enum fields.
6896
f2fce0ca
PA
68972014-02-26 Pedro Alves <palves@redhat.com>
6898
6899 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6900 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6901 to_xfer_partial method.
6902
7a44e40e
PA
69032014-02-26 Pedro Alves <palves@redhat.com>
6904
6905 * target.c (complete_target_initialization): Don't install
6906 default_xfer_partial as to_xfer_partial hook.
6907 (nomemory): Delete.
6908 (update_current_target): Don't INHERIT nor de_fault
6909 deprecated_xfer_memory. Delete de_fault macro.
6910 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6911 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6912 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6913 field.
6914
bd265cd0
PA
69152014-02-26 Pedro Alves <palves@redhat.com>
6916
6917 * go32-nat.c (my_write_child): New function.
6918 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6919 (go32_xfer_partial): New function.
6920 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6921 Instead install a to_xfer_partial hook.
6922
9d46c4e5
PA
69232014-02-26 Pedro Alves <palves@redhat.com>
6924
6925 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6926 to_xfer_partial helper. Rewrite.
6927 (procfs_xfer_partial): New function.
6928 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6929 Install a to_xfer_partial hook.
6930
a1583b1f
PA
69312014-02-26 Pedro Alves <palves@redhat.com>
6932
6933 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6934 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6935 (m32r_xfer_partial): New function.
6936 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6937 Install a to_xfer_partial hook.
6938
6df1b29f
PA
69392014-02-26 Pedro Alves <palves@redhat.com>
6940
6941 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6942 helper.
6943 (mips_xfer_partial): New function.
6944 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6945 hook. Install a to_xfer_partial hook.
6946
dc53a7ad
JB
69472014-02-26 Joel Brobecker <brobecker@adacore.com>
6948
6949 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6950 * gdbtypes.c (create_array_type_with_stride): New function,
6951 renaming create_array_type, but with an added parameter
6952 called "bit_stride".
6953 (create_array_type): Re-implement using
6954 create_array_type_with_stride.
6955 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6956 and DW_AT_bit_stride attributes.
6957
12ab52e9
PA
69582014-02-26 Pedro Alves <palves@redhat.com>
6959
6960 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6961 task-specific breakpoints.
6962
d16461ae
PA
69632014-02-25 Pedro Alves <palves@redhat.com>
6964
6965 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6966 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6967
a8b16220
SS
69682014-02-25 Stan Shebs <stan@codesourcery.com>
6969
6970 * defs.h: Annotate comments for Doxygen.
6971
b9e795ee
TT
69722014-02-25 Tom Tromey <tromey@redhat.com>
6973
6974 * target.h (target_ignore): Don't declare.
6975 * target.c (target_ignore): Remove.
6976
849c862e
JK
69772014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6978
6979 PR gdb/16626
6980 * auto-load.c (auto_load_objfile_script_1): Change filename to
6981 debugfile.
6982
475109d8
JB
69832014-02-25 Joel Brobecker <brobecker@adacore.com>
6984
6985 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6986 documentation. Adjust prototype to match the target_ops
6987 to_xfer_partial method. Adjust implementation accordingly.
6988
e186c3bd
HZ
69892014-02-25 Hui Zhu <hui@codesourcery.com>
6990
6991 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6992 to_traceframe_info.
6993
6d451942
KB
69942014-02-25 Kevin Buettner <kevinb@redhat.com>
6995
041ab8b4 6996 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6997 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6998 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6999 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7000 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7001 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7002 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7003 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7004 New constants.
7005 (rl78_register_type): Use a data pointer type for SP and
7006 new pseudo registers mentioned above. Use a 16 bit integer
7007 type for all other register pairs.
7008 (rl78_register_name, rl78_g10_register_name): Update for
7009 new pseudo registers.
7010 (rl78_pseudo_register_read): Likewise.
7011 (rl78_pseudo_register_write): Likewise.
7012 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7013 to the newly added pseudo registers.
7014
eddf0bae
DE
70152014-02-24 Doug Evans <dje@google.com>
7016
7017 * value.c (record_latest_value): Fix comment.
7018 * printcmd.c (print_command_1): Remove code to handle -1 return from
7019 record_latest_value.
7020
e96027e0
PA
70212014-02-24 Pedro Alves <palves@redhat.com>
7022
7023 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7024 deprecated_xfer_memory hook.
7025 (procfs_xfer_partial): Call procfs_xfer_memory instead
7026 of the deprecated_xfer_memory target hook.
7027 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7028 helper.
7029
0837c976
YZ
70302014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7031
7032 * windows-nat.c (windows_xfer_shared_libraries): Return
7033 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7034 requested object is TARGET_OBJECT_LIBRARIES.
7035
bc113b4e
YQ
70362014-02-24 Yao Qi <yao@codesourcery.com>
7037
7038 * target.h (enum target_xfer_status)
7039 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7040 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7041 explicitly. New.
7042 * corefile.c (memory_error_message): User updated.
7043 * exec.c (section_table_read_available_memory): Likewise.
7044 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7045 * target.c (target_xfer_status_to_string): Likewise.
7046 (raw_memory_xfer_partial): Likewise.
7047 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7048 * valops.c (read_value_memory): Likewise.
7049 * exec.h: Update comments.
7050
01cb8804
YQ
70512014-02-24 Yao Qi <yao@codesourcery.com>
7052
7053 * target.c (target_xfer_status_to_string): Rename argument err
7054 to status.
7055 * target.h (target_xfer_status_to_string): Update declaration.
7056 Replace target_xfer_error_to_string with
7057 target_xfer_status_to_string in comment.
7058
93063aa6
YQ
70592014-02-24 Yao Qi <yao@codesourcery.com>
7060
7061 * mips-linux-nat.c (super_close): Update its type.
7062 (mips_linux_close): Pass 'self' to super_close.
7063
5c328c05
YQ
70642014-02-24 Yao Qi <yao@codesourcery.com>
7065
7066 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7067 * corefile.c (read_memory): Adjusted.
7068 * target.c (target_write_with_progress): Adjusted.
7069
f73023dd
YQ
70702014-02-23 Yao Qi <yao@codesourcery.com>
7071
7072 Revert two patches:
7073
7074 2013-10-25 Yao Qi <yao@codesourcery.com>
7075
7076 * remote.c (remote_traceframe_info): Return early if
7077 traceframe is not selected.
7078
7079 2013-07-19 Yao Qi <yao@codesourcery.com>
7080
7081 * target.c (update_current_target): Change the default action
7082 of 'to_traceframe_info' from tcomplain to return_zero.
7083 * target.h (struct target_ops) <to_traceframe_info>: Add more
7084 comments.
7085
5a2eb0ef
YQ
70862014-02-23 Yao Qi <yao@codesourcery.com>
7087
7088 * valops.c (read_value_memory): Rewrite it. Call
7089 target_xfer_partial in a loop.
7090 * exec.h (section_table_available_memory): Remove declaration.
7091 Move comments to ...
7092 * exec.c (section_table_available_memory): ... here. Make it
7093 static.
7094
1ee79381
YQ
70952014-02-23 Yao Qi <yao@codesourcery.com>
7096
7097 * exec.c (section_table_read_available_memory): New function.
7098 * exec.h (section_table_read_available_memory): Declare.
7099 * ctf.c (ctf_xfer_partial): Call
7100 section_table_read_available_memory.
7101 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7102
1ca49d37
YQ
71032014-02-23 Yao Qi <yao@codesourcery.com>
7104
7105 * ctf.c (ctf_xfer_partial): Move code to ...
7106 * exec.c (exec_read_partial_read_only): ... it. New function.
7107 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7108 * tracefile.c: Include "exec.h".
7109 * exec.h (exec_read_partial_read_only): Declare.
7110
a283690e
YQ
71112014-02-23 Yao Qi <yao@codesourcery.com>
7112
7113 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7114 (tfile_has_memory): Remove.
7115 (init_tfile_ops): Don't set fields to_has_all_memory and
7116 to_has_memory of tfile_ops.
7117 * tracefile.c (tracefile_has_all_memory): New function.
7118 (tracefile_has_memory): New function.
7119 (init_tracefile_ops): Initialize fields to_has_all_memory and
7120 to_has_memory of 'ops'.
7121
12e03cd0
YQ
71222014-02-23 Yao Qi <yao@codesourcery.com>
7123
7124 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7125 (ctf_thread_alive, ctf_get_trace_status): Remove.
7126 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7127 init_tracefile_ops.
7128 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7129 (tfile_has_stack, tfile_has_registers): Remove.
7130 (tfile_thread_alive): Remove.
7131 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7132 init_tracefile_ops.
7133 * tracefile.c (tracefile_has_stack): New function.
7134 (tracefile_has_registers): New function.
7135 (tracefile_thread_alive): New function.
7136 (tracefile_get_trace_status): New function.
7137 (init_tracefile_ops): New function.
7138 * tracefile.h (init_tracefile_ops): Declare.
7139
11395323
YQ
71402014-02-23 Yao Qi <yao@codesourcery.com>
7141
7142 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7143 (O_LARGEFILE): Likewise.
7144 (tfile_ops): Likewise.
7145 (TRACE_HEADER_SIZE): Likewise.
7146 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7147 (cur_data_size): Likewise.
7148 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7149 (tfile_close, tfile_files_info): Likewise.
7150 (tfile_get_trace_status): Likewise.
7151 (tfile_get_tracepoint_status): Likewise.
7152 (tfile_get_traceframe_address): Likewise.
7153 (tfile_trace_find, match_blocktype): Likewise.
7154 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7155 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7156 (tfile_get_trace_state_variable_value): Likewise.
7157 (tfile_has_all_memory, tfile_has_memory): Likewise.
7158 (tfile_has_stack, tfile_has_registers): Likewise.
7159 (tfile_thread_alive, build_traceframe_info): Likewise.
7160 (tfile_traceframe_info, init_tfile_ops): Likewise.
7161 (_initialize_tracepoint): Don't call init_tfile_ops
7162 and add_target_with_completer.
7163 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7164 exec.h, completer.h and filenames.h.
7165 (_initialize_tracefile_tfile): New function.
7166
7951c4eb
YQ
71672014-02-23 Yao Qi <yao@codesourcery.com>
7168
7169 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7170 tracefile-tfile.o.
7171 (HFILES_NO_SRCDIR): Add tracefile.h.
7172 * ctf.c: Include "tracefile.h".
7173 * tracefile.h: New file.
7174 * tracefile.c: New file
7175 * tracefile-tfile.c: New file.
7176 * tracepoint.c: Include "tracefile.h".
7177 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7178 (stop_reason_names): Add const.
7179 (trace_file_writer_xfree): Move it to tracefile.c.
7180 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7181 (trace_save_ctf): Likewise.
7182 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7183 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7184 (tfile_write_header, tfile_write_regblock_type): Likewise.
7185 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7186 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7187 (tfile_write_raw_data, tfile_end): Likewise.
7188 (tfile_trace_file_writer_new): Likewise.
7189 (free_uploaded_tp): Make it extern.
7190 (free_uploaded_tsv): Make it extern.
7191 (_initialize_tracepoint): Move code to register command 'tsave'
7192 to tracefile.c.
7193 * tracepoint.h (stop_reason_names): Declare.
7194 (struct trace_frame_write_ops): Move it to tracefile.h.
7195 (struct trace_file_write_ops): Likewise.
7196 (struct trace_file_writer): Likewise.
7197 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7198
184cd072
JK
71992014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7200
7201 PR gdb/16594
7202 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7203 process name.
7204 (get_cores_used_by_process): New parameter num_cores, use it.
7205 (linux_xfer_osdata_processes): Pass num_cores to it.
7206 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7207 process name.
7208
c63528fc
AK
72092014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7210
7211 * target.c (memory_xfer_partial): Fix length arg in call to
7212 breakpoint_xfer_memory.
7213
d7b30f67
SDJ
72142014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7215
7216 PR tdep/16397
7217 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7218 number comes after the + or - signs. Adjust length of register
7219 name to be extracted.
7220
8838afaf
TT
72212014-02-20 Tom Tromey <tromey@redhat.com>
7222
7223 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7224 (ada_varobj_ops): Mark "extern".
7225
05227d14
TT
72262014-02-20 Tom Tromey <tromey@redhat.com>
7227
7228 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7229
1254eefc
DE
72302014-02-20 Doug Evans <xdje42@gmail.com>
7231
7232 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7233 All callers updated.
7234 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7235 All callers updated.
7236 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7237 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7238
adde2bff
DE
72392014-02-20 lin zuojian <manjian2006@gmail.com>
7240 Joel Brobecker <brobecker@adacore.com>
7241 Doug Evans <xdje42@gmail.com>
7242
7243 PR symtab/16581
7244 * dwarf2read.c (struct die_info): New member in_process.
7245 (reset_die_in_process): New function.
7246 (process_die): Set it at the start, reset when returning.
7247 (inherit_abstract_dies): Only call process_die if origin_child_die
7248 not already being processed.
7249
3be75f87
JB
72502014-02-20 Joel Brobecker <brobecker@adacore.com>
7251
7252 * windows-nat.c (handle_unload_dll): Add function documentation.
7253 (do_initial_windows_stuff): Add comment explaining why we wait
7254 until after inferior initialization has finished before
7255 processing all DLLs.
7256
47f7ffdb
JB
72572014-02-20 Joel Brobecker <brobecker@adacore.com>
7258
7259 * windows-nat.c (get_module_name): Delete.
7260 (windows_get_exec_module_filename): New function, mostly
7261 inspired from get_module_name.
7262 (windows_pid_to_exec_file): Replace call to get_module_name
7263 by call to windows_get_exec_module_filename.
7264
1cd9feab
JB
72652014-02-20 Joel Brobecker <brobecker@adacore.com>
7266
7267 * windows-nat.c (handle_load_dll): Rewrite this function's
7268 introductory comment. Remove code using get_module_name
7269 to get the DLL's name.
7270
ea39ad35
JB
72712014-02-20 Joel Brobecker <brobecker@adacore.com>
7272
7273 * windows-nat.c (get_windows_debug_event): Ignore
7274 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7275 if windows_initialization_done == 0.
7276 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7277 Adjust implementation to always load all DLLs.
7278 (do_initial_windows_stuff): Replace call to
7279 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7280
95060284
JB
72812014-02-20 Joel Brobecker <brobecker@adacore.com>
7282
7283 * windows-nat.c (_initialize_windows_nat): Deprecate the
7284 "dll-symbols" command. Turn the "add-shared-symbol-files"
7285 and "assf" aliases into commands, and deprecate them as well.
7286 * NEWS: Add entry explaining that "dll-symbols" and its two
7287 aliases are now deprecated.
7288
8d4fdb12
JB
72892014-02-20 Joel Brobecker <brobecker@adacore.com>
7290
7291 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7292 new-line in debug string. Remove trailing spaces.
7293
1b281443
SS
72942014-02-19 Stan Shebs <stan@codesourcery.com>
7295
7296 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7297
f7bd0f78
SC
72982014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7299
7300 * NEWS: Add entry for the new feature
7301 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7302 and class values.
7303
399ebc3d
SS
73042014-02-19 Stan Shebs <stan@codesourcery.com>
7305
7306 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7307
c658158d
PA
73082014-02-19 Pedro Alves <palves@redhat.com>
7309
7310 * common/ptid.h (struct ptid): Mention that process_stratum
7311 targets should prefer ptid.lwp.
7312
ba348170
PA
73132014-02-19 Pedro Alves <palves@redhat.com>
7314
7315 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7316 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7317 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7318 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7319 store remote thread ids rather than ptid.tid.
7320 (_initialize_remote): Adjust.
7321
ac01945b
TT
73222014-02-19 Tom Tromey <tromey@redhat.com>
7323
7324 * target.c (target_get_unwinder): Rewrite.
7325 (target_get_tailcall_unwinder): Rewrite.
7326 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7327 (record_btrace_to_get_tailcall_unwinder): New function.
7328 (init_record_btrace_ops): Update.
7329 * target.h (struct target_ops) <to_get_unwinder,
7330 to_get_tailcall_unwinder>: Now function pointers. Use
7331 TARGET_DEFAULT_RETURN.
7332
8476dc92
TT
73332014-02-19 Tom Tromey <tromey@redhat.com>
7334
7335 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7336 argument.
7337 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7338
c0eca49f
TT
73392014-02-19 Tom Tromey <tromey@redhat.com>
7340
7341 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7342 directly.
7343 * target-delegates.c: Rebuild.
7344 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7345 TARGET_DEFAULT_FUNC.
7346 * target.c (default_target_decr_pc_after_break): Rename from
7347 forward_target_decr_pc_after_break. Simplify.
7348 (target_decr_pc_after_break): Rely on delegation.
7349
596b6b39
TT
73502014-02-19 Tom Tromey <tromey@redhat.com>
7351
7352 * target.c (update_current_target): Do not INHERIT to_doc or
7353 to_magic. Do not de_fault to_open or to_close.
7354
b427c1bc
TT
73552014-02-19 Tom Tromey <tromey@redhat.com>
7356
7357 * gcore.h (objfile_find_memory_regions): Declare.
7358 * gcore.c (objfile_find_memory_regions): No longer static. Add
7359 "self" argument.
7360 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7361 * exec.c: Include gcore.h.
7362 (exec_set_find_memory_regions): Remove.
7363 (exec_find_memory_regions): Remove.
7364 (exec_do_find_memory_regions): Remove.
7365 (init_exec_ops): Update.
7366 * defs.h (exec_set_find_memory_regions): Remove.
7367
9b144037
TT
73682014-02-19 Tom Tromey <tromey@redhat.com>
7369
7370 * target-delegates.c: Rebuild.
7371 * target.h (struct target_ops) <to_extra_thread_info,
7372 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7373 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7374 not 0, in TARGET_DEFAULT_RETURN.
7375
555bbdeb
TT
73762014-02-19 Tom Tromey <tromey@redhat.com>
7377
7378 * target.c (complete_target_initialization): Remove casts. Use
7379 return_zero_has_execution.
7380 (return_zero): Add "ignore" argument.
7381 (return_zero_has_execution): New function.
7382 (init_dummy_target): Remove casts. Use
7383 return_zero_has_execution.
7384
be4ddd36
TT
73852014-02-19 Tom Tromey <tromey@redhat.com>
7386
7387 * target.c (update_current_target): Update comments. Do not
7388 INHERIT to_stratum.
7389
2117c711
TT
73902014-02-19 Tom Tromey <tromey@redhat.com>
7391
7392 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7393 needed.
7394 * corelow.c (core_read_description): Delegate when needed.
7395 * remote.c (remote_read_description): Delegate when needed.
7396 * target-delegates.c: Rebuild.
7397 * target.c (target_read_description): Rewrite.
7398 * target.h (struct target_ops) <to_read_description>: Update
7399 comment. Use TARGET_DEFAULT_RETURN.
7400
e88ef65c
TT
74012014-02-19 Tom Tromey <tromey@redhat.com>
7402
7403 * target-delegates.c: Rebuild.
7404 * target.c (update_current_target): Don't inherit or default
7405 to_can_run.
7406 (find_default_run_target): Check against delegate_can_run.
7407 * target.h (struct target_ops) <to_can_run>: Use
7408 TARGET_DEFAULT_RETURN.
7409
86a0854a
TT
74102014-02-19 Tom Tromey <tromey@redhat.com>
7411
7412 * target-delegates.c: Rebuild.
7413 * target.c (target_disconnect): Unconditionally delegate.
7414 * target.h (struct target_ops) <to_disconnect>: Use
7415 TARGET_DEFAULT_NORETURN.
7416
ee97f592
TT
74172014-02-19 Tom Tromey <tromey@redhat.com>
7418
7419 * record.c (record_stop): Unconditionally delegate.
7420 * target-delegates.c: Rebuild.
7421 * target.c (target_stop_recording): Unconditionally delegate.
7422 * target.h (struct target_ops) <to_stop_recording>: Use
7423 TARGET_DEFAULT_IGNORE.
7424
6dc7fcf4
TT
74252014-02-19 Tom Tromey <tromey@redhat.com>
7426
7427 * target-delegates.c: Rebuild.
7428 * target.c (target_enable_btrace): Unconditionally delegate.
7429 * target.h (struct target_ops) <to_enable_btrace>: Use
7430 TARGET_DEFAULT_NORETURN.
7431
eb5b20d4
TT
74322014-02-19 Tom Tromey <tromey@redhat.com>
7433
7434 * target-delegates.c: Rebuild.
7435 * target.c (target_read_btrace): Unconditionally delegate.
7436 * target.h (struct target_ops) <to_read_btrace>: Use
7437 TARGET_DEFAULT_NORETURN.
7438
9ace480d
TT
74392014-02-19 Tom Tromey <tromey@redhat.com>
7440
7441 * target-delegates.c: Rebuild.
7442 * target.c (target_teardown_btrace): Unconditionally delegate.
7443 * target.h (struct target_ops) <to_teardown_btrace>: Use
7444 TARGET_DEFAULT_NORETURN.
7445
8dc292d3
TT
74462014-02-19 Tom Tromey <tromey@redhat.com>
7447
7448 * target-delegates.c: Rebuild.
7449 * target.c (target_disable_btrace): Unconditionally delegate.
7450 * target.h (struct target_ops) <to_disable_btrace>: Use
7451 TARGET_DEFAULT_NORETURN.
7452
58a5184e
TT
74532014-02-19 Tom Tromey <tromey@redhat.com>
7454
7455 * target-delegates.c: Rebuild.
7456 * target.c (default_search_memory): New function.
7457 (simple_search_memory): Update comment.
7458 (target_search_memory): Unconditionally delegate.
7459 * target.h (struct target_ops) <to_search_memory>: Use
7460 TARGET_DEFAULT_FUNC.
7461
8de71aab
TT
74622014-02-19 Tom Tromey <tromey@redhat.com>
7463
7464 * auxv.c (default_auxv_parse): No longer static.
7465 (target_auxv_parse): Unconditionally delegate.
7466 * auxv.h (default_auxv_parse): Declare.
7467 * target-delegates.c: Rebuild.
7468 * target.c: Include auxv.h.
7469 * target.h (struct target_ops) <to_auxv_parse>: Use
7470 TARGET_DEFAULT_FUNC.
7471
6b2c5a57
TT
74722014-02-19 Tom Tromey <tromey@redhat.com>
7473
7474 * target-delegates.c: Rebuild.
7475 * target.c (target_memory_map): Unconditionally delegate.
7476 * target.h (struct target_ops) <to_memory_map>: Use
7477 TARGET_DEFAULT_RETURN.
7478
cbffc065
TT
74792014-02-19 Tom Tromey <tromey@redhat.com>
7480
7481 * target-delegates.c: Rebuild.
7482 * target.c (target_thread_alive): Unconditionally delegate.
7483 * target.h (struct target_ops) <to_thread_alive>: Use
7484 TARGET_DEFAULT_RETURN.
7485
f09e2107
TT
74862014-02-19 Tom Tromey <tromey@redhat.com>
7487
7488 * target-delegates.c: Rebuild.
7489 * target.c (target_save_record): Unconditionally delegate.
7490 * target.h (struct target_ops) <to_save_record>: Use
7491 TARGET_DEFAULT_NORETURN.
7492
07366925
TT
74932014-02-19 Tom Tromey <tromey@redhat.com>
7494
7495 * target-delegates.c: Rebuild.
7496 * target.c (target_delete_record): Unconditionally delegate.
7497 * target.h (struct target_ops) <to_delete_record>: Use
7498 TARGET_DEFAULT_NORETURN.
7499
dd2e9d25
TT
75002014-02-19 Tom Tromey <tromey@redhat.com>
7501
7502 * target-delegates.c: Rebuild.
7503 * target.c (target_record_is_replaying): Unconditionally
7504 delegate.
7505 * target.h (struct target_ops) <to_record_is_replaying>: Use
7506 TARGET_DEFAULT_RETURN.
7507
671e76cc
TT
75082014-02-19 Tom Tromey <tromey@redhat.com>
7509
7510 * target-delegates.c: Rebuild.
7511 * target.c (target_goto_record_begin): Unconditionally delegate.
7512 * target.h (struct target_ops) <to_goto_record_begin>: Use
7513 TARGET_DEFAULT_NORETURN.
7514
e9179bb3
TT
75152014-02-19 Tom Tromey <tromey@redhat.com>
7516
7517 * target-delegates.c: Rebuild.
7518 * target.c (target_goto_record_end): Unconditionally delegate.
7519 * target.h (struct target_ops) <to_goto_record_end>: Use
7520 TARGET_DEFAULT_NORETURN.
7521
05969c84
TT
75222014-02-19 Tom Tromey <tromey@redhat.com>
7523
7524 * target-delegates.c: Rebuild.
7525 * target.c (target_goto_record): Unconditionally delegate.
7526 * target.h (struct target_ops) <to_goto_record>: Use
7527 TARGET_DEFAULT_NORETURN.
7528
3679abfa
TT
75292014-02-19 Tom Tromey <tromey@redhat.com>
7530
7531 * target-delegates.c: Rebuild.
7532 * target.c (target_insn_history): Unconditionally delegate.
7533 * target.h (struct target_ops) <to_insn_history>: Use
7534 TARGET_DEFAULT_NORETURN.
7535
8444ab58
TT
75362014-02-19 Tom Tromey <tromey@redhat.com>
7537
7538 * target-delegates.c: Rebuild.
7539 * target.c (target_insn_history_from): Unconditionally delegate.
7540 * target.h (struct target_ops) <to_insn_history_from>: Use
7541 TARGET_DEFAULT_NORETURN.
7542
c29302cc
TT
75432014-02-19 Tom Tromey <tromey@redhat.com>
7544
7545 * target-delegates.c: Rebuild.
7546 * target.c (target_insn_history_range): Unconditionally delegate.
7547 * target.h (struct target_ops) <to_insn_history_range>: Use
7548 TARGET_DEFAULT_NORETURN.
7549
170049d4
TT
75502014-02-19 Tom Tromey <tromey@redhat.com>
7551
7552 * target-delegates.c: Rebuild.
7553 * target.c (target_call_history): Unconditionally delegate.
7554 * target.h (struct target_ops) <to_call_history>: Use
7555 TARGET_DEFAULT_NORETURN.
7556
16fc27d6
TT
75572014-02-19 Tom Tromey <tromey@redhat.com>
7558
7559 * target-delegates.c: Rebuild.
7560 * target.c (target_call_history_from): Unconditionally delegate.
7561 * target.h (struct target_ops) <to_call_history_from>: Use
7562 TARGET_DEFAULT_NORETURN.
7563
115d9817
TT
75642014-02-19 Tom Tromey <tromey@redhat.com>
7565
7566 * target-delegates.c: Rebuild.
7567 * target.c (target_call_history_range): Unconditionally delegate.
7568 * target.h (struct target_ops) <to_call_history_range>: Use
7569 TARGET_DEFAULT_NORETURN.
7570
eb276a6b
TT
75712014-02-19 Tom Tromey <tromey@redhat.com>
7572
7573 * target-delegates.c: Rebuild.
7574 * target.c (target_verify_memory): Unconditionally delegate.
7575 * target.h (struct target_ops) <to_verify_memory>: Use
7576 TARGET_DEFAULT_NORETURN.
7577
9e538d0d
TT
75782014-02-19 Tom Tromey <tromey@redhat.com>
7579
7580 * target-delegates.c: Rebuild.
7581 * target.c (target_core_of_thread): Unconditionally delegate.
7582 * target.h (struct target_ops) <to_core_of_thread>: Use
7583 TARGET_DEFAULT_RETURN.
7584
f6fb2925
TT
75852014-02-19 Tom Tromey <tromey@redhat.com>
7586
7587 * target-delegates.c: Rebuild.
7588 * target.c (target_flash_done): Unconditionally delegate.
7589 * target.h (struct target_ops) <to_flash_done>: Use
7590 TARGET_DEFAULT_NORETURN.
7591
e8a6c6ac
TT
75922014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * target-delegates.c: Rebuild.
7595 * target.c (target_flash_erase): Unconditionally delegate.
7596 * target.h (struct target_ops) <to_flash_erase>: Use
7597 TARGET_DEFAULT_NORETURN.
7598
7e35c012
TT
75992014-02-19 Tom Tromey <tromey@redhat.com>
7600
7601 * target-delegates.c: Rebuild.
7602 * target.c (target_get_section_table): Unconditionally delegate.
7603 * target.h (struct target_ops) <to_get_section_table>: Use
7604 TARGET_DEFAULT_RETURN.
7605
770234d3
TT
76062014-02-19 Tom Tromey <tromey@redhat.com>
7607
7608 * target-delegates.c: Rebuild.
7609 * target.c (target_pid_to_str): Unconditionally delegate.
7610 (init_dummy_target): Don't initialize to_pid_to_str.
7611 (default_pid_to_str): Rename from dummy_pid_to_str.
7612 * target.h (struct target_ops) <to_pid_to_str>: Use
7613 TARGET_DEFAULT_FUNC.
7614
09b0dc2b
TT
76152014-02-19 Tom Tromey <tromey@redhat.com>
7616
7617 * target-delegates.c: Rebuild.
7618 * target.c (target_find_new_threads): Unconditionally delegate.
7619 * target.h (struct target_ops) <to_find_new_threads>: Use
7620 TARGET_DEFAULT_RETURN.
7621
7d4f8efa
TT
76222014-02-19 Tom Tromey <tromey@redhat.com>
7623
7624 * target-delegates.c: Rebuild.
7625 * target.c (target_program_signals): Unconditionally delegate.
7626 * target.h (struct target_ops) <to_program_signals>: Use
7627 TARGET_DEFAULT_IGNORE.
7628
035cad7f
TT
76292014-02-19 Tom Tromey <tromey@redhat.com>
7630
7631 * target-delegates.c: Rebuild.
7632 * target.c (target_pass_signals): Unconditionally delegate.
7633 * target.h (struct target_ops) <to_pass_signals>: Use
7634 TARGET_DEFAULT_IGNORE.
7635
8d657035
TT
76362014-02-19 Tom Tromey <tromey@redhat.com>
7637
7638 * target-delegates.c: Rebuild.
7639 * target.c (default_mourn_inferior): New function.
7640 (target_mourn_inferior): Unconditionally delegate.
7641 * target.h (struct target_ops) <to_mourn_inferior>: Use
7642 TARGET_DEFAULT_FUNC.
7643
098dba18
TT
76442014-02-19 Tom Tromey <tromey@redhat.com>
7645
7646 * target-delegates.c: Rebuild.
7647 * target.c (default_follow_fork): New function.
7648 (target_follow_fork): Unconditionally delegate.
7649 * target.h (struct target_ops) <to_follow_fork>: Use
7650 TARGET_DEFAULT_FUNC.
7651
423a4807
TT
76522014-02-19 Tom Tromey <tromey@redhat.com>
7653
7654 * target-delegates.c: Rebuild.
7655 * target.c (target_kill): Unconditionally delegate.
7656 * target.h (struct target_ops) <to_kill>: Use
7657 TARGET_DEFAULT_NORETURN.
7658
6c7e5e5c
TT
76592014-02-19 Tom Tromey <tromey@redhat.com>
7660
7661 * target-delegates.c: Rebuild.
7662 * target.c (target_masked_watch_num_registers): Unconditionally
7663 delegate.
7664 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7665 Use TARGET_DEFAULT_RETURN.
7666
8b1c364c
TT
76672014-02-19 Tom Tromey <tromey@redhat.com>
7668
7669 * target-delegates.c: Rebuild.
7670 * target.c (target_remove_mask_watchpoint): Unconditionally
7671 delegate.
7672 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7673 TARGET_DEFAULT_RETURN.
7674
cd4ae029
TT
76752014-02-19 Tom Tromey <tromey@redhat.com>
7676
7677 * target-delegates.c: Rebuild.
7678 * target.c (target_insert_mask_watchpoint): Unconditionally
7679 delegate.
7680 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7681 TARGET_DEFAULT_RETURN.
7682
a134316b
TT
76832014-02-19 Tom Tromey <tromey@redhat.com>
7684
7685 * target-delegates.c: Rebuild.
7686 * target.c (target_ranged_break_num_registers): Unconditionally
7687 delegate.
7688 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7689 Use TARGET_DEFAULT_RETURN.
7690
ad5989bd
TT
76912014-02-19 Tom Tromey <tromey@redhat.com>
7692
7693 * target-delegates.c: Rebuild.
7694 * target.c (target_fetch_registers): Unconditionally delegate.
7695 * target.h (struct target_ops) <to_fetch_registers>: Use
7696 TARGET_DEFAULT_NORETURN.
7697
46ee7e8d
TT
76982014-02-19 Tom Tromey <tromey@redhat.com>
7699
7700 * target-delegates.c: Rebuild.
7701 * target.c (update_current_target): Don't inherit or default
7702 to_stop.
7703 * target.h (struct target_ops) <to_stop>: Use
7704 TARGET_DEFAULT_IGNORE.
7705
843f59ed
TT
77062014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target-delegates.c: Rebuild.
7709 * target.c (update_current_target): Don't inherit or default
7710 to_can_run_breakpoint_commands.
7711 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7712 Use TARGET_DEFAULT_RETURN.
7713
ccfde2a0
TT
77142014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * target-delegates.c: Rebuild.
7717 * target.c (update_current_target): Don't inherit or default
7718 to_supports_evaluation_of_breakpoint_conditions.
7719 * target.h (struct target_ops)
7720 <to_supports_evaluation_of_breakpoint_conditions>: Use
7721 TARGET_DEFAULT_RETURN.
7722
0de91722
TT
77232014-02-19 Tom Tromey <tromey@redhat.com>
7724
7725 * target-delegates.c: Rebuild.
7726 * target.c (update_current_target): Don't inherit or default
7727 to_augmented_libraries_svr4_read.
7728 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7729 Use TARGET_DEFAULT_RETURN.
7730
9a7d8b48
TT
77312014-02-19 Tom Tromey <tromey@redhat.com>
7732
7733 * target-delegates.c: Rebuild.
7734 * target.c (update_current_target): Don't inherit or default
7735 to_can_use_agent.
7736 * target.h (struct target_ops) <to_can_use_agent>: Use
7737 TARGET_DEFAULT_RETURN.
7738
d9db5b21
TT
77392014-02-19 Tom Tromey <tromey@redhat.com>
7740
7741 * target-delegates.c: Rebuild.
7742 * target.c (update_current_target): Don't inherit or default
7743 to_use_agent.
7744 * target.h (struct target_ops) <to_use_agent>: Use
7745 TARGET_DEFAULT_NORETURN.
7746
92155eeb
TT
77472014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target-delegates.c: Rebuild.
7750 * target.c (update_current_target): Don't inherit or default
7751 to_traceframe_info.
7752 (return_null): Remove.
7753 * target.h (struct target_ops) <to_traceframe_info>: Use
7754 TARGET_DEFAULT_RETURN.
7755
d6522a22
TT
77562014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * target-delegates.c: Rebuild.
7759 * target.c (update_current_target): Don't inherit or default
7760 to_static_tracepoint_markers_by_strid.
7761 * target.h (struct target_ops)
7762 <to_static_tracepoint_markers_by_strid>: Use
7763 TARGET_DEFAULT_NORETURN.
7764
4c3e4425
TT
77652014-02-19 Tom Tromey <tromey@redhat.com>
7766
7767 * target-delegates.c: Rebuild.
7768 * target.c (update_current_target): Don't inherit or default
7769 to_static_tracepoint_marker_at.
7770 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7771 Use TARGET_DEFAULT_RETURN.
7772
dcd6917f
TT
77732014-02-19 Tom Tromey <tromey@redhat.com>
7774
7775 * target-delegates.c: Rebuild.
7776 * target.c (update_current_target): Don't inherit or default
7777 to_set_permissions.
7778 * target.h (struct target_ops) <to_set_permissions>: Use
7779 TARGET_DEFAULT_IGNORE.
7780
22bcceee
TT
77812014-02-19 Tom Tromey <tromey@redhat.com>
7782
7783 * target-delegates.c: Rebuild.
7784 * target.c (update_current_target): Don't inherit or default
7785 to_get_tib_address.
7786 * target.h (struct target_ops) <to_get_tib_address>: Use
7787 TARGET_DEFAULT_NORETURN.
7788
8586ccaa
TT
77892014-02-19 Tom Tromey <tromey@redhat.com>
7790
7791 * target-delegates.c: Rebuild.
7792 * target.c (update_current_target): Don't inherit or default
7793 to_set_trace_notes.
7794 * target.h (struct target_ops) <to_set_trace_notes>: Use
7795 TARGET_DEFAULT_RETURN.
7796
91df8d1d
TT
77972014-02-19 Tom Tromey <tromey@redhat.com>
7798
7799 * target-delegates.c: Rebuild.
7800 * target.c (update_current_target): Don't initialize
7801 to_set_trace_buffer_size.
7802 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7803 TARGET_DEFAULT_IGNORE.
7804
8d526939
TT
78052014-02-19 Tom Tromey <tromey@redhat.com>
7806
7807 * target-delegates.c: Rebuild.
7808 * target.c (update_current_target): Don't inherit or default
7809 to_set_circular_trace_buffer.
7810 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7811 TARGET_DEFAULT_IGNORE.
7812
0bcfeddf
TT
78132014-02-19 Tom Tromey <tromey@redhat.com>
7814
7815 * target-delegates.c: Rebuild.
7816 * target.c (update_current_target): Don't inherit or default
7817 to_set_disconnected_tracing.
7818 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7819 TARGET_DEFAULT_IGNORE.
7820
9249843f
TT
78212014-02-19 Tom Tromey <tromey@redhat.com>
7822
7823 * target-delegates.c: Rebuild.
7824 * target.c (update_current_target): Don't inherit or default
7825 to_get_min_fast_tracepoint_insn_len.
7826 (return_minus_one): Remove.
7827 * target.h (struct target_ops)
7828 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7829
ace92e7d
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * target-delegates.c: Rebuild.
7833 * target.c (update_current_target): Don't inherit or default
7834 to_get_raw_trace_data.
7835 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7836 TARGET_DEFAULT_NORETURN.
7837
08120467
TT
78382014-02-19 Tom Tromey <tromey@redhat.com>
7839
7840 * target-delegates.c: Rebuild.
7841 * target.c (update_current_target): Don't inherit or default
7842 to_upload_trace_state_variables.
7843 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7844 Use TARGET_DEFAULT_RETURN.
7845
1e949b00
TT
78462014-02-19 Tom Tromey <tromey@redhat.com>
7847
7848 * target-delegates.c: Rebuild.
7849 * target.c (update_current_target): Don't inherit or default
7850 to_upload_tracepoints.
7851 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7852 TARGET_DEFAULT_RETURN.
7853
a2e6c147
TT
78542014-02-19 Tom Tromey <tromey@redhat.com>
7855
7856 * target-delegates.c: Rebuild.
7857 * target.c (update_current_target): Don't inherit or default
7858 to_save_trace_data.
7859 * target.h (struct target_ops) <to_save_trace_data>: Use
7860 TARGET_DEFAULT_NORETURN.
7861
959bcd0b
TT
78622014-02-19 Tom Tromey <tromey@redhat.com>
7863
7864 * target-delegates.c: Rebuild.
7865 * target.c (update_current_target): Don't inherit or default
7866 to_get_trace_state_variable_value.
7867 * target.h (struct target_ops)
7868 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7869
afc94e66
TT
78702014-02-19 Tom Tromey <tromey@redhat.com>
7871
7872 * target-delegates.c: Rebuild.
7873 * target.c (update_current_target): Don't inherit or default
7874 to_trace_find.
7875 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7876
e51c07ea
TT
78772014-02-19 Tom Tromey <tromey@redhat.com>
7878
7879 * target-delegates.c: Rebuild.
7880 * target.c (update_current_target): Don't inherit or default
7881 to_trace_stop.
7882 * target.h (struct target_ops) <to_trace_stop>: Use
7883 TARGET_DEFAULT_NORETURN.
7884
6fea14cd
TT
78852014-02-19 Tom Tromey <tromey@redhat.com>
7886
7887 * target-delegates.c: Rebuild.
7888 * target.c (update_current_target): Don't inherit or default
7889 to_get_tracepoint_status.
7890 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7891 TARGET_DEFAULT_NORETURN.
7892
4072d4ff
TT
78932014-02-19 Tom Tromey <tromey@redhat.com>
7894
7895 * target-delegates.c: Rebuild.
7896 * target.c (update_current_target): Don't inherit or default
7897 to_get_trace_status.
7898 * target.h (struct target_ops) <to_get_trace_status>: Use
7899 TARGET_DEFAULT_RETURN.
7900
25da2e80
TT
79012014-02-19 Tom Tromey <tromey@redhat.com>
7902
7903 * target-delegates.c: Rebuild.
7904 * target.c (update_current_target): Don't inherit or default
7905 to_trace_start.
7906 * target.h (struct target_ops) <to_trace_start>: Use
7907 TARGET_DEFAULT_NORETURN.
7908
86dd181d
TT
79092014-02-19 Tom Tromey <tromey@redhat.com>
7910
7911 * target-delegates.c: Rebuild.
7912 * target.c (update_current_target): Don't inherit or default
7913 to_trace_set_readonly_regions.
7914 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7915 Use TARGET_DEFAULT_NORETURN.
7916
05c41993
TT
79172014-02-19 Tom Tromey <tromey@redhat.com>
7918
7919 * target-delegates.c: Rebuild.
7920 * target.c (update_current_target): Don't inherit or default
7921 to_disable_tracepoint.
7922 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7923 TARGET_DEFAULT_NORETURN.
7924
151f70f1
TT
79252014-02-19 Tom Tromey <tromey@redhat.com>
7926
7927 * target-delegates.c: Rebuild.
7928 * target.c (update_current_target): Don't inherit or default
7929 to_enable_tracepoint.
7930 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7931 TARGET_DEFAULT_NORETURN.
7932
94eb98b9
TT
79332014-02-19 Tom Tromey <tromey@redhat.com>
7934
7935 * target-delegates.c: Rebuild.
7936 * target.c (update_current_target): Don't inherit or default
7937 to_download_trace_state_variable.
7938 * target.h (struct target_ops) <to_download_trace_state_variable>:
7939 Use TARGET_DEFAULT_NORETURN.
7940
719acc4a
TT
79412014-02-19 Tom Tromey <tromey@redhat.com>
7942
7943 * target-delegates.c: Rebuild.
7944 * target.c (update_current_target): Don't inherit or default
7945 to_can_download_tracepoint.
7946 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7947 TARGET_DEFAULT_RETURN.
7948
9a980a22
TT
79492014-02-19 Tom Tromey <tromey@redhat.com>
7950
7951 * target-delegates.c: Rebuild.
7952 * target.c (update_current_target): Don't inherit or default
7953 to_download_tracepoint.
7954 * target.h (struct target_ops) <to_download_tracepoint>: Use
7955 TARGET_DEFAULT_NORETURN.
7956
5536135b
TT
79572014-02-19 Tom Tromey <tromey@redhat.com>
7958
7959 * target-delegates.c: Rebuild.
7960 * target.c (update_current_target): Don't inherit or default
7961 to_trace_init.
7962 * target.h (struct target_ops) <to_trace_init>: Use
7963 TARGET_DEFAULT_RETURN.
7964
9409d39e
TT
79652014-02-19 Tom Tromey <tromey@redhat.com>
7966
7967 * target-delegates.c: Rebuild.
7968 * target.c (update_current_target): Don't inherit or default
7969 to_supports_string_tracing.
7970 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7971 TARGET_DEFAULT_RETURN.
7972
aab1b22d
TT
79732014-02-19 Tom Tromey <tromey@redhat.com>
7974
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7977 to_supports_enable_disable_tracepoint.
7978 * target.h (struct target_ops)
7979 <to_supports_enable_disable_tracepoint>: Use
7980 TARGET_DEFAULT_RETURN.
7981
a7304748
TT
79822014-02-19 Tom Tromey <tromey@redhat.com>
7983
7984 * target-delegates.c: Rebuild.
7985 * target.c (update_current_target): Don't inherit or default
7986 to_supports_multi_process.
7987 * target.h (struct target_ops) <to_supports_multi_process>: Use
7988 TARGET_DEFAULT_RETURN.
7989
4229b31d
TT
79902014-02-19 Tom Tromey <tromey@redhat.com>
7991
7992 * target-delegates.c: Rebuild.
7993 * target.c (update_current_target): Don't inherit or default
7994 to_get_ada_task_ptid.
7995 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7996 TARGET_DEFAULT_FUNC.
7997
43eba180
TT
79982014-02-19 Tom Tromey <tromey@redhat.com>
7999
8000 * target-delegates.c: Rebuild.
8001 * target.c (update_current_target): Don't inherit or default
8002 to_thread_architecture.
8003 * target.h (struct target_ops) <to_thread_architecture>: Use
8004 TARGET_DEFAULT_FUNC.
8005
fe31bf5b
TT
80062014-02-19 Tom Tromey <tromey@redhat.com>
8007
8008 * target-delegates.c: Rebuild.
8009 * target.c (update_current_target): Don't inherit or default
8010 to_execution_direction.
8011 * target.h (struct target_ops) <to_execution_direction>: Use
8012 TARGET_DEFAULT_FUNC.
8013
53e1cfc7
TT
80142014-02-19 Tom Tromey <tromey@redhat.com>
8015
8016 * target-delegates.c: Rebuild.
8017 * target.c (update_current_target): Don't inherit or default
8018 to_can_execute_reverse.
8019 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8020 TARGET_DEFAULT_RETURN.
8021 (target_can_execute_reverse): Unconditionally delegate.
8022
9bb9d61d
TT
80232014-02-19 Tom Tromey <tromey@redhat.com>
8024
8025 * target-delegates.c: Rebuild.
8026 * target.c (update_current_target): Don't inherit or default
8027 to_goto_bookmark.
8028 (dummy_goto_bookmark): Remove.
8029 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8030 * target.h (struct target_ops) <to_goto_bookmark>: Use
8031 TARGET_DEFAULT_NORETURN.
8032
3dbafbbb
TT
80332014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8037 to_get_bookmark.
8038 (dummy_get_bookmark): Remove.
8039 (init_dummy_target): Don't inherit or default to_get_bookmark.
8040 * target.h (struct target_ops) <to_get_bookmark>: Use
8041 TARGET_DEFAULT_NORETURN
8042
16f796b1
TT
80432014-02-19 Tom Tromey <tromey@redhat.com>
8044
8045 * target-delegates.c: Rebuild.
8046 * target.c (update_current_target): Don't inherit or default
8047 to_make_corefile_notes.
8048 (init_dummy_target): Don't initialize to_make_corefile_notes.
8049 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8050 TARGET_DEFAULT_FUNC.
8051
0b5a2719
TT
80522014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (update_current_target): Don't inherit or default
8056 to_find_memory_regions.
8057 (init_dummy_target): Don't initialize to_find_memory_regions.
8058 * target.h (struct target_ops) <to_find_memory_regions>: Use
8059 TARGET_DEFAULT_FUNC.
8060
d9cb0195
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_log_command.
8066 * target.h (struct target_ops) <to_log_command>: Use
8067 TARGET_DEFAULT_IGNORE.
8068 (target_log_command): Unconditionally delegate.
8069
830ca330
TT
80702014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target-delegates.c: Rebuild.
8073 * target.c (update_current_target): Don't inherit or default
8074 to_pid_to_exec_file.
8075 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8076 TARGET_DEFAULT_RETURN.
8077
825828fc
TT
80782014-02-19 Tom Tromey <tromey@redhat.com>
8079
8080 * target-delegates.c: Rebuild.
8081 * target.c (update_current_target): Don't inherit or default
8082 to_thread_name.
8083 (target_thread_name): Unconditionally delegate.
8084 * target.h (struct target_ops) <to_thread_name>: Use
8085 TARGET_DEFAULT_RETURN.
8086
4a7e6dda
TT
80872014-02-19 Tom Tromey <tromey@redhat.com>
8088
8089 * target-delegates.c: Rebuild.
8090 * target.c (update_current_target): Don't inherit or default
8091 to_extra_thread_info.
8092 * target.h (struct target_ops) <to_extra_thread_info>: Use
8093 TARGET_DEFAULT_RETURN.
8094
0db88c1d
TT
80952014-02-19 Tom Tromey <tromey@redhat.com>
8096
8097 * target-delegates.c: Rebuild.
8098 * target.c (update_current_target): Don't inherit or default
8099 to_has_exited.
8100 * target.h (struct target_ops) <to_has_exited>: Use
8101 TARGET_DEFAULT_RETURN..
8102
6a9fa051
TT
81032014-02-19 Tom Tromey <tromey@redhat.com>
8104
8105 * target-delegates.c: Rebuild.
8106 * target.c (update_current_target): Don't inherit or default
8107 to_set_syscall_catchpoint.
8108 (return_one): Remove.
8109 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8110 TARGET_DEFAULT_RETURN.
8111
62f64d7a
TT
81122014-02-19 Tom Tromey <tromey@redhat.com>
8113
8114 * target-delegates.c: Rebuild.
8115 * target.c (update_current_target): Don't inherit or default
8116 to_insert_exec_catchpoint.
8117 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8118 TARGET_DEFAULT_RETURN.
8119
cda0f38c
TT
81202014-01-08 Tom Tromey <tromey@redhat.com>
8121
8122 * target-delegates.c: Rebuild.
8123 * target.c (update_current_target): Don't inherit or default
8124 to_insert_exec_catchpoint.
8125 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8126 TARGET_DEFAULT_RETURN.
8127
95c3375e
TT
81282014-02-19 Tom Tromey <tromey@redhat.com>
8129
8130 * target-delegates.c: Rebuild.
8131 * target.c (update_current_target): Don't inherit or default
8132 to_remove_vfork_catchpoint.
8133 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8134 TARGET_DEFAULT_RETURN.
8135
7e18a8dc
TT
81362014-02-19 Tom Tromey <tromey@redhat.com>
8137
8138 * target-delegates.c: Rebuild.
8139 * target.c (update_current_target): Don't inherit or default
8140 to_insert_vfork_catchpoint.
8141 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8142 TARGET_DEFAULT_RETURN.
8143
e1a21fb7
TT
81442014-02-19 Tom Tromey <tromey@redhat.com>
8145
8146 * target-delegates.c: Rebuild.
8147 * target.c (update_current_target): Don't inherit or default
8148 to_remove_fork_catchpoint.
8149 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8150 TARGET_DEFAULT_RETURN.
8151
5958ebeb
TT
81522014-02-19 Tom Tromey <tromey@redhat.com>
8153
8154 * target-delegates.c: Rebuild.
8155 * target.c (update_current_target): Don't inherit or default
8156 to_insert_fork_catchpoint.
8157 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8158 TARGET_DEFAULT_RETURN.
8159
340ba4bf
TT
81602014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target-delegates.c: Rebuild.
8163 * target.c (update_current_target): Don't inherit or default
8164 to_post_startup_inferior.
8165 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8166 TARGET_DEFAULT_IGNORE.
8167
7634da87
TT
81682014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8172 to_load.
8173 * target.h (struct target_ops) <to_load>: Use
8174 TARGET_DEFAULT_NORETURN.
8175
e19e919f
TT
81762014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (update_current_target): Don't inherit or default
8180 to_terminal_info.
8181 * target.h (struct target_ops) <to_terminal_info>: Use
8182 TARGET_DEFAULT_FUNC.
8183
c6ea8f79
TT
81842014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (update_current_target): Don't inherit or default
8188 to_terminal_save_ours.
8189 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8190 TARGET_DEFAULT_IGNORE.
8191
e4a733f1
TT
81922014-02-19 Tom Tromey <tromey@redhat.com>
8193
8194 * target-delegates.c: Rebuild.
8195 * target.c (update_current_target): Don't inherit or default
8196 to_terminal_ours.
8197 * target.h (struct target_ops) <to_terminal_ours>: Use
8198 TARGET_DEFAULT_IGNORE.
8199
74fcbef9
TT
82002014-02-19 Tom Tromey <tromey@redhat.com>
8201
8202 * target-delegates.c: Rebuild.
8203 * target.c (update_current_target): Don't inherit or default
8204 to_terminal_ours_for_output.
8205 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8206 TARGET_DEFAULT_IGNORE.
8207
ddeaacc9
TT
82082014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8212 to_terminal_inferior.
8213 * target.h (struct target_ops) <to_terminal_inferior>: Use
8214 TARGET_DEFAULT_IGNORE.
8215
0343661d
TT
82162014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8220 to_terminal_init.
8221 * target.h (struct target_ops) <to_terminal_init>: Use
8222 TARGET_DEFAULT_IGNORE.
8223
77cdffe9
TT
82242014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8228 to_can_accel_watchpoint_condition.
8229 * target.h (struct target_ops)
8230 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8231
d03655e4
TT
82322014-02-19 Tom Tromey <tromey@redhat.com>
8233
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8236 to_region_ok_for_hw_watchpoint.
8237 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8238 Use TARGET_DEFAULT_FUNC.
8239
65f160a9
TT
82402014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8244 to_watchpoint_addr_within_range.
8245 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8246 Use TARGET_DEFAULT_FUNC.
8247
61dd109f
TT
82482014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8252 to_remove_watchpoint.
8253 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8254 TARGET_DEFAULT_NORETURN.
8255
016facd4
TT
82562014-02-19 Tom Tromey <tromey@redhat.com>
8257
8258 * target-delegates.c: Rebuild.
8259 * target.c (update_current_target): Don't inherit or default
8260 to_insert_watchpoint.
8261 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8262 TARGET_DEFAULT_RETURN.
8263
418dabac
TT
82642014-02-19 Tom Tromey <tromey@redhat.com>
8265
8266 * target-delegates.c: Rebuild.
8267 * target.c (update_current_target): Don't inherit or default
8268 to_remove_hw_breakpoint.
8269 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8270 TARGET_DEFAULT_RETURN.
8271
61b371f9
TT
82722014-02-19 Tom Tromey <tromey@redhat.com>
8273
8274 * target-delegates.c: Rebuild.
8275 * target.c (update_current_target): Don't inherit or default
8276 to_insert_hw_breakpoint.
8277 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8278 TARGET_DEFAULT_RETURN.
8279
52b51d06
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target-delegates.c: Rebuild.
8283 * target.c (update_current_target): Don't inherit or default
8284 to_can_use_hw_breakpoint.
8285 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8286 TARGET_DEFAULT_RETURN.
8287
f86e59b2
TT
82882014-02-19 Tom Tromey <tromey@redhat.com>
8289
8290 * target-delegates.c: Rebuild.
8291 * target.c (update_current_target): Don't inherit or default
8292 to_files_info.
8293 * target.h (struct target_ops) <to_files_info>: Use
8294 TARGET_DEFAULT_IGNORE.
8295
6c628163
TT
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target-delegates.c: Rebuild.
8299 * target.c (update_current_target): Don't inherit or default
8300 to_store.
8301 * target.h (struct target_ops) <to_store>: Use
8302 TARGET_DEFAULT_NORETURN.
8303
bebd3233
TT
83042014-02-19 Tom Tromey <tromey@redhat.com>
8305
8306 * target-delegates.c: Rebuild.
8307 * target.c (update_current_target): Don't inherit or default
8308 to_post_attach.
8309 * target.h (struct target_ops) <to_post_attach>: Use
8310 TARGET_DEFAULT_IGNORE.
8311
a53f3625
TT
83122014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * target-delegates.c: Rebuild.
8315 * target.c (update_current_target): Don't inherit or default
8316 to_rcmd.
8317 (default_rcmd): New function.
8318 (do_monitor_command): Unconditionally delegate.
8319 * target.h (struct target_ops) <to_rmcd>: Use
8320 TARGET_DEFAULT_FUNC.
8321
e9a29200
TT
83222014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (init_dummy_target): Don't initialize to_attach.
8326 (target_attach): Unconditionally delegate.
8327 * target.h (struct target_ops) <to_attach>: Use
8328 TARGET_DEFAULT_FUNC.
8329
09da0d0a
TT
83302014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target-delegates.c: Rebuild.
8333 * target.c (target_detach): Unconditionally delegate.
8334 (init_dummy_target): Don't initialize to_detach.
8335 * target.h (struct target_ops) <to_detach>: Use
8336 TARGET_DEFAULT_IGNORE.
8337
5436ff03
TT
83382014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8341 Add argument.
8342 (target_augmented_libraries_svr4_read): Add argument.
8343 * target.c (update_current_target): Update.
8344 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8345 argument.
8346
f0d960ea
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target.h (struct target_ops) <to_call_history_range>: Add
8350 argument.
8351 * target.c (target_call_history_range): Add argument.
8352 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8353 argument.
8354 (record_btrace_call_history_from): Update.
8355
ec0aea04
TT
83562014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target.h (struct target_ops) <to_call_history_from>: Add
8359 argument.
8360 * target.c (target_call_history_from): Add argument.
8361 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8362 argument.
8363
5df2fcba
TT
83642014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target.h (struct target_ops) <to_call_history>: Add argument.
8367 * target.c (target_call_history): Add argument.
8368 * record-btrace.c (record_btrace_call_history): Add 'self'
8369 argument.
8370
4e99c6b7
TT
83712014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target.h (struct target_ops) <to_insn_history_range>: Add
8374 argument.
8375 * target.c (target_insn_history_range): Add argument.
8376 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8377 argument.
8378 (record_btrace_insn_history_from): Update.
8379
9abc3ff3
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target.h (struct target_ops) <to_insn_history_from>: Add
8383 argument.
8384 * target.c (target_insn_history_from): Add argument.
8385 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8386 argument.
8387
7a6c5609
TT
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target.h (struct target_ops) <to_insn_history>: Add argument.
8391 * target.c (target_insn_history): Add argument.
8392 * record-btrace.c (record_btrace_insn_history): Add 'self'
8393 argument.
8394
606183ac
TT
83952014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target.h (struct target_ops) <to_goto_record>: Add argument.
8398 * target.c (target_goto_record): Add argument.
8399 * record-full.c (record_full_goto): Add 'self' argument.
8400 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8401
307a1b91
TT
84022014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8405 * target.c (target_goto_record_end): Add argument.
8406 * record-full.c (record_full_goto_end): Add 'self' argument.
8407 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8408
08475817
TT
84092014-02-19 Tom Tromey <tromey@redhat.com>
8410
8411 * target.h (struct target_ops) <to_goto_record_begin>: Add
8412 argument.
8413 * target.c (target_goto_record_begin): Add argument.
8414 * record-full.c (record_full_goto_begin): Add 'self' argument.
8415 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8416 argument.
8417
1c63c994
TT
84182014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target.h (struct target_ops) <to_record_is_replaying>: Add
8421 argument.
8422 * target.c (target_record_is_replaying): Add argument.
8423 * record-full.c (record_full_is_replaying): Add 'self' argument.
8424 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8425 argument.
8426 (record_btrace_xfer_partial, record_btrace_store_registers)
8427 (record_btrace_prepare_to_store, record_btrace_resume)
8428 (record_btrace_wait, record_btrace_decr_pc_after_break)
8429 (record_btrace_find_new_threads, record_btrace_thread_alive):
8430 Update.
8431
d1b55219
TT
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target.h (struct target_ops) <to_delete_record>: Add argument.
8435 * target.c (target_delete_record): Add argument.
8436 * record-full.c (record_full_delete): Add 'self' argument.
8437
1390f529
TT
84382014-02-19 Tom Tromey <tromey@redhat.com>
8439
8440 * target.h (struct target_ops) <to_save_record>: Add argument.
8441 * target.c (target_save_record): Add argument.
8442 * record-full.c (record_full_save): Add 'self' argument.
8443 (record_full_save): Add 'self' argument.
8444
630d6a4a
TT
84452014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * target.h (struct target_ops) <to_info_record>: Add argument.
8448 * target.c (target_info_record): Add argument.
8449 * record.c (info_record_command): Add argument.
8450 * record-full.c (record_full_info): Add 'self' argument.
8451 * record-btrace.c (record_btrace_info): Add 'self' argument.
8452
c6cd7c02
TT
84532014-02-19 Tom Tromey <tromey@redhat.com>
8454
8455 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8456 * target.c (target_stop_recording): Add argument.
8457 * record.c (record_stop): Add argument.
8458 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8459 argument.
8460
39c49f83
TT
84612014-02-19 Tom Tromey <tromey@redhat.com>
8462
8463 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8464 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8465 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8466 argument.
8467 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8468 (_initialize_amd64_linux_nat): Use it.
8469 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8470 (_initialize_i386_linux_nat): Use it.
8471
1777056d
TT
84722014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8475 * target.c (target_teardown_btrace): Add argument.
8476 * remote.c (remote_teardown_btrace): Add 'self' argument.
8477 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8478 argument.
8479 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8480 argument.
8481
25e95349
TT
84822014-02-19 Tom Tromey <tromey@redhat.com>
8483
8484 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8485 * target.c (target_disable_btrace): Add argument.
8486 * remote.c (remote_disable_btrace): Add 'self' argument.
8487 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8488 argument.
8489 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8490 argument.
8491
e3c49f88
TT
84922014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8495 * target.c (target_enable_btrace): Add argument.
8496 * remote.c (remote_enable_btrace): Add 'self' argument.
8497 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8498 argument.
8499 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8500 argument.
8501
fe38f897
TT
85022014-02-19 Tom Tromey <tromey@redhat.com>
8503
8504 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8505 (target_can_use_agent): Add argument.
8506 * target.c (update_current_target): Update.
8507 * remote.c (remote_can_use_agent): Add 'self' argument.
8508 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8509
2c152180
TT
85102014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * target.h (struct target_ops) <to_use_agent>: Add argument.
8513 (target_use_agent): Add argument.
8514 * target.c (update_current_target): Update.
8515 * remote.c (remote_use_agent): Add 'self' argument.
8516 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8517
a893e81f
TT
85182014-02-19 Tom Tromey <tromey@redhat.com>
8519
8520 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8521 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8522 (target_traceframe_info): Add argument.
8523 * target.c (update_current_target): Update.
8524 * remote.c (remote_traceframe_info): Add 'self' argument.
8525 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8526
c686c57f
TT
85272014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target.h (target_static_tracepoint_markers_by_strid): Add
8530 argument.
8531 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8532 'self' argument.
8533 * target.c (update_current_target): Update.
8534 * remote.c (struct target_ops)
8535 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8536 * linux-nat.c (struct target_ops)
8537 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8538
61fc905d
TT
85392014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8542 Add argument.
8543 (target_static_tracepoint_marker_at): Add argument.
8544 * target.c (update_current_target): Update.
8545 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8546 argument.
8547
c378d69d
TT
85482014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8551 (target_set_permissions): Add argument.
8552 * target.c (update_current_target): Update.
8553 * remote.c (remote_set_permissions): Add 'self' argument.
8554 (remote_start_remote): Update.
8555
bd7ae0f5
TT
85562014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8559 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8560 (target_get_tib_address): Add argument.
8561 * target.c (update_current_target): Update.
8562 * remote.c (remote_get_tib_address): Add 'self' argument.
8563
d9e68a2c
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8567 (target_set_trace_notes): Add argument.
8568 * target.c (update_current_target): Update.
8569 * remote.c (remote_set_trace_notes): Add 'self' argument.
8570
4da384be
TT
85712014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8574 argument.
8575 (target_set_trace_buffer_size): Add argument.
8576 * target.c (update_current_target): Update.
8577 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8578
736d5b1f
TT
85792014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8582 argument.
8583 (target_set_circular_trace_buffer): Add argument.
8584 * target.c (update_current_target): Update.
8585 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8586 argument.
8587
37b25738
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8591 argument.
8592 (target_set_disconnected_tracing): Add argument.
8593 * target.c (update_current_target): Update.
8594 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8595
0e67620a
TT
85962014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.h (struct target_ops)
8599 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8600 (target_get_min_fast_tracepoint_insn_len): Add argument.
8601 * target.c (update_current_target): Update.
8602 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8603 argument.
8604
88ee6f45
TT
86052014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8608 argument.
8609 (target_get_raw_trace_data): Add argument.
8610 * target.c (update_current_target): Update.
8611 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8612
181e3713
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8616 Add argument.
8617 (target_upload_trace_state_variables): Add argument.
8618 * target.c (update_current_target): Update.
8619 * remote.c (remote_upload_trace_state_variables): Add 'self'
8620 argument.
8621 (remote_start_remote): Update.
8622
ab6617cc
TT
86232014-02-19 Tom Tromey <tromey@redhat.com>
8624
8625 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8626 argument.
8627 (target_upload_tracepoints): Add argument.
8628 * target.c (update_current_target): Update.
8629 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8630 (remote_start_remote): Update.
8631
dc3decaf
TT
86322014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8635 (target_save_trace_data): Add argument.
8636 * target.c (update_current_target): Update.
8637 * remote.c (remote_save_trace_data): Add 'self' argument.
8638
4011015b
TT
86392014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8642 argument.
8643 * target.h (struct target_ops)
8644 <to_get_trace_state_variable_value>: Add argument.
8645 (target_get_trace_state_variable_value): Add argument.
8646 * target.c (update_current_target): Update.
8647 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8648 argument.
8649 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8650
bd4c6793
TT
86512014-02-19 Tom Tromey <tromey@redhat.com>
8652
8653 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8654 * target.h (struct target_ops) <to_trace_find>: Add argument.
8655 (target_trace_find): Add argument.
8656 * target.c (update_current_target): Update.
8657 * remote.c (remote_trace_find): Add 'self' argument.
8658 * ctf.c (ctf_trace_find): Add 'self' argument.
8659
74499f1b
TT
86602014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8663 (target_trace_stop): Add argument.
8664 * target.c (update_current_target): Update.
8665 * remote.c (remote_trace_stop): Add 'self' argument.
8666
db90e85c
TT
86672014-02-19 Tom Tromey <tromey@redhat.com>
8668
8669 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8670 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8671 argument.
8672 (target_get_tracepoint_status): Add argument.
8673 * target.c (update_current_target): Update.
8674 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8675
8bd200f1
TT
86762014-02-19 Tom Tromey <tromey@redhat.com>
8677
8678 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8679 * target.h (struct target_ops) <to_get_trace_status>: Add
8680 argument.
8681 (target_get_trace_status): Add argument.
8682 * target.c (update_current_target): Update.
8683 * remote.c (remote_get_trace_status): Add 'self' argument.
8684 (remote_start_remote, remote_can_download_tracepoint): Update.
8685 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8686
e2d1aae3
TT
86872014-02-19 Tom Tromey <tromey@redhat.com>
8688
8689 * target.h (struct target_ops) <to_trace_start>: Add argument.
8690 (target_trace_start): Add argument.
8691 * target.c (update_current_target): Update.
8692 * remote.c (remote_trace_start): Add 'self' argument.
8693
583f9a86
TT
86942014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8697 Add argument.
8698 (target_trace_set_readonly_regions): Add argument.
8699 * target.c (update_current_target): Update.
8700 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8701 argument.
8702
780b049c
TT
87032014-02-19 Tom Tromey <tromey@redhat.com>
8704
8705 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8706 argument.
8707 (target_disable_tracepoint): Add argument.
8708 * target.c (update_current_target): Update.
8709 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8710
46670d57
TT
87112014-02-19 Tom Tromey <tromey@redhat.com>
8712
8713 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8714 argument.
8715 (target_enable_tracepoint): Add argument.
8716 * target.c (update_current_target): Update.
8717 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8718
559d2b81
TT
87192014-02-19 Tom Tromey <tromey@redhat.com>
8720
8721 * target.h (struct target_ops) <to_download_trace_state_variable>:
8722 Add argument.
8723 (target_download_trace_state_variable): Add argument.
8724 * target.c (update_current_target): Update.
8725 * remote.c (remote_download_trace_state_variable): Add 'self'
8726 argument.
8727
a52a8357
TT
87282014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8731 argument.
8732 (target_can_download_tracepoint): Add argument.
8733 * target.c (update_current_target): Update.
8734 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8735
548f7808
TT
87362014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target.h (struct target_ops) <to_download_tracepoint>: Add
8739 argument.
8740 (target_download_tracepoint): Add argument.
8741 * target.c (update_current_target): Update.
8742 * remote.c (remote_download_tracepoint): Add 'self' argument.
8743
ecae04e1
TT
87442014-02-19 Tom Tromey <tromey@redhat.com>
8745
8746 * target.h (struct target_ops) <to_trace_init>: Add argument.
8747 (target_trace_init): Add argument.
8748 * target.c (update_current_target): Update.
8749 * remote.c (remote_trace_init): Add 'self' argument.
8750
fab5aa7c
TT
87512014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8754 * target.c (target_fileio_readlink): Add argument.
8755 * remote.c (remote_hostio_readlink): Add 'self' argument.
8756 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8757
dbbca37d
TT
87582014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8761 * target.c (target_fileio_unlink): Add argument.
8762 * remote.c (remote_hostio_unlink): Add 'self' argument.
8763 (remote_file_delete): Update.
8764 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8765
df39ea25
TT
87662014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8769 * target.c (target_fileio_close): Add argument.
8770 * remote.c (remote_hostio_close): Add 'self' argument.
8771 (remote_hostio_close_cleanup): Update.
8772 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8773 Update.
8774 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8775
a3be983c
TT
87762014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8779 * target.c (target_fileio_pread): Add argument.
8780 * remote.c (remote_hostio_pread): Add 'self' argument.
8781 (remote_bfd_iovec_pread, remote_file_get): Update.
8782 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8783
0d866f62
TT
87842014-02-19 Tom Tromey <tromey@redhat.com>
8785
8786 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8787 * target.c (target_fileio_pwrite): Add argument.
8788 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8789 (remote_file_put): Update.
8790 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8791
cd897586
TT
87922014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8795 * target.c (target_fileio_open): Add argument.
8796 * remote.c (remote_hostio_open): Add 'self' argument.
8797 (remote_bfd_iovec_open): Add 'self' argument.
8798 (remote_file_put): Add 'self' argument.
8799 (remote_file_get): Add 'self' argument.
8800 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8801
78eff0ec
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8805 Add argument.
8806 (target_can_run_breakpoint_commands): Add argument.
8807 * target.c (update_current_target): Update.
8808 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8809 argument.
8810 (remote_insert_breakpoint): Add 'self' argument.
8811 (remote_insert_hw_breakpoint): Add 'self' argument.
8812 (remote_can_run_breakpoint_commands): Add 'self' argument.
8813
efcc2da7
TT
88142014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target.h (struct target_ops)
8817 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8818 (target_supports_evaluation_of_breakpoint_conditions): Add
8819 argument.
8820 * target.c (update_current_target): Update.
8821 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8822 argument.
8823 (remote_insert_breakpoint): Add 'self' argument.
8824 (remote_insert_hw_breakpoint): Add 'self' argument.
8825 (remote_supports_cond_breakpoints): Add 'self' argument.
8826
6de37a3a
TT
88272014-02-19 Tom Tromey <tromey@redhat.com>
8828
8829 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8830 argument.
8831 (target_supports_string_tracing): Add argument.
8832 * target.c (update_current_target): Update.
8833 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8834
2bfc0540
TT
88352014-02-19 Tom Tromey <tromey@redhat.com>
8836
8837 * target.h (struct target_ops)
8838 <to_supports_disable_randomization>: Add argument.
8839 * target.c (find_default_supports_disable_randomization): Add
8840 argument.
8841 (target_supports_disable_randomization): Add argument.
8842 (find_default_supports_disable_randomization): Add 'self'
8843 argument.
8844 * remote.c (extended_remote_supports_disable_randomization): Add
8845 'self' argument.
8846 (remote_supports_disable_randomization): Add 'self' argument.
8847 (extended_remote_create_inferior): Update.
8848 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8849 'self' argument.
8850
7d178d6a
TT
88512014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * target.h (struct target_ops)
8854 <to_supports_enable_disable_tracepoint>: Add argument.
8855 (target_supports_enable_disable_tracepoint): Add argument.
8856 * target.c (update_current_target): Update.
8857 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8858 argument.
8859
86ce2668
TT
88602014-02-19 Tom Tromey <tromey@redhat.com>
8861
8862 * target.h (struct target_ops) <to_supports_multi_process>: Add
8863 argument.
8864 (target_supports_multi_process): Add argument.
8865 * target.c (update_current_target): Update.
8866 * remote.c (remote_supports_multi_process): Add 'self' argument.
8867 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8868 argument.
8869 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8870 argument.
8871
4c612759
TT
88722014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target.h (struct target_ops) <to_execution_direction>: Add
8875 argument.
8876 (target_execution_direction): Add argument.
8877 * target.c (default_execution_direction): Add 'self' argument.
8878 * record-full.c (record_full_execution_direction): Add 'self'
8879 argument.
8880
19db3e69
TT
88812014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8884 argument.
8885 (target_can_execute_reverse): Add argument.
8886 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8887 * record-full.c (record_full_can_execute_reverse): Add 'self'
8888 argument.
8889 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8890 argument.
8891
1e6b91a4
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8895 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8896 argument.
8897 (target_get_ada_task_ptid): Add argument.
8898 * target.c (update_current_target): Update.
8899 (default_get_ada_task_ptid): Add 'self' argument.
8900 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8901 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8902 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8903 argument.
8904 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8905 argument.
8906 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8907 argument.
8908 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8909 argument.
8910 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8911 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8912 argument.
8913
3c80fb48
TT
89142014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8917 (target_goto_bookmark): Add argument.
8918 * target.c (dummy_goto_bookmark): Add 'self' argument.
8919 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8920
dd0e2830
TT
89212014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8924 (target_get_bookmark): Add argument.
8925 * target.c (dummy_get_bookmark): Add 'self' argument.
8926 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8927
fc6691b2
TT
89282014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8931 argument.
8932 (target_make_corefile_notes): Add argument.
8933 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8934 * procfs.c (procfs_make_note_section): Add 'self' argument.
8935 (procfs_make_note_section): Add 'self' argument.
8936 (procfs_make_note_section): Add 'self' argument.
8937 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8938 argument.
8939 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8940 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8941 * exec.c (exec_make_note_section): Add 'self' argument.
8942 (exec_make_note_section): Add 'self' argument.
8943
2e73927c
TT
89442014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target.h (struct target_ops) <to_find_memory_regions>: Add
8947 argument.
8948 (target_find_memory_regions): Add argument.
8949 * target.c (dummy_find_memory_regions): Add 'self' argument.
8950 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8951 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8952 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8953 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8954 * exec. (exec_do_find_memory_regions): New global.
8955 (exec_set_find_memory_regions): Rewrite.
8956 (exec_find_memory_regions): New function.
8957 (init_exec_ops): Use exec_find_memory_regions.
8958
2a9a2795
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target.h (struct target_ops) <to_supports_non_stop>: Add
8962 argument.
8963 * target.c (find_default_supports_non_stop): Add argument.
8964 (target_supports_non_stop): Add argument.
8965 (find_default_supports_non_stop): Add 'self' argument.
8966 * remote.c (remote_supports_non_stop): Add 'self' argument.
8967 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8968
4ab76ea3
TT
89692014-02-19 Tom Tromey <tromey@redhat.com>
8970
8971 * target.h (struct target_ops) <to_log_command>: Add argument.
8972 (target_log_command): Add argument.
8973 * serial.h (serial_log_command): Add 'self' argument.
8974 * serial.c (serial_log_command): Add 'self' argument.
8975
8dd27370
TT
89762014-02-19 Tom Tromey <tromey@redhat.com>
8977
8978 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8979 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8980 argument.
8981 (target_pid_to_exec_file): Add argument.
8982 * target.c (debug_to_pid_to_exec_file): Add argument.
8983 (update_current_target): Update.
8984 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8985 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8986 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8987 (linux_handle_extended_wait): Update.
8988 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8989 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8990 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8991 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8992
1aac633b
TT
89932014-02-19 Tom Tromey <tromey@redhat.com>
8994
8995 * target.h (struct target_ops) <to_rcmd>: Add argument.
8996 (target_rcmd): Add argument.
8997 * target.c (debug_to_rcmd): Add argument.
8998 (update_current_target, do_monitor_command): Update.
8999 * remote.c (remote_rcmd): Add 'self' argument.
9000 * monitor.c (monitor_rcmd): Add 'self' argument.
9001
1eab8a48
TT
90022014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * windows-nat.c (windows_stop): Add 'self' argument.
9005 * target.h (struct target_ops) <to_stop>: Add argument.
9006 * target.c (target_stop): Add argument.
9007 (debug_to_stop): Add argument.
9008 (update_current_target): Update.
9009 * remote.c (remote_stop): Add 'self' argument.
9010 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9011 (gdbsim_cntrl_c): Update.
9012 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9013 * procfs.c (procfs_stop): Add 'self' argument.
9014 * nto-procfs.c (procfs_stop): Add 'self' argument.
9015 * monitor.c (monitor_stop): Add 'self' argument.
9016 (monitor_open): Update.
9017 * linux-nat.c (linux_nat_stop): Add argument.
9018 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9019 * gnu-nat.c (gnu_stop): Add 'self' argument.
9020 * darwin-nat.c (darwin_stop): Add 'self' argument.
9021
503a628d
TT
90222014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target.h (struct target_ops) <to_thread_name>: Add argument.
9025 * target.c (target_thread_name): Add argument.
9026 (update_current_target): Update.
9027 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9028
c15906d8
TT
90292014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target.h (struct target_ops) <to_extra_thread_info>: Add
9032 argument.
9033 (target_extra_thread_info): Add argument.
9034 * target.c (update_current_target): Update.
9035 * remote.c (remote_threads_extra_info): Add 'self' argument.
9036 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9037 argument.
9038 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9039 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9040 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9041 argument.
9042 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9043 argument.
9044 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9045 argument.
9046 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9047 argument.
9048
daf5e9b6
TT
90492014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops) <to_program_signals>: Add argument.
9052 * target.c (target_program_signals): Add argument.
9053 * remote.c (remote_program_signals): Add 'self' argument.
9054
94bedb42
TT
90552014-02-19 Tom Tromey <tromey@redhat.com>
9056
9057 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9058 * target.c (target_pass_signals): Add argument.
9059 * remote.c (remote_pass_signals): Add 'self' argument.
9060 (remote_start_remote): Update.
9061 * procfs.c (procfs_pass_signals): Add 'self' argument.
9062 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9063 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9064 (linux_nat_create_inferior, linux_nat_attach): Update.
9065
da82bd6b
TT
90662014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * windows-nat.c (windows_can_run): Add 'self' argument.
9069 * target.h (struct target_ops) <to_can_run>: Add argument.
9070 (target_can_run): Add argument.
9071 * target.c (debug_to_can_run): Add argument.
9072 (update_current_target): Update.
9073 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9074 * inf-child.c (inf_child_can_run): Add 'self' argument.
9075 * go32-nat.c (go32_can_run): Add 'self' argument.
9076
d796e1d6
TT
90772014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target.h (struct target_ops) <to_has_exited>: Add argument.
9080 (target_has_exited): Add argument.
9081 * target.c (debug_to_has_exited): Add argument.
9082 (update_current_target): Update.
9083
ff214e67
TT
90842014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9087 argument.
9088 (target_set_syscall_catchpoint): Add argument.
9089 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9090 argument.
9091 * target.c (update_current_target): Update.
9092
758e29d2
TT
90932014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9096 argument.
9097 (target_remove_exec_catchpoint): Add argument.
9098 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9099 (update_current_target): Update.
9100 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9101 argument.
9102
ba025e51
TT
91032014-02-19 Tom Tromey <tromey@redhat.com>
9104
9105 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9106 argument.
9107 (target_insert_exec_catchpoint): Add argument.
9108 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9109 (update_current_target): Update.
9110 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9111 argument.
9112
e98cf0cd
TT
91132014-02-19 Tom Tromey <tromey@redhat.com>
9114
9115 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9116 argument.
9117 (target_remove_vfork_catchpoint): Add argument.
9118 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9119 (update_current_target): Update.
9120 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9121 argument.
9122
3ecc7da0
TT
91232014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9126 argument.
9127 (target_insert_vfork_catchpoint): Add argument.
9128 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9129 (update_current_target): Update.
9130 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9131 argument.
9132
973fc227
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9136 argument.
9137 (target_remove_fork_catchpoint): Add argument.
9138 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9139 (update_current_target): Update.
9140 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9141 argument.
9142
a863b201
TT
91432014-02-19 Tom Tromey <tromey@redhat.com>
9144
9145 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9146 argument.
9147 (target_insert_fork_catchpoint): Add argument.
9148 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9149 (update_current_target): Update.
9150 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9151 argument.
9152
2e97a79e
TT
91532014-02-19 Tom Tromey <tromey@redhat.com>
9154
9155 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9156 argument.
9157 (target_post_startup_inferior): Add argument.
9158 * target.c (debug_to_post_startup_inferior): Add argument.
9159 (update_current_target): Update.
9160 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9161 argument.
9162 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9163 argument.
9164 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9165 argument.
9166 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9167 argument.
9168 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9169 'self' argument.
9170 (super_post_startup_inferior): Likewise.
9171 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9172 'self' argument.
9173 (super_post_startup_inferior): Likewise.
9174 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9175 Add 'self' argument.
9176 (super_post_startup_inferior): Likewise.
9177
71a9f134
TT
91782014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target.h (struct target_ops) <to_load>: Add argument.
9181 * target.c (target_load): Add argument.
9182 (debug_to_load): Add argument.
9183 (update_current_target): Update.
9184 * remote.c (remote_load): Add 'self' argument.
9185 * remote-sim.c (gdbsim_load): Add 'self' argument.
9186 * remote-mips.c (mips_load): Add 'self' argument.
9187 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9188 * monitor.c (monitor_load): Add 'self' argument.
9189 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9190
0a4f40a2
TT
91912014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9194 (target_terminal_info): Add argument.
9195 * target.c (debug_to_terminal_info): Add argument.
9196 (default_terminal_info): Likewise.
9197 * inflow.c (child_terminal_info): Add 'self' argument.
9198 * inferior.h (child_terminal_info): Add 'self' argument.
9199 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9200
ae3bd431
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9204 argument.
9205 (target_terminal_save_ours): Add argument.
9206 * target.c (debug_to_terminal_save_ours): Add argument.
9207 (update_current_target): Update.
9208 * inflow.c (terminal_save_ours): Add 'self' argument.
9209 * inferior.h (terminal_save_ours): Add 'self' argument.
9210
e3594fd1
TT
92112014-02-19 Tom Tromey <tromey@redhat.com>
9212
9213 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9214 (target_terminal_ours): Add argument.
9215 * target.c (debug_to_terminal_ours): Add argument.
9216 (update_current_target): Update.
9217 * remote.c (remote_terminal_ours): Add 'self' argument.
9218 (remote_close): Update.
9219 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9220 * inflow.c (terminal_ours): Add 'self' argument.
9221 * inferior.h (terminal_ours): Add 'self' argument.
9222 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9223
2e1e1a19
TT
92242014-02-19 Pedro Alves <palves@redhat.com>
9225 Tom Tromey <tromey@redhat.com>
9226
9227 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9228 argument.
9229 (target_terminal_ours_for_output): Add argument.
9230 * target.c (debug_to_terminal_ours_for_output): Add argument.
9231 (update_current_target): Update.
9232 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9233 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9234 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9235
d2f640d4
TT
92362014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target.h (struct target_ops) <to_terminal_inferior>: Add
9239 argument.
9240 * target.c (target_terminal_inferior): Add argument.
9241 (update_current_target): Update.
9242 * remote.c (remote_terminal_inferior): Add 'self' argument.
9243 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9244 * inflow.c (terminal_inferior): Add 'self' argument.
9245 * inferior.h (terminal_inferior): Add 'self' argument.
9246 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9247 (go32_terminal_inferior): Add 'self' argument.
9248
c42bf286
TT
92492014-02-19 Tom Tromey <tromey@redhat.com>
9250
9251 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9252 (target_terminal_init): Add argument.
9253 * target.c (debug_to_terminal_init): Add argument.
9254 (update_current_target): Update.
9255 * inflow.c (terminal_init_inferior): Add 'self' argument.
9256 * inferior.h (terminal_init_inferior): Add 'self' argument.
9257 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9258 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9259
c3a5ff89
TT
92602014-02-19 Tom Tromey <tromey@redhat.com>
9261
9262 * target.h (struct target_ops)
9263 <to_can_accel_watchpoint_condition>: Add argument.
9264 (target_can_accel_watchpoint_condition): Add argument.
9265 * target.c (debug_to_can_accel_watchpoint_condition): Add
9266 argument.
9267 (update_current_target): Update.
9268 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9269 'self' argument.
9270
31568a15
TT
92712014-02-19 Tom Tromey <tromey@redhat.com>
9272
9273 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9274 Add argument.
9275 (target_region_ok_for_hw_watchpoint): Add argument.
9276 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9277 (default_region_ok_for_hw_watchpoint): Add argument.
9278 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9279 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9280 argument.
9281 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9282 argument.
9283 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9284 argument.
9285 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9286 'self' argument.
9287 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9288 'self' argument.
9289 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9290 'self' argument.
9291 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9292 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9293 'self' argument.
9294 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9295 Add 'self' argument.
9296
7bb99c53
TT
92972014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9300 argument.
9301 (target_insert_watchpoint): Add argument.
9302 * target.c (debug_to_insert_watchpoint): Add argument.
9303 (update_current_target): Update.
9304 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9305 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9306 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9307 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9308 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9309 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9310 argument.
9311 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9312 (procfs_insert_hw_watchpoint): Add 'self' argument.
9313 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9314 argument.
9315 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9316 argument.
9317 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9318 argument.
9319 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9320 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9321 argument.
9322 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9323 'self' argument.
9324
11b5219a
TT
93252014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9328 argument.
9329 (target_remove_watchpoint): Add argument.
9330 * target.c (debug_to_remove_watchpoint): Add argument.
9331 (update_current_target): Update.
9332 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9333 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9334 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9335 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9336 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9337 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9338 argument.
9339 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9340 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9341 argument.
9342 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9343 argument.
9344 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9345 argument.
9346 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9347 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9348 argument.
9349 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9350 'self' argument.
9351
a64dc96c
TT
93522014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9355 argument.
9356 (target_remove_hw_breakpoint): Add argument.
9357 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9358 (update_current_target): Update.
9359 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9360 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9361 argument.
9362 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9363 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9364 argument.
9365 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9366 'self' argument.
9367
23a26771
TT
93682014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9371 argument.
9372 (target_insert_hw_breakpoint): Add argument.
9373 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9374 (update_current_target): Update.
9375 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9376 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9377 argument.
9378 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9379 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9380 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9381 argument.
9382 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9383 'self' argument.
9384
5461485a
TT
93852014-02-19 Tom Tromey <tromey@redhat.com>
9386
9387 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9388 argument.
9389 (target_can_use_hardware_watchpoint): Add argument.
9390 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9391 (update_current_target): Update.
9392 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9393 argument.
9394 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9395 argument.
9396 * remote.c (remote_check_watch_resources): Add 'self' argument.
9397 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9398 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9399 argument.
9400 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9401 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9402 argument.
9403 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9404 argument.
9405 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9406 argument.
9407 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9408 argument.
9409 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9410 argument.
9411 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9412 argument.
9413 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9414 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9415 argument.
9416 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9417 'self' argument.
9418
f045800c
TT
94192014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target.h (struct target_ops) <to_post_attach>: Add argument.
9422 (target_post_attach): Add argument.
9423 * target.c (debug_to_post_attach): Add argument.
9424 (update_current_target): Update.
9425 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9426 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9427 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9428 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9429 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9430
de90e03d
TT
94312014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * windows-nat.c (windows_close): Add 'self' argument.
9434 * tracepoint.c (tfile_close): Add 'self' argument.
9435 * target.h (struct target_ops) <to_close>: Add argument.
9436 * target.c (target_close): Add argument.
9437 (update_current_target): Update.
9438 * remote.c (remote_close): Add 'self' argument.
9439 * remote-sim.c (gdbsim_close): Add 'self' argument.
9440 * remote-mips.c (mips_close): Add 'self' argument.
9441 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9442 * record-full.c (record_full_close): Add 'self' argument.
9443 * record-btrace.c (record_btrace_close): Add 'self' argument.
9444 * monitor.h (monitor_close): Add 'self' argument.
9445 * monitor.c (monitor_close): Add 'self' argument.
9446 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9447 * linux-nat.c (linux_nat_close): Add argument.
9448 * go32-nat.c (go32_close): Add 'self' argument.
9449 * exec.c (exec_close_1): Add 'self' argument.
9450 * ctf.c (ctf_close): Add 'self' argument.
9451 * corelow.c (core_close): Add 'self' argument.
9452 (core_close_cleanup): Update.
9453 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9454 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9455
9dd130a0
TT
94562014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * remote.c (remote_load): New function.
9459 (init_remote_ops): Use it.
9460
46917d26
TT
94612014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9464 argument.
9465 * common/linux-btrace.h (linux_supports_btrace): Update.
9466 * remote.c (remote_supports_btrace): Add "self" argument.
9467 * target-delegates.c: Rebuild.
9468 * target.c (target_supports_btrace): Remove.
9469 * target.h (struct target_ops) <to_supports_btrace>: Add
9470 target_ops argument.
9471 (target_supports_btrace): New define.
9472
6b84065d
TT
94732014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * record-full.c (record_full_beneath_to_resume_ops)
9476 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9477 (record_full_beneath_to_wait)
9478 (record_full_beneath_to_store_registers_ops)
9479 (record_full_beneath_to_store_registers)
9480 (record_full_beneath_to_xfer_partial_ops)
9481 (record_full_beneath_to_xfer_partial)
9482 (record_full_beneath_to_insert_breakpoint_ops)
9483 (record_full_beneath_to_insert_breakpoint)
9484 (record_full_beneath_to_remove_breakpoint_ops)
9485 (record_full_beneath_to_remove_breakpoint)
9486 (record_full_beneath_to_stopped_by_watchpoint)
9487 (record_full_beneath_to_stopped_data_address)
9488 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9489 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9490 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9491 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9492 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9493 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9494 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9495 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9496 (record_full_resume, record_full_wait_1)
9497 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9498 (record_full_store_registers, record_full_xfer_partial)
9499 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9500 (record_full_async, record_full_core_xfer_partial): Use target
9501 delegation.
9502 * target-delegates.c: Rebuild.
9503 * target.c (current_xfer_partial): Remove.
9504 (update_current_target): Do not INHERIT or de_fault
9505 to_insert_breakpoint, to_remove_breakpoint,
9506 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9507 to_is_async_p, to_async. Do not set to_xfer_partial field.
9508 (default_xfer_partial): Simplify.
9509 (current_xfer_partial): Remove.
9510 (target_wait, target_resume): Simplify.
9511 (find_default_can_async_p, find_default_is_async_p): Update.
9512 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9513 to_xfer_partial, to_stopped_by_watchpoint,
9514 to_stopped_data_address.
9515 (target_store_registers): Simplify.
9516 (forward_target_remove_breakpoint)
9517 (forward_target_insert_breakpoint): Remove.
9518 (target_remove_breakpoint, target_insert_breakpoint)
9519 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9520 * target.h (struct target_ops) <to_resume, to_wait,
9521 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9522 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9523 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9524 markup.
9525 (forward_target_remove_breakpoint)
9526 (forward_target_insert_breakpoint): Remove.
9527 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9528 directly.
9529 (record_btrace_insert_breakpoint): Delegate directly.
9530
1101cb7b
TT
95312014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 PR build/7701:
9534 * target-delegates.c: New file.
9535 * target.c: Include target-delegates.c.
9536 (init_dummy_target): Call install_dummy_methods.
9537 (complete_target_initialization): Call install_delegators.
9538 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9539 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9540 * make-target-delegates: New file.
9541
8b06beed
TT
95422014-02-19 Tom Tromey <tromey@redhat.com>
9543
9544 * record.c (find_record_target): Use find_target_at.
9545 * target.c (find_target_at): New function.
9546 * target.h (find_target_at): Declare.
9547
6a109b6b
TT
95482014-02-19 Tom Tromey <tromey@redhat.com>
9549
9550 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9551 Add 'ops' argument.
9552 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9553 'ops' argument.
9554 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9555 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9556 'ops' argument.
9557 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9558 argument.
9559 * linux-nat.c (save_sigtrap): Update.
9560 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9561 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9562 (linux_nat_close): Update.
9563 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9564 argument.
9565 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9566 argument.
9567 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9568 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9569 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9570 (tmp_to_async): Add 'ops' argument.
9571 (record_full_stopped_by_watchpoint, record_full_async)
9572 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9573 argument.
9574 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9575 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9576 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9577 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9578 (remote_is_async_p, remote_async): Add 'ops' argument.
9579 (remote_stopped_data_address): Update.
9580 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9581 * target.c (update_current_target)
9582 (find_default_can_async_p, find_default_is_async_p): Update.
9583 (init_dummy_target): Update.
9584 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9585 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9586 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9587 (target_can_async_p, target_is_async_p, target_async)
9588 (target_stopped_by_watchpoint): Update.
9589
e095146b
YQ
95902014-02-19 Yao Qi <yao@codesourcery.com>
9591
9592 PR gdb/16220
9593 * gdbarch.sh: Remove startup_gdbarch.
9594 * gdbarch.c: Regenerated.
9595 * gdbarch.h: Likewise.
9596
bc3c6b36
KB
95972014-02-17 Kevin Buettner <kevinb@redhat.com>
9598
9599 * rl78-tdep.c (rl78_g10_register_name): New function.
9600 (rl78_return_value): Add g10 support.
9601 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9602 g10.
9603
98dc0167 96042014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9605
9606 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9607 (SUBDIR_GUILE_SRCS): Ditto.
9608 (scm-gsmob.o): Ditto.
9609
842c05cd
YQ
96102014-02-17 Yao Qi <yao@codesourcery.com>
9611
9612 * gnu-nat.c (ILL_RPC): Declare defined function.
9613
25c0bd04
YQ
96142014-02-17 Yao Qi <yao@codesourcery.com>
9615
9616 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9617 mach_msg_type_number_t.
9618 (gnu_write_inferior): Likewise.
9619
a9a758e3
YQ
96202014-02-17 Yao Qi <yao@codesourcery.com>
9621
9622 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9623 in format string.
9624 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9625 (inf_validate_procs, inf_signal): Likewise.
9626 (S_exception_raise_request): Likewise.
9627 (do_mach_notify_dead_name): Likewise.
9628 (steal_exc_port): Likewise.
9629 (gnu_read_inferior): Change 'copy_count''s type to
9630 mach_msg_type_number_t.
9631 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9632 format string.
9633
bae8023e
TS
96342014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9635
c82f56d9
TS
9636 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9637 flag. Adjust all users; in particular...
9638 (gnu_wait): ..., don't decrement its value in here...
9639 (gnu_create_inferior): ..., and instead set the flag in here,
9640 around the startup_inferior call, and call that one with
9641 START_INFERIOR_TRAPS_EXPECTED.
9642
3398af6a
TS
9643 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9644 (ILL_RPC): ... new macro.
9645 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9646 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9647 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9648 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9649 functions with ILL_RPC macro.
9650 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9651 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9652 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9653 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9654 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9655 (S_proc_getlogin_reply, S_proc_getsid_reply)
9656 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9657 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9658 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9659 (S_proc_getnports_reply, S_proc_is_important_reply)
9660 (S_proc_get_code_reply): New stub functions, generated with
9661 ILL_RPC macro.
9662
d47642c9
TS
9663 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9664 collected the type check structures.
9665
bae8023e
TS
9666 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9667
8a55ffb0
DE
96682014-02-14 Doug Evans <dje@google.com>
9669
9670 * target.c (target_write_partial): Fix result type.
9671
c2853f3d
JM
96722014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9673
9674 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9675 the proper offsets to access fpregset_t.
9676
ac61d2db
SA
96772014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9678
9679 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9680 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9681 * h8300-tdep.c (setmachinelist): Remove global.
9682 * hppa-tdep.c (hppa_sigtramp): Remove global.
9683 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9684 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9685 * ravenscar-thread.c (update_target_observer): Remove global.
9686 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9687
9d2d0b8b
TT
96882014-02-12 Tom Tromey <tromey@redhat.com>
9689
9690 * common/rsp-low.c: Update comments.
9691 * common/rsp-low.h: Update comments.
9692
a7191e8b
TT
96932014-02-12 Tom Tromey <tromey@redhat.com>
9694
9695 * common/rsp-low.c (convert_ascii_to_int): Remove.
9696 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9697
ff0e980e
TT
96982014-02-12 Tom Tromey <tromey@redhat.com>
9699
9700 * common/rsp-low.h (unhexify): Don't declare.
9701 * common/rsp-low.c (unhexify): Remove.
9702
e9371aff
TT
97032014-02-12 Tom Tromey <tromey@redhat.com>
9704
9705 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9706 * common/rsp-low.c (convert_int_to_ascii): Remove.
9707
971dc0b8
TT
97082014-02-12 Tom Tromey <tromey@redhat.com>
9709
9710 * common/rsp-low.h (hexify): Don't declare.
9711 * common/rsp-low.c (hexify): Remove.
9712
0a822afb
TT
97132014-02-12 Tom Tromey <tromey@redhat.com>
9714
9715 * common/rsp-low.c (hexify): Never take strlen of argument.
9716
9f1b45b0
TT
97172014-02-12 Tom Tromey <tromey@redhat.com>
9718
9719 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9720 * remote.c (extended_remote_run, remote_rcmd)
9721 (remote_download_trace_state_variable, remote_save_trace_data)
9722 (remote_set_trace_notes): Update.
9723 * tracepoint.c (encode_source_string, tfile_write_status)
9724 (tfile_write_uploaded_tsv): Update.
9725
9c3d6531
TT
97262014-02-12 Tom Tromey <tromey@redhat.com>
9727
9728 * tracepoint.c: Include rsp-low.h.
9729 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9730 * remote.c: Include rsp-low.h.
9731 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9732 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9733 (remote_unescape_input): Move to common/rsp-low.c.
9734 * common/rsp-low.h: New file.
9735 * common/rsp-low.c: New file.
9736 * Makefile.in (SFILES): Add common/rsp-low.c.
9737 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9738 (COMMON_OBS): Add rsp-low.o.
9739 (rsp-low.o): New target.
9740
01fd3ea5
TT
97412014-02-12 Tom Tromey <tromey@redhat.com>
9742
9743 * utils.h: Include print-utils.h.
9744 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9745 (int_string, core_addr_to_string, core_addr_to_string_nz)
9746 (hex_string, hex_string_custom): Don't declare.
9747 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9748 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9749 (hex_string_custom, int_string, core_addr_to_string)
9750 (core_addr_to_string_nz, host_address_to_string): Move to
9751 common/print-utils.c.
9752 * common/print-utils.h: New file.
9753 * common/print-utils.c: New file
9754 * Makefile.in (SFILES): Add common/print-utils.c.
9755 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9756 (COMMON_OBS): Add print-utils.o.
9757 (print-utils.o): New target.
9758
9fb50108
TT
97592014-02-12 Tom Tromey <tromey@redhat.com>
9760
9761 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9762
0548b5db
MK
97632014-02-12 Mark Kettenis <kettenis@gnu.org>
9764
9765 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9766
493443a4
MK
97672014-02-12 Mark Kettenis <kettenis@gnu.org>
9768
9769 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9770 if a PT_IO ptrace request returns sucessfully but indicates that 0
9771 bytes were transferred.
9772
706d0883
PA
97732014-02-12 Pedro Alves <palves@redhat.com>
9774 Kevin Buettner <kevinb@redhat.com>
9775
9776 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9777 TYPE_INSTANCE_FLAG_CODE_SPACE.
9778
5caa2f0b
PA
97792014-02-12 Pedro Alves <palves@redhat.com>
9780
9781 * h8300-tdep.c (pseudo_from_raw_register)
9782 (raw_from_pseudo_register): New functions.
9783 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9784 them.
9785
76fd5f74
PA
97862014-02-12 Pedro Alves <palves@redhat.com>
9787
9788 * h8300-tdep.c (h8300_register_sim_regno): New function.
9789 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9790 gdbarch_register_sim_regno hook.
9791
8f008406
SA
97922014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9793
9794 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9795
195abc10
SA
97962014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9797
9798 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9799
93ffa5b9
MK
98002014-02-12 Mark Kettenis <kettenis@gnu.org>
9801
9802 * obsd-tdep.h (obsd_init_abi): New prototype.
9803 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9804 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9805 (obsd_init_abi): New functions.
9806 * i386obsd-tdep.c: Include "obsd-tdep.h".
9807 (i386obsd_init_abi): Call obsd_init_abi.
9808 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9809 (amd64obsd_init_abi): Call obsd_init_abi.
9810 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9811 obsd-tdep.c to gdb_target_obs.
9812
49caec94
JM
98132014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9814
9815 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9816 double float arguments to 16-byte in the argument slots.
9817
e1402065
DE
98182014-02-11 Doug Evans <xdje42@gmail.com>
9819
9820 * configure.ac: Don't crash if pkg-config is not found and guile
9821 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9822 in guile checks.
9823 * configure: Regenerate.
9824
edcc890f
YQ
98252014-02-11 Yao Qi <yao@codesourcery.com>
9826
9827 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9828 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9829 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9830 * gnu-nat.c (gnu_xfer_memory): Likewise.
9831 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9832 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9833 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9834 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9835
9b409511
YQ
98362014-02-11 Yao Qi <yao@codesourcery.com>
9837
9838 * target.h (enum target_xfer_error): Rename to ...
9839 (enum target_xfer_status): ... it. New. All users updated.
9840 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9841 New.
9842 (TARGET_XFER_STATUS_ERROR_P): New macro.
9843 (target_xfer_error_to_string): Remove declaration.
9844 (target_xfer_status_to_string): Declare.
9845 (target_xfer_partial_ftype): Adjust it.
9846 (struct target_ops) <to_xfer_partial>: Return
9847 target_xfer_status. Add argument xfered_len. Update
9848 comments.
9849 * target.c (target_xfer_error_to_string): Rename to ...
9850 (target_xfer_status_to_string): ... it. New. All callers
9851 updated.
9852 (target_read_live_memory): Likewise. Call target_xfer_partial
9853 instead of target_read.
9854 (memory_xfer_live_readonly_partial): Return
9855 target_xfer_status. Add argument xfered_len.
9856 (raw_memory_xfer_partial): Likewise.
9857 (memory_xfer_partial_1): Likewise.
9858 (memory_xfer_partial): Likewise.
9859 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9860 properly. Update debug message.
9861 (default_xfer_partial, current_xfer_partial): Likewise.
9862 (target_write_partial): Likewise.
9863 (target_read_partial): Likewise. All callers updated.
9864 (read_whatever_is_readable): Likewise.
9865 (target_write_with_progress): Likewise.
9866 (target_read_alloc_1): Likewise.
9867
9868 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9869 * auxv.c (procfs_xfer_auxv): Likewise.
9870 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9871 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9872 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9873 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9874 * corefile.c (read_memory): Adjust.
9875 * corelow.c (core_xfer_partial): Likewise.
9876 * ctf.c (ctf_xfer_partial): Likewise.
9877 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9878 updated.
9879 (darwin_xfer_partial): Likewise.
9880 * exec.c (section_table_xfer_memory_partial): Likewise. All
9881 callers updated.
9882 (exec_xfer_partial): Likewise.
9883 * exec.h (section_table_xfer_memory_partial): Update
9884 declaration.
9885 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9886 negative.
9887 (gnu_xfer_partial): Likewise.
9888 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9889 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9890 (ia64_hpux_xfer_solib_got): Likewise.
9891 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9892 type of 'partial_len' to ULONGEST.
9893 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9894 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9895 (linux_nat_xfer_partial): Likewise.
9896 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9897 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9898 * monitor.c (monitor_xfer_memory): Likewise.
9899 (monitor_xfer_partial): Likewise.
9900 * procfs.c (procfs_xfer_partial): Likewise.
9901 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9902 * record-full.c (record_full_xfer_partial): Likewise.
9903 (record_full_core_xfer_partial): Likewise.
9904 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9905 (gdbsim_xfer_partial): Likewise.
9906 * remote.c (remote_write_bytes_aux): Likewise. All callers
9907 updated.
9908 (remote_write_bytes, remote_read_bytes): Likewise. All
9909 callers updated.
9910 (remote_flash_erase): Likewise. All callers updated.
9911 (remote_write_qxfer): Likewise. All callers updated.
9912 (remote_read_qxfer): Likewise. All callers updated.
9913 (remote_xfer_partial): Likewise.
9914 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9915 (rs6000_xfer_shared_libraries): Likewise.
9916 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9917 (sol_thread_xfer_partial): Likewise.
9918 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9919 (sparc_xfer_partial): Likewise.
9920 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9921 updated.
9922 (spu_xfer_partial): Likewise.
9923 * spu-multiarch.c (spu_xfer_partial): Likewise.
9924 * tracepoint.c (tfile_xfer_partial): Likewise.
9925 * windows-nat.c (windows_xfer_memory): Likewise.
9926 (windows_xfer_shared_libraries): Likewise.
9927 (windows_xfer_partial): Likewise.
9928 * valprint.c: Replace 'target_xfer_error' with
9929 'target_xfer_status' in comments.
9930
a8e63083
JB
99312014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9932
9933 Checked in by Joel Brobecker <brobecker@adacore.com>.
9934 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9935
e86b67d3
JB
99362014-02-11 Joel Brobecker <brobecker@adacore.com>
9937
9938 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9939 function parameters.
9940
4b7d1f7f
WN
99412014-02-10 Will Newton <will.newton@linaro.org>
9942
9943 * elfread.c (elf_rel_plt_read): Look for a .got section if
9944 looking up .got.plt fails.
9945 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9946 on address passed to elf_gnu_ifunc_record_cache.
9947 (elf_gnu_ifunc_resolve_addr): Likewise.
9948 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9949
961842b2
JM
99502014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9951
9952 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9953 (X_RETTURN): New macro.
9954 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9955
9956 * sparc64-tdep.c (sparc64_init_abi): Hook
9957 sparc_in_function_epilogue_p.
9958
3f03e7b1
GB
99592014-02-10 Gary Benson <gbenson@redhat.com>
9960
9961 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9962 Rename name_matcher to symbol_matcher.
9963
96f861ef
GB
99642014-02-10 Gary Benson <gbenson@redhat.com>
9965
9966 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9967 Use expand_symtabs_file_matcher_ftype and
9968 expand_symtabs_symbol_matcher_ftype.
9969
ee01b665
JB
99702014-02-10 Joel Brobecker <brobecker@adacore.com>
9971
9972 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9973 (struct ada_symbol_cache): New.
9974 (ada_free_symbol_cache): Forward declare.
9975 (struct ada_pspace_data): New.
9976 (ada_pspace_data_handle): New static global.
9977 (get_ada_pspace_data, ada_pspace_data_cleanup)
9978 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9979 (cache_space, cache): Delete, now folded inside struct
9980 ada_pspace_data.
9981 (ada_get_symbol_cache): New function.
9982 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9983 implementation.
9984 (_initialize_ada_language): Remove initialization of cache_space.
9985 Move call to observer_attach_inferior_exit up, grouping it
9986 with the other observer registrations inside this function.
9987 Rename command to be more general. Add call to
9988 register_program_space_data_with_cleanup.
9989
143adbbf
JB
99902014-02-10 Joel Brobecker <brobecker@adacore.com>
9991
9992 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9993 ada_new_objfile_observer.
9994 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9995 (_initialize_tasks): Update uses of ada_new_objfile_observer
9996 and ada_tasks_normal_stop_observer.
9997
aa4fb036
JB
99982014-02-10 Joel Brobecker <brobecker@adacore.com>
9999
10000 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10001 returned by the 'Length attribute to integer.
10002
9dee8cc6
JB
100032014-02-10 Joel Brobecker <brobecker@adacore.com>
10004
10005 * ada-lang.c (_initialize_ada_language): Initialize
10006 cache_space obstack.
10007
3d9434b5
JB
100082014-02-10 Joel Brobecker <brobecker@adacore.com>
10009
10010 * ada-lang.c (HASH_SIZE): New macro.
10011 (struct cache_entry): New type.
10012 (cache_space, cache): New static globals.
10013 (ada_clear_symbol_cache, find_entry): New functions.
10014 (lookup_cached_symbol, cache_symbol): Implement.
10015 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10016 (_initialize_ada_language): Attach ada_new_objfile_observer
10017 and ada_free_objfile_observer.
10018
f0c5f9b2
JB
100192014-02-10 Joel Brobecker <brobecker@adacore.com>
10020
10021 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10022 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10023 struct block * parameter.
10024 (ada_lookup_symbol_list_worker): Constify local variable "block".
10025 Remove cast which is no longer necessary.
10026
ed3ef339
DE
100272014-02-10 Doug Evans <xdje42@gmail.com>
10028
10029 Add Guile as an extension language.
10030 * NEWS: Mention Guile scripting.
10031 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10032 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10033 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10034 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10035 (CLIBS): Add GUILE_LIBS.
10036 (install-guile): New rule.
10037 (guile.o): New rule.
10038 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10039 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10040 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10041 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10042 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10043 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10044 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10045 * configure.ac: New option --with-guile.
10046 * configure: Regenerate.
10047 * config.in: Regenerate.
10048 * auto-load.c: Remove #include "python/python.h". Add #include
10049 "gdb/section-scripts.h".
10050 (source_section_scripts): Handle Guile scripts.
10051 (_initialize_auto_load): Add name of Guile objfile script to
10052 scripts-directory help text.
10053 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10054 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10055 (struct breakpoint): New member scm_bp_object.
10056 * defs.h (enum command_control_type): New value guile_control.
10057 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10058 "extension.h".
10059 (show_user): Update comment.
10060 (_initialize_cli_cmds): Update help text for "show user". Update help
10061 text for max-user-call-depth.
10062 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10063 "extension.h".
10064 (multi_line_command_p): Add guile_control.
10065 (print_command_lines): Handle guile_control.
10066 (execute_control_command, recurse_read_control_structure): Ditto.
10067 (process_next_line): Recognize "guile" commands.
10068 * disasm.c (gdb_disassemble_info): Make non-static.
10069 * disasm.h: #include "dis-asm.h".
10070 (struct gdbarch): Add forward decl.
10071 (gdb_disassemble_info): Declare.
10072 * extension.c: #include "guile/guile.h".
10073 (extension_languages): Add guile.
10074 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10075 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10076 * gdbtypes.c (get_unsigned_type_max): New function.
10077 (get_signed_type_minmax): New function.
10078 * gdbtypes.h (get_unsigned_type_max): Declare.
10079 (get_signed_type_minmax): Declare.
10080 * guile/README: New file.
10081 * guile/guile-internal.h: New file.
10082 * guile/guile.c: New file.
10083 * guile/guile.h: New file.
10084 * guile/scm-arch.c: New file.
10085 * guile/scm-auto-load.c: New file.
10086 * guile/scm-block.c: New file.
10087 * guile/scm-breakpoint.c: New file.
10088 * guile/scm-disasm.c: New file.
10089 * guile/scm-exception.c: New file.
10090 * guile/scm-frame.c: New file.
10091 * guile/scm-gsmob.c: New file.
10092 * guile/scm-iterator.c: New file.
10093 * guile/scm-lazy-string.c: New file.
10094 * guile/scm-math.c: New file.
10095 * guile/scm-objfile.c: New file.
10096 * guile/scm-ports.c: New file.
10097 * guile/scm-pretty-print.c: New file.
10098 * guile/scm-safe-call.c: New file.
10099 * guile/scm-string.c: New file.
10100 * guile/scm-symbol.c: New file.
10101 * guile/scm-symtab.c: New file.
10102 * guile/scm-type.c: New file.
10103 * guile/scm-utils.c: New file.
10104 * guile/scm-value.c: New file.
10105 * guile/lib/gdb.scm: New file.
10106 * guile/lib/gdb/boot.scm: New file.
10107 * guile/lib/gdb/experimental.scm: New file.
10108 * guile/lib/gdb/init.scm: New file.
10109 * guile/lib/gdb/iterator.scm: New file.
10110 * guile/lib/gdb/printing.scm: New file.
10111 * guile/lib/gdb/types.scm: New file.
10112 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10113 (VPATH): Add $(GUILE_SRCDIR).
10114 (GUILE_DIR): New variable.
10115 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10116 (all): Add stamp-guile dependency.
10117 (stamp-guile): New rule.
10118 (clean-guile, install-guile, uninstall-guile): New rules.
10119 (install-only): Add install-guile dependency.
10120 (uninstall): Add uninstall-guile dependency.
10121 (clean): Add clean-guile dependency.
10122
ac020ec5
DE
101232014-02-09 Doug Evans <xdje42@gmail.com>
10124
10125 Revert this patch (which I approved, mea culpa).
10126
10127 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10128
10129 * Makefile.in (all-lib): Remove.
10130 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10131
2a081c59
JK
101322014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10133
10134 Fix Python stack corruption.
10135 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10136 gdb_py_longest.
10137
0a6bd22d
MK
101382014-02-08 Mark Kettenis <kettenis@gnu.org>
10139
10140 * Makefile.in (all-lib): Remove.
10141 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10142
1a860409
DE
101432014-02-07 Doug Evans <dje@google.com>
10144
10145 * extension-priv.h (extension_language_script_ops): Add comment.
10146 (extension_language_ops): Add comment.
caf5a491 10147 (active_ext_lang_state): Fix typo in comment.
1a860409 10148
d137e6dc
PA
101492014-02-07 Pedro Alves <palves@redhat.com>
10150
0dcb32c3 10151 PR breakpoints/16292
d137e6dc
PA
10152 * infrun.c (handle_signal_stop) <signal arrives while stepping
10153 over a breakpoint>: Switch back to the stepping thread.
10154
ce6d0892
YQ
101552014-02-07 Yao Qi <yao@codesourcery.com>
10156
10157 * target.c (target_xfer_partial): Return zero if LEN is zero.
10158
2ed4b548
YQ
101592014-02-07 Yao Qi <yao@codesourcery.com>
10160
10161 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10162 (ld_so_xfer_auxv): Likewise.
10163 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10164 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10165 * corelow.c (core_xfer_partial): Likewise.
10166 * ctf.c (ctf_xfer_partial): Likewise.
10167 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10168 (darwin_xfer_partial): Likewise.
10169 * exec.c (exec_xfer_partial): Likewise.
10170 * gnu-nat.c (gnu_xfer_partial): Likewise.
10171 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10172 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10173 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10174 * linux-nat.c (linux_xfer_siginfo): Likewise.
10175 (linux_proc_xfer_spu): Likewise.
10176 * procfs.c (procfs_xfer_partial): Likewise.
10177 * record-full.c (record_full_xfer_partial): Likewise.
10178 (record_full_core_xfer_partial): Likewise.
10179 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10180 * remote.c (remote_write_qxfer): Likewise.
10181 (remote_write_qxfer, remote_read_qxfer): Likewise.
10182 (remote_xfer_partial): Likewise.
10183 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10184 (rs6000_xfer_shared_libraries): Likewise.
10185 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10186 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10187 (spu_xfer_partial): Likewise.
10188 * target.c (memory_xfer_partial_1): Likewise.
10189 * tracepoint.c (tfile_xfer_partial): Likewise.
10190 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10191 (windows_xfer_partial): Likewise.
10192
c09f20e4
YQ
101932014-02-07 Yao Qi <yao@codesourcery.com>
10194
10195 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10196 comments.
10197 (core_xfer_shared_libraries_aix): Likewise.
10198 * gdbarch.c, gdbarch.h: Regenerated.
10199 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10200 ULONGEST. Change 'len_avail' type to ULONGEST.
10201 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10202 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10203 declaration.
10204 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10205
8635b3bf
YQ
102062014-02-07 Yao Qi <yao@codesourcery.com>
10207
10208 * corefile.c (memory_error): Get 'exception' from ERR and pass
10209 'exception' to throw_error.
10210
6dddc817
DE
102112014-02-06 Doug Evans <xdje42@gmail.com>
10212
10213 * configure.ac (libpython checking): Remove all but python.o from
10214 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10215 * configure: Regenerate.
10216
10217 * Makefile.in (SFILES): Add extension.c.
10218 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10219 (COMMON_OBS): Add extension.o.
10220 * extension.h: New file.
10221 * extension-priv.h: New file.
10222 * extension.c: New file.
10223
10224 * python/python-internal.h: #include "extension.h".
10225 (gdbpy_auto_load_enabled): Declare.
10226 (gdbpy_apply_val_pretty_printer): Declare.
10227 (gdbpy_apply_frame_filter): Declare.
10228 (gdbpy_preserve_values): Declare.
10229 (gdbpy_breakpoint_cond_says_stop): Declare.
10230 (gdbpy_breakpoint_has_cond): Declare.
10231 (void source_python_script_for_objfile): Delete.
10232 * python/python.c: #include "extension-priv.h".
10233 Delete inclusion of "observer.h".
10234 (extension_language_python): Moved here and renamed from
10235 script_language_python in py-auto-load.c.
10236 Redefined to be of type extension_language_defn.
10237 (python_extension_script_ops): New global.
10238 (python_extension_ops): New global.
10239 (struct python_env): New member previous_active.
10240 (restore_python_env): Call restore_active_ext_lang.
10241 (ensure_python_env): Call set_active_ext_lang.
10242 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10243 New arg extlang.
10244 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10245 New arg extlang.
10246 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10247 New arg extlang.
10248 (gdbpy_eval_from_control_command): Renamed from
10249 eval_python_from_control_command, made static. New arg extlang.
10250 (gdbpy_source_script) Renamed from source_python_script, made static.
10251 New arg extlang.
10252 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10253 result to int. New arg extlang.
10254 (gdbpy_source_objfile_script): Renamed from
10255 source_python_script_for_objfile, made static. New arg extlang.
10256 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10257 static. New args extlang, extlang_printers. Change result type to
10258 "void".
10259 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10260 static. New arg extlang. Rename arg printers to extlang_printers
10261 and change type to ext_lang_type_printers *.
10262 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10263 static. Replace argument arg with extlang, extlang_printers.
10264 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10265 (!HAVE_PYTHON, source_python_script): Delete.
10266 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10267 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10268 (!HAVE_PYTHON, start_type_printers): Delete.
10269 (!HAVE_PYTHON, apply_type_printers): Delete.
10270 (!HAVE_PYTHON, free_type_printers): Delete.
10271 (_initialize_python): Delete call to observer_attach_before_prompt.
10272 (finalize_python): Set/restore active extension language.
10273 (gdbpy_finish_initialization) Renamed from
10274 finish_python_initialization, made static. New arg extlang.
10275 (gdbpy_initialized): New function.
10276 * python/python.h: #include "extension.h". Delete #include
10277 "value.h", "mi/mi-cmds.h".
10278 (extension_language_python): Declare.
10279 (GDBPY_AUTO_FILE_NAME): Delete.
10280 (enum py_bt_status): Moved to extension.h and renamed to
10281 ext_lang_bt_status.
10282 (enum frame_filter_flags): Moved to extension.h.
10283 (enum py_frame_args): Moved to extension.h and renamed to
10284 ext_lang_frame_args.
10285 (finish_python_initialization): Delete.
10286 (eval_python_from_control_command): Delete.
10287 (source_python_script): Delete.
10288 (apply_val_pretty_printer): Delete.
10289 (apply_frame_filter): Delete.
10290 (preserve_python_values): Delete.
10291 (gdbpy_script_language_defn): Delete.
10292 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10293 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10294
10295 * auto-load.c: #include "extension.h".
10296 (GDB_AUTO_FILE_NAME): Delete.
10297 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10298 (script_language_gdb): Delete, moved to extension.c and renamed to
10299 extension_language_gdb.
10300 (source_gdb_script_for_objfile): Delete.
10301 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10302 (loaded_script): Change type of language member to
10303 struct extension_language_defn *.
10304 (init_loaded_scripts_info): Initialize
10305 unsupported_script_warning_printed.
10306 (maybe_add_script): Make static. Change type of language arg to
10307 struct extension_language_defn *.
10308 (clear_section_scripts): Reset unsupported_script_warning_printed.
10309 (auto_load_objfile_script_1): Rewrite to use extension language API.
10310 (auto_load_objfile_script): Make public. Remove support-compiled-in
10311 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10312 (source_section_scripts): Rewrite to use extension language API.
10313 (load_auto_scripts_for_objfile): Rewrite to use
10314 auto_load_scripts_for_objfile.
10315 (collect_matching_scripts_data): Change type of language member to
10316 struct extension_language_defn *.
10317 (auto_load_info_scripts): Change type of language arg to
10318 struct extension_language_defn *.
10319 (unsupported_script_warning_print): New function.
10320 (script_not_found_warning_print): Make static.
10321 (_initialize_auto_load): Rewrite construction of scripts-directory
10322 help.
10323 * auto-load.h (struct objfile): Add forward decl.
10324 (struct script_language): Delete.
10325 (struct auto_load_pspace_info): Add forward decl.
10326 (struct extension_language_defn): Add forward decl.
10327 (maybe_add_script): Delete.
10328 (auto_load_objfile_script): Declare.
10329 (script_not_found_warning_print): Delete.
10330 (auto_load_info_scripts): Update prototype.
10331 (auto_load_gdb_scripts_enabled): Declare.
10332 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10333 auto_load_python_scripts_enabled and made public.
10334 (script_language_python): Delete, moved to python.c.
10335 (gdbpy_script_language_defn): Delete.
10336 (info_auto_load_python_scripts): Update to use
10337 extension_language_python.
10338
10339 * breakpoint.c (condition_command): Replace call to
10340 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10341 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10342 with call to breakpoint_ext_lang_cond_says_stop.
10343 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10344 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10345 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10346 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10347 New arg slang.
10348 (local_setattro): Print name of extension language with existing
10349 stop condition.
10350
10351 * valprint.c (val_print, value_print): Update to call
10352 apply_ext_lang_val_pretty_printer.
10353 * cp-valprint.c (cp_print_value): Update call to
10354 apply_ext_lang_val_pretty_printer.
10355 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10356 (gdbpy_apply_val_pretty_printer): Renamed from
10357 apply_val_pretty_printer. New arg extlang.
10358 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10359
10360 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10361 extension language API.
10362 * cli/cli-script.c (execute_control_command): Update to call
10363 eval_ext_lang_from_control_command.
10364
10365 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10366 enum ext_lang_bt_status values. Update call to
10367 apply_ext_lang_frame_filter.
10368 (mi_cmd_stack_list_locals): Ditto.
10369 (mi_cmd_stack_list_args): Ditto.
10370 (mi_cmd_stack_list_variables): Ditto.
10371 * mi/mi-main.c: Delete #include "python/python-internal.h".
10372 Add #include "extension.h".
10373 (mi_cmd_list_features): Replace reference to python internal variable
10374 gdb_python_initialized with call to ext_lang_initialized_p.
10375
10376 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10377 Update to use enum ext_lang_frame_args. Update to call
10378 apply_ext_lang_frame_filter.
10379 * python/py-framefilter.c (extract_sym): Update to use enum
10380 ext_lang_bt_status.
10381 (extract_value, py_print_type, py_print_value): Ditto.
10382 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10383 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10384 (py_print_frame): Ditto.
10385 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10386 New arg extlang. Update to use enum ext_lang_bt_status.
10387
10388 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10389 finish_python_initialization. Replace with call to
10390 finish_ext_lang_initialization.
10391
10392 * typeprint.c (do_free_global_table): Update to call
10393 free_ext_lang_type_printers.
10394 (create_global_typedef_table): Update to call
10395 start_ext_lang_type_printers.
10396 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10397 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10398 (type_print_options): Change type of global_printers from "void *"
10399 to "struct ext_lang_type_printers *".
10400
10401 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10402 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10403 (gdbpy_preserve_values): Renamed from preserve_python_values.
10404 New arg extlang.
10405 (!HAVE_PYTHON, preserve_python_values): Delete.
10406
10407 * utils.c (quit_flag): Delete, moved to extension.c.
10408 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10409 extension.c.
10410
10411 * eval.c: Delete #include "python/python.h".
10412 * main.c: Delete #include "python/python.h".
10413
10414 * defs.h: Update comment.
10415
6af79985
JB
104162014-02-06 Joel Brobecker <brobecker@adacore.com>
10417
10418 GDB 7.7 released.
10419
12c5175d
MK
104202014-02-05 Mark Kettenis <kettenis@gnu.org>
10421
10422 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10423 defined.
10424
8dc5b319
YQ
104252014-02-05 Yao Qi <yao@codesourcery.com>
10426
10427 * remote.c (remote_pass_signals): Remove local 'buf' and use
10428 rs->buf.
10429 (remote_program_signals): Likewise.
10430
de7b2893
YQ
104312014-02-05 Yao Qi <yao@codesourcery.com>
10432
10433 * ctf.c: Include "inferior.h" and "gdbthread.h".
10434 (CTF_PID): A new macro.
10435 (ctf_open): Call inferior_appeared and add_thread_silent.
10436 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10437 (ctf_thread_alive): New function.
10438 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10439
66d032ac
YQ
104402014-02-05 Yao Qi <yao@codesourcery.com>
10441
10442 Revert this patch:
10443
10444 2013-05-24 Yao Qi <yao@codesourcery.com>
10445
10446 * tracepoint.c (TFILE_PID): Remove.
10447 (tfile_open): Don't add thread and inferior.
10448 (tfile_close): Don't set 'inferior_ptid'. Don't call
10449 exit_inferior_silent.
10450 (tfile_thread_alive): Remove.
10451 (init_tfile_ops): Don't set field 'to_thread_alive' of
10452 tfile_ops.
10453
f4ccffad
CE
104542014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10455
10456 * remote.c (remote_start_remote): Call remote_check_symbols even
10457 if only symbol-file (not file) has been given.
10458
591a12a1
UW
104592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10460
10461 * gdbarch.sh (skip_entrypoint): New callback.
10462 * gdbarch.c, gdbarch.h: Regenerate.
10463 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10464 * infrun.c (fill_in_stop_func): Likewise.
10465 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10466 (ppc_elfv2_elf_make_msymbol_special): New function.
10467 (ppc_elfv2_skip_entrypoint): Likewise.
10468 (ppc_linux_init_abi): Install them for ELFv2.
10469
cc0e89c5
UW
104702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10471
10472 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10473 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10474 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10475 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10476 structures returned in GPRs.
10477
52f548e4
UW
104782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10479
10480 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10481 offset to the stack parameter list for the ELFv2 ABI.
10482
d4094b6a
UW
104832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10484
10485 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10486 set_gdbarch_convert_from_func_ptr_addr and
10487 set_gdbarch_elf_make_msymbol_special for ELFv1.
10488 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10489 function descriptors on ELFv1.
10490 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10491 set up r12 at function entry.
10492
cd453cd0
UW
104932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10494
10495 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10496 (struct gdbarch_tdep): New member elf_abi.
10497
10498 * rs6000-tdep.c: Include "elf/ppc64.h".
10499 (rs6000_gdbarch_init): Detect ELF ABI version.
10500
0ff3e01f
UW
105012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10502
10503 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10504 within a register pair holding a DFP 128-bit value on little-endian.
10505 (ppc64_sysv_abi_return_value_base): Likewise.
10506 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10507 (dfp_pseudo_register_write): Likewise.
10508
5b757e5d
UW
105092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10510
10511 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10512 offset on little-endian when passing _Decimal32.
10513 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10514
084ee545
UW
105152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10516
10517 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10518 of the overlapped FP register within the VSX register on little-
10519 endian platforms.
10520 (efpr_pseudo_register_write): Likewise.
10521
d63167af
UW
105222014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10523
10524 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10525 offset on little-endian when passing small structures.
10526
e765b44c
UW
105272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10528
10529 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10530 (struct ppc64_sysv_argpos): New data structure.
10531 (ppc64_sysv_abi_push_float): Remove.
10532 (ppc64_sysv_abi_push_val): New function.
10533 (ppc64_sysv_abi_push_integer): Likewise.
10534 (ppc64_sysv_abi_push_freg): Likewise.
10535 (ppc64_sysv_abi_push_vreg): Likewise.
10536 (ppc64_sysv_abi_push_param): Likewise.
10537 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10538 (ppc64_sysv_abi_return_value_base): New function.
10539 (ppc64_sysv_abi_return_value): Refactor to use it.
10540
36c24d95
UW
105412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10542
10543 * NEWS: Document new target powerpc64le-*-linux*.
10544
26fd9228
MK
105452014-02-04 Mark Kettenis <kettenis@gnu.org>
10546
10547 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10548 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10549 core dumps.
10550 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10551 register set used in ELF core dumps. Add floating-point register set.
10552
c5bb7362
KB
105532014-02-03 Kevin Buettner <kevinb@redhat.com>
10554
74228e77 10555 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10556 dwarf2_to_gdb[] table using symbolic constants. Adjust
10557 penultimate entry from number representing the PC register
10558 to symbolic constant representing the MDR register. Add
10559 constant for the PC register to the end of the table.
10560
af09351e
MK
105612014-02-03 Mark Kettenis <kettenis@gnu.org>
10562
10563 * bsd-kvm.c: Include <sys/param.h>
10564
8507e05d
MK
105652014-02-03 Mark Kettenis <kettenis@gnu.org>
10566
10567 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10568
ae56bfb8
JB
105692014-01-31 Joel Brobecker <brobecker@adacore.com>
10570
10571 * ada-lang.h (clear_ada_sym_cache): Delete.
10572
718ee4dc
UW
105732014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10574
10575 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10576
401e27fd
JM
105772014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10578
10579 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10580 the sigreturn register save area only if the syscall is
10581 sigreturn.
10582
a7c88acd
JB
105832014-01-29 Joel Brobecker <brobecker@adacore.com>
10584
10585 * valops.c (value_slice): Minor reformatting.
10586
fa0079ea
UW
105872014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10588
10589 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10590
c6044dd1
JB
105912014-01-28 Joel Brobecker <brobecker@adacore.com>
10592
10593 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10594 New static globals.
10595 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10596 (ada_ignore_descriptive_types_p): New static global.
10597 (find_parallel_type_by_descriptive_type): Return immediately
10598 if ada_ignore_descriptive_types_p is set.
10599 (_initialize_ada_language): Register new commands "maintenance
10600 set ada", "maintenance show ada", "maintenance set ada
10601 ignore-descriptive-types" and "maintenance show ada
10602 ignore-descriptive-types".
10603 * NEWS: Add entry for new "maint ada set/show
10604 ignore-descriptive-types" commands.
10605
568e808b
MM
106062014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10607
10608 * record-btrace.c (record_btrace_close): Call btrace_teardown
10609 for all threads.
10610
467d141b
JB
106112014-01-27 Joel Brobecker <brobecker@adacore.com>
10612
10613 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10614 "ui-out.h".
10615
fb151210
JB
106162014-01-27 Joel Brobecker <brobecker@adacore.com>
10617
10618 * ada-typeprint (type_is_full_subrange_of_target_type):
10619 New function.
10620 (print_range): Add parameter bounds_prefered_p. If not set,
10621 try printing range types using the name of their base type.
10622 (print_range_type): Add parameter bounds_prefered_p.
10623 Use it in call to print_range.
10624 (print_array_type, ada_print_type): Update calls to print_range
10625 and print_range_type.
10626
aba02109
JB
106272014-01-27 Joel Brobecker <brobecker@adacore.com>
10628
10629 * ada-typeprint.c (print_array_type, print_choices, print_range)
10630 (print_range_bound, print_dynamic_range_bound, print_range_type):
10631 Remove declaration.
10632
e62e21fd
JB
106332014-01-27 Joel Brobecker <brobecker@adacore.com>
10634
10635 * ada-typeprint.c (print_range): Add missing empty line
10636 after local declaration.
10637
859cf5d1
JB
106382014-01-27 Joel Brobecker <brobecker@adacore.com>
10639
10640 * ada-valprint.c (print_optional_low_bound): Get index_type's
10641 target type for as long as it is a TYPE_CODE_RANGE.
10642
25790f6f
JB
106432014-01-27 Joel Brobecker <brobecker@adacore.com>
10644
10645 * procfs.c (procfs_make_note_section): Remove assertion and
10646 associated comment.
10647
6b6aa828
YQ
106482014-01-24 Yao Qi <yao@codesourcery.com>
10649
10650 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10651 * corelow.c (get_core_siginfo): Likewise.
10652
5d6df423
YQ
106532014-01-24 Yao Qi <yao@codesourcery.com>
10654
10655 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10656 ULONGEST. Don't check 'len' is negative.
10657 (remote_write_bytes): Change type of 'len' to ULONGEST.
10658
83b645b8
TT
106592014-01-23 Tom Tromey <tromey@redhat.com>
10660
10661 PR python/16485:
10662 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10663 Handle exception from frame.block.
10664 (FrameVars.fetch_frame_locals): Likewise.
10665
0740f8d8
TT
106662014-01-23 Tom Tromey <tromey@redhat.com>
10667
10668 PR python/16487:
10669 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10670 on a NULL pointer. Move "goto error" to correct place.
10671
21909fa1
TT
106722014-01-23 Tom Tromey <tromey@redhat.com>
10673
10674 PR python/16491:
10675 * python/py-framefilter.c (apply_frame_filter): Call
10676 ensure_python_env after computing gdbarch.
10677
17fde6d0
YQ
106782014-01-23 Yao Qi <yao@codesourcery.com>
10679
10680 * target.c (raw_memory_xfer_partial): Change argument type
10681 from void * to gdb_byte *.
10682 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10683
87ce2a04
DE
106842014-01-22 Doug Evans <dje@google.com>
10685
10686 New gdbserver option --debug-format=timestamp.
10687 * NEWS: Mention it.
10688
237b092b
AA
106892014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10690
10691 * syscalls/s390x-linux.xml: New file.
10692 * syscalls/s390-linux.xml: New file.
10693 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10694 (XML_SYSCALL_FILENAME_S390X): Likewise.
10695 (op_svc): New enum value for SVC opcode.
10696 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10697 (s390_linux_get_syscall_number): New function.
10698 (s390_gdbarch_init): Register '*get_syscall_number' and the
10699 syscall xml file name.
10700 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10701 "s390-linux.xml" and "s390x-linux.xml".
10702 * NEWS: Announce new feature.
10703
54bff650
BS
107042014-01-22 Baruch Siach <baruch@tkos.co.il>
10705
10706 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10707
14e361d7
PA
107082014-01-22 Pedro Alves <palves@redhat.com>
10709
10710 * xtensa-config.c: Include defs.h.
10711
46bbb3ed
JB
107122014-01-22 Joel Brobecker <brobecker@adacore.com>
10713
10714 * common/common-utils.h: Add "ARI:" comment beside __func__
10715 reference.
10716
3a80edfc
JB
107172014-01-22 Joel Brobecker <brobecker@adacore.com>
10718
10719 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10720 documentation a bit.
10721
4869db5e
RM
107222014-01-21 Roland McGrath <mcgrathr@google.com>
10723
10724 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10725 * configure: Regenerate.
10726 * aclocal.m4: Regenerate.
10727 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10728 New substituted variables.
10729 (install-strip): New target.
10730 (INSTALL_SCRIPT): New substituted variable.
10731 (FLAGS_TO_PASS): Add it.
10732 (install-only): Use $(INSTALL_SCRIPT) rather than
10733 $(INSTALL_PROGRAM) for gcore.
10734
9ea4267d
TT
107352014-01-20 Tom Tromey <tromey@redhat.com>
10736
10737 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10738 together.
10739
1f2bdf09
TT
107402014-01-20 Tom Tromey <tromey@redhat.com>
10741
10742 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10743 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10744 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10745 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10746 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10747 (struct cmd_list_element) <flags>: Remove.
10748 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10749 doc_allocated>: New fields.
10750 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10751 bitfields.
10752 * maint.c (maintenance_do_deprecate): Update.
10753 * top.c (execute_command): Update.
10754
e671835b
BS
107552014-01-20 Baruch Siach <baruch@tkos.co.il>
10756
10757 * xtensa-linux-nat.c: Include asm/ptrace.h.
10758
50367cd2
IB
107592014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10760
10761 * Makefile.in (SFILES): Add d-support.c.
10762 (COMMON_OBS): Add d-support.o.
10763 * d-lang.h (d_parse_symbol): Add comment, now defined in
10764 d-support.c.
10765 * d-lang.c (parse_call_convention)
10766 (parse_attributes, parse_function_types)
10767 (parse_function_args, parse_type, parse_identifier)
10768 (call_convention_p, d_parse_symbol): Move functions to ...
10769 * d-support.c: ... New file.
10770
ec9f644a
IB
107712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10772
10773 * d-lang.h (d_parse_symbol): Add declaration.
10774 * d-lang.c (extract_identifiers)
10775 (extract_type_info): Remove functions.
10776 (parse_call_convention, parse_attributes)
10777 (parse_function_types, parse_function_args)
10778 (parse_type, parse_identifier, call_convention_p)
10779 (d_parse_symbol): New functions.
10780 (d_demangle): Use d_parse_symbol to demangle D symbols.
10781
94b1b47e
IB
107822014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10783
10784 * d-lang.h (struct builtin_d_type): New data type.
10785 (builtin_d_type): Add declaration.
10786 * d-lang.c (d_language_arch_info, build_d_types)
10787 (builtin_d_type): New functions.
10788 (enum d_primitive_types): New data type.
10789 (d_language_defn): Change c_language_arch_info to
10790 d_language_arch_info.
10791 (d_type_data): New static variable.
10792 (_initialize_d_language): Initialize d_type_data.
10793
63778547
IB
107942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10795
10796 * d-lang.h (d_main_name): Add declaration.
10797 * d-lang.c (d_main_name): New function.
10798 * symtab.c (find_main_name): Add call to d_main_name.
10799
3271ba66
IB
108002014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10801
10802 * d-lang.c (d_language_defn): Change macro_expansion_c to
10803 macro_expansion_no.
10804
d36b3012
IB
108052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10806
10807 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10808
c90a6fb7
SDJ
108092014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10810
10811 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10812 gdb_exception" declaration.
10813 * remote.c (getpkt_or_notif_sane): Likewise.
10814
749234e5
DE
108152014-01-17 Doug Evans <dje@google.com>
10816
10817 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10818 function, contents of dirnames_to_char_ptr_vec_append moved here.
10819 (delim_string_to_char_ptr_vec): New function.
10820 (dirnames_to_char_ptr_vec_append): Rewrite.
10821 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10822
df049a58
DE
108232014-01-17 Doug Evans <dje@google.com>
10824
10825 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10826 and moved here ...
10827 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10828 #include "common-utils.h".
10829 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10830 * common/vec.h (VEC_ASSERT_PASS): Update.
10831 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10832 (MACH_CHECK_ERROR): Update.
10833
69f97648
SM
108342014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10835
10836 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10837 comments.
10838 * gdbarch.h: Regenerate.
10839
98b1cfdc
TT
108402014-01-16 Tom Tromey <tromey@redhat.com>
10841
10842 * value.c (struct value) <regnum>: Move earlier.
10843
77a19445
TT
108442014-01-16 Tom Tromey <tromey@redhat.com>
10845
10846 * remote.c (extended_remote_create_inferior): Rename from
10847 extended_remote_create_inferior_1. Add "ops" argument. Remove
10848 old implementation.
10849
62261490
PA
108502014-01-16 Pedro Alves <palves@redhat.com>
10851
10852 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10853 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10854 the backchain.
10855
4d65956b
DE
108562014-01-16 Doug Evans <dje@google.com>
10857
10858 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10859
52834460
MM
108602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10861
10862 * btrace.h (btrace_thread_flag): New.
10863 (struct btrace_thread_info) <flags>: New.
10864 * record-btrace.c (record_btrace_resume_thread)
10865 (record_btrace_find_thread_to_move, btrace_step_no_history)
10866 (btrace_step_stopped, record_btrace_start_replaying)
10867 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10868 (record_btrace_find_resume_thread): New.
10869 (record_btrace_resume, record_btrace_wait): Extend.
10870 (record_btrace_can_execute_reverse): New.
10871 (record_btrace_open): Fail in non-stop mode.
10872 (record_btrace_set_replay): Split into this, ...
10873 (record_btrace_stop_replaying): ... this, ...
10874 (record_btrace_clear_histories): ... and this.
10875 (init_record_btrace_ops): Init to_can_execute_reverse.
10876 * NEWS: Announce it.
10877
118e6252
MM
108782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10879
10880 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10881 (forward_target_decr_pc_after_break)
10882 (target_decr_pc_after_break): New.
10883 * target.c (forward_target_decr_pc_after_break)
10884 (target_decr_pc_after_break): New.
10885 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10886 instead of gdbarch_decr_pc_after_break.
10887 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10888 instead of gdbarch_decr_pc_after_break.
10889 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10890 instead of gdbarch_decr_pc_after_break.
10891 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10892 instead of gdbarch_decr_pc_after_break.
10893 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10894 instead of gdbarch_decr_pc_after_break.
10895 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10896 instead of gdbarch_decr_pc_after_break.
10897
6e07b1d2
MM
108982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10899
10900 * btrace.c: Include regcache.h.
10901 (btrace_add_pc): New.
10902 (btrace_enable): Call btrace_add_pc.
10903 (btrace_is_empty): New.
10904 * btrace.h (btrace_is_empty): New.
10905 * record-btrace.c (require_btrace, record_btrace_info): Call
10906 btrace_is_empty.
10907
969c39fb
MM
109082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10909
10910 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10911 Support delta reads.
10912 (linux_disable_btrace): Change return type.
10913 * common/linux-btrace.h (linux_read_btrace): Change parameters
10914 and return type to allow error reporting. Update users.
10915 (linux_disable_btrace): Change return type. Update users.
10916 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10917 New.
10918 (btrace_error): New.
10919 (btrace_block) <begin>: Comment on BEGIN == 0.
10920 * btrace.c (btrace_compute_ftrace): Start from the end of
10921 the current trace.
10922 (btrace_stitch_trace, btrace_clear_history): New.
10923 (btrace_fetch): Read delta trace, return if replaying.
10924 (btrace_clear): Move clear history code to btrace_clear_history.
10925 (parse_xml_btrace): Throw an error if parsing failed.
10926 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10927 and return type to allow error reporting.
10928 (target_read_btrace): Change parameters and return type to allow
10929 error reporting.
10930 * target.c (target_read_btrace): Update.
10931 * remote.c (remote_read_btrace): Support delta reads. Pass
10932 errors on.
10933 * NEWS: Announce it.
10934
0b722aec
MM
109352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10936
10937 * record.h (record_btrace_frame_unwind)
10938 (record_btrace_tailcall_frame_unwind): New declarations.
10939 * dwarf2-frame: Include record.h
10940 (dwarf2_frame_cfa): Throw an error for btrace frames.
10941 * record-btrace.c: Include hashtab.h.
10942 (btrace_get_bfun_name): New.
10943 (btrace_call_history): Call btrace_get_bfun_name.
10944 (struct btrace_frame_cache): New.
10945 (bfcache): New.
10946 (bfcache_hash, bfcache_eq, bfcache_new): New.
10947 (btrace_get_frame_function): New.
10948 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10949 (record_btrace_frame_this_id): Compute own id.
10950 (record_btrace_frame_prev_register): Provide PC, throw_error
10951 for all other registers.
10952 (record_btrace_frame_sniffer): Detect btrace frames.
10953 (record_btrace_tailcall_frame_sniffer): New.
10954 (record_btrace_frame_dealloc_cache): New.
10955 (record_btrace_frame_unwind): Add new functions.
10956 (record_btrace_tailcall_frame_unwind): New.
10957 (_initialize_record_btrace): Allocate cache.
10958 * btrace.c (btrace_clear): Call reinit_frame_cache.
10959 * NEWS: Announce it.
10960
066ce621
MM
109612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10962
10963 * record-btrace.c (record_btrace_set_replay)
10964 (record_btrace_goto_begin, record_btrace_goto_end)
10965 (record_btrace_goto): New.
10966 (init_record_btrace_ops): Initialize them.
10967 * NEWS: Announce it.
10968
e2887aa3
MM
109692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10970
10971 * record-btrace.c (record_btrace_find_new_threads)
10972 (record_btrace_thread_alive): New.
10973 (init_record_btrace_ops): Initialize to_find_new_threads and
10974 to_thread_alive.
10975
b2f4cfde
MM
109762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10977
10978 * record-btrace.c (record_btrace_resume): New.
10979 (record_btrace_wait): New.
10980 (init_record_btrace_ops): Initialize to_wait and to_resume.
10981
633785ff
MM
109822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10983
10984 * record-btrace.c (record_btrace_xfer_partial)
10985 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10986 (record_btrace_allow_memory_access): New.
10987 (init_record_btrace_ops): Initialize new methods.
10988 * target.c (raw_memory_xfer_partial): Bail out if target reports
10989 that this memory is not available.
10990
3db08215
MM
109912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10992
10993 * target.h (target_ops) <to_insert_breakpoint>
10994 <to_remove_breakpoint>: Add target_ops parameter.
10995 (forward_target_insert_breakpoint): New.
10996 (forward_target_remove_breakpoint): New.
10997 (memory_remove_breakpoint, memory_insert_breakpoint):
10998 Add target_ops parameter.
10999 * target.c (target_insert_breakpoint): Split into this and ...
11000 (forward_target_insert_breakpoint): ... this.
11001 (target_remove_breakpoint): Split into this and ...
11002 (forward_target_remove_breakpoint): ... this.
11003 (debug_to_insert_breakpoint): Add target_ops parameter.
11004 Call forward_target_insert_breakpoint.
11005 (debug_to_remove_breakpoint): Add target_ops parameter.
11006 Call forward_target_remove_breakpoint.
11007 (update_current_target): Do not inherit or default to_insert_breakpoint
11008 and to_remove_breakpoint.
11009 * corelow.c (ignore): Add target_ops parameter.
11010 * exec.c (ignore): Add target_ops parameter.
11011 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11012 Add target_ops parameter.
11013 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11014 Add target_ops parameter.
11015 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11016 Add target_ops parameter.
11017 * record-full.c (record_full_beneath_to_insert_breakpoint)
11018 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11019 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11020 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11021 (record_full_core_remove_breakpoint): Add target_ops parameter.
11022 Update users.
11023 (record_full_beneath_to_insert_breakpoint_ops)
11024 (record_full_beneath_to_remove_breakpoint_ops)
11025 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11026 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11027 tmp_to_remove_breakpoint_ops,
11028 record_full_beneath_to_insert_breakpoint_ops, and
11029 record_full_beneath_to_remove_breakpoint_ops.
11030 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11031 (m32r_remove_breakpoint): Add target_ops parameter.
11032 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11033 Add target_ops parameter.
11034 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11035 Add target_ops parameter.
11036
cecac1ab
MM
110372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11038 Markus Metzger <markus.t.metzger@intel.com>
11039
11040 * record-btrace.c: Include frame-unwind.h.
11041 (record_btrace_frame_unwind_stop_reason)
11042 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11043 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11044 New.
11045 (init_record_btrace_ops): Install it.
11046
824344ca
MM
110472014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11048
11049 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11050 get_prev_frame_1.
11051
32261e52
MM
110522014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11053
11054 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11055 earlier.
11056
ea001bdc
MM
110572014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11058
11059 * frame-unwind.c: Include target.h.
11060 (frame_unwind_try_unwinder): New function with code from ...
11061 (frame_unwind_find_by_frame): ... here. New variable
11062 unwinder_from_target, call also target_get_unwinder)
11063 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11064 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11065 * target.h (struct target_ops): New fields to_get_unwinder and
11066 to_get_tailcall_unwinder.
11067 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11068
1f3ef581
MM
110692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11070
11071 * record-btrace.c (record_btrace_fetch_registers)
11072 (record_btrace_store_registers)
11073 (record_btrace_to_prepare_to_store): New.
11074 (init_record_btrace_ops): Add the above.
11075
f32dbf8c
MM
110762014-01-16 Tom Tromey <tromey@redhat.com>
11077
11078 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11079 * target.h (struct target_ops) <to_prepare_to_store>: Add
11080 argument.
11081 (target_prepare_to_store): Add argument.
11082 * target.c (debug_to_prepare_to_store): Add argument.
11083 (update_current_target): Update.
11084 * remote.c (remote_prepare_to_store): Add 'self' argument.
11085 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11086 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11087 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11088 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11089 argument.
11090 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11091 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11092 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11093 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11094 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11095
07bbe694
MM
110962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11097
11098 * btrace.h (replay) <replay>: New.
11099 (btrace_is_replaying): New.
11100 * btrace.c (btrace_clear): Free replay iterator.
11101 (btrace_is_replaying): New.
11102 * record-btrace.c (record_btrace_is_replaying): New.
11103 (record_btrace_info): Print insn number if replaying.
11104 (record_btrace_insn_history): Start at replay position.
11105 (record_btrace_call_history): Start at replay position.
11106 (init_record_btrace_ops): Init to_record_is_replaying.
11107
0688d04e
MM
111082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11109
11110 * record-btrace.c (record_btrace_insn_history_range): Include
11111 end.
11112 (record_btrace_insn_history_from): Adjust range.
11113 (record_btrace_call_history_range): Include
11114 end.
11115 (record_btrace_call_history_from): Adjust range.
11116 * NEWS: Announce changes.
11117
8710b709
MM
111182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11119
11120 * record.h (enum record_print_flag)
11121 <record_print_indent_calls>: New.
11122 * record.c (get_call_history_modifiers): Recognize /c modifier.
11123 (_initialize_record): Document /c modifier.
11124 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11125 Reorder fields. Optionally indent the function name. Update
11126 all users.
11127 * NEWS: Announce changes.
11128
d0fa7535
MM
111292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11130
11131 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11132
5de9129b
MM
111332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11134
11135 * btrace.c (ftrace_new_function): Start counting at one.
11136 * record-btrace.c (record_btrace_info): Adjust number of calls
11137 and insns.
11138 * NEWS: Announce it.
11139
7acbe133
MM
111402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11141
11142 * record-btrace.c (btrace_call_history_insn_range): Print
11143 insn range as [begin, end].
11144
23a7fe75
MM
111452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11146
11147 * btrace.h (struct btrace_func_link): New.
11148 (enum btrace_function_flag): New.
11149 (struct btrace_inst): Rename to ...
11150 (struct btrace_insn): ...this. Update all users.
11151 (struct btrace_func) <ibegin, iend>: Remove.
11152 (struct btrace_func_link): New.
11153 (struct btrace_func): Rename to ...
11154 (struct btrace_function): ...this. Update all users.
11155 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11156 (number, level, flags>: New.
11157 (struct btrace_insn_iterator): Rename to ...
11158 (struct btrace_insn_history): ...this.
11159 Update all users.
11160 (struct btrace_insn_iterator, btrace_call_iterator): New.
11161 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11162 (struct btrace_target_info) <begin, end, level>
11163 <insn_history, call_history>: New.
11164 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11165 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11166 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11167 (btrace_call_number, btrace_call_begin, btrace_call_end)
11168 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11169 (btrace_find_function_by_number, btrace_set_insn_history)
11170 (btrace_set_call_history): New.
11171 * btrace.c (btrace_init_insn_iterator)
11172 (btrace_init_func_iterator, compute_itrace): Remove.
11173 (ftrace_print_function_name, ftrace_print_filename)
11174 (ftrace_skip_file): Change
11175 parameter to const.
11176 (ftrace_init_func): Remove.
11177 (ftrace_debug): Use new btrace_function fields.
11178 (ftrace_function_switched): Also consider gaining and
11179 losing symbol information).
11180 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11181 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11182 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11183 New.
11184 (ftrace_new_function): Move. Remove debug print.
11185 (ftrace_update_lines, ftrace_update_insns): New.
11186 (ftrace_update_function): Check for call, ret, and jump.
11187 (compute_ftrace): Renamed to ...
11188 (btrace_compute_ftrace): ...this. Rewritten to compute call
11189 stack.
11190 (btrace_fetch, btrace_clear): Updated.
11191 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11192 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11193 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11194 (btrace_call_number, btrace_call_begin, btrace_call_end)
11195 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11196 (btrace_find_function_by_number, btrace_set_insn_history)
11197 (btrace_set_call_history): New.
11198 * record-btrace.c (require_btrace): Use new btrace thread
11199 info fields.
11200 (record_btrace_info, btrace_insn_history)
11201 (record_btrace_insn_history, record_btrace_insn_history_range):
11202 Use new btrace thread info fields and new iterator.
11203 (btrace_func_history_src_line): Rename to ...
11204 (btrace_call_history_src_line): ...this. Use new btrace
11205 thread info fields.
11206 (btrace_func_history): Rename to ...
11207 (btrace_call_history): ...this. Use new btrace thread info
11208 fields and new iterator.
11209 (record_btrace_call_history, record_btrace_call_history_range):
11210 Use new btrace thread info fields and new iterator.
11211
8372a7cb
MM
112122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11213
11214 * frame.h (frame_id_build_unavailable_stack_special): New.
11215 * frame.c (frame_id_build_unavailable_stack_special): New.
11216
c2170eef
MM
112172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11218
11219 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11220 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11221 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11222 to gdbarch.
11223 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11224 (i386_insn_is_jump, i386_jmp_p): New.
11225 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11226 insn_is_jump to gdbarch.
11227 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11228 * gdbarch.h: Regenerated.
11229 * gdbarch.c: Regenerated.
11230 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11231 (default_insn_is_jump): New.
11232 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11233 (default_insn_is_jump): New.
11234
864089d2
MM
112352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11236
11237 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11238 Change to ...
11239 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11240 (btrace_read_type) <btrace_read_new>: Change to ...
11241 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11242
ed9edfb5
MM
112432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11244
11245 * common/linux-btrace.c (linux_read_btrace): Free trace from
11246 previous iteration.
11247
fbcbc3fd
DE
112482014-01-15 Doug Evans <dje@google.com>
11249
11250 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11251 uint32_t.
11252
3d548a53
TT
112532014-01-15 Tom Tromey <tromey@redhat.com>
11254
11255 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11256 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11257 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11258 (set_objfile_main_name): New function.
11259 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11260 language_of_main>: New fields.
11261 (set_objfile_main_name): Declare.
11262 * symtab.c (find_main_name): Loop over objfiles to find the main
11263 name and language.
11264 (set_main_name): Now static.
11265 (get_main_info): Add comment.
11266 * symtab.h (set_main_name): Don't declare.
11267
32ac0d11
TT
112682014-01-15 Tom Tromey <tromey@redhat.com>
11269
11270 * symtab.c (main_progspace_key): New global.
11271 (struct main_info): New.
11272 (name_of_main, language_of_main): Remove.
11273 (get_main_info, main_info_cleanup): New function.
11274 (set_main_name, main_name, main_language): Use get_main_info.
11275 (_initialize_symtab): Initialize main_progspace_key.
11276
9e6c82ad
TT
112772014-01-15 Tom Tromey <tromey@redhat.com>
11278
11279 * dbxread.c (process_one_symbol): Update.
11280 * dwarf2read.c (read_partial_die): Update.
11281 * symfile.c (set_initial_language): Call main_language.
11282 * symtab.c (language_of_main): Now static.
11283 (set_main_name): Add 'lang' parameter.
11284 (find_main_name): Update.
11285 (main_language): New function.
11286 (symtab_observer_executable_changed): Update.
11287 * symtab.h (set_main_name): Update.
11288 (language_of_main): Remove.
11289 (main_language): Declare.
11290
6ef55de7
TT
112912014-01-15 Tom Tromey <tromey@redhat.com>
11292
11293 * symfile.c (init_entry_point_info): Use new "initialized" field.
11294 Update.
11295 * objfiles.h (struct entry_point) <initialized>: New field.
11296 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11297 (struct objfile) <ei>: ...here. Remove.
11298 * objfiles.c (entry_point_address_query): Update.
11299
53eddfa6
TT
113002014-01-15 Tom Tromey <tromey@redhat.com>
11301
11302 * objfiles.c (entry_point_address_query): Relocate entry point
11303 address.
11304 (objfile_relocate1): Do not relocate entry point address.
11305 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11306 <the_bfd_section_index>: New field.
11307 * symfile.c (init_entry_point_info): Find the entry point's
11308 section.
11309
d56e56aa
TT
113102014-01-15 Tom Tromey <tromey@redhat.com>
11311
11312 * solib-frv.c (enable_break): Use entry_point_address_query.
11313
33a97bbe
OJ
113142014-01-15 Omair Javaid <omair.javaid@linaro.org>
11315
11316 * NEWS: Add note on improved process record-replay on
11317 arm*-linux* targets.
11318
c6ec2b30
OJ
113192014-01-15 Omair Javaid <omair.javaid@linaro.org>
11320
11321 * arm-tdep.c (enum arm_record_result): New enum.
11322 (arm_record_unsupported_insn): New function.
11323 (arm_record_coproc_data_proc): Removed.
11324 (thumb2_record_ld_st_multiple): New function.
11325 (thumb2_record_ld_st_dual_ex_tbb): New function.
11326 (thumb2_record_data_proc_sreg_mimm): New function.
11327 (thumb2_record_ps_dest_generic): New function.
11328 (thumb2_record_branch_misc_cntrl): New function.
11329 (thumb2_record_str_single_data): New function.
11330 (thumb2_record_ld_mem_hints): New function.
11331 (thumb2_record_ld_word): New function.
11332 (thumb2_record_lmul_lmla_div): New function.
11333 (thumb2_record_decode_insn_handler): New function.
11334 (decode_insn): Add thumb32 instruction handlers.
11335
97dfe206
OJ
113362014-01-15 Omair Javaid <omair.javaid@linaro.org>
11337
11338 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11339 (struct arm_linux_record_tdep): Declare.
11340 (arm_canonicalize_syscall): New function.
11341 (arm_all_but_pc_registers_record): New function.
11342 (arm_linux_syscall_record): New function.
11343 (arm_linux_init_abi): Add syscall recording constructs.
11344 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11345 decoding. (arm_record_coproc_data_proc): Update arm syscall
11346 decoding.
11347 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11348 <arm_syscall_record>: New field.
11349 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11350 gdb_target_obs.
11351
9904a494
OJ
113522014-01-15 Omair Javaid <omair.javaid@linaro.org>
11353
11354 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11355 register for push instruction recording.
11356
f969241e
OJ
113572014-01-15 Omair Javaid <omair.javaid@linaro.org>
11358
11359 * arm-tdep.c (thumb_record_misc): Update to correct logical
11360 error while recording ldm, ldmia and pop instructions.
11361
bfbbec00
OJ
113622014-01-15 Omair Javaid <omair.javaid@linaro.org>
11363
11364 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11365
e40adcc9
PA
113662014-01-15 Pedro Alves <palves@redhat.com>
11367
11368 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11369 (go32_resume, go32_fetch_registers, store_register)
11370 (go32_store_registers, go32_prepare_to_store)
11371 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11372 (go32_create_inferior, go32_can_run, go32_terminal_init)
11373 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11374 declarations.
11375
b0a16e66
TT
113762014-01-15 Tom Tromey <tromey@redhat.com>
11377
11378 * target.h (async_callback_ftype): New typedef.
11379 (struct target_ops) <to_async>: Use it.
11380
bf7105a4
JB
113812014-01-15 Joel Brobecker <brobecker@adacore.com>
11382
11383 * python/py-value.c (get_field_type): Remove unnecessary curly
11384 braces for single-statement if block.
11385
a8f35c2e
JB
113862014-01-15 Joel Brobecker <brobecker@adacore.com>
11387
11388 * python/py-type.c (convert_field): Add missing empty line
11389 after declarations.
11390
bb4142cf
DE
113912014-01-14 Doug Evans <dje@google.com>
11392
11393 * symfile.h (expand_symtabs_matching): Renamed from
11394 expand_partial_symbol_names. Update prototype.
11395 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11396 * symfile.c (expand_symtabs_matching): Renamed from
11397 expand_partial_symbol_names. New args file_matcher, kind.
11398 Rename arg fun to symbol_matcher.
11399 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11400 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11401 ada_expand_partial_symbol_name.
11402 (ada_make_symbol_completion_list): Update to call
11403 expand_symtabs_matching.
11404 (ada_add_global_exceptions): Call expand_symtabs_matching.
11405 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11406 call map_symbol_filenames.
11407 * symtab.c (sources_info): Update to call map_symbol_filenames.
11408 (search_symbols): Call expand_symtabs_matching.
11409 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11410 (default_make_symbol_completion_list_break_on): Update to call
11411 expand_symtabs_matching.
11412 (make_source_files_completion_list): Update to call
11413 map_symbol_filenames.
11414
206f2a57
DE
114152014-01-14 Doug Evans <dje@google.com>
11416
11417 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11418 (expand_symtabs_symbol_matcher_ftype): New typedef.
11419 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11420 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11421 * symfile.c (expand_partial_symbol_names): Update to use
11422 expand_symtabs_symbol_matcher_ftype.
11423 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11424 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11425 Arg name_matcher renamed to symbol_matcher.
11426 * psymtab.c (recursively_search_psymtabs): Update to use
11427 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11428 sym_matcher.
11429 (expand_symtabs_matching_via_partial): Update to use
11430 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11431 Arg name_matcher renamed to symbol_matcher.
11432
540c2971
DE
114332014-01-14 Doug Evans <dje@google.com>
11434
11435 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11436 (map_partial_symbol_filenames): Ditto.
11437 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11438 (map_partial_symbol_filenames): Ditto.
11439 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11440 (map_partial_symbol_filenames): Ditto.
11441 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11442 (map_partial_symbol_filenames): Ditto.
11443 * symtab.c: Delete #include "psymtab.h".
11444
8213266a
PA
114452014-01-14 Pedro Alves <palves@redhat.com>
11446 Tom Tromey <tromey@redhat.com>
11447
11448 * infrun.c (use_displaced_stepping): Use find_record_target
11449 instead of RECORD_IS_USED.
11450 (adjust_pc_after_break): Use record_full_is_used instead of
11451 RECORD_IS_USED.
11452 * record-btrace.c (record_btrace_open): Call record_preopen
11453 instead of checking RECORD_IS_USED.
11454 * record-full.c (record_full_shortname)
11455 (record_full_core_shortname): New globals.
11456 (record_full_is_used): New function.
11457 (find_full_open): Call record_preopen instead of checking
11458 RECORD_IS_USED.
11459 (init_record_full_ops): Set the target's shortname to
11460 record_full_shortname.
11461 (init_record_full_core_ops): Set the target's shortname to
11462 record_full_core_shortname.
11463 * record-full.h (record_full_is_used): Declare.
11464 * record.c (find_record_target): Make extern.
11465 (record_preopen): New function.
11466 * record.h (RECORD_IS_USED): Delete macro.
11467 (find_record_target, record_preopen): Declare functions.
11468
7ec1862d
YQ
114692014-01-14 Yao Qi <yao@codesourcery.com>
11470
11471 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11472 'len''s type to ULONGEST.
11473 (core_xfer_shared_libraries_aix): Likewise.
11474 * gdbarch.c, gdbarch.h: Regenerated.
11475 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11476 Change type of 'len' to ULONGEST.
11477 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11478 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11479
dea80a27
YQ
114802014-01-14 Yao Qi <yao@codesourcery.com>
11481
11482 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11483 type of 'len' to ULONGEST.
11484 (linux_xfer_osdata_processgroups): Likewise.
11485 (linux_xfer_osdata_threads): Likewise.
11486 (linux_xfer_osdata_fds): Likewise.
11487 (linux_xfer_osdata_isockets): Likewise.
11488 (linux_xfer_osdata_shm): Likewise.
11489 (linux_xfer_osdata_sem): Likewise.
11490 (linux_xfer_osdata_msg): Likewise.
11491 (linux_common_xfer_osdata): Likewise.
11492 (struct osdata_type) <getter>: Likewise.
11493 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11494 the declaration.
11495
b55e14c7
YQ
114962014-01-14 Yao Qi <yao@codesourcery.com>
11497
11498 * target.h (target_xfer_partial_ftype): Update.
11499 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11500 ULONGEST.
11501 * aix-thread.c (aix_thread_xfer_partial): Change type of
11502 argument 'len' to ULONGEST.
11503 * auxv.c (procfs_xfer_auxv): Likewise.
11504 (ld_so_xfer_auxv): Likewise.
11505 (memory_xfer_auxv): Likewise.
11506 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11507 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11508 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11509 * corelow.c (core_xfer_partial): Likewise.
11510 * ctf.c (ctf_xfer_partial): Likewise.
11511 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11512 '%u'.
11513 (darwin_read_dyld_info): Likewise.
11514 (darwin_xfer_partial): Likewise.
11515 * exec.c (section_table_xfer_memory_partial): Likewise.
11516 (exec_xfer_partial): Likewise.
11517 * exec.h (section_table_xfer_memory_partial): Update
11518 declaration.
11519 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11520 instead of plongest.
11521 (gnu_xfer_partial): Likewise.
11522 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11523 (ia64_hpux_xfer_solib_got): Likewise.
11524 (ia64_hpux_xfer_partial): Likewise.
11525 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11526 * inf-ptrace.c (inf_ptrace_xfer_partial):
11527 * inf-ttrace.c (inf_ttrace_xfer_partial):
11528 * linux-nat.c (linux_xfer_siginfo): Likewise.
11529 (linux_nat_xfer_partial): Likewise.
11530 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11531 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11532 * monitor.c (monitor_xfer_memory): Likewise.
11533 (monitor_xfer_partial): Likewise.
11534 * procfs.c (procfs_xfer_partial): Likewise.
11535 * record-full.c (record_full_xfer_partial): Likewise.
11536 (record_full_core_xfer_partial): Likewise.
11537 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11538 instead of plongest.
11539 (gdbsim_xfer_partial): Likewise.
11540 * remote.c (remote_xfer_partial): Likewise.
11541 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11542 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11543 declaration.
11544 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11545 (rs6000_xfer_shared_libraries): Likewise.
11546 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11547 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11548 (sparc_xfer_partial): Likewise.
11549 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11550 (spu_xfer_partial): Likewise.
11551 * spu-multiarch.c (spu_xfer_partial): Likewise.
11552 * target.c (target_read_live_memory): Likewise.
11553 (memory_xfer_live_readonly_partial): Likewise.
11554 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11555 (target_xfer_partial, default_xfer_partial): Likewise.
11556 (current_xfer_partial): Likewise.
11557 * tracepoint.c (tfile_xfer_partial): Likewise.
11558 * windows-nat.c (windows_xfer_memory): Likewise. Call
11559 pulongest instead of plongest.
11560 (windows_xfer_partial): Likewise.
11561 (windows_xfer_shared_libraries): Likewise.
11562
05804640
YQ
115632014-01-14 Yao Qi <yao@codesourcery.com>
11564
11565 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11566 target_xfer_partial_ftype.
11567
b5b08fb4
SC
115682014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11569
11570 PR python/15464
11571 PR python/16113
11572 * valops.c (value_struct_elt_bitpos): New function
11573 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11574 object to 'None' if the field name is an empty string ("").
11575 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11576 attribute to look for a field when 'name' is 'None'.
11577 (get_field_type): New function
11578
13aaf454
DE
115792014-01-13 Doug Evans <dje@google.com>
11580
11581 PR symtab/16426
11582 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11583 (try_open_dwop_file): Ditto.
11584 * gdb_bfd.c: #include "vec.h".
11585 (bfdp): New typedef.
11586 (struct gdb_bfd_data): New member included_bfds.
11587 (gdb_bfd_unref): Unref all included bfds.
11588 (gdb_bfd_record_inclusion): New function.
11589 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11590
c2cec97c
TT
115912014-01-13 Tom Tromey <tromey@redhat.com>
11592
11593 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11594
78e5999d
TT
115952014-01-13 Tom Tromey <tromey@redhat.com>
11596
11597 * defs.h (use_windows): Remove.
11598 * gdb.c (main): Update.
11599 * main.c (captured_main, gdb_main): Update.
11600 * main.h (struct captured_main_args) <use_windows>: Remove.
11601 * top.c (use_windows): Remove.
11602
f2052bbe
TT
116032014-01-13 Tom Tromey <tromey@redhat.com>
11604
11605 * defs.h (deprecated_flush_hook): Remove.
11606
fde4f8ed
JK
116072014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11608
11609 PR threads/16216
11610 * linux-thread-db.c (try_thread_db_load): Add parameter
11611 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11612 (try_thread_db_load_from_pdir_1): Move it there from here.
11613 (try_thread_db_load_from_sdir): Update caller.
11614 (try_thread_db_load_from_dir): Move it there from here.
11615
bdf61915
PP
116162014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11617
11618 * regformats/regdat.sh: Always rewrite the register file.
11619
f71e1a8d
PA
116202014-01-13 Pedro Alves <palves@redhat.com>
11621
11622 * Makefile.in (CHECK_HEADERS): New variable.
11623 (check-headers:): New rule.
11624
42c85435
TT
116252014-01-13 Tom Tromey <tromey@redhat.com>
11626
11627 * cli/cli-setshow.c (do_set_command): Update.
11628 * defs.h (deprecated_set_hook): Remove.
11629 * top.c (deprecated_set_hook): Remove.
11630
f8de5129
PA
116312014-01-13 Pedro Alves <palves@redhat.com>
11632
11633 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11634 the tracepoint if the PC is a pseudo-register.
11635
fc270c35
TT
116362014-01-13 Tom Tromey <tromey@redhat.com>
11637
11638 * defs.h (XCALLOC): Remove.
11639 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11640 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11641 * dwarf2loc.c (allocate_piece_closure): Likewise.
11642 * elfread.c (elf_symfile_segments): Likewise.
11643 (elf_symfile_segments): Likewise.
11644 * gdbtypes.c (copy_type_recursive): Likewise.
11645 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11646 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11647 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11648 XCALLOC.
11649 * mt-tdep.c (mt_gdbarch_init): Likewise.
11650 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11651 XCALLOC.
11652 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11653 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11654 * registry.c (registry_alloc_data): Likewise.
11655 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11656 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11657 * serial.c (serial_fdopen_ops): Likewise.
11658 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11659 XCALLOC.
11660 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11661 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11662 not XCALLOC.
11663
70ba0933
TT
116642014-01-13 Tom Tromey <tromey@redhat.com>
11665
11666 * defs.h (XMALLOC): Remove.
11667 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11668 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11669 * cli-out.c (struct ui_out *): Likewise.
11670 * cli/cli-dump.c (add_dump_command): Likewise.
11671 (add_dump_command): Likewise.
11672 * complaints.c (get_complaints): Likewise.
11673 (find_complaint): Likewise.
11674 * dwarf2-frame.c (execute_cfa_program): Likewise.
11675 * dwarf2read.c (abbrev_table_read_table): Likewise.
11676 * gdbarch.sh: Likewise.
11677 * gdbarch.c: Rebuild.
11678 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11679 * interps.c (interp_new): Likewise.
11680 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11681 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11682 * mi/mi-console.c (mi_console_file_new): Likewise.
11683 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11684 * mi/mi-out.c (mi_out_new): Likewise.
11685 * mi/mi-parse.c (mi_parse): Likewise.
11686 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11687 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11688 * observer.c (xalloc_observer_list_node): Likewise.
11689 * regcache.c (regcache_xmalloc_1): Likewise.
11690 * reggroups.c (reggroup_new): Likewise.
11691 (_initialize_reggroup): Likewise.
11692 * registry.c (register_data_with_cleanup): Likewise.
11693 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11694 * ser-base.c (serial_ttystate): Likewise.
11695 * ser-mingw.c (make_pipe_state): Likewise.
11696 * ser-pipe.c (pipe_open): Likewise.
11697 * serial.c (serial_open): Likewise.
11698 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11699 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11700 (tui_alloc_win_info): Likewise.
11701 (tui_add_content_elements): Likewise.
11702 * tui/tui-file.c (tui_file_new): Likewise.
11703 * tui/tui-out.c (tui_out_new): Likewise.
11704 * ui-file.c (mem_file_new): Likewise.
11705 * ui-out.c (push_level): Likewise.
11706 (make_cleanup_ui_out_end): Likewise.
11707 (append_header_to_list): Likewise.
11708 (ui_out_new): Likewise.
11709 * user-regs.c (user_reg_add_builtin): Likewise.
11710
41bf6aca
TT
117112014-01-13 Tom Tromey <tromey@redhat.com>
11712
11713 * defs.h (XZALLOC): Remove.
11714 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11715 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11716 (get_ada_tasks_inferior_data): Likewise.
11717 * auto-load.c (get_auto_load_pspace_data): Likewise.
11718 * auxv.c (get_auxv_inferior_data): Likewise.
11719 * bfd-target.c (target_bfd_reopen): Likewise.
11720 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11721 (deprecated_insert_raw_breakpoint): Likewise.
11722 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11723 * corelow.c (core_open): Likewise.
11724 * darwin-nat.c (darwin_check_new_threads): Likewise.
11725 (darwin_attach_pid): Likewise.
11726 * dummy-frame.c (dummy_frame_push): Likewise.
11727 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11728 * dwarf2loc.c (allocate_piece_closure): Likewise.
11729 * elfread.c (elf_symfile_segments): Likewise.
11730 * eval.c (ptrmath_type_p): Likewise.
11731 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11732 * gdbtypes.c (alloc_type_arch): Likewise.
11733 (alloc_type_instance): Likewise.
11734 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11735 * inf-child.c (inf_child_can_use_agent): Likewise.
11736 * inflow.c (get_inflow_inferior_data): Likewise.
11737 * infrun.c (save_infcall_suspend_state): Likewise.
11738 * jit.c (jit_reader_load): Likewise.
11739 (get_jit_objfile_data): Likewise.
11740 (get_jit_program_space_data): Likewise.
11741 (jit_object_open_impl): Likewise.
11742 (jit_symtab_open_impl): Likewise.
11743 (jit_block_open_impl): Likewise.
11744 (jit_frame_sniffer): Likewise.
11745 * linux-fork.c (add_fork): Likewise.
11746 * maint.c (make_command_stats_cleanup): Likewise.
11747 * objfiles.c (get_objfile_pspace_data): Likewise.
11748 * opencl-lang.c (struct lval_closure): Likewise.
11749 * osdata.c (osdata_start_osdata): Likewise.
11750 * progspace.c (new_address_space): Likewise.
11751 (add_program_space): Likewise.
11752 * remote-sim.c (get_sim_inferior_data): Likewise.
11753 * sh-tdep.c (sh_gdbarch_init): Likewise.
11754 * skip.c (Ignore): Likewise.
11755 (skip_delete_command): Likewise.
11756 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11757 (library_list_start_library): Likewise.
11758 (solib_aix_current_sos): Likewise.
11759 * solib-darwin.c (get_darwin_info): Likewise.
11760 (darwin_current_sos): Likewise.
11761 * solib-dsbt.c (get_dsbt_info): Likewise.
11762 * solib-ia64-hpux.c (new_so_list): Likewise.
11763 (ia64_hpux_get_solib_linkage_addr): Likewise.
11764 * solib-spu.c (append_ocl_sos): Likewise.
11765 (spu_current_sos): Likewise.
11766 * solib-svr4.c (get_svr4_info): Likewise.
11767 (svr4_keep_data_in_core): Likewise.
11768 (library_list_start_library): Likewise.
11769 (svr4_default_sos): Likewise.
11770 (svr4_read_so_list): Likewise.
11771 * solib-target.c (library_list_start_library): Likewise.
11772 (solib_target_current_sos): Likewise.
11773 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11774 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11775 * symfile.c (default_symfile_segments): Likewise.
11776 * target-descriptions.c (tdesc_data_init): Likewise.
11777 (tdesc_create_reg): Likewise.
11778 (struct tdesc_type *): Likewise.
11779 (tdesc_create_vector): Likewise.
11780 (tdesc_set_struct_size): Likewise.
11781 (struct tdesc_type *): Likewise.
11782 (tdesc_free_feature): Likewise.
11783 (tdesc_create_feature): Likewise.
11784 * windows-nat.c (windows_add_thread): Likewise.
11785 (windows_make_so): Likewise.
11786 * xml-support.c (gdb_xml_body_text): Likewise.
11787 (gdb_xml_create_parser_and_cleanup): Likewise.
11788 (xml_process_xincludes): Likewise.
11789 * xml-syscall.c (allocate_syscalls_info): Likewise.
11790 (syscall_create_syscall_desc): Likewise.
11791
5acfdbae
SDJ
117922014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11793
11794 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11795 function, with code from i386_stap_parse_special_token.
11796 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11797 (i386_stap_parse_special_token): Move code to the two functions
11798 above; simplify it.
11799
0000e5cc
PA
118002014-01-09 Pedro Alves <palves@redhat.com>
11801 Hui Zhu <hui@codesourcery.com>
11802
11803 PR gdb/16101
11804 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11805 bp_err_string. Don't mark the location shlib_disabled if the
11806 error thrown wasn't a generic or memory error. Catch errors
11807 thrown while inserting breakpoints in overlayed code. Output
11808 error message of software breakpoints.
11809 * remote.c (remote_insert_breakpoint): If this breakpoint has
11810 target-side commands but this stub doesn't support Z0 packets,
11811 throw NOT_SUPPORTED_ERROR error.
11812 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11813 * target.h (target_insert_breakpoint): Extend comment.
11814 (target_insert_hw_breakpoint): Add comment.
11815
b7ea362b
PA
118162014-01-08 Pedro Alves <palves@redhat.com>
11817
11818 * remote.c (remote_add_thread): Add threads silently if starting
11819 up.
11820 (remote_notice_new_inferior): If in all-stop, and starting up,
11821 don't call notice_new_inferior.
11822 (get_current_thread): New function, factored out from ...
11823 (add_current_inferior_and_thread): ... this. Adjust.
11824 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11825 found any thread, then select the remote's current thread as GDB's
11826 current thread too.
11827
b7bba001
JB
118282014-01-08 Joel Brobecker <brobecker@adacore.com>
11829
11830 * NEWS: Create a new section for the next release branch.
11831 Rename the section of the current branch, now that it has
11832 been cut.
11833
16dfbded
JB
118342014-01-08 Joel Brobecker <brobecker@adacore.com>
11835
11836 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11837 * version.in: Bump version to 7.7.50.DATE-cvs.
11838
22c90ac1
YQ
118392014-01-08 Yao Qi <yao@codesourcery.com>
11840
11841 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11842 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11843 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11844
d64ad97c
YQ
118452014-01-08 Yao Qi <yao@codesourcery.com>
11846
11847 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11848 return value of bfd_get_filename to symbol_file_add_from_bfd.
11849
f93ba80c
PM
118502014-01-08 Pierre Muller <muller@sourceware.org>
11851
11852 Fix PR16201.
11853 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11854 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11855 to prim_record_mininal_symbol_and_info.
11856 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11857 in call to prim_record_minimal_symbol_and_info.
11858 (read_pe_exported_syms): Set index field of section_data.
11859
a4d9ba85
AP
118602014-01-07 Andrew Pinski <apinski@cavium.com>
11861
11862 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11863 * features/aarch64.c: Regenerate.
11864
1b67eb02
AS
118652014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11866
11867 * target.c (return_null): Define.
11868 (update_current_target): Use it instead of return_zero for
11869 functions that return a pointer.
11870
5e3f4fab
EBM
118712014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11872
11873 * source.c (add_path): Fix check for duplicated paths in the previously
11874 included paths.
11875
e2616788
HK
118762014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11877
11878 * ada-lang.c: Remove duplicated include statements.
11879 * alphabsd-nat.c: Ditto.
11880 * amd64-darwin-tdep.c: Ditto.
11881 * amd64fbsd-nat.c: Ditto.
11882 * auto-load.c: Ditto.
11883 * ax-gdb.c: Ditto.
11884 * breakpoint.c: Ditto.
11885 * dbxread.c: Ditto.
11886 * fork-child.c: Ditto.
11887 * gdb_usleep.c: Ditto.
11888 * i386-darwin-tdep.c: Ditto.
11889 * i386fbsd-nat.c: Ditto.
11890 * infcmd.c: Ditto.
11891 * inferior.c: Ditto.
11892 * jv-lang.c: Ditto.
11893 * linux-nat.c: Ditto.
11894 * linux-tdep.c: Ditto.
11895 * m68kbsd-nat.c: Ditto.
11896 * m68klinux-nat.c: Ditto.
11897 * microblaze-tdep.c: Ditto.
11898 * mips-linux-tdep.c: Ditto.
11899 * mn10300-tdep.c: Ditto.
11900 * nto-tdep.c: Ditto.
11901 * opencl-lang.c: Ditto.
11902 * osdata.c: Ditto.
11903 * printcmd.c: Ditto.
11904 * regcache.c: Ditto.
11905 * remote-m32r-sdi.c: Ditto.
11906 * remote.c: Ditto.
11907 * symfile.c: Ditto.
11908 * symtab.c: Ditto.
11909 * tilegx-linux-nat.c: Ditto.
11910 * tilegx-tdep.c: Ditto.
11911 * tracepoint.c: Ditto.
11912 * valops.c: Ditto.
11913 * vaxbsd-nat.c: Ditto.
11914 * windows-nat.c: Ditto.
11915 * xtensa-tdep.c: Ditto.
11916
bd1f7788
YQ
119172014-01-07 Yao Qi <yao@codesourcery.com>
11918
11919 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11920
79301218
JB
119212014-01-07 Yao Qi <yao@codesourcery.com>
11922 Joel Brobecker <brobecker@adacore.com>
11923
11924 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11925 (pdc_write_regs): Likewise.
11926 (fetch_regs_kernel_thread): Likewise.
11927 (store_regs_kernel_thread): Likewise.
11928
119292014-01-07 Joel Brobecker <brobecker@adacore.com>
11930
11931 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11932 tagged type objects to their actual type.
11933
8e355c5d
JB
119342014-01-07 Joel Brobecker <brobecker@adacore.com>
11935
11936 * ada-valprint.c (print_field_values): Add "language" parameter.
11937 Update calls to print_field_values and print_variant_part.
11938 Pass new parameter "language" in call to val_print instead
11939 of "current_language". Replace call to ada_val_print by call
11940 to val_print.
11941 (print_variant_part): Add "language" parameter.
11942 (ada_val_print_struct_union): Update call to print_field_values.
11943
4fbf5aa5
JB
119442014-01-07 Joel Brobecker <brobecker@adacore.com>
11945
11946 * ada-valprint.c (ui_memcpy): Delete.
11947 (ada_print_floating): Update documentation. Add empty line
11948 between between function documentation and implementation.
11949 Delete variable "buffer". Use ui_file_xstrdup in place of
11950 ui_file_put. Minor adjustments following this change.
11951
71855601
JB
119522014-01-07 Joel Brobecker <brobecker@adacore.com>
11953
11954 * ada-valprint.c (ada_val_print_string): New function,
11955 extracted from ada_val_print_array.
11956 (ada_val_print_array): Replace extracted code by call
11957 to ada_val_print_string followed by a return. Move
11958 "else" branch to the function's top block.
11959
4eb27a30
JB
119602014-01-07 Joel Brobecker <brobecker@adacore.com>
11961
11962 * ada-valprint.c (ada_val_print_array): Move implementation
11963 down. Rename parameter "offset" and "val" into "offset_aligned"
11964 and "original_value" respectively. Add parameter "offset".
11965
34b27950
JB
119662014-01-07 Joel Brobecker <brobecker@adacore.com>
11967
11968 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11969 re-organizing the code. Change the "???" message printed
11970 when target type is a TYPE_CODE_UNDEF into
11971 "<ref to undefined type>".
11972
079e4591
JB
119732014-01-07 Joel Brobecker <brobecker@adacore.com>
11974
11975 * ada-valprint.c (print_record): Delete, implementation inlined...
11976 (ada_val_print_struct_union): ... here. Remove call to
11977 ada_check_typedef in inlined implementation.
11978
8004dfd1
JB
119792014-01-07 Joel Brobecker <brobecker@adacore.com>
11980
11981 * ada-valprint.c (ada_val_print_gnat_array): New function,
11982 extracted from ada_val_print_1;
11983 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11984 (ada_val_print_flt, ada_val_print_struct_union)
11985 (ada_val_print_ref): Likewise.
11986 (ada_val_print_1): Delete variables i and elttype.
11987 Replace extracted-out code by call to corresponding
11988 new functions.
11989
760a2db0
JB
119902014-01-07 Joel Brobecker <brobecker@adacore.com>
11991
11992 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11993
3a92c861
JB
119942014-01-07 Joel Brobecker <brobecker@adacore.com>
11995
11996 * ada-valprint.c (ada_val_print_1): Replace calls to
11997 ada_val_print_1 by calls to val_print.
11998
cd1630f9
JB
119992014-01-07 Joel Brobecker <brobecker@adacore.com>
12000
12001 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12002 Update calls to self accordingly. Replace calls to c_val_print
12003 by calls to val_print.
12004
bdf779a0
JB
120052014-01-07 Joel Brobecker <brobecker@adacore.com>
12006
12007 * ada-valprint.c (print_record): Delete declaration.
12008 (adjust_type_signedness, ada_val_print_1): Likewise.
12009 (ada_val_print): Move function implementation down.
12010 (print_variant_part, print_field_values, print_record):
12011 Move function implementation up.
12012
c0d48811
JB
120132014-01-07 Joel Brobecker <brobecker@adacore.com>
12014
12015 * python/py-type.c (typy_get_name): New function.
12016 (type_object_getset): Add entry for attribute "name".
12017 * NEWS: Add entry mentioning this new attribute.
12018
c26e9cbb
YQ
120192014-01-07 Yao Qi <yao@codesourcery.com>
12020
12021 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12022 statement.
12023
0cc6f43d
YQ
120242014-01-07 Yao Qi <yao@codesourcery.com>
12025
12026 * gnu-nat.c (info_port_rights): Add qualifier const to
12027 argument args.
12028
eec03155
YQ
120292014-01-07 Yao Qi <yao@codesourcery.com>
12030
12031 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12032
f04a82ef
YQ
120332014-01-07 Yao Qi <yao@codesourcery.com>
12034
12035 * gnu-nat.c (make_inf) Update declaration.
12036 (make_inf): Make it static.
12037 (inf_set_traced): Likewise.
12038 (inf_port_to_thread, inf_task_died_status): Likewise.
12039
d57dda0a
YQ
120402014-01-07 Yao Qi <yao@codesourcery.com>
12041
12042 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12043
3aa8c969
YQ
120442014-01-07 Yao Qi <yao@codesourcery.com>
12045
12046 * gnu-nat.c (_initialize_gnu_nat): Declare.
12047
94123b4f
YQ
120482014-01-07 Yao Qi <yao@codesourcery.com>
12049
12050 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12051 'enum bfd_endian'.
12052 (struct gdbarch_info) <byte_order>: Change type to
12053 'enum bfd_endian'.
12054 <byte_order_for_code>: Likewise.
12055 * gdbarch.c, gdbarch.h: Regenerated.
12056
dc81d70a
TT
120572014-01-06 Sasha Smundak <asmundak@google.com>
12058
12059 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12060
cc2f3c35
TT
120612014-01-06 Tom Tromey <tromey@redhat.com>
12062
12063 * doublest.c (convert_doublest_to_floatformat): Use const, not
12064 CONST.
12065 * somread.c (som_symtab_read): Likewise.
12066
adcf2eed
HZ
120672014-01-07 Hui Zhu <hui@codesourcery.com>
12068
12069 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12070 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12071 (gdb_bfd_fopen): Ditto.
12072 (gdb_bfd_openr): Ditto.
12073 (gdb_bfd_openw): Ditto.
12074 (gdb_bfd_openr_iovec): Ditto.
12075 (gdb_bfd_fdopenr): Ditto.
12076 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12077 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12078 with xstrdup.
12079 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12080 with xstrdup.
12081 * symfile-mem.c (symbol_file_add_from_memory): Removed
12082 gdb_bfd_stash_filename.
12083
50722198
DE
120842014-01-03 Doug Evans <dje@google.com>
12085
12086 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12087 output.
12088
2fa4b862
JB
120892014-01-01 Joel Brobecker <brobecker@adacore.com>
12090
12091 Update year range in copyright notice of all files.
12092
28498c42
JB
120932014-01-01 Joel Brobecker <brobecker@adacore.com>
12094
12095 * top.c (print_gdb_version): Set copyright year to 2014.
12096
7b6e1046
JB
120972014-01-01 Joel Brobecker <brobecker@adacore.com>
12098
12099 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12100
df96af55 12101For older changes see ChangeLog-2013.
c906108c
SS
12102\f
12103Local Variables:
12104mode: change-log
12105left-margin: 8
12106fill-column: 74
12107version-control: never
57da7796 12108coding: utf-8
c906108c 12109End:
This page took 3.477078 seconds and 4 git commands to generate.