Move print-utils.h to common-defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f6e94d78
GB
12014-08-19 Gary Benson <gbenson@redhat.com>
2
3 * common/common-defs.h: Include print-utils.h.
4 * utils.h: Do not include print-utils.h.
5
9239eeab
GB
62014-08-19 Tom Tromey <tromey@redhat.com>
7 Gary Benson <gbenson@redhat.com>
8
9 * common/common-types.h: New file.
10 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
11 * common/common-defs.h: Include common-types.h.
12 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
13 (ULONGEST): Remove.
14
ef87c8bb
GB
152014-08-19 Tom Tromey <tromey@redhat.com>
16 Gary Benson <gbenson@redhat.com>
17
18 * common/errors.h: New file.
19 * common/errors.c: Likewise.
20 * Makefile.in (SFILES): Add common/errors.c.
21 (HFILES_NO_SRCDIR): Add common/errors.h.
22 (COMMON_OBS): Add errors.o.
23 (errors.o): New rule.
24 * common/common-defs.h: Include errors.h.
25 * utils.h (perror_with_name, error, verror, warning, vwarning):
26 Don't declare.
27 * common/common-utils.h: (malloc_failure, internal_error):
28 Likewise.
29
196a707b
GB
302014-08-19 Gary Benson <gbenson@redhat.com>
31
32 * utils.c (internal_vproblem): Always print the message.
33
ded4fc8f
DE
342014-08-18 Doug Evans <dje@google.com>
35
36 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
37
950c97d8
JB
382014-08-18 Joel Brobecker <brobecker@adacore.com>
39
40 * ada-typeprint.c (type_is_full_subrange_of_target_type):
41 Return 0 if TYPE is dynamic.
42 (print_range): Add handling of dynamic ranges.
43
3cdcd0ce
JB
442014-08-18 Keven Boell <keven.boell@intel.com>
45 Joel Brobecker <brobecker@adacore.com>
46
47 * gdbtypes.h (struct main_type): Add field "data_location".
48 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
49 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
50 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
51 a dynamic data location.
52 (resolve_dynamic_type): Add DW_AT_data_location handling.
53 (copy_recursive, copy_type): Copy the data_location information
54 when present.
55 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
56 * value.c (value_from_contents_and_address): Add
57 DW_AT_data_location handling.
58
08412b07
JB
592014-08-18 Keven Boell <keven.boell@intel.com>
60 Joel Brobecker <brobecker@adacore.com>
61
62 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
63 field "get_object_address".
64 * dwarf2expr.c (execute_stack_op): Add handling for
65 DW_OP_push_object_address.
66 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
67 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
68 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
69 (dwarf_expr_get_obj_addr): New function.
70 (dwarf_expr_ctx_funcs): Add get_object_address field.
71 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
72 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
73 (dwarf2_evaluate_property): Add parameter "address". Use it.
74 (needs_get_obj_addr): New function.
75 (needs_frame_ctx_funcs): Add get_object_address field.
76 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
77 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
78 (resolve_dynamic_array): Likewise.
79
84754697
JB
802014-08-18 Joel Brobecker <brobecker@adacore.com>
81
82 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
83 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
84 fixed value for records and unions for which some GNAT encodings
85 are present.
86
da5c522f
JB
872014-08-18 Joel Brobecker <brobecker@adacore.com>
88
89 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
90 rewrite to avoid "else if" and "else" constructs. Should be
91 a no-op in practice.
92
0d72a7c3
JB
932014-08-18 Joel Brobecker <brobecker@adacore.com>
94
95 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
96 of lexical block.
97
e66d4446
SC
982014-08-15 Siva Chandra Reddy <sivachandra@google.com>
99
100 PR c++/17132
101 * eval.c: Update all calls to find_overload_match.
102 * valarith.c: Likewise.
103 (value_user_defined_cpp_op, value_user_defined_op): New
104 argument NOSIDE. Update all callers.
105 * valops.c (find_overload_match): New argument NOSIDE.
106 * value.h (find_overload_match): Update signature.
107
940df408
SC
1082014-08-15 Siva Chandra Reddy <sivachandra@google.com>
109
110 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
111 'items' methods instead of 'iteritems' method on dictionaries.
112
699ca60a
DE
1132014-08-15 Doug Evans <dje@google.com>
114
115 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
116 closer to use.
117
37780ee5
DE
1182014-08-15 Doug Evans <dje@google.com>
119
120 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
121
0ad93d4f
DE
1222014-08-15 Doug Evans <dje@google.com>
123
124 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
125
20d8c372
DE
1262014-08-15 Doug Evans <dje@google.com>
127
128 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
129 unused.
130
cb039ba4
EZ
1312014-08-15 Eli Zaretskii <eliz@gnu.org>
132
133 * dcache.h: Include target.h, to avoid compile time warnings.
134
eb7a547a
JB
1352014-08-15 Joel Brobecker <brobecker@adacore.com>
136
137 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
138 frame_info" partial declaration.
139 * gdbarch.h: Regenerate.
140
783cecc8
YQ
1412014-08-15 Yao Qi <yao@codesourcery.com>
142
143 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
144 Add parameter 'decode_for_pst_p'. Callers update.
145
65c749e7
YQ
1462014-08-13 Yao Qi <yao@codesourcery.com>
147
148 PR build/17104
149 * configure.ac: Use local variable 'pos'.
150 * configure: Regenerated.
151
d769e349
DE
1522014-08-11 Doug Evans <dje@google.com>
153
154 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
155 message, it is redundant with "Reading symbols from ..." message.
156
24f1235e
DE
1572014-08-10 Doug Evans <xdje42@gmail.com>
158
159 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
160
dcd2e6ef
YQ
1612014-08-09 Yao Qi <yao@codesourcery.com>
162
163 PR remote/9053
164 * remote.c (remote_xfer_partial): Remove dead code.
165
070bdf0b
AA
1662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
167
168 * ia64-linux-tdep.c: Include "regset.h".
169 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
170 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
171 (ia64_linux_supply_fpregset): New function.
172 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
173 (ia64_linux_regset_from_core_section): New function.
174 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
175 method.
176
08f9f542
AA
1772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
178
179 * m68klinux-tdep.c: Include "regset.h".
180 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
181 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
182 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
183 (m68k_linux_regset_from_core_section): New function.
184 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
185 method.
186
8f1cee41
AA
1872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
188
189 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
190 function. Move logic to...
191 (tilegx_linux_regmap): ... this new register map.
192 (tilegx_linux_regset): Refer to register map, replace supply
193 method by regcache_supply_regset, and add collect method.
194 * tilegx-tdep.h (enum tilegx_regnum): New enum value
195 TILEGX_FIRST_EASY_REGNUM.
196
c5741217
AA
1972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
198
199 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
200 that calls regcache_supply_regset and handles the EPC register
201 separately. Move main logic to...
202 (score7_linux_gregmap): ... this new register map.
203 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
204 (score7_linux_gregset): Refer to register map. Add collect method.
205 (score7_linux_regset_from_core_section): Replace
206 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
207 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
208 (struct regset): Delete unused forward declaraction.
209 (struct pt_regs): Delete structure definition.
210 (elf_gregset_t): Delete typedef.
211
81580573
AA
2122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
213
214 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
215 (nios2_core_regset): Add collect method.
216
ba199d7d
AA
2172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
218
219 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
220 platform-independent and don't write to read-only input buffer.
221 (m32r_linux_collect_gregset): New function.
222 (m32r_linux_gregset): Add collect method.
223
0006a9da
AA
2242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
225
226 * hppa-linux-tdep.c (greg_map): Rename to...
227 (hppa_linux_gregmap): ... this. Also convert to
228 regcache_map_entry format.
229 (hppa_linux_supply_regset): Delete function.
230 (hppa_linux_supply_fpregset): Delete function. Move logic to...
231 (hppa_linux_fpregmap): ... this new register map.
232 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
233 register map, replace supply method by regcache_supply_regset, and
234 add collect method regcache_collect_regset.
235
901e1b23
AA
2362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
237
238 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
239 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
240 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
241 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
242 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
243 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
244 (frv_linux_supply_gregset): Replace main logic by call to
245 regcache_supply_regset, but keep clearing gr32-gr63.
246 (frv_linux_supply_fpregset): Delete function.
247 (frv_linux_gregset): Refer to appropriate register map and add
248 regcache_collect_regset as the collect method.
249 (frv_linux_fpregset): Likewise. Also exchange the supply method
250 by regcache_supply_regset.
251
1d6e7555
AA
2522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
253
254 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
255 by call to alpha_supply_int_regs.
256 (alpha_linux_collect_gregset): New function.
257 (alpha_linux_supply_fpregset): Replace logic by call to
258 alpha_supply_fp_regs.
259 (alpha_linux_collect_fpregset): New function.
260 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
261
d4d793bf
AA
2622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
263
264 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
265 by call to regcache_collect_regset.
266 (supply_gregset, supply_fpregset): Call regcache_supply_regset
267 instead of aarch64_linux_supply_gregset/_fpregset.
268 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
269 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
270 header file instead.
271 (aarch64_linux_supply_gregset, supply_gregset_from_core)
272 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
273 functions. Move logic to ...
274 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
275 register maps.
276 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
277 refer to new register maps, replace *_regset_from_core by
278 regcache_supply_regset, and also use regcache_collect_regset.
279 * aarch64-linux-tdep.h: Include "regset.h".
280 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
281 Delete prototypes.
282 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
283 macros, moved from C source file.
284 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
285 variable declarations.
286
99b7da5d
AA
2872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
288
289 * s390-linux-nat.c: Include "regset.h".
290 (regmap_gregset): Delete macro.
291 (s390_64_regmap_gregset): New register map for
292 regcache_supply/_collect_regset.
293 (s390_64_gregset): New regset.
294 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
295 (regmap_fpregset): Delete macro.
296 (s390_native_supply, s390_native_collect): Delete functions.
297 (supply_gregset, fill_gregset): Replace s390-specific regmap
298 handling by a call to regcache_supply/_collect_regset.
299 (supply_fpregset, fill_fpregset): Call regcache_supply/
300 _collect_regset instead of s390_native_supply/_collect.
301 (fetch_regset, store_regset): Likewise. Also change the last
302 parameter to a regset instead of a regmap.
303 (s390_linux_fetch_inferior_registers)
304 (390_linux_store_inferior_registers): Adjust last parameter in
305 calls to fetch_regset and store_regset.
306 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
307 (s390_gregmap): ... this. Also make static const and convert to
308 regcache_map_entry format.
309 (s390x_regmap_gregset): Delete.
310 (s390_regmap_fpregset): Rename to...
311 (s390_fpregmap): ... this. Make static const and convert to
312 regcache_map_entry format.
313 (s390_regmap_upper, s390_regmap_last_break)
314 (s390x_regmap_last_break, s390_regmap_system_call)
315 (s390_regmap_tdb): Likewise.
316 (s390_supply_regset, s390_collect_regset): Remove functions.
317 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
318 s390_supply_regset.
319 (s390_gregset, s390_fpregset, s390_upper_regset)
320 (s390_last_break_regset, s390x_last_break_regset)
321 (s390_system_call_regset, s390_tdb_regset): Make global and
322 replace s390_supply/_collect_regset by regcache_supply/
323 _collect_regset.
324 (s390x_gregset): Delete.
325 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
326 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
327 (s390_regmap_fpregset, s390_regmap_last_break)
328 (s390x_regmap_last_break, s390_regmap_system_call)
329 (s390_regmap_tdb): Delete global variable declarations.
330 (s390_gregset, s390_fpregset, s390_last_break_regset)
331 (s390x_last_break_regset, s390_system_call_regset)
332 (s390_tdb_regset): New global variable declarations.
333
0b309272
AA
3342014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
335
336 * regcache.c: Include "regset.h".
337 (regcache_transfer_regset): New local function.
338 (regcache_supply_regset, regcache_collect_regset): New functions.
339 * regcache.h (struct regcache_map_entry): New structure.
340 (REGCACHE_MAP_SKIP): New enum value.
341 (regcache_supply_regset, regcache_collect_regset): New prototypes.
342
7fefa8d7
AA
3432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
344
345 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
346 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
347 (ppc_linux_collect_gregset ): Likewise.
348 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
349 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
350 (ppc_collect_vrregset): Likewise.
351 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
352 Likewise.
353
96c4f946
YQ
3542014-08-07 Yao Qi <yao@codesourcery.com>
355
356 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
357 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
358 * remote.c (remote_read_bytes): Likewise.
359
fffbe6a8
YQ
3602014-08-07 Yao Qi <yao@codesourcery.com>
361
362 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
363
5ee8a82c
YQ
3642014-08-07 Yao Qi <yao@codesourcery.com>
365
366 PR remote/17230
367 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
368 TARGET_XFER_OK instead of 0.
369
bb974a24
GB
3702014-08-07 Gary Benson <gbenson@redhat.com>
371
372 * common/common-defs.h: Include errno.h.
373 * defs.h: Do not include errno.h.
374 * ada-typeprint.c: Likewise.
375 * c-typeprint.c: Likewise.
376 * core-regset.c: Likewise.
377 * corefile.c: Likewise.
378 * corelow.c: Likewise.
379 * event-loop.c: Likewise.
380 * f-typeprint.c: Likewise.
381 * gnu-nat.c: Likewise.
382 * go32-nat.c: Likewise.
383 * i386gnu-nat.c: Likewise.
384 * m2-typeprint.c: Likewise.
385 * nat/linux-btrace.c: Likewise.
386 * p-typeprint.c: Likewise.
387 * procfs.c: Likewise.
388 * remote-sim.c: Likewise.
389 * rs6000-nat.c: Likewise.
390 * target.c: Likewise.
391 * typeprint.c: Likewise.
392 * ui-file.c: Likewise.
393 * valops.c: Likewise.
394 * valprint.c: Likewise.
395
6d3d12eb
GB
3962014-08-07 Gary Benson <gbenson@redhat.com>
397
398 * common/common-defs.h: Include string.h.
399 * aarch64-tdep.c: Do not include string.h.
400 * ada-exp.y: Likewise.
401 * ada-lang.c: Likewise.
402 * ada-lex.l: Likewise.
403 * ada-typeprint.c: Likewise.
404 * ada-valprint.c: Likewise.
405 * aix-thread.c: Likewise.
406 * alpha-linux-tdep.c: Likewise.
407 * alpha-mdebug-tdep.c: Likewise.
408 * alpha-nat.c: Likewise.
409 * alpha-osf1-tdep.c: Likewise.
410 * alpha-tdep.c: Likewise.
411 * alphanbsd-tdep.c: Likewise.
412 * amd64-dicos-tdep.c: Likewise.
413 * amd64-linux-tdep.c: Likewise.
414 * amd64-nat.c: Likewise.
415 * amd64-sol2-tdep.c: Likewise.
416 * amd64fbsd-tdep.c: Likewise.
417 * amd64obsd-tdep.c: Likewise.
418 * arch-utils.c: Likewise.
419 * arm-linux-nat.c: Likewise.
420 * arm-linux-tdep.c: Likewise.
421 * arm-tdep.c: Likewise.
422 * arm-wince-tdep.c: Likewise.
423 * armbsd-tdep.c: Likewise.
424 * armnbsd-nat.c: Likewise.
425 * armnbsd-tdep.c: Likewise.
426 * armobsd-tdep.c: Likewise.
427 * avr-tdep.c: Likewise.
428 * ax-gdb.c: Likewise.
429 * ax-general.c: Likewise.
430 * bcache.c: Likewise.
431 * bfin-tdep.c: Likewise.
432 * breakpoint.c: Likewise.
433 * build-id.c: Likewise.
434 * buildsym.c: Likewise.
435 * c-exp.y: Likewise.
436 * c-lang.c: Likewise.
437 * c-typeprint.c: Likewise.
438 * c-valprint.c: Likewise.
439 * charset.c: Likewise.
440 * cli-out.c: Likewise.
441 * cli/cli-cmds.c: Likewise.
442 * cli/cli-decode.c: Likewise.
443 * cli/cli-dump.c: Likewise.
444 * cli/cli-interp.c: Likewise.
445 * cli/cli-logging.c: Likewise.
446 * cli/cli-script.c: Likewise.
447 * cli/cli-setshow.c: Likewise.
448 * cli/cli-utils.c: Likewise.
449 * coffread.c: Likewise.
450 * common/agent.c: Likewise.
451 * common/buffer.c: Likewise.
452 * common/buffer.h: Likewise.
453 * common/common-utils.c: Likewise.
454 * common/filestuff.c: Likewise.
455 * common/filestuff.c: Likewise.
456 * common/format.c: Likewise.
457 * common/print-utils.c: Likewise.
458 * common/rsp-low.c: Likewise.
459 * common/signals.c: Likewise.
460 * common/vec.h: Likewise.
461 * common/xml-utils.c: Likewise.
462 * core-regset.c: Likewise.
463 * corefile.c: Likewise.
464 * corelow.c: Likewise.
465 * cp-abi.c: Likewise.
466 * cp-name-parser.y: Likewise.
467 * cp-support.c: Likewise.
468 * cp-valprint.c: Likewise.
469 * cris-tdep.c: Likewise.
470 * d-exp.y: Likewise.
471 * darwin-nat.c: Likewise.
472 * dbxread.c: Likewise.
473 * dcache.c: Likewise.
474 * demangle.c: Likewise.
475 * dicos-tdep.c: Likewise.
476 * disasm.c: Likewise.
477 * doublest.c: Likewise.
478 * dsrec.c: Likewise.
479 * dummy-frame.c: Likewise.
480 * dwarf2-frame.c: Likewise.
481 * dwarf2loc.c: Likewise.
482 * dwarf2read.c: Likewise.
483 * elfread.c: Likewise.
484 * environ.c: Likewise.
485 * eval.c: Likewise.
486 * event-loop.c: Likewise.
487 * exceptions.c: Likewise.
488 * exec.c: Likewise.
489 * expprint.c: Likewise.
490 * f-exp.y: Likewise.
491 * f-lang.c: Likewise.
492 * f-typeprint.c: Likewise.
493 * f-valprint.c: Likewise.
494 * fbsd-nat.c: Likewise.
495 * findcmd.c: Likewise.
496 * findvar.c: Likewise.
497 * fork-child.c: Likewise.
498 * frame.c: Likewise.
499 * frv-linux-tdep.c: Likewise.
500 * frv-tdep.c: Likewise.
501 * gdb.c: Likewise.
502 * gdb_bfd.c: Likewise.
503 * gdbarch.c: Likewise.
504 * gdbarch.sh: Likewise.
505 * gdbtypes.c: Likewise.
506 * gnu-nat.c: Likewise.
507 * gnu-v2-abi.c: Likewise.
508 * gnu-v3-abi.c: Likewise.
509 * go-exp.y: Likewise.
510 * go-lang.c: Likewise.
511 * go32-nat.c: Likewise.
512 * guile/guile.c: Likewise.
513 * guile/scm-auto-load.c: Likewise.
514 * hppa-hpux-tdep.c: Likewise.
515 * hppa-linux-nat.c: Likewise.
516 * hppanbsd-tdep.c: Likewise.
517 * hppaobsd-tdep.c: Likewise.
518 * i386-cygwin-tdep.c: Likewise.
519 * i386-dicos-tdep.c: Likewise.
520 * i386-linux-tdep.c: Likewise.
521 * i386-nto-tdep.c: Likewise.
522 * i386-sol2-tdep.c: Likewise.
523 * i386-tdep.c: Likewise.
524 * i386bsd-tdep.c: Likewise.
525 * i386gnu-nat.c: Likewise.
526 * i386nbsd-tdep.c: Likewise.
527 * i386obsd-tdep.c: Likewise.
528 * i387-tdep.c: Likewise.
529 * ia64-libunwind-tdep.c: Likewise.
530 * ia64-linux-nat.c: Likewise.
531 * inf-child.c: Likewise.
532 * inf-ptrace.c: Likewise.
533 * inf-ttrace.c: Likewise.
534 * infcall.c: Likewise.
535 * infcmd.c: Likewise.
536 * inflow.c: Likewise.
537 * infrun.c: Likewise.
538 * interps.c: Likewise.
539 * iq2000-tdep.c: Likewise.
540 * irix5-nat.c: Likewise.
541 * jv-exp.y: Likewise.
542 * jv-lang.c: Likewise.
543 * jv-typeprint.c: Likewise.
544 * jv-valprint.c: Likewise.
545 * language.c: Likewise.
546 * linux-fork.c: Likewise.
547 * linux-nat.c: Likewise.
548 * lm32-tdep.c: Likewise.
549 * m2-exp.y: Likewise.
550 * m2-typeprint.c: Likewise.
551 * m32c-tdep.c: Likewise.
552 * m32r-linux-nat.c: Likewise.
553 * m32r-linux-tdep.c: Likewise.
554 * m32r-rom.c: Likewise.
555 * m32r-tdep.c: Likewise.
556 * m68hc11-tdep.c: Likewise.
557 * m68k-tdep.c: Likewise.
558 * m68kbsd-tdep.c: Likewise.
559 * m68klinux-nat.c: Likewise.
560 * m68klinux-tdep.c: Likewise.
561 * m88k-tdep.c: Likewise.
562 * machoread.c: Likewise.
563 * macrocmd.c: Likewise.
564 * main.c: Likewise.
565 * mdebugread.c: Likewise.
566 * mem-break.c: Likewise.
567 * memattr.c: Likewise.
568 * memory-map.c: Likewise.
569 * mep-tdep.c: Likewise.
570 * mi/mi-cmd-break.c: Likewise.
571 * mi/mi-cmd-disas.c: Likewise.
572 * mi/mi-cmd-env.c: Likewise.
573 * mi/mi-cmd-stack.c: Likewise.
574 * mi/mi-cmd-var.c: Likewise.
575 * mi/mi-cmds.c: Likewise.
576 * mi/mi-console.c: Likewise.
577 * mi/mi-getopt.c: Likewise.
578 * mi/mi-interp.c: Likewise.
579 * mi/mi-main.c: Likewise.
580 * mi/mi-parse.c: Likewise.
581 * microblaze-rom.c: Likewise.
582 * microblaze-tdep.c: Likewise.
583 * mingw-hdep.c: Likewise.
584 * minidebug.c: Likewise.
585 * minsyms.c: Likewise.
586 * mips-irix-tdep.c: Likewise.
587 * mips-linux-tdep.c: Likewise.
588 * mips-tdep.c: Likewise.
589 * mips64obsd-tdep.c: Likewise.
590 * mipsnbsd-tdep.c: Likewise.
591 * mipsread.c: Likewise.
592 * mn10300-linux-tdep.c: Likewise.
593 * mn10300-tdep.c: Likewise.
594 * monitor.c: Likewise.
595 * moxie-tdep.c: Likewise.
596 * mt-tdep.c: Likewise.
597 * nat/linux-btrace.c: Likewise.
598 * nat/linux-osdata.c: Likewise.
599 * nat/linux-procfs.c: Likewise.
600 * nat/linux-ptrace.c: Likewise.
601 * nat/linux-waitpid.c: Likewise.
602 * nbsd-tdep.c: Likewise.
603 * nios2-linux-tdep.c: Likewise.
604 * nto-procfs.c: Likewise.
605 * nto-tdep.c: Likewise.
606 * objc-lang.c: Likewise.
607 * objfiles.c: Likewise.
608 * opencl-lang.c: Likewise.
609 * osabi.c: Likewise.
610 * osdata.c: Likewise.
611 * p-exp.y: Likewise.
612 * p-lang.c: Likewise.
613 * p-typeprint.c: Likewise.
614 * parse.c: Likewise.
615 * posix-hdep.c: Likewise.
616 * ppc-linux-nat.c: Likewise.
617 * ppc-sysv-tdep.c: Likewise.
618 * ppcfbsd-tdep.c: Likewise.
619 * ppcnbsd-tdep.c: Likewise.
620 * ppcobsd-tdep.c: Likewise.
621 * printcmd.c: Likewise.
622 * procfs.c: Likewise.
623 * prologue-value.c: Likewise.
624 * python/py-auto-load.c: Likewise.
625 * python/py-gdb-readline.c: Likewise.
626 * ravenscar-thread.c: Likewise.
627 * regcache.c: Likewise.
628 * registry.c: Likewise.
629 * remote-fileio.c: Likewise.
630 * remote-m32r-sdi.c: Likewise.
631 * remote-mips.c: Likewise.
632 * remote-notif.c: Likewise.
633 * remote-sim.c: Likewise.
634 * remote.c: Likewise.
635 * reverse.c: Likewise.
636 * rs6000-aix-tdep.c: Likewise.
637 * ser-base.c: Likewise.
638 * ser-go32.c: Likewise.
639 * ser-mingw.c: Likewise.
640 * ser-pipe.c: Likewise.
641 * ser-tcp.c: Likewise.
642 * ser-unix.c: Likewise.
643 * serial.c: Likewise.
644 * sh-tdep.c: Likewise.
645 * sh64-tdep.c: Likewise.
646 * shnbsd-tdep.c: Likewise.
647 * skip.c: Likewise.
648 * sol-thread.c: Likewise.
649 * solib-dsbt.c: Likewise.
650 * solib-frv.c: Likewise.
651 * solib-osf.c: Likewise.
652 * solib-som.c: Likewise.
653 * solib-spu.c: Likewise.
654 * solib-target.c: Likewise.
655 * solib.c: Likewise.
656 * somread.c: Likewise.
657 * source.c: Likewise.
658 * sparc-nat.c: Likewise.
659 * sparc-sol2-tdep.c: Likewise.
660 * sparc-tdep.c: Likewise.
661 * sparc64-tdep.c: Likewise.
662 * sparc64fbsd-tdep.c: Likewise.
663 * sparc64nbsd-tdep.c: Likewise.
664 * sparcnbsd-tdep.c: Likewise.
665 * spu-linux-nat.c: Likewise.
666 * spu-multiarch.c: Likewise.
667 * spu-tdep.c: Likewise.
668 * stabsread.c: Likewise.
669 * stack.c: Likewise.
670 * std-regs.c: Likewise.
671 * symfile.c: Likewise.
672 * symmisc.c: Likewise.
673 * symtab.c: Likewise.
674 * target.c: Likewise.
675 * thread.c: Likewise.
676 * tilegx-linux-nat.c: Likewise.
677 * tilegx-tdep.c: Likewise.
678 * top.c: Likewise.
679 * tracepoint.c: Likewise.
680 * tui/tui-command.c: Likewise.
681 * tui/tui-data.c: Likewise.
682 * tui/tui-disasm.c: Likewise.
683 * tui/tui-file.c: Likewise.
684 * tui/tui-layout.c: Likewise.
685 * tui/tui-out.c: Likewise.
686 * tui/tui-regs.c: Likewise.
687 * tui/tui-source.c: Likewise.
688 * tui/tui-stack.c: Likewise.
689 * tui/tui-win.c: Likewise.
690 * tui/tui-windata.c: Likewise.
691 * tui/tui-winsource.c: Likewise.
692 * typeprint.c: Likewise.
693 * ui-file.c: Likewise.
694 * ui-out.c: Likewise.
695 * user-regs.c: Likewise.
696 * utils.c: Likewise.
697 * v850-tdep.c: Likewise.
698 * valarith.c: Likewise.
699 * valops.c: Likewise.
700 * valprint.c: Likewise.
701 * value.c: Likewise.
702 * varobj.c: Likewise.
703 * vax-tdep.c: Likewise.
704 * vaxnbsd-tdep.c: Likewise.
705 * vaxobsd-tdep.c: Likewise.
706 * windows-nat.c: Likewise.
707 * xcoffread.c: Likewise.
708 * xml-support.c: Likewise.
709 * xstormy16-tdep.c: Likewise.
710 * xtensa-linux-nat.c: Likewise.
711
dccbb609
GB
7122014-08-07 Gary Benson <gbenson@redhat.com>
713
714 * common/common-defs.h: Include gdb_assert.h.
715 * aarch64-tdep.c: Do not include gdb_assert.h.
716 * addrmap.c: Likewise.
717 * aix-thread.c: Likewise.
718 * alpha-linux-tdep.c: Likewise.
719 * alpha-mdebug-tdep.c: Likewise.
720 * alphanbsd-tdep.c: Likewise.
721 * amd64-nat.c: Likewise.
722 * amd64-tdep.c: Likewise.
723 * amd64bsd-nat.c: Likewise.
724 * amd64fbsd-nat.c: Likewise.
725 * amd64fbsd-tdep.c: Likewise.
726 * amd64nbsd-nat.c: Likewise.
727 * amd64nbsd-tdep.c: Likewise.
728 * amd64obsd-nat.c: Likewise.
729 * amd64obsd-tdep.c: Likewise.
730 * arch-utils.c: Likewise.
731 * arm-tdep.c: Likewise.
732 * armbsd-tdep.c: Likewise.
733 * auxv.c: Likewise.
734 * bcache.c: Likewise.
735 * bfin-tdep.c: Likewise.
736 * blockframe.c: Likewise.
737 * breakpoint.c: Likewise.
738 * bsd-kvm.c: Likewise.
739 * bsd-uthread.c: Likewise.
740 * buildsym.c: Likewise.
741 * c-exp.y: Likewise.
742 * c-lang.c: Likewise.
743 * charset.c: Likewise.
744 * cleanups.c: Likewise.
745 * cli-out.c: Likewise.
746 * cli/cli-decode.c: Likewise.
747 * cli/cli-dump.c: Likewise.
748 * cli/cli-logging.c: Likewise.
749 * cli/cli-script.c: Likewise.
750 * cli/cli-utils.c: Likewise.
751 * coffread.c: Likewise.
752 * common/common-utils.c: Likewise.
753 * common/queue.h: Likewise.
754 * common/signals.c: Likewise.
755 * common/vec.h: Likewise.
756 * complaints.c: Likewise.
757 * completer.c: Likewise.
758 * corelow.c: Likewise.
759 * cp-abi.c: Likewise.
760 * cp-name-parser.y: Likewise.
761 * cp-namespace.c: Likewise.
762 * cp-support.c: Likewise.
763 * cris-tdep.c: Likewise.
764 * dbxread.c: Likewise.
765 * dictionary.c: Likewise.
766 * doublest.c: Likewise.
767 * dsrec.c: Likewise.
768 * dummy-frame.c: Likewise.
769 * dwarf2-frame-tailcall.c: Likewise.
770 * dwarf2-frame.c: Likewise.
771 * dwarf2expr.c: Likewise.
772 * dwarf2loc.c: Likewise.
773 * dwarf2read.c: Likewise.
774 * eval.c: Likewise.
775 * event-loop.c: Likewise.
776 * exceptions.c: Likewise.
777 * expprint.c: Likewise.
778 * f-valprint.c: Likewise.
779 * fbsd-nat.c: Likewise.
780 * findvar.c: Likewise.
781 * frame-unwind.c: Likewise.
782 * frame.c: Likewise.
783 * frv-tdep.c: Likewise.
784 * gcore.c: Likewise.
785 * gdb-dlfcn.c: Likewise.
786 * gdb_bfd.c: Likewise.
787 * gdbarch.c: Likewise.
788 * gdbarch.sh: Likewise.
789 * gdbtypes.c: Likewise.
790 * gnu-nat.c: Likewise.
791 * gnu-v3-abi.c: Likewise.
792 * go-lang.c: Likewise.
793 * guile/scm-exception.c: Likewise.
794 * guile/scm-gsmob.c: Likewise.
795 * guile/scm-lazy-string.c: Likewise.
796 * guile/scm-math.c: Likewise.
797 * guile/scm-pretty-print.c: Likewise.
798 * guile/scm-safe-call.c: Likewise.
799 * guile/scm-utils.c: Likewise.
800 * guile/scm-value.c: Likewise.
801 * h8300-tdep.c: Likewise.
802 * hppa-hpux-nat.c: Likewise.
803 * hppa-tdep.c: Likewise.
804 * hppanbsd-tdep.c: Likewise.
805 * hppaobsd-tdep.c: Likewise.
806 * i386-darwin-nat.c: Likewise.
807 * i386-darwin-tdep.c: Likewise.
808 * i386-nto-tdep.c: Likewise.
809 * i386-tdep.c: Likewise.
810 * i386bsd-nat.c: Likewise.
811 * i386fbsd-tdep.c: Likewise.
812 * i386gnu-nat.c: Likewise.
813 * i386nbsd-tdep.c: Likewise.
814 * i386obsd-tdep.c: Likewise.
815 * i387-tdep.c: Likewise.
816 * ia64-libunwind-tdep.c: Likewise.
817 * ia64-tdep.c: Likewise.
818 * inf-ptrace.c: Likewise.
819 * inf-ttrace.c: Likewise.
820 * infcall.c: Likewise.
821 * infcmd.c: Likewise.
822 * infrun.c: Likewise.
823 * inline-frame.c: Likewise.
824 * interps.c: Likewise.
825 * jv-lang.c: Likewise.
826 * jv-typeprint.c: Likewise.
827 * linux-fork.c: Likewise.
828 * linux-nat.c: Likewise.
829 * linux-thread-db.c: Likewise.
830 * m32c-tdep.c: Likewise.
831 * m32r-linux-nat.c: Likewise.
832 * m32r-tdep.c: Likewise.
833 * m68k-tdep.c: Likewise.
834 * m68kbsd-nat.c: Likewise.
835 * m68kbsd-tdep.c: Likewise.
836 * m88k-tdep.c: Likewise.
837 * machoread.c: Likewise.
838 * macroexp.c: Likewise.
839 * macrotab.c: Likewise.
840 * maint.c: Likewise.
841 * mdebugread.c: Likewise.
842 * memory-map.c: Likewise.
843 * mep-tdep.c: Likewise.
844 * mi/mi-common.c: Likewise.
845 * microblaze-tdep.c: Likewise.
846 * mingw-hdep.c: Likewise.
847 * mips-linux-nat.c: Likewise.
848 * mips-linux-tdep.c: Likewise.
849 * mips-tdep.c: Likewise.
850 * mips64obsd-tdep.c: Likewise.
851 * mipsnbsd-tdep.c: Likewise.
852 * mn10300-linux-tdep.c: Likewise.
853 * mn10300-tdep.c: Likewise.
854 * moxie-tdep.c: Likewise.
855 * mt-tdep.c: Likewise.
856 * nat/linux-btrace.c: Likewise.
857 * nat/linux-osdata.c: Likewise.
858 * nat/linux-ptrace.c: Likewise.
859 * nat/mips-linux-watch.c: Likewise.
860 * nios2-linux-tdep.c: Likewise.
861 * nios2-tdep.c: Likewise.
862 * objc-lang.c: Likewise.
863 * objfiles.c: Likewise.
864 * obsd-nat.c: Likewise.
865 * opencl-lang.c: Likewise.
866 * osabi.c: Likewise.
867 * parse.c: Likewise.
868 * ppc-linux-nat.c: Likewise.
869 * ppc-sysv-tdep.c: Likewise.
870 * ppcfbsd-nat.c: Likewise.
871 * ppcfbsd-tdep.c: Likewise.
872 * ppcnbsd-nat.c: Likewise.
873 * ppcnbsd-tdep.c: Likewise.
874 * ppcobsd-nat.c: Likewise.
875 * ppcobsd-tdep.c: Likewise.
876 * printcmd.c: Likewise.
877 * procfs.c: Likewise.
878 * prologue-value.c: Likewise.
879 * psymtab.c: Likewise.
880 * python/py-lazy-string.c: Likewise.
881 * python/py-value.c: Likewise.
882 * regcache.c: Likewise.
883 * reggroups.c: Likewise.
884 * registry.c: Likewise.
885 * remote-sim.c: Likewise.
886 * remote.c: Likewise.
887 * rs6000-aix-tdep.c: Likewise.
888 * rs6000-tdep.c: Likewise.
889 * s390-linux-tdep.c: Likewise.
890 * score-tdep.c: Likewise.
891 * ser-base.c: Likewise.
892 * ser-mingw.c: Likewise.
893 * sh-tdep.c: Likewise.
894 * sh64-tdep.c: Likewise.
895 * solib-darwin.c: Likewise.
896 * solib-spu.c: Likewise.
897 * solib-svr4.c: Likewise.
898 * source.c: Likewise.
899 * sparc-nat.c: Likewise.
900 * sparc-sol2-tdep.c: Likewise.
901 * sparc-tdep.c: Likewise.
902 * sparc64-sol2-tdep.c: Likewise.
903 * sparc64-tdep.c: Likewise.
904 * sparc64fbsd-tdep.c: Likewise.
905 * sparc64nbsd-tdep.c: Likewise.
906 * sparc64obsd-tdep.c: Likewise.
907 * sparcnbsd-tdep.c: Likewise.
908 * sparcobsd-tdep.c: Likewise.
909 * spu-multiarch.c: Likewise.
910 * spu-tdep.c: Likewise.
911 * stabsread.c: Likewise.
912 * stack.c: Likewise.
913 * symfile.c: Likewise.
914 * symtab.c: Likewise.
915 * target-descriptions.c: Likewise.
916 * target-memory.c: Likewise.
917 * target.c: Likewise.
918 * tic6x-linux-tdep.c: Likewise.
919 * tic6x-tdep.c: Likewise.
920 * tilegx-linux-nat.c: Likewise.
921 * tilegx-tdep.c: Likewise.
922 * top.c: Likewise.
923 * tramp-frame.c: Likewise.
924 * tui/tui-out.c: Likewise.
925 * tui/tui-winsource.c: Likewise.
926 * ui-out.c: Likewise.
927 * user-regs.c: Likewise.
928 * utils.c: Likewise.
929 * v850-tdep.c: Likewise.
930 * valops.c: Likewise.
931 * value.c: Likewise.
932 * varobj.c: Likewise.
933 * vax-nat.c: Likewise.
934 * xml-syscall.c: Likewise.
935 * xml-tdesc.c: Likewise.
936 * xstormy16-tdep.c: Likewise.
937 * xtensa-linux-nat.c: Likewise.
938 * xtensa-tdep.c: Likewise.
939
e76df0d0
GB
9402014-08-07 Gary Benson <gbenson@redhat.com>
941
942 * common/common-defs.h: Include common-utils.h.
943 * defs.h: Do not include common-utils.h.
944 * common/gdb_assert.h: Likewise.
945 * darwin-nat.h: Likewise.
946 * nat/linux-btrace.c: Likewise.
947 * target/waitstatus.h: Likewise.
948
4cb9c816
GB
9492014-08-07 Gary Benson <gbenson@redhat.com>
950
951 * common/common-defs.h: Include ptid.h.
952 * defs.h: Do not include ptid.h.
953 * inferior.h: Likewise.
954 * infrun.h: Likewise.
955 * nat/linux-btrace.h: Likewise.
956 * nat/linux-osdata.h: Likewise.
957 * target/waitstatus.h: Likewise.
958
3995eeee
GB
9592014-08-07 Gary Benson <gbenson@redhat.com>
960
961 * common/common-defs.h: Include gdb_locale.h.
962 * defs.h: Do not include gdb_locale.h.
963
cb9f1a9b
GB
9642014-08-07 Gary Benson <gbenson@redhat.com>
965
966 * common/common-defs.h: Include gdb/signals.h.
967 * defs.h: Do not include gdb/signals.h.
968
a5fceff8
GB
9692014-08-07 Gary Benson <gbenson@redhat.com>
970
971 * common/common-defs.h: Include pathmax.h.
972 * defs.h: Do not include pathmax.h.
973
b9391142
GB
9742014-08-07 Gary Benson <gbenson@redhat.com>
975
976 * common/common-defs.h: Include libiberty.h.
977 * defs.h: Do not include libiberty.h.
978 * common/queue.h: Likewise.
979 * cp-name-parser.y: Likewise.
980 * mi/mi-cmd-catch.c: Likewise.
981 * python/python.c: Likewise.
982
0e443c87
GB
9832014-08-07 Gary Benson <gbenson@redhat.com>
984
985 * common/common-defs.h: Include ansidecl.h.
986 * defs.h: Do not include ansidecl.h.
987 * common/buffer.h: Likewise.
988 * common/common-utils.h: Likewise.
989
8ebb3f56
GB
9902014-08-07 Gary Benson <gbenson@redhat.com>
991
992 * common/common-defs.h: Include stddef.h.
993 * defs.h: Do not include stddef.h.
994 * common/common-utils.h: Likewise.
995 * amd64fbsd-nat.c: Likewise.
996 * bcache.c: Likewise.
997 * charset.c: Likewise.
998 * common/buffer.h: Likewise.
999 * common/vec.h: Likewise.
1000 * i386bsd-nat.c: Likewise.
1001 * nat/linux-btrace.h: Likewise.
1002 * ppcfbsd-nat.c: Likewise.
1003 * ppcnbsd-tdep.h: Likewise.
1004 * ppcobsd-nat.c: Likewise.
1005 * ppcobsd-tdep.h: Likewise.
1006 * python/py-gdb-readline.c: Likewise.
1007
8980bdf6
GB
10082014-08-07 Gary Benson <gbenson@redhat.com>
1009
1010 * common/common-defs.h: Include stdarg.h.
1011 * defs.h: Do not include stdarg.h.
1012 * ada-lang.c: Likewise.
1013 * common/common-utils.h: Likewise.
1014 * guile/scm-string.c: Likewise.
1015 * guile/scm-utils.c: Likewise.
1016 * m32c-tdep.c: Likewise.
1017
d7096f71
GB
10182014-08-07 Gary Benson <gbenson@redhat.com>
1019
1020 * common/common-defs.h: Include stdlib.h.
1021 * defs.h: Do not include stdlib.h.
1022 * addrmap.c: Likewise.
1023 * bcache.c: Likewise.
1024 * common/buffer.c: Likewise.
1025 * common/common-utils.c: Likewise.
1026 * cp-name-parser.y: Likewise.
1027 * go32-nat.c: Likewise.
1028 * mn10300-linux-tdep.c: Likewise.
1029 * nat/linux-osdata.c: Likewise.
1030 * tui/tui.c: Likewise.
1031 * windows-nat.c: Likewise.
1032
d02f550d
GB
10332014-08-07 Gary Benson <gbenson@redhat.com>
1034
1035 * common/common-defs.h: Include stdio.h.
1036 * defs.h: Do not include stdio.h.
1037 * ada-lang.c: Likewise.
1038 * common/buffer.c: Likewise.
1039 * common/common-utils.c: Likewise.
1040 * cp-name-parser.y: Likewise.
1041 * gnu-nat.c: Likewise.
1042 * go32-nat.c: Likewise.
1043 * i386gnu-nat.c: Likewise.
1044 * proc-api.c: Likewise.
1045 * proc-events.c: Likewise.
1046 * proc-flags.c: Likewise.
1047 * proc-why.c: Likewise.
1048 * python/python-internal.h: Likewise.
1049 * target-memory.c: Likewise.
1050 * tui/tui-io.c: Likewise.
1051 * tui/tui.c: Likewise.
1052
b6d7a4bf
SM
10532014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1054
1055 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1056 (scan_dyntag_auxv): Same.
1057
af19829b
YQ
10582014-08-06 Yao Qi <yao@codesourcery.com>
1059
1060 * amd64-linux-nat.c: Remove duplicated include
1061 "x86-linux-nat.h".
1062 * i386-linux-nat.c: Likewise.
1063
8e07a239
YQ
10642014-08-06 Yao Qi <yao@codesourcery.com>
1065
1066 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1067 operand" with "Special opcode" in comments.
1068
7bfe8241
GB
10692014-08-05 Gary Benson <gbenson@redhat.com>
1070
1071 * interps.c (initialize_interps): Remove prototype.
1072 (interpreter_initialized): Remove static global.
1073 (interp_add): Do not call initialize_interps.
1074 (initialize_interps): Remove function.
1075
d6c95504
GB
10762014-08-05 Gary Benson <gbenson@redhat.com>
1077
1078 * utils.c (vwarning): Remove spurious va_end.
1079
241fd515
AM
10802014-08-05 Alan Modra <amodra@gmail.com>
1081
1082 * charset.c (convert_between_encodings): Cast result of obstack_base.
1083 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1084 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1085 (read_unwind_info): Use size_t for some locals.
1086 * jit.c (finalize_symtab): Likewise.
1087 * utils.c (hashtab_obstack_allocate): Likewise.
1088 * symmisc.c (print_objfile_statistics): Update format strings.
1089
dc304a94
JK
10902014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1091
1092 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1093 (Changes in GDB 7.8): ... here.
1094
3cecbbbe
TT
10952014-08-04 Tom Tromey <tromey@redhat.com>
1096
1097 * target.c (set_targetdebug): New function.
1098 (initialize_targets): Pass set_targetdebug when creating "set
1099 debug target".
1100
6908c509
JB
11012014-08-01 Joel Brobecker <brobecker@adacore.com>
1102
1103 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1104 if detecting a variable-sized field that is not the last field.
1105 Fix struct type length computation.
1106
53e8f97d
JB
11072014-08-01 Joel Brobecker <brobecker@adacore.com>
1108
1109 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1110 Add debug trace.
1111
e068c55d
JB
11122014-08-01 Joel Brobecker <brobecker@adacore.com>
1113
1114 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1115 Remove "+ 8" offset in computation of CHAIN_VMA.
1116
4d4ca2a1
DE
11172014-07-31 Doug Evans <dje@google.com>
1118
1119 * inflow.c (child_terminal_inferior): Add comment.
1120 (child_terminal_ours_for_output): Add comment.
1121 (child_terminal_ours): Add comment.
1122 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1123 (linux_nat_terminal_ours): Add comment.
1124
462f517e
GB
11252014-07-31 Gary Benson <gbenson@redhat.com>
1126
1127 * common/btrace-common.h: Do not include defs.h or server.h.
1128 * nat/mips-linux-watch.h: Likewise.
1129 * gdb-dlfcn.h: Do not include defs.h.
1130 * tracefile.h: Likewise.
1131
74228e77
RM
11322014-07-30 Roland McGrath <mcgrathr@google.com>
1133
1134 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1135
014f9477
TT
11362014-07-30 Tom Tromey <tromey@redhat.com>
1137
1138 * bsd-kvm.c (bsd_kvm_open): Constify.
1139 * corelow.c (core_open): Constify.
1140 * ctf.c (ctf_open): Constify.
1141 * dbug-rom.c (dbug_open): Constify.
1142 * exec.c (exec_open): Constify.
1143 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1144 * microblaze-rom.c (picobug_open): Constify.
1145 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1146 Constify.
1147 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1148 * record-btrace.c (record_btrace_open): Constify.
1149 * record-full.c (record_full_core_open_1, record_full_open_1)
1150 (record_full_open): Constify.
1151 * remote-m32r-sdi.c (m32r_open): Constify.
1152 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1153 (rockhopper_open, lsi_open): Constify.
1154 * remote-sim.c (gdbsim_open): Constify.
1155 * remote.c (remote_open, extended_remote_open, remote_open_1):
1156 Constify.
1157 * target.h (struct target_ops) <to_open>: Make "arg" const.
1158 * tracefile-tfile.c (tfile_open): Constify.
1159
e799154c
TT
11602014-07-30 Tom Tromey <tromey@redhat.com>
1161
1162 * breakpoint.c (map_breakpoint_numbers): Update.
1163 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1164 (get_number_const): New function.
1165 (get_number): Rewrite using get_number_const.
1166 (init_number_or_range): Make "string" const.
1167 (number_is_in_list): Make "list" const.
1168 * cli/cli-utils.h (get_number_const): Declare.
1169 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1170 (init_number_or_range, number_is_in_list): Update.
1171 * printcmd.c (map_display_numbers): Update.
1172 * value.c (value_from_history_ref): Constify.
1173 * value.h (value_from_history_ref): Update.
1174
5f08566b
TT
11752014-07-30 Tom Tromey <tromey@redhat.com>
1176
1177 * corefile.c (hook_type, call_extra_exec_file_hooks)
1178 (specify_exec_file_hook): Constify.
1179 * exec.c (exec_file_attach): Make "filename" const.
1180 * gdbcore.h (deprecated_exec_file_display_hook)
1181 (specify_exec_file_hook, exec_file_attach): Constify.
1182 * main.c (captured_main): Use catch_command_errors_const.
1183
8981c758
TT
11842014-07-30 Tom Tromey <tromey@redhat.com>
1185
1186 * target.c (open_target): New function.
1187 (add_target_with_completer, add_deprecated_target_alias): Use
1188 set_cmd_sfunc, set_cmd_context.
1189 (debug_to_open): Remove.
1190 (setup_target_debug): Update.
1191
a1c7835a
YQ
11922014-07-30 Yao Qi <yao@codesourcery.com>
1193
1194 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1195 comments.
1196 * parse.c (exp_iterate): Update comments.
1197
976411d6
GB
11982014-07-30 Gary Benson <gbenson@redhat.com>
1199
1200 * common/common-defs.h: New file.
1201 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1202 * defs.h: Include common-defs.h.
1203 Do not include config.h or build-gnulib/config.h.
1204
5d4848a4
GB
12052014-07-30 Gary Benson <gbenson@redhat.com>
1206
1207 * common/common-utils.h: Do not include config.h.
1208 * nat/linux-btrace.h: Likewise.
1209
d41f6d8e
GB
12102014-07-30 Gary Benson <gbenson@redhat.com>
1211
1212 * btrace.c: Include defs.h.
1213 * common/ptid.c: Include defs.h or server.h as appropriate.
1214 * nat/mips-linux-watch.c: Likewise.
1215
84202f9c
TT
12162014-07-29 Tom Tromey <tromey@redhat.com>
1217
1218 * target.c (target_is_pushed): Simplify.
1219
2530441c
JB
12202014-07-29 Joel Brobecker <brobecker@adacore.com>
1221
1222 GDB 7.8 released.
1223
7e09a223
YQ
12242014-07-29 Yao Qi <yao@codesourcery.com>
1225
1226 PR gdb/17206
1227 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1228
7ebdbe92
DE
12292014-07-28 Doug Evans <xdje42@gmail.com>
1230
1231 PR guile/17203
1232 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1233 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1234 parameters.
1235
f347ffc9
WN
12362014-07-28 Will Newton <will.newton@linaro.org>
1237
1238 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1239 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1240 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1241 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1242 (THUMB2_EABI_SYSCALL): Likewise.
1243 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1244 struct tramp_frame.
1245 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1246 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1247
37c5f1f7
DE
12482014-07-27 Doug Evans <xdje42@gmail.com>
1249
1250 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1251
0c3abbc7
DE
12522014-07-27 Doug Evans <xdje42@gmail.com>
1253
1254 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1255
e76c5d17
DE
12562014-07-26 Ludovic Courtès <ludo@gnu.org>
1257 Doug Evans <xdje42@gmail.com>
1258
1259 PR guile/17146
1260 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1261 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1262 * configure.ac: Try to use guild to compile an scm file, if it fails
1263 then disable guile support.
1264 * configure: Regenerate.
1265 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1266 GUILE_FILE_LIST.
1267 (GUILE_COMPILED_FILES): New variable.
1268 (GUILE_FILES) Update.
1269 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1270 (stamp-guile): Compile scm files.
1271 * guile/guile.c (boot_guile_support): New function.
1272 (standard_throw_args_p): New function.
1273 (print_standard_throw_error, print_throw_error): New functions.
1274 (handle_boot_error): New function.
1275 (initialize_scheme_side): Rewrite to call boot_guile_support.
1276 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1277 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1278
186fcde0
DE
12792014-07-26 Ludovic Courtès <ludo@gnu.org>
1280 Doug Evans <xdje42@gmail.com>
1281
1282 PR guile/17146
1283 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1284 * guile/lib/gdb/support.scm: New file.
1285 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1286 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1287 All uses updated.
1288 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1289 All uses updated.
1290 (%assert-type): Ditto, and renamed to assert-type.
1291 (%exception-print-style): Delete.
1292
4df42755
DE
12932014-07-26 Doug Evans <xdje42@gmail.com>
1294
1295 PR build/17105
1296 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1297 * configure: Regenerate.
1298 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1299 PYTHON_FILES.
1300 (PYTHON_FILES): New variable.
1301 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1302 (GUILE_FILES): New variable.
1303 (stamp-python, install-python, uninstall-python): Handle empty
1304 file list.
1305 (stamp-guile, install-guile, uninstall-guile): Ditto.
1306
ee7333ae
DE
13072014-07-26 Doug Evans <xdje42@gmail.com>
1308
1309 PR guile/17177
1310 * guile/lib/gdb.scm (pretty-printers): Export.
1311 (set-pretty-printers!): Export.
1312 * guile/lib/gdb/printing.scm (gdb module): Update.
1313 (prepend-pretty-printer!, append-pretty-printer!): Update.
1314 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1315 (pretty_printer_list_var): Delete.
1316 (pretty_printer_list): New static global.
1317 (gdbscm_pretty_printers): New function.
1318 (gdbscm_set_pretty_printers_x): New function.
1319 (ppscm_find_pretty_printer_from_gdb): Update.
1320 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1321 (gdbscm_initialize_pretty_printers): Update.
1322
74edf516
DE
13232014-07-26 Doug Evans <xdje42@gmail.com>
1324
1325 PR 17185
1326 * configure.ac: Add check for header gc/gc.h.
1327 Add check for function setenv.
1328 * configure: Regenerate.
1329 * config.in: Regenerate.
1330 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1331
d54398a7
MR
13322014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1333
1334 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1335 variation in gdbarch matching.
1336
ab16fce8
TT
13372014-07-25 Tom Tromey <tromey@redhat.com>
1338
1339 * exec.c (using_exec_ops): Remove.
1340 (exec_close_1): Update. Remove extraneous block, reindent.
1341 (add_target_sections): Use target_is_pushed.
1342
88056fbb
PA
13432014-07-25 Pedro Alves <palves@redhat.com>
1344
1345 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1346 * monitor.c (monitor_create_inferior): Likewise.
1347 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1348 * remote-sim.c (gdbsim_create_inferior): Likewise.
1349 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1350 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1351 * windows-nat.c (do_initial_windows_stuff): Likewise.
1352
70509625
PA
13532014-07-25 Pedro Alves <palves@redhat.com>
1354
1355 * NEWS: Mention signal passing and "signal" command changes.
1356 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1357 comment.
1358 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1359 call.
1360 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1361 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1362 (jump_command): Adjust clear_proceed_status call.
1363 (signal_command): Warn if other thread that are resumed have
1364 signals that will be delivered. Adjust clear_proceed_status call.
1365 (until_next_command, finish_command)
1366 (proceed_after_attach_callback, attach_command_post_wait)
1367 (attach_command): Adjust clear_proceed_status call.
1368 * infrun.c (proceed_after_vfork_done): Likewise.
1369 (proceed_after_attach_callback): Adjust comment.
1370 (clear_proceed_status_thread): Clear stop_signal if not in pass
1371 state.
1372 (clear_proceed_status_callback): Delete.
1373 (clear_proceed_status): New 'step' parameter. Only clear the
1374 proceed status of threads the command being prepared is about to
1375 resume.
1376 (proceed): If passed in an explicit signal, override stop_signal
1377 with it. Don't pass the last stop signal to the thread we're
1378 resuming.
1379 (init_wait_for_inferior): Adjust clear_proceed_status call.
1380 (switch_back_to_stepped_thread): Clear the signal if it should not
1381 be passed.
1382 * infrun.h (clear_proceed_status): New 'step' parameter.
1383 (user_visible_resume_ptid): Add comment.
1384 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1385 signal is in pass state.
1386 * remote.c (append_pending_thread_resumptions): Likewise.
1387 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1388
d8be2939
TT
13892014-07-25 Tom Tromey <tromey@redhat.com>
1390
1391 * target.h (target_stopped_data_address)
1392 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1393 parentheses.
1394
7d0d9d2b
PL
13952014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1396
1397 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1398 comments.
1399 (avr_pointer_to_address): Likewise.
1400
e9e7f724
TT
14012014-07-24 Tom Tromey <tromey@redhat.com>
1402
1403 * monitor.c (compile_pattern): Update.
1404 * target.h (struct target_ops) <to_shortname, to_longname,
1405 to_doc>: Now const.
1406
1947513d
TT
14072014-07-24 Tom Tromey <tromey@redhat.com>
1408
1409 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1410 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1411 (add_info_alias, add_com): Make "doc" const.
1412 (print_doc_line): Make "str" const.
1413 (delete_cmd): Update.
1414 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1415 (print_doc_line): Update.
1416 * cli/cli-script.c (document_command): Update.
1417 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1418 (add_com, add_info, add_info_alias): Update.
1419 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1420 * python/py-cmd.c (cmdpy_destroyer): Update.
1421
64e61d29
TT
14222014-07-24 Tom Tromey <tromey@redhat.com>
1423
1424 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1425 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1426 (help_cmd_list): Constify.
1427 (lookup_cmd): Update.
1428 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1429 const.
1430 (help_cmd_list, apropos_cmd): Update.
1431 * cli/cli-script.c (show_user): Update.
1432 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1433 * cli/cli-setshow.h (cmd_show_list): Update.
1434 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1435 (cmd_show_list): Update.
1436 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1437 * python/py-cmd.c (cmdpy_destroyer): Update.
1438
429e55ea
TT
14392014-07-24 Tom Tromey <tromey@redhat.com>
1440
1441 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1442 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1443 const.
1444 * command.h (deprecate_cmd): Update.
1445 * maint.c (maintenance_do_deprecate): Add casts.
1446
64669f3b
TT
14472014-07-24 Tom Tromey <tromey@redhat.com>
1448
1449 * cli/cli-decode.c (help_cmd): Make parameter "const".
1450 * cli/cli-decode.h (help_cmd): Update.
1451
d3d3328b
TT
14522014-07-24 Tom Tromey <tromey@redhat.com>
1453
1454 * stack.c (up_silently_base, down_silently_base): Make argument
1455 const.
1456
414842dc
TT
14572014-07-24 Tom Tromey <tromey@redhat.com>
1458
1459 * solib.c (solib_add): Make "pattern" const.
1460 * solib.h (solib_add): Update.
1461
baa336ce
TT
14622014-07-24 Tom Tromey <tromey@redhat.com>
1463
1464 * remote.c (remote_serial_open, print_packet, putpkt)
1465 (putpkt_binary): Constify.
1466 * remote.h (putpkt): Update.
1467
5a19e2d0
TT
14682014-07-24 Tom Tromey <tromey@redhat.com>
1469
1470 * monitor.c (monitor_open): Make "args" const.
1471 * monitor.h (monitor_open): Update.
1472
fc4baa5e
TT
14732014-07-24 Tom Tromey <tromey@redhat.com>
1474
1475 * maint.c (match_bfd_flags): Make "string" const.
1476 (print_bfd_section_info): Remove casts.
1477 (print_objfile_section_info): Make "string" const.
1478
0d5f0dbe
TT
14792014-07-24 Tom Tromey <tromey@redhat.com>
1480
1481 * inf-child.c (inf_child_open_target): Make "arg" const.
1482 * inf-child.h (inf_child_open_target): Update.
1483
41c77899
TT
14842014-07-24 Tom Tromey <tromey@redhat.com>
1485
1486 * environ.c (unset_in_environ): Make "var" const.
1487 * environ.h (unset_in_environ): Update.
1488
93db0d79
TT
14892014-07-24 Tom Tromey <tromey@redhat.com>
1490
1491 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1492 Make "cmd" const.
1493 (scan_filename_with_cleanup): Likewise.
1494 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1495 Make arguments const.
1496 (restore_command): Update.
1497
36d6eb95
PA
14982014-07-24 Pedro Alves <palves@redhat.com>
1499
1500 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1501
8009206a
TT
15022014-07-24 Tom Tromey <tromey@redhat.com>
1503 Gary Benson <gbenson@redhat.com>
1504
1505 * nat/linux-ptrace.c (additional_flags): New global.
1506 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1507 additional_flags; don't check GDBSERVER.
1508 (linux_ptrace_set_additional_flags): New function.
1509 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1510 Declare.
1511 * linux-nat.c (_initialize_linux_nat): Call
1512 linux_ptrace_set_additional_flags.
1513
a7068b60
TT
15142014-07-24 Tom Tromey <tromey@redhat.com>
1515
1516 * make-target-delegates (munge_type, write_debugmethod): New
1517 functions.
1518 (debug_names): New global.
1519 ($TARGET_DEBUG_PRINTER): New global.
1520 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1521 name.
1522 Write debug methods. Generate init_debug_target.
1523 * target-debug.h: New file.
1524 * target-delegates.c: Rebuild.
1525 * target.c: Include target-debug.h.
1526 (debug_target): Hoist definition.
1527 (target_kill, target_get_section_table, target_memory_map)
1528 (target_flash_erase, target_flash_done, target_detach)
1529 (target_disconnect, target_wait, target_resume)
1530 (target_pass_signals, target_program_signals, target_follow_fork)
1531 (target_mourn_inferior, target_search_memory)
1532 (target_thread_address_space, target_close)
1533 (target_find_new_threads, target_core_of_thread)
1534 (target_verify_memory, target_insert_mask_watchpoint)
1535 (target_remove_mask_watchpoint): Remove targetdebug code.
1536 (debug_to_post_attach, debug_to_prepare_to_store)
1537 (debug_to_files_info, debug_to_insert_breakpoint)
1538 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1539 (debug_to_region_ok_for_hw_watchpoint)
1540 (debug_to_can_accel_watchpoint_condition)
1541 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1542 (debug_to_watchpoint_addr_within_range)
1543 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1544 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1545 (debug_to_terminal_init, debug_to_terminal_inferior)
1546 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1547 (debug_to_terminal_save_ours, debug_to_terminal_info)
1548 (debug_to_load, debug_to_post_startup_inferior)
1549 (debug_to_insert_fork_catchpoint)
1550 (debug_to_remove_fork_catchpoint)
1551 (debug_to_insert_vfork_catchpoint)
1552 (debug_to_remove_vfork_catchpoint)
1553 (debug_to_insert_exec_catchpoint)
1554 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1555 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1556 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1557 (setup_target_debug): Call init_debug_target.
1558 * target.h (TARGET_DEBUG_PRINTER): New macro.
1559 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1560 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1561
2c51604d
GB
15622014-07-24 Gary Benson <gbenson@redhat.com>
1563
1564 * exceptions.h (throw_vfatal): Renamed to...
1565 (throw_vquit): New declaration.
1566 (throw_quit): Likewise.
1567 * exceptions.c (throw_vfatal): Renamed to...
1568 (throw_vquit): New function.
1569 (throw_quit): Likewise.
1570 (throw_error): Call throw_verror rather than throw_it.
1571 * utils.h (vfatal): Removed.
1572 (fatal): Likewise.
1573 * utils.c (vfatal): Removed.
1574 (fatal): Likewise.
1575 (internal_verror): Replaced call to fatal with call to throw_quit.
1576 (quit): Replaced calls to fatal with calls to throw_quit.
1577
34211963
ME
15782014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1579
1580 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1581 target_read_code.
1582
a52b4d3e
ME
15832014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1584
1585 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1586 less than zero in conditional expression.
1587
a8bdc56b
TT
15882014-07-23 Tom Tromey <tromey@redhat.com>
1589
1590 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1591 ($INTRO_PART): Don't match whitespace.
1592 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1593 argument matching.
1594 ($METHOD): Add $METHOD_TRAILER.
1595 (trim): Rewrite.
1596 (scan_target_h): New sub.
1597 Change main loop not to collect state.
1598 * target-delegates.c: Rebuild.
1599
91b52240
GB
16002014-07-23 Gary Benson <gbenson@redhat.com>
1601
1602 * cp-support.c (gdb_demangle): Fix build on systems without
1603 sigaltstack.
1604
45326f6f
JK
16052014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1606
1607 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1608 for reference entry value target data value.
1609
e214cf6c
JK
16102014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1611
1612 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1613 value_available_contents_eq.
1614
bddbbedd
PA
16152014-07-22 Pedro Alves <palves@redhat.com>
1616
1617 * value.c (allocate_optimized_out_value): Don't mark value as
1618 non-lazy.
1619
45c71484
JW
16202014-07-22 Jiong Wang <jiong.wang@arm.com>
1621
1622 * MAINTAINERS (Write After Approval): Update my email address.
1623
9597b22a
DE
16242014-07-20 Doug Evans <dje@google.com>
1625
1626 PR server/17147
1627 * remote.c (putpkt_binary): Add text to error message.
1628
91101fe5
YQ
16292014-07-20 Yao Qi <yao@codesourcery.com>
1630
1631 * eval.c: Remove "Chill" from comments.
1632 * gdbtypes.h: Likewise.
1633 * symtab.h: Likewise.
1634
c9402c95
YQ
16352014-07-20 Yao Qi <yao@codesourcery.com>
1636
1637 * std-operator.def: Update comments to TERNOP_SLICE.
1638
ae8fddda
YQ
16392014-07-20 Yao Qi <yao@codesourcery.com>
1640
1641 * std-operator.def: Remove BINOP_RANGE.
1642 * breakpoint.c (watchpoint_exp_is_const): Update.
1643 * expprint.c (dump_subexp_body_standard): Likewise.
1644 * eval.c (init_array_element): Remove dead code.
1645 (evaluate_subexp_standard): Likewise.
1646
9c816640
YQ
16472014-07-20 Yao Qi <yao@codesourcery.com>
1648
1649 * std-operator.def: Remove BINOP_IN.
1650 * breakpoint.c (watchpoint_exp_is_const): Update.
1651 * eval.c (evaluate_subexp_standard): Likewise.
1652 * expprint.c (dump_subexp_body_standard): Likewise.
1653
164224e9
ME
16542014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1655
1656 * microblaze-tdep.c (microblaze_register_names): Add
1657 the rshr and rslr register names.
1658 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1659 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1660 Use of tdesc_numbered_register. Use of
1661 microblaze_register_g_packet_guesses. Use of
1662 tdesc_use_registers. Use of set_gdbarch_register_type.
1663 (microblaze_register_g_packet_guesses): New.
1664 * microblaze-tdep.h (microblaze_reg_num): Add
1665 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1666 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1667 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1668 * features/microblaze-core.xml: New file.
1669 * features/microblaze-stack-protect.xml: New file.
1670 * features/microblaze-with-stack-protect.c: New file.
1671 * features/microblaze-with-stack-protect.xml: New file.
1672 * features/microblaze.xml: New file.
1673 * features/microblaze.c: New file.
1674 * features/Makefile (microblaze-with-stack-protect): Add
1675 microblaze-with-stack-protect microblaze and microblaze-expedite.
1676 * regformats/microblaze-with-stack-protect.dat: New file.
1677 * regformats/microblaze.dat: New file.
1678 * doc/gdb.texinfo (MicroBlaze Features): Added.
1679
e8b2341c
TT
16802014-07-18 Tom Tromey <tromey@redhat.com>
1681
1682 * exec.c (exec_ops): Now static.
1683 * exec.h (exec_ops): Don't declare.
1684
44e89118
TT
16852014-07-18 Tom Tromey <tromey@redhat.com>
1686
1687 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1688 to find_target_beneath.
1689 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1690 find_target_beneath.
1691 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1692
b0ed115f
TT
16932014-07-18 Tom Tromey <tromey@redhat.com>
1694
1695 PR gdb/17130:
1696 * utils.c (quit): Use target_supports_terminal_ours.
1697 * target.h (target_supports_terminal_ours): Declare.
1698 * target.c (target_supports_delete_record): Don't check
1699 to_delete_record against NULL.
1700 (target_supports_terminal_ours): New function.
1701
e75fdfca
TT
17022014-07-18 Tom Tromey <tromey@redhat.com>
1703
1704 PR gdb/17130:
1705 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1706 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1707 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1708 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1709 * windows-nat.c (windows_xfer_partial): Always delegate.
1710 * record-btrace.c (record_btrace_xfer_partial): Simplify
1711 delegation.
1712 (record_btrace_fetch_registers, record_btrace_store_registers)
1713 (record_btrace_prepare_to_store, record_btrace_resume)
1714 (record_btrace_wait, record_btrace_find_new_threads)
1715 (record_btrace_thread_alive): Likewise.
1716 * procfs.c (procfs_xfer_partial): Always delegate.
1717 * corelow.c (core_xfer_partial): Always delegate.
1718 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1719
83814951
TT
17202014-07-18 Tom Tromey <tromey@redhat.com>
1721
1722 * exec.c (exec_make_note_section): Move earlier.
1723
b8b8facf
DE
17242014-07-17 Doug Evans <dje@google.com>
1725
74b49205 1726 PR gdb/17170
b8b8facf
DE
1727 * maint.c (count_symtabs_and_blocks): Handle NULL
1728 current_program_space.
1729 (report_command_stats): Check global enabled flag in addition to
1730 recorded enabled flag.
1731 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1732
69ff6be5
PA
17332014-07-16 Pedro Alves <palves@redhat.com>
1734
1735 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1736
252db1b5
TT
17372014-07-16 Tom Tromey <tromey@redhat.com>
1738
1739 * target.h (struct target_ops) <to_delete_record>: Reformat
1740 comment.
1741
a432721e
TT
17422014-07-16 Tom Tromey <tromey@redhat.com>
1743
1744 * target-delegates.c: Rebuild.
1745
487d9753
PL
17462014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1747
1748 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1749 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1750 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1751 (avr_pointer_to_address): Likewise.
1752 (avr_address_class_type_flags): New function.
1753 (avr_address_class_type_flags_to_name): Likewise.
1754 (avr_address_class_name_to_type_flags): Likewise.
1755 (avr_gdbarch_init): Set address_class_type_flags,
1756 address_class_type_flags_to_name and
1757 address_class_name_to_type_flags.
1758
57745c90
PA
17592014-07-15 Pedro Alves <palves@redhat.com>
1760
1761 * linux-nat.c (kill_callback): Save errno and work with saved
1762 copy.
1763
2d40be18
SM
17642014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1765
1766 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1767
572f6555
EBM
17682014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1769
1770 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1771 breakpoint support correctly.
1772
cc1c52ad
PA
17732014-07-14 Pedro Alves <palves@redhat.com>
1774
1775 * utils.c (prompt_for_continue): Call target_terminal_ours.
1776
1e973570
PA
17772014-07-14 Pedro Alves <palves@redhat.com>
1778
1779 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1780 catch_errors. Don't re-enable stdin or notify observers where,
1781 and rethrow error.
1782 (fetch_inferior_event_wrapper): Delete.
1783
93d6eb10
PA
17842014-07-14 Pedro Alves <palves@redhat.com>
1785
1786 PR gdb/17072
1787 * top.c: Include "inf-loop.h".
1788 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1789 field.
1790 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1791 was async before.
1792 (gdb_readline_wrapper): Store whether the target is async, and
1793 make it sync.
1794
0017922d
PA
17952014-07-14 Pedro Alves <palves@redhat.com>
1796
1797 PR gdb/17072
1798 * top.c (gdb_readline_wrapper_line): Tweak comment.
1799 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1800 the input handler callback.
1801
94696ad3
PA
18022014-07-14 Pedro Alves <palves@redhat.com>
1803
1804 PR gdb/17072
1805 * main.c: Include event-top.h.
1806 (handle_command_errors): New function.
1807 (catch_command_errors, catch_command_errors_const): Use it.
1808
9d1e69a2
PA
18092014-07-14 Pedro Alves <palves@redhat.com>
1810
1811 * exceptions.c (catch_command_errors, catch_command_errors_const):
1812 Moved to main.c.
1813 * exceptions.h (catch_command_errors_ftype)
1814 (catch_command_errors_const_ftype): Moved to main.c.
1815 (catch_command_errors, catch_command_errors_const): Delete
1816 declarations.
1817 * main.c (catch_command_errors_ftype)
1818 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1819 (catch_command_errors, catch_command_errors_const)): Moved here
1820 from exceptions.c and make static.
1821
feefc97b
PA
18222014-07-14 Pedro Alves <palves@redhat.com>
1823
1824 * exceptions.c (print_any_exception): Delete.
1825 (catch_exceptions_with_msg): Use exception_print instead of
1826 print_any_exception.
1827 (catch_errors): Use exception_fprintf instead of
1828 print_any_exception.
1829 (catch_command_errors, catch_command_errors_const): Use
1830 exception_print instead of print_any_exception.
1831
c933f875
PA
18322014-07-14 Pedro Alves <palves@redhat.com>
1833
1834 * infcall.c (run_inferior_call): Set 'sync_execution' while
1835 running the inferior call.
1836
feb6f816
PA
18372014-07-14 Pedro Alves <palves@redhat.com>
1838
1839 * value.c (value_contents_equal): Delete function.
1840 * value.h (value_contents_equal): Delete declaration.
1841
d98b7a16
TT
18422014-07-14 Tom Tromey <tromey@redhat.com>
1843
1844 PR exp/17106:
1845 * gdbtypes.c (is_dynamic_type_internal): New function, from
1846 is_dynamic_type.
1847 (is_dynamic_type): Rewrite.
1848 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1849 (resolve_dynamic_struct): Likewise.
1850 (resolve_dynamic_type_internal): New function, from
1851 resolve_dynamic_type.
1852 (resolve_dynamic_type): Rewrite.
1853
548740d6
TT
18542014-07-14 Tom Tromey <tromey@redhat.com>
1855
1856 * target.c (target_require_runnable): Also check record_stratum.
1857 Update comment.
1858
808f7ab1
YQ
18592014-07-11 Yao Qi <yao@codesourcery.com>
1860
1861 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1862 thumb_instruction_restores_sp return true.
1863
540314bd
YQ
18642014-07-11 Yao Qi <yao@codesourcery.com>
1865
1866 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1867 (thumb_in_function_epilogue_p): Call
1868 thumb_instruction_restores_sp.
1869
1db01f22
YQ
18702014-07-11 Yao Qi <yao@codesourcery.com>
1871
1872 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1873 'add sp, #imm'.
1874 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1875
3116063b
GB
18762014-07-11 Gary Benson <gbenson@redhat.com>
1877
1878 * amd64-linux-nat.c (gdbcore.h): Remove include.
1879 (regset.h): Likewise.
1880 (nat/linux-btrace.h): Likewise.
1881 (btrace.h): Likewise.
1882 (gdb_assert.h): Likewise.
1883 (string.h): Likewise.
1884 (sys/uio.h): Likewise.
1885 (sys/debugreg.h): Likewise.
1886 (sys/syscall.h): Likewise.
1887 (sys/procfs.h): Likewise.
1888 (sys/user.h): Likewise.
1889 (asm/ptrace.h): Likewise.
1890 (i386-nat.h): Likewise.
1891 * i386-linux-nat.c (i386-nat.h): Likewise.
1892 (regset.h): Likewise.
1893 (target.h): Likewise.
1894 (linux-nat.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/user.h): Likewise.
1901 (sys/procfs.h): Likewise.
1902 (sys/reg.h): Likewise.
1903 (sys/debugreg.h): Likewise.
1904 (ORIG_EAX): Remove definition.
1905
040baaf6
GB
19062014-07-11 Gary Benson <gbenson@redhat.com>
1907
1908 * i386-linux-nat.h: New file.
1909 * x86-linux-nat.h: Likewise.
1910 * x86-linux-nat.c: Likewise.
1911 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1912 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1913 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1914 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1915 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1916 (PTRACE_SETREGSET): Likewise.
1917 (arch_lwp_info): Now in x86-linux-nat.c.
1918 (have_ptrace_getregset): Now in x86-linux-nat.h.
1919 (x86_linux_dr_get): Now in x86-linux-nat.c.
1920 (x86_linux_dr_set): Likewise.
1921 (x86_linux_dr_get_addr): Likewise.
1922 (x86_linux_dr_get_control): Likewise.
1923 (x86_linux_dr_get_status): Likewise.
1924 (update_debug_registers_callback): Likewise.
1925 (x86_linux_dr_set_control): Likewise.
1926 (x86_linux_dr_set_addr): Likewise.
1927 (x86_linux_prepare_to_resume): Likewise.
1928 (x86_linux_new_thread): Likewise.
1929 (x86_linux_new_fork): Likewise.
1930 (x86_linux_get_thread_area): Likewise.
1931 (super_post_startup_inferior): Likewise.
1932 (x86_linux_child_post_startup_inferior): Likewise.
1933 (AMD64_LINUX_USER64_CS): Likewise.
1934 (AMD64_LINUX_X32_DS): Likewise.
1935 (x86_linux_read_description): Likewise.
1936 (x86_linux_enable_btrace): Likewise.
1937 (x86_linux_disable_btrace): Likewise.
1938 (x86_linux_teardown_btrace): Likewise.
1939 (x86_linux_read_btrace): Likewise.
1940 (x86_linux_create_target): Likewise.
1941 (x86_linux_add_target): Likewise.
1942 * i386-linux-nat.c (x86-linux-nat.h): New include.
1943 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1944 (PTRACE_SETREGSET): Likewise.
1945 (arch_lwp_info): Now in x86-linux-nat.c.
1946 (have_ptrace_getregset): Now in x86-linux-nat.h.
1947 (x86_linux_dr_get): Now in x86-linux-nat.c.
1948 (x86_linux_dr_set): Likewise.
1949 (x86_linux_dr_get_addr): Likewise.
1950 (x86_linux_dr_get_control): Likewise.
1951 (x86_linux_dr_get_status): Likewise.
1952 (update_debug_registers_callback): Likewise.
1953 (x86_linux_dr_set_control): Likewise.
1954 (x86_linux_dr_set_addr): Likewise.
1955 (x86_linux_prepare_to_resume): Likewise.
1956 (x86_linux_new_thread): Likewise.
1957 (x86_linux_new_fork): Likewise.
1958 (x86_linux_get_thread_area): Likewise.
1959 (super_post_startup_inferior): Likewise.
1960 (x86_linux_child_post_startup_inferior): Likewise.
1961 (AMD64_LINUX_USER64_CS): Likewise.
1962 (AMD64_LINUX_X32_DS): Likewise.
1963 (x86_linux_read_description): Likewise.
1964 (x86_linux_enable_btrace): Likewise.
1965 (x86_linux_disable_btrace): Likewise.
1966 (x86_linux_teardown_btrace): Likewise.
1967 (x86_linux_read_btrace): Likewise.
1968 (x86_linux_create_target): Likewise.
1969 (x86_linux_add_target): Likewise.
1970
1aa7e42c
GB
19712014-07-11 Gary Benson <gbenson@redhat.com>
1972
1973 * amd64-linux-nat.c: Comment and whitespace changes.
1974 * i386-linux-nat.c: Comment and whitespace changes.
1975
c1e246a0
GB
19762014-07-11 Gary Benson <gbenson@redhat.com>
1977
1978 * amd64-linux-nat.c (x86_linux_create_target): New function.
1979 (x86_linux_add_target): Likewise.
1980 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1981 * i386-linux-nat.c (x86_linux_create_target): New function.
1982 (x86_linux_add_target): Likewise.
1983 (_initialize_i386_linux_nat): Delegate to the above new functions.
1984
8c420b8d
GB
19852014-07-11 Gary Benson <gbenson@redhat.com>
1986
1987 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1988 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1989 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1990 (ps_get_thread_area): Delegate to the above.
1991
cb1da100
GB
19922014-07-11 Gary Benson <gbenson@redhat.com>
1993
1994 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1995 x86_linux_read_description. All uses updated. amd64-specific
1996 code conditionalized. Conditionalized i386-specific code added.
1997 Redundant cast removed.
1998 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1999 x86_linux_read_description. All uses updated. i386-specific
2000 code conditionalized. Conditionalized amd64-specific code added.
2001 One sizeof replaced with the actual type it is describing.
2002
2acf3cd0
GB
20032014-07-11 Gary Benson <gbenson@redhat.com>
2004
2005 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2006 x86_linux_dr_get. All uses updated.
2007 (amd64_linux_dr_set): Renamed to
2008 x86_linux_dr_set. All uses updated.
2009 (amd64_linux_dr_get_addr): Renamed to
2010 x86_linux_dr_get_addr. All uses updated.
2011 (amd64_linux_dr_get_control): Renamed to
2012 x86_linux_dr_get_control. All uses updated.
2013 (amd64_linux_dr_get_status): Renamed to
2014 x86_linux_dr_get_status. All uses updated.
2015 (amd64_linux_dr_set_control): Renamed to
2016 x86_linux_dr_set_control. All uses updated.
2017 (amd64_linux_dr_set_addr): Renamed to
2018 x86_linux_dr_set_addr. All uses updated.
2019 (amd64_linux_prepare_to_resume): Renamed to
2020 x86_linux_prepare_to_resume. All uses updated.
2021 (amd64_linux_new_thread): Renamed to
2022 x86_linux_new_thread. All uses updated.
2023 (amd64_linux_new_fork): Renamed to
2024 x86_linux_new_fork. All uses updated.
2025 (amd64_linux_child_post_startup_inferior): Renamed to
2026 x86_linux_child_post_startup_inferior. All uses updated.
2027 (amd64_linux_enable_btrace): Renamed to
2028 x86_linux_enable_btrace. All uses updated.
2029 (amd64_linux_disable_btrace): Renamed to
2030 x86_linux_disable_btrace. All uses updated.
2031 (amd64_linux_teardown_btrace): Renamed to
2032 x86_linux_teardown_btrace. All uses updated.
2033 (amd64_linux_read_btrace): Renamed to
2034 x86_linux_read_btrace. All uses updated.
2035 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2036 x86_linux_dr_get. All uses updated.
2037 (i386_linux_dr_set): Renamed to
2038 x86_linux_dr_set. All uses updated.
2039 (i386_linux_dr_get_addr): Renamed to
2040 x86_linux_dr_get_addr. All uses updated.
2041 (i386_linux_dr_get_control): Renamed to
2042 x86_linux_dr_get_control. All uses updated.
2043 (i386_linux_dr_get_status): Renamed to
2044 x86_linux_dr_get_status. All uses updated.
2045 (i386_linux_dr_set_control): Renamed to
2046 x86_linux_dr_set_control. All uses updated.
2047 (i386_linux_dr_set_addr): Renamed to
2048 x86_linux_dr_set_addr. All uses updated.
2049 (i386_linux_prepare_to_resume): Renamed to
2050 x86_linux_prepare_to_resume. All uses updated.
2051 (i386_linux_new_thread): Renamed to
2052 x86_linux_new_thread. All uses updated.
2053 (i386_linux_new_fork): Renamed to
2054 x86_linux_new_fork. All uses updated.
2055 (i386_linux_child_post_startup_inferior): Renamed to
2056 x86_linux_child_post_startup_inferior. All uses updated.
2057 (i386_linux_enable_btrace): Renamed to
2058 x86_linux_enable_btrace. All uses updated.
2059 (i386_linux_disable_btrace): Renamed to
2060 x86_linux_disable_btrace. All uses updated.
2061 (i386_linux_teardown_btrace): Renamed to
2062 x86_linux_teardown_btrace. All uses updated.
2063 (i386_linux_read_btrace): Renamed to
2064 x86_linux_read_btrace. All uses updated.
2065
b9c1d481
AS
20662014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2067
2068 * remote.c (extended_remote_post_attach): New function.
2069 (init_extended_remote_ops): Install it as to_post_attach method.
2070
7180e04a
PA
20712014-07-09 Pedro Alves <palves@redhat.com>
2072
2073 * infcmd.c (attach_command_post_wait): Don't call
2074 target_terminal_inferior here.
2075 (attach_command): Call it here instead.
2076
9a9a7608
AB
20772014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2080 field.
2081 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2082 from varobj.c, with additional checks.
2083 (c_varobj_ops): Fill in is_path_expr_parent field.
2084 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2085 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2086 field.
2087 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2088 ops method.
2089 (varobj_default_is_path_expr_parent): New function.
2090 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2091 (varobj_default_is_path_expr_parent): Declare new function.
2092
1f267ae3
MM
20932014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2094
2095 * infcmd.c (finish_backward): Turn internal error into normal error.
2096
b2ee242b
PA
20972014-07-07 Pedro Alves <palves@redhat.com>
2098
8a869bca 2099 PR gdb/17096
b2ee242b
PA
2100 * remote.c (async_handle_remote_sigint)
2101 (async_handle_remote_sigint_twice): Call
2102 gdb_call_async_signal_handler instead of
2103 mark_async_signal_handler.
2104
38e229b2
TT
21052014-07-07 Tom Tromey <tromey@redhat.com>
2106
2107 * target-delegates.c: Rebuild.
2108 * target.c (target_info_record): Remove.
2109 * record.c (info_record_command): Unconditionally call
2110 to_info_record.
2111 * target.h (struct target_ops) <to_info_record>: Use
2112 TARGET_DEFAULT_IGNORE.
2113 (target_info_record): Remove.
2114
f0f9ff95
TT
21152014-07-07 Tom Tromey <tromey@redhat.com>
2116
2117 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2118 TARGET_DEFAULT_NORETURN.
2119 * target.c (generic_tls_error): New function.
2120 (target_translate_tls_address): Don't search target stack.
2121 * target-delegates.c: Rebuild.
2122 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2123 stack.
2124 * linux-thread-db.c (thread_db_get_thread_local_address):
2125 Unconditionally call beneath target.
2126
4a5be5ee
MK
21272014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2128
2129 * cli/cli-logging.c (pop_output_files): Assign targerr to
2130 gdb_stdtargerr.
2131
92c3b204
AB
21322014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * MAINTAINERS (Write After Approval): Update my email address.
2135
9b11e3a7
GB
21362014-07-02 Gary Benson <gbenson@redhat.com>
2137
2138 * proc-service.c (ps_xfer_memory): Update comment.
2139 (ps_pstop): Remove unused function.
2140 (ps_pcontinue): Likewise.
2141 (ps_lstop): Likewise.
2142 (ps_lcontinue): Likewise.
2143 (ps_lgetxregsize): Likewise.
2144 (ps_lgetxregs): Likewise.
2145 (ps_lsetxregs): Likewise.
2146 (ps_plog): Likewise.
2147 (ps_ptread): Likewise.
2148 (ps_ptwrite): Likewise.
2149
cf363f18
MW
21502014-07-01 Mark Wielaard <mjw@redhat.com>
2151
2152 * dwarf2read.c (add_array_cv_type): New function.
2153 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2154 (read_tag_volatile_type): Likewise.
2155
82ae6c8d
TT
21562014-07-01 Tom Tromey <tromey@redhat.com>
2157
2158 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2159 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2160 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2161 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2162 * command.h (cmd_cfunc_ftype): Move earlier.
2163 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2164 (add_com, add_info): Use cmd_cfunc_ftype.
2165
96142726
TT
21662014-06-30 Tom Tromey <tromey@redhat.com>
2167
2168 * symtab.c (operator_chars): Make parameters and return type
2169 const.
2170 (file_matches): Make "files" const.
2171 (struct search_symbols_data) <files>: Now const.
2172 (search_symbols): Make "regexp" and "files" parameters const.
2173 Update.
2174 (symtab_symbol_info): Remove cast.
2175 (rbreak_command): Update.
2176 * symtab.h (search_symbols): Update.
2177
b67a2c6f
YQ
21782014-06-27 Yao Qi <yao@codesourcery.com>
2179
2180 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2181 Change parameter type to 'struct thread_info *'. Caller
2182 updated.
2183 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2184 Update declaration.
2185 * dummy-frame.c (struct dummy_frame_id): New.
2186 (dummy_frame_id_eq): New function.
2187 (struct dummy_frame) <id>: Change its type to 'struct
2188 dummy_frame_id'.
2189 (dummy_frame_push): Add parameter ptid and save it in
2190 dummy_frame_id.
2191 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2192 inferior_ptid.
2193 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2194 to inferior_ptid.
2195 (lookup_dummy_frame): Change parameter type to 'struct
2196 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2197 instead of frame_id_eq.
2198 (dummy_frame_pop): Add parameter ptid. Callers updated.
2199 Update comments. Compose dummy_frame_id and pass it to
2200 lookup_dummy_frame.
2201 (dummy_frame_discard): Add parameter ptid.
2202 (dummy_frame_sniffer): Compose dummy_frame_id and call
2203 dummy_frame_id_eq instead of frame_id_eq.
2204 (fprint_dummy_frames): Print ptid.
2205 * dummy-frame.h: Remove comments.
2206 (dummy_frame_push): Add ptid in declaration.
2207 (dummy_frame_pop, dummy_frame_discard): Likewise.
2208
5b10184c
TT
22092014-06-26 Tom Tromey <tromey@redhat.com>
2210
2211 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2212 * command.h (error_no_arg): Update.
2213
06900326
TT
22142014-06-26 Tom Tromey <tromey@redhat.com>
2215
2216 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2217 (do_show_command): Make "arg" const.
2218 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2219
c2bcbb1d
TT
22202014-06-26 Tom Tromey <tromey@redhat.com>
2221
2222 * record-full.c (record_full_get_bookmark): Make "args" const.
2223 (record_full_goto_bookmark): Make "raw_bookmark" const.
2224 * record.c (record_goto): New function.
2225 (cmd_record_goto): Use it. Now static.
2226 * record.h (record_goto): Declare.
2227 (cmd_record_goto): Remove declaration.
2228 * target-delegates.c: Rebuild.
2229 * target.h (struct target_ops) <to_get_bookmark,
2230 to_goto_bookmark>: Make parameter const.
2231
9cbe5fff
TT
22322014-06-26 Tom Tromey <tromey@redhat.com>
2233
2234 * defs.h (generic_load): Update.
2235 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2236 * monitor.c (monitor_load): Make "args" const.
2237 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2238 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2239 const.
2240 (mips_load): Make "file" const.
2241 * remote-sim.c (gdbsim_load): Make "args" const.
2242 * remote.c (remote_load): Make "name" const.
2243 * symfile.c (generic_load): Make "args" const.
2244 * target-delegates.c: Rebuild.
2245 * target.c (target_load): Make "arg" const.
2246 (debug_to_load): Make "args" const.
2247 * target.h (struct target_ops) <to_load>: Make parameter const.
2248 (target_load): Update.
2249
34a68019
TT
22502014-06-26 Tom Tromey <tromey@redhat.com>
2251
2252 PR symtab/16902:
2253 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2254 (dwarf2_physname, read_partial_die)
2255 (guess_partial_die_structure_name, fixup_partial_die)
2256 (guess_full_die_structure_name, anonymous_struct_prefix)
2257 (dwarf2_name): Use per-BFD obstack.
2258
efc889c1
YQ
22592014-06-26 Yao Qi <yao@codesourcery.com>
2260
2261 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2262 dummyframe and this_id into inner block below.
2263
4395285e
YQ
22642014-06-26 Yao Qi <yao@codesourcery.com>
2265
2266 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2267 with "signal_pass[0]" in the initialization of signal_pass.
2268
aef92902
MM
22692014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2270
2271 * record-btrace.c (record_btrace_generating_corefile)
2272 (record_btrace_prepare_to_generate_core)
2273 (record_btrace_done_generating_core): New.
2274 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2275 (record_btrace_store_registers, record_btrace_prepare_to_store):
2276 Forward request when generating a core file.
2277 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2278 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2279 to_done_generating_core.
2280
5fff78c4
MM
22812014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2282
2283 * target.h (target_ops) <to_prepare_to_generate_core>
2284 <to_done_generating_core>: New.
2285 (target_prepare_to_generate_core, target_done_generating_core): New.
2286 * target.c (target_prepare_to_generate_core)
2287 (target_done_generating_core): New.
2288 * target-delegates.c: Regenerate.
2289 * gcore.c: (write_gcore_file): Rename to ...
2290 (write_gcore_file_1): ...this.
2291 (write_gcore_file): Call target_prepare_to_generate_core
2292 and target_done_generating_core.
2293
1d1f1ccb
MM
22942014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2295
2296 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2297 * gcore.c (write_gcore_file): Free memory returned from
2298 make_corefile_notes.
2299 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2300 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2301
3343ef86
YQ
23022014-06-24 Yao Qi <yao@codesourcery.com>
2303
2304 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2305 (arm_linux_init_abi): Set skip_trampoline_code with
2306 gdbarch_skip_trampoline_code instead of
2307 find_solib_trampoline_target.
2308
18d18ac8
YQ
23092014-06-24 Yao Qi <yao@codesourcery.com>
2310
2311 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2312 arm_skip_bx_reg returns non-zero.
2313
80d8d390
YQ
23142014-06-24 Yao Qi <yao@codesourcery.com>
2315
2316 * arm-tdep.c (arm_skip_bx_reg): New function.
2317 (arm_skip_stub): Call arm_skip_bx_reg.
2318
6a18a01c
DB
23192014-06-23 Don Breazeal <donb@codesourcery.com>
2320
2321 * MAINTAINERS: Add myself as write-after-approval maintainer.
2322
8e9db26e
PA
23232014-06-23 Pedro Alves <palves@redhat.com>
2324
2325 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2326 DR_CONTROL before setting DR0..DR3.
2327 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2328 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2329 bits of DR_CONTROL related to the debug register slot being
2330 disabled. If all slots are vacant, clear local slowdown as well,
2331 and assert DR_CONTROL is 0.
2332
70afc5b7
SC
23332014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2334
2335 * python/lib/gdb/command/xmethods.py
2336 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2337 current progspace only if the string "progspace" matches LOCUS_RE.
2338
840ed64d
JK
23392014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 Fix --with-system-readline with readline-6.3 patch 5.
2342 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2343 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2344 types.
2345
26f2dc30
TT
23462014-06-20 Tom Tromey <tromey@redhat.com>
2347
2348 * dwarf2read.c (dw2_get_real_path): Use correct type in
2349 OBSTACK_CALLOC.
2350 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2351
125f8a3d
GB
23522014-06-20 Gary Benson <gbenson@redhat.com>
2353
2354 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2355 * common/glibc_thread_db.h: Likewise.
2356 * common/i386-cpuid.h: Likewise.
2357 * common/i386-gcc-cpuid.h: Likewise.
2358 * common/linux-btrace.h: Likewise.
2359 * common/linux-osdata.h: Likewise.
2360 * common/linux-procfs.h: Likewise.
2361 * common/linux-ptrace.h: Likewise.
2362 * common/mips-linux-watch.h: Likewise.
2363 * common/linux-btrace.c: Moved to nat.
2364 * common/linux-osdata.c: Likewise.
2365 * common/linux-procfs.c: Likewise.
2366 * common/linux-ptrace.c: Likewise.
2367 * common/mips-linux-watch.c: Likewise.
2368 * nat/gdb_thread_db.h: Moved from common.
2369 * nat/glibc_thread_db.h: Likewise.
2370 * nat/i386-cpuid.h: Likewise.
2371 * nat/i386-gcc-cpuid.h: Likewise.
2372 * nat/linux-btrace.c: Likewise.
2373 * nat/linux-btrace.h: Likewise.
2374 * nat/linux-osdata.c: Likewise.
2375 * nat/linux-osdata.h: Likewise.
2376 * nat/linux-procfs.c: Likewise.
2377 * nat/linux-procfs.h: Likewise.
2378 * nat/linux-ptrace.c: Likewise.
2379 * nat/linux-ptrace.h: Likewise.
2380 * nat/mips-linux-watch.c: Likewise.
2381 * nat/mips-linux-watch.h: Likewise.
2382 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2383 (object file files): Reordered.
2384 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2385 of glibc_thread_db.h.
2386
42995dbd
GB
23872014-06-20 Gary Benson <gbenson@redhat.com>
2388
2389 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2390 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2391 (i386_dr_low): Likewise.
2392 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2393 (i386_dr_low_set_addr): Likewise.
2394 (i386_dr_low_get_addr): Likewise.
2395 (i386_dr_low_can_set_control): Likewise.
2396 (i386_dr_low_set_control): Likewise.
2397 (i386_dr_low_get_control): Likewise.
2398 (i386_dr_low_get_status): Likewise.
2399 (i386_get_debug_register_length): Likewise.
2400 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2401 (i386_dr_low): Likewise.
2402 * nat/i386-dregs.c (i386-low.h): Remove include.
2403 (i386-nat.h): Likewise.
2404 (nat/i386-dregs.h): New include.
2405 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2406 (i386_dr_low_set_addr): Likewise.
2407 (i386_dr_low_get_addr): Likewise.
2408 (i386_dr_low_can_set_control): Likewise.
2409 (i386_dr_low_set_control): Likewise.
2410 (i386_dr_low_get_control): Likewise.
2411 (i386_dr_low_get_status): Likewise.
2412 (i386_get_debug_register_length): Likewise.
2413 (debug_hw_points): Likewise.
2414
3ed9baed
IB
24152014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2416
2417 * Makefile.in (SFILES): Add d-exp.y.
2418 (YYFILES): Add d-exp.c.
2419 (YYOBJ): Add d-exp.o.
2420 (local-maintainer-clean): Delete d-exp.c.
2421 * d-exp.y: New file.
2422 * d-lang.h (d_parse): New declaration.
2423 (d_error): New declaration.
2424 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2425 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2426 PREC_ORDER operators.
2427 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2428
78c164b0
YQ
24292014-06-19 Yao Qi <yao@codesourcery.com>
2430
2431 * gdbthread.h (any_running): Remove the declaration.
2432 * thread.c (any_running): Remove.
2433
f6e29b6e
YQ
24342014-06-19 Yao Qi <yao@codesourcery.com>
2435
2436 * gdbthread.h (struct thread_info) <state>: Change its type to
2437 'enum thread_state'. Update comments.
2438
034f788c
PA
24392014-06-19 Pedro Alves <palves@redhat.com>
2440
2441 * gdbthread.h (ALL_THREADS): Delete.
2442 (ALL_NON_EXITED_THREADS): New macro.
2443 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2444 instead of ALL_THREADS.
2445 * infrun.c (find_thread_needs_step_over)
2446 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2447 instead of ALL_THREADS.
2448 * record-btrace.c (record_btrace_open)
2449 (record_btrace_stop_recording, record_btrace_close)
2450 (record_btrace_is_replaying, record_btrace_resume)
2451 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2452 * remote.c (append_pending_thread_resumptions): Likewise.
2453 * thread.c (thread_apply_all_command): Likewise.
2454
46e33252
GB
24552014-06-19 Gary Benson <gbenson@redhat.com>
2456
2457 * i386-nat.c (i386_stopped_by_watchpoint):
2458 Use i386_dr_stopped_by_watchpoint.
2459 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2460 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2461
3a8ee006
GB
24622014-06-19 Gary Benson <gbenson@redhat.com>
2463
2464 * nat/i386-dregs.c: New file.
2465 * Makefile.in (i386-dregs.o): New rule.
2466 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2467 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2468 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2469 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2470 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2471 * config/i386/go32.mh (NATDEPFILES): Likewise.
2472 * config/i386/linux.mh (NATDEPFILES): Likewise.
2473 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2474 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2475 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2476 * i386-nat.h (debug_hw_points): New declaration.
2477 * i386-nat.c (breakpoint.h): Remove include.
2478 (command.h): Likewise.
2479 (target.h): Likewise.
2480 (gdb_assert.h): Likewise.
2481 (debug_hw_points): Made nonstatic.
2482 (debug_printf): Now in i386-dregs.c.
2483 (TARGET_HAS_DR_LEN_8): Likewise.
2484 (DR_CONTROL_SHIFT): Likewise.
2485 (DR_CONTROL_SIZE): Likewise.
2486 (DR_RW_EXECUTE): Likewise.
2487 (DR_RW_WRITE): Likewise.
2488 (DR_RW_READ): Likewise.
2489 (DR_RW_IORW): Likewise.
2490 (DR_LEN_1): Likewise.
2491 (DR_LEN_2): Likewise.
2492 (DR_LEN_4): Likewise.
2493 (DR_LEN_8): Likewise.
2494 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2495 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2496 (DR_ENABLE_SIZE): Likewise.
2497 (DR_LOCAL_SLOWDOWN): Likewise.
2498 (DR_GLOBAL_SLOWDOWN): Likewise.
2499 (DR_CONTROL_RESERVED): Likewise.
2500 (I386_DR_CONTROL_MASK): Likewise.
2501 (I386_DR_VACANT): Likewise.
2502 (I386_DR_LOCAL_ENABLE): Likewise.
2503 (I386_DR_GLOBAL_ENABLE): Likewise.
2504 (I386_DR_DISABLE): Likewise.
2505 (I386_DR_SET_RW_LEN): Likewise.
2506 (I386_DR_GET_RW_LEN): Likewise.
2507 (I386_DR_WATCH_HIT): Likewise.
2508 (i386_wp_op_t): Likewise.
2509 (i386_show_dr): Likewise.
2510 (i386_length_and_rw_bits): Likewise.
2511 (i386_insert_aligned_watchpoint): Likewise.
2512 (i386_remove_aligned_watchpoint): Likewise.
2513 (i386_handle_nonaligned_watchpoint): Likewise.
2514 (i386_update_inferior_debug_regs): Likewise.
2515 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2516 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2517 (i386_region_ok_for_watchpoint):
2518 Use i386_dr_region_ok_for_watchpoint.
2519 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2520
322a8e06
GB
25212014-06-19 Gary Benson <gbenson@redhat.com>
2522
2523 * i386-nat.c (i386_insert_hw_breakpoint): Use
2524 i386_insert_watchpoint.
2525 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2526
8f26655c
GB
25272014-06-19 Gary Benson <gbenson@redhat.com>
2528
2529 * i386-nat.c (i386_dr_show): Renamed to
2530 i386_show_dr and made static. All uses updated.
2531 (i386_dr_length_and_rw_bits): Renamed to
2532 i386_length_and_rw_bits and made static.
2533 All uses updated.
2534 (i386_dr_insert_aligned_watchpoint): Renamed to
2535 i386_insert_aligned_watchpoint and made static.
2536 All uses updated.
2537 (i386_dr_remove_aligned_watchpoint): Renamed to
2538 i386_remove_aligned_watchpoint and made static.
2539 All uses updated.
2540 (i386_dr_update_inferior_debug_regs): Renamed to
2541 i386_update_inferior_debug_regs and made static.
2542 All uses updated.
2543 * nat/i386-dregs.h (i386_dr_show): Removed.
2544 (i386_dr_length_and_rw_bits): Likewise.
2545 (i386_dr_insert_aligned_watchpoint): Likewise.
2546 (i386_dr_remove_aligned_watchpoint): Likewise.
2547 (i386_dr_update_inferior_debug_regs): Likewise.
2548
992c7d70
GB
25492014-06-19 Gary Benson <gbenson@redhat.com>
2550
2551 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2552 * configure: Regenerate.
2553 * config.in: Likewise.
2554 * main.c (signal.h): New include.
2555 (setup_alternate_signal_stack): New function.
2556 (captured_main): Call the above.
2557 * cp-support.c (signal.h): New include.
2558 (catch_demangler_crashes): New flag.
2559 (SIGJMP_BUF): New define.
2560 (SIGSETJMP): Likewise.
2561 (SIGLONGJMP): Likewise.
2562 (gdb_demangle_jmp_buf): New static global.
2563 (gdb_demangle_attempt_core_dump): Likewise.
2564 (gdb_demangle_signal_handler): New function.
2565 (gdb_demangle): If catch_demangler_crashes is set, install the
2566 above signal handler before calling bfd_demangle, and restore
2567 the original signal handler afterwards. Display the offending
2568 symbol and call demangler_warning the first time a segmentation
2569 fault is caught.
2570 (_initialize_cp_support): New maint set/show command.
2571
eae7090b
GB
25722014-06-19 Gary Benson <gbenson@redhat.com>
2573
2574 * utils.h (resource_limit_kind): New enum.
2575 (can_dump_core): New declaration.
2576 (warn_cant_dump_core): Likewise.
2577 (dump_core): Likewise.
2578 * utils.c (dump_core): Made nonstatic. Added new
2579 parameter "limit_kind".
2580 (can_dump_core): Made nonstatic. Moved printing code to...
2581 (warn_cant_dump_core): New function.
2582 (can_dump_core_warn): Likewise.
2583 (internal_vproblem): Replace calls to can_dump_core with
2584 calls to can_dump_core_warn. Supply new argument to each.
2585
57fcfb1b
GB
25862014-06-19 Gary Benson <gbenson@redhat.com>
2587
2588 * utils.h (demangler_vwarning): New declaration.
2589 (demangler_warning): Likewise.
2590 * utils.c (struct internal_problem)
2591 <user_settable_should_quit>: New field.
2592 <user_settable_should_dump_core>: Likewise
2593 (internal_error_problem): Add values for above new fields.
2594 (internal_warning_problem): Likewise.
2595 (demangler_warning_problem): New static global.
2596 (demangler_vwarning): New function.
2597 (demangler_warning): Likewise.
2598 (add_internal_problem_command): Selectively add commands.
2599 (_initialize_utils): New internal problem command.
2600 * maint.c (maintenance_demangler_warning): New function.
2601 (_initialize_maint_cmds): New command.
2602
17a40b44
TT
26032014-06-18 Tom Tromey <tromey@redhat.com>
2604
2605 * f-valprint.c (info_common_command_for_block): Update.
2606 * symtab.h (struct general_symbol_info) <common_block>: Now
2607 const.
2608
346d1dfe
TT
26092014-06-18 Tom Tromey <tromey@redhat.com>
2610
2611 * symtab.h (struct symtab) <blockvector>: Now const.
2612 * ada-lang.c (ada_add_global_exceptions): Update.
2613 * buildsym.c (augment_type_symtab): Update.
2614 * dwarf2read.c (dw2_lookup_symbol): Update.
2615 * jit.c (finalize_symtab): Update.
2616 * jv-lang.c (add_class_symtab_symbol): Update.
2617 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2618 Update.
2619 * objfiles.c (objfile_relocate1): Update.
2620 * psymtab.c (lookup_symbol_aux_psymtabs)
2621 (maintenance_check_psymtabs): Update.
2622 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2623 Update.
2624 * spu-tdep.c (spu_catch_start): Update.
2625 * symmisc.c (dump_symtab_1): Update.
2626 * symtab.c (lookup_global_symbol_from_objfile)
2627 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2628 (basic_lookup_transparent_type_quick)
2629 (basic_lookup_transparent_type, find_pc_sect_symtab)
2630 (find_pc_sect_line, search_symbols): Update.
2631 * block.c (find_block_in_blockvector): Make "bl" const.
2632 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2633 const.
2634 (blockvector_contains_pc): Make "bv" const.
2635 (block_for_pc_sect): Update.
2636 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2637 (blockvector_contains_pc): Update.
2638 * breakpoint.c (resolve_sal_pc): Update.
2639 * inline-frame.c (block_starting_point_at): Update.
2640
1834676b
TT
26412014-06-18 Tom Tromey <tromey@redhat.com>
2642
2643 * completer.c (complete_line): Make "line_buffer" const.
2644 * completer.h (complete_line): Update.
2645
ac1a991b
TT
26462014-06-18 Tom Tromey <tromey@redhat.com>
2647
2648 * symtab.c (add_macro_name): Remove unneeded cast.
2649
5bc98e52
TT
26502014-06-18 Tom Tromey <tromey@redhat.com>
2651
2652 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2653 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2654
8236def8
TT
26552014-06-18 Tom Tromey <tromey@redhat.com>
2656
2657 * probe.c (info_probes_for_ops): Make "arg" const.
2658 * probe.h (info_probes_for_ops): Update.
2659
3977b71f
TT
26602014-06-18 Tom Tromey <tromey@redhat.com>
2661
2662 * varobj.c (varobj_create): Update.
2663 * valops.c (value_of_this): Update.
2664 * tracepoint.c (add_local_symbols, scope_info): Update.
2665 * symtab.h (struct general_symbol_info) <block>: Now const.
2666 * symtab.c (skip_prologue_sal)
2667 (default_make_symbol_completion_list_break_on)
2668 (skip_prologue_using_sal): Update.
2669 * stack.h (iterate_over_block_locals)
2670 (iterate_over_block_local_vars): Update.
2671 * stack.c (print_frame_args): Update.
2672 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2673 parameter const.
2674 (get_selected_block): Make return type const.
2675 * python/py-frame.c (frapy_block): Update.
2676 * python/py-block.c (gdbpy_block_for_pc): Update.
2677 * p-exp.y (%union) <bval>: Now const.
2678 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2679 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2680 * m2-exp.y (%union) <bval>: Now const.
2681 * linespec.c (get_current_search_block): Make return type const.
2682 (create_sals_line_offset, find_label_symbols): Update.
2683 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2684 Update.
2685 (block_starting_point_at): Make "block" const.
2686 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2687 (check_exception_resume): Update.
2688 * guile/scm-frame.c (gdbscm_frame_block): Update.
2689 * guile/scm-block.c (gdbscm_lookup_block): Update.
2690 * frame.h (get_frame_block): Update.
2691 (get_selected_block): Make return type const.
2692 * frame.c (frame_id_inner): Update.
2693 * f-valprint.c (info_common_command_for_block)
2694 (info_common_command): Update.
2695 * dwarf2loc.c (dwarf2_find_location_expression)
2696 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2697 (locexpr_describe_location_piece): Update.
2698 * c-exp.y (%union) <bval>: Now const.
2699 * breakpoint.c (resolve_sal_pc): Update.
2700 * blockframe.c (get_frame_block):Make return type const.
2701 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2702 (block_innermost_frame): Update.
2703 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2704 (block_for_pc, block_for_pc_sect): Update.
2705 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2706 'pblock' const.
2707 (block_for_pc_sect, block_for_pc): Make return type const.
2708 * ax-gdb.c (gen_expr): Update.
2709 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2710 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2711 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2712 (ada_read_var_value): Update.
2713 * ada-exp.y (struct name_info) <block>: Now const.
2714 (%union): Likewise.
2715 (block_lookup): Constify.
2716
b9228891
GB
27172014-06-18 Gary Benson <gbenson@redhat.com>
2718
2719 * nat/i386-dregs.h: New file.
2720 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2721 * i386-nat.h (i386-dregs.h): New include.
2722 (DR_FIRSTADDR): Now in i386-dregs.h.
2723 (DR_LASTADDR): Likewise.
2724 (DR_NADDR): Likewise.
2725 (DR_STATUS): Likewise.
2726 (DR_CONTROL): Likewise.
2727 (i386_debug_reg_state): Likewise.
2728 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2729
a1aa2221
LM
27302014-06-18 Don Breazeal <donb@codesourcery.com>
2731
2732 * breakpoint.c (set_longjmp_breakpoint): Call
2733 momentary_breakpoint_from_master with additional argument.
2734 (set_longjmp_breakpoint_for_call_dummy): Call
2735 momentary_breakpoint_from_master with additional argument.
2736 (set_std_terminate_breakpoint): Call
2737 momentary_breakpoint_from_master with additional argument.
2738 (momentary_breakpoint_from_master): Add argument to function
2739 definition and use it to initialize structure member flag.
74228e77 2740 (clone_momentary_breakpoint): Call
a1aa2221
LM
2741 momentary_breakpoint_from_master with additional argument.
2742 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2743 member flags set in momentary_breakpoint_from_master.
2744
4be83cc2
GB
27452014-06-18 Gary Benson <gbenson@redhat.com>
2746
2747 * i386-nat.c (i386_show_dr): Renamed to
2748 i386_dr_show and made nonstatic. All uses updated.
2749 (i386_length_and_rw_bits): Renamed to
2750 i386_dr_length_and_rw_bits and made nonstatic.
2751 All uses updated.
2752 (i386_insert_aligned_watchpoint): Renamed to
2753 i386_dr_insert_aligned_watchpoint and made nonstatic.
2754 All uses updated.
2755 (i386_remove_aligned_watchpoint): Renamed to
2756 i386_dr_remove_aligned_watchpoint and made nonstatic.
2757 All uses updated.
2758 (i386_update_inferior_debug_regs): Renamed to
2759 i386_dr_update_inferior_debug_regs and made nonstatic.
2760 All uses updated.
2761
131aa0d4
GB
27622014-06-18 Gary Benson <gbenson@redhat.com>
2763
2764 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2765 (i386_dr_low_can_set_control): Likewise.
2766 (i386_dr_low_set_addr): Likewise.
2767 (i386_dr_low_set_control): Likewise.
2768 (i386_dr_low_get_addr): Likewise.
2769 (i386_dr_low_get_status): Likewise.
2770 (i386_dr_low_get_control): Likewise.
2771 (i386_insert_aligned_watchpoint): Use new macros.
2772 (i386_update_inferior_debug_regs): Likewise.
2773 (i386_stopped_data_address): Likewise.
2774
d9305f7f
GB
27752014-06-18 Gary Benson <gbenson@redhat.com>
2776
2777 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2778 New parameter. All uses updated.
2779
ea008da4
GB
27802014-06-18 Gary Benson <gbenson@redhat.com>
2781
2782 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2783 All uses updated.
2784
1b6d4134
GB
27852014-06-18 Gary Benson <gbenson@redhat.com>
2786
2787 * i386-nat.c (debug_printf): New macro.
2788 (i386_get_debug_register_length): Likewise.
2789 (TARGET_HAS_DR_LEN_8): Use above macro.
2790 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2791 and printf_unfiltered. Use phex to format values.
2792
9b4550ef
GB
27932014-06-18 Gary Benson <gbenson@redhat.com>
2794
2795 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2796 Make const.
2797
6e62758f
GB
27982014-06-18 Gary Benson <gbenson@redhat.com>
2799
2800 * i386-nat.c: Comment changes.
2801
51c79e94
GB
28022014-06-18 Gary Benson <gbenson@redhat.com>
2803
2804 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2805
3e11889a
GB
28062014-06-18 Gary Benson <gbenson@redhat.com>
2807
2808 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2809 (i386_insert_aligned_watchpoint): Likewise.
2810 (i386_remove_aligned_watchpoint): Likewise.
2811 (i386_handle_nonaligned_watchpoint): Likewise.
2812
fc6e2f03
GB
28132014-06-18 Gary Benson <gbenson@redhat.com>
2814
2815 * i386-nat.c: Whitespace changes.
2816
2afe7d50
SB
28172014-06-17 Samuel Bronson <naesten@gmail.com>
2818
2819 * MAINTAINERS: Update Roland McGrath's email address.
2820 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2821 Red Hat a while ago, and giving me a current address.
2afe7d50 2822
3bca49ee
TT
28232014-06-17 Tom Tromey <tromey@redhat.com>
2824
2825 * utils.h (savestring): Remove declaration.
2826
6e366df1
TT
28272014-06-17 Tom Tromey <tromey@redhat.com>
2828
2829 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2830
6be47f0c
KS
28312014-06-16 Keith Seitz <keiths@redhat.com>
2832
2833 PR mi/15863
2834 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2835 to update the varobj if inferior_ptid is null_ptid.
2836
7bc112c1
TT
28372014-06-16 Tom Tromey <tromey@redhat.com>
2838
2839 * target.h (struct target_ops) <to_info_proc>: Make parameter
2840 const.
2841 (target_info_proc): Update.
2842 * target.c (target_info_proc): Make "args" const.
2843 * procfs.c (procfs_info_proc): Update.
2844 * linux-tdep.c (linux_info_proc): Update.
2845 (linux_core_info_proc_mappings): Make "args" const.
2846 (linux_core_info_proc): Update.
2847 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2848 * gdbarch.c: Rebuild.
2849 * gdbarch.h: Rebuild.
2850 * corelow.c (core_info_proc): Update.
2851
fee354ee
TT
28522014-06-16 Tom Tromey <tromey@redhat.com>
2853
2854 * target.h (struct target_ops) <to_disconnect>: Make parameter
2855 const.
2856 (target_disconnect): Update.
2857 * target.c (target_disconnect): Make "args" const.
2858 * target-delegates.c: Rebuild.
2859 * remote.c (remote_disconnect): Update.
2860 * record.h (record_disconnect): Update.
2861 * record.c (record_disconnect): Update.
2862 * inf-child.c (inf_child_disconnect): Update.
2863
a30bf1f1
TT
28642014-06-16 Tom Tromey <tromey@redhat.com>
2865
2866 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2867 * target.c (debug_to_rcmd, default_rcmd): Update.
2868 * target-delegates.c: Rebuild.
2869 * remote.c (remote_rcmd): Update.
2870 * monitor.c (monitor_rcmd): Update.
2871
d03de421
PA
28722014-06-16 Pedro Alves <palves@redhat.com>
2873
2874 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2875 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2876 have OBJF_SHARED set.
2877 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2878 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2879 instead of OBJF_USERLOADED.
2880 * objfiles.h (OBJF_SHARED): Update comment.
2881 (userloaded_objfile_contains_address_p): Rename to ...
2882 (shared_objfile_contains_address_p): ... this, and update
2883 comments.
2884 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2885 new objfile.
2886 (remove_symbol_file_command): Skip objfiles that don't have
2887 OBJF_SHARED set.
2888
99f4262f
TT
28892014-06-16 Tom Tromey <tromey@redhat.com>
2890
2891 * minsyms.h (prim_record_minimal_symbol)
2892 (prim_record_minimal_symbol_and_info): Update comments.
2893
97d66cc6
EZ
28942014-06-14 Eli Zaretskii <eliz@gnu.org>
2895
2896 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2897 or --without-guile, according to how GDB was built.
2898
635c7e8a
TT
28992014-06-13 Tom Tromey <tromey@redhat.com>
2900
2901 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2902 to help_list.
2903 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2904 to help_list.
2905 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2906 help_list.
2907 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2908 help_list.Pass all_commands, not -1, to help_list.
2909 * cli/cli-dump.c (dump_command, append_command)
2910 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2911 (binary_dump_command, binary_append_command): Pass all_commands,
2912 not -1, to help_list.
2913 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2914 -1, to help_list.
2915 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2916 -1, to help_list.
2917 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2918 help_list.
2919 * top.c (set_history): Pass all_commands, not -1, to help_list.
2920 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2921 all_commands, not -1, to help_list.
2922 * symfile.c (overlay_command): Pass all_commands, not -1, to
2923 help_list.
2924 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2925 help_list.
2926 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2927 help_list.
2928 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2929 -1, to help_list.
2930 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2931 not -1, to help_list.
2932 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2933 not -1, to help_list.
2934 * maint.c (maintenance_command, maintenance_info_command)
2935 (maintenance_print_command, maintenance_set_cmd): Pass
2936 all_commands, not -1, to help_list.
2937 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2938 help_list.
2939 * language.c (set_check): Pass all_commands, not -1, to help_list.
2940 * infcmd.c (unset_command): Pass all_commands, not -1, to
2941 help_list.
2942 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2943 help_list.
2944 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2945 help_list.
2946 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2947 help_list.
2948 * breakpoint.c (save_command): Pass all_commands, not -1, to
2949 help_list.
2950 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2951 all_commands, not -1, to help_list.
2952
b94ade42
PL
29532014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2954
2955 * regcache.c (struct register_to_invalidate): New structure.
2956 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2957 functions.
2958 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2959
31f628ae
YQ
29602014-06-12 Yao Qi <yao@codesourcery.com>
2961
2962 * varobj.c (varobj_get_num_children): Call
2963 varobj_is_dynamic_p.
2964 (varobj_list_children): Likewise.
2965 (varobj_update): Likewise. Update comments.
2966
cde5ef40
YQ
29672014-06-12 Yao Qi <yao@codesourcery.com>
2968
2969 * varobj.c (varobj_pretty_printed_p): Rename to ...
2970 (varobj_is_dynamic_p): ... this. New function.
2971 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2972 (varobj_is_dynamic_p): Declare.
2973 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2974 (mi_print_value_p, varobj_update_one): Likewise.
2975
576ea091
YQ
29762014-06-12 Pedro Alves <pedro@codesourcery.com>
2977 Yao Qi <yao@codesourcery.com>
2978
2979 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2980 (varobj_get_iterator): Wrap up code for pretty-printer by
2981 "#if HAVE_PYTHON" and "#endif".
2982 (update_dynamic_varobj_children): Likewise.
2983
827f100c
YQ
29842014-06-12 Pedro Alves <pedro@codesourcery.com>
2985 Yao Qi <yao@codesourcery.com>
2986
2987 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2988 gdb_python_initialized is false. Move some code from varobj.c.
2989 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2990 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2991 (struct varobj_item): Moved to varobj-iter.h".
2992 (varobj_clear_saved_item): New function.
2993 (update_dynamic_varobj_children): Move python-related code to
2994 py-varobj.c.
2995 (free_variable): Call varobj_clear_saved_item and
2996 varobj_iter_delete.
2997
e5250216
YQ
29982014-06-12 Pedro Alves <pedro@codesourcery.com>
2999 Yao Qi <yao@codesourcery.com>
3000
3001 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3002 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3003 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3004 (py-varobj.o): New rule.
3005 * python/py-varobj.c: New file.
3006 * python/python-internal.h (py_varobj_get_iterator): Declare.
3007 * varobj-iter.h: New file.
3008 * varobj.c: Include "varobj-iter.h"
3009 (struct varobj) <child_iter>: Change its type from "PyObject *"
3010 to "struct varobj_iter *".
3011 <saved_item>: Likewise.
3012 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3013 [HAVE_PYTHON] (varobj_get_iterator): New function.
3014 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3015 python-specific code to python/py-varobj.c.
3016 (install_visualizer): Call varobj_iter_delete instead of
3017 Py_XDECREF.
3018 * varobj.h (varobj_ensure_python_env): Declare.
3019
5a2e0d6e
YQ
30202014-06-12 Yao Qi <yao@codesourcery.com>
3021
3022 * varobj.c (struct varobj_item): New structure.
3023 (create_child_with_value): Update declaration.
3024 (varobj_add_child): Replace arguments 'name' and 'value' with
3025 'item'. All callers updated.
3026 (install_dynamic_child): Likewise.
3027 (update_dynamic_varobj_children): Likewise.
3028 (varobj_add_child): Likewise.
3029 (create_child_with_value): Likewise.
3030
919b9a93
JB
30312014-06-11 Joel Brobecker <brobecker@adacore.com>
3032
3033 * NEWS: Create a new section for the next release branch.
3034 Rename the section of the current branch, now that it has
3035 been cut.
3036
71a55bdf
JB
30372014-06-11 Joel Brobecker <brobecker@adacore.com>
3038
3039 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3040 * version.in: Bump version to 7.8.50.DATE-cvs.
3041
364fe1f7
PA
30422014-06-11 Pedro Alves <palves@redhat.com>
3043
3044 PR remote/17028
3045 * ser-mingw.c (net_windows_socket_check_pending): New function.
3046 (net_windows_select_thread): Ignore spurious wakeups. Use
3047 net_windows_socket_check_pending.
3048 (net_windows_wait_handle): Check for pending events with
3049 ioctlsocket, through net_windows_socket_check_pending, instead of
3050 checking the socket's event.
3051
5a6c7709
SC
30522014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3053
3054 * python/python-internal.h (gdb_PyObject_GetAttrString)
3055 (gdb_PyObject_HasAttrString): New inline function definitions.
3056 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3057 char * of the second argument to PyObject_GetAttrString.
74228e77 3058
0e58ee40
JB
30592014-06-10 Joel Brobecker <brobecker@adacore.com>
3060
3061 * serial.c (serial_write): Fix index of character to be printed
3062 in call to serial_logchar when serial debug traces are enabled.
3063
d190df30
JB
30642014-06-10 Joel Brobecker <brobecker@adacore.com>
3065
3066 * gdbtypes (resolve_dynamic_range): Add function description.
3067
b4b01d36
PA
30682014-06-09 Pedro Alves <palves@redhat.com>
3069
3070 * linux-nat.c (linux_child_follow_fork): Initialize status with
3071 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3072 inner block. Only pass the signal to PTRACE_DETACH if in pass
3073 state.
3074
3657956b
GB
30752014-06-09 Gary Benson <gbenson@redhat.com>
3076
3077 * common/signals.c (gdb_signal_from_host): Reorder to separate
3078 the always-available ANSI-standard signals from the signals that
3079 require checking.
3080 (do_gdb_signal_to_host): Likewise.
3081 * proc-events.c (signal_table): Likewise.
3082
c077881a
HZ
30832014-06-08 Hui Zhu <hui@codesourcery.com>
3084
3085 * common/linux-ptrace.c (linux_disable_event_reporting): New
3086 function.
3087 * common/linux-ptrace.h (linux_disable_event_reporting): New
3088 declaration.
3089 * linux-nat.c (linux_child_follow_fork): Do a single step before
3090 detach.
3091
4186eb54
KS
30922014-06-07 Keith Seitz <keiths@redhat.com>
3093
3094 Revert:
3095 PR c++/16253
3096 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3097 from symbol_matches_domain in symtab.c. All local callers
3098 of symbol_matches_domain updated.
3099 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3100 search STRUCT_DOMAIN.
3101 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3102 independently. standard_lookup will do that automatically.
3103 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3104 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3105 (cp_lookup_symbol_in_namespace): Likewise.
3106 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3107 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3108 may return a STRUCT_DOMAIN match.
3109 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3110 * cp-support.c: Include language.h.
3111 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3112 VAR_DOMAIN.
3113 * psymtab.c (match_partial_symbol): Compare the requested
3114 domain with the symbol's domain directly.
3115 (lookup_partial_symbol): Likewise.
3116 * symtab.c (lookup_symbol_in_language): Explain when/why
3117 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3118 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3119 appropriate languages.
3120 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3121 and moved to ada-lang.c
3122 (lookup_block_symbol): Explain that this function only returns
3123 symbol matching the requested DOMAIN.
3124 Compare the requested domain with the symbol's domain directly.
3125 (iterate_over_symbols): Compare the requested domain with the
3126 symbol's domain directly.
3127 * symtab.h (symbol_matches_domain): Remove.
3128
25326a28 31292014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3130
3131 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3132 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3133 (gdbscm_guile_version_is_at_least): Declare.
3134 (gdbscm_scm_string_to_int): Declare.
3135 * guile/guile.c (gdbscm_guile_major_version): New global.
3136 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3137 (guile_datadir): New static global.
3138 (gdbscm_guile_data_directory): New function.
3139 (initialize_scheme_side): Update.
3140 (misc_guile_functions): Add guile-data-directory.
3141 (initialize_gdb_module): Fetch guile version number.
3142 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3143 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3144 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3145 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3146 comments.
3147 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3148 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3149 * guile/scm-value.c (gdbscm_value_to_string): Only call
3150 scm_port_conversion_strategy if Guile version >= 2.0.6.
3151
0a770bb2 31522014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3153
3154 * main.c (print_gdb_help): Add -q and --silent.
3155
73ba372c
GB
31562014-06-06 Gary Benson <gbenson@redhat.com>
3157
3158 * common/signals.c: Remove preprocessor conditionals for
3159 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3160 SIGSEGV and SIGTERM.
3161 * proc-events.c: Likewise.
3162
c33b2f12
MM
31632014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3164
3165 * symfile.c (symfile_free_objfile): Remove restriction to
3166 OBJF_USERLOADED.
3167 * symfile-mem.c (symbol_file_add_from_memory): Call
3168 add_target_sections_of_objfile.
3169
fb934770
LC
31702014-06-05 Ludovic Courtès <ludo@gnu.org>
3171
3172 * guile/scm-value.c (gdbscm_history_append_x): Use
3173 'vlscm_get_value_smob_arg_unsafe' instead of
3174 'vlscm_scm_to_value'.
3175
6ef284bd
SM
31762014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3177
3178 PR mi/15806
3179 * utils.c (printchar): Don't escape at all if quoter is NUL.
3180 Update function documentation to clarify effect of parameter
3181 QUOTER.
3182 * remote.c (escape_buffer): Pass '\\' as the quoter to
3183 fputstrn_unfiltered.
3184 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3185 generate the output.
3186 (mi_solib_unloaded): Same.
3187
270c9937
JB
31882014-06-05 Joel Brobecker <brobecker@adacore.com>
3189
3190 * development.sh: Delete.
3191 * Makefile.in (config.status): Adjust dependency on development.sh.
3192 * configure.ac: Adjust development.sh source call.
3193 * configure: Regenerate.
3194
16f691fb
DE
31952014-06-04 Doug Evans <xdje42@gmail.com>
3196
3197 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3198 is_scheme_bkpt, spec.
3199 (bpscm_make_breakpoint_smob): Initialize new members.
3200 (gdbscm_create_breakpoint_x): Split into two ...
3201 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3202 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3203 (scheme_function breakpoint_functions): Update.
3204 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3205 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3206 register-breakpoint!.
3207
ef7cab6b
JB
32082014-06-04 Joel Brobecker <brobecker@adacorer.com>
3209
3210 PR server/17023
3211 * mem-break.c (z_type_supported): Return zero if
3212 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3213
012370f6
TT
32142014-06-04 Tom Tromey <tromey@redhat.com>
3215
3216 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3217 value_from_contents_and_address_unresolved.
3218 (ada_template_to_fixed_record_type_1): Likewise.
3219 (ada_which_variant_applies): Likewise.
3220 * value.h (value_from_contents_and_address_unresolved): Declare.
3221 * value.c (value_from_contents_and_address_unresolved): New
3222 function.
3223 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3224 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3225 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3226
92e2a17f
TT
32272014-06-04 Tom Tromey <tromey@redhat.com>
3228
3229 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3230
c0939df1
TT
32312014-06-04 Tom Tromey <tromey@redhat.com>
3232
3233 * procfs.c (procfs_attach): Make "args" const.
3234 * windows-nat.c (windows_attach): Make "args" const.
3235 * nto-procfs.c (procfs_attach): Make "args" const.
3236 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3237 * go32-nat.c (go32_attach): Make "args" const.
3238 * gnu-nat.c (gnu_attach): Make "args" const.
3239 * darwin-nat.c (darwin_attach): Make "args" const.
3240 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3241 * linux-nat.c (linux_nat_attach): Make "args" const.
3242 * remote.c (extended_remote_attach_1, extended_remote_attach):
3243 Make "args" const.
3244 * target.h (struct target_ops) <to_attach>: Make "args" const.
3245 (find_default_attach): Likewise.
3246 * utils.c (parse_pid_to_attach): Make "args" const.
3247 * utils.h (parse_pid_to_attach): Update.
3248
8eaff7cd
TT
32492014-06-04 Tom Tromey <tromey@redhat.com>
3250
3251 * target-delegates.c: Rebuild.
3252 * target.c (default_thread_address_space): New function.
3253 (target_thread_address_space): Simplify.
3254 * target.h (struct target_ops) <to_thread_address_space>: Add
3255 TARGET_DEFAULT_FUNC.
3256
1913f160
DE
32572014-06-04 Doug Evans <xdje42@gmail.com>
3258
3259 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3260
70ad5bff
MM
32612014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3262
3263 * record-btrace.c: Include event-loop.h and inf-loop.h.
3264 (record_btrace_resume_exec_dir)
3265 (record_btrace_async_inferior_event_handler)
3266 (record_btrace_handle_async_inferior_event): New.
3267 (record_btrace_open): Create async event handler.
3268 (record_btrace_close): Delete async event handler.
3269 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3270 Mark async event handler.
3271 (record_btrace_execution_direction): New.
3272 (init_record_btrace_ops): Initialize to_execution_direction.
3273
b6210538
DE
32742014-06-03 Doug Evans <xdje42@gmail.com>
3275
3276 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3277 (gdbscm_make_parameter): Ditto.
3278
a5b1fd27
DE
32792014-06-03 Doug Evans <dje@google.com>
3280
3281 * exec.c (exec_close_1): Call clear_section_table instead of
3282 resize_section_table.
3283 (clear_section_table): New function.
3284 (resize_section_table): Make static. Rename arg num_added to
3285 adjustment.
3286 * exec.h (clear_section_table): Declare.
3287 (resize_section_table): Delete.
3288 * progspace.c (release_program_space): Call clear_section_table
3289 instead of resize_section_table.
3290
0c6e92a5
SC
32912014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3292
3293 * NEWS (Python Scripting): Add entry about the new xmethods
3294 feature.
3295
883964a7
SC
32962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3297
3298 * python/py-xmethods.c: New file.
3299 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3300 (objfpy_dealloc): XDECREF on the new xmethods field.
3301 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3302 field.
3303 (objfpy_get_xmethods): New function.
3304 (objfile_getset): New entry 'xmethods'.
3305 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3306 (pspy_dealloc): XDECREF on the new xmethods field.
3307 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3308 field.
3309 (pspy_get_xmethods): New function.
3310 (pspace_getset): New entry 'xmethods'.
3311 * python/python-internal.h: Add declarations for new functions.
3312 * python/python.c (_initialize_python): Invoke
3313 gdbpy_initialize_xmethods.
3314 * python/lib/gdb/__init__.py (xmethods): New
3315 attribute.
3316 * python/lib/gdb/xmethod.py: New file.
3317 * python/lib/gdb/command/xmethods.py: New file.
3318
58992dc5
SC
33192014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3320
3321 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3322 best match method returned by find_overload_match is an xmethod.
3323 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3324 the best matching operator returned by find_overload_match is an
3325 xmethod.
3326 * valops.c: #include "extension.h".
3327 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3328 Return void. The list of matching source methods is returned in
3329 "fn_list" and a vector of matching debug method workers is
3330 returned in "xm_worker_vec". Update all callers.
3331 (value_find_oload_method_list): Likewise.
3332 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3333 non-NULL, then the index of the best matching method in this
3334 vector is returned. Update all callers.
3335 (find_overload_match): Include xmethods while performing overload
3336 resolution.
3337
e81e7f5e
SC
33382014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3339
3340 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3341 * extension-priv.h (struct extension_language_ops): Add the
3342 xmethod interface.
3343 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3344 get_matching_xmethod_workers, get_xmethod_argtypes,
3345 invoke_xmethod, free_xmethod_worker,
3346 free_xmethod_worker_vec): New functions.
3347 * extension.h: #include "common/vec.h".
3348 New function declarations.
3349 (struct xmethod_worker): New struct.
3350 (VEC (xmethod_worker_ptr)): New vector type.
3351 (xmethod_worker_ptr): New typedef.
3352 (xmethod_worker_vec): Likewise.
3353 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3354 builtin_type.
3355 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3356 (struct builtin_type): New field "xmethod".
3357 * valarith.c (value_ptradd): Assert that the value argument is not
3358 lval_xcallable.
3359 * valops.c (value_must_coerce_to_target): Return 0 for
3360 lval_xcallable values.
3361 * value.c (struct value): New field XM_WORKER in the field
3362 LOCATION.
3363 (value_address, value_raw_address): Return 0 for lval_xcallable
3364 values.
3365 (set_value_address): Assert that the value is not an
3366 lval_xcallable.
3367 (value_free): Free the associated xmethod worker when freeing
3368 lval_xcallable values.
3369 (set_value_component_location): Assert that the WHOLE value is not
3370 lval_xcallable.
3371 (value_of_xmethod, call_xmethod): New functions.
3372 * value.h: Declare "struct xmethod_worker".
3373 Declare new functions value_of_xmethod, call_xmethod.
3374
ef370185
JB
33752014-06-03 Joel Brobecker <brobecker@adacore.com>
3376 Pedro Alves <palves@redhat.com>
3377
3378 PR breakpoints/17000
3379 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3380 New function, extracted from software_breakpoint_inserted_here_p.
3381 (software_breakpoint_inserted_here_p): Replace factored out code
3382 by call to find_non_raw_software_breakpoint_inserted_here.
3383 (bp_target_info_copy_insertion_state): New function.
3384 (bkpt_insert_location): Handle the case of a single-step
3385 breakpoint already inserted at the same address.
3386 (bkpt_remove_location): Handle the case of a single-step
3387 breakpoint still inserted at the same address.
3388 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3389 breakpoint already inserted at the same address.
3390 (deprecated_remove_raw_breakpoint): Handle the case of a
3391 non-raw breakpoint still inserted at the same address.
3392 (find_single_step_breakpoint): New function, extracted from
3393 single_step_breakpoint_inserted_here_p.
3394 (find_single_step_breakpoint): New function,
3395 factored out from single_step_breakpoint_inserted_here_p.
3396 (single_step_breakpoint_inserted_here_p): Reimplement.
3397
1e2ccb61
BM
33982014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3399
3400 Pushed by Joel Brobecker <brobecker@adacore.com>
3401 * source.c (show_substitute_path_command): Fix display of matching
3402 substitution rules.
3403
d3448d85
GB
34042014-06-03 Gary Benson <gbenson@redhat.com>
3405
3406 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3407
06eb1586
DE
34082014-06-02 Doug Evans <xdje42@gmail.com>
3409
3410 Add parameter support for Guile.
3411 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3412 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3413 (scm-param.o): New rule.
3414 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3415 (gdbscm_misc_error): Declare.
3416 (gdbscm_canonicalize_command_name): Declare.
3417 (gdbscm_scm_to_host_string): Declare.
3418 (gdbscm_scm_from_host_string): Declare.
3419 (gdbscm_initialize_parameters): Declare.
3420 * guile/guile.c (initialize_gdb_module): Call
3421 gdbscm_initialize_parameters.
3422 * guile/lib/gdb.scm: Export parameter symbols.
3423 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3424 cmdscm_canonicalize_name and made public. All callers updated.
3425 * guile/scm-exception.c (gdbscm_misc_error): New function.
3426 * guile/scm-param.c: New file.
3427 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3428 (gdbscm_scm_to_host_string): New function.
3429 (gdbscm_scm_from_host_string): New function.
3430 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3431
e698b8c4
DE
34322014-06-02 Doug Evans <xdje42@gmail.com>
3433
3434 Add command support for Guile.
3435 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3436 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3437 (scm-cmd.o): New rule.
3438 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3439 (gdbscm_user_error_p): Declare.
3440 (gdbscm_parse_command_name): Declare.
3441 (gdbscm_valid_command_class_p): Declare.
3442 (gdbscm_initialize_commands): Declare.
3443 * guile/guile.c (initialize_gdb_module): Call
3444 gdbscm_initialize_commands.
3445 * guile/lib/gdb.scm: Export command symbols.
3446 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3447 (throw-user-error): New function.
3448 * guile/scm-cmd.c: New file.
3449 * guile/scm-exception.c (user_error_symbol): New static global.
3450 (gdbscm_user_error_p): New function.
3451 (gdbscm_initialize_exceptions): Set user_error_symbol.
3452 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3453
fb1f94b0
PM
34542014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3455
3456 * top.c (command_loop): Handle comments here...
3457 (command_line_input): ... not here.
3458
ded03782
DE
34592014-06-02 Doug Evans <xdje42@gmail.com>
3460
3461 Add progspace support for Guile.
3462 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3463 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3464 (scm-progspace.o): New rule.
3465 * guile/guile-internal.h (pspace_smob): New typedef.
3466 (psscm_pspace_smob_pretty_printers): Declare.
3467 (psscm_pspace_smob_from_pspace): Declare.
3468 (psscm_scm_from_pspace): Declare.
3469 * guile/guile.c (initialize_gdb_module): Call
3470 gdbscm_initialize_pspaces.
3471 * guile/lib/gdb.scm: Export progspace symbols.
3472 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3473 support.
3474 (append-pretty-printer!): Ditto.
3475 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3476 Implement.
3477 * guile/scm-progspace.c: New file.
3478
397998fc
AM
34792014-06-03 Alan Modra <amodra@gmail.com>
3480
3481 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3482 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3483
6aa5f3a6
DE
34842014-06-02 Doug Evans <dje@google.com>
3485
3486 Add support for skeletonless type units.
3487 * dwarf2read.c (struct dwarf2_per_objfile): New member
3488 n_allocated_type_units.
3489 (struct dwarf2_per_objfile) <tu_stats>: New member
3490 nr_all_type_units_reallocs.
3491 (create_signatured_type_table_from_index): Initialize
3492 n_allocated_type_units
3493 (create_all_type_units): Ditto.
3494 (add_type_unit): Move up in file. New arg slot.
3495 All callers updated. Increase space for all_type_units more
3496 efficiently.
3497 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3498 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3499 (lookup_dwp_signatured_type): Ditto.
3500 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3501 All callers updated.
3502 (build_type_psymtabs_1): Leave type_unit_groups as
3503 NULL if no TUs present.
3504 (print_tu_stats): New function.
3505 (process_skeletonless_type_unit): New function.
3506 (process_dwo_file_for_skeletonless_type_units): New
3507 function.
3508 (process_skeletonless_type_units): New function.
3509 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3510 Call print tu_stats if debugging enabled.
3511
41fac0cf
PA
35122014-06-02 Pedro Alves <palves@redhat.com>
3513
3514 * breakpoint.c (build_target_command_list): Don't build a command
3515 list if we have any duplicate location that isn't a dprintf.
3516
cd1608cc
PA
35172014-06-02 Pedro Alves <palves@redhat.com>
3518
3519 * breakpoint.c (dprintf_breakpoint_hit): New function.
3520 (initialize_breakpoint_ops): Install it as dprintf's
3521 breakpoint_hit method.
3522
486ef3b9
JB
35232014-06-02 Joel Brobecker <brobecker@adacore.com>
3524
3525 * source.c (substitute_path_rule_matches): Simplify using
3526 filename_ncmp instead of FILENAME_CMP.
3527
230cd560
JB
35282014-06-02 Joel Brobecker <brobecker@adacore.com>
3529
3530 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3531
16954d5d
LC
35322014-06-01 Ludovic Courtès <ludo@gnu.org>
3533
3534 * configure.ac: When Guile is available, check for the
3535 availability of 'scm_new_smob'.
3536 * configure, config.h.in: Regenerate.
3537 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3538 function.
3539
53e8a631
AB
35402014-05-30 Andrew Burgess <aburgess@broadcom.com>
3541
3542 * frame.c (struct frame_info): Add stop_string field.
3543 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3544 (get_prev_frame_always): Old content moved into
3545 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3546 TRY_CATCH, handle MEMORY_ERROR exceptions.
3547 (frame_stop_reason_string): New function definition.
3548 * frame.h (unwind_stop_reason_to_string): Extend comment to
3549 mention frame_stop_reason_string.
3550 (frame_stop_reason_string): New function declaration.
3551 * stack.c (frame_info): Switch to frame_stop_reason_string.
3552 (backtrace_command_1): Switch to frame_stop_reason_string.
3553 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3554 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3555 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3556
70e38b8e
AB
35572014-05-30 Andrew Burgess <aburgess@broadcom.com>
3558
3559 * frame.c (frame_stop_reason_string): Rename to ...
3560 (unwind_stop_reason_to_string): this.
3561 * frame.h (frame_stop_reason_string): Rename to ...
3562 (unwind_stop_reason_to_string): this.
3563 * stack.c (frame_info): Update call to frame_stop_reason_string.
3564 (backtrace_command_1): Likewise.
3565 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3566 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3567
938f0e2f
AB
35682014-05-30 Andrew Burgess <aburgess@broadcom.com>
3569
3570 * frame.c (remove_prev_frame): New function.
3571 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3572 remove_prev_frame.
3573
a09dd441
PA
35742014-05-29 Pedro Alves <palves@redhat.com>
3575
3576 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3577 and make it const. When a single-step decays to a continue,
3578 clear 'step', not 'hw_step'. Pass whether the caller wanted
3579 to step to user_visible_resume_ptid, not what we ask the
3580 target to do.
3581
bdc36728
PA
35822014-05-29 Pedro Alves <palves@redhat.com>
3583
3584 * infrun.c (process_event_stop_test, handle_step_into_function)
3585 (handle_step_into_function_backward): Adjust.
3586 Don't set the even thread's stop_step and call stop_waiting before
3587 calling end_stepping_range. Instead do that ...
3588 (end_stepping_range): ... here. Take an ecs pointer parameter.
3589
22bcd14b
PA
35902014-05-29 Pedro Alves <palves@redhat.com>
3591
3592 * infrun.c (stop_stepping): Rename to ...
3593 (stop_waiting): ... this.
3594 (proceed): Update comment.
3595 (process_event_stop_test, handle_inferior_event)
3596 (handle_signal_stop, handle_step_into_function)
3597 (handle_step_into_function_backward): Update.
3598
4ae57c05
PA
35992014-05-29 Pedro Alves <palves@redhat.com>
3600
3601 * infcall.c (run_inferior_call): Don't check whether the current
3602 thread is running after the proceed call.
3603
329ea579
PA
36042014-05-29 Pedro Alves <palves@redhat.com>
3605 Tom Tromey <tromey@redhat.com>
3606
3607 * NEWS: Mention "maint set target-async", "set mi-async", and that
3608 background execution commands are now always available.
3609 * target.h (target_async_permitted): Update comment.
3610 * target.c (target_async_permitted, target_async_permitted_1):
3611 Default to 1.
3612 (set_target_async_command): Rename to ...
3613 (maint_set_target_async_command): ... this.
3614 (show_target_async_command): Rename to ...
3615 (maint_show_target_async_command): ... this.
3616 (_initialize_target): Adjust.
3617 * infcmd.c (prepare_execution_command): Make extern.
3618 * inferior.h (prepare_execution_command): Declare.
3619 * infrun.c (set_observer_mode): Leave target async alone.
3620 * mi/mi-interp.c (mi_interpreter_init): Install
3621 mi_on_sync_execution_done as sync_execution_done observer.
3622 (mi_on_sync_execution_done): New function.
3623 (mi_execute_command_input_handler): Don't print the prompt if we
3624 just started a synchronous command with an async target.
3625 (mi_on_resume): Check sync_execution before printing prompt.
3626 * mi/mi-main.h (mi_async_p): Declare.
3627 * mi/mi-main.c: Include gdbcmd.h.
3628 (mi_async_p): New function.
3629 (mi_async, mi_async_1): New globals.
3630 (set_mi_async_command, show_mi_async_command, mi_async): New
3631 functions.
3632 (exec_continue): Call prepare_execution_command.
3633 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3634 (mi_execute_async_cli_command): Use mi_async_p.
3635 (_initialize_mi_main): Install "set mi-async". Make
3636 "target-async" a deprecated alias.
3637
92bcb5f9
PA
36382014-05-29 Pedro Alves <palves@redhat.com>
3639
3640 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3641 (_initialize_cli_interp): Adjust.
3642 * event-loop.c: Include "observer.h".
3643 (start_event_loop): Notify 'command_error' observers instead of
3644 calling display_gdb_prompt. Remove FIXME comment.
3645 * event-top.c (display_gdb_prompt): Remove call into the
3646 interpreters.
3647 * inf-loop.c: Include "observer.h".
3648 (inferior_event_handler): Notify 'command_error' observers instead
3649 of calling display_gdb_prompt.
3650 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3651 observers instead of calling display_gdb_prompt.
3652 * interps.c (interp_set): Don't call display_gdb_prompt.
3653 (current_interp_display_prompt_p): Delete.
3654 * interps.h (interp_prompt_p): Delete declaration.
3655 (interp_prompt_p_ftype): Delete.
3656 (struct interp_procs) <prompt_proc_p>: Delete field.
3657 (current_interp_display_prompt_p): Delete declaration.
3658 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3659 (_initialize_mi_interp): Adjust.
3660 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3661 'command_error' observers.
3662 (tui_on_sync_execution_done, tui_on_command_error): New
3663 functions.
3664 (tui_display_prompt_p): Delete.
3665 (_initialize_tui_interp): Adjust.
3666
fd664c91
PA
36672014-05-29 Pedro Alves <palves@redhat.com>
3668
3669 PR gdb/13860
3670 * cli/cli-interp.c: Include infrun.h and observer.h.
3671 (cli_uiout, cli_interp): New globals.
3672 (cli_on_signal_received, cli_on_end_stepping_range)
3673 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3674 functions.
3675 (cli_interpreter_init): Install them as 'end_stepping_range',
3676 'signal_received' 'signal_exited', 'exited' and 'no_history'
3677 observers.
3678 (_initialize_cli_interp): Remove cli_interp local.
3679 * infrun.c (handle_inferior_event): Call the several stop reason
3680 observers instead of printing the stop reason directly.
3681 (end_stepping_range): New function.
3682 (print_end_stepping_range_reason, print_signal_exited_reason)
3683 (print_exited_reason, print_signal_received_reason)
3684 (print_no_history_reason): Make static, and add an uiout
3685 parameter. Print to that instead of to CURRENT_UIOUT.
3686 * infrun.h (print_end_stepping_range_reason)
3687 (print_signal_exited_reason, print_exited_reason)
3688 (print_signal_received_reason print_no_history_reason): New
3689 declarations.
3690 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3691 'mi_uiout'.
3692 <cli_uiout>: New field.
3693 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3694 uiout for CLI output. Install 'signal_received',
3695 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3696 observers.
3697 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3698 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3699 (mi_on_no_history): New functions.
3700 (ui_out_free_cleanup): Delete function.
3701 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3702 instead use the one already stored in the MI interpreter data.
3703 (mi_ui_out): Adjust.
3704 * tui/tui-interp.c: Include infrun.h and observer.h.
3705 (tui_interp): New global.
3706 (tui_on_signal_received, tui_on_end_stepping_range)
3707 (tui_on_signal_exited, tui_on_exited)
3708 (tui_on_no_history): New functions.
3709 (tui_init): Install them as 'end_stepping_range',
3710 'signal_received' 'signal_exited', 'exited' and 'no_history'
3711 observers.
3712 (_initialize_tui_interp): Delete tui_interp local.
3713
8817a6f2
PA
37142014-05-29 Pedro Alves <palves@redhat.com>
3715
3716 PR gdb/15713
3717 * linux-nat.c (linux_nat_resume_callback): Rename the second
3718 parameter to 'except'. Skip LP if it points to EXCEPT.
3719 (linux_nat_resume): Don't mark the event lwp as not stopped
3720 before resuming sibling lwps. Instead ask
3721 linux_nat_resume_callback to skip the event lwp. Mark it as not
3722 stopped after actually resuming it.
3723 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3724 resuming it.
3725 (wait_lwp): Mark the lwp as stopped here.
3726 (stop_wait_callback): Mark the lwp as not stopped right after
3727 resuming it. Don't mark lwps as stopped here.
3728 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3729 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3730
251bde03
PA
37312014-05-29 Pedro Alves <palves@redhat.com>
3732
3733 PR PR15693
3734 * infrun.c (resume): Determine how much to resume depending on
3735 whether the caller wanted a step, not whether we can hardware step
3736 the target. Mark all threads that we intend to run as running,
3737 unless we're calling an inferior function.
3738 (normal_stop): If the thread is running an infcall, don't finish
3739 thread state.
3740 * target.c (target_resume): Don't mark threads as running here.
3741
7f3c0343
JB
37422014-05-28 Joel Brobecker <brobecker@adacore.com>
3743
3744 * serial.c (_initialize_serial): Remove support for
3745 the "set remotebaud" and "show remotebaud" commands.
3746 * NEWS: Add entry documenting the removal of that command.
3747
ee34b3f9
YQ
37482014-05-28 Yao Qi <yao@codesourcery.com>
3749
3750 * charset.c: Fix typo in comments.
3751
add6c04d
GB
37522014-05-27 Gary Benson <gbenson@redhat.com>
3753
3754 * utils.c (internal_vproblem): Prompt for a bug report.
3755
92c48fc5
AW
37562014-05-26 Andy Wingo <wingo@igalia.com>
3757
3758 * guile/scm-arch.c (arscm_mark_arch_smob):
3759 * guile/scm-block.c (bkscm_mark_block_smob)
3760 (bkscm_mark_block_syms_progress_smob):
3761 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3762 * guile/scm-exception.c (exscm_mark_exception_smob):
3763 * guile/scm-frame.c (frscm_mark_frame_smob):
3764 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3765 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3766 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3767 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3768 (ppscm_mark_pretty_printer_worker_smob):
3769 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3770 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3771 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3772 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3773 mark functions.
3774 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3775 function.
3776
b2715b27
AW
37772014-05-26 Andy Wingo <wingo@igalia.com>
3778 Doug Evans <xdje42@gmail.com>
3779
3780 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3781 empty_base_class. All uses updated.
3782 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3783 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3784 Adapt all callers.
3785 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3786 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3787 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3788 (gdbscm_gsmob_has_property_p, add_property_name)
3789 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3790 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3791 (gdb-object-has-property?, gdb-object-properties): Remove.
3792 (gdb-object-kind): Renamed from gsmob-kind.
3793
214ab2da
AW
37942014-05-26 Andy Wingo <wingo@igalia.com>
3795
3796 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3797 * configure: Regenerate.
3798
589fdceb
MM
37992014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3800
3801 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3802
67b5c0c1
MM
38032014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3804
3805 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3806 (replay_memory_access_read_only, replay_memory_access_read_write)
3807 (replay_memory_access_types, replay_memory_access)
3808 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3809 (cmd_set_record_btrace, cmd_show_record_btrace)
3810 (cmd_show_replay_memory_access): New.
3811 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3812 (record_btrace_remove_breakpoint): Replace
3813 record_btrace_allow_memory_access with replay_memory_access.
3814 (_initialize_record_btrace): Add commands.
3815 * NEWS: Announce it.
3816
036cd381
RR
38172014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3818
3819 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3820
c77c1e42
RR
38212014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3822
3823 * MAINTAINERS (Write After Approval): Move self back from
3824 paper trail.
3825
45741a9c
PA
38262014-05-22 Pedro Alves <palves@redhat.com>
3827
3828 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3829 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3830 (disable_randomization, enum exec_direction_kind)
3831 (execution_direction, stop_registers, start_remote)
3832 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3833 (wait_for_inferior, normal_stop, get_last_target_status)
3834 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3835 (insert_step_resume_breakpoint_at_sal)
3836 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3837 (set_step_info, print_stop_event, signal_stop_state)
3838 (signal_print_state, signal_pass_state, signal_stop_update)
3839 (signal_print_update, signal_pass_update)
3840 (update_signals_program_target, clear_exit_convenience_vars)
3841 (displaced_step_dump_bytes, update_observer_mode)
3842 (signal_catch_update, gdb_signal_from_command): Move
3843 declarations ...
3844 * infrun.h: ... to this new file.
3845 * amd64-tdep.c: Include infrun.h.
3846 * annotate.c: Include infrun.h.
3847 * arch-utils.c: Include infrun.h.
3848 * arm-linux-tdep.c: Include infrun.h.
3849 * arm-tdep.c: Include infrun.h.
3850 * break-catch-sig.c: Include infrun.h.
3851 * breakpoint.c: Include infrun.h.
3852 * common/agent.c: Include infrun.h instead of inferior.h.
3853 * corelow.c: Include infrun.h.
3854 * event-top.c: Include infrun.h.
3855 * go32-nat.c: Include infrun.h.
3856 * i386-tdep.c: Include infrun.h.
3857 * inf-loop.c: Include infrun.h.
3858 * infcall.c: Include infrun.h.
3859 * infcmd.c: Include infrun.h.
3860 * infrun.c: Include infrun.h.
3861 * linux-fork.c: Include infrun.h.
3862 * linux-nat.c: Include infrun.h.
3863 * linux-thread-db.c: Include infrun.h.
3864 * monitor.c: Include infrun.h.
3865 * nto-tdep.c: Include infrun.h.
3866 * procfs.c: Include infrun.h.
3867 * record-btrace.c: Include infrun.h.
3868 * record-full.c: Include infrun.h.
3869 * remote-m32r-sdi.c: Include infrun.h.
3870 * remote-mips.c: Include infrun.h.
3871 * remote-notif.c: Include infrun.h.
3872 * remote-sim.c: Include infrun.h.
3873 * remote.c: Include infrun.h.
3874 * reverse.c: Include infrun.h.
3875 * rs6000-tdep.c: Include infrun.h.
3876 * s390-linux-tdep.c: Include infrun.h.
3877 * solib-irix.c: Include infrun.h.
3878 * solib-osf.c: Include infrun.h.
3879 * solib-svr4.c: Include infrun.h.
3880 * target.c: Include infrun.h.
3881 * top.c: Include infrun.h.
3882 * windows-nat.c: Include infrun.h.
3883 * mi/mi-interp.c: Include infrun.h.
3884 * mi/mi-main.c: Include infrun.h.
3885 * python/py-threadevent.c: Include infrun.h.
3886
98eb56a4
PA
38872014-05-22 Pedro Alves <palves@redhat.com>
3888
3889 * infrun.c (handle_inferior_event): Store the exit code for
3890 --return-child-result here, instead of ...
3891 (print_exited_reason): ... here.
3892
17b2616c
PA
38932014-05-21 Pedro Alves <palves@redhat.com>
3894
3895 PR gdb/13860
3896 * gdbthread.h (struct thread_control_state): New field
3897 `command_interp'.
3898 * infrun.c (follow_fork): Copy the new thread control field to the
3899 child fork thread.
3900 (clear_proceed_status_thread): Clear the new thread control field.
3901 (proceed): Set the new thread control field.
3902 * interps.h (command_interp): Declare.
3903 * interps.c (command_interpreter): New global.
3904 (command_interp): New function.
3905 (interp_exec): Set `command_interpreter' while here.
3906 * cli-out.c (cli_uiout_dtor): New function.
3907 (cli_ui_out_impl): Install it.
3908 * mi/mi-interp.c: Include cli-out.h.
3909 (mi_cmd_interpreter_exec): Add comment.
3910 (restore_current_uiout_cleanup): New function.
3911 (ui_out_free_cleanup): New function.
3912 (mi_on_normal_stop): If finishing an execution command started by
3913 a CLI command, or any kind of breakpoint-like event triggered,
3914 print the stop event to the output (CLI) stream.
3915 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3916
5166082f
PA
39172014-05-21 Pedro Alves <palves@redhat.com>
3918
3919 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3920 current source line having changed.
3921 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3922 * infrun.c (normal_stop): Adjust call to
3923 set_current_sal_from_frame.
3924 * source.c (clear_lines_listed_range): New function.
3925 (set_current_source_symtab_and_line, identify_source_line): Clear
3926 the lines listed range.
3927 (line_info): Handle the first "info line" after the current source
3928 line having changed.
3929 * stack.c (print_stack_frame): Remove center handling.
3930 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3931 center sal.line.
3932
c1ee2fb3
PA
39332014-05-21 Pedro Alves <palves@redhat.com>
3934
3935 * inf-child.c (inf_child_mourn_inferior): New function.
3936 * inf-child.h (inf_child_mourn_inferior): New declaration.
3937 * darwin-nat.c (darwin_mourn_inferior): Use
3938 inf_child_mourn_inferior.
3939 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3940 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3941 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3942 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3943 * windows-nat.c (windows_mourn_inferior): Likewise.
3944
5c6d4fb2
DE
39452014-05-21 Doug Evans <xdje42@gmail.com>
3946
250748cb 3947 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3948
4a2722c5
DE
39492014-05-21 Doug Evans <xdje42@gmail.com>
3950
17292b30 3951 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3952 (gdbscm_out_of_range_error): Ditto.
3953 (gdbscm_memory_error): Ditto.
250748cb
DE
3954 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3955 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3956 (gdbscm_out_of_range_error): Update.
3957 (gdbscm_memory_error): Update.
3958 (gdbscm_scm_to_target_string_unsafe): Delete.
3959
6a3cb8e8
PA
39602014-05-21 Pedro Alves <palves@redhat.com>
3961
3962 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3963 globals.
3964 (inf_child_open_target): New function.
3965 (inf_child_open): Use inf_child_open_target to push the target
3966 instead of erroring out.
3967 (inf_child_disconnect, inf_child_close)
3968 (inf_child_maybe_unpush_target): New functions.
3969 (inf_child_target): Install inf_child_disconnect and
3970 inf_child_close. Store a pointer to the returned object.
3971 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3972 declarations.
3973 * target.c (auto_connect_native_target): New global.
3974 (show_default_run_target): New function.
3975 (find_default_run_target): Return NULL if automatically connecting
3976 to the native target is disabled.
3977 (_initialize_target): Install set/show auto-connect-native-target.
3978 * NEWS: Mention "set auto-connect-native-target", and "target
3979 native".
3980 * linux-nat.c (super_close): New global.
3981 (linux_nat_close): Call super_close.
3982 (linux_nat_add_target): Store a pointer to the base class's
3983 to_close method.
3984 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3985 inf_child_maybe_unpush.
3986 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3987 already pushed.
3988 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3989 the inferior. Use inf_child_maybe_unpush_target.
3990 (inf_ttrace_attach): Don't push the target if it is already
3991 pushed.
3992 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3993 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3994 after mourning the inferior. Use inf_child_maybe_unpush_target.
3995 (darwin_attach_pid): Don't push the target if it is already
3996 pushed.
3997 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3998 mourning the inferior. Use inf_child_maybe_unpush_target.
3999 (gnu_detach): Use inf_child_maybe_unpush_target.
4000 * go32-nat.c (go32_create_inferior): Don't push the target if it
4001 is already pushed.
4002 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4003 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4004 (procfs_open): Rename to ...
4005 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4006 comments. Can target_preopen before changing node. Call
4007 inf_child_open_target to push the target explicitly.
4008 (procfs_attach): Don't push the target if it is already pushed.
4009 (procfs_detach): Use inf_child_maybe_unpush_target.
4010 (procfs_create_inferior): Don't push the target if it is already
4011 pushed.
4012 (nto_native_ops): New global.
4013 (procfs_open): Reimplement.
4014 (procfs_native_open): New function.
4015 (init_procfs_targets): Install procfs_native_open as to_open of
4016 "target native". Store a pointer to the "native" target in
4017 nto_native_ops.
4018 * procfs.c (procfs_attach): Don't push the target if it is already
4019 pushed.
4020 (procfs_detach): Use inf_child_maybe_unpush_target.
4021 (procfs_mourn_inferior): Only unpush the target after mourning the
4022 inferior. Use inf_child_maybe_unpush_target.
4023 (procfs_init_inferior): Don't push the target if it is already
4024 pushed.
4025 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4026 if it is already pushed.
4027
930ee1b1
PA
40282014-05-21 Pedro Alves <palves@redhat.com>
4029
4030 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4031 and "procfs" targets are now called "native" instead.
4032
1f5d1b13
PA
40332014-05-21 Pedro Alves <palves@redhat.com>
4034
4035 * go32-nat.c (go32_open): Delete.
4036 (go32_target): Don't override the to_open method.
4037
132f8e03
PA
40382014-05-21 Pedro Alves <palves@redhat.com>
4039
4040 * nto-procfs.c (procfs_can_run): New function.
4041 (nto_procfs_ops): New global.
4042 (init_procfs_targets): New, based on procfs_target. Install
4043 "target native" in addition to "target procfs".
4044 (_initialize_procfs): Call init_procfs_targets instead of adding
4045 the target here.
4046
03c136c3
PA
40472014-05-21 Pedro Alves <palves@redhat.com>
4048
4049 * windows-nat.c (windows_target): Don't override to_shortname,
4050 to_longname or to_doc.
4051
a635d0f3
PA
40522014-05-21 Pedro Alves <palves@redhat.com>
4053
4054 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4055 to_doc.
4056
4f9b5133
PA
40572014-05-21 Pedro Alves <palves@redhat.com>
4058
4059 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4060 to_shortname, to_longname or to_doc.
4061
bc85afde
PA
40622014-05-21 Pedro Alves <palves@redhat.com>
4063
4064 * go32-nat.c (go32_target): Don't override to_shortname,
4065 to_longname or to_doc.
4066
4ebfc96e
PA
40672014-05-21 Pedro Alves <palves@redhat.com>
4068
4069 * inf-child.c (inf_child_open): Remove mention of "child".
4070 (inf_child_target): Rename target to "native" instead of "child".
4071
2648dfed
AA
40722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4073
4074 * Makefile.in (SFILES): Delete "regset.c".
4075 (COMMON_OBS): Delete "regset.o".
4076 * regset.c: Remove.
4077 * regset.h (regset_alloc): Delete prototype.
4078
b13feb94
AA
40792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4080
4081 * sparc-linux-tdep.c (sparc32_linux_gregset)
4082 (sparc32_linux_fpregset): New static regset structures.
4083 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4084 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4085 'fpregset' fields.
4086 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4087 (sparc64_linux_fpregset): New static regset structures.
4088 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4089 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4090 New static regset structures.
4091 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4092 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4093 New static regset structures.
4094 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4095 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4096 New static regset structures.
4097 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4098 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4099 New static regset structures.
4100 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4101
b4fd25c9
AA
41022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4103
4104 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4105 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4106 register maps ("regmaps") from "*regset" to "*regmap". Do this
4107 for all regmap types and variables.
4108 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4109 (sparc32_linux_supply_core_gregset)
4110 (sparc32_linux_collect_core_gregset)
4111 (sparc32_linux_supply_core_fpregset)
4112 (sparc32_linux_collect_core_fpregset): Likewise.
4113 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4114 (sparc_gregmap, sparc_fpregmap): ... these.
4115 (sparc_supply_gregset, sparc_collect_gregset)
4116 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4117 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4118 (_initialize_sparc_nat): Rename regmaps.
4119 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4120 (sparc_gregmap, sparc_fpregmap): ... these.
4121 (sparc_supply_gregset, sparc_collect_gregset)
4122 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4123 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4124 Rename macros to...
4125 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4126 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4127 Likewise.
4128 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4129 Rename to...
4130 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4131 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4132 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4133 regmaps.
4134 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4135 (sparc32_bsd_fpregset): Rename to...
4136 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4137 (sparc32_bsd_fpregmap): ... these.
4138 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4139 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4140 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4141 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4142 (struct sparc_gregmap, struct sparc_fpregmap)
4143 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4144 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4145 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4146 (sparc32_supply_regset, sparc32_collect_gregset)
4147 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4148 prototypes.
4149 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4150 (sparc64_linux_ptrace_gregmap): ... this.
4151 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4152 (_initialize_sparc64_linux_nat): Rename regmaps.
4153 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4154 (sparc64_linux_core_gregmap): ... this.
4155 (sparc64_linux_supply_core_gregset)
4156 (sparc64_linux_collect_core_gregset)
4157 (sparc64_linux_supply_core_fpregset)
4158 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4159 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4160 (sparc64_sol2_fpregset): Rename to...
4161 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4162 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4163 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4164 regmaps.
4165 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4166 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4167 (sparc64_bsd_fpregset): Rename to...
4168 (struct sparc_gregmap, sparc64_sol2_gregmap)
4169 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4170 (sparc64_bsd_fpregmap): ... these.
4171 (sparc64_supply_gregset, sparc64_collect_gregset)
4172 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4173 prototypes.
4174 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4175 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4176 (sparc64fbsd_gregmap): ... this.
4177 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4178 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4179 Rename regmaps.
4180 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4181 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4182 (sparc64nbsd_collect_fpregset): Likewise.
4183 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4184 (sparc64nbsd_gregmap): ... this.
4185 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4186 regmaps.
4187 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4188 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4189 (sparc64obsd_gregmap): ... this.
4190 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4191 regmaps.
4192 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4193 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4194 (sparc32nbsd_gregmap): ... this.
4195 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4196 regmaps.
4197
8fea3224
AA
41982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4199
4200 * score-tdep.c (score7_linux_gregset): New static regset
4201 structure.
4202 (score7_linux_regset_from_core_section): Remove dynamic regset
4203 allocation.
4204 (score_gdbarch_init): Drop allocation of tdep structure.
4205 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4206
24534243
AA
42072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4208
4209 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4210 regset structures.
4211 (am33_regset_from_core_section): Remove dynamic regset
4212 allocations.
4213
b7195f27
AA
42142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4215
4216 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4217 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4218 structures.
4219 (mips_linux_regset_from_core_section): Remove dynamic regset
4220 allocations.
4221 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4222 'gregset64', 'fpregset', and 'fpregset64'.
4223 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4224 deleted tdep fields.
4225
ecc37a5a
AA
42262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4227
4228 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4229 regset structures.
4230 (amd64_regset_from_core_section): Remove dynamic regset
4231 allocations.
4232 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4233 structure.
4234 (amd64obsd_regset_from_core_section): Remove dynamic regset
4235 allocation.
4236 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4237 Likewise.
4238 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4239 x86-common regset supply function.
4240 * i386-tdep.c (i386_collect_gregset): Make static.
4241 (i386_gregset): New global regset structure.
4242 (i386_fpregset, i386_xstateregset): New static regset structures.
4243 (i386_regset_from_core_section): Remove dynamic regset
4244 allocations.
4245 (i386_gdbarch_init): Remove initialization of tdep fields
4246 'gregset', 'fpregset', and 'xstateregset'.
4247 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4248 'fpregset', and 'xstateregset'.
4249 (i386_collect_gregset): Remove prototype.
4250 (i386_gregset): New declaration.
4251 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4252 structure.
4253 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4254 allocation.
4255
b7611c43
AA
42562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4257
4258 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4259 (arm_linux_vfpregset): New static regset structures.
4260 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4261 regset structures.
4262 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4263 and 'vfpregset' fields.
4264
a069a2bd
AA
42652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4266
4267 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4268 (aarch64_linux_fpregset): New static regset structures.
4269 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4270 of regset structures.
4271 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4272 'fpregset' fields.
4273
09424cff
AA
42742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4275
4276 * regset.h (struct regset): Remove gdbarch field.
4277 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4278 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4279 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4280 Likewise.
4281 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4282 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4283 (ppc32_linux_vsxregset): Likewise.
4284 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4285 via the regcache instead of the regset.
4286 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4287 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4288 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4289 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4290 Likewise.
4291
3ca7dae4
AA
42922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4293
4294 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4295 Constify structures.
4296 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4297 (alphanbsd_aout_gregset): Likewise.
4298 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4299 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4300 Likewise.
4301 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4302 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4303 Likewise.
4304 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4305 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4306 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4307 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4308 * m88k-tdep.c (m88k_gregset): Likewise.
4309 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4310 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4311 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4312 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4313 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4314 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4315 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4316 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4317 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4318 Likewise.
4319 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4320 * sh-tdep.h (sh_corefile_gregset): Likewise.
4321 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4322 * vax-tdep.c (vax_gregset): Likewise.
4323
5876f503
JK
43242014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4325
4326 Fix TLS access for -static -pthread.
4327 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4328 (try_thread_db_load_1): Initialize it.
4329 (thread_db_get_thread_local_address): Call it if LM is zero.
4330 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4331 * target.h (struct target_ops) (to_get_thread_local_address): Add
4332 load_module_addr comment.
4333
0256a6ac
PA
43342014-05-21 Pedro Alves <palves@redhat.com>
4335
4336 * dcache.c (dcache_read_memory_partial): If reading the cache line
4337 fails, fallback to reading just the memory the caller wanted.
4338
227533ac
DE
43392014-05-20 Doug Evans <dje@google.com>
4340
4341 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4342 instead of get_current_arch.
4343
936d2992
PA
43442014-05-20 Pedro Alves <palves@redhat.com>
4345
4346 * NEWS: Mention that compare-sections now works with all targets.
4347
4348 * remote.c (PACKET_qCRC): New enum value.
4349 (remote_verify_memory): Don't send qCRC if the target has no
4350 execution. Use packet_support/packet_ok. If the target doesn't
4351 support the qCRC packet, fallback to a deep memory copy.
4352 (compare_sections_command): Say "target image" instead of "remote
4353 executable".
4354 (_initialize_remote): Add PACKET_qCRC to the list of config
4355 packets that have no associated command. Extend comment.
4356 * target.c (simple_verify_memory, default_verify_memory): New
4357 function.
4358 * target.h (struct target_ops) <to_verify_memory>: Default to
4359 default_verify_memory.
4360 (simple_verify_memory): New declaration.
4361 * target-delegates.c: Regenerate.
4362
e59fa00f
MM
43632014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4364
4365 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4366
f2205de0
HZ
43672014-05-20 Hui Zhu <hui@codesourcery.com>
4368 Yao Qi <yao@codesourcery.com>
4369
4370 PR backtrace/16558
4371 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4372 and change address of sp and pc.
4373
c4e54771
TT
43742014-05-19 Tom Tromey <tromey@redhat.com>
4375
4376 * gdbtypes.c (rank_function): Use XNEWVEC.
4377 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4378
73051182
DE
43792014-05-19 Doug Evans <dje@google.com>
4380
4381 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4382 build_type_unit_groups and moved closer to only caller. Remove
4383 arguments. All references updated. Remove outdated .gdb_index
4384 comment.
4385 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4386 build_type_psymtabs_1.
4387
8832e7e3
DE
43882014-05-19 Doug Evans <dje@google.com>
4389
4390 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4391 n_type_unit_groups, all_type_unit_groups. All uses removed.
4392 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4393 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4394 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4395 (add_type_unit_group_to_table): Delete.
4396
cd8ae15e
DE
43972014-05-19 Doug Evans <dje@google.com>
4398
4399 * eval.c (evaluate_subexp_standard): Add some comments.
4400
08f4850b
DE
44012014-05-17 Doug Evans <xdje42@gmail.com>
4402
4403 * progspace.c (remove_program_space): Delete, unused.
4404 * progspace.h (remove_program_space): Ditto.
4405
bed8455c
DE
44062014-05-17 Doug Evans <xdje42@gmail.com>
4407
4408 * inferior.c (prune_inferiors): Fix comment.
4409 (remove_inferior_command): Call prune_program_spaces.
4410
8d551b02
DE
44112014-05-16 Doug Evans <dje@google.com>
4412
4413 New command line option -D.
4414 * NEWS: Mention it.
4415 * main.c (set_gdb_data_directory): New function.
4416 (captured_main): Recognize -D. Flag error for --data-directory "".
4417 Call set_gdb_data_directory.
4418 (print_gdb_help): Print --data-directory, -D.
4419 * main.h (set_gdb_data_directory): Declare.
4420 * top.c (staged_gdb_datadir): New static global.
4421 (set_gdb_datadir): Call set_gdb_data_directory
4422 (show_gdb_datadir): New function.
4423 (init_main): Update init of data-directory parameter.
4424
18848e28
GF
44252014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4426
4427 Import the "dirfd" gnulib module.
4428 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4429 * gnulib/aclocal.m4: Update.
4430 * gnulib/config.in: Update.
4431 * gnulib/configure: Update.
4432 * gnulib/import/Makefile.am: Update.
4433 * gnulib/import/Makefile.in: Update.
4434 * gnulib/import/dirfd.c: New.
4435 * gnulib/import/m4/dirfd.m4: New.
4436 * gnulib/import/m4/gnulib-cache.m4: Update.
4437 * gnulib/import/m4/gnulib-comp.m4: Update.
4438
95c64f92
YQ
44392014-05-16 Pierre Muller <muller@sourceware.org>
4440 Yao Qi <yao@codesourcery.com>
4441
4442 * valprint.c (print_wchar): Move the code on checking whether
4443 W is a printable wide char to the default branch of switch
4444 statement below. Call wchar_printable instead of gdb_iswprint.
4445
cac395ea
TM
44462014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4447
19679eca 4448 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4449 ldr.w and ldrd instructions.
4450
83655187
DE
44512014-05-15 Doug Evans <dje@google.com>
4452
4453 * dwarf2read.c (read_structure_type): Delete outdated comments.
4454
dd756689
TT
44552014-05-14 Tom Tromey <tromey@redhat.com>
4456
4457 * macrocmd.c (print_macro_definition): Reindent.
4458
75ddda77
DE
44592014-05-13 Doug Evans <xdje42@gmail.com>
4460
4461 * python/py-cmd.c (cmdpy_completer): Add comment.
4462 (completers): Make const.
4463
b0f16a3e
SM
44642014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4465
4466 * infrun.c (resume): Remove should_resume (unused). Move up
4467 declaration of resume_ptid.
4468
033c3379
TT
44692014-05-13 Tom Tromey <tromey@redhat.com>
4470
4471 * language.h (unop_type_check): Remove.
4472 (binop_type_check): Don't declare.
4473
9b44a3a5
AA
44742014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4475
4476 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4477 call to regcache_raw_collect.
4478
303a33fa
SM
44792014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4480
4481 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4482 mi_console->quote as the quoting character.
4483
196100a0
SM
44842014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4485
4486 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4487
f989a1c8
TT
44882014-04-29 Tom Tromey <tromey@redhat.com>
4489
4490 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4491 "show debug varobj".
4492
9404b58f
KM
44932014-05-07 Kyle McMartin <kyle@redhat.com>
4494
4495 Pushed by Joel Brobecker <brobecker@adacore.com>.
4496 * aarch64-tdep.c (aarch64_software_single_step): New function.
4497 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4498 with aarch64_software_single_step.
4499
5e49ba57
JB
45002014-05-05 Joel Brobecker <brobecker@adacore.com>
4501
4502 GDB 7.7.1 released.
4503
c888a17d
KS
45042014-05-05 Keith Seitz <keiths@redhat.com>
4505
4506 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4507 variable or history value is successfully parsed.
4508
290a839c
YQ
45092014-05-05 Yao Qi <yao@codesourcery.com>
4510 Pedro Alves <palves@redhat.com>
4511
4512 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4513 address of blocks that intersects the requested range. Trim
4514 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4515 sections.
4516 * ctf.c (ctf_xfer_partial): Likewise.
4517
91256dc2
YQ
45182014-05-05 Yao Qi <yao@codesourcery.com>
4519
4520 * printcmd.c (display_command): Remove the check to
4521 target_has_execution.
4522
07284463
MK
45232014-05-03 Mark Kettenis <kettenis@gnu.org>
4524
4525 * ppcobsd-nat.c: Include "obsd-nat.h".
4526 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4527 add_target.
4528 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4529
30a1e6cc
SDJ
45302014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4531
4532 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4533 and 16-bit signed and unsigned arguments. Update comment.
4534 (stap_parse_probe_arguments): Extend code to handle such
4535 arguments. Use warning instead of complaint to notify about
4536 unrecognized bitness.
4537
f33da99a
SDJ
45382014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4539
4540 PR breakpoints/16889
4541 * stap-probe.c (stap_parse_probe_arguments): Simplify
4542 check for non-prefixed probes (i.e., probes whose
4543 arguments do not start with "N@"). Always set the
4544 argument type to a sane value.
4545
95cf3b38
DT
45462014-05-01 David Taylor <dtaylor@emc.com>
4547
4548 * remote.c (compare_sections_command): Add -r option to compare
4549 all loadable read-only sections.
4550
1cfdf534
SC
45512014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4552
4553 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4554 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4555 Update all callers.
4556 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4557 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4558 Remove unused CORE_ADDR argument. Update all callers.
4559
ca4f7f8b
PA
45602014-04-29 Pedro Alves <palves@redhat.com>
4561
4562 * remote.c (struct packet_config) <detect>: Extend comment.
4563 (add_packet_config_cmd): Don't set the config's detect or support
4564 fields here.
4565 (init_all_packet_configs): Also initialize the config's 'detect'
4566 field.
4567 (reset_all_packet_configs_support): New function.
4568 (remote_open_1): Call reset_all_packet_configs_support instead of
4569 init_all_packet_configs.
4570 (_initialize_remote): Initialize all packet configs. Assert that
4571 all packets have an associated command, except a few known
4572 outliers.
4573
11c1ba78
JB
45742014-04-28 Joel Brobecker <brobecker@adacore.com>
4575
4576 * dwarf2read.c (read_subrange_type): Handle dynamic
4577 DW_AT_lower_bound attributes.
4578
8739bc53
JB
45792014-04-28 Joel Brobecker <brobecker@adacore.com>
4580
4581 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4582 dynamic bounds before computing its upper bound.
4583 (ada_discrete_type_low_bound): Same as above with the lower bound.
4584
6f8a3220
JB
45852014-04-28 Joel Brobecker <brobecker@adacore.com>
4586
4587 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4588 range types. Adjust the array handling implementation to
4589 take advantage of this change.
4590 (resolve_dynamic_range): New function, mostly extracted from
4591 resolve_dynamic_bounds.
4592 (resolve_dynamic_array): New function, mostly extracted from
4593 resolve_dynamic_bounds.
4594 (resolve_dynamic_bounds): Delete.
4595 (resolve_dynamic_type): Reimplement. Add handling of
4596 TYPE_CODE_RANGE types.
4597
4d072ce4
JB
45982014-04-28 Joel Brobecker <brobecker@adacore.com>
4599
4600 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4601 handling of parallel ___XA types.
4602
52865325
JB
46032014-04-28 Joel Brobecker <brobecker@adacore.com>
4604
4605 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4606 unnecessary second call to static_unwrap_type.
4607
433e77fa
HZ
46082014-04-27 Hui Zhu <hui@codesourcery.com>
4609
4610 * stack.c (print_frame_info): Call do_gdb_disassembly with
4611 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4612
b51a69ee
DE
46132014-04-26 Doug Evans <xdje42@gmail.com>
4614
4615 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4616
7ae1a6a6
PA
46172014-04-25 Pedro Alves <palves@redhat.com>
4618
4619 PR server/16255
4620 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4621 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4622 and newline from built string.
4623 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4624 (linux_ptrace_attach_fail_reason): ... this.
4625 * linux-nat.c (linux_nat_attach): Adjust to use
4626 linux_ptrace_attach_fail_reason.
4627
4082afcc
PA
46282014-04-25 Pedro Alves <palves@redhat.com>
4629
4630 * remote.c (struct remote_state): Remove multi_process_aware,
4631 non_stop_aware, cond_tracepoints, cond_breakpoints,
4632 breakpoint_commands, fast_tracepoints, static_tracepoints,
4633 install_in_trace, disconnected_tracing,
4634 enable_disable_tracepoints, string_tracing, and
4635 augmented_libraries_svr4_read fields.
4636 (remote_multi_process_p): Move further below in the file.
4637 (struct packet_config): Add comments.
4638 (update_packet_config): Delete function.
4639 (show_packet_config_cmd): Use packet_config_support.
4640 (add_packet_config_cmd): Use NULL as set callback.
4641 (packet_ok): "set remote foo-packet"-style commands no longer
4642 change config->supported -- adjust.
4643 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4644 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4645 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4646 (PACKET_QNonStop, PACKET_multiprocess_feature)
4647 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4648 (PACKET_DisconnectedTracing_feature)
4649 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4650 (set_remote_protocol_packet_cmd): Delete function.
4651 (packet_config_support, packet_support): New functions.
4652 (set_remote_protocol_Z_packet_cmd): Don't call
4653 update_packet_config.
4654 (remote_query_attached, remote_pass_signals)
4655 (remote_program_signals, remote_threads_info)
4656 (remote_threads_extra_info, remote_start_remote): Use
4657 packet_support.
4658 (remote_start_remote): Use packet_config_support and
4659 packet_support.
4660 (init_all_packet_configs): Set all packets to unknown support,
4661 instead of calling update_packet_config.
4662 (remote_check_symbols): Use packet_support.
4663 (remote_supported_packet): Unconditionally set the packet config's
4664 support status.
4665 (remote_multi_process_feature, remote_non_stop_feature)
4666 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4667 (remote_breakpoint_commands_feature)
4668 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4669 (remote_install_in_trace_feature)
4670 (remote_disconnected_tracing_feature)
4671 (remote_enable_disable_tracepoint_feature)
4672 (remote_string_tracing_feature)
4673 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4674 (remote_protocol_features): Adjust to use remote_supported_packet
4675 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4676 "ConditionalTracepoints", "ConditionalBreakpoints",
4677 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4678 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4679 "EnableDisableTracepoints", and "tracenz".
4680 (remote_query_supported): Use packet_support.
4681 (remote_open_1): Adjust.
4682 (extended_remote_attach_1): Use packet_support. Switch on the
4683 result of packet_ok instead of checking whether the packet ended
4684 up disabled.
4685 (remote_vcont_resume): Use packet_support.
4686 (remote_resume, remote_stop_ns, fetch_register_using_p)
4687 (remote_prepare_to_store, store_register_using_P)
4688 (check_binary_download, remote_write_bytes): Use packet_support.
4689 (remote_vkill): Use packet_support. Switch on the result of
4690 packet_ok instead of checking whether the packet ended up
4691 disabled.
4692 (extended_remote_supports_disable_randomization): Use
4693 packet_support.
4694 (extended_remote_run): Switch on the result of packet_ok instead
4695 of checking whether the packet ended up disabled.
4696 (remote_insert_breakpoint, remote_remove_breakpoint)
4697 (remote_insert_watchpoint, remote_remove_watchpoint)
4698 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4699 packet_support.
4700 (remote_search_memory): Use packet_config_support.
4701 (remote_get_thread_local_address, remote_get_tib_address)
4702 (remote_hostio_send_command, remote_can_execute_reverse): Use
4703 packet_support.
4704 (remote_supports_cond_tracepoints)
4705 (remote_supports_cond_breakpoints)
4706 (remote_supports_fast_tracepoints)
4707 (remote_supports_static_tracepoints)
4708 (remote_supports_install_in_trace)
4709 (remote_supports_enable_disable_tracepoint)
4710 (remote_supports_string_tracing)
4711 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4712 the packet config says the feature is enabled or disabled.
4713 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4714 (remote_get_trace_status): Use packet_support.
4715 (remote_set_disconnected_tracing): Adjust to check whether the
4716 feature is enabled with packet_support.
4717 (remote_set_trace_buffer_size, remote_use_agent)
4718 (remote_can_use_agent, remote_supports_btrace): Use
4719 packet_support.
4720 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4721 Use packet_config_support.
4722 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4723 the packet config says the feature is enabled or disabled.
4724 (set_range_stepping): Use packet_support.
4725
bdb52a22
TT
47262014-04-25 Tom Tromey <tromey@redhat.com>
4727
4728 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4729 argument.
4730
e9475ead
SA
47312014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4732
4733 * NEWS: Mention support for C99 variable length arrays.
4734
82eacd52
JB
47352014-04-24 Joel Brobecker <brobecker@adacore.com>
4736
4737 * ada-lang.c (standard_exc): Expand introductory comment.
4738
01f9f808
MS
47392014-04-24 Michael Sturm <michael.sturm@mintel.com>
4740 Walfred Tedeschi <walfred.tedeschi@intel.com>
4741
4742 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4743 AVX512 registers.
4744 (amd64_linux_read_description): Add code to handle AVX512 xstate
4745 mask and return respective tdesc.
4746 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4747 and features/i386/x32-avx512-linux.c.
4748 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4749 (amd64_linux_core_read_description): Add code to handle AVX512
4750 xstate mask and return respective tdesc.
4751 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4752 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4753 calculation.
4754 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4755 (tdesc_amd64_avx512_linux): New prototype.
4756 (tdesc_x32_avx512_linux): Likewise.
4757 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4758 features/i386/x32-avx512.c.
4759 (amd64_ymm_avx512_names): New register names for pseudo
4760 registers YMM16-31.
4761 (amd64_ymmh_avx512_names): New register names for raw registers
4762 YMMH16-31.
4763 (amd64_k_names): New register names for K registers.
4764 (amd64_zmmh_names): New register names for ZMM raw registers.
4765 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4766 (amd64_xmm_avx512_names): New register names for XMM16-31
4767 registers.
4768 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4769 registers.
4770 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4771 if feature is present.
4772 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4773 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4774 (AMD64_NUM_REGS): Adjust to new number of registers.
4775 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4776 registers supplied via XSTATE by AVX512 registers.
4777 (i386_linux_read_description): Add case for AVX512.
4778 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4779 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4780 (i386_linux_core_read_description): Add case for AVX512.
4781 (i386_linux_init_abi): Install supported register note section
4782 for AVX512.
4783 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4784 AVX512.
4785 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4786 registers to be number of zmm7h + 1.
4787 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4788 * i386-tdep.c: Include features/i386/i386-avx512.c.
4789 (i386_zmm_names): Add ZMM pseudo register names array.
4790 (i386_zmmh_names): Add ZMM raw register names array.
4791 (i386_k_names): Add K raw register names array.
4792 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4793 registers. AVX512 has 16 more ZMM registers than there are YMM
4794 registers.
4795 (i386_zmmh_regnum_p): Add function to look up register number of
4796 ZMM raw registers.
4797 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4798 (i386_k_regnum_p): Likewise for K raw registers.
4799 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4800 registers added by AVX512.
4801 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4802 registers added by AVX512.
4803 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4804 added by AVX512.
4805 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4806 (i386_pseudo_register_name): Add ZMM pseudo registers.
4807 (i386_zmm_type): Construct and return vector registers type for ZMM
4808 registers.
4809 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4810 ZMM0-31 pseudo registers and K registers.
4811 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4812 and YMM16-31 registers from register cache.
4813 (i386_pseudo_register_write): Add code to write K, ZMM and
4814 YMM16-31 registers.
4815 (i386_register_reggroup_p): Add code to include/exclude AVX512
4816 registers in/from respective register groups.
4817 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4818 registers if feature is present in xcr0.
4819 (i386_gdbarch_init): Add code to initialize AVX512 feature
4820 variables in tdep structure, wire in pseudo registers and call
4821 initialize_tdesc_i386_avx512.
4822 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4823 variables.
4824 (i386_regnum): Add AVX512 registers.
4825 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4826 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4827 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4828 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4829 512 bits wide.
4830 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4831 (i386_ymm_avx512_regnum_p): Likewise.
4832 (i386_k_regnum_p): Likewise.
4833 (i386_zmm_regnum_p): Likewise.
4834 (i386_zmmh_regnum_p): Likewise.
4835 * i387-tdep.c : Update year in copyright notice.
4836 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4837 XSAVE buffer.
4838 (XSAVE_YMM_AVX512_ADDR): New macro.
4839 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4840 XSAVE buffer.
4841 (XSAVE_XMM_AVX512_ADDR): New macro.
4842 (xsave_avx512_k_offset): New table for K register offsets in
4843 XSAVE buffer.
4844 (XSAVE_AVX512_K_ADDR): New macro.
4845 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4846 in XSAVE buffer.
4847 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4848 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4849 buffer.
4850 (i387_collect_xsave): Add code to collect AVX512 registers from
4851 XSAVE buffer.
4852 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4853 of XMM16-31 registers.
4854 (I387_NUM_K_REGS): New define for number of K registers.
4855 (I387_K0_REGNUM): New define for K0 register number.
4856 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4857 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4858 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4859 registers.
4860 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4861 (I387_XMM16_REGNUM): New define for XMM16 register number.
4862 (I387_YMM0_REGNUM): New define for YMM0 register number.
4863 (I387_KEND_REGNUM): New define for last K register number.
4864 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4865 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4866 number.
4867 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4868 number.
4869 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4870 size.
4871 * features/Makefile: Add AVX512 related files.
4872 * features/i386/32bit-avx512.xml: New file.
4873 * features/i386/64bit-avx512.xml: Likewise.
4874 * features/i386/amd64-avx512-linux.c: Likewise.
4875 * features/i386/amd64-avx512-linux.xml: Likewise.
4876 * features/i386/amd64-avx512.c: Likewise.
4877 * features/i386/amd64-avx512.xml: Likewise.
4878 * features/i386/i386-avx512-linux.c: Likewise.
4879 * features/i386/i386-avx512-linux.xml: Likewise.
4880 * features/i386/i386-avx512.c: Likewise.
4881 * features/i386/i386-avx512.xml: Likewise.
4882 * features/i386/x32-avx512-linux.c: Likewise.
4883 * features/i386/x32-avx512-linux.xml: Likewise.
4884 * features/i386/x32-avx512.c: Likewise.
4885 * features/i386/x32-avx512.xml: Likewise.
4886 * regformats/i386/amd64-avx512-linux.dat: New file.
4887 * regformats/i386/amd64-avx512.dat: Likewise.
4888 * regformats/i386/i386-avx512-linux.dat: Likewise.
4889 * regformats/i386/i386-avx512.dat: Likewise.
4890 * regformats/i386/x32-avx512-linux.dat: Likewise.
4891 * regformats/i386/x32-avx512.dat: Likewise.
4892 * NEWS: Add note about new support for AVX512.
4893
4894
08351840
PA
48952014-04-23 Pedro Alves <palves@redhat.com>
4896
4897 * breakpoint.c (insert_bp_location): Tolerate errors if the
4898 breakpoint is set in a user-loaded objfile.
4899 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4900 location is marked shlib_disabled. If the breakpoint is set in a
4901 user-loaded objfile is a GDB-side memory breakpoint, validate it
4902 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4903 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4904 flag.
4905 * mem-break.c (memory_validate_breakpoint): New function.
4906 * objfiles.c (userloaded_objfile_contains_address_p): New
4907 function.
4908 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4909 * target.h (memory_validate_breakpoint): New declaration.
4910
076855f9
PA
49112014-04-23 Pedro Alves <palves@redhat.com>
4912
4913 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4914 the breakpoint is set in a shared library, only suppress
4915 errors for software breakpoints, not hardware breakpoints.
4916
483805cf
PA
49172014-04-22 Pedro Alves <palves@redhat.com>
4918
4919 * infrun.c (schedlock_applies): New function, factored out from
4920 find_thread_needs_step_over.
4921 (find_thread_needs_step_over): Use it.
4922 (switch_back_to_stepped_thread): Always clear trap_expected if the
4923 step over is finished. Return early if scheduler locking applies.
4924 Look for the stepping thread and a potential step-over thread with
4925 a single loop.
4926 (currently_stepping_or_nexting_callback): Delete.
4927
a75fef0e
NC
49282014-04-22 Nick Clifton <nickc@redhat.com>
4929
4930 * NEWS: Mention that ARM sim now supports tracing.
4931
48b6e87e
YQ
49322014-04-22 Yao Qi <yao@codesourcery.com>
4933
4934 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4935 to ...
4936 * tracefile.c (tracefile_fetch_registers): ... it. New
4937 function.
4938 * tracefile.h (tracefile_fetch_registers): Declare.
4939 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4940 tracefile_fetch_registers.
4941
17617f2d
EZ
49422014-04-19 Eli Zaretskii <eliz@gnu.org>
4943
4944 PR gdb/14018
4945 * windows-nat.c (thread_rec): Don't display a warning when
4946 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4947 fails for any reason, set th->suspended to -1, so that we don't
4948 try to resume such a thread. Also, don't return NULL in these
4949 cases, to avoid completely ruin the session due to "PC register is
4950 not available" error.
4951 (do_windows_fetch_inferior_registers): Check errors in
4952 GetThreadContext call.
4953 (windows_continue): Accept an additional argument KILLED; if not
4954 zero, ignore errors in the SetThreadContext call, since the
4955 inferior was killed and is shutting down.
4956 (windows_resume, get_windows_debug_event)
4957 (windows_create_inferior, windows_mourn_inferior)
4958 (windows_kill_inferior): All callers of windows_continue changed
4959 to adjust to its new calling sequence.
4960
5723a6fd
YQ
49612014-04-19 Yao Qi <yao@codesourcery.com>
4962
4963 * ctf.c (ctf_open): Call post_create_inferior.
4964
614d5099
YQ
49652014-04-19 Yao Qi <yao@codesourcery.com>
4966
4967 * ctf.c (handle_id): New static variable.
4968 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4969 value. Get the declaration of event "register" and get length
4970 of field "contents".
4971
dac3e710
YQ
49722014-04-19 Yao Qi <yao@codesourcery.com>
4973
4974 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4975
2bca57ba
SC
49762014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4977
4978 * valops.c (oload_method_static): Remove unnecessary argument
4979 METHOD. Update all callers.
4980
51d48146
PA
49812014-04-18 Pedro alves <palves@redhat.com>
4982 Tom Tromey <tromey@redhat.com>
4983
4984 PR backtrace/15558
4985 * frame.c (get_prev_frame_1): Rename to ...
4986 (get_prev_frame_always): ... this, and make extern. Adjust.
4987 (skip_artificial_frames): Use get_prev_frame_always.
4988 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4989 (get_frame_unwind_stop_reason): Adjust to rename.
4990 * frame.h (get_prev_frame_always): Declare.
4991 * inline-frame.c: Include frame.h.
4992 (inline_frame_this_id): Use get_prev_frame_always.
4993
1bdad2e0
TG
49942014-04-18 Tristan Gingold <gingold@adacore.com>
4995
4996 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4997 code by using bfd_mach_o_get_base_address.
4998
7ce16bd4
UW
49992014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5000
5001 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5002 (spu_ax_pseudo_register_collect): New function.
5003 (spu_ax_pseudo_register_push_stack): Likewise.
5004 (spu_dwarf_reg_to_regnum): Likewise.
5005 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5006
2ed3c037
UW
50072014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5008
5009 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5010 Replace FRAME argument with FRAME_ID.
5011 * gdbarch.c, gdbarch.h: Regenerate.
5012 * findvar.c (default_value_from_register): Add GDBARCH argument;
5013 replace FRAME by FRAME_ID. No longer call get_frame_id.
5014 (value_from_register): Update call to gdbarch_value_from_register.
5015 * value.h (default_value_from_register): Update prototype.
5016 * s390-linux-tdep.c (s390_value_from_register): Update interface
5017 and call to default_value_from_register.
5018 * spu-tdep.c (spu_value_from_register): Likewise.
5019
5020 * findvar.c (address_from_register): Remove TYPE argument.
5021 Do not call value_from_register; use gdbarch_value_from_register
5022 with null_frame_id instead.
5023 * value.h (address_from_register): Update prototype.
5024 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5025 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5026 address_from_register interface change.
5027
71e50e83
YQ
50282014-04-17 Yao Qi <yao@codesourcery.com>
5029
5030 * gdbtypes.h: Update comments to link to types and macros'
5031 definitions.
5032
7a23c549
SC
50332014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5034
5035 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5036
22869d73
KS
50372014-04-16 Keith Seitz <keiths@redhat.com>
5038
5039 PR gdb/15827
5040 * dwarf2read.c (skip_one_die): Check that all relative-offset
5041 sibling DIEs fall within range of the current reader's buffer.
5042 (read_partial_die): Likewise.
5043
c4f87ca6
KS
50442014-04-16 Keith Seitz <keiths@redhat.com>
5045
5046 PR c++/16597
5047 * cp-namespace.c (lookup_symbol_file): If the type name of
5048 `this' is NULL, return immediately.
5049
b50c8614
KS
50502014-04-14 Keith Seitz <keiths@redhat.com>
5051
5052 PR c++/16253
5053 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5054 from symbol_matches_domain in symtab.c. All local callers
5055 of symbol_matches_domain updated.
5056 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5057 search STRUCT_DOMAIN.
5058 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5059 independently. standard_lookup will do that automatically.
5060 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5061 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5062 (cp_lookup_symbol_in_namespace): Likewise.
5063 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5064 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5065 may return a STRUCT_DOMAIN match.
5066 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5067 * cp-support.c: Include language.h.
5068 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5069 VAR_DOMAIN.
5070 * psymtab.c (match_partial_symbol): Compare the requested
5071 domain with the symbol's domain directly.
5072 (lookup_partial_symbol): Likewise.
5073 * symtab.c (lookup_symbol_in_language): Explain when/why
5074 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5075 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5076 appropriate languages.
5077 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5078 and moved to ada-lang.c
5079 (lookup_block_symbol): Explain that this function only returns
5080 symbol matching the requested DOMAIN.
5081 Compare the requested domain with the symbol's domain directly.
5082 (iterate_over_symbols): Compare the requested domain with the
5083 symbol's domain directly.
5084 * symtab.h (symbol_matches_domain): Remove.
5085
3d567982
TT
50862014-04-14 Tom Tromey <tromey@redhat.com>
5087
5088 PR c++/15246:
5089 * c-exp.y (type_aggregate_p): New function.
5090 (qualified_name, classify_inner_name): Use it.
5091 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5092 and TYPE_TARGET_TYPE of an enum type.
5093 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5094 an enum type.
5095 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5096 handle TYPE_DECLARED_CLASS.
5097 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5098 types.
5099 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5100 * valops.c (enum_constant_from_type): New function.
5101 (value_aggregate_elt): Use it.
5102 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5103 TYPE_CODE_ENUM.
5104
c848d642
TT
51052014-04-14 Tom Tromey <tromey@redhat.com>
5106
5107 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5108 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5109 const.
5110 * value.h (value_aggregate_elt): Update.
5111
0626fc76
TT
51122014-04-14 Tom Tromey <tromey@redhat.com>
5113
5114 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5115
5ecaaa66
SA
51162014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5117
5118 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5119 (evaluate_subexp_standard): Pass noside argument.
5120 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5121 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5122 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5123 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5124 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5125
1612e0c0
SA
51262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5127
5128 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5129 points to a constant blob.
5130
c451ebe5
SA
51312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5132
5133 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5134 property and store it as the high bound and flag the range accordingly.
5135 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5136 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5137 * gdbtypes.h (enum range_flags): New enum.
5138 (struct range_bounds): Add flags member.
5139
1d42e4c4
SA
51402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5141
5142 * c-typeprint.c (c_type_print_varspec_suffix): Added
5143 check for not yet resolved high bound. If unresolved, print
5144 "variable length" string to the console instead of random
5145 length.
5146
9f1f738a
SA
51472014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5148
5149 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5150 value.
5151 (ada_template_to_fixed_record_type_1): Likewise.
5152 (ada_to_fixed_type_1): Likewise.
5153 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5154 (cp_print_value): Likewise.
5155 * d-valprint.c (dynamic_array_type): Likewise.
5156 * findvar.c (address_of_variable): Likewise.
5157 * jv-valprint.c (java_value_print): Likewise.
5158 * valops.c (value_ind): Likewise.
5159 * value.c (coerce_ref): Likewise.
5160
3c8452d4
SA
51612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5162
5163 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5164 value and retrieve the dynamic type size.
5165
4ad88275
SA
51662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5167
5168 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5169 passed to sizeof is dynamic evaluate the argument to compute the length.
5170
80180f79
SA
51712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5172 Joel Brobecker <brobecker@adacore.com>
5173
5174 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5175 (dwarf2_evaluate_property): New function.
5176 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5177 * dwarf2read.c (attr_to_dynamic_prop): New function.
5178 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5179 attribute.
5180 * gdbtypes.c: Include dwarf2loc.h.
5181 (is_dynamic_type): New function.
5182 (resolve_dynamic_type): New function.
5183 (resolve_dynamic_bounds): New function.
5184 (get_type_length): New function.
5185 (check_typedef): Use get_type_length to compute type length.
5186 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5187 (TYPE_LOW_BOUND_KIND): New macro.
5188 (is_dynamic_type): New function prototype.
5189 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5190 to resolve dynamic properties of the type. Update comment.
5191 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5192
a1556843
RH
51932014-04-14 Richard Henderson <rth@redhat.com>
5194
5195 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5196
0be03e84
DE
51972014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5198 Doug Evans <xdje42@gmail.com>
5199
5200 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5201 dereference TYPE_CODE_REF values.
5202
6b662e19
JB
52032014-04-11 Joel Brobecker <brobecker@adacore.com>
5204
5205 Revert the following changes due to regressions:
5206
5207 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5208 (dwarf2_evaluate_property): New function.
5209 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5210 * dwarf2read.c (attr_to_dynamic_prop): New function.
5211 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5212 attribute.
5213 * gdbtypes.c: Include dwarf2loc.h.
5214 (is_dynamic_type): New function.
5215 (resolve_dynamic_type): New function.
5216 (resolve_dynamic_bounds): New function.
5217 (get_type_length): New function.
5218 (check_typedef): Use get_type_length to compute type length.
5219 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5220 (TYPE_LOW_BOUND_KIND): New macro.
5221 (is_dynamic_type): New function prototype.
5222 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5223 to resolve dynamic properties of the type. Update comment.
5224 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5225
5226 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5227 passed to sizeof is dynamic evaluate the argument to compute the length.
5228
5229 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5230 value and retrieve the dynamic type size.
5231
5232 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5233 (ada_template_to_fixed_record_type_1): Likewise.
5234 (ada_to_fixed_type_1): Likewise.
5235 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5236 (cp_print_value): Likewise.
5237 * d-valprint.c (dynamic_array_type): Likewise.
5238 * eval.c (evaluate_subexp_with_coercion): Likewise.
5239 * findvar.c (address_of_variable): Likewise.
5240 * jv-valprint.c (java_value_print): Likewise.
5241 * valops.c (value_ind): Likewise.
5242 * value.c (coerce_ref): Likewise.
5243
5244 * c-typeprint.c (c_type_print_varspec_suffix): Added
5245 check for not yet resolved high bound. If unresolved, print
5246 "variable length" string to the console instead of random
5247 length.
5248
5249 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5250 property and store it as the high bound and flag the range accordingly.
5251 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5252 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5253 * gdbtypes.h (enum range_flags): New enum.
5254 (struct range_bounds): Add flags member.
5255
5256 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5257 points to a constant blob.
5258
5259 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5260 (evaluate_subexp_standard): Pass noside argument.
5261 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5262 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5263 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5264 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5265 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5266
245a5f0b
KS
52672014-04-11 Keith Seitz <keiths@redhat.com>
5268
5269 PR c++/16675
5270 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5271 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5272 reference types.
5273
3bce8237
SA
52742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5275
5276 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5277 (evaluate_subexp_standard): Pass noside argument.
5278 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5279 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5280 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5281 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5282 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5283
92b09522
SA
52842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5285
5286 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5287 points to a constant blob.
5288
e1969afb
SA
52892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5290
5291 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5292 property and store it as the high bound and flag the range accordingly.
5293 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5294 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5295 * gdbtypes.h (enum range_flags): New enum.
5296 (struct range_bounds): Add flags member.
5297
b86138fb
SA
52982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5299
5300 * c-typeprint.c (c_type_print_varspec_suffix): Added
5301 check for not yet resolved high bound. If unresolved, print
5302 "variable length" string to the console instead of random
5303 length.
5304
bcd629a4
SA
53052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5306
5307 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5308 (ada_template_to_fixed_record_type_1): Likewise.
5309 (ada_to_fixed_type_1): Likewise.
5310 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5311 (cp_print_value): Likewise.
5312 * d-valprint.c (dynamic_array_type): Likewise.
5313 * eval.c (evaluate_subexp_with_coercion): Likewise.
5314 * findvar.c (address_of_variable): Likewise.
5315 * jv-valprint.c (java_value_print): Likewise.
5316 * valops.c (value_ind): Likewise.
5317 * value.c (coerce_ref): Likewise.
5318
04b19544
SA
53192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5320
5321 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5322 value and retrieve the dynamic type size.
5323
26cb189f
SA
53242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5325
5326 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5327 passed to sizeof is dynamic evaluate the argument to compute the length.
5328
37c1ab67
SA
53292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5330
5331 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5332 (dwarf2_evaluate_property): New function.
5333 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5334 * dwarf2read.c (attr_to_dynamic_prop): New function.
5335 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5336 attribute.
5337 * gdbtypes.c: Include dwarf2loc.h.
5338 (is_dynamic_type): New function.
5339 (resolve_dynamic_type): New function.
5340 (resolve_dynamic_bounds): New function.
5341 (get_type_length): New function.
5342 (check_typedef): Use get_type_length to compute type length.
5343 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5344 (TYPE_LOW_BOUND_KIND): New macro.
5345 (is_dynamic_type): New function prototype.
5346 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5347 to resolve dynamic properties of the type. Update comment.
5348 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5349
729efb13
SA
53502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5351
5352 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5353 declaring high/low bounds and change uses accordingly. Call
5354 create_range_type instead of create_static_range_type.
5355 * gdbtypes.c (create_range_type): New function.
5356 (create_range_type): Convert bounds into struct bound_prop and pass
5357 them to create_range_type.
5358 * gdbtypes.h (struct bound_prop): New struct.
5359 (create_range_type): New function prototype.
5360 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5361 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5362 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5363 part of the bound.
5364 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5365
0c9c3474
SA
53662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5367
5368 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5369 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5370 * ada-lang.c: All uses of create_range_type updated.
5371 * coffread.c: All uses of create_range_type updated.
5372 * dwarf2read.c: All uses of create_range_type updated.
5373 * f-exp.y: All uses of create_range_type updated.
5374 * m2-valprint.c: All uses of create_range_type updated.
5375 * mdebugread.c: All uses of create_range_type updated.
5376 * stabsread.c: All uses of create_range_type updated.
5377 * valops.c: All uses of create_range_type updated.
5378 * valprint.c: All uses of create_range_type updated.
5379
9d497a19
PA
53802014-04-10 Pedro Alves <palves@redhat.com>
5381
5382 * breakpoint.c (single_step_breakpoints)
5383 (single_step_gdbarch): Move up in the file.
5384 (one_breakpoint_xfer_memory): New function, factored out from ...
5385 (breakpoint_xfer_memory): ... here. Also process single-step
5386 breakpoints.
5387
15a9128a
TG
53882014-04-09 Tristan Gingold <gingold@adacore.com>
5389
5390 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5391 comments.
5392 (darwin_decode_exception_message): Free port only after use.
5393
9c97a070
PL
53942014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5395
5396 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5397 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5398 when setting the size of call_length.
5399
7af389b8
SC
54002014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5401
5402 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5403 dereference TYPE_CODE_REF values.
5404
86ad98c3
JB
54052014-04-07 Joel Brobecker <brobecker@adacore.com>
5406
5407 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5408 end of warning message.
5409
b0aeadb3
DE
54102014-04-03 Doug Evans <dje@google.com>
5411
5412 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5413 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5414
5979d6b6
AM
54152014-04-02 Alan Modra <amodra@gmail.com>
5416
5417 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5418 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5419 (struct symbol_file_add_from_memory_args): Add size field.
5420 (find_vdso_size): New function.
5421 (add_vsyscall_page): Attempt to find vdso size.
5422
0d60c288
DE
54232014-04-01 Doug Evans <dje@google.com>
5424
5425 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5426
a41f2563
TG
54272014-04-01 Tristan Gingold <gingold@adacore.com>
5428
5429 * darwin-nat.c (darwin_encode_reply): Add prototype.
5430 (darwin_decode_exception_message): Reply to unknown inferiors.
5431 (darwin_decode_message): Handle message by id. Ignore message
5432 to unknown inferior.
5433 (darwin_wait): Discard unknown messages, add debug trace.
5434
11a865c8
DE
54352014-03-31 Doug Evans <dje@google.com>
5436
5437 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5438 comp_dir_string.
5439
770e7fc7
DE
54402014-03-31 Doug Evans <dje@google.com>
5441
5442 New option "set print symbol-loading".
5443 * NEWS: Mention it.
5444 * solib.c (solib_read_symbols): Only print symbol loading messages
5445 if requested.
5446 (solib_add): If symbol loading is in "brief" mode, notify user
5447 symbols are being loaded.
5448 (reload_shared_libraries_1): Ditto.
5449 * symfile.c (print_symbol_loading_off): New static global.
5450 (print_symbol_loading_brief): New static global.
5451 (print_symbol_loading_full): New static global.
5452 (print_symbol_loading_enums): New static global.
5453 (print_symbol_loading): New static global.
5454 (print_symbol_loading_p): New function.
5455 (symbol_file_add_with_addrs): Only print symbol loading messages
5456 if requested.
5457 (_initialize_symfile): Register "print symbol-loading" set/show
5458 command.
5459 * symfile.h (print_symbol_loading_p): Declare.
5460
c32c64b7
DE
54612014-03-30 Doug Evans <xdje42@gmail.com>
5462
5463 * infrun.c (set_last_target_status): New function.
5464 (handle_inferior_event): Call it.
5465
7c0bc051
DE
54662014-03-30 Doug Evans <xdje42@gmail.com>
5467
5468 * inferior.h (enum stop_kind): Improve comment.
5469
8776cfe9
JB
54702014-03-28 Joel Brobecker <brobecker@adacore.com>
5471
5472 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5473 a reference, strip the reference layer before calling
5474 the lang_ops value_has_mutated callback.
5475
410a0ff2
SDJ
54762014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5477
5478 Remove some globals from our parser.
5479 * language.c (unk_lang_parser): Add "struct parser_state"
5480 argument.
5481 * language.h (struct language_defn) <la_parser>: Likewise.
5482 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5483 (initialize_expout): Add "struct parser_state" argument.
5484 Rewrite function to use the parser state.
5485 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5486 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5487 write_exp_elt_longcst, write_exp_elt_dblcst,
5488 write_exp_elt_decfloatcst, write_exp_elt_type,
5489 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5490 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5491 write_dollar_variable): Likewise.
5492 (parse_exp_in_context_1): Use parser state.
5493 (insert_type_address_space): Add "struct parser_state" argument.
5494 Use parser state.
5495 (increase_expout_size): New function.
5496 * parser-defs.h: Forward declare "struct language_defn" and
5497 "struct parser_state".
5498 (expout, expout_size, expout_ptr): Remove extern declarations.
5499 (parse_gdbarch, parse_language): Rewrite macro declarations to
5500 accept the parser state.
5501 (struct parser_state): New struct.
5502 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5503 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5504 write_exp_elt_decfloatcst, write_exp_elt_type,
5505 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5506 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5507 write_exp_msymbol, write_dollar_variable,
5508 mark_struct_expression, insert_type_address_space): Add "struct
5509 parser_state" argument.
5510 (increase_expout_size): New function.
5511 * utils.c (do_clear_parser_state): New function.
5512 (make_cleanup_clear_parser_state): Likewise.
5513 * utils.h (make_cleanup_clear_parser_state): New function
5514 prototype.
5515 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5516 Update calls to write_exp* in order to pass the parser state.
5517 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5518 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5519 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5520 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5521 * stap-probe.c (stap_parse_register_operand): Likewise.
5522 (stap_parse_single_operand): Likewise.
5523 (stap_parse_argument_1): Likewise.
5524 (stap_parse_argument): Use parser state.
5525 * stap-probe.h: Include "parser-defs.h".
5526 (struct stap_parse_info) <pstate>: New field.
5527 * c-exp.y (parse_type): Rewrite to use parser state.
5528 (yyparse): Redefine to c_parse_internal.
5529 (pstate): New global variable.
5530 (parse_number): Add "struct parser_state" argument.
5531 (write_destructor_name): Likewise.
5532 (type_exp): Update calls to write_exp* and similars in order to
5533 use parser state.
5534 (exp1, exp, variable, qualified_name, space_identifier,
5535 typename, typebase): Likewise.
5536 (write_destructor_name, parse_number, lex_one_token,
5537 classify_name, classify_inner_name, c_parse): Add "struct
5538 parser_state" argument. Update function to use parser state.
5539 * c-lang.h: Forward declare "struct parser_state".
5540 (c_parse): Add "struct parser_state" argument.
5541 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5542 (yyparse): Redefine macro to ada_parse_internal.
5543 (pstate): New variable.
5544 (write_int, write_object_renaming, write_var_or_type,
5545 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5546 type_int, type_long, type_long_long, type_float, type_double,
5547 type_long_double, type_char, type_boolean, type_system_address):
5548 Add "struct parser_state" argument.
5549 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5550 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5551 var_or_type, aggregate, aggregate_component_list,
5552 positional_list, others, component_group,
5553 component_associations): Update calls to write_exp* and similar
5554 functions in order to use parser state.
5555 (ada_parse, write_var_from_sym, write_int,
5556 write_exp_op_with_string, write_object_renaming,
5557 find_primitive_type, write_selectors, write_ambiguous_var,
5558 write_var_or_type, write_name_assoc, type_int, type_long,
5559 type_long_long, type_float, type_double, type_long_double,
5560 type_char, type_boolean, type_system_address): Add "struct
5561 parser_state" argument. Adjust function to use parser state.
5562 * ada-lang.c (parse): Likewise.
5563 * ada-lang.h: Forward declare "struct parser_state".
5564 (ada_parse): Add "struct parser_state" argument.
5565 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5566 calls to both functions.
5567 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5568 parser state.
5569 (yyparse): Redefine macro to f_parse_internal.
5570 (pstate): New variable.
5571 (parse_number): Add "struct parser_state" argument.
5572 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5573 and similars in order to use parser state.
5574 (parse_number): Adjust code to use parser state.
5575 (yylex): Likewise.
5576 (f_parse): New function.
5577 * f-lang.h: Forward declare "struct parser_state".
5578 (f_parse): Add "struct parser_state" argument.
5579 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5580 parser state.
5581 (yyparse): Redefine macro for java_parse_internal.
5582 (pstate): New variable.
5583 (push_expression_name, push_expression_name, insert_exp): Add
5584 "struct parser_state" argument.
5585 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5586 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5587 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5588 PostIncrementExpression, PostDecrementExpression,
5589 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5590 UnaryExpressionNotPlusMinus, CastExpression,
5591 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5592 RelationalExpression, EqualityExpression, AndExpression,
5593 ExclusiveOrExpression, InclusiveOrExpression,
5594 ConditionalAndExpression, ConditionalOrExpression,
5595 ConditionalExpression, Assignment, LeftHandSide): Update
5596 calls to write_exp* and similars in order to use parser state.
5597 (parse_number): Ajust code to use parser state.
5598 (yylex): Likewise.
5599 (java_parse): New function.
5600 (push_variable): Add "struct parser_state" argument. Adjust
5601 code to user parser state.
5602 (push_fieldnames, push_qualified_expression_name,
5603 push_expression_name, insert_exp): Likewise.
5604 * jv-lang.h: Forward declare "struct parser_state".
5605 (java_parse): Add "struct parser_state" argument.
5606 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5607 parser state.
5608 (yyparse): Redefine macro to m2_parse_internal.
5609 (pstate): New variable.
5610 (type_exp, exp, fblock, variable, type): Update calls to
5611 write_exp* and similars to use parser state.
5612 (yylex): Likewise.
5613 (m2_parse): New function.
5614 * m2-lang.h: Forward declare "struct parser_state".
5615 (m2_parse): Add "struct parser_state" argument.
5616 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5617 * objc-lang.h: Forward declare "struct parser_state".
5618 (end_msglist): Add "struct parser_state" argument.
5619 * p-exp.y (parse_type): Rewrite macro to use parser state.
5620 (yyparse): Redefine macro to pascal_parse_internal.
5621 (pstate): New variable.
5622 (parse_number): Add "struct parser_state" argument.
5623 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5624 write_exp* and similars in order to use parser state.
5625 (parse_number, yylex): Adjust code to use parser state.
5626 (pascal_parse): New function.
5627 * p-lang.h: Forward declare "struct parser_state".
5628 (pascal_parse): Add "struct parser_state" argument.
5629 * go-exp.y (parse_type): Rewrite macro to use parser state.
5630 (yyparse): Redefine macro to go_parse_internal.
5631 (pstate): New variable.
5632 (parse_number): Add "struct parser_state" argument.
5633 (type_exp, exp1, exp, variable, type): Update calls to
5634 write_exp* and similars in order to use parser state.
5635 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5636 to use parser state.
5637 (go_parse): Likewise.
5638 * go-lang.h: Forward declare "struct parser_state".
5639 (go_parse): Add "struct parser_state" argument.
5640
342587c4
DE
56412014-03-27 Doug Evans <dje@google.com>
5642
5643 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5644
33e80786
DE
56452014-03-27 Doug Evans <dje@google.com>
5646
5647 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5648 Remove argument abbrev_section. All callers updated.
5649
1dbab08b
DE
56502014-03-27 Doug Evans <dje@google.com>
5651
5652 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5653 addr_base, ranges_base.
5654
318d3177
KS
56552014-03-26 Keith Seitz <keiths@redhat.com>
5656
5657 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5658 types, not VAR_DOMAIN.
5659
1e54db15
SL
56602014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5661
5662 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5663 "ra" registers.
5664 * features/nios2-linux.c: Regenerated.
5665 * features/nios2.c: Regenerated.
5666
d3839ede
PA
56672014-03-25 Pedro Alves <palves@redhat.com>
5668
5669 * cli/cli-script.c (script_from_file): Force the interpreter to
5670 sync mode.
5671
7588d2ec
PL
56722014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5673
5674 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5675 small stack allocation.
5676
a6290449
TG
56772014-03-24 Tristan Gingold <gingold@adacore.com>
5678
5679 * darwin-nat.c (exc_server): Remove unused prototype.
5680 (darwin_dump_message): Correctly display data on x86_64.
5681 (darwin_encode_reply): Fix style.
5682 Add comments and fix indentation.
5683
31ae9d24 56842014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5685
5686 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5687
6339bfc4
DE
56882014-03-22 Doug Evans <xdje42@gmail.com>
5689
5690 * infcmd.c: Whitespace fixes.
5691 (interrupt_command): Merge two function comments into one.
5692
0a07590b
DE
56932014-03-22 Doug Evans <xdje42@gmail.com>
5694
5695 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5696 All uses updated.
5697
b55fbac4
YQ
56982014-03-22 Yao Qi <yao@codesourcery.com>
5699
5700 * remote.c (target_read_live_memory): Remove.
5701 (memory_xfer_live_readonly_partial): Rename it to
5702 remote_xfer_live_readonly_partial. Remove argument 'object'.
5703 All callers updated. Call remote_read_bytes_1
5704 instead of target_read_live_memory.
5705 * tracepoint.c (set_traceframe_number): Remove.
5706 (make_cleanup_restore_traceframe_number): Likewise .
5707 * tracepoint.h (set_traceframe_number): Remove declaration.
5708 (make_cleanup_restore_traceframe_number): Likewise.
5709
9217e74e
YQ
57102014-03-22 Yao Qi <yao@codesourcery.com>
5711
5712 * remote.c (remote_read_bytes): Move code on reading from the
5713 remote stub to ...
5714 (remote_read_bytes_1): ... here. New function.
5715
8acf9577
YQ
57162014-03-22 Yao Qi <yao@codesourcery.com>
5717
5718 * ctf.c (ctf_xfer_partial): Check the return value of
5719 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5720 return TARGET_XFER_UNAVAILABLE.
5721 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5722 * target.c (target_read_live_memory): Move it to remote.c.
5723 (memory_xfer_live_readonly_partial): Likewise.
5724 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5725 * remote.c (target_read_live_memory): Moved from target.c.
5726 (memory_xfer_live_readonly_partial): Likewise.
5727 (remote_read_bytes): Factored out from
5728 memory_xfer_partial_1.
5729
feef67ab
DE
57302014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5731
5732 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5733 NULL pointer.
5734
b65dc60b
PA
57352014-03-21 Pedro Alves <palves@redhat.com>
5736
5737 * infrun.c (normal_stop): Extend comment.
5738
b4ab256d
HZ
57392014-03-21 Hui Zhu <hui@codesourcery.com>
5740 Pedro Alves <palves@redhat.com>
5741
5742 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5743 static buffer.
5744 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5745 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5746 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5747
deba7593
MR
57482014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5749
5750 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5751 `z' formatted output modifier.
5752
1bff71c3
SDJ
57532014-03-20 Tom Tromey <tromey@redhat.com>
5754 Sergio Durigan Junior <sergiodj@redhat.com>
5755
5756 * probe.c (parse_probes): Turn assert into an ordinary error.
5757 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5758 exceptions when parsing probes. Rearrange the code for clarity.
5759
90e28950
TT
57602014-03-20 Tom Tromey <tromey@redhat.com>
5761
5762 PR gdb/14135
5763 * top.c (execute_command): Only dispatch events if the command
5764 started the target.
5765
beb460e8
PA
57662014-03-20 Tom Tromey <tromey@redhat.com>
5767
5768 PR cli/15718
5769 * infcall.c: Include event-top.h.
5770 (run_inferior_call): Call async_disable_stdin if needed.
5771
99619bea
PA
57722014-03-20 Pedro Alves <palves@redhat.com>
5773
5774 * infrun.c (prepare_to_proceed): Delete.
5775 (thread_still_needs_step_over): New function.
5776 (find_thread_needs_step_over): New function.
5777 (proceed): If the current thread needs a step-over, set its
5778 steping_over_breakpoint flag. Adjust to use
5779 find_thread_needs_step_over instead of prepare_to_proceed.
5780 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5781 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5782 breakpoint.
5783 (switch_back_to_stepped_thread): Step over breakpoints of all
5784 threads not the stepping thread, before switching back to the
5785 stepping thread.
5786
2adfaa28
PA
57872014-03-20 Pedro Alves <palves@redhat.com>
5788
5789 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5790 extern.
5791 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5792 * infrun.c (saved_singlestep_ptid)
5793 (stepping_past_singlestep_breakpoint): Delete.
5794 (resume): Remove stepping_past_singlestep_breakpoint handling.
5795 (proceed): Store the prev_pc of the stepping thread too.
5796 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5797 singlestep_pc.
5798 (enum infwait_states): Delete infwait_thread_hop_state.
5799 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5800 field.
5801 (handle_inferior_event): Adjust.
5802 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5803 handling and the thread-hop code. Before removing single-step
5804 breakpoints, check whether the thread hit a single-step breakpoint
5805 of another thread. If it did, the trap is not a random signal.
5806 (switch_back_to_stepped_thread): If the event thread hit a
5807 single-step breakpoint, unblock it before switching to the
5808 stepping thread. Handle the case of the stepped thread having
5809 advanced already.
5810 (keep_going): Handle the case of the current thread moving past a
5811 single-step breakpoint.
5812
31e77af2
PA
58132014-03-20 Pedro Alves <palves@redhat.com>
5814
5815 PR breakpoints/7143
5816 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5817 are being stepped over.
5818 (breakpoint_address_match): Make extern.
5819 * breakpoint.h (breakpoint_address_match): New declaration.
5820 * inferior.h (stepping_past_instruction_at): New declaration.
5821 * infrun.c (struct step_over_info): New type.
5822 (step_over_info): New global.
5823 (set_step_over_info, clear_step_over_info)
5824 (stepping_past_instruction_at): New functions.
5825 (handle_inferior_event): Clear the step-over info when
5826 trap_expected is cleared.
5827 (resume): Remove now stale comment.
5828 (clear_proceed_status): Clear step-over info.
5829 (proceed): Adjust step-over handling to set or clear the step-over
5830 info instead of removing all breakpoints.
5831 (handle_signal_stop): When setting up a thread-hop, don't remove
5832 breakpoints here.
5833 (stop_stepping): Clear step-over info.
5834 (keep_going): Adjust step-over handling to set or clear step-over
5835 info and then always inserting breakpoints, instead of removing
5836 all breakpoints when stepping over one.
5837
b9f437de
PA
58382014-03-20 Pedro Alves <palves@redhat.com>
5839
5840 * infrun.c (previous_inferior_ptid): Adjust comment.
5841 (deferred_step_ptid): Delete.
5842 (infrun_thread_ptid_changed, prepare_to_proceed)
5843 (init_wait_for_inferior): Adjust.
5844 (handle_signal_stop): Delete deferred_step_ptid handling.
5845
06c868a8
JK
58462014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5847
5848 PR gdb/15358
5849 * defs.h (sync_quit_force_run): New declaration.
5850 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5851 * event-top.c (async_sigterm_handler): New declaration.
5852 (async_sigterm_token): New variable.
5853 (async_init_signals): Create also async_sigterm_token.
5854 (async_sigterm_handler): New function.
5855 (sync_quit_force_run): New variable.
5856 (handle_sigterm): Replace quit_force call by other calls.
5857 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5858
dea80df0
MR
58592014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5860
5861 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5862 offset into SPE pseudo registers.
5863
0c7e1a46
PA
58642014-03-18 Pedro Alves <palves@redhat.com>
5865
5866 PR gdb/13860
5867 * inferior.h (print_stop_event): Declare.
5868 * infrun.c (print_stop_event): New, factored out from ...
5869 (normal_stop): ... this.
5870 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5871 of bpstat_print/print_stack_frame.
5872
9c1fcd01
TT
58732014-03-17 Tom Tromey <tromey@redhat.com>
5874
5875 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5876
11aa919a
PMR
58772014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5878
5879 * ada-lang.c (decode_constrained_packed_array): Perform a
5880 minimal coercion for reference with coerce_ref instead of
5881 ada_coerce_ref.
5882
d4ccb5e0
TG
58832014-03-17 Tristan Gingold <gingold@adacore.com>
5884
5885 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5886 (darwin_solib_create_inferior_hook): Emit a warning if version
5887 is unhandled.
5888
49840f2a
UW
58892014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5890
5891 * python/py-value.c (get_field_flag): Cast flag_name argument to
5892 PyObject_GetAttrString to support Python 2.4.
5893
ed4123e5
JK
58942014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5895
5896 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5897 (Global Maintainers): Remove Jan Kratochvil.
5898
d6b64346
PA
58992014-03-14 Pedro Alves <palves@redhat.com>
5900
5901 * inferior.h (terminal_ours_for_output): Rename to ...
5902 (child_terminal_ours_for_output): ... this.
5903 (terminal_save_ours): Rename to ...
5904 (child_terminal_save_ours): ... this.
5905 (terminal_ours): Rename to ...
5906 (child_terminal_ours): ... this.
5907 (terminal_inferior): Rename to ...
5908 (child_terminal_inferior): ... this.
5909 (terminal_init_inferior): Rename to ...
5910 (child_terminal_init_inferior): ... this.
5911 (terminal_init_inferior_with_pgrp): Rename to ...
5912 (child_terminal_init_inferior_with_pgrp): ... this.
5913 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5914 (child_terminal_init_with_pgrp): ... this.
5915 (terminal_save_ours): Rename to ...
5916 (child_terminal_save_ours): ... this.
5917 (terminal_init_inferior): Rename to ...
5918 (child_terminal_init): ... this. Adjust.
5919 (terminal_inferior): Rename to ...
5920 (child_terminal_inferior): ... this.
5921 (terminal_ours_for_output): Rename to ...
5922 (child_terminal_ours_for_output): ... this. Adjust.
5923 (terminal_ours): Rename to ...
5924 (child_terminal_ours): ... this.
5925 (terminal_ours_1): Rename to ...
5926 (child_terminal_ours_1): ... this. Adjust.
5927 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5928 * windows-nat.c (do_initial_windows_stuff): Adjust.
5929 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5930 (gnu_terminal_init): ... this. Adjust.
5931 (gnu_target): Adjust.
5932 * inf-child.c (inf_child_target): Adjust.
5933
5a1e8c7a
DE
59342014-03-13 Doug Evans <xdje42@gmail.com>
5935
5936 PR guile/16612
5937 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5938 new eq?-hashtab.
5939
350e1a76
DE
59402014-03-13 Doug Evans <xdje42@gmail.com>
5941
5942 * value.c (record_latest_value): Call release_value_or_incref
5943 instead of release_value.
5944
a69900ae
PA
59452014-03-13 Pedro Alves <palves@redhat.com>
5946
5947 * procfs.c (procfs_target): Don't override to_shortname,
5948 to_longname or to_doc.
5949
5db9f0bd
PA
59502014-03-13 Pedro Alves <palves@redhat.com>
5951
5952 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5953 Unix in user visible strings.
5954
5e3a2c38
SS
59552014-03-12 Stan Shebs <stan@codesourcery.com>
5956
5957 * gdbtypes.h: Annotate comments for Doxygen, add a page
5958 block comment with some general info.
5959
8bc2fe48
PA
59602014-03-12 Pedro Alves <palves@redhat.com>
5961
5962 * infcmd.c (prepare_execution_command): New function, factored out
5963 from several execution commands.
5964 (run_command_1, continue_command, step_1, jump_command)
5965 (signal_command, until_command, advance_command, finish_command)
5966 (attach_command): Use prepare_execution_command.
5967
638c5f49
OJ
59682014-03-12 Omair Javaid <omair.javaid@linaro.org>
5969
5970 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5971 (MAX_BPTS): Define.
5972 (MAX_WPTS): Define.
5973 (struct arm_linux_thread_points): Removed.
5974 (struct arm_linux_process_info): New.
5975 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5976 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5977 (arm_linux_find_breakpoints_by_tid): Removed.
5978 (struct arch_lwp_info): New.
5979 (arm_linux_find_process_pid): New functions.
5980 (arm_linux_add_process): New functions.
5981 (arm_linux_process_info_get): New functions.
5982 (arm_linux_forget_process): New function.
5983 (arm_linux_get_debug_reg_state): New function.
5984 (struct update_registers_data): New.
5985 (update_registers_callback): New function.
5986 (arm_linux_insert_hw_breakpoint1): Updated.
5987 (arm_linux_remove_hw_breakpoint1): Updated.
5988 (arm_linux_insert_hw_breakpoint): Updated.
5989 (arm_linux_remove_hw_breakpoint): Updated.
5990 (arm_linux_insert_watchpoint): Updated.
5991 (arm_linux_remove_watchpoint): Updated.
5992 (arm_linux_new_thread): Updated.
5993 (arm_linux_prepare_to_resume): New function.
5994 (arm_linux_new_fork): New function.
5995 (_initialize_arm_linux_nat): Updated.
5996
6d03af93
PA
59972014-03-12 Pedro Alves <palves@redhat.com>
5998
5999 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6000
b3ccfe11
TT
60012014-03-12 Tom Tromey <tromey@redhat.com>
6002
6003 * inf-child.c (return_zero): New function.
6004 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6005 * aix-thread.c (aix_thread_inferior_created): New function.
6006 (aix_thread_attach): Remove.
6007 (init_aix_thread_ops): Don't set to_attach.
6008 (_initialize_aix_thread): Register inferior_created observer.
6009 * corelow.c (init_core_ops): Don't set to_attach or
6010 to_create_inferior.
6011 * exec.c (init_exec_ops): Don't set to_attach or
6012 to_create_inferior.
6013 * infcmd.c (run_command_1): Use find_run_target. Make direct
6014 target calls.
6015 (attach_command): Use find_attach_target. Make direct target
6016 calls.
6017 * record-btrace.c (init_record_btrace_ops): Don't set
6018 to_create_inferior.
6019 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6020 Remove.
6021 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6022 set to_create_inferior.
6023 * target.c (complete_target_initialization): Add assertion.
6024 (target_create_inferior): Remove.
6025 (find_default_attach, find_default_create_inferior): Remove.
6026 (find_attach_target, find_run_target): New functions.
6027 (find_default_is_async_p, find_default_can_async_p)
6028 (target_supports_non_stop, target_attach): Remove.
6029 (init_dummy_target): Don't set to_create_inferior or
6030 to_supports_non_stop.
6031 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6032 TARGET_DEFAULT_FUNC.
6033 <to_create_inferior>: Add comment.
6034 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6035 TARGET_DEFAULT_RETURN.
6036 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6037 (find_attach_target, find_run_target): Declare.
6038 (target_create_inferior): Remove.
6039 (target_has_execution_1): Update comment.
6040 (target_supports_non_stop): Remove.
6041 * target-delegates.c: Rebuild.
6042
91f83b02
PA
60432014-03-12 Pedro Alves <palves@redhat.com>
6044
6045 * inf-child.h: Update comment to not mention Unix.
6046
f1aea813
PA
60472014-03-12 Pedro Alves <palves@redhat.com>
6048
6049 * inf-child.c: Update top comment to not mention Unix. Add
6050 generic comment describing how this target is meant to be used.
6051 (inf_child_post_attach, inf_child_post_startup_inferior)
6052 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6053 Unix in comment.
6054
ee8e9165
PA
60552014-03-12 Pedro Alves <palves@redhat.com>
6056
6057 * nto-procfs.c: Include inf-child.h.
6058 (procfs_ops): Delete global.
6059 (procfs_can_run): Delete method.
6060 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6061 target pointer instead of referencing procfs_ops.
6062 (procfs_prepare_to_store): Delete.
6063 (init_procfs_ops): Delete function.
6064 (procfs_target): New function, based on init_procfs_ops, but
6065 inherit inf_child_target.
6066 (_initialize_procfs): Use procfs_target.
6067
51a9c8c5
PA
60682014-03-12 Pedro Alves <palves@redhat.com>
6069
6070 * windows-nat.c: Include inf-child.h.
6071 (windows_ops): Delete global.
6072 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6073 methods.
6074 (init_windows_ops): Delete function.
6075 (windows_target): New function, based on init_windows_ops, but
6076 inherit inf_child_target.
6077 (_initialize_windows_nat): Use windows_target. Install x86
6078 specific target methods here.
6079
c1966e26
DE
60802014-03-10 Doug Evans <xdje42@gmail.com>
6081
6082 * guile/guile.c (call_initialize_gdb_module): New function.
6083 (initialize_guile): Replace call to scm_init_guile with call to
6084 scm_with_guile.
6085
023db19c
JB
60862014-03-10 Joel Brobecker <brobecker@adacore.com>
6087
6088 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6089 in call to TYPE_CODE macro.
6090
5ec18f2b
JG
60912014-03-10 Jerome Guitton <guitton@adacore.com>
6092
8668be63
JB
6093 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6094 Resolve tagged types to full view.
5ec18f2b 6095
7d03f2eb
HZ
60962014-03-10 Hui Zhu <hui@codesourcery.com>
6097
6098 * target.h (target_insert_breakpoint): Remove "hardware" from its
6099 comments.
6100
c5164cbc
DE
61012014-03-07 Doug Evans <dje@google.com>
6102
6103 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6104
c4a3fee2
DE
61052014-03-07 Doug Evans <dje@google.com>
6106
6107 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6108 Remove unused local comp_dir_attr. Assert exactly one of
6109 stub_comp_unit_die, stub_comp_dir is non-NULL.
6110
3156469c
JB
61112014-03-07 Joel Brobecker <brobecker@adacore.com>
6112
6113 * target.h (complete_target_initialization, add_target):
6114 Add comment.
6115
c1a7b7c6
PA
61162014-03-07 Pedro Alves <palves@redhat.com>
6117
6118 * go32-nat.c: Include inf-child.h.
6119 (go32_ops): Delete global.
6120 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6121 Delete methods.
6122 (go32_create_inferior): Push the passed in target pointer instead
6123 of referencing go32_ops.
6124 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6125 (go32_target): New function, based on init_go32_ops, but inherit
6126 inf_child_target.
6127 (_initialize_go32_nat): Use go32_target. Move parts of
6128 init_go32_ops here.
6129
d3c1a85f
JB
61302014-03-06 Joel Brobecker <brobecker@adacore.com>
6131
6132 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6133 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6134 SYMBOL_VALUE_ADDRESS.
6135 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6136
5fa1d40e
YQ
61372014-03-06 Yao Qi <yao@codesourcery.com>
6138
6139 * breakpoint.c (get_tracepoint_by_number): Remove argument
6140 optional_p. All callers updated. Adjust comments. Update
6141 output message.
6142 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6143
0c13193f
YQ
61442014-03-06 Yao Qi <yao@codesourcery.com>
6145
6146 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6147 early if get_number returns zero. Use 'p' instead of 'args'.
6148
2217da06
YQ
61492014-03-06 Yao Qi <yao@codesourcery.com>
6150
6151 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6152 message.
6153
cc3da688
YQ
61542014-03-06 Yao Qi <yao@codesourcery.com>
6155
6156 PR breakpoints/16508
6157 * tracepoint.c (check_trace_running): New function.
6158 (trace_find_command): Move code to check_trace_running and
6159 call check_trace_running.
6160 (trace_find_pc_command): Likewise.
6161 (trace_find_tracepoint_command): Likewise.
6162 (trace_find_line_command): Likewise.
6163 (trace_find_range_command): Likewise.
6164 * tracepoint.h (check_trace_running): Likewise.
6165 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6166
6a5f844b
YQ
61672014-03-06 Yao Qi <yao@codesourcery.com>
6168
6169 * target.h (struct target_ops) <to_traceframe_info>: Use
6170 TARGET_DEFAULT_NORETURN (tcomplain ()).
6171 * target-delegates.c: Regenerated.
6172
0f26cec1
PA
61732014-03-05 Pedro Alves <palves@redhat.com>
6174
6175 PR gdb/16575
6176 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6177 void. Update comment.
6178 (dcache_xfer_memory): Delete.
6179 (dcache_read_memory_partial): New, based on the read bits of
6180 dcache_xfer_memory.
6181 (dcache_update): Add status parameter. Use ULONGEST for len, and
6182 adjust. Discard cache lines if the reason for the update was
6183 error.
6184 * dcache.h (dcache_xfer_memory): Delete declaration.
6185 (dcache_read_memory_partial): New declaration.
6186 (dcache_update): Update prototype.
6187 * target.c (raw_memory_xfer_partial): Update the dcache here.
6188 (memory_xfer_partial_1): Don't handle dcache writes here.
6189
b2b255bd
MF
61902014-03-05 Mike Frysinger <vapier@gentoo.org>
6191
6192 * remote-sim.c (gdbsim_load): Add const to prog.
6193
5d9cf8a4
TT
61942014-03-03 Tom Tromey <tromey@redhat.com>
6195
6196 * elfread.c (probe_key): Change to bfd_data.
6197 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6198 now per-BFD, not per-objfile.
6199 * stap-probe.c (stap_probe_destroy): Update comment.
6200 (handle_stap_probe): Allocate on the per-BFD obstack.
6201
729662a5
TT
62022014-03-03 Tom Tromey <tromey@redhat.com>
6203
6204 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6205 * breakpoint.c (create_longjmp_master_breakpoint): Use
6206 get_probe_address.
6207 (add_location_to_breakpoint, bkpt_probe_insert_location)
6208 (bkpt_probe_remove_location): Update.
6209 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6210 * elfread.c (elf_symfile_relocate_probe): Remove.
6211 (elf_probe_fns): Update.
6212 (insert_exception_resume_breakpoint): Change type of "probe"
6213 parameter to bound_probe.
6214 (check_exception_resume): Update.
6215 * objfiles.c (objfile_relocate1): Don't relocate probes.
6216 * probe.c (bound_probe_s): New typedef.
6217 (parse_probes): Use get_probe_address. Set sal's objfile.
6218 (find_probe_by_pc): Return a bound_probe.
6219 (collect_probes): Return a VEC(bound_probe_s).
6220 (compare_probes): Update.
6221 (gen_ui_out_table_header_info): Change type of "probes"
6222 parameter. Update.
6223 (info_probes_for_ops): Update.
6224 (get_probe_address): New function.
6225 (probe_safe_evaluate_at_pc): Update.
6226 * probe.h (struct probe_ops) <get_probe_address>: New field.
6227 <set_semaphore, clear_semaphore>: Add objfile parameter.
6228 (struct probe) <objfile>: Remove field.
6229 <arch>: New field.
6230 <address>: Update comment.
6231 (struct bound_probe): New.
6232 (find_probe_by_pc): Return a bound_probe.
6233 (get_probe_address): Declare.
6234 * solib-svr4.c (struct probe_and_action) <address>: New field.
6235 (hash_probe_and_action, equal_probe_and_action): Update.
6236 (register_solib_event_probe): Add address parameter.
6237 (solib_event_probe_at): Update.
6238 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6239 get_probe_address.
6240 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6241 (stap_get_probe_address): New function.
6242 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6243 (compile_probe_arg): Update.
6244 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6245 address.
6246 (handle_stap_probe): Don't relocate the probe.
6247 (stap_relocate): Remove.
6248 (stap_gen_info_probes_table_values): Update.
6249 (stap_probe_ops): Remove stap_relocate.
6250 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6251 (debug_sym_probe_fns): Update.
6252 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6253 * symtab.c (init_sal): Use memset.
6254 * symtab.h (struct symtab_and_line) <objfile>: New field.
6255 * tracepoint.c (start_tracing, stop_tracing): Update.
6256
ff887920
TT
62572014-03-03 Tom Tromey <tromey@redhat.com>
6258
6259 * probe.h (parse_probes, find_probe_by_pc)
6260 (find_probes_in_objfile): Fix comments.
6261
f0407826
DE
62622014-03-02 Doug Evans <xdje42@gmail.com>
6263
6264 * infrun.c (handle_signal_stop): Replace test for
6265 TARGET_WAITKIND_STOPPED with an assert.
6266
35e6a711
DE
62672014-03-02 Doug Evans <xdje42@gmail.com>
6268
6269 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6270
667f9d0b
DE
62712014-03-02 Doug Evans <xdje42@gmail.com>
6272
6273 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6274
dc92ace0
MK
62752014-03-01 Mark Kettenis <kettenis@gnu.org>
6276
6277 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6278
a900370f
MK
62792014-03-01 Mark Kettenis <kettenis@gnu.org>
6280
6281 * i386obsd-nat.c: Include "obsd-nat.h".
6282 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6283 add_target.
6284 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6285
b72a7981
MK
62862014-03-01 Mark Kettenis <kettenis@gnu.org>
6287
6288 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6289
96c70aba
MK
62902014-03-01 Mark Kettenis <kettenis@gnu.org>
6291
6292 * mips64obsd-nat.c: Include "obsd-nath".
6293 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6294 add_target
6295 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6296
874a80af
MK
62972014-03-01 Mark Kettenis <kettenis@gnu.org>
6298
8fd408f1
MK
6299 * amd64obsd-nat.c: Include "obsd-nat,h.
6300 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6301 add_target.
874a80af
MK
6302 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6303
9cf95373
SC
63042014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6305
6306 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6307 (find_overload_match): Update call to find_oload_champ.
6308 (find_oload_champ_namespace_loop): Likewise
6309
863e4da4
MK
63102014-02-28 Mark Kettenis <kettenis@gnu.org>
6311
025cac40
MK
6312 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6313
1ed586ce
MK
6314 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6315 * config/sparc/obsd64.mh: New file.
6316 * sparc64obsd-nat.c: New file.
6317
863e4da4
MK
6318 * obsd-nat.h: New file.
6319 * obsd-nat.c: New file.
6320 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6321 (ALLDEPFILES): Add obsd-nat.c.
6322
89de4da4
TT
63232014-02-28 Tom Tromey <tromey@redhat.com>
6324
6325 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6326 * cli-out.h (cli_ui_out_impl): Now const.
6327 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6328 * ui-out.c (struct ui_out) <impl>: Now const.
6329 (default_ui_out_impl): Now const.
6330 (ui_out_new): Make 'impl' parameter const.
6331 * ui-out.h (ui_out_new): Update.
6332
c725e7b6
MK
63332014-02-27 Mark Kettenis <kettenis@gnu.org>
6334
6335 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6336
670b46b3
MK
63372014-02-27 Mark Kettenis <kettenis@gnu.org>
6338
6339 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6340
c91550fc
JK
63412014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6342
6343 Additional PR 8882 fix.
6344 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6345
2fa0369e
PA
63462014-02-27 Pedro Alves <palves@redhat.com>
6347
6348 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6349 isn't set.
6350
d632a097
PA
63512014-02-27 Pedro Alves <palves@redhat.com>
6352
6353 PR 12702
6354 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6355 * nat/linux-waitpid.c: Include string.h.
6356 (status_to_str): Moved here and made extern.
6357 * nat/linux-waitpid.h (status_to_str): New declaration.
6358
2ebd5a35
HZ
63592014-02-27 Hui Zhu <hui@codesourcery.com>
6360
6361 PR 12702
6362 * infrun.c (ptid_match): Move ...
6363 * common/ptid.c (ptid_match): ... here.
6364 * inferior.h (ptid_match): Move ...
6365 * common/ptid.h (ptid_match): ... here.
6366
3cdd631f
MK
63672014-02-27 Mark Kettenis <kettenis@gnu.org>
6368
6369 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6370 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6371 gdb_target_obs.
6372
bee30a64
MK
63732014-02-27 Mark Kettenis <kettenis@gnu.org>
6374
6375 * obsd-tdep.c (obsd_auxv_parse): New function.
6376 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6377
6378 * gdbarch.sh (auxv_parse): New.
6379 * gdbarch.h: Regenerated.
6380 * gdbarch.c: Regenerated.
6381 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6382
7a5a839f
LC
63832014-02-26 Ludovic Courtès <ludo@gnu.org>
6384
6385 * guile/scm-value.c (gdbscm_history_append_x): New function.
6386 (value_functions): Add it.
6387
31aa7e4e
JB
63882014-02-27 Joel Brobecker <brobecker@adacore.com>
6389
6390 * dwarf2read.c (attr_value_as_address): New function.
6391 (dwarf2_find_base_address, read_call_site_scope): Use
6392 attr_value_as_address in place of DW_ADDR.
6393 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6394 the low and high addresses. Slight rework of the handling
6395 of the high pc being a constant form, and limit it to
6396 DWARF verson 4 or higher.
6397 (dwarf2_record_block_ranges): Likewise.
6398 (read_partial_die): Likewise.
6399 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6400
9b333ba3
TT
64012014-02-26 Tom Tromey <tromey@redhat.com>
6402
6403 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6404
5f6cac40
TT
64052014-02-26 Tom Tromey <tromey@redhat.com>
6406
6407 * elfread.c (elf_read_minimal_symbols): Return early if
6408 minimal symbols have already been read. Add "ei" parameter.
6409 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6410 * minsyms.c (prim_record_minimal_symbol_full): Update.
6411 * objfiles.h (struct objstats) <n_minsyms>: Move...
6412 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6413 * symmisc.c (print_objfile_statistics): Update.
6414
2750ef27
TT
64152014-02-26 Tom Tromey <tromey@redhat.com>
6416
6417 * elfread.c (elf_read_minimal_symbols): New function, from
6418 elf_symfile_read.
6419 (elf_symfile_read): Call it.
6420
34643a32
TT
64212014-02-26 Tom Tromey <tromey@redhat.com>
6422
6423 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6424 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6425 (lookup_minimal_symbol_solib_trampoline)
6426 (lookup_minimal_symbol_by_pc_section_1)
6427 (lookup_minimal_symbol_and_objfile): Update.
6428 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6429 Don't allocate a minimal symbol if minsyms have already been read.
6430 (build_minimal_symbol_hash_tables): Update.
6431 (install_minimal_symbols): Do nothing if minsyms already read.
6432 Use the per-BFD obstack.
6433 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6434 * objfiles.c (allocate_objfile): Call
6435 terminate_minimal_symbol_table later.
6436 (have_minimal_symbols): Update.
6437 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6438 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6439 Move from struct objfile.
6440 <minsyms_read>: New field.
6441 (struct objfile) <msymbols, minimal_symbol_count,
6442 msymbol_hash, msymbol_demangled_hash>: Move.
6443 (ALL_OBJFILE_MSYMBOLS): Update.
6444 * symfile.c (read_symbols): Set minsyms_read.
6445 (reread_symbols): Update.
6446 * symmisc.c (dump_objfile, dump_msymbols): Update.
6447
2273f0ac
TT
64482014-02-26 Tom Tromey <tromey@redhat.com>
6449
6450 * minsyms.c (msymbols_sort): Remove.
6451 * minsyms.h (msymbols_sort): Remove.
6452 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6453 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6454 * elfread.c (elf_symtab_read): Don't add section offsets.
6455 * xcoffread.c (record_minimal_symbol): Don't add section offset
6456 to minimal symbol address.
6457 * somread.c (text_offset, data_offset): Remove.
6458 (som_symtab_read): Don't add section offsets to minimal symbol
6459 addresses.
6460 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6461 Don't add section offsets to minimal symbols.
6462 * coffread.c (coff_symtab_read): Don't add section offsets
6463 to minimal symbol addresses.
6464 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6465 to minimal symbol addresses.
6466 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6467 section offset to minimal symbol addresses.
6468 * mdebugread.c (parse_partial_symbols): Don't add section
6469 offset to minimal symbol addresses.
6470 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6471 offset to minimal symbol addresses.
6472
77e371c0
TT
64732014-02-26 Tom Tromey <tromey@redhat.com>
6474
6475 * ada-lang.c (ada_main_name): Update.
6476 (ada_add_standard_exceptions): Update.
6477 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6478 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6479 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6480 * auxv.c (ld_so_xfer_auxv): Update.
6481 * avr-tdep.c (avr_scan_prologue): Update.
6482 * ax-gdb.c (gen_var_ref): Update.
6483 * blockframe.c (get_pc_function_start)
6484 (find_pc_partial_function_gnu_ifunc): Update.
6485 * breakpoint.c (create_overlay_event_breakpoint)
6486 (create_longjmp_master_breakpoint)
6487 (create_std_terminate_master_breakpoint)
6488 (create_exception_master_breakpoint): Update.
6489 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6490 * c-valprint.c (c_val_print): Update.
6491 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6492 * common/agent.c (agent_look_up_symbols): Update.
6493 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6494 * dwarf2loc.c (call_site_to_target_addr): Update.
6495 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6496 * elfread.c (elf_gnu_ifunc_record_cache)
6497 (elf_gnu_ifunc_resolve_by_got): Update.
6498 * findvar.c (default_read_var_value): Update.
6499 * frame.c (inside_main_func): Update.
6500 * frv-tdep.c (frv_frame_this_id): Update.
6501 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6502 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6503 Update.
6504 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6505 (hppa_hpux_find_dummy_bpaddr): Update.
6506 * hppa-tdep.c (hppa_symbol_address): Update.
6507 * infcmd.c (until_next_command): Update.
6508 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6509 Update.
6510 * linespec.c (minsym_found, add_minsym): Update.
6511 * linux-nat.c (get_signo): Update.
6512 * linux-thread-db.c (inferior_has_bug): Update.
6513 * m32c-tdep.c (m32c_return_value)
6514 (m32c_m16c_address_to_pointer): Update.
6515 * m32r-tdep.c (m32r_frame_this_id): Update.
6516 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6517 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6518 * maint.c (maintenance_translate_address): Update.
6519 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6520 (frob_address): New function.
6521 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6522 frob_address. Rename parameter to "pc_in".
6523 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6524 addresses.
6525 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6526 Update.
6527 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6528 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6529 * objc-lang.c (find_objc_msgsend): Update.
6530 * objfiles.c (objfile_relocate1): Update.
6531 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6532 * p-valprint.c (pascal_val_print): Update.
6533 * parse.c (write_exp_msymbol): Update.
6534 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6535 (ppc_elfv2_skip_entrypoint): Update.
6536 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6537 * printcmd.c (build_address_symbolic, msym_info)
6538 (address_info): Update.
6539 * proc-service.c (ps_pglobal_lookup): Update.
6540 * psymtab.c (find_pc_sect_psymtab_closer)
6541 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6542 Change msymbol parameter to bound_minimal_symbol.
6543 * ravenscar-thread.c (get_running_thread_id): Update.
6544 * remote.c (remote_check_symbols): Update.
6545 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6546 address.
6547 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6548 * solib-dsbt.c (lm_base): Update.
6549 * solib-frv.c (lm_base, main_got): Update.
6550 * solib-irix.c (locate_base): Update.
6551 * solib-som.c (som_solib_create_inferior_hook)
6552 (link_map_start): Update.
6553 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6554 * solib-svr4.c (elf_locate_base, enable_break): Update.
6555 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6556 (flush_ea_cache): Update.
6557 * stabsread.c (define_symbol, scan_file_globals): Update.
6558 * stack.c (find_frame_funname): Update.
6559 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6560 (debug_qf_find_pc_sect_symtab): Update.
6561 * symfile.c (simple_read_overlay_table)
6562 (simple_overlay_update): Update.
6563 * symfile.h (struct quick_symbol_functions)
6564 <find_pc_sect_symtab>: Change type of msymbol to
6565 bound_minimal_symbol.
6566 * symmisc.c (dump_msymbols): Update.
6567 * symtab.c (find_pc_sect_symtab_via_partial)
6568 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6569 (search_symbols, print_msymbol_info): Update.
6570 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6571 (MSYMBOL_VALUE_ADDRESS): Redefine.
6572 (BMSYMBOL_VALUE_ADDRESS): New macro.
6573 * tracepoint.c (scope_info): Update.
6574 * tui/tui-disasm.c (tui_find_disassembly_address)
6575 (tui_get_begin_asm_address): Update.
6576 * valops.c (find_function_in_inferior): Update.
6577 * value.c (value_static_field, value_fn_field): Update.
6578
3b7344d5
TT
65792014-02-26 Tom Tromey <tromey@redhat.com>
6580
6581 * ada-lang.c (ada_update_initial_language): Update.
6582 (ada_main_name, ada_has_this_exception_support): Update.
6583 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6584 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6585 * arm-tdep.c (arm_skip_stub): Update.
6586 * auxv.c (ld_so_xfer_auxv): Update.
6587 * avr-tdep.c (avr_scan_prologue): Update.
6588 * ax-gdb.c (gen_var_ref): Update.
6589 * breakpoint.c (struct breakpoint_objfile_data)
6590 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6591 type to bound_minimal_symbol.
6592 (create_overlay_event_breakpoint)
6593 (create_longjmp_master_breakpoint)
6594 (create_std_terminate_master_breakpoint)
6595 (create_exception_master_breakpoint): Update.
6596 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6597 * c-exp.y (classify_name): Update.
6598 * coffread.c (coff_symfile_read): Update.
6599 * common/agent.c (agent_look_up_symbols): Update.
6600 * d-lang.c (d_main_name): Update.
6601 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6602 * dec-thread.c (enable_dec_thread): Update.
6603 * dwarf2loc.c (call_site_to_target_addr): Update.
6604 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6605 * eval.c (evaluate_subexp_standard): Update.
6606 * findvar.c (struct minsym_lookup_data) <result>: Change type
6607 to bound_minimal_symbol.
6608 <objfile>: Remove.
6609 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6610 * frame.c (inside_main_func): Update.
6611 * frv-tdep.c (frv_frame_this_id): Update.
6612 * gcore.c (call_target_sbrk): Update.
6613 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6614 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6615 Update.
6616 * go-lang.c (go_main_name): Update.
6617 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6618 (hppa_hpux_find_import_stub_for_addr): Update.
6619 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6620 Update. Change return type.
6621 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6622 type.
6623 * jit.c (jit_breakpoint_re_set_internal): Update.
6624 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6625 Update.
6626 * linux-nat.c (get_signo): Update.
6627 * linux-thread-db.c (inferior_has_bug): Update
6628 * m32c-tdep.c (m32c_return_value)
6629 (m32c_m16c_address_to_pointer): Update.
6630 * m32r-tdep.c (m32r_frame_this_id): Update.
6631 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6632 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6633 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6634 lookup_minimal_symbol. Change return type.
6635 (lookup_minimal_symbol): Remove.
6636 (lookup_bound_minimal_symbol): Update.
6637 (lookup_minimal_symbol_text): Change return type.
6638 (lookup_minimal_symbol_solib_trampoline): Change return type.
6639 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6640 (lookup_minimal_symbol_solib_trampoline): Change return type.
6641 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6642 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6643 (value_nsstring, find_imps): Update.
6644 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6645 * p-lang.c (pascal_main_name): Update.
6646 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6647 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6648 * proc-service.c (ps_pglobal_lookup): Update.
6649 * ravenscar-thread.c (get_running_thread_msymbol): Change
6650 return type.
6651 (has_ravenscar_runtime, get_running_thread_id): Update.
6652 * remote.c (remote_check_symbols): Update.
6653 * sol-thread.c (ps_pglobal_lookup): Update.
6654 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6655 * solib-dsbt.c (lm_base): Update.
6656 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6657 Update.
6658 * solib-irix.c (locate_base): Update.
6659 * solib-som.c (som_solib_create_inferior_hook)
6660 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6661 Update.
6662 * solib-spu.c (spu_enable_break): Update.
6663 * solib-svr4.c (elf_locate_base, enable_break): Update.
6664 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6665 (flush_ea_cache): Update.
6666 * stabsread.c (define_symbol): Update.
6667 * symfile.c (simple_read_overlay_table): Update.
6668 * symtab.c (find_pc_sect_line): Update.
6669 * tracepoint.c (scope_info): Update.
6670 * tui-disasm.c (tui_get_begin_asm_address): Update.
6671 * value.c (value_static_field): Update.
6672
40c1a007
TT
66732014-02-26 Tom Tromey <tromey@redhat.com>
6674
6675 * minsyms.c (prim_record_minimal_symbol_full): Use
6676 SET_MSYMBOL_VALUE_ADDRESS.
6677 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6678 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6679 SET_MSYMBOL_VALUE_ADDRESS.
6680 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6681 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6682
efd66ac6
TT
66832014-02-26 Tom Tromey <tromey@redhat.com>
6684
6685 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6686 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6687 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6688 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6689 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6690 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6691 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6692 * ada-lang.c (ada_main_name): Update.
6693 (ada_lookup_simple_minsym): Update.
6694 (ada_make_symbol_completion_list): Update.
6695 (ada_add_standard_exceptions): Update.
6696 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6697 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6698 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6699 * arm-tdep.c (skip_prologue_function): Update.
6700 (arm_skip_stack_protector, arm_skip_stub): Update.
6701 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6702 (arm_wince_skip_main_prologue): Update.
6703 * auxv.c (ld_so_xfer_auxv): Update.
6704 * avr-tdep.c (avr_scan_prologue): Update.
6705 * ax-gdb.c (gen_var_ref): Update.
6706 * block.c (call_site_for_pc): Update.
6707 * blockframe.c (get_pc_function_start): Update.
6708 (find_pc_partial_function_gnu_ifunc): Update.
6709 * breakpoint.c (create_overlay_event_breakpoint): Update.
6710 (create_longjmp_master_breakpoint): Update.
6711 (create_std_terminate_master_breakpoint): Update.
6712 (create_exception_master_breakpoint): Update.
6713 (resolve_sal_pc): Update.
6714 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6715 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6716 Update.
6717 * c-valprint.c (c_val_print): Update.
6718 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6719 * coffread.c (coff_symfile_read): Update.
6720 * common/agent.c (agent_look_up_symbols): Update.
6721 * dbxread.c (find_stab_function_addr): Update.
6722 (end_psymtab): Update.
6723 * dwarf2loc.c (call_site_to_target_addr): Update.
6724 (func_verify_no_selftailcall): Update.
6725 (tailcall_dump): Update.
6726 (call_site_find_chain_1): Update.
6727 (dwarf_expr_reg_to_entry_parameter): Update.
6728 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6729 (elf_gnu_ifunc_resolve_by_got): Update.
6730 * f-valprint.c (info_common_command): Update.
6731 * findvar.c (read_var_value): Update.
6732 * frame.c (get_prev_frame_1): Update.
6733 (inside_main_func): Update.
6734 * frv-tdep.c (frv_skip_main_prologue): Update.
6735 (frv_frame_this_id): Update.
6736 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6737 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6738 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6739 (gnuv3_skip_trampoline): Update.
6740 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6741 (hppa64_hpux_in_solib_call_trampoline): Update.
6742 (hppa_hpux_skip_trampoline_code): Update.
6743 (hppa64_hpux_search_dummy_call_sequence): Update.
6744 (hppa_hpux_find_import_stub_for_addr): Update.
6745 (hppa_hpux_find_dummy_bpaddr): Update.
6746 * hppa-tdep.c (hppa_symbol_address)
6747 (hppa_lookup_stub_minimal_symbol): Update.
6748 * i386-tdep.c (i386_skip_main_prologue): Update.
6749 (i386_pe_skip_trampoline_code): Update.
6750 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6751 * infcall.c (get_function_name): Update.
6752 * infcmd.c (until_next_command): Update.
6753 * jit.c (jit_breakpoint_re_set_internal): Update.
6754 (jit_inferior_init): Update.
6755 * linespec.c (minsym_found): Update.
6756 (add_minsym): Update.
6757 * linux-fork.c (info_checkpoints_command): Update.
6758 * linux-nat.c (get_signo): Update.
6759 * linux-thread-db.c (inferior_has_bug): Update.
6760 * m32c-tdep.c (m32c_return_value): Update.
6761 (m32c_m16c_address_to_pointer): Update.
6762 (m32c_m16c_pointer_to_address): Update.
6763 * m32r-tdep.c (m32r_frame_this_id): Update.
6764 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6765 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6766 * maint.c (maintenance_translate_address): Update.
6767 * minsyms.c (add_minsym_to_hash_table): Update.
6768 (add_minsym_to_demangled_hash_table): Update.
6769 (msymbol_objfile): Update.
6770 (lookup_minimal_symbol): Update.
6771 (iterate_over_minimal_symbols): Update.
6772 (lookup_minimal_symbol_text): Update.
6773 (lookup_minimal_symbol_by_pc_name): Update.
6774 (lookup_minimal_symbol_solib_trampoline): Update.
6775 (lookup_minimal_symbol_by_pc_section_1): Update.
6776 (lookup_minimal_symbol_and_objfile): Update.
6777 (prim_record_minimal_symbol_full): Update.
6778 (compare_minimal_symbols): Update.
6779 (compact_minimal_symbols): Update.
6780 (build_minimal_symbol_hash_tables): Update.
6781 (install_minimal_symbols): Update.
6782 (terminate_minimal_symbol_table): Update.
6783 (find_solib_trampoline_target): Update.
6784 (minimal_symbol_upper_bound): Update.
6785 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6786 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6787 (mips_skip_pic_trampoline_code): Update.
6788 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6789 * objc-lang.c (selectors_info): Update.
6790 (classes_info): Update.
6791 (find_methods): Update.
6792 (find_imps): Update.
6793 (find_objc_msgsend): Update.
6794 * objfiles.c (objfile_relocate1): Update.
6795 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6796 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6797 * p-valprint.c (pascal_val_print): Update.
6798 * parse.c (write_exp_msymbol): Update.
6799 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6800 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6801 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6802 * printcmd.c (build_address_symbolic): Update.
6803 (sym_info): Update.
6804 (address_info): Update.
6805 * proc-service.c (ps_pglobal_lookup): Update.
6806 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6807 (find_pc_sect_psymtab): Update.
6808 * python/py-framefilter.c (py_print_frame): Update.
6809 * ravenscar-thread.c (get_running_thread_id): Update.
6810 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6811 Update.
6812 * remote.c (remote_check_symbols): Update.
6813 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6814 (rs6000_skip_trampoline_code): Update.
6815 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6816 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6817 * solib-dsbt.c (lm_base): Update.
6818 * solib-frv.c (lm_base): Update.
6819 (main_got): Update.
6820 * solib-irix.c (locate_base): Update.
6821 * solib-som.c (som_solib_create_inferior_hook): Update.
6822 (som_solib_desire_dynamic_linker_symbols): Update.
6823 (link_map_start): Update.
6824 * solib-spu.c (spu_enable_break): Update.
6825 (ocl_enable_break): Update.
6826 * solib-svr4.c (elf_locate_base): Update.
6827 (enable_break): Update.
6828 * spu-tdep.c (spu_get_overlay_table): Update.
6829 (spu_catch_start): Update.
6830 (flush_ea_cache): Update.
6831 * stabsread.c (define_symbol): Update.
6832 (scan_file_globals): Update.
6833 * stack.c (find_frame_funname): Update.
6834 (frame_info): Update.
6835 * symfile.c (simple_read_overlay_table): Update.
6836 (simple_overlay_update): Update.
6837 * symmisc.c (dump_msymbols): Update.
6838 * symtab.c (fixup_section): Update.
6839 (find_pc_sect_line): Update.
6840 (skip_prologue_sal): Update.
6841 (search_symbols): Update.
6842 (print_msymbol_info): Update.
6843 (rbreak_command): Update.
6844 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6845 (completion_list_objc_symbol): Update.
6846 (default_make_symbol_completion_list_break_on): Update.
6847 * tracepoint.c (scope_info): Update.
6848 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6849 (tui_get_begin_asm_address): Update.
6850 * valops.c (find_function_in_inferior): Update.
6851 * value.c (value_static_field): Update.
6852 (value_fn_field): Update.
6853
50e65b17
TT
68542014-02-26 Tom Tromey <tromey@redhat.com>
6855
6856 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6857 bound minimal symbols. Move code that knows about minsym
6858 table layout...
6859 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6860 function.
6861 * minsyms.h (minimal_symbol_upper_bound): Declare.
6862 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6863 minimal_symbol_upper_bound.
6864
1b588015
JB
68652014-02-27 Joel Brobecker <brobecker@adacore.com>
6866
6867 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6868 Use the type's name if its basic type does not have a tag.
6869
dbb9c2b1
JB
68702014-02-27 Joel Brobecker <brobecker@adacore.com>
6871
6872 * dwarf2read.c (read_subrange_type): Add comment.
6873
55426c9d
JB
68742014-02-27 Joel Brobecker <brobecker@adacore.com>
6875
6876 * dwarf2read.c (update_enumeration_type_from_children): New
6877 function, mostly extracted from process_structure_scope.
6878 (read_enumeration_type): Call update_enumeration_type_from_children.
6879 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6880 and flag_flag_enum fields.
6881
f2fce0ca
PA
68822014-02-26 Pedro Alves <palves@redhat.com>
6883
6884 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6885 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6886 to_xfer_partial method.
6887
7a44e40e
PA
68882014-02-26 Pedro Alves <palves@redhat.com>
6889
6890 * target.c (complete_target_initialization): Don't install
6891 default_xfer_partial as to_xfer_partial hook.
6892 (nomemory): Delete.
6893 (update_current_target): Don't INHERIT nor de_fault
6894 deprecated_xfer_memory. Delete de_fault macro.
6895 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6896 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6897 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6898 field.
6899
bd265cd0
PA
69002014-02-26 Pedro Alves <palves@redhat.com>
6901
6902 * go32-nat.c (my_write_child): New function.
6903 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6904 (go32_xfer_partial): New function.
6905 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6906 Instead install a to_xfer_partial hook.
6907
9d46c4e5
PA
69082014-02-26 Pedro Alves <palves@redhat.com>
6909
6910 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6911 to_xfer_partial helper. Rewrite.
6912 (procfs_xfer_partial): New function.
6913 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6914 Install a to_xfer_partial hook.
6915
a1583b1f
PA
69162014-02-26 Pedro Alves <palves@redhat.com>
6917
6918 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6919 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6920 (m32r_xfer_partial): New function.
6921 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6922 Install a to_xfer_partial hook.
6923
6df1b29f
PA
69242014-02-26 Pedro Alves <palves@redhat.com>
6925
6926 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6927 helper.
6928 (mips_xfer_partial): New function.
6929 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6930 hook. Install a to_xfer_partial hook.
6931
dc53a7ad
JB
69322014-02-26 Joel Brobecker <brobecker@adacore.com>
6933
6934 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6935 * gdbtypes.c (create_array_type_with_stride): New function,
6936 renaming create_array_type, but with an added parameter
6937 called "bit_stride".
6938 (create_array_type): Re-implement using
6939 create_array_type_with_stride.
6940 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6941 and DW_AT_bit_stride attributes.
6942
12ab52e9
PA
69432014-02-26 Pedro Alves <palves@redhat.com>
6944
6945 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6946 task-specific breakpoints.
6947
d16461ae
PA
69482014-02-25 Pedro Alves <palves@redhat.com>
6949
6950 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6951 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6952
a8b16220
SS
69532014-02-25 Stan Shebs <stan@codesourcery.com>
6954
6955 * defs.h: Annotate comments for Doxygen.
6956
b9e795ee
TT
69572014-02-25 Tom Tromey <tromey@redhat.com>
6958
6959 * target.h (target_ignore): Don't declare.
6960 * target.c (target_ignore): Remove.
6961
849c862e
JK
69622014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6963
6964 PR gdb/16626
6965 * auto-load.c (auto_load_objfile_script_1): Change filename to
6966 debugfile.
6967
475109d8
JB
69682014-02-25 Joel Brobecker <brobecker@adacore.com>
6969
6970 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6971 documentation. Adjust prototype to match the target_ops
6972 to_xfer_partial method. Adjust implementation accordingly.
6973
e186c3bd
HZ
69742014-02-25 Hui Zhu <hui@codesourcery.com>
6975
6976 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6977 to_traceframe_info.
6978
6d451942
KB
69792014-02-25 Kevin Buettner <kevinb@redhat.com>
6980
041ab8b4 6981 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6982 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6983 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6984 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6985 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6986 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6987 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6988 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6989 New constants.
6990 (rl78_register_type): Use a data pointer type for SP and
6991 new pseudo registers mentioned above. Use a 16 bit integer
6992 type for all other register pairs.
6993 (rl78_register_name, rl78_g10_register_name): Update for
6994 new pseudo registers.
6995 (rl78_pseudo_register_read): Likewise.
6996 (rl78_pseudo_register_write): Likewise.
6997 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6998 to the newly added pseudo registers.
6999
eddf0bae
DE
70002014-02-24 Doug Evans <dje@google.com>
7001
7002 * value.c (record_latest_value): Fix comment.
7003 * printcmd.c (print_command_1): Remove code to handle -1 return from
7004 record_latest_value.
7005
e96027e0
PA
70062014-02-24 Pedro Alves <palves@redhat.com>
7007
7008 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7009 deprecated_xfer_memory hook.
7010 (procfs_xfer_partial): Call procfs_xfer_memory instead
7011 of the deprecated_xfer_memory target hook.
7012 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7013 helper.
7014
0837c976
YZ
70152014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7016
7017 * windows-nat.c (windows_xfer_shared_libraries): Return
7018 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7019 requested object is TARGET_OBJECT_LIBRARIES.
7020
bc113b4e
YQ
70212014-02-24 Yao Qi <yao@codesourcery.com>
7022
7023 * target.h (enum target_xfer_status)
7024 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7025 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7026 explicitly. New.
7027 * corefile.c (memory_error_message): User updated.
7028 * exec.c (section_table_read_available_memory): Likewise.
7029 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7030 * target.c (target_xfer_status_to_string): Likewise.
7031 (raw_memory_xfer_partial): Likewise.
7032 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7033 * valops.c (read_value_memory): Likewise.
7034 * exec.h: Update comments.
7035
01cb8804
YQ
70362014-02-24 Yao Qi <yao@codesourcery.com>
7037
7038 * target.c (target_xfer_status_to_string): Rename argument err
7039 to status.
7040 * target.h (target_xfer_status_to_string): Update declaration.
7041 Replace target_xfer_error_to_string with
7042 target_xfer_status_to_string in comment.
7043
93063aa6
YQ
70442014-02-24 Yao Qi <yao@codesourcery.com>
7045
7046 * mips-linux-nat.c (super_close): Update its type.
7047 (mips_linux_close): Pass 'self' to super_close.
7048
5c328c05
YQ
70492014-02-24 Yao Qi <yao@codesourcery.com>
7050
7051 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7052 * corefile.c (read_memory): Adjusted.
7053 * target.c (target_write_with_progress): Adjusted.
7054
f73023dd
YQ
70552014-02-23 Yao Qi <yao@codesourcery.com>
7056
7057 Revert two patches:
7058
7059 2013-10-25 Yao Qi <yao@codesourcery.com>
7060
7061 * remote.c (remote_traceframe_info): Return early if
7062 traceframe is not selected.
7063
7064 2013-07-19 Yao Qi <yao@codesourcery.com>
7065
7066 * target.c (update_current_target): Change the default action
7067 of 'to_traceframe_info' from tcomplain to return_zero.
7068 * target.h (struct target_ops) <to_traceframe_info>: Add more
7069 comments.
7070
5a2eb0ef
YQ
70712014-02-23 Yao Qi <yao@codesourcery.com>
7072
7073 * valops.c (read_value_memory): Rewrite it. Call
7074 target_xfer_partial in a loop.
7075 * exec.h (section_table_available_memory): Remove declaration.
7076 Move comments to ...
7077 * exec.c (section_table_available_memory): ... here. Make it
7078 static.
7079
1ee79381
YQ
70802014-02-23 Yao Qi <yao@codesourcery.com>
7081
7082 * exec.c (section_table_read_available_memory): New function.
7083 * exec.h (section_table_read_available_memory): Declare.
7084 * ctf.c (ctf_xfer_partial): Call
7085 section_table_read_available_memory.
7086 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7087
1ca49d37
YQ
70882014-02-23 Yao Qi <yao@codesourcery.com>
7089
7090 * ctf.c (ctf_xfer_partial): Move code to ...
7091 * exec.c (exec_read_partial_read_only): ... it. New function.
7092 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7093 * tracefile.c: Include "exec.h".
7094 * exec.h (exec_read_partial_read_only): Declare.
7095
a283690e
YQ
70962014-02-23 Yao Qi <yao@codesourcery.com>
7097
7098 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7099 (tfile_has_memory): Remove.
7100 (init_tfile_ops): Don't set fields to_has_all_memory and
7101 to_has_memory of tfile_ops.
7102 * tracefile.c (tracefile_has_all_memory): New function.
7103 (tracefile_has_memory): New function.
7104 (init_tracefile_ops): Initialize fields to_has_all_memory and
7105 to_has_memory of 'ops'.
7106
12e03cd0
YQ
71072014-02-23 Yao Qi <yao@codesourcery.com>
7108
7109 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7110 (ctf_thread_alive, ctf_get_trace_status): Remove.
7111 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7112 init_tracefile_ops.
7113 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7114 (tfile_has_stack, tfile_has_registers): Remove.
7115 (tfile_thread_alive): Remove.
7116 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7117 init_tracefile_ops.
7118 * tracefile.c (tracefile_has_stack): New function.
7119 (tracefile_has_registers): New function.
7120 (tracefile_thread_alive): New function.
7121 (tracefile_get_trace_status): New function.
7122 (init_tracefile_ops): New function.
7123 * tracefile.h (init_tracefile_ops): Declare.
7124
11395323
YQ
71252014-02-23 Yao Qi <yao@codesourcery.com>
7126
7127 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7128 (O_LARGEFILE): Likewise.
7129 (tfile_ops): Likewise.
7130 (TRACE_HEADER_SIZE): Likewise.
7131 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7132 (cur_data_size): Likewise.
7133 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7134 (tfile_close, tfile_files_info): Likewise.
7135 (tfile_get_trace_status): Likewise.
7136 (tfile_get_tracepoint_status): Likewise.
7137 (tfile_get_traceframe_address): Likewise.
7138 (tfile_trace_find, match_blocktype): Likewise.
7139 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7140 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7141 (tfile_get_trace_state_variable_value): Likewise.
7142 (tfile_has_all_memory, tfile_has_memory): Likewise.
7143 (tfile_has_stack, tfile_has_registers): Likewise.
7144 (tfile_thread_alive, build_traceframe_info): Likewise.
7145 (tfile_traceframe_info, init_tfile_ops): Likewise.
7146 (_initialize_tracepoint): Don't call init_tfile_ops
7147 and add_target_with_completer.
7148 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7149 exec.h, completer.h and filenames.h.
7150 (_initialize_tracefile_tfile): New function.
7151
7951c4eb
YQ
71522014-02-23 Yao Qi <yao@codesourcery.com>
7153
7154 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7155 tracefile-tfile.o.
7156 (HFILES_NO_SRCDIR): Add tracefile.h.
7157 * ctf.c: Include "tracefile.h".
7158 * tracefile.h: New file.
7159 * tracefile.c: New file
7160 * tracefile-tfile.c: New file.
7161 * tracepoint.c: Include "tracefile.h".
7162 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7163 (stop_reason_names): Add const.
7164 (trace_file_writer_xfree): Move it to tracefile.c.
7165 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7166 (trace_save_ctf): Likewise.
7167 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7168 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7169 (tfile_write_header, tfile_write_regblock_type): Likewise.
7170 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7171 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7172 (tfile_write_raw_data, tfile_end): Likewise.
7173 (tfile_trace_file_writer_new): Likewise.
7174 (free_uploaded_tp): Make it extern.
7175 (free_uploaded_tsv): Make it extern.
7176 (_initialize_tracepoint): Move code to register command 'tsave'
7177 to tracefile.c.
7178 * tracepoint.h (stop_reason_names): Declare.
7179 (struct trace_frame_write_ops): Move it to tracefile.h.
7180 (struct trace_file_write_ops): Likewise.
7181 (struct trace_file_writer): Likewise.
7182 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7183
184cd072
JK
71842014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7185
7186 PR gdb/16594
7187 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7188 process name.
7189 (get_cores_used_by_process): New parameter num_cores, use it.
7190 (linux_xfer_osdata_processes): Pass num_cores to it.
7191 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7192 process name.
7193
c63528fc
AK
71942014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7195
7196 * target.c (memory_xfer_partial): Fix length arg in call to
7197 breakpoint_xfer_memory.
7198
d7b30f67
SDJ
71992014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7200
7201 PR tdep/16397
7202 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7203 number comes after the + or - signs. Adjust length of register
7204 name to be extracted.
7205
8838afaf
TT
72062014-02-20 Tom Tromey <tromey@redhat.com>
7207
7208 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7209 (ada_varobj_ops): Mark "extern".
7210
05227d14
TT
72112014-02-20 Tom Tromey <tromey@redhat.com>
7212
7213 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7214
1254eefc
DE
72152014-02-20 Doug Evans <xdje42@gmail.com>
7216
7217 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7218 All callers updated.
7219 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7220 All callers updated.
7221 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7222 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7223
adde2bff
DE
72242014-02-20 lin zuojian <manjian2006@gmail.com>
7225 Joel Brobecker <brobecker@adacore.com>
7226 Doug Evans <xdje42@gmail.com>
7227
7228 PR symtab/16581
7229 * dwarf2read.c (struct die_info): New member in_process.
7230 (reset_die_in_process): New function.
7231 (process_die): Set it at the start, reset when returning.
7232 (inherit_abstract_dies): Only call process_die if origin_child_die
7233 not already being processed.
7234
3be75f87
JB
72352014-02-20 Joel Brobecker <brobecker@adacore.com>
7236
7237 * windows-nat.c (handle_unload_dll): Add function documentation.
7238 (do_initial_windows_stuff): Add comment explaining why we wait
7239 until after inferior initialization has finished before
7240 processing all DLLs.
7241
47f7ffdb
JB
72422014-02-20 Joel Brobecker <brobecker@adacore.com>
7243
7244 * windows-nat.c (get_module_name): Delete.
7245 (windows_get_exec_module_filename): New function, mostly
7246 inspired from get_module_name.
7247 (windows_pid_to_exec_file): Replace call to get_module_name
7248 by call to windows_get_exec_module_filename.
7249
1cd9feab
JB
72502014-02-20 Joel Brobecker <brobecker@adacore.com>
7251
7252 * windows-nat.c (handle_load_dll): Rewrite this function's
7253 introductory comment. Remove code using get_module_name
7254 to get the DLL's name.
7255
ea39ad35
JB
72562014-02-20 Joel Brobecker <brobecker@adacore.com>
7257
7258 * windows-nat.c (get_windows_debug_event): Ignore
7259 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7260 if windows_initialization_done == 0.
7261 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7262 Adjust implementation to always load all DLLs.
7263 (do_initial_windows_stuff): Replace call to
7264 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7265
95060284
JB
72662014-02-20 Joel Brobecker <brobecker@adacore.com>
7267
7268 * windows-nat.c (_initialize_windows_nat): Deprecate the
7269 "dll-symbols" command. Turn the "add-shared-symbol-files"
7270 and "assf" aliases into commands, and deprecate them as well.
7271 * NEWS: Add entry explaining that "dll-symbols" and its two
7272 aliases are now deprecated.
7273
8d4fdb12
JB
72742014-02-20 Joel Brobecker <brobecker@adacore.com>
7275
7276 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7277 new-line in debug string. Remove trailing spaces.
7278
1b281443
SS
72792014-02-19 Stan Shebs <stan@codesourcery.com>
7280
7281 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7282
f7bd0f78
SC
72832014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7284
7285 * NEWS: Add entry for the new feature
7286 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7287 and class values.
7288
399ebc3d
SS
72892014-02-19 Stan Shebs <stan@codesourcery.com>
7290
7291 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7292
c658158d
PA
72932014-02-19 Pedro Alves <palves@redhat.com>
7294
7295 * common/ptid.h (struct ptid): Mention that process_stratum
7296 targets should prefer ptid.lwp.
7297
ba348170
PA
72982014-02-19 Pedro Alves <palves@redhat.com>
7299
7300 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7301 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7302 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7303 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7304 store remote thread ids rather than ptid.tid.
7305 (_initialize_remote): Adjust.
7306
ac01945b
TT
73072014-02-19 Tom Tromey <tromey@redhat.com>
7308
7309 * target.c (target_get_unwinder): Rewrite.
7310 (target_get_tailcall_unwinder): Rewrite.
7311 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7312 (record_btrace_to_get_tailcall_unwinder): New function.
7313 (init_record_btrace_ops): Update.
7314 * target.h (struct target_ops) <to_get_unwinder,
7315 to_get_tailcall_unwinder>: Now function pointers. Use
7316 TARGET_DEFAULT_RETURN.
7317
8476dc92
TT
73182014-02-19 Tom Tromey <tromey@redhat.com>
7319
7320 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7321 argument.
7322 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7323
c0eca49f
TT
73242014-02-19 Tom Tromey <tromey@redhat.com>
7325
7326 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7327 directly.
7328 * target-delegates.c: Rebuild.
7329 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7330 TARGET_DEFAULT_FUNC.
7331 * target.c (default_target_decr_pc_after_break): Rename from
7332 forward_target_decr_pc_after_break. Simplify.
7333 (target_decr_pc_after_break): Rely on delegation.
7334
596b6b39
TT
73352014-02-19 Tom Tromey <tromey@redhat.com>
7336
7337 * target.c (update_current_target): Do not INHERIT to_doc or
7338 to_magic. Do not de_fault to_open or to_close.
7339
b427c1bc
TT
73402014-02-19 Tom Tromey <tromey@redhat.com>
7341
7342 * gcore.h (objfile_find_memory_regions): Declare.
7343 * gcore.c (objfile_find_memory_regions): No longer static. Add
7344 "self" argument.
7345 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7346 * exec.c: Include gcore.h.
7347 (exec_set_find_memory_regions): Remove.
7348 (exec_find_memory_regions): Remove.
7349 (exec_do_find_memory_regions): Remove.
7350 (init_exec_ops): Update.
7351 * defs.h (exec_set_find_memory_regions): Remove.
7352
9b144037
TT
73532014-02-19 Tom Tromey <tromey@redhat.com>
7354
7355 * target-delegates.c: Rebuild.
7356 * target.h (struct target_ops) <to_extra_thread_info,
7357 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7358 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7359 not 0, in TARGET_DEFAULT_RETURN.
7360
555bbdeb
TT
73612014-02-19 Tom Tromey <tromey@redhat.com>
7362
7363 * target.c (complete_target_initialization): Remove casts. Use
7364 return_zero_has_execution.
7365 (return_zero): Add "ignore" argument.
7366 (return_zero_has_execution): New function.
7367 (init_dummy_target): Remove casts. Use
7368 return_zero_has_execution.
7369
be4ddd36
TT
73702014-02-19 Tom Tromey <tromey@redhat.com>
7371
7372 * target.c (update_current_target): Update comments. Do not
7373 INHERIT to_stratum.
7374
2117c711
TT
73752014-02-19 Tom Tromey <tromey@redhat.com>
7376
7377 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7378 needed.
7379 * corelow.c (core_read_description): Delegate when needed.
7380 * remote.c (remote_read_description): Delegate when needed.
7381 * target-delegates.c: Rebuild.
7382 * target.c (target_read_description): Rewrite.
7383 * target.h (struct target_ops) <to_read_description>: Update
7384 comment. Use TARGET_DEFAULT_RETURN.
7385
e88ef65c
TT
73862014-02-19 Tom Tromey <tromey@redhat.com>
7387
7388 * target-delegates.c: Rebuild.
7389 * target.c (update_current_target): Don't inherit or default
7390 to_can_run.
7391 (find_default_run_target): Check against delegate_can_run.
7392 * target.h (struct target_ops) <to_can_run>: Use
7393 TARGET_DEFAULT_RETURN.
7394
86a0854a
TT
73952014-02-19 Tom Tromey <tromey@redhat.com>
7396
7397 * target-delegates.c: Rebuild.
7398 * target.c (target_disconnect): Unconditionally delegate.
7399 * target.h (struct target_ops) <to_disconnect>: Use
7400 TARGET_DEFAULT_NORETURN.
7401
ee97f592
TT
74022014-02-19 Tom Tromey <tromey@redhat.com>
7403
7404 * record.c (record_stop): Unconditionally delegate.
7405 * target-delegates.c: Rebuild.
7406 * target.c (target_stop_recording): Unconditionally delegate.
7407 * target.h (struct target_ops) <to_stop_recording>: Use
7408 TARGET_DEFAULT_IGNORE.
7409
6dc7fcf4
TT
74102014-02-19 Tom Tromey <tromey@redhat.com>
7411
7412 * target-delegates.c: Rebuild.
7413 * target.c (target_enable_btrace): Unconditionally delegate.
7414 * target.h (struct target_ops) <to_enable_btrace>: Use
7415 TARGET_DEFAULT_NORETURN.
7416
eb5b20d4
TT
74172014-02-19 Tom Tromey <tromey@redhat.com>
7418
7419 * target-delegates.c: Rebuild.
7420 * target.c (target_read_btrace): Unconditionally delegate.
7421 * target.h (struct target_ops) <to_read_btrace>: Use
7422 TARGET_DEFAULT_NORETURN.
7423
9ace480d
TT
74242014-02-19 Tom Tromey <tromey@redhat.com>
7425
7426 * target-delegates.c: Rebuild.
7427 * target.c (target_teardown_btrace): Unconditionally delegate.
7428 * target.h (struct target_ops) <to_teardown_btrace>: Use
7429 TARGET_DEFAULT_NORETURN.
7430
8dc292d3
TT
74312014-02-19 Tom Tromey <tromey@redhat.com>
7432
7433 * target-delegates.c: Rebuild.
7434 * target.c (target_disable_btrace): Unconditionally delegate.
7435 * target.h (struct target_ops) <to_disable_btrace>: Use
7436 TARGET_DEFAULT_NORETURN.
7437
58a5184e
TT
74382014-02-19 Tom Tromey <tromey@redhat.com>
7439
7440 * target-delegates.c: Rebuild.
7441 * target.c (default_search_memory): New function.
7442 (simple_search_memory): Update comment.
7443 (target_search_memory): Unconditionally delegate.
7444 * target.h (struct target_ops) <to_search_memory>: Use
7445 TARGET_DEFAULT_FUNC.
7446
8de71aab
TT
74472014-02-19 Tom Tromey <tromey@redhat.com>
7448
7449 * auxv.c (default_auxv_parse): No longer static.
7450 (target_auxv_parse): Unconditionally delegate.
7451 * auxv.h (default_auxv_parse): Declare.
7452 * target-delegates.c: Rebuild.
7453 * target.c: Include auxv.h.
7454 * target.h (struct target_ops) <to_auxv_parse>: Use
7455 TARGET_DEFAULT_FUNC.
7456
6b2c5a57
TT
74572014-02-19 Tom Tromey <tromey@redhat.com>
7458
7459 * target-delegates.c: Rebuild.
7460 * target.c (target_memory_map): Unconditionally delegate.
7461 * target.h (struct target_ops) <to_memory_map>: Use
7462 TARGET_DEFAULT_RETURN.
7463
cbffc065
TT
74642014-02-19 Tom Tromey <tromey@redhat.com>
7465
7466 * target-delegates.c: Rebuild.
7467 * target.c (target_thread_alive): Unconditionally delegate.
7468 * target.h (struct target_ops) <to_thread_alive>: Use
7469 TARGET_DEFAULT_RETURN.
7470
f09e2107
TT
74712014-02-19 Tom Tromey <tromey@redhat.com>
7472
7473 * target-delegates.c: Rebuild.
7474 * target.c (target_save_record): Unconditionally delegate.
7475 * target.h (struct target_ops) <to_save_record>: Use
7476 TARGET_DEFAULT_NORETURN.
7477
07366925
TT
74782014-02-19 Tom Tromey <tromey@redhat.com>
7479
7480 * target-delegates.c: Rebuild.
7481 * target.c (target_delete_record): Unconditionally delegate.
7482 * target.h (struct target_ops) <to_delete_record>: Use
7483 TARGET_DEFAULT_NORETURN.
7484
dd2e9d25
TT
74852014-02-19 Tom Tromey <tromey@redhat.com>
7486
7487 * target-delegates.c: Rebuild.
7488 * target.c (target_record_is_replaying): Unconditionally
7489 delegate.
7490 * target.h (struct target_ops) <to_record_is_replaying>: Use
7491 TARGET_DEFAULT_RETURN.
7492
671e76cc
TT
74932014-02-19 Tom Tromey <tromey@redhat.com>
7494
7495 * target-delegates.c: Rebuild.
7496 * target.c (target_goto_record_begin): Unconditionally delegate.
7497 * target.h (struct target_ops) <to_goto_record_begin>: Use
7498 TARGET_DEFAULT_NORETURN.
7499
e9179bb3
TT
75002014-02-19 Tom Tromey <tromey@redhat.com>
7501
7502 * target-delegates.c: Rebuild.
7503 * target.c (target_goto_record_end): Unconditionally delegate.
7504 * target.h (struct target_ops) <to_goto_record_end>: Use
7505 TARGET_DEFAULT_NORETURN.
7506
05969c84
TT
75072014-02-19 Tom Tromey <tromey@redhat.com>
7508
7509 * target-delegates.c: Rebuild.
7510 * target.c (target_goto_record): Unconditionally delegate.
7511 * target.h (struct target_ops) <to_goto_record>: Use
7512 TARGET_DEFAULT_NORETURN.
7513
3679abfa
TT
75142014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target-delegates.c: Rebuild.
7517 * target.c (target_insn_history): Unconditionally delegate.
7518 * target.h (struct target_ops) <to_insn_history>: Use
7519 TARGET_DEFAULT_NORETURN.
7520
8444ab58
TT
75212014-02-19 Tom Tromey <tromey@redhat.com>
7522
7523 * target-delegates.c: Rebuild.
7524 * target.c (target_insn_history_from): Unconditionally delegate.
7525 * target.h (struct target_ops) <to_insn_history_from>: Use
7526 TARGET_DEFAULT_NORETURN.
7527
c29302cc
TT
75282014-02-19 Tom Tromey <tromey@redhat.com>
7529
7530 * target-delegates.c: Rebuild.
7531 * target.c (target_insn_history_range): Unconditionally delegate.
7532 * target.h (struct target_ops) <to_insn_history_range>: Use
7533 TARGET_DEFAULT_NORETURN.
7534
170049d4
TT
75352014-02-19 Tom Tromey <tromey@redhat.com>
7536
7537 * target-delegates.c: Rebuild.
7538 * target.c (target_call_history): Unconditionally delegate.
7539 * target.h (struct target_ops) <to_call_history>: Use
7540 TARGET_DEFAULT_NORETURN.
7541
16fc27d6
TT
75422014-02-19 Tom Tromey <tromey@redhat.com>
7543
7544 * target-delegates.c: Rebuild.
7545 * target.c (target_call_history_from): Unconditionally delegate.
7546 * target.h (struct target_ops) <to_call_history_from>: Use
7547 TARGET_DEFAULT_NORETURN.
7548
115d9817
TT
75492014-02-19 Tom Tromey <tromey@redhat.com>
7550
7551 * target-delegates.c: Rebuild.
7552 * target.c (target_call_history_range): Unconditionally delegate.
7553 * target.h (struct target_ops) <to_call_history_range>: Use
7554 TARGET_DEFAULT_NORETURN.
7555
eb276a6b
TT
75562014-02-19 Tom Tromey <tromey@redhat.com>
7557
7558 * target-delegates.c: Rebuild.
7559 * target.c (target_verify_memory): Unconditionally delegate.
7560 * target.h (struct target_ops) <to_verify_memory>: Use
7561 TARGET_DEFAULT_NORETURN.
7562
9e538d0d
TT
75632014-02-19 Tom Tromey <tromey@redhat.com>
7564
7565 * target-delegates.c: Rebuild.
7566 * target.c (target_core_of_thread): Unconditionally delegate.
7567 * target.h (struct target_ops) <to_core_of_thread>: Use
7568 TARGET_DEFAULT_RETURN.
7569
f6fb2925
TT
75702014-02-19 Tom Tromey <tromey@redhat.com>
7571
7572 * target-delegates.c: Rebuild.
7573 * target.c (target_flash_done): Unconditionally delegate.
7574 * target.h (struct target_ops) <to_flash_done>: Use
7575 TARGET_DEFAULT_NORETURN.
7576
e8a6c6ac
TT
75772014-02-19 Tom Tromey <tromey@redhat.com>
7578
7579 * target-delegates.c: Rebuild.
7580 * target.c (target_flash_erase): Unconditionally delegate.
7581 * target.h (struct target_ops) <to_flash_erase>: Use
7582 TARGET_DEFAULT_NORETURN.
7583
7e35c012
TT
75842014-02-19 Tom Tromey <tromey@redhat.com>
7585
7586 * target-delegates.c: Rebuild.
7587 * target.c (target_get_section_table): Unconditionally delegate.
7588 * target.h (struct target_ops) <to_get_section_table>: Use
7589 TARGET_DEFAULT_RETURN.
7590
770234d3
TT
75912014-02-19 Tom Tromey <tromey@redhat.com>
7592
7593 * target-delegates.c: Rebuild.
7594 * target.c (target_pid_to_str): Unconditionally delegate.
7595 (init_dummy_target): Don't initialize to_pid_to_str.
7596 (default_pid_to_str): Rename from dummy_pid_to_str.
7597 * target.h (struct target_ops) <to_pid_to_str>: Use
7598 TARGET_DEFAULT_FUNC.
7599
09b0dc2b
TT
76002014-02-19 Tom Tromey <tromey@redhat.com>
7601
7602 * target-delegates.c: Rebuild.
7603 * target.c (target_find_new_threads): Unconditionally delegate.
7604 * target.h (struct target_ops) <to_find_new_threads>: Use
7605 TARGET_DEFAULT_RETURN.
7606
7d4f8efa
TT
76072014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * target-delegates.c: Rebuild.
7610 * target.c (target_program_signals): Unconditionally delegate.
7611 * target.h (struct target_ops) <to_program_signals>: Use
7612 TARGET_DEFAULT_IGNORE.
7613
035cad7f
TT
76142014-02-19 Tom Tromey <tromey@redhat.com>
7615
7616 * target-delegates.c: Rebuild.
7617 * target.c (target_pass_signals): Unconditionally delegate.
7618 * target.h (struct target_ops) <to_pass_signals>: Use
7619 TARGET_DEFAULT_IGNORE.
7620
8d657035
TT
76212014-02-19 Tom Tromey <tromey@redhat.com>
7622
7623 * target-delegates.c: Rebuild.
7624 * target.c (default_mourn_inferior): New function.
7625 (target_mourn_inferior): Unconditionally delegate.
7626 * target.h (struct target_ops) <to_mourn_inferior>: Use
7627 TARGET_DEFAULT_FUNC.
7628
098dba18
TT
76292014-02-19 Tom Tromey <tromey@redhat.com>
7630
7631 * target-delegates.c: Rebuild.
7632 * target.c (default_follow_fork): New function.
7633 (target_follow_fork): Unconditionally delegate.
7634 * target.h (struct target_ops) <to_follow_fork>: Use
7635 TARGET_DEFAULT_FUNC.
7636
423a4807
TT
76372014-02-19 Tom Tromey <tromey@redhat.com>
7638
7639 * target-delegates.c: Rebuild.
7640 * target.c (target_kill): Unconditionally delegate.
7641 * target.h (struct target_ops) <to_kill>: Use
7642 TARGET_DEFAULT_NORETURN.
7643
6c7e5e5c
TT
76442014-02-19 Tom Tromey <tromey@redhat.com>
7645
7646 * target-delegates.c: Rebuild.
7647 * target.c (target_masked_watch_num_registers): Unconditionally
7648 delegate.
7649 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7650 Use TARGET_DEFAULT_RETURN.
7651
8b1c364c
TT
76522014-02-19 Tom Tromey <tromey@redhat.com>
7653
7654 * target-delegates.c: Rebuild.
7655 * target.c (target_remove_mask_watchpoint): Unconditionally
7656 delegate.
7657 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7658 TARGET_DEFAULT_RETURN.
7659
cd4ae029
TT
76602014-02-19 Tom Tromey <tromey@redhat.com>
7661
7662 * target-delegates.c: Rebuild.
7663 * target.c (target_insert_mask_watchpoint): Unconditionally
7664 delegate.
7665 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7666 TARGET_DEFAULT_RETURN.
7667
a134316b
TT
76682014-02-19 Tom Tromey <tromey@redhat.com>
7669
7670 * target-delegates.c: Rebuild.
7671 * target.c (target_ranged_break_num_registers): Unconditionally
7672 delegate.
7673 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7674 Use TARGET_DEFAULT_RETURN.
7675
ad5989bd
TT
76762014-02-19 Tom Tromey <tromey@redhat.com>
7677
7678 * target-delegates.c: Rebuild.
7679 * target.c (target_fetch_registers): Unconditionally delegate.
7680 * target.h (struct target_ops) <to_fetch_registers>: Use
7681 TARGET_DEFAULT_NORETURN.
7682
46ee7e8d
TT
76832014-02-19 Tom Tromey <tromey@redhat.com>
7684
7685 * target-delegates.c: Rebuild.
7686 * target.c (update_current_target): Don't inherit or default
7687 to_stop.
7688 * target.h (struct target_ops) <to_stop>: Use
7689 TARGET_DEFAULT_IGNORE.
7690
843f59ed
TT
76912014-02-19 Tom Tromey <tromey@redhat.com>
7692
7693 * target-delegates.c: Rebuild.
7694 * target.c (update_current_target): Don't inherit or default
7695 to_can_run_breakpoint_commands.
7696 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7697 Use TARGET_DEFAULT_RETURN.
7698
ccfde2a0
TT
76992014-02-19 Tom Tromey <tromey@redhat.com>
7700
7701 * target-delegates.c: Rebuild.
7702 * target.c (update_current_target): Don't inherit or default
7703 to_supports_evaluation_of_breakpoint_conditions.
7704 * target.h (struct target_ops)
7705 <to_supports_evaluation_of_breakpoint_conditions>: Use
7706 TARGET_DEFAULT_RETURN.
7707
0de91722
TT
77082014-02-19 Tom Tromey <tromey@redhat.com>
7709
7710 * target-delegates.c: Rebuild.
7711 * target.c (update_current_target): Don't inherit or default
7712 to_augmented_libraries_svr4_read.
7713 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7714 Use TARGET_DEFAULT_RETURN.
7715
9a7d8b48
TT
77162014-02-19 Tom Tromey <tromey@redhat.com>
7717
7718 * target-delegates.c: Rebuild.
7719 * target.c (update_current_target): Don't inherit or default
7720 to_can_use_agent.
7721 * target.h (struct target_ops) <to_can_use_agent>: Use
7722 TARGET_DEFAULT_RETURN.
7723
d9db5b21
TT
77242014-02-19 Tom Tromey <tromey@redhat.com>
7725
7726 * target-delegates.c: Rebuild.
7727 * target.c (update_current_target): Don't inherit or default
7728 to_use_agent.
7729 * target.h (struct target_ops) <to_use_agent>: Use
7730 TARGET_DEFAULT_NORETURN.
7731
92155eeb
TT
77322014-02-19 Tom Tromey <tromey@redhat.com>
7733
7734 * target-delegates.c: Rebuild.
7735 * target.c (update_current_target): Don't inherit or default
7736 to_traceframe_info.
7737 (return_null): Remove.
7738 * target.h (struct target_ops) <to_traceframe_info>: Use
7739 TARGET_DEFAULT_RETURN.
7740
d6522a22
TT
77412014-02-19 Tom Tromey <tromey@redhat.com>
7742
7743 * target-delegates.c: Rebuild.
7744 * target.c (update_current_target): Don't inherit or default
7745 to_static_tracepoint_markers_by_strid.
7746 * target.h (struct target_ops)
7747 <to_static_tracepoint_markers_by_strid>: Use
7748 TARGET_DEFAULT_NORETURN.
7749
4c3e4425
TT
77502014-02-19 Tom Tromey <tromey@redhat.com>
7751
7752 * target-delegates.c: Rebuild.
7753 * target.c (update_current_target): Don't inherit or default
7754 to_static_tracepoint_marker_at.
7755 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7756 Use TARGET_DEFAULT_RETURN.
7757
dcd6917f
TT
77582014-02-19 Tom Tromey <tromey@redhat.com>
7759
7760 * target-delegates.c: Rebuild.
7761 * target.c (update_current_target): Don't inherit or default
7762 to_set_permissions.
7763 * target.h (struct target_ops) <to_set_permissions>: Use
7764 TARGET_DEFAULT_IGNORE.
7765
22bcceee
TT
77662014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target-delegates.c: Rebuild.
7769 * target.c (update_current_target): Don't inherit or default
7770 to_get_tib_address.
7771 * target.h (struct target_ops) <to_get_tib_address>: Use
7772 TARGET_DEFAULT_NORETURN.
7773
8586ccaa
TT
77742014-02-19 Tom Tromey <tromey@redhat.com>
7775
7776 * target-delegates.c: Rebuild.
7777 * target.c (update_current_target): Don't inherit or default
7778 to_set_trace_notes.
7779 * target.h (struct target_ops) <to_set_trace_notes>: Use
7780 TARGET_DEFAULT_RETURN.
7781
91df8d1d
TT
77822014-02-19 Tom Tromey <tromey@redhat.com>
7783
7784 * target-delegates.c: Rebuild.
7785 * target.c (update_current_target): Don't initialize
7786 to_set_trace_buffer_size.
7787 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7788 TARGET_DEFAULT_IGNORE.
7789
8d526939
TT
77902014-02-19 Tom Tromey <tromey@redhat.com>
7791
7792 * target-delegates.c: Rebuild.
7793 * target.c (update_current_target): Don't inherit or default
7794 to_set_circular_trace_buffer.
7795 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7796 TARGET_DEFAULT_IGNORE.
7797
0bcfeddf
TT
77982014-02-19 Tom Tromey <tromey@redhat.com>
7799
7800 * target-delegates.c: Rebuild.
7801 * target.c (update_current_target): Don't inherit or default
7802 to_set_disconnected_tracing.
7803 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7804 TARGET_DEFAULT_IGNORE.
7805
9249843f
TT
78062014-02-19 Tom Tromey <tromey@redhat.com>
7807
7808 * target-delegates.c: Rebuild.
7809 * target.c (update_current_target): Don't inherit or default
7810 to_get_min_fast_tracepoint_insn_len.
7811 (return_minus_one): Remove.
7812 * target.h (struct target_ops)
7813 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7814
ace92e7d
TT
78152014-02-19 Tom Tromey <tromey@redhat.com>
7816
7817 * target-delegates.c: Rebuild.
7818 * target.c (update_current_target): Don't inherit or default
7819 to_get_raw_trace_data.
7820 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7821 TARGET_DEFAULT_NORETURN.
7822
08120467
TT
78232014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * target-delegates.c: Rebuild.
7826 * target.c (update_current_target): Don't inherit or default
7827 to_upload_trace_state_variables.
7828 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7829 Use TARGET_DEFAULT_RETURN.
7830
1e949b00
TT
78312014-02-19 Tom Tromey <tromey@redhat.com>
7832
7833 * target-delegates.c: Rebuild.
7834 * target.c (update_current_target): Don't inherit or default
7835 to_upload_tracepoints.
7836 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7837 TARGET_DEFAULT_RETURN.
7838
a2e6c147
TT
78392014-02-19 Tom Tromey <tromey@redhat.com>
7840
7841 * target-delegates.c: Rebuild.
7842 * target.c (update_current_target): Don't inherit or default
7843 to_save_trace_data.
7844 * target.h (struct target_ops) <to_save_trace_data>: Use
7845 TARGET_DEFAULT_NORETURN.
7846
959bcd0b
TT
78472014-02-19 Tom Tromey <tromey@redhat.com>
7848
7849 * target-delegates.c: Rebuild.
7850 * target.c (update_current_target): Don't inherit or default
7851 to_get_trace_state_variable_value.
7852 * target.h (struct target_ops)
7853 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7854
afc94e66
TT
78552014-02-19 Tom Tromey <tromey@redhat.com>
7856
7857 * target-delegates.c: Rebuild.
7858 * target.c (update_current_target): Don't inherit or default
7859 to_trace_find.
7860 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7861
e51c07ea
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_trace_stop.
7867 * target.h (struct target_ops) <to_trace_stop>: Use
7868 TARGET_DEFAULT_NORETURN.
7869
6fea14cd
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_get_tracepoint_status.
7875 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7876 TARGET_DEFAULT_NORETURN.
7877
4072d4ff
TT
78782014-02-19 Tom Tromey <tromey@redhat.com>
7879
7880 * target-delegates.c: Rebuild.
7881 * target.c (update_current_target): Don't inherit or default
7882 to_get_trace_status.
7883 * target.h (struct target_ops) <to_get_trace_status>: Use
7884 TARGET_DEFAULT_RETURN.
7885
25da2e80
TT
78862014-02-19 Tom Tromey <tromey@redhat.com>
7887
7888 * target-delegates.c: Rebuild.
7889 * target.c (update_current_target): Don't inherit or default
7890 to_trace_start.
7891 * target.h (struct target_ops) <to_trace_start>: Use
7892 TARGET_DEFAULT_NORETURN.
7893
86dd181d
TT
78942014-02-19 Tom Tromey <tromey@redhat.com>
7895
7896 * target-delegates.c: Rebuild.
7897 * target.c (update_current_target): Don't inherit or default
7898 to_trace_set_readonly_regions.
7899 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7900 Use TARGET_DEFAULT_NORETURN.
7901
05c41993
TT
79022014-02-19 Tom Tromey <tromey@redhat.com>
7903
7904 * target-delegates.c: Rebuild.
7905 * target.c (update_current_target): Don't inherit or default
7906 to_disable_tracepoint.
7907 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7908 TARGET_DEFAULT_NORETURN.
7909
151f70f1
TT
79102014-02-19 Tom Tromey <tromey@redhat.com>
7911
7912 * target-delegates.c: Rebuild.
7913 * target.c (update_current_target): Don't inherit or default
7914 to_enable_tracepoint.
7915 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7916 TARGET_DEFAULT_NORETURN.
7917
94eb98b9
TT
79182014-02-19 Tom Tromey <tromey@redhat.com>
7919
7920 * target-delegates.c: Rebuild.
7921 * target.c (update_current_target): Don't inherit or default
7922 to_download_trace_state_variable.
7923 * target.h (struct target_ops) <to_download_trace_state_variable>:
7924 Use TARGET_DEFAULT_NORETURN.
7925
719acc4a
TT
79262014-02-19 Tom Tromey <tromey@redhat.com>
7927
7928 * target-delegates.c: Rebuild.
7929 * target.c (update_current_target): Don't inherit or default
7930 to_can_download_tracepoint.
7931 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7932 TARGET_DEFAULT_RETURN.
7933
9a980a22
TT
79342014-02-19 Tom Tromey <tromey@redhat.com>
7935
7936 * target-delegates.c: Rebuild.
7937 * target.c (update_current_target): Don't inherit or default
7938 to_download_tracepoint.
7939 * target.h (struct target_ops) <to_download_tracepoint>: Use
7940 TARGET_DEFAULT_NORETURN.
7941
5536135b
TT
79422014-02-19 Tom Tromey <tromey@redhat.com>
7943
7944 * target-delegates.c: Rebuild.
7945 * target.c (update_current_target): Don't inherit or default
7946 to_trace_init.
7947 * target.h (struct target_ops) <to_trace_init>: Use
7948 TARGET_DEFAULT_RETURN.
7949
9409d39e
TT
79502014-02-19 Tom Tromey <tromey@redhat.com>
7951
7952 * target-delegates.c: Rebuild.
7953 * target.c (update_current_target): Don't inherit or default
7954 to_supports_string_tracing.
7955 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7956 TARGET_DEFAULT_RETURN.
7957
aab1b22d
TT
79582014-02-19 Tom Tromey <tromey@redhat.com>
7959
7960 * target-delegates.c: Rebuild.
7961 * target.c (update_current_target): Don't inherit or default
7962 to_supports_enable_disable_tracepoint.
7963 * target.h (struct target_ops)
7964 <to_supports_enable_disable_tracepoint>: Use
7965 TARGET_DEFAULT_RETURN.
7966
a7304748
TT
79672014-02-19 Tom Tromey <tromey@redhat.com>
7968
7969 * target-delegates.c: Rebuild.
7970 * target.c (update_current_target): Don't inherit or default
7971 to_supports_multi_process.
7972 * target.h (struct target_ops) <to_supports_multi_process>: Use
7973 TARGET_DEFAULT_RETURN.
7974
4229b31d
TT
79752014-02-19 Tom Tromey <tromey@redhat.com>
7976
7977 * target-delegates.c: Rebuild.
7978 * target.c (update_current_target): Don't inherit or default
7979 to_get_ada_task_ptid.
7980 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7981 TARGET_DEFAULT_FUNC.
7982
43eba180
TT
79832014-02-19 Tom Tromey <tromey@redhat.com>
7984
7985 * target-delegates.c: Rebuild.
7986 * target.c (update_current_target): Don't inherit or default
7987 to_thread_architecture.
7988 * target.h (struct target_ops) <to_thread_architecture>: Use
7989 TARGET_DEFAULT_FUNC.
7990
fe31bf5b
TT
79912014-02-19 Tom Tromey <tromey@redhat.com>
7992
7993 * target-delegates.c: Rebuild.
7994 * target.c (update_current_target): Don't inherit or default
7995 to_execution_direction.
7996 * target.h (struct target_ops) <to_execution_direction>: Use
7997 TARGET_DEFAULT_FUNC.
7998
53e1cfc7
TT
79992014-02-19 Tom Tromey <tromey@redhat.com>
8000
8001 * target-delegates.c: Rebuild.
8002 * target.c (update_current_target): Don't inherit or default
8003 to_can_execute_reverse.
8004 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8005 TARGET_DEFAULT_RETURN.
8006 (target_can_execute_reverse): Unconditionally delegate.
8007
9bb9d61d
TT
80082014-02-19 Tom Tromey <tromey@redhat.com>
8009
8010 * target-delegates.c: Rebuild.
8011 * target.c (update_current_target): Don't inherit or default
8012 to_goto_bookmark.
8013 (dummy_goto_bookmark): Remove.
8014 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8015 * target.h (struct target_ops) <to_goto_bookmark>: Use
8016 TARGET_DEFAULT_NORETURN.
8017
3dbafbbb
TT
80182014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * target-delegates.c: Rebuild.
8021 * target.c (update_current_target): Don't inherit or default
8022 to_get_bookmark.
8023 (dummy_get_bookmark): Remove.
8024 (init_dummy_target): Don't inherit or default to_get_bookmark.
8025 * target.h (struct target_ops) <to_get_bookmark>: Use
8026 TARGET_DEFAULT_NORETURN
8027
16f796b1
TT
80282014-02-19 Tom Tromey <tromey@redhat.com>
8029
8030 * target-delegates.c: Rebuild.
8031 * target.c (update_current_target): Don't inherit or default
8032 to_make_corefile_notes.
8033 (init_dummy_target): Don't initialize to_make_corefile_notes.
8034 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8035 TARGET_DEFAULT_FUNC.
8036
0b5a2719
TT
80372014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * target-delegates.c: Rebuild.
8040 * target.c (update_current_target): Don't inherit or default
8041 to_find_memory_regions.
8042 (init_dummy_target): Don't initialize to_find_memory_regions.
8043 * target.h (struct target_ops) <to_find_memory_regions>: Use
8044 TARGET_DEFAULT_FUNC.
8045
d9cb0195
TT
80462014-02-19 Tom Tromey <tromey@redhat.com>
8047
8048 * target-delegates.c: Rebuild.
8049 * target.c (update_current_target): Don't inherit or default
8050 to_log_command.
8051 * target.h (struct target_ops) <to_log_command>: Use
8052 TARGET_DEFAULT_IGNORE.
8053 (target_log_command): Unconditionally delegate.
8054
830ca330
TT
80552014-02-19 Tom Tromey <tromey@redhat.com>
8056
8057 * target-delegates.c: Rebuild.
8058 * target.c (update_current_target): Don't inherit or default
8059 to_pid_to_exec_file.
8060 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8061 TARGET_DEFAULT_RETURN.
8062
825828fc
TT
80632014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * target-delegates.c: Rebuild.
8066 * target.c (update_current_target): Don't inherit or default
8067 to_thread_name.
8068 (target_thread_name): Unconditionally delegate.
8069 * target.h (struct target_ops) <to_thread_name>: Use
8070 TARGET_DEFAULT_RETURN.
8071
4a7e6dda
TT
80722014-02-19 Tom Tromey <tromey@redhat.com>
8073
8074 * target-delegates.c: Rebuild.
8075 * target.c (update_current_target): Don't inherit or default
8076 to_extra_thread_info.
8077 * target.h (struct target_ops) <to_extra_thread_info>: Use
8078 TARGET_DEFAULT_RETURN.
8079
0db88c1d
TT
80802014-02-19 Tom Tromey <tromey@redhat.com>
8081
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8084 to_has_exited.
8085 * target.h (struct target_ops) <to_has_exited>: Use
8086 TARGET_DEFAULT_RETURN..
8087
6a9fa051
TT
80882014-02-19 Tom Tromey <tromey@redhat.com>
8089
8090 * target-delegates.c: Rebuild.
8091 * target.c (update_current_target): Don't inherit or default
8092 to_set_syscall_catchpoint.
8093 (return_one): Remove.
8094 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8095 TARGET_DEFAULT_RETURN.
8096
62f64d7a
TT
80972014-02-19 Tom Tromey <tromey@redhat.com>
8098
8099 * target-delegates.c: Rebuild.
8100 * target.c (update_current_target): Don't inherit or default
8101 to_insert_exec_catchpoint.
8102 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8103 TARGET_DEFAULT_RETURN.
8104
cda0f38c
TT
81052014-01-08 Tom Tromey <tromey@redhat.com>
8106
8107 * target-delegates.c: Rebuild.
8108 * target.c (update_current_target): Don't inherit or default
8109 to_insert_exec_catchpoint.
8110 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8111 TARGET_DEFAULT_RETURN.
8112
95c3375e
TT
81132014-02-19 Tom Tromey <tromey@redhat.com>
8114
8115 * target-delegates.c: Rebuild.
8116 * target.c (update_current_target): Don't inherit or default
8117 to_remove_vfork_catchpoint.
8118 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8119 TARGET_DEFAULT_RETURN.
8120
7e18a8dc
TT
81212014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (update_current_target): Don't inherit or default
8125 to_insert_vfork_catchpoint.
8126 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8127 TARGET_DEFAULT_RETURN.
8128
e1a21fb7
TT
81292014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target-delegates.c: Rebuild.
8132 * target.c (update_current_target): Don't inherit or default
8133 to_remove_fork_catchpoint.
8134 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8135 TARGET_DEFAULT_RETURN.
8136
5958ebeb
TT
81372014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target-delegates.c: Rebuild.
8140 * target.c (update_current_target): Don't inherit or default
8141 to_insert_fork_catchpoint.
8142 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8143 TARGET_DEFAULT_RETURN.
8144
340ba4bf
TT
81452014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * target-delegates.c: Rebuild.
8148 * target.c (update_current_target): Don't inherit or default
8149 to_post_startup_inferior.
8150 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8151 TARGET_DEFAULT_IGNORE.
8152
7634da87
TT
81532014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target-delegates.c: Rebuild.
8156 * target.c (update_current_target): Don't inherit or default
8157 to_load.
8158 * target.h (struct target_ops) <to_load>: Use
8159 TARGET_DEFAULT_NORETURN.
8160
e19e919f
TT
81612014-02-19 Tom Tromey <tromey@redhat.com>
8162
8163 * target-delegates.c: Rebuild.
8164 * target.c (update_current_target): Don't inherit or default
8165 to_terminal_info.
8166 * target.h (struct target_ops) <to_terminal_info>: Use
8167 TARGET_DEFAULT_FUNC.
8168
c6ea8f79
TT
81692014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target-delegates.c: Rebuild.
8172 * target.c (update_current_target): Don't inherit or default
8173 to_terminal_save_ours.
8174 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8175 TARGET_DEFAULT_IGNORE.
8176
e4a733f1
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (update_current_target): Don't inherit or default
8181 to_terminal_ours.
8182 * target.h (struct target_ops) <to_terminal_ours>: Use
8183 TARGET_DEFAULT_IGNORE.
8184
74fcbef9
TT
81852014-02-19 Tom Tromey <tromey@redhat.com>
8186
8187 * target-delegates.c: Rebuild.
8188 * target.c (update_current_target): Don't inherit or default
8189 to_terminal_ours_for_output.
8190 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8191 TARGET_DEFAULT_IGNORE.
8192
ddeaacc9
TT
81932014-02-19 Tom Tromey <tromey@redhat.com>
8194
8195 * target-delegates.c: Rebuild.
8196 * target.c (update_current_target): Don't inherit or default
8197 to_terminal_inferior.
8198 * target.h (struct target_ops) <to_terminal_inferior>: Use
8199 TARGET_DEFAULT_IGNORE.
8200
0343661d
TT
82012014-02-19 Tom Tromey <tromey@redhat.com>
8202
8203 * target-delegates.c: Rebuild.
8204 * target.c (update_current_target): Don't inherit or default
8205 to_terminal_init.
8206 * target.h (struct target_ops) <to_terminal_init>: Use
8207 TARGET_DEFAULT_IGNORE.
8208
77cdffe9
TT
82092014-02-19 Tom Tromey <tromey@redhat.com>
8210
8211 * target-delegates.c: Rebuild.
8212 * target.c (update_current_target): Don't inherit or default
8213 to_can_accel_watchpoint_condition.
8214 * target.h (struct target_ops)
8215 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8216
d03655e4
TT
82172014-02-19 Tom Tromey <tromey@redhat.com>
8218
8219 * target-delegates.c: Rebuild.
8220 * target.c (update_current_target): Don't inherit or default
8221 to_region_ok_for_hw_watchpoint.
8222 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8223 Use TARGET_DEFAULT_FUNC.
8224
65f160a9
TT
82252014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target-delegates.c: Rebuild.
8228 * target.c (update_current_target): Don't inherit or default
8229 to_watchpoint_addr_within_range.
8230 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8231 Use TARGET_DEFAULT_FUNC.
8232
61dd109f
TT
82332014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target-delegates.c: Rebuild.
8236 * target.c (update_current_target): Don't inherit or default
8237 to_remove_watchpoint.
8238 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8239 TARGET_DEFAULT_NORETURN.
8240
016facd4
TT
82412014-02-19 Tom Tromey <tromey@redhat.com>
8242
8243 * target-delegates.c: Rebuild.
8244 * target.c (update_current_target): Don't inherit or default
8245 to_insert_watchpoint.
8246 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8247 TARGET_DEFAULT_RETURN.
8248
418dabac
TT
82492014-02-19 Tom Tromey <tromey@redhat.com>
8250
8251 * target-delegates.c: Rebuild.
8252 * target.c (update_current_target): Don't inherit or default
8253 to_remove_hw_breakpoint.
8254 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8255 TARGET_DEFAULT_RETURN.
8256
61b371f9
TT
82572014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target-delegates.c: Rebuild.
8260 * target.c (update_current_target): Don't inherit or default
8261 to_insert_hw_breakpoint.
8262 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8263 TARGET_DEFAULT_RETURN.
8264
52b51d06
TT
82652014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * target-delegates.c: Rebuild.
8268 * target.c (update_current_target): Don't inherit or default
8269 to_can_use_hw_breakpoint.
8270 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8271 TARGET_DEFAULT_RETURN.
8272
f86e59b2
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target-delegates.c: Rebuild.
8276 * target.c (update_current_target): Don't inherit or default
8277 to_files_info.
8278 * target.h (struct target_ops) <to_files_info>: Use
8279 TARGET_DEFAULT_IGNORE.
8280
6c628163
TT
82812014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target-delegates.c: Rebuild.
8284 * target.c (update_current_target): Don't inherit or default
8285 to_store.
8286 * target.h (struct target_ops) <to_store>: Use
8287 TARGET_DEFAULT_NORETURN.
8288
bebd3233
TT
82892014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (update_current_target): Don't inherit or default
8293 to_post_attach.
8294 * target.h (struct target_ops) <to_post_attach>: Use
8295 TARGET_DEFAULT_IGNORE.
8296
a53f3625
TT
82972014-02-19 Tom Tromey <tromey@redhat.com>
8298
8299 * target-delegates.c: Rebuild.
8300 * target.c (update_current_target): Don't inherit or default
8301 to_rcmd.
8302 (default_rcmd): New function.
8303 (do_monitor_command): Unconditionally delegate.
8304 * target.h (struct target_ops) <to_rmcd>: Use
8305 TARGET_DEFAULT_FUNC.
8306
e9a29200
TT
83072014-02-19 Tom Tromey <tromey@redhat.com>
8308
8309 * target-delegates.c: Rebuild.
8310 * target.c (init_dummy_target): Don't initialize to_attach.
8311 (target_attach): Unconditionally delegate.
8312 * target.h (struct target_ops) <to_attach>: Use
8313 TARGET_DEFAULT_FUNC.
8314
09da0d0a
TT
83152014-02-19 Tom Tromey <tromey@redhat.com>
8316
8317 * target-delegates.c: Rebuild.
8318 * target.c (target_detach): Unconditionally delegate.
8319 (init_dummy_target): Don't initialize to_detach.
8320 * target.h (struct target_ops) <to_detach>: Use
8321 TARGET_DEFAULT_IGNORE.
8322
5436ff03
TT
83232014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8326 Add argument.
8327 (target_augmented_libraries_svr4_read): Add argument.
8328 * target.c (update_current_target): Update.
8329 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8330 argument.
8331
f0d960ea
TT
83322014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target.h (struct target_ops) <to_call_history_range>: Add
8335 argument.
8336 * target.c (target_call_history_range): Add argument.
8337 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8338 argument.
8339 (record_btrace_call_history_from): Update.
8340
ec0aea04
TT
83412014-02-19 Tom Tromey <tromey@redhat.com>
8342
8343 * target.h (struct target_ops) <to_call_history_from>: Add
8344 argument.
8345 * target.c (target_call_history_from): Add argument.
8346 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8347 argument.
8348
5df2fcba
TT
83492014-02-19 Tom Tromey <tromey@redhat.com>
8350
8351 * target.h (struct target_ops) <to_call_history>: Add argument.
8352 * target.c (target_call_history): Add argument.
8353 * record-btrace.c (record_btrace_call_history): Add 'self'
8354 argument.
8355
4e99c6b7
TT
83562014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target.h (struct target_ops) <to_insn_history_range>: Add
8359 argument.
8360 * target.c (target_insn_history_range): Add argument.
8361 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8362 argument.
8363 (record_btrace_insn_history_from): Update.
8364
9abc3ff3
TT
83652014-02-19 Tom Tromey <tromey@redhat.com>
8366
8367 * target.h (struct target_ops) <to_insn_history_from>: Add
8368 argument.
8369 * target.c (target_insn_history_from): Add argument.
8370 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8371 argument.
8372
7a6c5609
TT
83732014-02-19 Tom Tromey <tromey@redhat.com>
8374
8375 * target.h (struct target_ops) <to_insn_history>: Add argument.
8376 * target.c (target_insn_history): Add argument.
8377 * record-btrace.c (record_btrace_insn_history): Add 'self'
8378 argument.
8379
606183ac
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target.h (struct target_ops) <to_goto_record>: Add argument.
8383 * target.c (target_goto_record): Add argument.
8384 * record-full.c (record_full_goto): Add 'self' argument.
8385 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8386
307a1b91
TT
83872014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8390 * target.c (target_goto_record_end): Add argument.
8391 * record-full.c (record_full_goto_end): Add 'self' argument.
8392 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8393
08475817
TT
83942014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target.h (struct target_ops) <to_goto_record_begin>: Add
8397 argument.
8398 * target.c (target_goto_record_begin): Add argument.
8399 * record-full.c (record_full_goto_begin): Add 'self' argument.
8400 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8401 argument.
8402
1c63c994
TT
84032014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target.h (struct target_ops) <to_record_is_replaying>: Add
8406 argument.
8407 * target.c (target_record_is_replaying): Add argument.
8408 * record-full.c (record_full_is_replaying): Add 'self' argument.
8409 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8410 argument.
8411 (record_btrace_xfer_partial, record_btrace_store_registers)
8412 (record_btrace_prepare_to_store, record_btrace_resume)
8413 (record_btrace_wait, record_btrace_decr_pc_after_break)
8414 (record_btrace_find_new_threads, record_btrace_thread_alive):
8415 Update.
8416
d1b55219
TT
84172014-02-19 Tom Tromey <tromey@redhat.com>
8418
8419 * target.h (struct target_ops) <to_delete_record>: Add argument.
8420 * target.c (target_delete_record): Add argument.
8421 * record-full.c (record_full_delete): Add 'self' argument.
8422
1390f529
TT
84232014-02-19 Tom Tromey <tromey@redhat.com>
8424
8425 * target.h (struct target_ops) <to_save_record>: Add argument.
8426 * target.c (target_save_record): Add argument.
8427 * record-full.c (record_full_save): Add 'self' argument.
8428 (record_full_save): Add 'self' argument.
8429
630d6a4a
TT
84302014-02-19 Tom Tromey <tromey@redhat.com>
8431
8432 * target.h (struct target_ops) <to_info_record>: Add argument.
8433 * target.c (target_info_record): Add argument.
8434 * record.c (info_record_command): Add argument.
8435 * record-full.c (record_full_info): Add 'self' argument.
8436 * record-btrace.c (record_btrace_info): Add 'self' argument.
8437
c6cd7c02
TT
84382014-02-19 Tom Tromey <tromey@redhat.com>
8439
8440 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8441 * target.c (target_stop_recording): Add argument.
8442 * record.c (record_stop): Add argument.
8443 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8444 argument.
8445
39c49f83
TT
84462014-02-19 Tom Tromey <tromey@redhat.com>
8447
8448 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8449 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8450 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8451 argument.
8452 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8453 (_initialize_amd64_linux_nat): Use it.
8454 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8455 (_initialize_i386_linux_nat): Use it.
8456
1777056d
TT
84572014-02-19 Tom Tromey <tromey@redhat.com>
8458
8459 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8460 * target.c (target_teardown_btrace): Add argument.
8461 * remote.c (remote_teardown_btrace): Add 'self' argument.
8462 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8463 argument.
8464 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8465 argument.
8466
25e95349
TT
84672014-02-19 Tom Tromey <tromey@redhat.com>
8468
8469 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8470 * target.c (target_disable_btrace): Add argument.
8471 * remote.c (remote_disable_btrace): Add 'self' argument.
8472 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8473 argument.
8474 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8475 argument.
8476
e3c49f88
TT
84772014-02-19 Tom Tromey <tromey@redhat.com>
8478
8479 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8480 * target.c (target_enable_btrace): Add argument.
8481 * remote.c (remote_enable_btrace): Add 'self' argument.
8482 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8483 argument.
8484 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8485 argument.
8486
fe38f897
TT
84872014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8490 (target_can_use_agent): Add argument.
8491 * target.c (update_current_target): Update.
8492 * remote.c (remote_can_use_agent): Add 'self' argument.
8493 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8494
2c152180
TT
84952014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * target.h (struct target_ops) <to_use_agent>: Add argument.
8498 (target_use_agent): Add argument.
8499 * target.c (update_current_target): Update.
8500 * remote.c (remote_use_agent): Add 'self' argument.
8501 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8502
a893e81f
TT
85032014-02-19 Tom Tromey <tromey@redhat.com>
8504
8505 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8506 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8507 (target_traceframe_info): Add argument.
8508 * target.c (update_current_target): Update.
8509 * remote.c (remote_traceframe_info): Add 'self' argument.
8510 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8511
c686c57f
TT
85122014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * target.h (target_static_tracepoint_markers_by_strid): Add
8515 argument.
8516 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8517 'self' argument.
8518 * target.c (update_current_target): Update.
8519 * remote.c (struct target_ops)
8520 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8521 * linux-nat.c (struct target_ops)
8522 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8523
61fc905d
TT
85242014-02-19 Tom Tromey <tromey@redhat.com>
8525
8526 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8527 Add argument.
8528 (target_static_tracepoint_marker_at): Add argument.
8529 * target.c (update_current_target): Update.
8530 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8531 argument.
8532
c378d69d
TT
85332014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8536 (target_set_permissions): Add argument.
8537 * target.c (update_current_target): Update.
8538 * remote.c (remote_set_permissions): Add 'self' argument.
8539 (remote_start_remote): Update.
8540
bd7ae0f5
TT
85412014-02-19 Tom Tromey <tromey@redhat.com>
8542
8543 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8544 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8545 (target_get_tib_address): Add argument.
8546 * target.c (update_current_target): Update.
8547 * remote.c (remote_get_tib_address): Add 'self' argument.
8548
d9e68a2c
TT
85492014-02-19 Tom Tromey <tromey@redhat.com>
8550
8551 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8552 (target_set_trace_notes): Add argument.
8553 * target.c (update_current_target): Update.
8554 * remote.c (remote_set_trace_notes): Add 'self' argument.
8555
4da384be
TT
85562014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8559 argument.
8560 (target_set_trace_buffer_size): Add argument.
8561 * target.c (update_current_target): Update.
8562 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8563
736d5b1f
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8567 argument.
8568 (target_set_circular_trace_buffer): Add argument.
8569 * target.c (update_current_target): Update.
8570 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8571 argument.
8572
37b25738
TT
85732014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8576 argument.
8577 (target_set_disconnected_tracing): Add argument.
8578 * target.c (update_current_target): Update.
8579 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8580
0e67620a
TT
85812014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target.h (struct target_ops)
8584 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8585 (target_get_min_fast_tracepoint_insn_len): Add argument.
8586 * target.c (update_current_target): Update.
8587 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8588 argument.
8589
88ee6f45
TT
85902014-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8593 argument.
8594 (target_get_raw_trace_data): Add argument.
8595 * target.c (update_current_target): Update.
8596 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8597
181e3713
TT
85982014-02-19 Tom Tromey <tromey@redhat.com>
8599
8600 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8601 Add argument.
8602 (target_upload_trace_state_variables): Add argument.
8603 * target.c (update_current_target): Update.
8604 * remote.c (remote_upload_trace_state_variables): Add 'self'
8605 argument.
8606 (remote_start_remote): Update.
8607
ab6617cc
TT
86082014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8611 argument.
8612 (target_upload_tracepoints): Add argument.
8613 * target.c (update_current_target): Update.
8614 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8615 (remote_start_remote): Update.
8616
dc3decaf
TT
86172014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8620 (target_save_trace_data): Add argument.
8621 * target.c (update_current_target): Update.
8622 * remote.c (remote_save_trace_data): Add 'self' argument.
8623
4011015b
TT
86242014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8627 argument.
8628 * target.h (struct target_ops)
8629 <to_get_trace_state_variable_value>: Add argument.
8630 (target_get_trace_state_variable_value): Add argument.
8631 * target.c (update_current_target): Update.
8632 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8633 argument.
8634 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8635
bd4c6793
TT
86362014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8639 * target.h (struct target_ops) <to_trace_find>: Add argument.
8640 (target_trace_find): Add argument.
8641 * target.c (update_current_target): Update.
8642 * remote.c (remote_trace_find): Add 'self' argument.
8643 * ctf.c (ctf_trace_find): Add 'self' argument.
8644
74499f1b
TT
86452014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8648 (target_trace_stop): Add argument.
8649 * target.c (update_current_target): Update.
8650 * remote.c (remote_trace_stop): Add 'self' argument.
8651
db90e85c
TT
86522014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8655 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8656 argument.
8657 (target_get_tracepoint_status): Add argument.
8658 * target.c (update_current_target): Update.
8659 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8660
8bd200f1
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8664 * target.h (struct target_ops) <to_get_trace_status>: Add
8665 argument.
8666 (target_get_trace_status): Add argument.
8667 * target.c (update_current_target): Update.
8668 * remote.c (remote_get_trace_status): Add 'self' argument.
8669 (remote_start_remote, remote_can_download_tracepoint): Update.
8670 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8671
e2d1aae3
TT
86722014-02-19 Tom Tromey <tromey@redhat.com>
8673
8674 * target.h (struct target_ops) <to_trace_start>: Add argument.
8675 (target_trace_start): Add argument.
8676 * target.c (update_current_target): Update.
8677 * remote.c (remote_trace_start): Add 'self' argument.
8678
583f9a86
TT
86792014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8682 Add argument.
8683 (target_trace_set_readonly_regions): Add argument.
8684 * target.c (update_current_target): Update.
8685 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8686 argument.
8687
780b049c
TT
86882014-02-19 Tom Tromey <tromey@redhat.com>
8689
8690 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8691 argument.
8692 (target_disable_tracepoint): Add argument.
8693 * target.c (update_current_target): Update.
8694 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8695
46670d57
TT
86962014-02-19 Tom Tromey <tromey@redhat.com>
8697
8698 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8699 argument.
8700 (target_enable_tracepoint): Add argument.
8701 * target.c (update_current_target): Update.
8702 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8703
559d2b81
TT
87042014-02-19 Tom Tromey <tromey@redhat.com>
8705
8706 * target.h (struct target_ops) <to_download_trace_state_variable>:
8707 Add argument.
8708 (target_download_trace_state_variable): Add argument.
8709 * target.c (update_current_target): Update.
8710 * remote.c (remote_download_trace_state_variable): Add 'self'
8711 argument.
8712
a52a8357
TT
87132014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8716 argument.
8717 (target_can_download_tracepoint): Add argument.
8718 * target.c (update_current_target): Update.
8719 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8720
548f7808
TT
87212014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * target.h (struct target_ops) <to_download_tracepoint>: Add
8724 argument.
8725 (target_download_tracepoint): Add argument.
8726 * target.c (update_current_target): Update.
8727 * remote.c (remote_download_tracepoint): Add 'self' argument.
8728
ecae04e1
TT
87292014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target.h (struct target_ops) <to_trace_init>: Add argument.
8732 (target_trace_init): Add argument.
8733 * target.c (update_current_target): Update.
8734 * remote.c (remote_trace_init): Add 'self' argument.
8735
fab5aa7c
TT
87362014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8739 * target.c (target_fileio_readlink): Add argument.
8740 * remote.c (remote_hostio_readlink): Add 'self' argument.
8741 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8742
dbbca37d
TT
87432014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8746 * target.c (target_fileio_unlink): Add argument.
8747 * remote.c (remote_hostio_unlink): Add 'self' argument.
8748 (remote_file_delete): Update.
8749 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8750
df39ea25
TT
87512014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8754 * target.c (target_fileio_close): Add argument.
8755 * remote.c (remote_hostio_close): Add 'self' argument.
8756 (remote_hostio_close_cleanup): Update.
8757 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8758 Update.
8759 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8760
a3be983c
TT
87612014-02-19 Tom Tromey <tromey@redhat.com>
8762
8763 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8764 * target.c (target_fileio_pread): Add argument.
8765 * remote.c (remote_hostio_pread): Add 'self' argument.
8766 (remote_bfd_iovec_pread, remote_file_get): Update.
8767 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8768
0d866f62
TT
87692014-02-19 Tom Tromey <tromey@redhat.com>
8770
8771 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8772 * target.c (target_fileio_pwrite): Add argument.
8773 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8774 (remote_file_put): Update.
8775 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8776
cd897586
TT
87772014-02-19 Tom Tromey <tromey@redhat.com>
8778
8779 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8780 * target.c (target_fileio_open): Add argument.
8781 * remote.c (remote_hostio_open): Add 'self' argument.
8782 (remote_bfd_iovec_open): Add 'self' argument.
8783 (remote_file_put): Add 'self' argument.
8784 (remote_file_get): Add 'self' argument.
8785 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8786
78eff0ec
TT
87872014-02-19 Tom Tromey <tromey@redhat.com>
8788
8789 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8790 Add argument.
8791 (target_can_run_breakpoint_commands): Add argument.
8792 * target.c (update_current_target): Update.
8793 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8794 argument.
8795 (remote_insert_breakpoint): Add 'self' argument.
8796 (remote_insert_hw_breakpoint): Add 'self' argument.
8797 (remote_can_run_breakpoint_commands): Add 'self' argument.
8798
efcc2da7
TT
87992014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target.h (struct target_ops)
8802 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8803 (target_supports_evaluation_of_breakpoint_conditions): Add
8804 argument.
8805 * target.c (update_current_target): Update.
8806 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8807 argument.
8808 (remote_insert_breakpoint): Add 'self' argument.
8809 (remote_insert_hw_breakpoint): Add 'self' argument.
8810 (remote_supports_cond_breakpoints): Add 'self' argument.
8811
6de37a3a
TT
88122014-02-19 Tom Tromey <tromey@redhat.com>
8813
8814 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8815 argument.
8816 (target_supports_string_tracing): Add argument.
8817 * target.c (update_current_target): Update.
8818 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8819
2bfc0540
TT
88202014-02-19 Tom Tromey <tromey@redhat.com>
8821
8822 * target.h (struct target_ops)
8823 <to_supports_disable_randomization>: Add argument.
8824 * target.c (find_default_supports_disable_randomization): Add
8825 argument.
8826 (target_supports_disable_randomization): Add argument.
8827 (find_default_supports_disable_randomization): Add 'self'
8828 argument.
8829 * remote.c (extended_remote_supports_disable_randomization): Add
8830 'self' argument.
8831 (remote_supports_disable_randomization): Add 'self' argument.
8832 (extended_remote_create_inferior): Update.
8833 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8834 'self' argument.
8835
7d178d6a
TT
88362014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * target.h (struct target_ops)
8839 <to_supports_enable_disable_tracepoint>: Add argument.
8840 (target_supports_enable_disable_tracepoint): Add argument.
8841 * target.c (update_current_target): Update.
8842 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8843 argument.
8844
86ce2668
TT
88452014-02-19 Tom Tromey <tromey@redhat.com>
8846
8847 * target.h (struct target_ops) <to_supports_multi_process>: Add
8848 argument.
8849 (target_supports_multi_process): Add argument.
8850 * target.c (update_current_target): Update.
8851 * remote.c (remote_supports_multi_process): Add 'self' argument.
8852 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8853 argument.
8854 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8855 argument.
8856
4c612759
TT
88572014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target.h (struct target_ops) <to_execution_direction>: Add
8860 argument.
8861 (target_execution_direction): Add argument.
8862 * target.c (default_execution_direction): Add 'self' argument.
8863 * record-full.c (record_full_execution_direction): Add 'self'
8864 argument.
8865
19db3e69
TT
88662014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8869 argument.
8870 (target_can_execute_reverse): Add argument.
8871 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8872 * record-full.c (record_full_can_execute_reverse): Add 'self'
8873 argument.
8874 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8875 argument.
8876
1e6b91a4
TT
88772014-02-19 Tom Tromey <tromey@redhat.com>
8878
8879 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8880 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8881 argument.
8882 (target_get_ada_task_ptid): Add argument.
8883 * target.c (update_current_target): Update.
8884 (default_get_ada_task_ptid): Add 'self' argument.
8885 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8886 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8887 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8888 argument.
8889 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8890 argument.
8891 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8892 argument.
8893 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8894 argument.
8895 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8896 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8897 argument.
8898
3c80fb48
TT
88992014-02-19 Tom Tromey <tromey@redhat.com>
8900
8901 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8902 (target_goto_bookmark): Add argument.
8903 * target.c (dummy_goto_bookmark): Add 'self' argument.
8904 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8905
dd0e2830
TT
89062014-02-19 Tom Tromey <tromey@redhat.com>
8907
8908 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8909 (target_get_bookmark): Add argument.
8910 * target.c (dummy_get_bookmark): Add 'self' argument.
8911 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8912
fc6691b2
TT
89132014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8916 argument.
8917 (target_make_corefile_notes): Add argument.
8918 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8919 * procfs.c (procfs_make_note_section): Add 'self' argument.
8920 (procfs_make_note_section): Add 'self' argument.
8921 (procfs_make_note_section): Add 'self' argument.
8922 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8923 argument.
8924 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8925 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8926 * exec.c (exec_make_note_section): Add 'self' argument.
8927 (exec_make_note_section): Add 'self' argument.
8928
2e73927c
TT
89292014-02-19 Tom Tromey <tromey@redhat.com>
8930
8931 * target.h (struct target_ops) <to_find_memory_regions>: Add
8932 argument.
8933 (target_find_memory_regions): Add argument.
8934 * target.c (dummy_find_memory_regions): Add 'self' argument.
8935 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8936 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8937 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8938 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8939 * exec. (exec_do_find_memory_regions): New global.
8940 (exec_set_find_memory_regions): Rewrite.
8941 (exec_find_memory_regions): New function.
8942 (init_exec_ops): Use exec_find_memory_regions.
8943
2a9a2795
TT
89442014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target.h (struct target_ops) <to_supports_non_stop>: Add
8947 argument.
8948 * target.c (find_default_supports_non_stop): Add argument.
8949 (target_supports_non_stop): Add argument.
8950 (find_default_supports_non_stop): Add 'self' argument.
8951 * remote.c (remote_supports_non_stop): Add 'self' argument.
8952 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8953
4ab76ea3
TT
89542014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target.h (struct target_ops) <to_log_command>: Add argument.
8957 (target_log_command): Add argument.
8958 * serial.h (serial_log_command): Add 'self' argument.
8959 * serial.c (serial_log_command): Add 'self' argument.
8960
8dd27370
TT
89612014-02-19 Tom Tromey <tromey@redhat.com>
8962
8963 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8964 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8965 argument.
8966 (target_pid_to_exec_file): Add argument.
8967 * target.c (debug_to_pid_to_exec_file): Add argument.
8968 (update_current_target): Update.
8969 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8970 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8971 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8972 (linux_handle_extended_wait): Update.
8973 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8974 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8975 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8976 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8977
1aac633b
TT
89782014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target.h (struct target_ops) <to_rcmd>: Add argument.
8981 (target_rcmd): Add argument.
8982 * target.c (debug_to_rcmd): Add argument.
8983 (update_current_target, do_monitor_command): Update.
8984 * remote.c (remote_rcmd): Add 'self' argument.
8985 * monitor.c (monitor_rcmd): Add 'self' argument.
8986
1eab8a48
TT
89872014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * windows-nat.c (windows_stop): Add 'self' argument.
8990 * target.h (struct target_ops) <to_stop>: Add argument.
8991 * target.c (target_stop): Add argument.
8992 (debug_to_stop): Add argument.
8993 (update_current_target): Update.
8994 * remote.c (remote_stop): Add 'self' argument.
8995 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8996 (gdbsim_cntrl_c): Update.
8997 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8998 * procfs.c (procfs_stop): Add 'self' argument.
8999 * nto-procfs.c (procfs_stop): Add 'self' argument.
9000 * monitor.c (monitor_stop): Add 'self' argument.
9001 (monitor_open): Update.
9002 * linux-nat.c (linux_nat_stop): Add argument.
9003 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9004 * gnu-nat.c (gnu_stop): Add 'self' argument.
9005 * darwin-nat.c (darwin_stop): Add 'self' argument.
9006
503a628d
TT
90072014-02-19 Tom Tromey <tromey@redhat.com>
9008
9009 * target.h (struct target_ops) <to_thread_name>: Add argument.
9010 * target.c (target_thread_name): Add argument.
9011 (update_current_target): Update.
9012 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9013
c15906d8
TT
90142014-02-19 Tom Tromey <tromey@redhat.com>
9015
9016 * target.h (struct target_ops) <to_extra_thread_info>: Add
9017 argument.
9018 (target_extra_thread_info): Add argument.
9019 * target.c (update_current_target): Update.
9020 * remote.c (remote_threads_extra_info): Add 'self' argument.
9021 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9022 argument.
9023 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9024 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9025 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9026 argument.
9027 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9028 argument.
9029 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9030 argument.
9031 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9032 argument.
9033
daf5e9b6
TT
90342014-02-19 Tom Tromey <tromey@redhat.com>
9035
9036 * target.h (struct target_ops) <to_program_signals>: Add argument.
9037 * target.c (target_program_signals): Add argument.
9038 * remote.c (remote_program_signals): Add 'self' argument.
9039
94bedb42
TT
90402014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9043 * target.c (target_pass_signals): Add argument.
9044 * remote.c (remote_pass_signals): Add 'self' argument.
9045 (remote_start_remote): Update.
9046 * procfs.c (procfs_pass_signals): Add 'self' argument.
9047 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9048 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9049 (linux_nat_create_inferior, linux_nat_attach): Update.
9050
da82bd6b
TT
90512014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * windows-nat.c (windows_can_run): Add 'self' argument.
9054 * target.h (struct target_ops) <to_can_run>: Add argument.
9055 (target_can_run): Add argument.
9056 * target.c (debug_to_can_run): Add argument.
9057 (update_current_target): Update.
9058 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9059 * inf-child.c (inf_child_can_run): Add 'self' argument.
9060 * go32-nat.c (go32_can_run): Add 'self' argument.
9061
d796e1d6
TT
90622014-02-19 Tom Tromey <tromey@redhat.com>
9063
9064 * target.h (struct target_ops) <to_has_exited>: Add argument.
9065 (target_has_exited): Add argument.
9066 * target.c (debug_to_has_exited): Add argument.
9067 (update_current_target): Update.
9068
ff214e67
TT
90692014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9072 argument.
9073 (target_set_syscall_catchpoint): Add argument.
9074 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9075 argument.
9076 * target.c (update_current_target): Update.
9077
758e29d2
TT
90782014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9081 argument.
9082 (target_remove_exec_catchpoint): Add argument.
9083 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9084 (update_current_target): Update.
9085 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9086 argument.
9087
ba025e51
TT
90882014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9091 argument.
9092 (target_insert_exec_catchpoint): Add argument.
9093 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9094 (update_current_target): Update.
9095 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9096 argument.
9097
e98cf0cd
TT
90982014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9101 argument.
9102 (target_remove_vfork_catchpoint): Add argument.
9103 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9104 (update_current_target): Update.
9105 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9106 argument.
9107
3ecc7da0
TT
91082014-02-19 Tom Tromey <tromey@redhat.com>
9109
9110 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9111 argument.
9112 (target_insert_vfork_catchpoint): Add argument.
9113 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9114 (update_current_target): Update.
9115 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9116 argument.
9117
973fc227
TT
91182014-02-19 Tom Tromey <tromey@redhat.com>
9119
9120 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9121 argument.
9122 (target_remove_fork_catchpoint): Add argument.
9123 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9124 (update_current_target): Update.
9125 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9126 argument.
9127
a863b201
TT
91282014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9131 argument.
9132 (target_insert_fork_catchpoint): Add argument.
9133 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9134 (update_current_target): Update.
9135 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9136 argument.
9137
2e97a79e
TT
91382014-02-19 Tom Tromey <tromey@redhat.com>
9139
9140 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9141 argument.
9142 (target_post_startup_inferior): Add argument.
9143 * target.c (debug_to_post_startup_inferior): Add argument.
9144 (update_current_target): Update.
9145 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9146 argument.
9147 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9148 argument.
9149 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9150 argument.
9151 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9152 argument.
9153 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9154 'self' argument.
9155 (super_post_startup_inferior): Likewise.
9156 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9157 'self' argument.
9158 (super_post_startup_inferior): Likewise.
9159 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9160 Add 'self' argument.
9161 (super_post_startup_inferior): Likewise.
9162
71a9f134
TT
91632014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target.h (struct target_ops) <to_load>: Add argument.
9166 * target.c (target_load): Add argument.
9167 (debug_to_load): Add argument.
9168 (update_current_target): Update.
9169 * remote.c (remote_load): Add 'self' argument.
9170 * remote-sim.c (gdbsim_load): Add 'self' argument.
9171 * remote-mips.c (mips_load): Add 'self' argument.
9172 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9173 * monitor.c (monitor_load): Add 'self' argument.
9174 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9175
0a4f40a2
TT
91762014-02-19 Tom Tromey <tromey@redhat.com>
9177
9178 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9179 (target_terminal_info): Add argument.
9180 * target.c (debug_to_terminal_info): Add argument.
9181 (default_terminal_info): Likewise.
9182 * inflow.c (child_terminal_info): Add 'self' argument.
9183 * inferior.h (child_terminal_info): Add 'self' argument.
9184 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9185
ae3bd431
TT
91862014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9189 argument.
9190 (target_terminal_save_ours): Add argument.
9191 * target.c (debug_to_terminal_save_ours): Add argument.
9192 (update_current_target): Update.
9193 * inflow.c (terminal_save_ours): Add 'self' argument.
9194 * inferior.h (terminal_save_ours): Add 'self' argument.
9195
e3594fd1
TT
91962014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9199 (target_terminal_ours): Add argument.
9200 * target.c (debug_to_terminal_ours): Add argument.
9201 (update_current_target): Update.
9202 * remote.c (remote_terminal_ours): Add 'self' argument.
9203 (remote_close): Update.
9204 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9205 * inflow.c (terminal_ours): Add 'self' argument.
9206 * inferior.h (terminal_ours): Add 'self' argument.
9207 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9208
2e1e1a19
TT
92092014-02-19 Pedro Alves <palves@redhat.com>
9210 Tom Tromey <tromey@redhat.com>
9211
9212 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9213 argument.
9214 (target_terminal_ours_for_output): Add argument.
9215 * target.c (debug_to_terminal_ours_for_output): Add argument.
9216 (update_current_target): Update.
9217 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9218 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9219 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9220
d2f640d4
TT
92212014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target.h (struct target_ops) <to_terminal_inferior>: Add
9224 argument.
9225 * target.c (target_terminal_inferior): Add argument.
9226 (update_current_target): Update.
9227 * remote.c (remote_terminal_inferior): Add 'self' argument.
9228 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9229 * inflow.c (terminal_inferior): Add 'self' argument.
9230 * inferior.h (terminal_inferior): Add 'self' argument.
9231 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9232 (go32_terminal_inferior): Add 'self' argument.
9233
c42bf286
TT
92342014-02-19 Tom Tromey <tromey@redhat.com>
9235
9236 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9237 (target_terminal_init): Add argument.
9238 * target.c (debug_to_terminal_init): Add argument.
9239 (update_current_target): Update.
9240 * inflow.c (terminal_init_inferior): Add 'self' argument.
9241 * inferior.h (terminal_init_inferior): Add 'self' argument.
9242 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9243 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9244
c3a5ff89
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops)
9248 <to_can_accel_watchpoint_condition>: Add argument.
9249 (target_can_accel_watchpoint_condition): Add argument.
9250 * target.c (debug_to_can_accel_watchpoint_condition): Add
9251 argument.
9252 (update_current_target): Update.
9253 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9254 'self' argument.
9255
31568a15
TT
92562014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9259 Add argument.
9260 (target_region_ok_for_hw_watchpoint): Add argument.
9261 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9262 (default_region_ok_for_hw_watchpoint): Add argument.
9263 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9264 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9265 argument.
9266 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9267 argument.
9268 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9269 argument.
9270 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9271 'self' argument.
9272 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9273 'self' argument.
9274 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9275 'self' argument.
9276 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9277 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9278 'self' argument.
9279 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9280 Add 'self' argument.
9281
7bb99c53
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9285 argument.
9286 (target_insert_watchpoint): Add argument.
9287 * target.c (debug_to_insert_watchpoint): Add argument.
9288 (update_current_target): Update.
9289 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9290 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9291 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9292 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9293 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9294 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9295 argument.
9296 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9297 (procfs_insert_hw_watchpoint): Add 'self' argument.
9298 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9299 argument.
9300 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9301 argument.
9302 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9303 argument.
9304 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9305 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9306 argument.
9307 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9308 'self' argument.
9309
11b5219a
TT
93102014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9313 argument.
9314 (target_remove_watchpoint): Add argument.
9315 * target.c (debug_to_remove_watchpoint): Add argument.
9316 (update_current_target): Update.
9317 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9318 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9319 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9320 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9321 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9322 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9323 argument.
9324 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9325 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9326 argument.
9327 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9328 argument.
9329 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9330 argument.
9331 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9332 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9333 argument.
9334 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9335 'self' argument.
9336
a64dc96c
TT
93372014-02-19 Tom Tromey <tromey@redhat.com>
9338
9339 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9340 argument.
9341 (target_remove_hw_breakpoint): Add argument.
9342 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9343 (update_current_target): Update.
9344 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9345 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9346 argument.
9347 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9348 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9349 argument.
9350 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9351 'self' argument.
9352
23a26771
TT
93532014-02-19 Tom Tromey <tromey@redhat.com>
9354
9355 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9356 argument.
9357 (target_insert_hw_breakpoint): Add argument.
9358 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9359 (update_current_target): Update.
9360 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9361 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9362 argument.
9363 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9364 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9365 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9366 argument.
9367 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9368 'self' argument.
9369
5461485a
TT
93702014-02-19 Tom Tromey <tromey@redhat.com>
9371
9372 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9373 argument.
9374 (target_can_use_hardware_watchpoint): Add argument.
9375 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9376 (update_current_target): Update.
9377 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9378 argument.
9379 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9380 argument.
9381 * remote.c (remote_check_watch_resources): Add 'self' argument.
9382 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9383 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9384 argument.
9385 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9386 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9387 argument.
9388 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9389 argument.
9390 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9391 argument.
9392 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9393 argument.
9394 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9395 argument.
9396 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9397 argument.
9398 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9399 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9400 argument.
9401 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9402 'self' argument.
9403
f045800c
TT
94042014-02-19 Tom Tromey <tromey@redhat.com>
9405
9406 * target.h (struct target_ops) <to_post_attach>: Add argument.
9407 (target_post_attach): Add argument.
9408 * target.c (debug_to_post_attach): Add argument.
9409 (update_current_target): Update.
9410 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9411 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9412 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9413 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9414 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9415
de90e03d
TT
94162014-02-19 Tom Tromey <tromey@redhat.com>
9417
9418 * windows-nat.c (windows_close): Add 'self' argument.
9419 * tracepoint.c (tfile_close): Add 'self' argument.
9420 * target.h (struct target_ops) <to_close>: Add argument.
9421 * target.c (target_close): Add argument.
9422 (update_current_target): Update.
9423 * remote.c (remote_close): Add 'self' argument.
9424 * remote-sim.c (gdbsim_close): Add 'self' argument.
9425 * remote-mips.c (mips_close): Add 'self' argument.
9426 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9427 * record-full.c (record_full_close): Add 'self' argument.
9428 * record-btrace.c (record_btrace_close): Add 'self' argument.
9429 * monitor.h (monitor_close): Add 'self' argument.
9430 * monitor.c (monitor_close): Add 'self' argument.
9431 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9432 * linux-nat.c (linux_nat_close): Add argument.
9433 * go32-nat.c (go32_close): Add 'self' argument.
9434 * exec.c (exec_close_1): Add 'self' argument.
9435 * ctf.c (ctf_close): Add 'self' argument.
9436 * corelow.c (core_close): Add 'self' argument.
9437 (core_close_cleanup): Update.
9438 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9439 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9440
9dd130a0
TT
94412014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * remote.c (remote_load): New function.
9444 (init_remote_ops): Use it.
9445
46917d26
TT
94462014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9449 argument.
9450 * common/linux-btrace.h (linux_supports_btrace): Update.
9451 * remote.c (remote_supports_btrace): Add "self" argument.
9452 * target-delegates.c: Rebuild.
9453 * target.c (target_supports_btrace): Remove.
9454 * target.h (struct target_ops) <to_supports_btrace>: Add
9455 target_ops argument.
9456 (target_supports_btrace): New define.
9457
6b84065d
TT
94582014-02-19 Tom Tromey <tromey@redhat.com>
9459
9460 * record-full.c (record_full_beneath_to_resume_ops)
9461 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9462 (record_full_beneath_to_wait)
9463 (record_full_beneath_to_store_registers_ops)
9464 (record_full_beneath_to_store_registers)
9465 (record_full_beneath_to_xfer_partial_ops)
9466 (record_full_beneath_to_xfer_partial)
9467 (record_full_beneath_to_insert_breakpoint_ops)
9468 (record_full_beneath_to_insert_breakpoint)
9469 (record_full_beneath_to_remove_breakpoint_ops)
9470 (record_full_beneath_to_remove_breakpoint)
9471 (record_full_beneath_to_stopped_by_watchpoint)
9472 (record_full_beneath_to_stopped_data_address)
9473 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9474 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9475 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9476 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9477 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9478 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9479 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9480 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9481 (record_full_resume, record_full_wait_1)
9482 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9483 (record_full_store_registers, record_full_xfer_partial)
9484 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9485 (record_full_async, record_full_core_xfer_partial): Use target
9486 delegation.
9487 * target-delegates.c: Rebuild.
9488 * target.c (current_xfer_partial): Remove.
9489 (update_current_target): Do not INHERIT or de_fault
9490 to_insert_breakpoint, to_remove_breakpoint,
9491 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9492 to_is_async_p, to_async. Do not set to_xfer_partial field.
9493 (default_xfer_partial): Simplify.
9494 (current_xfer_partial): Remove.
9495 (target_wait, target_resume): Simplify.
9496 (find_default_can_async_p, find_default_is_async_p): Update.
9497 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9498 to_xfer_partial, to_stopped_by_watchpoint,
9499 to_stopped_data_address.
9500 (target_store_registers): Simplify.
9501 (forward_target_remove_breakpoint)
9502 (forward_target_insert_breakpoint): Remove.
9503 (target_remove_breakpoint, target_insert_breakpoint)
9504 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9505 * target.h (struct target_ops) <to_resume, to_wait,
9506 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9507 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9508 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9509 markup.
9510 (forward_target_remove_breakpoint)
9511 (forward_target_insert_breakpoint): Remove.
9512 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9513 directly.
9514 (record_btrace_insert_breakpoint): Delegate directly.
9515
1101cb7b
TT
95162014-02-19 Tom Tromey <tromey@redhat.com>
9517
9518 PR build/7701:
9519 * target-delegates.c: New file.
9520 * target.c: Include target-delegates.c.
9521 (init_dummy_target): Call install_dummy_methods.
9522 (complete_target_initialization): Call install_delegators.
9523 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9524 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9525 * make-target-delegates: New file.
9526
8b06beed
TT
95272014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * record.c (find_record_target): Use find_target_at.
9530 * target.c (find_target_at): New function.
9531 * target.h (find_target_at): Declare.
9532
6a109b6b
TT
95332014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9536 Add 'ops' argument.
9537 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9538 'ops' argument.
9539 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9540 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9541 'ops' argument.
9542 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9543 argument.
9544 * linux-nat.c (save_sigtrap): Update.
9545 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9546 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9547 (linux_nat_close): Update.
9548 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9549 argument.
9550 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9551 argument.
9552 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9553 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9554 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9555 (tmp_to_async): Add 'ops' argument.
9556 (record_full_stopped_by_watchpoint, record_full_async)
9557 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9558 argument.
9559 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9560 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9561 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9562 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9563 (remote_is_async_p, remote_async): Add 'ops' argument.
9564 (remote_stopped_data_address): Update.
9565 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9566 * target.c (update_current_target)
9567 (find_default_can_async_p, find_default_is_async_p): Update.
9568 (init_dummy_target): Update.
9569 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9570 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9571 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9572 (target_can_async_p, target_is_async_p, target_async)
9573 (target_stopped_by_watchpoint): Update.
9574
e095146b
YQ
95752014-02-19 Yao Qi <yao@codesourcery.com>
9576
9577 PR gdb/16220
9578 * gdbarch.sh: Remove startup_gdbarch.
9579 * gdbarch.c: Regenerated.
9580 * gdbarch.h: Likewise.
9581
bc3c6b36
KB
95822014-02-17 Kevin Buettner <kevinb@redhat.com>
9583
9584 * rl78-tdep.c (rl78_g10_register_name): New function.
9585 (rl78_return_value): Add g10 support.
9586 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9587 g10.
9588
98dc0167 95892014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9590
9591 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9592 (SUBDIR_GUILE_SRCS): Ditto.
9593 (scm-gsmob.o): Ditto.
9594
842c05cd
YQ
95952014-02-17 Yao Qi <yao@codesourcery.com>
9596
9597 * gnu-nat.c (ILL_RPC): Declare defined function.
9598
25c0bd04
YQ
95992014-02-17 Yao Qi <yao@codesourcery.com>
9600
9601 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9602 mach_msg_type_number_t.
9603 (gnu_write_inferior): Likewise.
9604
a9a758e3
YQ
96052014-02-17 Yao Qi <yao@codesourcery.com>
9606
9607 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9608 in format string.
9609 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9610 (inf_validate_procs, inf_signal): Likewise.
9611 (S_exception_raise_request): Likewise.
9612 (do_mach_notify_dead_name): Likewise.
9613 (steal_exc_port): Likewise.
9614 (gnu_read_inferior): Change 'copy_count''s type to
9615 mach_msg_type_number_t.
9616 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9617 format string.
9618
bae8023e
TS
96192014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9620
c82f56d9
TS
9621 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9622 flag. Adjust all users; in particular...
9623 (gnu_wait): ..., don't decrement its value in here...
9624 (gnu_create_inferior): ..., and instead set the flag in here,
9625 around the startup_inferior call, and call that one with
9626 START_INFERIOR_TRAPS_EXPECTED.
9627
3398af6a
TS
9628 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9629 (ILL_RPC): ... new macro.
9630 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9631 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9632 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9633 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9634 functions with ILL_RPC macro.
9635 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9636 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9637 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9638 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9639 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9640 (S_proc_getlogin_reply, S_proc_getsid_reply)
9641 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9642 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9643 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9644 (S_proc_getnports_reply, S_proc_is_important_reply)
9645 (S_proc_get_code_reply): New stub functions, generated with
9646 ILL_RPC macro.
9647
d47642c9
TS
9648 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9649 collected the type check structures.
9650
bae8023e
TS
9651 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9652
8a55ffb0
DE
96532014-02-14 Doug Evans <dje@google.com>
9654
9655 * target.c (target_write_partial): Fix result type.
9656
c2853f3d
JM
96572014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9658
9659 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9660 the proper offsets to access fpregset_t.
9661
ac61d2db
SA
96622014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9663
9664 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9665 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9666 * h8300-tdep.c (setmachinelist): Remove global.
9667 * hppa-tdep.c (hppa_sigtramp): Remove global.
9668 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9669 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9670 * ravenscar-thread.c (update_target_observer): Remove global.
9671 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9672
9d2d0b8b
TT
96732014-02-12 Tom Tromey <tromey@redhat.com>
9674
9675 * common/rsp-low.c: Update comments.
9676 * common/rsp-low.h: Update comments.
9677
a7191e8b
TT
96782014-02-12 Tom Tromey <tromey@redhat.com>
9679
9680 * common/rsp-low.c (convert_ascii_to_int): Remove.
9681 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9682
ff0e980e
TT
96832014-02-12 Tom Tromey <tromey@redhat.com>
9684
9685 * common/rsp-low.h (unhexify): Don't declare.
9686 * common/rsp-low.c (unhexify): Remove.
9687
e9371aff
TT
96882014-02-12 Tom Tromey <tromey@redhat.com>
9689
9690 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9691 * common/rsp-low.c (convert_int_to_ascii): Remove.
9692
971dc0b8
TT
96932014-02-12 Tom Tromey <tromey@redhat.com>
9694
9695 * common/rsp-low.h (hexify): Don't declare.
9696 * common/rsp-low.c (hexify): Remove.
9697
0a822afb
TT
96982014-02-12 Tom Tromey <tromey@redhat.com>
9699
9700 * common/rsp-low.c (hexify): Never take strlen of argument.
9701
9f1b45b0
TT
97022014-02-12 Tom Tromey <tromey@redhat.com>
9703
9704 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9705 * remote.c (extended_remote_run, remote_rcmd)
9706 (remote_download_trace_state_variable, remote_save_trace_data)
9707 (remote_set_trace_notes): Update.
9708 * tracepoint.c (encode_source_string, tfile_write_status)
9709 (tfile_write_uploaded_tsv): Update.
9710
9c3d6531
TT
97112014-02-12 Tom Tromey <tromey@redhat.com>
9712
9713 * tracepoint.c: Include rsp-low.h.
9714 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9715 * remote.c: Include rsp-low.h.
9716 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9717 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9718 (remote_unescape_input): Move to common/rsp-low.c.
9719 * common/rsp-low.h: New file.
9720 * common/rsp-low.c: New file.
9721 * Makefile.in (SFILES): Add common/rsp-low.c.
9722 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9723 (COMMON_OBS): Add rsp-low.o.
9724 (rsp-low.o): New target.
9725
01fd3ea5
TT
97262014-02-12 Tom Tromey <tromey@redhat.com>
9727
9728 * utils.h: Include print-utils.h.
9729 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9730 (int_string, core_addr_to_string, core_addr_to_string_nz)
9731 (hex_string, hex_string_custom): Don't declare.
9732 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9733 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9734 (hex_string_custom, int_string, core_addr_to_string)
9735 (core_addr_to_string_nz, host_address_to_string): Move to
9736 common/print-utils.c.
9737 * common/print-utils.h: New file.
9738 * common/print-utils.c: New file
9739 * Makefile.in (SFILES): Add common/print-utils.c.
9740 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9741 (COMMON_OBS): Add print-utils.o.
9742 (print-utils.o): New target.
9743
9fb50108
TT
97442014-02-12 Tom Tromey <tromey@redhat.com>
9745
9746 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9747
0548b5db
MK
97482014-02-12 Mark Kettenis <kettenis@gnu.org>
9749
9750 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9751
493443a4
MK
97522014-02-12 Mark Kettenis <kettenis@gnu.org>
9753
9754 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9755 if a PT_IO ptrace request returns sucessfully but indicates that 0
9756 bytes were transferred.
9757
706d0883
PA
97582014-02-12 Pedro Alves <palves@redhat.com>
9759 Kevin Buettner <kevinb@redhat.com>
9760
9761 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9762 TYPE_INSTANCE_FLAG_CODE_SPACE.
9763
5caa2f0b
PA
97642014-02-12 Pedro Alves <palves@redhat.com>
9765
9766 * h8300-tdep.c (pseudo_from_raw_register)
9767 (raw_from_pseudo_register): New functions.
9768 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9769 them.
9770
76fd5f74
PA
97712014-02-12 Pedro Alves <palves@redhat.com>
9772
9773 * h8300-tdep.c (h8300_register_sim_regno): New function.
9774 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9775 gdbarch_register_sim_regno hook.
9776
8f008406
SA
97772014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9778
9779 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9780
195abc10
SA
97812014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9782
9783 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9784
93ffa5b9
MK
97852014-02-12 Mark Kettenis <kettenis@gnu.org>
9786
9787 * obsd-tdep.h (obsd_init_abi): New prototype.
9788 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9789 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9790 (obsd_init_abi): New functions.
9791 * i386obsd-tdep.c: Include "obsd-tdep.h".
9792 (i386obsd_init_abi): Call obsd_init_abi.
9793 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9794 (amd64obsd_init_abi): Call obsd_init_abi.
9795 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9796 obsd-tdep.c to gdb_target_obs.
9797
49caec94
JM
97982014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9799
9800 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9801 double float arguments to 16-byte in the argument slots.
9802
e1402065
DE
98032014-02-11 Doug Evans <xdje42@gmail.com>
9804
9805 * configure.ac: Don't crash if pkg-config is not found and guile
9806 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9807 in guile checks.
9808 * configure: Regenerate.
9809
edcc890f
YQ
98102014-02-11 Yao Qi <yao@codesourcery.com>
9811
9812 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9813 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9814 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9815 * gnu-nat.c (gnu_xfer_memory): Likewise.
9816 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9817 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9818 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9819 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9820
9b409511
YQ
98212014-02-11 Yao Qi <yao@codesourcery.com>
9822
9823 * target.h (enum target_xfer_error): Rename to ...
9824 (enum target_xfer_status): ... it. New. All users updated.
9825 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9826 New.
9827 (TARGET_XFER_STATUS_ERROR_P): New macro.
9828 (target_xfer_error_to_string): Remove declaration.
9829 (target_xfer_status_to_string): Declare.
9830 (target_xfer_partial_ftype): Adjust it.
9831 (struct target_ops) <to_xfer_partial>: Return
9832 target_xfer_status. Add argument xfered_len. Update
9833 comments.
9834 * target.c (target_xfer_error_to_string): Rename to ...
9835 (target_xfer_status_to_string): ... it. New. All callers
9836 updated.
9837 (target_read_live_memory): Likewise. Call target_xfer_partial
9838 instead of target_read.
9839 (memory_xfer_live_readonly_partial): Return
9840 target_xfer_status. Add argument xfered_len.
9841 (raw_memory_xfer_partial): Likewise.
9842 (memory_xfer_partial_1): Likewise.
9843 (memory_xfer_partial): Likewise.
9844 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9845 properly. Update debug message.
9846 (default_xfer_partial, current_xfer_partial): Likewise.
9847 (target_write_partial): Likewise.
9848 (target_read_partial): Likewise. All callers updated.
9849 (read_whatever_is_readable): Likewise.
9850 (target_write_with_progress): Likewise.
9851 (target_read_alloc_1): Likewise.
9852
9853 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9854 * auxv.c (procfs_xfer_auxv): Likewise.
9855 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9856 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9857 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9858 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9859 * corefile.c (read_memory): Adjust.
9860 * corelow.c (core_xfer_partial): Likewise.
9861 * ctf.c (ctf_xfer_partial): Likewise.
9862 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9863 updated.
9864 (darwin_xfer_partial): Likewise.
9865 * exec.c (section_table_xfer_memory_partial): Likewise. All
9866 callers updated.
9867 (exec_xfer_partial): Likewise.
9868 * exec.h (section_table_xfer_memory_partial): Update
9869 declaration.
9870 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9871 negative.
9872 (gnu_xfer_partial): Likewise.
9873 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9874 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9875 (ia64_hpux_xfer_solib_got): Likewise.
9876 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9877 type of 'partial_len' to ULONGEST.
9878 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9879 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9880 (linux_nat_xfer_partial): Likewise.
9881 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9882 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9883 * monitor.c (monitor_xfer_memory): Likewise.
9884 (monitor_xfer_partial): Likewise.
9885 * procfs.c (procfs_xfer_partial): Likewise.
9886 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9887 * record-full.c (record_full_xfer_partial): Likewise.
9888 (record_full_core_xfer_partial): Likewise.
9889 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9890 (gdbsim_xfer_partial): Likewise.
9891 * remote.c (remote_write_bytes_aux): Likewise. All callers
9892 updated.
9893 (remote_write_bytes, remote_read_bytes): Likewise. All
9894 callers updated.
9895 (remote_flash_erase): Likewise. All callers updated.
9896 (remote_write_qxfer): Likewise. All callers updated.
9897 (remote_read_qxfer): Likewise. All callers updated.
9898 (remote_xfer_partial): Likewise.
9899 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9900 (rs6000_xfer_shared_libraries): Likewise.
9901 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9902 (sol_thread_xfer_partial): Likewise.
9903 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9904 (sparc_xfer_partial): Likewise.
9905 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9906 updated.
9907 (spu_xfer_partial): Likewise.
9908 * spu-multiarch.c (spu_xfer_partial): Likewise.
9909 * tracepoint.c (tfile_xfer_partial): Likewise.
9910 * windows-nat.c (windows_xfer_memory): Likewise.
9911 (windows_xfer_shared_libraries): Likewise.
9912 (windows_xfer_partial): Likewise.
9913 * valprint.c: Replace 'target_xfer_error' with
9914 'target_xfer_status' in comments.
9915
a8e63083
JB
99162014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9917
9918 Checked in by Joel Brobecker <brobecker@adacore.com>.
9919 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9920
e86b67d3
JB
99212014-02-11 Joel Brobecker <brobecker@adacore.com>
9922
9923 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9924 function parameters.
9925
4b7d1f7f
WN
99262014-02-10 Will Newton <will.newton@linaro.org>
9927
9928 * elfread.c (elf_rel_plt_read): Look for a .got section if
9929 looking up .got.plt fails.
9930 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9931 on address passed to elf_gnu_ifunc_record_cache.
9932 (elf_gnu_ifunc_resolve_addr): Likewise.
9933 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9934
961842b2
JM
99352014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9936
9937 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9938 (X_RETTURN): New macro.
9939 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9940
9941 * sparc64-tdep.c (sparc64_init_abi): Hook
9942 sparc_in_function_epilogue_p.
9943
3f03e7b1
GB
99442014-02-10 Gary Benson <gbenson@redhat.com>
9945
9946 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9947 Rename name_matcher to symbol_matcher.
9948
96f861ef
GB
99492014-02-10 Gary Benson <gbenson@redhat.com>
9950
9951 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9952 Use expand_symtabs_file_matcher_ftype and
9953 expand_symtabs_symbol_matcher_ftype.
9954
ee01b665
JB
99552014-02-10 Joel Brobecker <brobecker@adacore.com>
9956
9957 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9958 (struct ada_symbol_cache): New.
9959 (ada_free_symbol_cache): Forward declare.
9960 (struct ada_pspace_data): New.
9961 (ada_pspace_data_handle): New static global.
9962 (get_ada_pspace_data, ada_pspace_data_cleanup)
9963 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9964 (cache_space, cache): Delete, now folded inside struct
9965 ada_pspace_data.
9966 (ada_get_symbol_cache): New function.
9967 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9968 implementation.
9969 (_initialize_ada_language): Remove initialization of cache_space.
9970 Move call to observer_attach_inferior_exit up, grouping it
9971 with the other observer registrations inside this function.
9972 Rename command to be more general. Add call to
9973 register_program_space_data_with_cleanup.
9974
143adbbf
JB
99752014-02-10 Joel Brobecker <brobecker@adacore.com>
9976
9977 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9978 ada_new_objfile_observer.
9979 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9980 (_initialize_tasks): Update uses of ada_new_objfile_observer
9981 and ada_tasks_normal_stop_observer.
9982
aa4fb036
JB
99832014-02-10 Joel Brobecker <brobecker@adacore.com>
9984
9985 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9986 returned by the 'Length attribute to integer.
9987
9dee8cc6
JB
99882014-02-10 Joel Brobecker <brobecker@adacore.com>
9989
9990 * ada-lang.c (_initialize_ada_language): Initialize
9991 cache_space obstack.
9992
3d9434b5
JB
99932014-02-10 Joel Brobecker <brobecker@adacore.com>
9994
9995 * ada-lang.c (HASH_SIZE): New macro.
9996 (struct cache_entry): New type.
9997 (cache_space, cache): New static globals.
9998 (ada_clear_symbol_cache, find_entry): New functions.
9999 (lookup_cached_symbol, cache_symbol): Implement.
10000 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10001 (_initialize_ada_language): Attach ada_new_objfile_observer
10002 and ada_free_objfile_observer.
10003
f0c5f9b2
JB
100042014-02-10 Joel Brobecker <brobecker@adacore.com>
10005
10006 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10007 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10008 struct block * parameter.
10009 (ada_lookup_symbol_list_worker): Constify local variable "block".
10010 Remove cast which is no longer necessary.
10011
ed3ef339
DE
100122014-02-10 Doug Evans <xdje42@gmail.com>
10013
10014 Add Guile as an extension language.
10015 * NEWS: Mention Guile scripting.
10016 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10017 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10018 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10019 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10020 (CLIBS): Add GUILE_LIBS.
10021 (install-guile): New rule.
10022 (guile.o): New rule.
10023 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10024 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10025 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10026 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10027 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10028 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10029 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10030 * configure.ac: New option --with-guile.
10031 * configure: Regenerate.
10032 * config.in: Regenerate.
10033 * auto-load.c: Remove #include "python/python.h". Add #include
10034 "gdb/section-scripts.h".
10035 (source_section_scripts): Handle Guile scripts.
10036 (_initialize_auto_load): Add name of Guile objfile script to
10037 scripts-directory help text.
10038 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10039 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10040 (struct breakpoint): New member scm_bp_object.
10041 * defs.h (enum command_control_type): New value guile_control.
10042 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10043 "extension.h".
10044 (show_user): Update comment.
10045 (_initialize_cli_cmds): Update help text for "show user". Update help
10046 text for max-user-call-depth.
10047 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10048 "extension.h".
10049 (multi_line_command_p): Add guile_control.
10050 (print_command_lines): Handle guile_control.
10051 (execute_control_command, recurse_read_control_structure): Ditto.
10052 (process_next_line): Recognize "guile" commands.
10053 * disasm.c (gdb_disassemble_info): Make non-static.
10054 * disasm.h: #include "dis-asm.h".
10055 (struct gdbarch): Add forward decl.
10056 (gdb_disassemble_info): Declare.
10057 * extension.c: #include "guile/guile.h".
10058 (extension_languages): Add guile.
10059 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10060 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10061 * gdbtypes.c (get_unsigned_type_max): New function.
10062 (get_signed_type_minmax): New function.
10063 * gdbtypes.h (get_unsigned_type_max): Declare.
10064 (get_signed_type_minmax): Declare.
10065 * guile/README: New file.
10066 * guile/guile-internal.h: New file.
10067 * guile/guile.c: New file.
10068 * guile/guile.h: New file.
10069 * guile/scm-arch.c: New file.
10070 * guile/scm-auto-load.c: New file.
10071 * guile/scm-block.c: New file.
10072 * guile/scm-breakpoint.c: New file.
10073 * guile/scm-disasm.c: New file.
10074 * guile/scm-exception.c: New file.
10075 * guile/scm-frame.c: New file.
10076 * guile/scm-gsmob.c: New file.
10077 * guile/scm-iterator.c: New file.
10078 * guile/scm-lazy-string.c: New file.
10079 * guile/scm-math.c: New file.
10080 * guile/scm-objfile.c: New file.
10081 * guile/scm-ports.c: New file.
10082 * guile/scm-pretty-print.c: New file.
10083 * guile/scm-safe-call.c: New file.
10084 * guile/scm-string.c: New file.
10085 * guile/scm-symbol.c: New file.
10086 * guile/scm-symtab.c: New file.
10087 * guile/scm-type.c: New file.
10088 * guile/scm-utils.c: New file.
10089 * guile/scm-value.c: New file.
10090 * guile/lib/gdb.scm: New file.
10091 * guile/lib/gdb/boot.scm: New file.
10092 * guile/lib/gdb/experimental.scm: New file.
10093 * guile/lib/gdb/init.scm: New file.
10094 * guile/lib/gdb/iterator.scm: New file.
10095 * guile/lib/gdb/printing.scm: New file.
10096 * guile/lib/gdb/types.scm: New file.
10097 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10098 (VPATH): Add $(GUILE_SRCDIR).
10099 (GUILE_DIR): New variable.
10100 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10101 (all): Add stamp-guile dependency.
10102 (stamp-guile): New rule.
10103 (clean-guile, install-guile, uninstall-guile): New rules.
10104 (install-only): Add install-guile dependency.
10105 (uninstall): Add uninstall-guile dependency.
10106 (clean): Add clean-guile dependency.
10107
ac020ec5
DE
101082014-02-09 Doug Evans <xdje42@gmail.com>
10109
10110 Revert this patch (which I approved, mea culpa).
10111
10112 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10113
10114 * Makefile.in (all-lib): Remove.
10115 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10116
2a081c59
JK
101172014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10118
10119 Fix Python stack corruption.
10120 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10121 gdb_py_longest.
10122
0a6bd22d
MK
101232014-02-08 Mark Kettenis <kettenis@gnu.org>
10124
10125 * Makefile.in (all-lib): Remove.
10126 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10127
1a860409
DE
101282014-02-07 Doug Evans <dje@google.com>
10129
10130 * extension-priv.h (extension_language_script_ops): Add comment.
10131 (extension_language_ops): Add comment.
caf5a491 10132 (active_ext_lang_state): Fix typo in comment.
1a860409 10133
d137e6dc
PA
101342014-02-07 Pedro Alves <palves@redhat.com>
10135
0dcb32c3 10136 PR breakpoints/16292
d137e6dc
PA
10137 * infrun.c (handle_signal_stop) <signal arrives while stepping
10138 over a breakpoint>: Switch back to the stepping thread.
10139
ce6d0892
YQ
101402014-02-07 Yao Qi <yao@codesourcery.com>
10141
10142 * target.c (target_xfer_partial): Return zero if LEN is zero.
10143
2ed4b548
YQ
101442014-02-07 Yao Qi <yao@codesourcery.com>
10145
10146 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10147 (ld_so_xfer_auxv): Likewise.
10148 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10149 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10150 * corelow.c (core_xfer_partial): Likewise.
10151 * ctf.c (ctf_xfer_partial): Likewise.
10152 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10153 (darwin_xfer_partial): Likewise.
10154 * exec.c (exec_xfer_partial): Likewise.
10155 * gnu-nat.c (gnu_xfer_partial): Likewise.
10156 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10157 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10158 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10159 * linux-nat.c (linux_xfer_siginfo): Likewise.
10160 (linux_proc_xfer_spu): Likewise.
10161 * procfs.c (procfs_xfer_partial): Likewise.
10162 * record-full.c (record_full_xfer_partial): Likewise.
10163 (record_full_core_xfer_partial): Likewise.
10164 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10165 * remote.c (remote_write_qxfer): Likewise.
10166 (remote_write_qxfer, remote_read_qxfer): Likewise.
10167 (remote_xfer_partial): Likewise.
10168 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10169 (rs6000_xfer_shared_libraries): Likewise.
10170 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10171 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10172 (spu_xfer_partial): Likewise.
10173 * target.c (memory_xfer_partial_1): Likewise.
10174 * tracepoint.c (tfile_xfer_partial): Likewise.
10175 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10176 (windows_xfer_partial): Likewise.
10177
c09f20e4
YQ
101782014-02-07 Yao Qi <yao@codesourcery.com>
10179
10180 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10181 comments.
10182 (core_xfer_shared_libraries_aix): Likewise.
10183 * gdbarch.c, gdbarch.h: Regenerated.
10184 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10185 ULONGEST. Change 'len_avail' type to ULONGEST.
10186 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10187 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10188 declaration.
10189 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10190
8635b3bf
YQ
101912014-02-07 Yao Qi <yao@codesourcery.com>
10192
10193 * corefile.c (memory_error): Get 'exception' from ERR and pass
10194 'exception' to throw_error.
10195
6dddc817
DE
101962014-02-06 Doug Evans <xdje42@gmail.com>
10197
10198 * configure.ac (libpython checking): Remove all but python.o from
10199 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10200 * configure: Regenerate.
10201
10202 * Makefile.in (SFILES): Add extension.c.
10203 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10204 (COMMON_OBS): Add extension.o.
10205 * extension.h: New file.
10206 * extension-priv.h: New file.
10207 * extension.c: New file.
10208
10209 * python/python-internal.h: #include "extension.h".
10210 (gdbpy_auto_load_enabled): Declare.
10211 (gdbpy_apply_val_pretty_printer): Declare.
10212 (gdbpy_apply_frame_filter): Declare.
10213 (gdbpy_preserve_values): Declare.
10214 (gdbpy_breakpoint_cond_says_stop): Declare.
10215 (gdbpy_breakpoint_has_cond): Declare.
10216 (void source_python_script_for_objfile): Delete.
10217 * python/python.c: #include "extension-priv.h".
10218 Delete inclusion of "observer.h".
10219 (extension_language_python): Moved here and renamed from
10220 script_language_python in py-auto-load.c.
10221 Redefined to be of type extension_language_defn.
10222 (python_extension_script_ops): New global.
10223 (python_extension_ops): New global.
10224 (struct python_env): New member previous_active.
10225 (restore_python_env): Call restore_active_ext_lang.
10226 (ensure_python_env): Call set_active_ext_lang.
10227 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10228 New arg extlang.
10229 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10230 New arg extlang.
10231 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10232 New arg extlang.
10233 (gdbpy_eval_from_control_command): Renamed from
10234 eval_python_from_control_command, made static. New arg extlang.
10235 (gdbpy_source_script) Renamed from source_python_script, made static.
10236 New arg extlang.
10237 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10238 result to int. New arg extlang.
10239 (gdbpy_source_objfile_script): Renamed from
10240 source_python_script_for_objfile, made static. New arg extlang.
10241 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10242 static. New args extlang, extlang_printers. Change result type to
10243 "void".
10244 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10245 static. New arg extlang. Rename arg printers to extlang_printers
10246 and change type to ext_lang_type_printers *.
10247 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10248 static. Replace argument arg with extlang, extlang_printers.
10249 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10250 (!HAVE_PYTHON, source_python_script): Delete.
10251 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10252 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10253 (!HAVE_PYTHON, start_type_printers): Delete.
10254 (!HAVE_PYTHON, apply_type_printers): Delete.
10255 (!HAVE_PYTHON, free_type_printers): Delete.
10256 (_initialize_python): Delete call to observer_attach_before_prompt.
10257 (finalize_python): Set/restore active extension language.
10258 (gdbpy_finish_initialization) Renamed from
10259 finish_python_initialization, made static. New arg extlang.
10260 (gdbpy_initialized): New function.
10261 * python/python.h: #include "extension.h". Delete #include
10262 "value.h", "mi/mi-cmds.h".
10263 (extension_language_python): Declare.
10264 (GDBPY_AUTO_FILE_NAME): Delete.
10265 (enum py_bt_status): Moved to extension.h and renamed to
10266 ext_lang_bt_status.
10267 (enum frame_filter_flags): Moved to extension.h.
10268 (enum py_frame_args): Moved to extension.h and renamed to
10269 ext_lang_frame_args.
10270 (finish_python_initialization): Delete.
10271 (eval_python_from_control_command): Delete.
10272 (source_python_script): Delete.
10273 (apply_val_pretty_printer): Delete.
10274 (apply_frame_filter): Delete.
10275 (preserve_python_values): Delete.
10276 (gdbpy_script_language_defn): Delete.
10277 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10278 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10279
10280 * auto-load.c: #include "extension.h".
10281 (GDB_AUTO_FILE_NAME): Delete.
10282 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10283 (script_language_gdb): Delete, moved to extension.c and renamed to
10284 extension_language_gdb.
10285 (source_gdb_script_for_objfile): Delete.
10286 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10287 (loaded_script): Change type of language member to
10288 struct extension_language_defn *.
10289 (init_loaded_scripts_info): Initialize
10290 unsupported_script_warning_printed.
10291 (maybe_add_script): Make static. Change type of language arg to
10292 struct extension_language_defn *.
10293 (clear_section_scripts): Reset unsupported_script_warning_printed.
10294 (auto_load_objfile_script_1): Rewrite to use extension language API.
10295 (auto_load_objfile_script): Make public. Remove support-compiled-in
10296 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10297 (source_section_scripts): Rewrite to use extension language API.
10298 (load_auto_scripts_for_objfile): Rewrite to use
10299 auto_load_scripts_for_objfile.
10300 (collect_matching_scripts_data): Change type of language member to
10301 struct extension_language_defn *.
10302 (auto_load_info_scripts): Change type of language arg to
10303 struct extension_language_defn *.
10304 (unsupported_script_warning_print): New function.
10305 (script_not_found_warning_print): Make static.
10306 (_initialize_auto_load): Rewrite construction of scripts-directory
10307 help.
10308 * auto-load.h (struct objfile): Add forward decl.
10309 (struct script_language): Delete.
10310 (struct auto_load_pspace_info): Add forward decl.
10311 (struct extension_language_defn): Add forward decl.
10312 (maybe_add_script): Delete.
10313 (auto_load_objfile_script): Declare.
10314 (script_not_found_warning_print): Delete.
10315 (auto_load_info_scripts): Update prototype.
10316 (auto_load_gdb_scripts_enabled): Declare.
10317 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10318 auto_load_python_scripts_enabled and made public.
10319 (script_language_python): Delete, moved to python.c.
10320 (gdbpy_script_language_defn): Delete.
10321 (info_auto_load_python_scripts): Update to use
10322 extension_language_python.
10323
10324 * breakpoint.c (condition_command): Replace call to
10325 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10326 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10327 with call to breakpoint_ext_lang_cond_says_stop.
10328 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10329 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10330 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10331 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10332 New arg slang.
10333 (local_setattro): Print name of extension language with existing
10334 stop condition.
10335
10336 * valprint.c (val_print, value_print): Update to call
10337 apply_ext_lang_val_pretty_printer.
10338 * cp-valprint.c (cp_print_value): Update call to
10339 apply_ext_lang_val_pretty_printer.
10340 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10341 (gdbpy_apply_val_pretty_printer): Renamed from
10342 apply_val_pretty_printer. New arg extlang.
10343 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10344
10345 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10346 extension language API.
10347 * cli/cli-script.c (execute_control_command): Update to call
10348 eval_ext_lang_from_control_command.
10349
10350 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10351 enum ext_lang_bt_status values. Update call to
10352 apply_ext_lang_frame_filter.
10353 (mi_cmd_stack_list_locals): Ditto.
10354 (mi_cmd_stack_list_args): Ditto.
10355 (mi_cmd_stack_list_variables): Ditto.
10356 * mi/mi-main.c: Delete #include "python/python-internal.h".
10357 Add #include "extension.h".
10358 (mi_cmd_list_features): Replace reference to python internal variable
10359 gdb_python_initialized with call to ext_lang_initialized_p.
10360
10361 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10362 Update to use enum ext_lang_frame_args. Update to call
10363 apply_ext_lang_frame_filter.
10364 * python/py-framefilter.c (extract_sym): Update to use enum
10365 ext_lang_bt_status.
10366 (extract_value, py_print_type, py_print_value): Ditto.
10367 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10368 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10369 (py_print_frame): Ditto.
10370 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10371 New arg extlang. Update to use enum ext_lang_bt_status.
10372
10373 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10374 finish_python_initialization. Replace with call to
10375 finish_ext_lang_initialization.
10376
10377 * typeprint.c (do_free_global_table): Update to call
10378 free_ext_lang_type_printers.
10379 (create_global_typedef_table): Update to call
10380 start_ext_lang_type_printers.
10381 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10382 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10383 (type_print_options): Change type of global_printers from "void *"
10384 to "struct ext_lang_type_printers *".
10385
10386 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10387 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10388 (gdbpy_preserve_values): Renamed from preserve_python_values.
10389 New arg extlang.
10390 (!HAVE_PYTHON, preserve_python_values): Delete.
10391
10392 * utils.c (quit_flag): Delete, moved to extension.c.
10393 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10394 extension.c.
10395
10396 * eval.c: Delete #include "python/python.h".
10397 * main.c: Delete #include "python/python.h".
10398
10399 * defs.h: Update comment.
10400
6af79985
JB
104012014-02-06 Joel Brobecker <brobecker@adacore.com>
10402
10403 GDB 7.7 released.
10404
12c5175d
MK
104052014-02-05 Mark Kettenis <kettenis@gnu.org>
10406
10407 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10408 defined.
10409
8dc5b319
YQ
104102014-02-05 Yao Qi <yao@codesourcery.com>
10411
10412 * remote.c (remote_pass_signals): Remove local 'buf' and use
10413 rs->buf.
10414 (remote_program_signals): Likewise.
10415
de7b2893
YQ
104162014-02-05 Yao Qi <yao@codesourcery.com>
10417
10418 * ctf.c: Include "inferior.h" and "gdbthread.h".
10419 (CTF_PID): A new macro.
10420 (ctf_open): Call inferior_appeared and add_thread_silent.
10421 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10422 (ctf_thread_alive): New function.
10423 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10424
66d032ac
YQ
104252014-02-05 Yao Qi <yao@codesourcery.com>
10426
10427 Revert this patch:
10428
10429 2013-05-24 Yao Qi <yao@codesourcery.com>
10430
10431 * tracepoint.c (TFILE_PID): Remove.
10432 (tfile_open): Don't add thread and inferior.
10433 (tfile_close): Don't set 'inferior_ptid'. Don't call
10434 exit_inferior_silent.
10435 (tfile_thread_alive): Remove.
10436 (init_tfile_ops): Don't set field 'to_thread_alive' of
10437 tfile_ops.
10438
f4ccffad
CE
104392014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10440
10441 * remote.c (remote_start_remote): Call remote_check_symbols even
10442 if only symbol-file (not file) has been given.
10443
591a12a1
UW
104442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10445
10446 * gdbarch.sh (skip_entrypoint): New callback.
10447 * gdbarch.c, gdbarch.h: Regenerate.
10448 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10449 * infrun.c (fill_in_stop_func): Likewise.
10450 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10451 (ppc_elfv2_elf_make_msymbol_special): New function.
10452 (ppc_elfv2_skip_entrypoint): Likewise.
10453 (ppc_linux_init_abi): Install them for ELFv2.
10454
cc0e89c5
UW
104552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10456
10457 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10458 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10459 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10460 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10461 structures returned in GPRs.
10462
52f548e4
UW
104632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10464
10465 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10466 offset to the stack parameter list for the ELFv2 ABI.
10467
d4094b6a
UW
104682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10469
10470 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10471 set_gdbarch_convert_from_func_ptr_addr and
10472 set_gdbarch_elf_make_msymbol_special for ELFv1.
10473 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10474 function descriptors on ELFv1.
10475 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10476 set up r12 at function entry.
10477
cd453cd0
UW
104782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10479
10480 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10481 (struct gdbarch_tdep): New member elf_abi.
10482
10483 * rs6000-tdep.c: Include "elf/ppc64.h".
10484 (rs6000_gdbarch_init): Detect ELF ABI version.
10485
0ff3e01f
UW
104862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10487
10488 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10489 within a register pair holding a DFP 128-bit value on little-endian.
10490 (ppc64_sysv_abi_return_value_base): Likewise.
10491 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10492 (dfp_pseudo_register_write): Likewise.
10493
5b757e5d
UW
104942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10495
10496 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10497 offset on little-endian when passing _Decimal32.
10498 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10499
084ee545
UW
105002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10501
10502 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10503 of the overlapped FP register within the VSX register on little-
10504 endian platforms.
10505 (efpr_pseudo_register_write): Likewise.
10506
d63167af
UW
105072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10508
10509 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10510 offset on little-endian when passing small structures.
10511
e765b44c
UW
105122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10513
10514 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10515 (struct ppc64_sysv_argpos): New data structure.
10516 (ppc64_sysv_abi_push_float): Remove.
10517 (ppc64_sysv_abi_push_val): New function.
10518 (ppc64_sysv_abi_push_integer): Likewise.
10519 (ppc64_sysv_abi_push_freg): Likewise.
10520 (ppc64_sysv_abi_push_vreg): Likewise.
10521 (ppc64_sysv_abi_push_param): Likewise.
10522 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10523 (ppc64_sysv_abi_return_value_base): New function.
10524 (ppc64_sysv_abi_return_value): Refactor to use it.
10525
36c24d95
UW
105262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10527
10528 * NEWS: Document new target powerpc64le-*-linux*.
10529
26fd9228
MK
105302014-02-04 Mark Kettenis <kettenis@gnu.org>
10531
10532 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10533 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10534 core dumps.
10535 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10536 register set used in ELF core dumps. Add floating-point register set.
10537
c5bb7362
KB
105382014-02-03 Kevin Buettner <kevinb@redhat.com>
10539
74228e77 10540 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10541 dwarf2_to_gdb[] table using symbolic constants. Adjust
10542 penultimate entry from number representing the PC register
10543 to symbolic constant representing the MDR register. Add
10544 constant for the PC register to the end of the table.
10545
af09351e
MK
105462014-02-03 Mark Kettenis <kettenis@gnu.org>
10547
10548 * bsd-kvm.c: Include <sys/param.h>
10549
8507e05d
MK
105502014-02-03 Mark Kettenis <kettenis@gnu.org>
10551
10552 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10553
ae56bfb8
JB
105542014-01-31 Joel Brobecker <brobecker@adacore.com>
10555
10556 * ada-lang.h (clear_ada_sym_cache): Delete.
10557
718ee4dc
UW
105582014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10559
10560 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10561
401e27fd
JM
105622014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10563
10564 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10565 the sigreturn register save area only if the syscall is
10566 sigreturn.
10567
a7c88acd
JB
105682014-01-29 Joel Brobecker <brobecker@adacore.com>
10569
10570 * valops.c (value_slice): Minor reformatting.
10571
fa0079ea
UW
105722014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10573
10574 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10575
c6044dd1
JB
105762014-01-28 Joel Brobecker <brobecker@adacore.com>
10577
10578 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10579 New static globals.
10580 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10581 (ada_ignore_descriptive_types_p): New static global.
10582 (find_parallel_type_by_descriptive_type): Return immediately
10583 if ada_ignore_descriptive_types_p is set.
10584 (_initialize_ada_language): Register new commands "maintenance
10585 set ada", "maintenance show ada", "maintenance set ada
10586 ignore-descriptive-types" and "maintenance show ada
10587 ignore-descriptive-types".
10588 * NEWS: Add entry for new "maint ada set/show
10589 ignore-descriptive-types" commands.
10590
568e808b
MM
105912014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10592
10593 * record-btrace.c (record_btrace_close): Call btrace_teardown
10594 for all threads.
10595
467d141b
JB
105962014-01-27 Joel Brobecker <brobecker@adacore.com>
10597
10598 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10599 "ui-out.h".
10600
fb151210
JB
106012014-01-27 Joel Brobecker <brobecker@adacore.com>
10602
10603 * ada-typeprint (type_is_full_subrange_of_target_type):
10604 New function.
10605 (print_range): Add parameter bounds_prefered_p. If not set,
10606 try printing range types using the name of their base type.
10607 (print_range_type): Add parameter bounds_prefered_p.
10608 Use it in call to print_range.
10609 (print_array_type, ada_print_type): Update calls to print_range
10610 and print_range_type.
10611
aba02109
JB
106122014-01-27 Joel Brobecker <brobecker@adacore.com>
10613
10614 * ada-typeprint.c (print_array_type, print_choices, print_range)
10615 (print_range_bound, print_dynamic_range_bound, print_range_type):
10616 Remove declaration.
10617
e62e21fd
JB
106182014-01-27 Joel Brobecker <brobecker@adacore.com>
10619
10620 * ada-typeprint.c (print_range): Add missing empty line
10621 after local declaration.
10622
859cf5d1
JB
106232014-01-27 Joel Brobecker <brobecker@adacore.com>
10624
10625 * ada-valprint.c (print_optional_low_bound): Get index_type's
10626 target type for as long as it is a TYPE_CODE_RANGE.
10627
25790f6f
JB
106282014-01-27 Joel Brobecker <brobecker@adacore.com>
10629
10630 * procfs.c (procfs_make_note_section): Remove assertion and
10631 associated comment.
10632
6b6aa828
YQ
106332014-01-24 Yao Qi <yao@codesourcery.com>
10634
10635 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10636 * corelow.c (get_core_siginfo): Likewise.
10637
5d6df423
YQ
106382014-01-24 Yao Qi <yao@codesourcery.com>
10639
10640 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10641 ULONGEST. Don't check 'len' is negative.
10642 (remote_write_bytes): Change type of 'len' to ULONGEST.
10643
83b645b8
TT
106442014-01-23 Tom Tromey <tromey@redhat.com>
10645
10646 PR python/16485:
10647 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10648 Handle exception from frame.block.
10649 (FrameVars.fetch_frame_locals): Likewise.
10650
0740f8d8
TT
106512014-01-23 Tom Tromey <tromey@redhat.com>
10652
10653 PR python/16487:
10654 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10655 on a NULL pointer. Move "goto error" to correct place.
10656
21909fa1
TT
106572014-01-23 Tom Tromey <tromey@redhat.com>
10658
10659 PR python/16491:
10660 * python/py-framefilter.c (apply_frame_filter): Call
10661 ensure_python_env after computing gdbarch.
10662
17fde6d0
YQ
106632014-01-23 Yao Qi <yao@codesourcery.com>
10664
10665 * target.c (raw_memory_xfer_partial): Change argument type
10666 from void * to gdb_byte *.
10667 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10668
87ce2a04
DE
106692014-01-22 Doug Evans <dje@google.com>
10670
10671 New gdbserver option --debug-format=timestamp.
10672 * NEWS: Mention it.
10673
237b092b
AA
106742014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10675
10676 * syscalls/s390x-linux.xml: New file.
10677 * syscalls/s390-linux.xml: New file.
10678 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10679 (XML_SYSCALL_FILENAME_S390X): Likewise.
10680 (op_svc): New enum value for SVC opcode.
10681 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10682 (s390_linux_get_syscall_number): New function.
10683 (s390_gdbarch_init): Register '*get_syscall_number' and the
10684 syscall xml file name.
10685 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10686 "s390-linux.xml" and "s390x-linux.xml".
10687 * NEWS: Announce new feature.
10688
54bff650
BS
106892014-01-22 Baruch Siach <baruch@tkos.co.il>
10690
10691 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10692
14e361d7
PA
106932014-01-22 Pedro Alves <palves@redhat.com>
10694
10695 * xtensa-config.c: Include defs.h.
10696
46bbb3ed
JB
106972014-01-22 Joel Brobecker <brobecker@adacore.com>
10698
10699 * common/common-utils.h: Add "ARI:" comment beside __func__
10700 reference.
10701
3a80edfc
JB
107022014-01-22 Joel Brobecker <brobecker@adacore.com>
10703
10704 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10705 documentation a bit.
10706
4869db5e
RM
107072014-01-21 Roland McGrath <mcgrathr@google.com>
10708
10709 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10710 * configure: Regenerate.
10711 * aclocal.m4: Regenerate.
10712 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10713 New substituted variables.
10714 (install-strip): New target.
10715 (INSTALL_SCRIPT): New substituted variable.
10716 (FLAGS_TO_PASS): Add it.
10717 (install-only): Use $(INSTALL_SCRIPT) rather than
10718 $(INSTALL_PROGRAM) for gcore.
10719
9ea4267d
TT
107202014-01-20 Tom Tromey <tromey@redhat.com>
10721
10722 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10723 together.
10724
1f2bdf09
TT
107252014-01-20 Tom Tromey <tromey@redhat.com>
10726
10727 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10728 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10729 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10730 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10731 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10732 (struct cmd_list_element) <flags>: Remove.
10733 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10734 doc_allocated>: New fields.
10735 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10736 bitfields.
10737 * maint.c (maintenance_do_deprecate): Update.
10738 * top.c (execute_command): Update.
10739
e671835b
BS
107402014-01-20 Baruch Siach <baruch@tkos.co.il>
10741
10742 * xtensa-linux-nat.c: Include asm/ptrace.h.
10743
50367cd2
IB
107442014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10745
10746 * Makefile.in (SFILES): Add d-support.c.
10747 (COMMON_OBS): Add d-support.o.
10748 * d-lang.h (d_parse_symbol): Add comment, now defined in
10749 d-support.c.
10750 * d-lang.c (parse_call_convention)
10751 (parse_attributes, parse_function_types)
10752 (parse_function_args, parse_type, parse_identifier)
10753 (call_convention_p, d_parse_symbol): Move functions to ...
10754 * d-support.c: ... New file.
10755
ec9f644a
IB
107562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10757
10758 * d-lang.h (d_parse_symbol): Add declaration.
10759 * d-lang.c (extract_identifiers)
10760 (extract_type_info): Remove functions.
10761 (parse_call_convention, parse_attributes)
10762 (parse_function_types, parse_function_args)
10763 (parse_type, parse_identifier, call_convention_p)
10764 (d_parse_symbol): New functions.
10765 (d_demangle): Use d_parse_symbol to demangle D symbols.
10766
94b1b47e
IB
107672014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10768
10769 * d-lang.h (struct builtin_d_type): New data type.
10770 (builtin_d_type): Add declaration.
10771 * d-lang.c (d_language_arch_info, build_d_types)
10772 (builtin_d_type): New functions.
10773 (enum d_primitive_types): New data type.
10774 (d_language_defn): Change c_language_arch_info to
10775 d_language_arch_info.
10776 (d_type_data): New static variable.
10777 (_initialize_d_language): Initialize d_type_data.
10778
63778547
IB
107792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10780
10781 * d-lang.h (d_main_name): Add declaration.
10782 * d-lang.c (d_main_name): New function.
10783 * symtab.c (find_main_name): Add call to d_main_name.
10784
3271ba66
IB
107852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10786
10787 * d-lang.c (d_language_defn): Change macro_expansion_c to
10788 macro_expansion_no.
10789
d36b3012
IB
107902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10791
10792 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10793
c90a6fb7
SDJ
107942014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10795
10796 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10797 gdb_exception" declaration.
10798 * remote.c (getpkt_or_notif_sane): Likewise.
10799
749234e5
DE
108002014-01-17 Doug Evans <dje@google.com>
10801
10802 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10803 function, contents of dirnames_to_char_ptr_vec_append moved here.
10804 (delim_string_to_char_ptr_vec): New function.
10805 (dirnames_to_char_ptr_vec_append): Rewrite.
10806 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10807
df049a58
DE
108082014-01-17 Doug Evans <dje@google.com>
10809
10810 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10811 and moved here ...
10812 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10813 #include "common-utils.h".
10814 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10815 * common/vec.h (VEC_ASSERT_PASS): Update.
10816 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10817 (MACH_CHECK_ERROR): Update.
10818
69f97648
SM
108192014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10820
10821 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10822 comments.
10823 * gdbarch.h: Regenerate.
10824
98b1cfdc
TT
108252014-01-16 Tom Tromey <tromey@redhat.com>
10826
10827 * value.c (struct value) <regnum>: Move earlier.
10828
77a19445
TT
108292014-01-16 Tom Tromey <tromey@redhat.com>
10830
10831 * remote.c (extended_remote_create_inferior): Rename from
10832 extended_remote_create_inferior_1. Add "ops" argument. Remove
10833 old implementation.
10834
62261490
PA
108352014-01-16 Pedro Alves <palves@redhat.com>
10836
10837 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10838 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10839 the backchain.
10840
4d65956b
DE
108412014-01-16 Doug Evans <dje@google.com>
10842
10843 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10844
52834460
MM
108452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10846
10847 * btrace.h (btrace_thread_flag): New.
10848 (struct btrace_thread_info) <flags>: New.
10849 * record-btrace.c (record_btrace_resume_thread)
10850 (record_btrace_find_thread_to_move, btrace_step_no_history)
10851 (btrace_step_stopped, record_btrace_start_replaying)
10852 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10853 (record_btrace_find_resume_thread): New.
10854 (record_btrace_resume, record_btrace_wait): Extend.
10855 (record_btrace_can_execute_reverse): New.
10856 (record_btrace_open): Fail in non-stop mode.
10857 (record_btrace_set_replay): Split into this, ...
10858 (record_btrace_stop_replaying): ... this, ...
10859 (record_btrace_clear_histories): ... and this.
10860 (init_record_btrace_ops): Init to_can_execute_reverse.
10861 * NEWS: Announce it.
10862
118e6252
MM
108632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10864
10865 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10866 (forward_target_decr_pc_after_break)
10867 (target_decr_pc_after_break): New.
10868 * target.c (forward_target_decr_pc_after_break)
10869 (target_decr_pc_after_break): New.
10870 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10871 instead of gdbarch_decr_pc_after_break.
10872 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10873 instead of gdbarch_decr_pc_after_break.
10874 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10875 instead of gdbarch_decr_pc_after_break.
10876 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10877 instead of gdbarch_decr_pc_after_break.
10878 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10879 instead of gdbarch_decr_pc_after_break.
10880 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10881 instead of gdbarch_decr_pc_after_break.
10882
6e07b1d2
MM
108832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10884
10885 * btrace.c: Include regcache.h.
10886 (btrace_add_pc): New.
10887 (btrace_enable): Call btrace_add_pc.
10888 (btrace_is_empty): New.
10889 * btrace.h (btrace_is_empty): New.
10890 * record-btrace.c (require_btrace, record_btrace_info): Call
10891 btrace_is_empty.
10892
969c39fb
MM
108932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10894
10895 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10896 Support delta reads.
10897 (linux_disable_btrace): Change return type.
10898 * common/linux-btrace.h (linux_read_btrace): Change parameters
10899 and return type to allow error reporting. Update users.
10900 (linux_disable_btrace): Change return type. Update users.
10901 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10902 New.
10903 (btrace_error): New.
10904 (btrace_block) <begin>: Comment on BEGIN == 0.
10905 * btrace.c (btrace_compute_ftrace): Start from the end of
10906 the current trace.
10907 (btrace_stitch_trace, btrace_clear_history): New.
10908 (btrace_fetch): Read delta trace, return if replaying.
10909 (btrace_clear): Move clear history code to btrace_clear_history.
10910 (parse_xml_btrace): Throw an error if parsing failed.
10911 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10912 and return type to allow error reporting.
10913 (target_read_btrace): Change parameters and return type to allow
10914 error reporting.
10915 * target.c (target_read_btrace): Update.
10916 * remote.c (remote_read_btrace): Support delta reads. Pass
10917 errors on.
10918 * NEWS: Announce it.
10919
0b722aec
MM
109202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10921
10922 * record.h (record_btrace_frame_unwind)
10923 (record_btrace_tailcall_frame_unwind): New declarations.
10924 * dwarf2-frame: Include record.h
10925 (dwarf2_frame_cfa): Throw an error for btrace frames.
10926 * record-btrace.c: Include hashtab.h.
10927 (btrace_get_bfun_name): New.
10928 (btrace_call_history): Call btrace_get_bfun_name.
10929 (struct btrace_frame_cache): New.
10930 (bfcache): New.
10931 (bfcache_hash, bfcache_eq, bfcache_new): New.
10932 (btrace_get_frame_function): New.
10933 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10934 (record_btrace_frame_this_id): Compute own id.
10935 (record_btrace_frame_prev_register): Provide PC, throw_error
10936 for all other registers.
10937 (record_btrace_frame_sniffer): Detect btrace frames.
10938 (record_btrace_tailcall_frame_sniffer): New.
10939 (record_btrace_frame_dealloc_cache): New.
10940 (record_btrace_frame_unwind): Add new functions.
10941 (record_btrace_tailcall_frame_unwind): New.
10942 (_initialize_record_btrace): Allocate cache.
10943 * btrace.c (btrace_clear): Call reinit_frame_cache.
10944 * NEWS: Announce it.
10945
066ce621
MM
109462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10947
10948 * record-btrace.c (record_btrace_set_replay)
10949 (record_btrace_goto_begin, record_btrace_goto_end)
10950 (record_btrace_goto): New.
10951 (init_record_btrace_ops): Initialize them.
10952 * NEWS: Announce it.
10953
e2887aa3
MM
109542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10955
10956 * record-btrace.c (record_btrace_find_new_threads)
10957 (record_btrace_thread_alive): New.
10958 (init_record_btrace_ops): Initialize to_find_new_threads and
10959 to_thread_alive.
10960
b2f4cfde
MM
109612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10962
10963 * record-btrace.c (record_btrace_resume): New.
10964 (record_btrace_wait): New.
10965 (init_record_btrace_ops): Initialize to_wait and to_resume.
10966
633785ff
MM
109672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10968
10969 * record-btrace.c (record_btrace_xfer_partial)
10970 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10971 (record_btrace_allow_memory_access): New.
10972 (init_record_btrace_ops): Initialize new methods.
10973 * target.c (raw_memory_xfer_partial): Bail out if target reports
10974 that this memory is not available.
10975
3db08215
MM
109762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10977
10978 * target.h (target_ops) <to_insert_breakpoint>
10979 <to_remove_breakpoint>: Add target_ops parameter.
10980 (forward_target_insert_breakpoint): New.
10981 (forward_target_remove_breakpoint): New.
10982 (memory_remove_breakpoint, memory_insert_breakpoint):
10983 Add target_ops parameter.
10984 * target.c (target_insert_breakpoint): Split into this and ...
10985 (forward_target_insert_breakpoint): ... this.
10986 (target_remove_breakpoint): Split into this and ...
10987 (forward_target_remove_breakpoint): ... this.
10988 (debug_to_insert_breakpoint): Add target_ops parameter.
10989 Call forward_target_insert_breakpoint.
10990 (debug_to_remove_breakpoint): Add target_ops parameter.
10991 Call forward_target_remove_breakpoint.
10992 (update_current_target): Do not inherit or default to_insert_breakpoint
10993 and to_remove_breakpoint.
10994 * corelow.c (ignore): Add target_ops parameter.
10995 * exec.c (ignore): Add target_ops parameter.
10996 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10997 Add target_ops parameter.
10998 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10999 Add target_ops parameter.
11000 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11001 Add target_ops parameter.
11002 * record-full.c (record_full_beneath_to_insert_breakpoint)
11003 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11004 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11005 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11006 (record_full_core_remove_breakpoint): Add target_ops parameter.
11007 Update users.
11008 (record_full_beneath_to_insert_breakpoint_ops)
11009 (record_full_beneath_to_remove_breakpoint_ops)
11010 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11011 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11012 tmp_to_remove_breakpoint_ops,
11013 record_full_beneath_to_insert_breakpoint_ops, and
11014 record_full_beneath_to_remove_breakpoint_ops.
11015 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11016 (m32r_remove_breakpoint): Add target_ops parameter.
11017 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11018 Add target_ops parameter.
11019 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11020 Add target_ops parameter.
11021
cecac1ab
MM
110222014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11023 Markus Metzger <markus.t.metzger@intel.com>
11024
11025 * record-btrace.c: Include frame-unwind.h.
11026 (record_btrace_frame_unwind_stop_reason)
11027 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11028 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11029 New.
11030 (init_record_btrace_ops): Install it.
11031
824344ca
MM
110322014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11033
11034 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11035 get_prev_frame_1.
11036
32261e52
MM
110372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11038
11039 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11040 earlier.
11041
ea001bdc
MM
110422014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11043
11044 * frame-unwind.c: Include target.h.
11045 (frame_unwind_try_unwinder): New function with code from ...
11046 (frame_unwind_find_by_frame): ... here. New variable
11047 unwinder_from_target, call also target_get_unwinder)
11048 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11049 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11050 * target.h (struct target_ops): New fields to_get_unwinder and
11051 to_get_tailcall_unwinder.
11052 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11053
1f3ef581
MM
110542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11055
11056 * record-btrace.c (record_btrace_fetch_registers)
11057 (record_btrace_store_registers)
11058 (record_btrace_to_prepare_to_store): New.
11059 (init_record_btrace_ops): Add the above.
11060
f32dbf8c
MM
110612014-01-16 Tom Tromey <tromey@redhat.com>
11062
11063 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11064 * target.h (struct target_ops) <to_prepare_to_store>: Add
11065 argument.
11066 (target_prepare_to_store): Add argument.
11067 * target.c (debug_to_prepare_to_store): Add argument.
11068 (update_current_target): Update.
11069 * remote.c (remote_prepare_to_store): Add 'self' argument.
11070 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11071 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11072 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11073 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11074 argument.
11075 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11076 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11077 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11078 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11079 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11080
07bbe694
MM
110812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11082
11083 * btrace.h (replay) <replay>: New.
11084 (btrace_is_replaying): New.
11085 * btrace.c (btrace_clear): Free replay iterator.
11086 (btrace_is_replaying): New.
11087 * record-btrace.c (record_btrace_is_replaying): New.
11088 (record_btrace_info): Print insn number if replaying.
11089 (record_btrace_insn_history): Start at replay position.
11090 (record_btrace_call_history): Start at replay position.
11091 (init_record_btrace_ops): Init to_record_is_replaying.
11092
0688d04e
MM
110932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11094
11095 * record-btrace.c (record_btrace_insn_history_range): Include
11096 end.
11097 (record_btrace_insn_history_from): Adjust range.
11098 (record_btrace_call_history_range): Include
11099 end.
11100 (record_btrace_call_history_from): Adjust range.
11101 * NEWS: Announce changes.
11102
8710b709
MM
111032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11104
11105 * record.h (enum record_print_flag)
11106 <record_print_indent_calls>: New.
11107 * record.c (get_call_history_modifiers): Recognize /c modifier.
11108 (_initialize_record): Document /c modifier.
11109 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11110 Reorder fields. Optionally indent the function name. Update
11111 all users.
11112 * NEWS: Announce changes.
11113
d0fa7535
MM
111142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11115
11116 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11117
5de9129b
MM
111182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11119
11120 * btrace.c (ftrace_new_function): Start counting at one.
11121 * record-btrace.c (record_btrace_info): Adjust number of calls
11122 and insns.
11123 * NEWS: Announce it.
11124
7acbe133
MM
111252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11126
11127 * record-btrace.c (btrace_call_history_insn_range): Print
11128 insn range as [begin, end].
11129
23a7fe75
MM
111302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11131
11132 * btrace.h (struct btrace_func_link): New.
11133 (enum btrace_function_flag): New.
11134 (struct btrace_inst): Rename to ...
11135 (struct btrace_insn): ...this. Update all users.
11136 (struct btrace_func) <ibegin, iend>: Remove.
11137 (struct btrace_func_link): New.
11138 (struct btrace_func): Rename to ...
11139 (struct btrace_function): ...this. Update all users.
11140 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11141 (number, level, flags>: New.
11142 (struct btrace_insn_iterator): Rename to ...
11143 (struct btrace_insn_history): ...this.
11144 Update all users.
11145 (struct btrace_insn_iterator, btrace_call_iterator): New.
11146 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11147 (struct btrace_target_info) <begin, end, level>
11148 <insn_history, call_history>: New.
11149 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11150 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11151 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11152 (btrace_call_number, btrace_call_begin, btrace_call_end)
11153 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11154 (btrace_find_function_by_number, btrace_set_insn_history)
11155 (btrace_set_call_history): New.
11156 * btrace.c (btrace_init_insn_iterator)
11157 (btrace_init_func_iterator, compute_itrace): Remove.
11158 (ftrace_print_function_name, ftrace_print_filename)
11159 (ftrace_skip_file): Change
11160 parameter to const.
11161 (ftrace_init_func): Remove.
11162 (ftrace_debug): Use new btrace_function fields.
11163 (ftrace_function_switched): Also consider gaining and
11164 losing symbol information).
11165 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11166 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11167 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11168 New.
11169 (ftrace_new_function): Move. Remove debug print.
11170 (ftrace_update_lines, ftrace_update_insns): New.
11171 (ftrace_update_function): Check for call, ret, and jump.
11172 (compute_ftrace): Renamed to ...
11173 (btrace_compute_ftrace): ...this. Rewritten to compute call
11174 stack.
11175 (btrace_fetch, btrace_clear): Updated.
11176 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11177 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11178 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11179 (btrace_call_number, btrace_call_begin, btrace_call_end)
11180 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11181 (btrace_find_function_by_number, btrace_set_insn_history)
11182 (btrace_set_call_history): New.
11183 * record-btrace.c (require_btrace): Use new btrace thread
11184 info fields.
11185 (record_btrace_info, btrace_insn_history)
11186 (record_btrace_insn_history, record_btrace_insn_history_range):
11187 Use new btrace thread info fields and new iterator.
11188 (btrace_func_history_src_line): Rename to ...
11189 (btrace_call_history_src_line): ...this. Use new btrace
11190 thread info fields.
11191 (btrace_func_history): Rename to ...
11192 (btrace_call_history): ...this. Use new btrace thread info
11193 fields and new iterator.
11194 (record_btrace_call_history, record_btrace_call_history_range):
11195 Use new btrace thread info fields and new iterator.
11196
8372a7cb
MM
111972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11198
11199 * frame.h (frame_id_build_unavailable_stack_special): New.
11200 * frame.c (frame_id_build_unavailable_stack_special): New.
11201
c2170eef
MM
112022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11203
11204 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11205 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11206 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11207 to gdbarch.
11208 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11209 (i386_insn_is_jump, i386_jmp_p): New.
11210 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11211 insn_is_jump to gdbarch.
11212 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11213 * gdbarch.h: Regenerated.
11214 * gdbarch.c: Regenerated.
11215 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11216 (default_insn_is_jump): New.
11217 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11218 (default_insn_is_jump): New.
11219
864089d2
MM
112202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11221
11222 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11223 Change to ...
11224 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11225 (btrace_read_type) <btrace_read_new>: Change to ...
11226 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11227
ed9edfb5
MM
112282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11229
11230 * common/linux-btrace.c (linux_read_btrace): Free trace from
11231 previous iteration.
11232
fbcbc3fd
DE
112332014-01-15 Doug Evans <dje@google.com>
11234
11235 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11236 uint32_t.
11237
3d548a53
TT
112382014-01-15 Tom Tromey <tromey@redhat.com>
11239
11240 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11241 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11242 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11243 (set_objfile_main_name): New function.
11244 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11245 language_of_main>: New fields.
11246 (set_objfile_main_name): Declare.
11247 * symtab.c (find_main_name): Loop over objfiles to find the main
11248 name and language.
11249 (set_main_name): Now static.
11250 (get_main_info): Add comment.
11251 * symtab.h (set_main_name): Don't declare.
11252
32ac0d11
TT
112532014-01-15 Tom Tromey <tromey@redhat.com>
11254
11255 * symtab.c (main_progspace_key): New global.
11256 (struct main_info): New.
11257 (name_of_main, language_of_main): Remove.
11258 (get_main_info, main_info_cleanup): New function.
11259 (set_main_name, main_name, main_language): Use get_main_info.
11260 (_initialize_symtab): Initialize main_progspace_key.
11261
9e6c82ad
TT
112622014-01-15 Tom Tromey <tromey@redhat.com>
11263
11264 * dbxread.c (process_one_symbol): Update.
11265 * dwarf2read.c (read_partial_die): Update.
11266 * symfile.c (set_initial_language): Call main_language.
11267 * symtab.c (language_of_main): Now static.
11268 (set_main_name): Add 'lang' parameter.
11269 (find_main_name): Update.
11270 (main_language): New function.
11271 (symtab_observer_executable_changed): Update.
11272 * symtab.h (set_main_name): Update.
11273 (language_of_main): Remove.
11274 (main_language): Declare.
11275
6ef55de7
TT
112762014-01-15 Tom Tromey <tromey@redhat.com>
11277
11278 * symfile.c (init_entry_point_info): Use new "initialized" field.
11279 Update.
11280 * objfiles.h (struct entry_point) <initialized>: New field.
11281 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11282 (struct objfile) <ei>: ...here. Remove.
11283 * objfiles.c (entry_point_address_query): Update.
11284
53eddfa6
TT
112852014-01-15 Tom Tromey <tromey@redhat.com>
11286
11287 * objfiles.c (entry_point_address_query): Relocate entry point
11288 address.
11289 (objfile_relocate1): Do not relocate entry point address.
11290 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11291 <the_bfd_section_index>: New field.
11292 * symfile.c (init_entry_point_info): Find the entry point's
11293 section.
11294
d56e56aa
TT
112952014-01-15 Tom Tromey <tromey@redhat.com>
11296
11297 * solib-frv.c (enable_break): Use entry_point_address_query.
11298
33a97bbe
OJ
112992014-01-15 Omair Javaid <omair.javaid@linaro.org>
11300
11301 * NEWS: Add note on improved process record-replay on
11302 arm*-linux* targets.
11303
c6ec2b30
OJ
113042014-01-15 Omair Javaid <omair.javaid@linaro.org>
11305
11306 * arm-tdep.c (enum arm_record_result): New enum.
11307 (arm_record_unsupported_insn): New function.
11308 (arm_record_coproc_data_proc): Removed.
11309 (thumb2_record_ld_st_multiple): New function.
11310 (thumb2_record_ld_st_dual_ex_tbb): New function.
11311 (thumb2_record_data_proc_sreg_mimm): New function.
11312 (thumb2_record_ps_dest_generic): New function.
11313 (thumb2_record_branch_misc_cntrl): New function.
11314 (thumb2_record_str_single_data): New function.
11315 (thumb2_record_ld_mem_hints): New function.
11316 (thumb2_record_ld_word): New function.
11317 (thumb2_record_lmul_lmla_div): New function.
11318 (thumb2_record_decode_insn_handler): New function.
11319 (decode_insn): Add thumb32 instruction handlers.
11320
97dfe206
OJ
113212014-01-15 Omair Javaid <omair.javaid@linaro.org>
11322
11323 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11324 (struct arm_linux_record_tdep): Declare.
11325 (arm_canonicalize_syscall): New function.
11326 (arm_all_but_pc_registers_record): New function.
11327 (arm_linux_syscall_record): New function.
11328 (arm_linux_init_abi): Add syscall recording constructs.
11329 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11330 decoding. (arm_record_coproc_data_proc): Update arm syscall
11331 decoding.
11332 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11333 <arm_syscall_record>: New field.
11334 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11335 gdb_target_obs.
11336
9904a494
OJ
113372014-01-15 Omair Javaid <omair.javaid@linaro.org>
11338
11339 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11340 register for push instruction recording.
11341
f969241e
OJ
113422014-01-15 Omair Javaid <omair.javaid@linaro.org>
11343
11344 * arm-tdep.c (thumb_record_misc): Update to correct logical
11345 error while recording ldm, ldmia and pop instructions.
11346
bfbbec00
OJ
113472014-01-15 Omair Javaid <omair.javaid@linaro.org>
11348
11349 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11350
e40adcc9
PA
113512014-01-15 Pedro Alves <palves@redhat.com>
11352
11353 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11354 (go32_resume, go32_fetch_registers, store_register)
11355 (go32_store_registers, go32_prepare_to_store)
11356 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11357 (go32_create_inferior, go32_can_run, go32_terminal_init)
11358 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11359 declarations.
11360
b0a16e66
TT
113612014-01-15 Tom Tromey <tromey@redhat.com>
11362
11363 * target.h (async_callback_ftype): New typedef.
11364 (struct target_ops) <to_async>: Use it.
11365
bf7105a4
JB
113662014-01-15 Joel Brobecker <brobecker@adacore.com>
11367
11368 * python/py-value.c (get_field_type): Remove unnecessary curly
11369 braces for single-statement if block.
11370
a8f35c2e
JB
113712014-01-15 Joel Brobecker <brobecker@adacore.com>
11372
11373 * python/py-type.c (convert_field): Add missing empty line
11374 after declarations.
11375
bb4142cf
DE
113762014-01-14 Doug Evans <dje@google.com>
11377
11378 * symfile.h (expand_symtabs_matching): Renamed from
11379 expand_partial_symbol_names. Update prototype.
11380 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11381 * symfile.c (expand_symtabs_matching): Renamed from
11382 expand_partial_symbol_names. New args file_matcher, kind.
11383 Rename arg fun to symbol_matcher.
11384 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11385 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11386 ada_expand_partial_symbol_name.
11387 (ada_make_symbol_completion_list): Update to call
11388 expand_symtabs_matching.
11389 (ada_add_global_exceptions): Call expand_symtabs_matching.
11390 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11391 call map_symbol_filenames.
11392 * symtab.c (sources_info): Update to call map_symbol_filenames.
11393 (search_symbols): Call expand_symtabs_matching.
11394 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11395 (default_make_symbol_completion_list_break_on): Update to call
11396 expand_symtabs_matching.
11397 (make_source_files_completion_list): Update to call
11398 map_symbol_filenames.
11399
206f2a57
DE
114002014-01-14 Doug Evans <dje@google.com>
11401
11402 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11403 (expand_symtabs_symbol_matcher_ftype): New typedef.
11404 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11405 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11406 * symfile.c (expand_partial_symbol_names): Update to use
11407 expand_symtabs_symbol_matcher_ftype.
11408 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11409 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11410 Arg name_matcher renamed to symbol_matcher.
11411 * psymtab.c (recursively_search_psymtabs): Update to use
11412 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11413 sym_matcher.
11414 (expand_symtabs_matching_via_partial): Update to use
11415 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11416 Arg name_matcher renamed to symbol_matcher.
11417
540c2971
DE
114182014-01-14 Doug Evans <dje@google.com>
11419
11420 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11421 (map_partial_symbol_filenames): Ditto.
11422 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11423 (map_partial_symbol_filenames): Ditto.
11424 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11425 (map_partial_symbol_filenames): Ditto.
11426 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11427 (map_partial_symbol_filenames): Ditto.
11428 * symtab.c: Delete #include "psymtab.h".
11429
8213266a
PA
114302014-01-14 Pedro Alves <palves@redhat.com>
11431 Tom Tromey <tromey@redhat.com>
11432
11433 * infrun.c (use_displaced_stepping): Use find_record_target
11434 instead of RECORD_IS_USED.
11435 (adjust_pc_after_break): Use record_full_is_used instead of
11436 RECORD_IS_USED.
11437 * record-btrace.c (record_btrace_open): Call record_preopen
11438 instead of checking RECORD_IS_USED.
11439 * record-full.c (record_full_shortname)
11440 (record_full_core_shortname): New globals.
11441 (record_full_is_used): New function.
11442 (find_full_open): Call record_preopen instead of checking
11443 RECORD_IS_USED.
11444 (init_record_full_ops): Set the target's shortname to
11445 record_full_shortname.
11446 (init_record_full_core_ops): Set the target's shortname to
11447 record_full_core_shortname.
11448 * record-full.h (record_full_is_used): Declare.
11449 * record.c (find_record_target): Make extern.
11450 (record_preopen): New function.
11451 * record.h (RECORD_IS_USED): Delete macro.
11452 (find_record_target, record_preopen): Declare functions.
11453
7ec1862d
YQ
114542014-01-14 Yao Qi <yao@codesourcery.com>
11455
11456 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11457 'len''s type to ULONGEST.
11458 (core_xfer_shared_libraries_aix): Likewise.
11459 * gdbarch.c, gdbarch.h: Regenerated.
11460 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11461 Change type of 'len' to ULONGEST.
11462 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11463 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11464
dea80a27
YQ
114652014-01-14 Yao Qi <yao@codesourcery.com>
11466
11467 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11468 type of 'len' to ULONGEST.
11469 (linux_xfer_osdata_processgroups): Likewise.
11470 (linux_xfer_osdata_threads): Likewise.
11471 (linux_xfer_osdata_fds): Likewise.
11472 (linux_xfer_osdata_isockets): Likewise.
11473 (linux_xfer_osdata_shm): Likewise.
11474 (linux_xfer_osdata_sem): Likewise.
11475 (linux_xfer_osdata_msg): Likewise.
11476 (linux_common_xfer_osdata): Likewise.
11477 (struct osdata_type) <getter>: Likewise.
11478 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11479 the declaration.
11480
b55e14c7
YQ
114812014-01-14 Yao Qi <yao@codesourcery.com>
11482
11483 * target.h (target_xfer_partial_ftype): Update.
11484 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11485 ULONGEST.
11486 * aix-thread.c (aix_thread_xfer_partial): Change type of
11487 argument 'len' to ULONGEST.
11488 * auxv.c (procfs_xfer_auxv): Likewise.
11489 (ld_so_xfer_auxv): Likewise.
11490 (memory_xfer_auxv): Likewise.
11491 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11492 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11493 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11494 * corelow.c (core_xfer_partial): Likewise.
11495 * ctf.c (ctf_xfer_partial): Likewise.
11496 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11497 '%u'.
11498 (darwin_read_dyld_info): Likewise.
11499 (darwin_xfer_partial): Likewise.
11500 * exec.c (section_table_xfer_memory_partial): Likewise.
11501 (exec_xfer_partial): Likewise.
11502 * exec.h (section_table_xfer_memory_partial): Update
11503 declaration.
11504 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11505 instead of plongest.
11506 (gnu_xfer_partial): Likewise.
11507 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11508 (ia64_hpux_xfer_solib_got): Likewise.
11509 (ia64_hpux_xfer_partial): Likewise.
11510 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11511 * inf-ptrace.c (inf_ptrace_xfer_partial):
11512 * inf-ttrace.c (inf_ttrace_xfer_partial):
11513 * linux-nat.c (linux_xfer_siginfo): Likewise.
11514 (linux_nat_xfer_partial): Likewise.
11515 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11516 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11517 * monitor.c (monitor_xfer_memory): Likewise.
11518 (monitor_xfer_partial): Likewise.
11519 * procfs.c (procfs_xfer_partial): Likewise.
11520 * record-full.c (record_full_xfer_partial): Likewise.
11521 (record_full_core_xfer_partial): Likewise.
11522 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11523 instead of plongest.
11524 (gdbsim_xfer_partial): Likewise.
11525 * remote.c (remote_xfer_partial): Likewise.
11526 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11527 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11528 declaration.
11529 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11530 (rs6000_xfer_shared_libraries): Likewise.
11531 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11532 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11533 (sparc_xfer_partial): Likewise.
11534 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11535 (spu_xfer_partial): Likewise.
11536 * spu-multiarch.c (spu_xfer_partial): Likewise.
11537 * target.c (target_read_live_memory): Likewise.
11538 (memory_xfer_live_readonly_partial): Likewise.
11539 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11540 (target_xfer_partial, default_xfer_partial): Likewise.
11541 (current_xfer_partial): Likewise.
11542 * tracepoint.c (tfile_xfer_partial): Likewise.
11543 * windows-nat.c (windows_xfer_memory): Likewise. Call
11544 pulongest instead of plongest.
11545 (windows_xfer_partial): Likewise.
11546 (windows_xfer_shared_libraries): Likewise.
11547
05804640
YQ
115482014-01-14 Yao Qi <yao@codesourcery.com>
11549
11550 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11551 target_xfer_partial_ftype.
11552
b5b08fb4
SC
115532014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11554
11555 PR python/15464
11556 PR python/16113
11557 * valops.c (value_struct_elt_bitpos): New function
11558 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11559 object to 'None' if the field name is an empty string ("").
11560 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11561 attribute to look for a field when 'name' is 'None'.
11562 (get_field_type): New function
11563
13aaf454
DE
115642014-01-13 Doug Evans <dje@google.com>
11565
11566 PR symtab/16426
11567 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11568 (try_open_dwop_file): Ditto.
11569 * gdb_bfd.c: #include "vec.h".
11570 (bfdp): New typedef.
11571 (struct gdb_bfd_data): New member included_bfds.
11572 (gdb_bfd_unref): Unref all included bfds.
11573 (gdb_bfd_record_inclusion): New function.
11574 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11575
c2cec97c
TT
115762014-01-13 Tom Tromey <tromey@redhat.com>
11577
11578 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11579
78e5999d
TT
115802014-01-13 Tom Tromey <tromey@redhat.com>
11581
11582 * defs.h (use_windows): Remove.
11583 * gdb.c (main): Update.
11584 * main.c (captured_main, gdb_main): Update.
11585 * main.h (struct captured_main_args) <use_windows>: Remove.
11586 * top.c (use_windows): Remove.
11587
f2052bbe
TT
115882014-01-13 Tom Tromey <tromey@redhat.com>
11589
11590 * defs.h (deprecated_flush_hook): Remove.
11591
fde4f8ed
JK
115922014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11593
11594 PR threads/16216
11595 * linux-thread-db.c (try_thread_db_load): Add parameter
11596 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11597 (try_thread_db_load_from_pdir_1): Move it there from here.
11598 (try_thread_db_load_from_sdir): Update caller.
11599 (try_thread_db_load_from_dir): Move it there from here.
11600
bdf61915
PP
116012014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11602
11603 * regformats/regdat.sh: Always rewrite the register file.
11604
f71e1a8d
PA
116052014-01-13 Pedro Alves <palves@redhat.com>
11606
11607 * Makefile.in (CHECK_HEADERS): New variable.
11608 (check-headers:): New rule.
11609
42c85435
TT
116102014-01-13 Tom Tromey <tromey@redhat.com>
11611
11612 * cli/cli-setshow.c (do_set_command): Update.
11613 * defs.h (deprecated_set_hook): Remove.
11614 * top.c (deprecated_set_hook): Remove.
11615
f8de5129
PA
116162014-01-13 Pedro Alves <palves@redhat.com>
11617
11618 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11619 the tracepoint if the PC is a pseudo-register.
11620
fc270c35
TT
116212014-01-13 Tom Tromey <tromey@redhat.com>
11622
11623 * defs.h (XCALLOC): Remove.
11624 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11625 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11626 * dwarf2loc.c (allocate_piece_closure): Likewise.
11627 * elfread.c (elf_symfile_segments): Likewise.
11628 (elf_symfile_segments): Likewise.
11629 * gdbtypes.c (copy_type_recursive): Likewise.
11630 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11631 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11632 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11633 XCALLOC.
11634 * mt-tdep.c (mt_gdbarch_init): Likewise.
11635 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11636 XCALLOC.
11637 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11638 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11639 * registry.c (registry_alloc_data): Likewise.
11640 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11641 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11642 * serial.c (serial_fdopen_ops): Likewise.
11643 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11644 XCALLOC.
11645 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11646 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11647 not XCALLOC.
11648
70ba0933
TT
116492014-01-13 Tom Tromey <tromey@redhat.com>
11650
11651 * defs.h (XMALLOC): Remove.
11652 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11653 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11654 * cli-out.c (struct ui_out *): Likewise.
11655 * cli/cli-dump.c (add_dump_command): Likewise.
11656 (add_dump_command): Likewise.
11657 * complaints.c (get_complaints): Likewise.
11658 (find_complaint): Likewise.
11659 * dwarf2-frame.c (execute_cfa_program): Likewise.
11660 * dwarf2read.c (abbrev_table_read_table): Likewise.
11661 * gdbarch.sh: Likewise.
11662 * gdbarch.c: Rebuild.
11663 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11664 * interps.c (interp_new): Likewise.
11665 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11666 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11667 * mi/mi-console.c (mi_console_file_new): Likewise.
11668 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11669 * mi/mi-out.c (mi_out_new): Likewise.
11670 * mi/mi-parse.c (mi_parse): Likewise.
11671 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11672 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11673 * observer.c (xalloc_observer_list_node): Likewise.
11674 * regcache.c (regcache_xmalloc_1): Likewise.
11675 * reggroups.c (reggroup_new): Likewise.
11676 (_initialize_reggroup): Likewise.
11677 * registry.c (register_data_with_cleanup): Likewise.
11678 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11679 * ser-base.c (serial_ttystate): Likewise.
11680 * ser-mingw.c (make_pipe_state): Likewise.
11681 * ser-pipe.c (pipe_open): Likewise.
11682 * serial.c (serial_open): Likewise.
11683 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11684 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11685 (tui_alloc_win_info): Likewise.
11686 (tui_add_content_elements): Likewise.
11687 * tui/tui-file.c (tui_file_new): Likewise.
11688 * tui/tui-out.c (tui_out_new): Likewise.
11689 * ui-file.c (mem_file_new): Likewise.
11690 * ui-out.c (push_level): Likewise.
11691 (make_cleanup_ui_out_end): Likewise.
11692 (append_header_to_list): Likewise.
11693 (ui_out_new): Likewise.
11694 * user-regs.c (user_reg_add_builtin): Likewise.
11695
41bf6aca
TT
116962014-01-13 Tom Tromey <tromey@redhat.com>
11697
11698 * defs.h (XZALLOC): Remove.
11699 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11700 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11701 (get_ada_tasks_inferior_data): Likewise.
11702 * auto-load.c (get_auto_load_pspace_data): Likewise.
11703 * auxv.c (get_auxv_inferior_data): Likewise.
11704 * bfd-target.c (target_bfd_reopen): Likewise.
11705 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11706 (deprecated_insert_raw_breakpoint): Likewise.
11707 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11708 * corelow.c (core_open): Likewise.
11709 * darwin-nat.c (darwin_check_new_threads): Likewise.
11710 (darwin_attach_pid): Likewise.
11711 * dummy-frame.c (dummy_frame_push): Likewise.
11712 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11713 * dwarf2loc.c (allocate_piece_closure): Likewise.
11714 * elfread.c (elf_symfile_segments): Likewise.
11715 * eval.c (ptrmath_type_p): Likewise.
11716 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11717 * gdbtypes.c (alloc_type_arch): Likewise.
11718 (alloc_type_instance): Likewise.
11719 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11720 * inf-child.c (inf_child_can_use_agent): Likewise.
11721 * inflow.c (get_inflow_inferior_data): Likewise.
11722 * infrun.c (save_infcall_suspend_state): Likewise.
11723 * jit.c (jit_reader_load): Likewise.
11724 (get_jit_objfile_data): Likewise.
11725 (get_jit_program_space_data): Likewise.
11726 (jit_object_open_impl): Likewise.
11727 (jit_symtab_open_impl): Likewise.
11728 (jit_block_open_impl): Likewise.
11729 (jit_frame_sniffer): Likewise.
11730 * linux-fork.c (add_fork): Likewise.
11731 * maint.c (make_command_stats_cleanup): Likewise.
11732 * objfiles.c (get_objfile_pspace_data): Likewise.
11733 * opencl-lang.c (struct lval_closure): Likewise.
11734 * osdata.c (osdata_start_osdata): Likewise.
11735 * progspace.c (new_address_space): Likewise.
11736 (add_program_space): Likewise.
11737 * remote-sim.c (get_sim_inferior_data): Likewise.
11738 * sh-tdep.c (sh_gdbarch_init): Likewise.
11739 * skip.c (Ignore): Likewise.
11740 (skip_delete_command): Likewise.
11741 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11742 (library_list_start_library): Likewise.
11743 (solib_aix_current_sos): Likewise.
11744 * solib-darwin.c (get_darwin_info): Likewise.
11745 (darwin_current_sos): Likewise.
11746 * solib-dsbt.c (get_dsbt_info): Likewise.
11747 * solib-ia64-hpux.c (new_so_list): Likewise.
11748 (ia64_hpux_get_solib_linkage_addr): Likewise.
11749 * solib-spu.c (append_ocl_sos): Likewise.
11750 (spu_current_sos): Likewise.
11751 * solib-svr4.c (get_svr4_info): Likewise.
11752 (svr4_keep_data_in_core): Likewise.
11753 (library_list_start_library): Likewise.
11754 (svr4_default_sos): Likewise.
11755 (svr4_read_so_list): Likewise.
11756 * solib-target.c (library_list_start_library): Likewise.
11757 (solib_target_current_sos): Likewise.
11758 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11759 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11760 * symfile.c (default_symfile_segments): Likewise.
11761 * target-descriptions.c (tdesc_data_init): Likewise.
11762 (tdesc_create_reg): Likewise.
11763 (struct tdesc_type *): Likewise.
11764 (tdesc_create_vector): Likewise.
11765 (tdesc_set_struct_size): Likewise.
11766 (struct tdesc_type *): Likewise.
11767 (tdesc_free_feature): Likewise.
11768 (tdesc_create_feature): Likewise.
11769 * windows-nat.c (windows_add_thread): Likewise.
11770 (windows_make_so): Likewise.
11771 * xml-support.c (gdb_xml_body_text): Likewise.
11772 (gdb_xml_create_parser_and_cleanup): Likewise.
11773 (xml_process_xincludes): Likewise.
11774 * xml-syscall.c (allocate_syscalls_info): Likewise.
11775 (syscall_create_syscall_desc): Likewise.
11776
5acfdbae
SDJ
117772014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11778
11779 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11780 function, with code from i386_stap_parse_special_token.
11781 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11782 (i386_stap_parse_special_token): Move code to the two functions
11783 above; simplify it.
11784
0000e5cc
PA
117852014-01-09 Pedro Alves <palves@redhat.com>
11786 Hui Zhu <hui@codesourcery.com>
11787
11788 PR gdb/16101
11789 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11790 bp_err_string. Don't mark the location shlib_disabled if the
11791 error thrown wasn't a generic or memory error. Catch errors
11792 thrown while inserting breakpoints in overlayed code. Output
11793 error message of software breakpoints.
11794 * remote.c (remote_insert_breakpoint): If this breakpoint has
11795 target-side commands but this stub doesn't support Z0 packets,
11796 throw NOT_SUPPORTED_ERROR error.
11797 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11798 * target.h (target_insert_breakpoint): Extend comment.
11799 (target_insert_hw_breakpoint): Add comment.
11800
b7ea362b
PA
118012014-01-08 Pedro Alves <palves@redhat.com>
11802
11803 * remote.c (remote_add_thread): Add threads silently if starting
11804 up.
11805 (remote_notice_new_inferior): If in all-stop, and starting up,
11806 don't call notice_new_inferior.
11807 (get_current_thread): New function, factored out from ...
11808 (add_current_inferior_and_thread): ... this. Adjust.
11809 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11810 found any thread, then select the remote's current thread as GDB's
11811 current thread too.
11812
b7bba001
JB
118132014-01-08 Joel Brobecker <brobecker@adacore.com>
11814
11815 * NEWS: Create a new section for the next release branch.
11816 Rename the section of the current branch, now that it has
11817 been cut.
11818
16dfbded
JB
118192014-01-08 Joel Brobecker <brobecker@adacore.com>
11820
11821 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11822 * version.in: Bump version to 7.7.50.DATE-cvs.
11823
22c90ac1
YQ
118242014-01-08 Yao Qi <yao@codesourcery.com>
11825
11826 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11827 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11828 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11829
d64ad97c
YQ
118302014-01-08 Yao Qi <yao@codesourcery.com>
11831
11832 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11833 return value of bfd_get_filename to symbol_file_add_from_bfd.
11834
f93ba80c
PM
118352014-01-08 Pierre Muller <muller@sourceware.org>
11836
11837 Fix PR16201.
11838 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11839 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11840 to prim_record_mininal_symbol_and_info.
11841 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11842 in call to prim_record_minimal_symbol_and_info.
11843 (read_pe_exported_syms): Set index field of section_data.
11844
a4d9ba85
AP
118452014-01-07 Andrew Pinski <apinski@cavium.com>
11846
11847 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11848 * features/aarch64.c: Regenerate.
11849
1b67eb02
AS
118502014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11851
11852 * target.c (return_null): Define.
11853 (update_current_target): Use it instead of return_zero for
11854 functions that return a pointer.
11855
5e3f4fab
EBM
118562014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11857
11858 * source.c (add_path): Fix check for duplicated paths in the previously
11859 included paths.
11860
e2616788
HK
118612014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11862
11863 * ada-lang.c: Remove duplicated include statements.
11864 * alphabsd-nat.c: Ditto.
11865 * amd64-darwin-tdep.c: Ditto.
11866 * amd64fbsd-nat.c: Ditto.
11867 * auto-load.c: Ditto.
11868 * ax-gdb.c: Ditto.
11869 * breakpoint.c: Ditto.
11870 * dbxread.c: Ditto.
11871 * fork-child.c: Ditto.
11872 * gdb_usleep.c: Ditto.
11873 * i386-darwin-tdep.c: Ditto.
11874 * i386fbsd-nat.c: Ditto.
11875 * infcmd.c: Ditto.
11876 * inferior.c: Ditto.
11877 * jv-lang.c: Ditto.
11878 * linux-nat.c: Ditto.
11879 * linux-tdep.c: Ditto.
11880 * m68kbsd-nat.c: Ditto.
11881 * m68klinux-nat.c: Ditto.
11882 * microblaze-tdep.c: Ditto.
11883 * mips-linux-tdep.c: Ditto.
11884 * mn10300-tdep.c: Ditto.
11885 * nto-tdep.c: Ditto.
11886 * opencl-lang.c: Ditto.
11887 * osdata.c: Ditto.
11888 * printcmd.c: Ditto.
11889 * regcache.c: Ditto.
11890 * remote-m32r-sdi.c: Ditto.
11891 * remote.c: Ditto.
11892 * symfile.c: Ditto.
11893 * symtab.c: Ditto.
11894 * tilegx-linux-nat.c: Ditto.
11895 * tilegx-tdep.c: Ditto.
11896 * tracepoint.c: Ditto.
11897 * valops.c: Ditto.
11898 * vaxbsd-nat.c: Ditto.
11899 * windows-nat.c: Ditto.
11900 * xtensa-tdep.c: Ditto.
11901
bd1f7788
YQ
119022014-01-07 Yao Qi <yao@codesourcery.com>
11903
11904 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11905
79301218
JB
119062014-01-07 Yao Qi <yao@codesourcery.com>
11907 Joel Brobecker <brobecker@adacore.com>
11908
11909 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11910 (pdc_write_regs): Likewise.
11911 (fetch_regs_kernel_thread): Likewise.
11912 (store_regs_kernel_thread): Likewise.
11913
119142014-01-07 Joel Brobecker <brobecker@adacore.com>
11915
11916 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11917 tagged type objects to their actual type.
11918
8e355c5d
JB
119192014-01-07 Joel Brobecker <brobecker@adacore.com>
11920
11921 * ada-valprint.c (print_field_values): Add "language" parameter.
11922 Update calls to print_field_values and print_variant_part.
11923 Pass new parameter "language" in call to val_print instead
11924 of "current_language". Replace call to ada_val_print by call
11925 to val_print.
11926 (print_variant_part): Add "language" parameter.
11927 (ada_val_print_struct_union): Update call to print_field_values.
11928
4fbf5aa5
JB
119292014-01-07 Joel Brobecker <brobecker@adacore.com>
11930
11931 * ada-valprint.c (ui_memcpy): Delete.
11932 (ada_print_floating): Update documentation. Add empty line
11933 between between function documentation and implementation.
11934 Delete variable "buffer". Use ui_file_xstrdup in place of
11935 ui_file_put. Minor adjustments following this change.
11936
71855601
JB
119372014-01-07 Joel Brobecker <brobecker@adacore.com>
11938
11939 * ada-valprint.c (ada_val_print_string): New function,
11940 extracted from ada_val_print_array.
11941 (ada_val_print_array): Replace extracted code by call
11942 to ada_val_print_string followed by a return. Move
11943 "else" branch to the function's top block.
11944
4eb27a30
JB
119452014-01-07 Joel Brobecker <brobecker@adacore.com>
11946
11947 * ada-valprint.c (ada_val_print_array): Move implementation
11948 down. Rename parameter "offset" and "val" into "offset_aligned"
11949 and "original_value" respectively. Add parameter "offset".
11950
34b27950
JB
119512014-01-07 Joel Brobecker <brobecker@adacore.com>
11952
11953 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11954 re-organizing the code. Change the "???" message printed
11955 when target type is a TYPE_CODE_UNDEF into
11956 "<ref to undefined type>".
11957
079e4591
JB
119582014-01-07 Joel Brobecker <brobecker@adacore.com>
11959
11960 * ada-valprint.c (print_record): Delete, implementation inlined...
11961 (ada_val_print_struct_union): ... here. Remove call to
11962 ada_check_typedef in inlined implementation.
11963
8004dfd1
JB
119642014-01-07 Joel Brobecker <brobecker@adacore.com>
11965
11966 * ada-valprint.c (ada_val_print_gnat_array): New function,
11967 extracted from ada_val_print_1;
11968 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11969 (ada_val_print_flt, ada_val_print_struct_union)
11970 (ada_val_print_ref): Likewise.
11971 (ada_val_print_1): Delete variables i and elttype.
11972 Replace extracted-out code by call to corresponding
11973 new functions.
11974
760a2db0
JB
119752014-01-07 Joel Brobecker <brobecker@adacore.com>
11976
11977 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11978
3a92c861
JB
119792014-01-07 Joel Brobecker <brobecker@adacore.com>
11980
11981 * ada-valprint.c (ada_val_print_1): Replace calls to
11982 ada_val_print_1 by calls to val_print.
11983
cd1630f9
JB
119842014-01-07 Joel Brobecker <brobecker@adacore.com>
11985
11986 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11987 Update calls to self accordingly. Replace calls to c_val_print
11988 by calls to val_print.
11989
bdf779a0
JB
119902014-01-07 Joel Brobecker <brobecker@adacore.com>
11991
11992 * ada-valprint.c (print_record): Delete declaration.
11993 (adjust_type_signedness, ada_val_print_1): Likewise.
11994 (ada_val_print): Move function implementation down.
11995 (print_variant_part, print_field_values, print_record):
11996 Move function implementation up.
11997
c0d48811
JB
119982014-01-07 Joel Brobecker <brobecker@adacore.com>
11999
12000 * python/py-type.c (typy_get_name): New function.
12001 (type_object_getset): Add entry for attribute "name".
12002 * NEWS: Add entry mentioning this new attribute.
12003
c26e9cbb
YQ
120042014-01-07 Yao Qi <yao@codesourcery.com>
12005
12006 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12007 statement.
12008
0cc6f43d
YQ
120092014-01-07 Yao Qi <yao@codesourcery.com>
12010
12011 * gnu-nat.c (info_port_rights): Add qualifier const to
12012 argument args.
12013
eec03155
YQ
120142014-01-07 Yao Qi <yao@codesourcery.com>
12015
12016 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12017
f04a82ef
YQ
120182014-01-07 Yao Qi <yao@codesourcery.com>
12019
12020 * gnu-nat.c (make_inf) Update declaration.
12021 (make_inf): Make it static.
12022 (inf_set_traced): Likewise.
12023 (inf_port_to_thread, inf_task_died_status): Likewise.
12024
d57dda0a
YQ
120252014-01-07 Yao Qi <yao@codesourcery.com>
12026
12027 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12028
3aa8c969
YQ
120292014-01-07 Yao Qi <yao@codesourcery.com>
12030
12031 * gnu-nat.c (_initialize_gnu_nat): Declare.
12032
94123b4f
YQ
120332014-01-07 Yao Qi <yao@codesourcery.com>
12034
12035 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12036 'enum bfd_endian'.
12037 (struct gdbarch_info) <byte_order>: Change type to
12038 'enum bfd_endian'.
12039 <byte_order_for_code>: Likewise.
12040 * gdbarch.c, gdbarch.h: Regenerated.
12041
dc81d70a
TT
120422014-01-06 Sasha Smundak <asmundak@google.com>
12043
12044 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12045
cc2f3c35
TT
120462014-01-06 Tom Tromey <tromey@redhat.com>
12047
12048 * doublest.c (convert_doublest_to_floatformat): Use const, not
12049 CONST.
12050 * somread.c (som_symtab_read): Likewise.
12051
adcf2eed
HZ
120522014-01-07 Hui Zhu <hui@codesourcery.com>
12053
12054 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12055 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12056 (gdb_bfd_fopen): Ditto.
12057 (gdb_bfd_openr): Ditto.
12058 (gdb_bfd_openw): Ditto.
12059 (gdb_bfd_openr_iovec): Ditto.
12060 (gdb_bfd_fdopenr): Ditto.
12061 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12062 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12063 with xstrdup.
12064 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12065 with xstrdup.
12066 * symfile-mem.c (symbol_file_add_from_memory): Removed
12067 gdb_bfd_stash_filename.
12068
50722198
DE
120692014-01-03 Doug Evans <dje@google.com>
12070
12071 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12072 output.
12073
2fa4b862
JB
120742014-01-01 Joel Brobecker <brobecker@adacore.com>
12075
12076 Update year range in copyright notice of all files.
12077
28498c42
JB
120782014-01-01 Joel Brobecker <brobecker@adacore.com>
12079
12080 * top.c (print_gdb_version): Set copyright year to 2014.
12081
7b6e1046
JB
120822014-01-01 Joel Brobecker <brobecker@adacore.com>
12083
12084 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12085
df96af55 12086For older changes see ChangeLog-2013.
c906108c
SS
12087\f
12088Local Variables:
12089mode: change-log
12090left-margin: 8
12091fill-column: 74
12092version-control: never
57da7796 12093coding: utf-8
c906108c 12094End:
This page took 2.442991 seconds and 4 git commands to generate.