Fix file-alignment for objcopy for pe-coff
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
510db052
YQ
12014-08-22 Yao Qi <yao@codesourcery.com>
2
3 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4 (ctf_end): Remove code.
5
22fd09ae
JK
62014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7
8 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
9 (linux_make_corefile_notes): call update_thread_list, protected against
10 exceptions.
11
656e8868
PA
122014-08-21 Pedro Alves <palves@redhat.com>
13
14 * infcmd.c (attach_command): Remove comment.
15
de589d04
WN
162014-08-21 Bin Cheng <bin.cheng@arm.com>
17
18 * aarch64-linux-nat.c (dr_changed_t): Change the type from
19 unsigned LONGEST to ULONGEST.
20
2a31c623
PA
212014-08-20 Pedro Alves <palves@redhat.com>
22
23 * Makefile.in (check-read1): New rule.
24
d36430db
JB
252014-08-20 Joel Brobecker <brobecker@adacore.com>
26
27 * value.c (value_from_contents_and_address): Strip resolved_type's
28 typedef layers before checking its TYPE_DATA_LOCATION.
29
000339af
PA
302014-08-20 Pedro Alves <palves@redhat.com>
31
32 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
33
5f52445b
YQ
342014-08-20 Yao Qi <yao@codesourcery.com>
35
36 * amd64-tdep.c (amd64_classify): Add a blank line after the
37 example. Move "*/" to a new line.
38 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
39 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
40 * dwarf2read.c (psymtab_include_file_name): Likewise.
41
9a0dc9e3
PA
422014-08-19 Andrew Burgess <aburgess@broadcom.com>
43 Pedro Alves <palves@redhat.com>
44
45 PR symtab/14604
46 PR symtab/14605
47 * ada-lang.c (coerce_unspec_val_to_type): Use
48 value_contents_copy_raw.
49 * ada-valprint.c (val_print_packed_array_elements): Adjust.
50 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
51 * cp-valprint.c (cp_print_value_fields): Let the common printing
52 code handle optimized out values.
53 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
54 * d-valprint.c (dynamic_array_type): Use
55 value_bits_any_optimized_out.
56 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
57 check_any_valid fields.
58 (check_pieced_value_bits): Delete and inline ...
59 (check_pieced_synthetic_pointer): ... here.
60 (check_pieced_value_validity): Delete.
61 (check_pieced_value_invalid): Delete.
62 (pieced_value_funcs): Remove check_validity and check_any_valid
63 fields.
64 (read_pieced_value): Use mark_value_bits_optimized_out.
65 (write_pieced_value): Switch to use
66 mark_value_bytes_optimized_out.
67 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
68 of assuming the whole value is optimized out.
69 * findvar.c (read_frame_register_value): Remove special handling
70 of optimized out registers.
71 (value_from_register): Use mark_value_bytes_optimized_out.
72 * frame-unwind.c (frame_unwind_got_optimized): Use
73 mark_value_bytes_optimized_out.
74 * jv-valprint.c (java_value_print): Adjust.
75 (java_print_value_fields): Let the common printing code handle
76 optimized out values.
77 * mips-tdep.c (mips_print_register): Remove special handling of
78 optimized out registers.
79 * opencl-lang.c (lval_func_check_validity): Delete.
80 (lval_func_check_any_valid): Delete.
81 (opencl_value_funcs): Remove check_validity and check_any_valid
82 fields.
83 * p-valprint.c (pascal_object_print_value_fields): Let the common
84 printing code handle optimized out values.
85 * stack.c (read_frame_arg): Remove special handling of optimized
86 out values. Fetch both VAL and ENTRYVAL before comparing
87 contents. Adjust to value_available_contents_eq rename.
88 * valprint.c (valprint_check_validity)
89 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
90 (val_print_array_elements): Adjust.
91 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
92 (value_bits_any_optimized_out): New function.
93 (value_entirely_covered_by_range_vector): New function, factored
94 out from value_entirely_unavailable.
95 (value_entirely_unavailable): Reimplement.
96 (value_entirely_optimized_out): New function.
97 (insert_into_bit_range_vector): New function, factored out from
98 mark_value_bits_unavailable.
99 (mark_value_bits_unavailable): Reimplement.
100 (struct ranges_and_idx): New struct.
101 (find_first_range_overlap_and_match): New function, factored out
102 from value_available_contents_bits_eq.
103 (value_available_contents_bits_eq): Rename to ...
104 (value_contents_bits_eq): ... this. Check both unavailable
105 contents and optimized out contents.
106 (value_available_contents_eq): Rename to ...
107 (value_contents_eq): ... this.
108 (allocate_value_lazy): Remove reference to the old optimized_out
109 boolean.
110 (allocate_optimized_out_value): Use
111 mark_value_bytes_optimized_out.
112 (require_not_optimized_out): Adjust to check whether the
113 optimized_out vec is empty.
114 (ranges_copy_adjusted): New function, factored out from
115 value_contents_copy_raw.
116 (value_contents_copy_raw): Also copy the optimized out ranges.
117 Assert the destination ranges aren't optimized out.
118 (value_contents_copy): Update comment, remove call to
119 require_not_optimized_out.
120 (value_contents_equal): Adjust to check whether the optimized_out
121 vec is empty.
122 (set_value_optimized_out, value_optimized_out_const): Delete.
123 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
124 New functions.
125 (value_entirely_optimized_out, value_bits_valid): Delete.
126 (value_copy): Take a VEC copy of the 'optimized_out' field.
127 (value_primitive_field): Remove special handling of optimized out.
128 (value_fetch_lazy): Assert that lazy values have no unavailable
129 regions. Use value_bits_any_optimized_out. Remove some special
130 handling for optimized out values.
131 * value.h: Add intro comment about <optimized out> and
132 <unavailable>.
133 (struct lval_funcs): Remove check_validity and check_any_valid
134 fields.
135 (set_value_optimized_out, value_optimized_out_const): Remove.
136 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
137 New declarations.
138 (value_bits_any_optimized_out): New declaration.
139 (value_bits_valid): Delete declaration.
140 (value_available_contents_eq): Rename to ...
141 (value_contents_eq): ... this, and extend comments.
142
6694c411
JK
1432014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
144
145 Fix -fsanitize=address on unreadable inferior strings.
146 * valprint.c (val_print_string): Fix access before BUFFER.
147
89a1c21a
SM
1482014-08-19 Simon Marchi <simon.marchi@ericsson.com>
149
150 * target.c (target_struct_size): Remove.
151 (target_struct_allocsize): Remove.
152 (DEFAULT_ALLOCSIZE): Remove.
153 (target_ops_p): New typedef.
154 (DEF_VEC_P (target_ops_p)): New vector type.
155 (target_structs): Change type to VEC (target_ops_p).
156 (add_target_with_completer): Replace "push" code by VEC_safe_push.
157 (find_default_run_target): Rewrite for loop following changes to
158 target_structs.
159
cb417230
JB
1602014-08-19 Joel Brobecker <brobecker@adacore.com>
161
162 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
163 Adjust code accordingly. Adjust function description comment.
164
817e0957
YQ
1652014-08-19 Yao Qi <yao@codesourcery.com>
166
167 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
168 types.
169
2974be62
AM
1702014-08-19 Alan Modra <amodra@gmail.com>
171
172 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
173 * config.in: Regenerate.
174 * configure: Regenerate.
175
34abf635
GB
1762014-08-19 Tom Tromey <tromey@redhat.com>
177 Gary Benson <gbenson@redhat.com>
178
179 * common/common-debug.h: New file.
180 * common/common-debug.c: Likewise.
181 * debug.c: Likewise.
182 * Makefile.in (SFILES): Add common/common-debug.c.
183 (HFILES_NO_SRCDIR): Add common/common-debug.h.
184 (COMMON_OBS): Add common-debug.o and debug.o.
185 (common-debug.o): New rule.
186 * common/common-defs.h: Include common-debug.h.
187 * common/agent.c (debug_agent_printf): New function.
188 (DEBUG_AGENT): Redefine.
189 * nat/i386-dregs.c (debug_printf): Undefine.
190
f6e94d78
GB
1912014-08-19 Gary Benson <gbenson@redhat.com>
192
193 * common/common-defs.h: Include print-utils.h.
194 * utils.h: Do not include print-utils.h.
195
9239eeab
GB
1962014-08-19 Tom Tromey <tromey@redhat.com>
197 Gary Benson <gbenson@redhat.com>
198
199 * common/common-types.h: New file.
200 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
201 * common/common-defs.h: Include common-types.h.
202 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
203 (ULONGEST): Remove.
204
ef87c8bb
GB
2052014-08-19 Tom Tromey <tromey@redhat.com>
206 Gary Benson <gbenson@redhat.com>
207
208 * common/errors.h: New file.
209 * common/errors.c: Likewise.
210 * Makefile.in (SFILES): Add common/errors.c.
211 (HFILES_NO_SRCDIR): Add common/errors.h.
212 (COMMON_OBS): Add errors.o.
213 (errors.o): New rule.
214 * common/common-defs.h: Include errors.h.
215 * utils.h (perror_with_name, error, verror, warning, vwarning):
216 Don't declare.
217 * common/common-utils.h: (malloc_failure, internal_error):
218 Likewise.
219
196a707b
GB
2202014-08-19 Gary Benson <gbenson@redhat.com>
221
222 * utils.c (internal_vproblem): Always print the message.
223
ded4fc8f
DE
2242014-08-18 Doug Evans <dje@google.com>
225
226 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
227
950c97d8
JB
2282014-08-18 Joel Brobecker <brobecker@adacore.com>
229
230 * ada-typeprint.c (type_is_full_subrange_of_target_type):
231 Return 0 if TYPE is dynamic.
232 (print_range): Add handling of dynamic ranges.
233
3cdcd0ce
JB
2342014-08-18 Keven Boell <keven.boell@intel.com>
235 Joel Brobecker <brobecker@adacore.com>
236
237 * gdbtypes.h (struct main_type): Add field "data_location".
238 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
239 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
240 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
241 a dynamic data location.
242 (resolve_dynamic_type): Add DW_AT_data_location handling.
243 (copy_recursive, copy_type): Copy the data_location information
244 when present.
245 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
246 * value.c (value_from_contents_and_address): Add
247 DW_AT_data_location handling.
248
08412b07
JB
2492014-08-18 Keven Boell <keven.boell@intel.com>
250 Joel Brobecker <brobecker@adacore.com>
251
252 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
253 field "get_object_address".
254 * dwarf2expr.c (execute_stack_op): Add handling for
255 DW_OP_push_object_address.
256 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
257 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
258 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
259 (dwarf_expr_get_obj_addr): New function.
260 (dwarf_expr_ctx_funcs): Add get_object_address field.
261 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
262 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
263 (dwarf2_evaluate_property): Add parameter "address". Use it.
264 (needs_get_obj_addr): New function.
265 (needs_frame_ctx_funcs): Add get_object_address field.
266 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
267 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
268 (resolve_dynamic_array): Likewise.
269
84754697
JB
2702014-08-18 Joel Brobecker <brobecker@adacore.com>
271
272 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
273 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
274 fixed value for records and unions for which some GNAT encodings
275 are present.
276
da5c522f
JB
2772014-08-18 Joel Brobecker <brobecker@adacore.com>
278
279 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
280 rewrite to avoid "else if" and "else" constructs. Should be
281 a no-op in practice.
282
0d72a7c3
JB
2832014-08-18 Joel Brobecker <brobecker@adacore.com>
284
285 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
286 of lexical block.
287
e66d4446
SC
2882014-08-15 Siva Chandra Reddy <sivachandra@google.com>
289
290 PR c++/17132
291 * eval.c: Update all calls to find_overload_match.
292 * valarith.c: Likewise.
293 (value_user_defined_cpp_op, value_user_defined_op): New
294 argument NOSIDE. Update all callers.
295 * valops.c (find_overload_match): New argument NOSIDE.
296 * value.h (find_overload_match): Update signature.
297
940df408
SC
2982014-08-15 Siva Chandra Reddy <sivachandra@google.com>
299
300 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
301 'items' methods instead of 'iteritems' method on dictionaries.
302
699ca60a
DE
3032014-08-15 Doug Evans <dje@google.com>
304
305 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
306 closer to use.
307
37780ee5
DE
3082014-08-15 Doug Evans <dje@google.com>
309
310 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
311
0ad93d4f
DE
3122014-08-15 Doug Evans <dje@google.com>
313
314 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
315
20d8c372
DE
3162014-08-15 Doug Evans <dje@google.com>
317
318 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
319 unused.
320
cb039ba4
EZ
3212014-08-15 Eli Zaretskii <eliz@gnu.org>
322
323 * dcache.h: Include target.h, to avoid compile time warnings.
324
eb7a547a
JB
3252014-08-15 Joel Brobecker <brobecker@adacore.com>
326
327 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
328 frame_info" partial declaration.
329 * gdbarch.h: Regenerate.
330
783cecc8
YQ
3312014-08-15 Yao Qi <yao@codesourcery.com>
332
333 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
334 Add parameter 'decode_for_pst_p'. Callers update.
335
65c749e7
YQ
3362014-08-13 Yao Qi <yao@codesourcery.com>
337
338 PR build/17104
339 * configure.ac: Use local variable 'pos'.
340 * configure: Regenerated.
341
d769e349
DE
3422014-08-11 Doug Evans <dje@google.com>
343
344 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
345 message, it is redundant with "Reading symbols from ..." message.
346
24f1235e
DE
3472014-08-10 Doug Evans <xdje42@gmail.com>
348
349 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
350
dcd2e6ef
YQ
3512014-08-09 Yao Qi <yao@codesourcery.com>
352
353 PR remote/9053
354 * remote.c (remote_xfer_partial): Remove dead code.
355
070bdf0b
AA
3562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
357
358 * ia64-linux-tdep.c: Include "regset.h".
359 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
360 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
361 (ia64_linux_supply_fpregset): New function.
362 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
363 (ia64_linux_regset_from_core_section): New function.
364 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
365 method.
366
08f9f542
AA
3672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
368
369 * m68klinux-tdep.c: Include "regset.h".
370 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
371 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
372 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
373 (m68k_linux_regset_from_core_section): New function.
374 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
375 method.
376
8f1cee41
AA
3772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
378
379 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
380 function. Move logic to...
381 (tilegx_linux_regmap): ... this new register map.
382 (tilegx_linux_regset): Refer to register map, replace supply
383 method by regcache_supply_regset, and add collect method.
384 * tilegx-tdep.h (enum tilegx_regnum): New enum value
385 TILEGX_FIRST_EASY_REGNUM.
386
c5741217
AA
3872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
388
389 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
390 that calls regcache_supply_regset and handles the EPC register
391 separately. Move main logic to...
392 (score7_linux_gregmap): ... this new register map.
393 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
394 (score7_linux_gregset): Refer to register map. Add collect method.
395 (score7_linux_regset_from_core_section): Replace
396 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
397 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
398 (struct regset): Delete unused forward declaraction.
399 (struct pt_regs): Delete structure definition.
400 (elf_gregset_t): Delete typedef.
401
81580573
AA
4022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
403
404 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
405 (nios2_core_regset): Add collect method.
406
ba199d7d
AA
4072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
408
409 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
410 platform-independent and don't write to read-only input buffer.
411 (m32r_linux_collect_gregset): New function.
412 (m32r_linux_gregset): Add collect method.
413
0006a9da
AA
4142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
415
416 * hppa-linux-tdep.c (greg_map): Rename to...
417 (hppa_linux_gregmap): ... this. Also convert to
418 regcache_map_entry format.
419 (hppa_linux_supply_regset): Delete function.
420 (hppa_linux_supply_fpregset): Delete function. Move logic to...
421 (hppa_linux_fpregmap): ... this new register map.
422 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
423 register map, replace supply method by regcache_supply_regset, and
424 add collect method regcache_collect_regset.
425
901e1b23
AA
4262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
427
428 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
429 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
430 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
431 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
432 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
433 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
434 (frv_linux_supply_gregset): Replace main logic by call to
435 regcache_supply_regset, but keep clearing gr32-gr63.
436 (frv_linux_supply_fpregset): Delete function.
437 (frv_linux_gregset): Refer to appropriate register map and add
438 regcache_collect_regset as the collect method.
439 (frv_linux_fpregset): Likewise. Also exchange the supply method
440 by regcache_supply_regset.
441
1d6e7555
AA
4422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
443
444 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
445 by call to alpha_supply_int_regs.
446 (alpha_linux_collect_gregset): New function.
447 (alpha_linux_supply_fpregset): Replace logic by call to
448 alpha_supply_fp_regs.
449 (alpha_linux_collect_fpregset): New function.
450 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
451
d4d793bf
AA
4522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
453
454 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
455 by call to regcache_collect_regset.
456 (supply_gregset, supply_fpregset): Call regcache_supply_regset
457 instead of aarch64_linux_supply_gregset/_fpregset.
458 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
459 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
460 header file instead.
461 (aarch64_linux_supply_gregset, supply_gregset_from_core)
462 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
463 functions. Move logic to ...
464 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
465 register maps.
466 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
467 refer to new register maps, replace *_regset_from_core by
468 regcache_supply_regset, and also use regcache_collect_regset.
469 * aarch64-linux-tdep.h: Include "regset.h".
470 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
471 Delete prototypes.
472 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
473 macros, moved from C source file.
474 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
475 variable declarations.
476
99b7da5d
AA
4772014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
478
479 * s390-linux-nat.c: Include "regset.h".
480 (regmap_gregset): Delete macro.
481 (s390_64_regmap_gregset): New register map for
482 regcache_supply/_collect_regset.
483 (s390_64_gregset): New regset.
484 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
485 (regmap_fpregset): Delete macro.
486 (s390_native_supply, s390_native_collect): Delete functions.
487 (supply_gregset, fill_gregset): Replace s390-specific regmap
488 handling by a call to regcache_supply/_collect_regset.
489 (supply_fpregset, fill_fpregset): Call regcache_supply/
490 _collect_regset instead of s390_native_supply/_collect.
491 (fetch_regset, store_regset): Likewise. Also change the last
492 parameter to a regset instead of a regmap.
493 (s390_linux_fetch_inferior_registers)
494 (390_linux_store_inferior_registers): Adjust last parameter in
495 calls to fetch_regset and store_regset.
496 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
497 (s390_gregmap): ... this. Also make static const and convert to
498 regcache_map_entry format.
499 (s390x_regmap_gregset): Delete.
500 (s390_regmap_fpregset): Rename to...
501 (s390_fpregmap): ... this. Make static const and convert to
502 regcache_map_entry format.
503 (s390_regmap_upper, s390_regmap_last_break)
504 (s390x_regmap_last_break, s390_regmap_system_call)
505 (s390_regmap_tdb): Likewise.
506 (s390_supply_regset, s390_collect_regset): Remove functions.
507 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
508 s390_supply_regset.
509 (s390_gregset, s390_fpregset, s390_upper_regset)
510 (s390_last_break_regset, s390x_last_break_regset)
511 (s390_system_call_regset, s390_tdb_regset): Make global and
512 replace s390_supply/_collect_regset by regcache_supply/
513 _collect_regset.
514 (s390x_gregset): Delete.
515 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
516 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
517 (s390_regmap_fpregset, s390_regmap_last_break)
518 (s390x_regmap_last_break, s390_regmap_system_call)
519 (s390_regmap_tdb): Delete global variable declarations.
520 (s390_gregset, s390_fpregset, s390_last_break_regset)
521 (s390x_last_break_regset, s390_system_call_regset)
522 (s390_tdb_regset): New global variable declarations.
523
0b309272
AA
5242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
525
526 * regcache.c: Include "regset.h".
527 (regcache_transfer_regset): New local function.
528 (regcache_supply_regset, regcache_collect_regset): New functions.
529 * regcache.h (struct regcache_map_entry): New structure.
530 (REGCACHE_MAP_SKIP): New enum value.
531 (regcache_supply_regset, regcache_collect_regset): New prototypes.
532
7fefa8d7
AA
5332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
534
535 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
536 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
537 (ppc_linux_collect_gregset ): Likewise.
538 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
539 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
540 (ppc_collect_vrregset): Likewise.
541 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
542 Likewise.
543
96c4f946
YQ
5442014-08-07 Yao Qi <yao@codesourcery.com>
545
546 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
547 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
548 * remote.c (remote_read_bytes): Likewise.
549
fffbe6a8
YQ
5502014-08-07 Yao Qi <yao@codesourcery.com>
551
552 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
553
5ee8a82c
YQ
5542014-08-07 Yao Qi <yao@codesourcery.com>
555
556 PR remote/17230
557 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
558 TARGET_XFER_OK instead of 0.
559
bb974a24
GB
5602014-08-07 Gary Benson <gbenson@redhat.com>
561
562 * common/common-defs.h: Include errno.h.
563 * defs.h: Do not include errno.h.
564 * ada-typeprint.c: Likewise.
565 * c-typeprint.c: Likewise.
566 * core-regset.c: Likewise.
567 * corefile.c: Likewise.
568 * corelow.c: Likewise.
569 * event-loop.c: Likewise.
570 * f-typeprint.c: Likewise.
571 * gnu-nat.c: Likewise.
572 * go32-nat.c: Likewise.
573 * i386gnu-nat.c: Likewise.
574 * m2-typeprint.c: Likewise.
575 * nat/linux-btrace.c: Likewise.
576 * p-typeprint.c: Likewise.
577 * procfs.c: Likewise.
578 * remote-sim.c: Likewise.
579 * rs6000-nat.c: Likewise.
580 * target.c: Likewise.
581 * typeprint.c: Likewise.
582 * ui-file.c: Likewise.
583 * valops.c: Likewise.
584 * valprint.c: Likewise.
585
6d3d12eb
GB
5862014-08-07 Gary Benson <gbenson@redhat.com>
587
588 * common/common-defs.h: Include string.h.
589 * aarch64-tdep.c: Do not include string.h.
590 * ada-exp.y: Likewise.
591 * ada-lang.c: Likewise.
592 * ada-lex.l: Likewise.
593 * ada-typeprint.c: Likewise.
594 * ada-valprint.c: Likewise.
595 * aix-thread.c: Likewise.
596 * alpha-linux-tdep.c: Likewise.
597 * alpha-mdebug-tdep.c: Likewise.
598 * alpha-nat.c: Likewise.
599 * alpha-osf1-tdep.c: Likewise.
600 * alpha-tdep.c: Likewise.
601 * alphanbsd-tdep.c: Likewise.
602 * amd64-dicos-tdep.c: Likewise.
603 * amd64-linux-tdep.c: Likewise.
604 * amd64-nat.c: Likewise.
605 * amd64-sol2-tdep.c: Likewise.
606 * amd64fbsd-tdep.c: Likewise.
607 * amd64obsd-tdep.c: Likewise.
608 * arch-utils.c: Likewise.
609 * arm-linux-nat.c: Likewise.
610 * arm-linux-tdep.c: Likewise.
611 * arm-tdep.c: Likewise.
612 * arm-wince-tdep.c: Likewise.
613 * armbsd-tdep.c: Likewise.
614 * armnbsd-nat.c: Likewise.
615 * armnbsd-tdep.c: Likewise.
616 * armobsd-tdep.c: Likewise.
617 * avr-tdep.c: Likewise.
618 * ax-gdb.c: Likewise.
619 * ax-general.c: Likewise.
620 * bcache.c: Likewise.
621 * bfin-tdep.c: Likewise.
622 * breakpoint.c: Likewise.
623 * build-id.c: Likewise.
624 * buildsym.c: Likewise.
625 * c-exp.y: Likewise.
626 * c-lang.c: Likewise.
627 * c-typeprint.c: Likewise.
628 * c-valprint.c: Likewise.
629 * charset.c: Likewise.
630 * cli-out.c: Likewise.
631 * cli/cli-cmds.c: Likewise.
632 * cli/cli-decode.c: Likewise.
633 * cli/cli-dump.c: Likewise.
634 * cli/cli-interp.c: Likewise.
635 * cli/cli-logging.c: Likewise.
636 * cli/cli-script.c: Likewise.
637 * cli/cli-setshow.c: Likewise.
638 * cli/cli-utils.c: Likewise.
639 * coffread.c: Likewise.
640 * common/agent.c: Likewise.
641 * common/buffer.c: Likewise.
642 * common/buffer.h: Likewise.
643 * common/common-utils.c: Likewise.
644 * common/filestuff.c: Likewise.
645 * common/filestuff.c: Likewise.
646 * common/format.c: Likewise.
647 * common/print-utils.c: Likewise.
648 * common/rsp-low.c: Likewise.
649 * common/signals.c: Likewise.
650 * common/vec.h: Likewise.
651 * common/xml-utils.c: Likewise.
652 * core-regset.c: Likewise.
653 * corefile.c: Likewise.
654 * corelow.c: Likewise.
655 * cp-abi.c: Likewise.
656 * cp-name-parser.y: Likewise.
657 * cp-support.c: Likewise.
658 * cp-valprint.c: Likewise.
659 * cris-tdep.c: Likewise.
660 * d-exp.y: Likewise.
661 * darwin-nat.c: Likewise.
662 * dbxread.c: Likewise.
663 * dcache.c: Likewise.
664 * demangle.c: Likewise.
665 * dicos-tdep.c: Likewise.
666 * disasm.c: Likewise.
667 * doublest.c: Likewise.
668 * dsrec.c: Likewise.
669 * dummy-frame.c: Likewise.
670 * dwarf2-frame.c: Likewise.
671 * dwarf2loc.c: Likewise.
672 * dwarf2read.c: Likewise.
673 * elfread.c: Likewise.
674 * environ.c: Likewise.
675 * eval.c: Likewise.
676 * event-loop.c: Likewise.
677 * exceptions.c: Likewise.
678 * exec.c: Likewise.
679 * expprint.c: Likewise.
680 * f-exp.y: Likewise.
681 * f-lang.c: Likewise.
682 * f-typeprint.c: Likewise.
683 * f-valprint.c: Likewise.
684 * fbsd-nat.c: Likewise.
685 * findcmd.c: Likewise.
686 * findvar.c: Likewise.
687 * fork-child.c: Likewise.
688 * frame.c: Likewise.
689 * frv-linux-tdep.c: Likewise.
690 * frv-tdep.c: Likewise.
691 * gdb.c: Likewise.
692 * gdb_bfd.c: Likewise.
693 * gdbarch.c: Likewise.
694 * gdbarch.sh: Likewise.
695 * gdbtypes.c: Likewise.
696 * gnu-nat.c: Likewise.
697 * gnu-v2-abi.c: Likewise.
698 * gnu-v3-abi.c: Likewise.
699 * go-exp.y: Likewise.
700 * go-lang.c: Likewise.
701 * go32-nat.c: Likewise.
702 * guile/guile.c: Likewise.
703 * guile/scm-auto-load.c: Likewise.
704 * hppa-hpux-tdep.c: Likewise.
705 * hppa-linux-nat.c: Likewise.
706 * hppanbsd-tdep.c: Likewise.
707 * hppaobsd-tdep.c: Likewise.
708 * i386-cygwin-tdep.c: Likewise.
709 * i386-dicos-tdep.c: Likewise.
710 * i386-linux-tdep.c: Likewise.
711 * i386-nto-tdep.c: Likewise.
712 * i386-sol2-tdep.c: Likewise.
713 * i386-tdep.c: Likewise.
714 * i386bsd-tdep.c: Likewise.
715 * i386gnu-nat.c: Likewise.
716 * i386nbsd-tdep.c: Likewise.
717 * i386obsd-tdep.c: Likewise.
718 * i387-tdep.c: Likewise.
719 * ia64-libunwind-tdep.c: Likewise.
720 * ia64-linux-nat.c: Likewise.
721 * inf-child.c: Likewise.
722 * inf-ptrace.c: Likewise.
723 * inf-ttrace.c: Likewise.
724 * infcall.c: Likewise.
725 * infcmd.c: Likewise.
726 * inflow.c: Likewise.
727 * infrun.c: Likewise.
728 * interps.c: Likewise.
729 * iq2000-tdep.c: Likewise.
730 * irix5-nat.c: Likewise.
731 * jv-exp.y: Likewise.
732 * jv-lang.c: Likewise.
733 * jv-typeprint.c: Likewise.
734 * jv-valprint.c: Likewise.
735 * language.c: Likewise.
736 * linux-fork.c: Likewise.
737 * linux-nat.c: Likewise.
738 * lm32-tdep.c: Likewise.
739 * m2-exp.y: Likewise.
740 * m2-typeprint.c: Likewise.
741 * m32c-tdep.c: Likewise.
742 * m32r-linux-nat.c: Likewise.
743 * m32r-linux-tdep.c: Likewise.
744 * m32r-rom.c: Likewise.
745 * m32r-tdep.c: Likewise.
746 * m68hc11-tdep.c: Likewise.
747 * m68k-tdep.c: Likewise.
748 * m68kbsd-tdep.c: Likewise.
749 * m68klinux-nat.c: Likewise.
750 * m68klinux-tdep.c: Likewise.
751 * m88k-tdep.c: Likewise.
752 * machoread.c: Likewise.
753 * macrocmd.c: Likewise.
754 * main.c: Likewise.
755 * mdebugread.c: Likewise.
756 * mem-break.c: Likewise.
757 * memattr.c: Likewise.
758 * memory-map.c: Likewise.
759 * mep-tdep.c: Likewise.
760 * mi/mi-cmd-break.c: Likewise.
761 * mi/mi-cmd-disas.c: Likewise.
762 * mi/mi-cmd-env.c: Likewise.
763 * mi/mi-cmd-stack.c: Likewise.
764 * mi/mi-cmd-var.c: Likewise.
765 * mi/mi-cmds.c: Likewise.
766 * mi/mi-console.c: Likewise.
767 * mi/mi-getopt.c: Likewise.
768 * mi/mi-interp.c: Likewise.
769 * mi/mi-main.c: Likewise.
770 * mi/mi-parse.c: Likewise.
771 * microblaze-rom.c: Likewise.
772 * microblaze-tdep.c: Likewise.
773 * mingw-hdep.c: Likewise.
774 * minidebug.c: Likewise.
775 * minsyms.c: Likewise.
776 * mips-irix-tdep.c: Likewise.
777 * mips-linux-tdep.c: Likewise.
778 * mips-tdep.c: Likewise.
779 * mips64obsd-tdep.c: Likewise.
780 * mipsnbsd-tdep.c: Likewise.
781 * mipsread.c: Likewise.
782 * mn10300-linux-tdep.c: Likewise.
783 * mn10300-tdep.c: Likewise.
784 * monitor.c: Likewise.
785 * moxie-tdep.c: Likewise.
786 * mt-tdep.c: Likewise.
787 * nat/linux-btrace.c: Likewise.
788 * nat/linux-osdata.c: Likewise.
789 * nat/linux-procfs.c: Likewise.
790 * nat/linux-ptrace.c: Likewise.
791 * nat/linux-waitpid.c: Likewise.
792 * nbsd-tdep.c: Likewise.
793 * nios2-linux-tdep.c: Likewise.
794 * nto-procfs.c: Likewise.
795 * nto-tdep.c: Likewise.
796 * objc-lang.c: Likewise.
797 * objfiles.c: Likewise.
798 * opencl-lang.c: Likewise.
799 * osabi.c: Likewise.
800 * osdata.c: Likewise.
801 * p-exp.y: Likewise.
802 * p-lang.c: Likewise.
803 * p-typeprint.c: Likewise.
804 * parse.c: Likewise.
805 * posix-hdep.c: Likewise.
806 * ppc-linux-nat.c: Likewise.
807 * ppc-sysv-tdep.c: Likewise.
808 * ppcfbsd-tdep.c: Likewise.
809 * ppcnbsd-tdep.c: Likewise.
810 * ppcobsd-tdep.c: Likewise.
811 * printcmd.c: Likewise.
812 * procfs.c: Likewise.
813 * prologue-value.c: Likewise.
814 * python/py-auto-load.c: Likewise.
815 * python/py-gdb-readline.c: Likewise.
816 * ravenscar-thread.c: Likewise.
817 * regcache.c: Likewise.
818 * registry.c: Likewise.
819 * remote-fileio.c: Likewise.
820 * remote-m32r-sdi.c: Likewise.
821 * remote-mips.c: Likewise.
822 * remote-notif.c: Likewise.
823 * remote-sim.c: Likewise.
824 * remote.c: Likewise.
825 * reverse.c: Likewise.
826 * rs6000-aix-tdep.c: Likewise.
827 * ser-base.c: Likewise.
828 * ser-go32.c: Likewise.
829 * ser-mingw.c: Likewise.
830 * ser-pipe.c: Likewise.
831 * ser-tcp.c: Likewise.
832 * ser-unix.c: Likewise.
833 * serial.c: Likewise.
834 * sh-tdep.c: Likewise.
835 * sh64-tdep.c: Likewise.
836 * shnbsd-tdep.c: Likewise.
837 * skip.c: Likewise.
838 * sol-thread.c: Likewise.
839 * solib-dsbt.c: Likewise.
840 * solib-frv.c: Likewise.
841 * solib-osf.c: Likewise.
842 * solib-som.c: Likewise.
843 * solib-spu.c: Likewise.
844 * solib-target.c: Likewise.
845 * solib.c: Likewise.
846 * somread.c: Likewise.
847 * source.c: Likewise.
848 * sparc-nat.c: Likewise.
849 * sparc-sol2-tdep.c: Likewise.
850 * sparc-tdep.c: Likewise.
851 * sparc64-tdep.c: Likewise.
852 * sparc64fbsd-tdep.c: Likewise.
853 * sparc64nbsd-tdep.c: Likewise.
854 * sparcnbsd-tdep.c: Likewise.
855 * spu-linux-nat.c: Likewise.
856 * spu-multiarch.c: Likewise.
857 * spu-tdep.c: Likewise.
858 * stabsread.c: Likewise.
859 * stack.c: Likewise.
860 * std-regs.c: Likewise.
861 * symfile.c: Likewise.
862 * symmisc.c: Likewise.
863 * symtab.c: Likewise.
864 * target.c: Likewise.
865 * thread.c: Likewise.
866 * tilegx-linux-nat.c: Likewise.
867 * tilegx-tdep.c: Likewise.
868 * top.c: Likewise.
869 * tracepoint.c: Likewise.
870 * tui/tui-command.c: Likewise.
871 * tui/tui-data.c: Likewise.
872 * tui/tui-disasm.c: Likewise.
873 * tui/tui-file.c: Likewise.
874 * tui/tui-layout.c: Likewise.
875 * tui/tui-out.c: Likewise.
876 * tui/tui-regs.c: Likewise.
877 * tui/tui-source.c: Likewise.
878 * tui/tui-stack.c: Likewise.
879 * tui/tui-win.c: Likewise.
880 * tui/tui-windata.c: Likewise.
881 * tui/tui-winsource.c: Likewise.
882 * typeprint.c: Likewise.
883 * ui-file.c: Likewise.
884 * ui-out.c: Likewise.
885 * user-regs.c: Likewise.
886 * utils.c: Likewise.
887 * v850-tdep.c: Likewise.
888 * valarith.c: Likewise.
889 * valops.c: Likewise.
890 * valprint.c: Likewise.
891 * value.c: Likewise.
892 * varobj.c: Likewise.
893 * vax-tdep.c: Likewise.
894 * vaxnbsd-tdep.c: Likewise.
895 * vaxobsd-tdep.c: Likewise.
896 * windows-nat.c: Likewise.
897 * xcoffread.c: Likewise.
898 * xml-support.c: Likewise.
899 * xstormy16-tdep.c: Likewise.
900 * xtensa-linux-nat.c: Likewise.
901
dccbb609
GB
9022014-08-07 Gary Benson <gbenson@redhat.com>
903
904 * common/common-defs.h: Include gdb_assert.h.
905 * aarch64-tdep.c: Do not include gdb_assert.h.
906 * addrmap.c: Likewise.
907 * aix-thread.c: Likewise.
908 * alpha-linux-tdep.c: Likewise.
909 * alpha-mdebug-tdep.c: Likewise.
910 * alphanbsd-tdep.c: Likewise.
911 * amd64-nat.c: Likewise.
912 * amd64-tdep.c: Likewise.
913 * amd64bsd-nat.c: Likewise.
914 * amd64fbsd-nat.c: Likewise.
915 * amd64fbsd-tdep.c: Likewise.
916 * amd64nbsd-nat.c: Likewise.
917 * amd64nbsd-tdep.c: Likewise.
918 * amd64obsd-nat.c: Likewise.
919 * amd64obsd-tdep.c: Likewise.
920 * arch-utils.c: Likewise.
921 * arm-tdep.c: Likewise.
922 * armbsd-tdep.c: Likewise.
923 * auxv.c: Likewise.
924 * bcache.c: Likewise.
925 * bfin-tdep.c: Likewise.
926 * blockframe.c: Likewise.
927 * breakpoint.c: Likewise.
928 * bsd-kvm.c: Likewise.
929 * bsd-uthread.c: Likewise.
930 * buildsym.c: Likewise.
931 * c-exp.y: Likewise.
932 * c-lang.c: Likewise.
933 * charset.c: Likewise.
934 * cleanups.c: Likewise.
935 * cli-out.c: Likewise.
936 * cli/cli-decode.c: Likewise.
937 * cli/cli-dump.c: Likewise.
938 * cli/cli-logging.c: Likewise.
939 * cli/cli-script.c: Likewise.
940 * cli/cli-utils.c: Likewise.
941 * coffread.c: Likewise.
942 * common/common-utils.c: Likewise.
943 * common/queue.h: Likewise.
944 * common/signals.c: Likewise.
945 * common/vec.h: Likewise.
946 * complaints.c: Likewise.
947 * completer.c: Likewise.
948 * corelow.c: Likewise.
949 * cp-abi.c: Likewise.
950 * cp-name-parser.y: Likewise.
951 * cp-namespace.c: Likewise.
952 * cp-support.c: Likewise.
953 * cris-tdep.c: Likewise.
954 * dbxread.c: Likewise.
955 * dictionary.c: Likewise.
956 * doublest.c: Likewise.
957 * dsrec.c: Likewise.
958 * dummy-frame.c: Likewise.
959 * dwarf2-frame-tailcall.c: Likewise.
960 * dwarf2-frame.c: Likewise.
961 * dwarf2expr.c: Likewise.
962 * dwarf2loc.c: Likewise.
963 * dwarf2read.c: Likewise.
964 * eval.c: Likewise.
965 * event-loop.c: Likewise.
966 * exceptions.c: Likewise.
967 * expprint.c: Likewise.
968 * f-valprint.c: Likewise.
969 * fbsd-nat.c: Likewise.
970 * findvar.c: Likewise.
971 * frame-unwind.c: Likewise.
972 * frame.c: Likewise.
973 * frv-tdep.c: Likewise.
974 * gcore.c: Likewise.
975 * gdb-dlfcn.c: Likewise.
976 * gdb_bfd.c: Likewise.
977 * gdbarch.c: Likewise.
978 * gdbarch.sh: Likewise.
979 * gdbtypes.c: Likewise.
980 * gnu-nat.c: Likewise.
981 * gnu-v3-abi.c: Likewise.
982 * go-lang.c: Likewise.
983 * guile/scm-exception.c: Likewise.
984 * guile/scm-gsmob.c: Likewise.
985 * guile/scm-lazy-string.c: Likewise.
986 * guile/scm-math.c: Likewise.
987 * guile/scm-pretty-print.c: Likewise.
988 * guile/scm-safe-call.c: Likewise.
989 * guile/scm-utils.c: Likewise.
990 * guile/scm-value.c: Likewise.
991 * h8300-tdep.c: Likewise.
992 * hppa-hpux-nat.c: Likewise.
993 * hppa-tdep.c: Likewise.
994 * hppanbsd-tdep.c: Likewise.
995 * hppaobsd-tdep.c: Likewise.
996 * i386-darwin-nat.c: Likewise.
997 * i386-darwin-tdep.c: Likewise.
998 * i386-nto-tdep.c: Likewise.
999 * i386-tdep.c: Likewise.
1000 * i386bsd-nat.c: Likewise.
1001 * i386fbsd-tdep.c: Likewise.
1002 * i386gnu-nat.c: Likewise.
1003 * i386nbsd-tdep.c: Likewise.
1004 * i386obsd-tdep.c: Likewise.
1005 * i387-tdep.c: Likewise.
1006 * ia64-libunwind-tdep.c: Likewise.
1007 * ia64-tdep.c: Likewise.
1008 * inf-ptrace.c: Likewise.
1009 * inf-ttrace.c: Likewise.
1010 * infcall.c: Likewise.
1011 * infcmd.c: Likewise.
1012 * infrun.c: Likewise.
1013 * inline-frame.c: Likewise.
1014 * interps.c: Likewise.
1015 * jv-lang.c: Likewise.
1016 * jv-typeprint.c: Likewise.
1017 * linux-fork.c: Likewise.
1018 * linux-nat.c: Likewise.
1019 * linux-thread-db.c: Likewise.
1020 * m32c-tdep.c: Likewise.
1021 * m32r-linux-nat.c: Likewise.
1022 * m32r-tdep.c: Likewise.
1023 * m68k-tdep.c: Likewise.
1024 * m68kbsd-nat.c: Likewise.
1025 * m68kbsd-tdep.c: Likewise.
1026 * m88k-tdep.c: Likewise.
1027 * machoread.c: Likewise.
1028 * macroexp.c: Likewise.
1029 * macrotab.c: Likewise.
1030 * maint.c: Likewise.
1031 * mdebugread.c: Likewise.
1032 * memory-map.c: Likewise.
1033 * mep-tdep.c: Likewise.
1034 * mi/mi-common.c: Likewise.
1035 * microblaze-tdep.c: Likewise.
1036 * mingw-hdep.c: Likewise.
1037 * mips-linux-nat.c: Likewise.
1038 * mips-linux-tdep.c: Likewise.
1039 * mips-tdep.c: Likewise.
1040 * mips64obsd-tdep.c: Likewise.
1041 * mipsnbsd-tdep.c: Likewise.
1042 * mn10300-linux-tdep.c: Likewise.
1043 * mn10300-tdep.c: Likewise.
1044 * moxie-tdep.c: Likewise.
1045 * mt-tdep.c: Likewise.
1046 * nat/linux-btrace.c: Likewise.
1047 * nat/linux-osdata.c: Likewise.
1048 * nat/linux-ptrace.c: Likewise.
1049 * nat/mips-linux-watch.c: Likewise.
1050 * nios2-linux-tdep.c: Likewise.
1051 * nios2-tdep.c: Likewise.
1052 * objc-lang.c: Likewise.
1053 * objfiles.c: Likewise.
1054 * obsd-nat.c: Likewise.
1055 * opencl-lang.c: Likewise.
1056 * osabi.c: Likewise.
1057 * parse.c: Likewise.
1058 * ppc-linux-nat.c: Likewise.
1059 * ppc-sysv-tdep.c: Likewise.
1060 * ppcfbsd-nat.c: Likewise.
1061 * ppcfbsd-tdep.c: Likewise.
1062 * ppcnbsd-nat.c: Likewise.
1063 * ppcnbsd-tdep.c: Likewise.
1064 * ppcobsd-nat.c: Likewise.
1065 * ppcobsd-tdep.c: Likewise.
1066 * printcmd.c: Likewise.
1067 * procfs.c: Likewise.
1068 * prologue-value.c: Likewise.
1069 * psymtab.c: Likewise.
1070 * python/py-lazy-string.c: Likewise.
1071 * python/py-value.c: Likewise.
1072 * regcache.c: Likewise.
1073 * reggroups.c: Likewise.
1074 * registry.c: Likewise.
1075 * remote-sim.c: Likewise.
1076 * remote.c: Likewise.
1077 * rs6000-aix-tdep.c: Likewise.
1078 * rs6000-tdep.c: Likewise.
1079 * s390-linux-tdep.c: Likewise.
1080 * score-tdep.c: Likewise.
1081 * ser-base.c: Likewise.
1082 * ser-mingw.c: Likewise.
1083 * sh-tdep.c: Likewise.
1084 * sh64-tdep.c: Likewise.
1085 * solib-darwin.c: Likewise.
1086 * solib-spu.c: Likewise.
1087 * solib-svr4.c: Likewise.
1088 * source.c: Likewise.
1089 * sparc-nat.c: Likewise.
1090 * sparc-sol2-tdep.c: Likewise.
1091 * sparc-tdep.c: Likewise.
1092 * sparc64-sol2-tdep.c: Likewise.
1093 * sparc64-tdep.c: Likewise.
1094 * sparc64fbsd-tdep.c: Likewise.
1095 * sparc64nbsd-tdep.c: Likewise.
1096 * sparc64obsd-tdep.c: Likewise.
1097 * sparcnbsd-tdep.c: Likewise.
1098 * sparcobsd-tdep.c: Likewise.
1099 * spu-multiarch.c: Likewise.
1100 * spu-tdep.c: Likewise.
1101 * stabsread.c: Likewise.
1102 * stack.c: Likewise.
1103 * symfile.c: Likewise.
1104 * symtab.c: Likewise.
1105 * target-descriptions.c: Likewise.
1106 * target-memory.c: Likewise.
1107 * target.c: Likewise.
1108 * tic6x-linux-tdep.c: Likewise.
1109 * tic6x-tdep.c: Likewise.
1110 * tilegx-linux-nat.c: Likewise.
1111 * tilegx-tdep.c: Likewise.
1112 * top.c: Likewise.
1113 * tramp-frame.c: Likewise.
1114 * tui/tui-out.c: Likewise.
1115 * tui/tui-winsource.c: Likewise.
1116 * ui-out.c: Likewise.
1117 * user-regs.c: Likewise.
1118 * utils.c: Likewise.
1119 * v850-tdep.c: Likewise.
1120 * valops.c: Likewise.
1121 * value.c: Likewise.
1122 * varobj.c: Likewise.
1123 * vax-nat.c: Likewise.
1124 * xml-syscall.c: Likewise.
1125 * xml-tdesc.c: Likewise.
1126 * xstormy16-tdep.c: Likewise.
1127 * xtensa-linux-nat.c: Likewise.
1128 * xtensa-tdep.c: Likewise.
1129
e76df0d0
GB
11302014-08-07 Gary Benson <gbenson@redhat.com>
1131
1132 * common/common-defs.h: Include common-utils.h.
1133 * defs.h: Do not include common-utils.h.
1134 * common/gdb_assert.h: Likewise.
1135 * darwin-nat.h: Likewise.
1136 * nat/linux-btrace.c: Likewise.
1137 * target/waitstatus.h: Likewise.
1138
4cb9c816
GB
11392014-08-07 Gary Benson <gbenson@redhat.com>
1140
1141 * common/common-defs.h: Include ptid.h.
1142 * defs.h: Do not include ptid.h.
1143 * inferior.h: Likewise.
1144 * infrun.h: Likewise.
1145 * nat/linux-btrace.h: Likewise.
1146 * nat/linux-osdata.h: Likewise.
1147 * target/waitstatus.h: Likewise.
1148
3995eeee
GB
11492014-08-07 Gary Benson <gbenson@redhat.com>
1150
1151 * common/common-defs.h: Include gdb_locale.h.
1152 * defs.h: Do not include gdb_locale.h.
1153
cb9f1a9b
GB
11542014-08-07 Gary Benson <gbenson@redhat.com>
1155
1156 * common/common-defs.h: Include gdb/signals.h.
1157 * defs.h: Do not include gdb/signals.h.
1158
a5fceff8
GB
11592014-08-07 Gary Benson <gbenson@redhat.com>
1160
1161 * common/common-defs.h: Include pathmax.h.
1162 * defs.h: Do not include pathmax.h.
1163
b9391142
GB
11642014-08-07 Gary Benson <gbenson@redhat.com>
1165
1166 * common/common-defs.h: Include libiberty.h.
1167 * defs.h: Do not include libiberty.h.
1168 * common/queue.h: Likewise.
1169 * cp-name-parser.y: Likewise.
1170 * mi/mi-cmd-catch.c: Likewise.
1171 * python/python.c: Likewise.
1172
0e443c87
GB
11732014-08-07 Gary Benson <gbenson@redhat.com>
1174
1175 * common/common-defs.h: Include ansidecl.h.
1176 * defs.h: Do not include ansidecl.h.
1177 * common/buffer.h: Likewise.
1178 * common/common-utils.h: Likewise.
1179
8ebb3f56
GB
11802014-08-07 Gary Benson <gbenson@redhat.com>
1181
1182 * common/common-defs.h: Include stddef.h.
1183 * defs.h: Do not include stddef.h.
1184 * common/common-utils.h: Likewise.
1185 * amd64fbsd-nat.c: Likewise.
1186 * bcache.c: Likewise.
1187 * charset.c: Likewise.
1188 * common/buffer.h: Likewise.
1189 * common/vec.h: Likewise.
1190 * i386bsd-nat.c: Likewise.
1191 * nat/linux-btrace.h: Likewise.
1192 * ppcfbsd-nat.c: Likewise.
1193 * ppcnbsd-tdep.h: Likewise.
1194 * ppcobsd-nat.c: Likewise.
1195 * ppcobsd-tdep.h: Likewise.
1196 * python/py-gdb-readline.c: Likewise.
1197
8980bdf6
GB
11982014-08-07 Gary Benson <gbenson@redhat.com>
1199
1200 * common/common-defs.h: Include stdarg.h.
1201 * defs.h: Do not include stdarg.h.
1202 * ada-lang.c: Likewise.
1203 * common/common-utils.h: Likewise.
1204 * guile/scm-string.c: Likewise.
1205 * guile/scm-utils.c: Likewise.
1206 * m32c-tdep.c: Likewise.
1207
d7096f71
GB
12082014-08-07 Gary Benson <gbenson@redhat.com>
1209
1210 * common/common-defs.h: Include stdlib.h.
1211 * defs.h: Do not include stdlib.h.
1212 * addrmap.c: Likewise.
1213 * bcache.c: Likewise.
1214 * common/buffer.c: Likewise.
1215 * common/common-utils.c: Likewise.
1216 * cp-name-parser.y: Likewise.
1217 * go32-nat.c: Likewise.
1218 * mn10300-linux-tdep.c: Likewise.
1219 * nat/linux-osdata.c: Likewise.
1220 * tui/tui.c: Likewise.
1221 * windows-nat.c: Likewise.
1222
d02f550d
GB
12232014-08-07 Gary Benson <gbenson@redhat.com>
1224
1225 * common/common-defs.h: Include stdio.h.
1226 * defs.h: Do not include stdio.h.
1227 * ada-lang.c: Likewise.
1228 * common/buffer.c: Likewise.
1229 * common/common-utils.c: Likewise.
1230 * cp-name-parser.y: Likewise.
1231 * gnu-nat.c: Likewise.
1232 * go32-nat.c: Likewise.
1233 * i386gnu-nat.c: Likewise.
1234 * proc-api.c: Likewise.
1235 * proc-events.c: Likewise.
1236 * proc-flags.c: Likewise.
1237 * proc-why.c: Likewise.
1238 * python/python-internal.h: Likewise.
1239 * target-memory.c: Likewise.
1240 * tui/tui-io.c: Likewise.
1241 * tui/tui.c: Likewise.
1242
b6d7a4bf
SM
12432014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1244
1245 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1246 (scan_dyntag_auxv): Same.
1247
af19829b
YQ
12482014-08-06 Yao Qi <yao@codesourcery.com>
1249
1250 * amd64-linux-nat.c: Remove duplicated include
1251 "x86-linux-nat.h".
1252 * i386-linux-nat.c: Likewise.
1253
8e07a239
YQ
12542014-08-06 Yao Qi <yao@codesourcery.com>
1255
1256 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1257 operand" with "Special opcode" in comments.
1258
7bfe8241
GB
12592014-08-05 Gary Benson <gbenson@redhat.com>
1260
1261 * interps.c (initialize_interps): Remove prototype.
1262 (interpreter_initialized): Remove static global.
1263 (interp_add): Do not call initialize_interps.
1264 (initialize_interps): Remove function.
1265
d6c95504
GB
12662014-08-05 Gary Benson <gbenson@redhat.com>
1267
1268 * utils.c (vwarning): Remove spurious va_end.
1269
241fd515
AM
12702014-08-05 Alan Modra <amodra@gmail.com>
1271
1272 * charset.c (convert_between_encodings): Cast result of obstack_base.
1273 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1274 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1275 (read_unwind_info): Use size_t for some locals.
1276 * jit.c (finalize_symtab): Likewise.
1277 * utils.c (hashtab_obstack_allocate): Likewise.
1278 * symmisc.c (print_objfile_statistics): Update format strings.
1279
dc304a94
JK
12802014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1283 (Changes in GDB 7.8): ... here.
1284
3cecbbbe
TT
12852014-08-04 Tom Tromey <tromey@redhat.com>
1286
1287 * target.c (set_targetdebug): New function.
1288 (initialize_targets): Pass set_targetdebug when creating "set
1289 debug target".
1290
6908c509
JB
12912014-08-01 Joel Brobecker <brobecker@adacore.com>
1292
1293 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1294 if detecting a variable-sized field that is not the last field.
1295 Fix struct type length computation.
1296
53e8f97d
JB
12972014-08-01 Joel Brobecker <brobecker@adacore.com>
1298
1299 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1300 Add debug trace.
1301
e068c55d
JB
13022014-08-01 Joel Brobecker <brobecker@adacore.com>
1303
1304 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1305 Remove "+ 8" offset in computation of CHAIN_VMA.
1306
4d4ca2a1
DE
13072014-07-31 Doug Evans <dje@google.com>
1308
1309 * inflow.c (child_terminal_inferior): Add comment.
1310 (child_terminal_ours_for_output): Add comment.
1311 (child_terminal_ours): Add comment.
1312 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1313 (linux_nat_terminal_ours): Add comment.
1314
462f517e
GB
13152014-07-31 Gary Benson <gbenson@redhat.com>
1316
1317 * common/btrace-common.h: Do not include defs.h or server.h.
1318 * nat/mips-linux-watch.h: Likewise.
1319 * gdb-dlfcn.h: Do not include defs.h.
1320 * tracefile.h: Likewise.
1321
74228e77
RM
13222014-07-30 Roland McGrath <mcgrathr@google.com>
1323
1324 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1325
014f9477
TT
13262014-07-30 Tom Tromey <tromey@redhat.com>
1327
1328 * bsd-kvm.c (bsd_kvm_open): Constify.
1329 * corelow.c (core_open): Constify.
1330 * ctf.c (ctf_open): Constify.
1331 * dbug-rom.c (dbug_open): Constify.
1332 * exec.c (exec_open): Constify.
1333 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1334 * microblaze-rom.c (picobug_open): Constify.
1335 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1336 Constify.
1337 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1338 * record-btrace.c (record_btrace_open): Constify.
1339 * record-full.c (record_full_core_open_1, record_full_open_1)
1340 (record_full_open): Constify.
1341 * remote-m32r-sdi.c (m32r_open): Constify.
1342 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1343 (rockhopper_open, lsi_open): Constify.
1344 * remote-sim.c (gdbsim_open): Constify.
1345 * remote.c (remote_open, extended_remote_open, remote_open_1):
1346 Constify.
1347 * target.h (struct target_ops) <to_open>: Make "arg" const.
1348 * tracefile-tfile.c (tfile_open): Constify.
1349
e799154c
TT
13502014-07-30 Tom Tromey <tromey@redhat.com>
1351
1352 * breakpoint.c (map_breakpoint_numbers): Update.
1353 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1354 (get_number_const): New function.
1355 (get_number): Rewrite using get_number_const.
1356 (init_number_or_range): Make "string" const.
1357 (number_is_in_list): Make "list" const.
1358 * cli/cli-utils.h (get_number_const): Declare.
1359 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1360 (init_number_or_range, number_is_in_list): Update.
1361 * printcmd.c (map_display_numbers): Update.
1362 * value.c (value_from_history_ref): Constify.
1363 * value.h (value_from_history_ref): Update.
1364
5f08566b
TT
13652014-07-30 Tom Tromey <tromey@redhat.com>
1366
1367 * corefile.c (hook_type, call_extra_exec_file_hooks)
1368 (specify_exec_file_hook): Constify.
1369 * exec.c (exec_file_attach): Make "filename" const.
1370 * gdbcore.h (deprecated_exec_file_display_hook)
1371 (specify_exec_file_hook, exec_file_attach): Constify.
1372 * main.c (captured_main): Use catch_command_errors_const.
1373
8981c758
TT
13742014-07-30 Tom Tromey <tromey@redhat.com>
1375
1376 * target.c (open_target): New function.
1377 (add_target_with_completer, add_deprecated_target_alias): Use
1378 set_cmd_sfunc, set_cmd_context.
1379 (debug_to_open): Remove.
1380 (setup_target_debug): Update.
1381
a1c7835a
YQ
13822014-07-30 Yao Qi <yao@codesourcery.com>
1383
1384 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1385 comments.
1386 * parse.c (exp_iterate): Update comments.
1387
976411d6
GB
13882014-07-30 Gary Benson <gbenson@redhat.com>
1389
1390 * common/common-defs.h: New file.
1391 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1392 * defs.h: Include common-defs.h.
1393 Do not include config.h or build-gnulib/config.h.
1394
5d4848a4
GB
13952014-07-30 Gary Benson <gbenson@redhat.com>
1396
1397 * common/common-utils.h: Do not include config.h.
1398 * nat/linux-btrace.h: Likewise.
1399
d41f6d8e
GB
14002014-07-30 Gary Benson <gbenson@redhat.com>
1401
1402 * btrace.c: Include defs.h.
1403 * common/ptid.c: Include defs.h or server.h as appropriate.
1404 * nat/mips-linux-watch.c: Likewise.
1405
84202f9c
TT
14062014-07-29 Tom Tromey <tromey@redhat.com>
1407
1408 * target.c (target_is_pushed): Simplify.
1409
2530441c
JB
14102014-07-29 Joel Brobecker <brobecker@adacore.com>
1411
1412 GDB 7.8 released.
1413
7e09a223
YQ
14142014-07-29 Yao Qi <yao@codesourcery.com>
1415
1416 PR gdb/17206
1417 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1418
7ebdbe92
DE
14192014-07-28 Doug Evans <xdje42@gmail.com>
1420
1421 PR guile/17203
1422 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1423 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1424 parameters.
1425
f347ffc9
WN
14262014-07-28 Will Newton <will.newton@linaro.org>
1427
1428 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1429 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1430 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1431 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1432 (THUMB2_EABI_SYSCALL): Likewise.
1433 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1434 struct tramp_frame.
1435 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1436 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1437
37c5f1f7
DE
14382014-07-27 Doug Evans <xdje42@gmail.com>
1439
1440 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1441
0c3abbc7
DE
14422014-07-27 Doug Evans <xdje42@gmail.com>
1443
1444 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1445
e76c5d17
DE
14462014-07-26 Ludovic Courtès <ludo@gnu.org>
1447 Doug Evans <xdje42@gmail.com>
1448
1449 PR guile/17146
1450 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1451 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1452 * configure.ac: Try to use guild to compile an scm file, if it fails
1453 then disable guile support.
1454 * configure: Regenerate.
1455 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1456 GUILE_FILE_LIST.
1457 (GUILE_COMPILED_FILES): New variable.
1458 (GUILE_FILES) Update.
1459 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1460 (stamp-guile): Compile scm files.
1461 * guile/guile.c (boot_guile_support): New function.
1462 (standard_throw_args_p): New function.
1463 (print_standard_throw_error, print_throw_error): New functions.
1464 (handle_boot_error): New function.
1465 (initialize_scheme_side): Rewrite to call boot_guile_support.
1466 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1467 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1468
186fcde0
DE
14692014-07-26 Ludovic Courtès <ludo@gnu.org>
1470 Doug Evans <xdje42@gmail.com>
1471
1472 PR guile/17146
1473 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1474 * guile/lib/gdb/support.scm: New file.
1475 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1476 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1477 All uses updated.
1478 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1479 All uses updated.
1480 (%assert-type): Ditto, and renamed to assert-type.
1481 (%exception-print-style): Delete.
1482
4df42755
DE
14832014-07-26 Doug Evans <xdje42@gmail.com>
1484
1485 PR build/17105
1486 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1487 * configure: Regenerate.
1488 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1489 PYTHON_FILES.
1490 (PYTHON_FILES): New variable.
1491 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1492 (GUILE_FILES): New variable.
1493 (stamp-python, install-python, uninstall-python): Handle empty
1494 file list.
1495 (stamp-guile, install-guile, uninstall-guile): Ditto.
1496
ee7333ae
DE
14972014-07-26 Doug Evans <xdje42@gmail.com>
1498
1499 PR guile/17177
1500 * guile/lib/gdb.scm (pretty-printers): Export.
1501 (set-pretty-printers!): Export.
1502 * guile/lib/gdb/printing.scm (gdb module): Update.
1503 (prepend-pretty-printer!, append-pretty-printer!): Update.
1504 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1505 (pretty_printer_list_var): Delete.
1506 (pretty_printer_list): New static global.
1507 (gdbscm_pretty_printers): New function.
1508 (gdbscm_set_pretty_printers_x): New function.
1509 (ppscm_find_pretty_printer_from_gdb): Update.
1510 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1511 (gdbscm_initialize_pretty_printers): Update.
1512
74edf516
DE
15132014-07-26 Doug Evans <xdje42@gmail.com>
1514
1515 PR 17185
1516 * configure.ac: Add check for header gc/gc.h.
1517 Add check for function setenv.
1518 * configure: Regenerate.
1519 * config.in: Regenerate.
1520 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1521
d54398a7
MR
15222014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1523
1524 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1525 variation in gdbarch matching.
1526
ab16fce8
TT
15272014-07-25 Tom Tromey <tromey@redhat.com>
1528
1529 * exec.c (using_exec_ops): Remove.
1530 (exec_close_1): Update. Remove extraneous block, reindent.
1531 (add_target_sections): Use target_is_pushed.
1532
88056fbb
PA
15332014-07-25 Pedro Alves <palves@redhat.com>
1534
1535 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1536 * monitor.c (monitor_create_inferior): Likewise.
1537 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1538 * remote-sim.c (gdbsim_create_inferior): Likewise.
1539 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1540 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1541 * windows-nat.c (do_initial_windows_stuff): Likewise.
1542
70509625
PA
15432014-07-25 Pedro Alves <palves@redhat.com>
1544
1545 * NEWS: Mention signal passing and "signal" command changes.
1546 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1547 comment.
1548 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1549 call.
1550 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1551 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1552 (jump_command): Adjust clear_proceed_status call.
1553 (signal_command): Warn if other thread that are resumed have
1554 signals that will be delivered. Adjust clear_proceed_status call.
1555 (until_next_command, finish_command)
1556 (proceed_after_attach_callback, attach_command_post_wait)
1557 (attach_command): Adjust clear_proceed_status call.
1558 * infrun.c (proceed_after_vfork_done): Likewise.
1559 (proceed_after_attach_callback): Adjust comment.
1560 (clear_proceed_status_thread): Clear stop_signal if not in pass
1561 state.
1562 (clear_proceed_status_callback): Delete.
1563 (clear_proceed_status): New 'step' parameter. Only clear the
1564 proceed status of threads the command being prepared is about to
1565 resume.
1566 (proceed): If passed in an explicit signal, override stop_signal
1567 with it. Don't pass the last stop signal to the thread we're
1568 resuming.
1569 (init_wait_for_inferior): Adjust clear_proceed_status call.
1570 (switch_back_to_stepped_thread): Clear the signal if it should not
1571 be passed.
1572 * infrun.h (clear_proceed_status): New 'step' parameter.
1573 (user_visible_resume_ptid): Add comment.
1574 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1575 signal is in pass state.
1576 * remote.c (append_pending_thread_resumptions): Likewise.
1577 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1578
d8be2939
TT
15792014-07-25 Tom Tromey <tromey@redhat.com>
1580
1581 * target.h (target_stopped_data_address)
1582 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1583 parentheses.
1584
7d0d9d2b
PL
15852014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1586
1587 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1588 comments.
1589 (avr_pointer_to_address): Likewise.
1590
e9e7f724
TT
15912014-07-24 Tom Tromey <tromey@redhat.com>
1592
1593 * monitor.c (compile_pattern): Update.
1594 * target.h (struct target_ops) <to_shortname, to_longname,
1595 to_doc>: Now const.
1596
1947513d
TT
15972014-07-24 Tom Tromey <tromey@redhat.com>
1598
1599 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1600 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1601 (add_info_alias, add_com): Make "doc" const.
1602 (print_doc_line): Make "str" const.
1603 (delete_cmd): Update.
1604 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1605 (print_doc_line): Update.
1606 * cli/cli-script.c (document_command): Update.
1607 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1608 (add_com, add_info, add_info_alias): Update.
1609 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1610 * python/py-cmd.c (cmdpy_destroyer): Update.
1611
64e61d29
TT
16122014-07-24 Tom Tromey <tromey@redhat.com>
1613
1614 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1615 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1616 (help_cmd_list): Constify.
1617 (lookup_cmd): Update.
1618 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1619 const.
1620 (help_cmd_list, apropos_cmd): Update.
1621 * cli/cli-script.c (show_user): Update.
1622 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1623 * cli/cli-setshow.h (cmd_show_list): Update.
1624 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1625 (cmd_show_list): Update.
1626 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1627 * python/py-cmd.c (cmdpy_destroyer): Update.
1628
429e55ea
TT
16292014-07-24 Tom Tromey <tromey@redhat.com>
1630
1631 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1632 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1633 const.
1634 * command.h (deprecate_cmd): Update.
1635 * maint.c (maintenance_do_deprecate): Add casts.
1636
64669f3b
TT
16372014-07-24 Tom Tromey <tromey@redhat.com>
1638
1639 * cli/cli-decode.c (help_cmd): Make parameter "const".
1640 * cli/cli-decode.h (help_cmd): Update.
1641
d3d3328b
TT
16422014-07-24 Tom Tromey <tromey@redhat.com>
1643
1644 * stack.c (up_silently_base, down_silently_base): Make argument
1645 const.
1646
414842dc
TT
16472014-07-24 Tom Tromey <tromey@redhat.com>
1648
1649 * solib.c (solib_add): Make "pattern" const.
1650 * solib.h (solib_add): Update.
1651
baa336ce
TT
16522014-07-24 Tom Tromey <tromey@redhat.com>
1653
1654 * remote.c (remote_serial_open, print_packet, putpkt)
1655 (putpkt_binary): Constify.
1656 * remote.h (putpkt): Update.
1657
5a19e2d0
TT
16582014-07-24 Tom Tromey <tromey@redhat.com>
1659
1660 * monitor.c (monitor_open): Make "args" const.
1661 * monitor.h (monitor_open): Update.
1662
fc4baa5e
TT
16632014-07-24 Tom Tromey <tromey@redhat.com>
1664
1665 * maint.c (match_bfd_flags): Make "string" const.
1666 (print_bfd_section_info): Remove casts.
1667 (print_objfile_section_info): Make "string" const.
1668
0d5f0dbe
TT
16692014-07-24 Tom Tromey <tromey@redhat.com>
1670
1671 * inf-child.c (inf_child_open_target): Make "arg" const.
1672 * inf-child.h (inf_child_open_target): Update.
1673
41c77899
TT
16742014-07-24 Tom Tromey <tromey@redhat.com>
1675
1676 * environ.c (unset_in_environ): Make "var" const.
1677 * environ.h (unset_in_environ): Update.
1678
93db0d79
TT
16792014-07-24 Tom Tromey <tromey@redhat.com>
1680
1681 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1682 Make "cmd" const.
1683 (scan_filename_with_cleanup): Likewise.
1684 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1685 Make arguments const.
1686 (restore_command): Update.
1687
36d6eb95
PA
16882014-07-24 Pedro Alves <palves@redhat.com>
1689
1690 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1691
8009206a
TT
16922014-07-24 Tom Tromey <tromey@redhat.com>
1693 Gary Benson <gbenson@redhat.com>
1694
1695 * nat/linux-ptrace.c (additional_flags): New global.
1696 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1697 additional_flags; don't check GDBSERVER.
1698 (linux_ptrace_set_additional_flags): New function.
1699 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1700 Declare.
1701 * linux-nat.c (_initialize_linux_nat): Call
1702 linux_ptrace_set_additional_flags.
1703
a7068b60
TT
17042014-07-24 Tom Tromey <tromey@redhat.com>
1705
1706 * make-target-delegates (munge_type, write_debugmethod): New
1707 functions.
1708 (debug_names): New global.
1709 ($TARGET_DEBUG_PRINTER): New global.
1710 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1711 name.
1712 Write debug methods. Generate init_debug_target.
1713 * target-debug.h: New file.
1714 * target-delegates.c: Rebuild.
1715 * target.c: Include target-debug.h.
1716 (debug_target): Hoist definition.
1717 (target_kill, target_get_section_table, target_memory_map)
1718 (target_flash_erase, target_flash_done, target_detach)
1719 (target_disconnect, target_wait, target_resume)
1720 (target_pass_signals, target_program_signals, target_follow_fork)
1721 (target_mourn_inferior, target_search_memory)
1722 (target_thread_address_space, target_close)
1723 (target_find_new_threads, target_core_of_thread)
1724 (target_verify_memory, target_insert_mask_watchpoint)
1725 (target_remove_mask_watchpoint): Remove targetdebug code.
1726 (debug_to_post_attach, debug_to_prepare_to_store)
1727 (debug_to_files_info, debug_to_insert_breakpoint)
1728 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1729 (debug_to_region_ok_for_hw_watchpoint)
1730 (debug_to_can_accel_watchpoint_condition)
1731 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1732 (debug_to_watchpoint_addr_within_range)
1733 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1734 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1735 (debug_to_terminal_init, debug_to_terminal_inferior)
1736 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1737 (debug_to_terminal_save_ours, debug_to_terminal_info)
1738 (debug_to_load, debug_to_post_startup_inferior)
1739 (debug_to_insert_fork_catchpoint)
1740 (debug_to_remove_fork_catchpoint)
1741 (debug_to_insert_vfork_catchpoint)
1742 (debug_to_remove_vfork_catchpoint)
1743 (debug_to_insert_exec_catchpoint)
1744 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1745 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1746 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1747 (setup_target_debug): Call init_debug_target.
1748 * target.h (TARGET_DEBUG_PRINTER): New macro.
1749 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1750 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1751
2c51604d
GB
17522014-07-24 Gary Benson <gbenson@redhat.com>
1753
1754 * exceptions.h (throw_vfatal): Renamed to...
1755 (throw_vquit): New declaration.
1756 (throw_quit): Likewise.
1757 * exceptions.c (throw_vfatal): Renamed to...
1758 (throw_vquit): New function.
1759 (throw_quit): Likewise.
1760 (throw_error): Call throw_verror rather than throw_it.
1761 * utils.h (vfatal): Removed.
1762 (fatal): Likewise.
1763 * utils.c (vfatal): Removed.
1764 (fatal): Likewise.
1765 (internal_verror): Replaced call to fatal with call to throw_quit.
1766 (quit): Replaced calls to fatal with calls to throw_quit.
1767
34211963
ME
17682014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1769
1770 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1771 target_read_code.
1772
a52b4d3e
ME
17732014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1774
1775 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1776 less than zero in conditional expression.
1777
a8bdc56b
TT
17782014-07-23 Tom Tromey <tromey@redhat.com>
1779
1780 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1781 ($INTRO_PART): Don't match whitespace.
1782 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1783 argument matching.
1784 ($METHOD): Add $METHOD_TRAILER.
1785 (trim): Rewrite.
1786 (scan_target_h): New sub.
1787 Change main loop not to collect state.
1788 * target-delegates.c: Rebuild.
1789
91b52240
GB
17902014-07-23 Gary Benson <gbenson@redhat.com>
1791
1792 * cp-support.c (gdb_demangle): Fix build on systems without
1793 sigaltstack.
1794
45326f6f
JK
17952014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1796
1797 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1798 for reference entry value target data value.
1799
e214cf6c
JK
18002014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1801
1802 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1803 value_available_contents_eq.
1804
bddbbedd
PA
18052014-07-22 Pedro Alves <palves@redhat.com>
1806
1807 * value.c (allocate_optimized_out_value): Don't mark value as
1808 non-lazy.
1809
45c71484
JW
18102014-07-22 Jiong Wang <jiong.wang@arm.com>
1811
1812 * MAINTAINERS (Write After Approval): Update my email address.
1813
9597b22a
DE
18142014-07-20 Doug Evans <dje@google.com>
1815
1816 PR server/17147
1817 * remote.c (putpkt_binary): Add text to error message.
1818
91101fe5
YQ
18192014-07-20 Yao Qi <yao@codesourcery.com>
1820
1821 * eval.c: Remove "Chill" from comments.
1822 * gdbtypes.h: Likewise.
1823 * symtab.h: Likewise.
1824
c9402c95
YQ
18252014-07-20 Yao Qi <yao@codesourcery.com>
1826
1827 * std-operator.def: Update comments to TERNOP_SLICE.
1828
ae8fddda
YQ
18292014-07-20 Yao Qi <yao@codesourcery.com>
1830
1831 * std-operator.def: Remove BINOP_RANGE.
1832 * breakpoint.c (watchpoint_exp_is_const): Update.
1833 * expprint.c (dump_subexp_body_standard): Likewise.
1834 * eval.c (init_array_element): Remove dead code.
1835 (evaluate_subexp_standard): Likewise.
1836
9c816640
YQ
18372014-07-20 Yao Qi <yao@codesourcery.com>
1838
1839 * std-operator.def: Remove BINOP_IN.
1840 * breakpoint.c (watchpoint_exp_is_const): Update.
1841 * eval.c (evaluate_subexp_standard): Likewise.
1842 * expprint.c (dump_subexp_body_standard): Likewise.
1843
164224e9
ME
18442014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1845
1846 * microblaze-tdep.c (microblaze_register_names): Add
1847 the rshr and rslr register names.
1848 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1849 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1850 Use of tdesc_numbered_register. Use of
1851 microblaze_register_g_packet_guesses. Use of
1852 tdesc_use_registers. Use of set_gdbarch_register_type.
1853 (microblaze_register_g_packet_guesses): New.
1854 * microblaze-tdep.h (microblaze_reg_num): Add
1855 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1856 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1857 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1858 * features/microblaze-core.xml: New file.
1859 * features/microblaze-stack-protect.xml: New file.
1860 * features/microblaze-with-stack-protect.c: New file.
1861 * features/microblaze-with-stack-protect.xml: New file.
1862 * features/microblaze.xml: New file.
1863 * features/microblaze.c: New file.
1864 * features/Makefile (microblaze-with-stack-protect): Add
1865 microblaze-with-stack-protect microblaze and microblaze-expedite.
1866 * regformats/microblaze-with-stack-protect.dat: New file.
1867 * regformats/microblaze.dat: New file.
1868 * doc/gdb.texinfo (MicroBlaze Features): Added.
1869
e8b2341c
TT
18702014-07-18 Tom Tromey <tromey@redhat.com>
1871
1872 * exec.c (exec_ops): Now static.
1873 * exec.h (exec_ops): Don't declare.
1874
44e89118
TT
18752014-07-18 Tom Tromey <tromey@redhat.com>
1876
1877 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1878 to find_target_beneath.
1879 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1880 find_target_beneath.
1881 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1882
b0ed115f
TT
18832014-07-18 Tom Tromey <tromey@redhat.com>
1884
1885 PR gdb/17130:
1886 * utils.c (quit): Use target_supports_terminal_ours.
1887 * target.h (target_supports_terminal_ours): Declare.
1888 * target.c (target_supports_delete_record): Don't check
1889 to_delete_record against NULL.
1890 (target_supports_terminal_ours): New function.
1891
e75fdfca
TT
18922014-07-18 Tom Tromey <tromey@redhat.com>
1893
1894 PR gdb/17130:
1895 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1896 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1897 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1898 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1899 * windows-nat.c (windows_xfer_partial): Always delegate.
1900 * record-btrace.c (record_btrace_xfer_partial): Simplify
1901 delegation.
1902 (record_btrace_fetch_registers, record_btrace_store_registers)
1903 (record_btrace_prepare_to_store, record_btrace_resume)
1904 (record_btrace_wait, record_btrace_find_new_threads)
1905 (record_btrace_thread_alive): Likewise.
1906 * procfs.c (procfs_xfer_partial): Always delegate.
1907 * corelow.c (core_xfer_partial): Always delegate.
1908 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1909
83814951
TT
19102014-07-18 Tom Tromey <tromey@redhat.com>
1911
1912 * exec.c (exec_make_note_section): Move earlier.
1913
b8b8facf
DE
19142014-07-17 Doug Evans <dje@google.com>
1915
74b49205 1916 PR gdb/17170
b8b8facf
DE
1917 * maint.c (count_symtabs_and_blocks): Handle NULL
1918 current_program_space.
1919 (report_command_stats): Check global enabled flag in addition to
1920 recorded enabled flag.
1921 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1922
69ff6be5
PA
19232014-07-16 Pedro Alves <palves@redhat.com>
1924
1925 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1926
252db1b5
TT
19272014-07-16 Tom Tromey <tromey@redhat.com>
1928
1929 * target.h (struct target_ops) <to_delete_record>: Reformat
1930 comment.
1931
a432721e
TT
19322014-07-16 Tom Tromey <tromey@redhat.com>
1933
1934 * target-delegates.c: Rebuild.
1935
487d9753
PL
19362014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1937
1938 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1939 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1940 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1941 (avr_pointer_to_address): Likewise.
1942 (avr_address_class_type_flags): New function.
1943 (avr_address_class_type_flags_to_name): Likewise.
1944 (avr_address_class_name_to_type_flags): Likewise.
1945 (avr_gdbarch_init): Set address_class_type_flags,
1946 address_class_type_flags_to_name and
1947 address_class_name_to_type_flags.
1948
57745c90
PA
19492014-07-15 Pedro Alves <palves@redhat.com>
1950
1951 * linux-nat.c (kill_callback): Save errno and work with saved
1952 copy.
1953
2d40be18
SM
19542014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1955
1956 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1957
572f6555
EBM
19582014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1959
1960 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1961 breakpoint support correctly.
1962
cc1c52ad
PA
19632014-07-14 Pedro Alves <palves@redhat.com>
1964
1965 * utils.c (prompt_for_continue): Call target_terminal_ours.
1966
1e973570
PA
19672014-07-14 Pedro Alves <palves@redhat.com>
1968
1969 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1970 catch_errors. Don't re-enable stdin or notify observers where,
1971 and rethrow error.
1972 (fetch_inferior_event_wrapper): Delete.
1973
93d6eb10
PA
19742014-07-14 Pedro Alves <palves@redhat.com>
1975
1976 PR gdb/17072
1977 * top.c: Include "inf-loop.h".
1978 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1979 field.
1980 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1981 was async before.
1982 (gdb_readline_wrapper): Store whether the target is async, and
1983 make it sync.
1984
0017922d
PA
19852014-07-14 Pedro Alves <palves@redhat.com>
1986
1987 PR gdb/17072
1988 * top.c (gdb_readline_wrapper_line): Tweak comment.
1989 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1990 the input handler callback.
1991
94696ad3
PA
19922014-07-14 Pedro Alves <palves@redhat.com>
1993
1994 PR gdb/17072
1995 * main.c: Include event-top.h.
1996 (handle_command_errors): New function.
1997 (catch_command_errors, catch_command_errors_const): Use it.
1998
9d1e69a2
PA
19992014-07-14 Pedro Alves <palves@redhat.com>
2000
2001 * exceptions.c (catch_command_errors, catch_command_errors_const):
2002 Moved to main.c.
2003 * exceptions.h (catch_command_errors_ftype)
2004 (catch_command_errors_const_ftype): Moved to main.c.
2005 (catch_command_errors, catch_command_errors_const): Delete
2006 declarations.
2007 * main.c (catch_command_errors_ftype)
2008 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2009 (catch_command_errors, catch_command_errors_const)): Moved here
2010 from exceptions.c and make static.
2011
feefc97b
PA
20122014-07-14 Pedro Alves <palves@redhat.com>
2013
2014 * exceptions.c (print_any_exception): Delete.
2015 (catch_exceptions_with_msg): Use exception_print instead of
2016 print_any_exception.
2017 (catch_errors): Use exception_fprintf instead of
2018 print_any_exception.
2019 (catch_command_errors, catch_command_errors_const): Use
2020 exception_print instead of print_any_exception.
2021
c933f875
PA
20222014-07-14 Pedro Alves <palves@redhat.com>
2023
2024 * infcall.c (run_inferior_call): Set 'sync_execution' while
2025 running the inferior call.
2026
feb6f816
PA
20272014-07-14 Pedro Alves <palves@redhat.com>
2028
2029 * value.c (value_contents_equal): Delete function.
2030 * value.h (value_contents_equal): Delete declaration.
2031
d98b7a16
TT
20322014-07-14 Tom Tromey <tromey@redhat.com>
2033
2034 PR exp/17106:
2035 * gdbtypes.c (is_dynamic_type_internal): New function, from
2036 is_dynamic_type.
2037 (is_dynamic_type): Rewrite.
2038 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2039 (resolve_dynamic_struct): Likewise.
2040 (resolve_dynamic_type_internal): New function, from
2041 resolve_dynamic_type.
2042 (resolve_dynamic_type): Rewrite.
2043
548740d6
TT
20442014-07-14 Tom Tromey <tromey@redhat.com>
2045
2046 * target.c (target_require_runnable): Also check record_stratum.
2047 Update comment.
2048
808f7ab1
YQ
20492014-07-11 Yao Qi <yao@codesourcery.com>
2050
2051 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2052 thumb_instruction_restores_sp return true.
2053
540314bd
YQ
20542014-07-11 Yao Qi <yao@codesourcery.com>
2055
2056 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2057 (thumb_in_function_epilogue_p): Call
2058 thumb_instruction_restores_sp.
2059
1db01f22
YQ
20602014-07-11 Yao Qi <yao@codesourcery.com>
2061
2062 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2063 'add sp, #imm'.
2064 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2065
3116063b
GB
20662014-07-11 Gary Benson <gbenson@redhat.com>
2067
2068 * amd64-linux-nat.c (gdbcore.h): Remove include.
2069 (regset.h): Likewise.
2070 (nat/linux-btrace.h): Likewise.
2071 (btrace.h): Likewise.
2072 (gdb_assert.h): Likewise.
2073 (string.h): Likewise.
2074 (sys/uio.h): Likewise.
2075 (sys/debugreg.h): Likewise.
2076 (sys/syscall.h): Likewise.
2077 (sys/procfs.h): Likewise.
2078 (sys/user.h): Likewise.
2079 (asm/ptrace.h): Likewise.
2080 (i386-nat.h): Likewise.
2081 * i386-linux-nat.c (i386-nat.h): Likewise.
2082 (regset.h): Likewise.
2083 (target.h): Likewise.
2084 (linux-nat.h): Likewise.
2085 (nat/linux-btrace.h): Likewise.
2086 (btrace.h): Likewise.
2087 (gdb_assert.h): Likewise.
2088 (string.h): Likewise.
2089 (sys/uio.h): Likewise.
2090 (sys/user.h): Likewise.
2091 (sys/procfs.h): Likewise.
2092 (sys/reg.h): Likewise.
2093 (sys/debugreg.h): Likewise.
2094 (ORIG_EAX): Remove definition.
2095
040baaf6
GB
20962014-07-11 Gary Benson <gbenson@redhat.com>
2097
2098 * i386-linux-nat.h: New file.
2099 * x86-linux-nat.h: Likewise.
2100 * x86-linux-nat.c: Likewise.
2101 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2102 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2103 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2104 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2105 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2106 (PTRACE_SETREGSET): Likewise.
2107 (arch_lwp_info): Now in x86-linux-nat.c.
2108 (have_ptrace_getregset): Now in x86-linux-nat.h.
2109 (x86_linux_dr_get): Now in x86-linux-nat.c.
2110 (x86_linux_dr_set): Likewise.
2111 (x86_linux_dr_get_addr): Likewise.
2112 (x86_linux_dr_get_control): Likewise.
2113 (x86_linux_dr_get_status): Likewise.
2114 (update_debug_registers_callback): Likewise.
2115 (x86_linux_dr_set_control): Likewise.
2116 (x86_linux_dr_set_addr): Likewise.
2117 (x86_linux_prepare_to_resume): Likewise.
2118 (x86_linux_new_thread): Likewise.
2119 (x86_linux_new_fork): Likewise.
2120 (x86_linux_get_thread_area): Likewise.
2121 (super_post_startup_inferior): Likewise.
2122 (x86_linux_child_post_startup_inferior): Likewise.
2123 (AMD64_LINUX_USER64_CS): Likewise.
2124 (AMD64_LINUX_X32_DS): Likewise.
2125 (x86_linux_read_description): Likewise.
2126 (x86_linux_enable_btrace): Likewise.
2127 (x86_linux_disable_btrace): Likewise.
2128 (x86_linux_teardown_btrace): Likewise.
2129 (x86_linux_read_btrace): Likewise.
2130 (x86_linux_create_target): Likewise.
2131 (x86_linux_add_target): Likewise.
2132 * i386-linux-nat.c (x86-linux-nat.h): New include.
2133 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2134 (PTRACE_SETREGSET): Likewise.
2135 (arch_lwp_info): Now in x86-linux-nat.c.
2136 (have_ptrace_getregset): Now in x86-linux-nat.h.
2137 (x86_linux_dr_get): Now in x86-linux-nat.c.
2138 (x86_linux_dr_set): Likewise.
2139 (x86_linux_dr_get_addr): Likewise.
2140 (x86_linux_dr_get_control): Likewise.
2141 (x86_linux_dr_get_status): Likewise.
2142 (update_debug_registers_callback): Likewise.
2143 (x86_linux_dr_set_control): Likewise.
2144 (x86_linux_dr_set_addr): Likewise.
2145 (x86_linux_prepare_to_resume): Likewise.
2146 (x86_linux_new_thread): Likewise.
2147 (x86_linux_new_fork): Likewise.
2148 (x86_linux_get_thread_area): Likewise.
2149 (super_post_startup_inferior): Likewise.
2150 (x86_linux_child_post_startup_inferior): Likewise.
2151 (AMD64_LINUX_USER64_CS): Likewise.
2152 (AMD64_LINUX_X32_DS): Likewise.
2153 (x86_linux_read_description): Likewise.
2154 (x86_linux_enable_btrace): Likewise.
2155 (x86_linux_disable_btrace): Likewise.
2156 (x86_linux_teardown_btrace): Likewise.
2157 (x86_linux_read_btrace): Likewise.
2158 (x86_linux_create_target): Likewise.
2159 (x86_linux_add_target): Likewise.
2160
1aa7e42c
GB
21612014-07-11 Gary Benson <gbenson@redhat.com>
2162
2163 * amd64-linux-nat.c: Comment and whitespace changes.
2164 * i386-linux-nat.c: Comment and whitespace changes.
2165
c1e246a0
GB
21662014-07-11 Gary Benson <gbenson@redhat.com>
2167
2168 * amd64-linux-nat.c (x86_linux_create_target): New function.
2169 (x86_linux_add_target): Likewise.
2170 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2171 * i386-linux-nat.c (x86_linux_create_target): New function.
2172 (x86_linux_add_target): Likewise.
2173 (_initialize_i386_linux_nat): Delegate to the above new functions.
2174
8c420b8d
GB
21752014-07-11 Gary Benson <gbenson@redhat.com>
2176
2177 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2178 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2179 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2180 (ps_get_thread_area): Delegate to the above.
2181
cb1da100
GB
21822014-07-11 Gary Benson <gbenson@redhat.com>
2183
2184 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2185 x86_linux_read_description. All uses updated. amd64-specific
2186 code conditionalized. Conditionalized i386-specific code added.
2187 Redundant cast removed.
2188 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2189 x86_linux_read_description. All uses updated. i386-specific
2190 code conditionalized. Conditionalized amd64-specific code added.
2191 One sizeof replaced with the actual type it is describing.
2192
2acf3cd0
GB
21932014-07-11 Gary Benson <gbenson@redhat.com>
2194
2195 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2196 x86_linux_dr_get. All uses updated.
2197 (amd64_linux_dr_set): Renamed to
2198 x86_linux_dr_set. All uses updated.
2199 (amd64_linux_dr_get_addr): Renamed to
2200 x86_linux_dr_get_addr. All uses updated.
2201 (amd64_linux_dr_get_control): Renamed to
2202 x86_linux_dr_get_control. All uses updated.
2203 (amd64_linux_dr_get_status): Renamed to
2204 x86_linux_dr_get_status. All uses updated.
2205 (amd64_linux_dr_set_control): Renamed to
2206 x86_linux_dr_set_control. All uses updated.
2207 (amd64_linux_dr_set_addr): Renamed to
2208 x86_linux_dr_set_addr. All uses updated.
2209 (amd64_linux_prepare_to_resume): Renamed to
2210 x86_linux_prepare_to_resume. All uses updated.
2211 (amd64_linux_new_thread): Renamed to
2212 x86_linux_new_thread. All uses updated.
2213 (amd64_linux_new_fork): Renamed to
2214 x86_linux_new_fork. All uses updated.
2215 (amd64_linux_child_post_startup_inferior): Renamed to
2216 x86_linux_child_post_startup_inferior. All uses updated.
2217 (amd64_linux_enable_btrace): Renamed to
2218 x86_linux_enable_btrace. All uses updated.
2219 (amd64_linux_disable_btrace): Renamed to
2220 x86_linux_disable_btrace. All uses updated.
2221 (amd64_linux_teardown_btrace): Renamed to
2222 x86_linux_teardown_btrace. All uses updated.
2223 (amd64_linux_read_btrace): Renamed to
2224 x86_linux_read_btrace. All uses updated.
2225 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2226 x86_linux_dr_get. All uses updated.
2227 (i386_linux_dr_set): Renamed to
2228 x86_linux_dr_set. All uses updated.
2229 (i386_linux_dr_get_addr): Renamed to
2230 x86_linux_dr_get_addr. All uses updated.
2231 (i386_linux_dr_get_control): Renamed to
2232 x86_linux_dr_get_control. All uses updated.
2233 (i386_linux_dr_get_status): Renamed to
2234 x86_linux_dr_get_status. All uses updated.
2235 (i386_linux_dr_set_control): Renamed to
2236 x86_linux_dr_set_control. All uses updated.
2237 (i386_linux_dr_set_addr): Renamed to
2238 x86_linux_dr_set_addr. All uses updated.
2239 (i386_linux_prepare_to_resume): Renamed to
2240 x86_linux_prepare_to_resume. All uses updated.
2241 (i386_linux_new_thread): Renamed to
2242 x86_linux_new_thread. All uses updated.
2243 (i386_linux_new_fork): Renamed to
2244 x86_linux_new_fork. All uses updated.
2245 (i386_linux_child_post_startup_inferior): Renamed to
2246 x86_linux_child_post_startup_inferior. All uses updated.
2247 (i386_linux_enable_btrace): Renamed to
2248 x86_linux_enable_btrace. All uses updated.
2249 (i386_linux_disable_btrace): Renamed to
2250 x86_linux_disable_btrace. All uses updated.
2251 (i386_linux_teardown_btrace): Renamed to
2252 x86_linux_teardown_btrace. All uses updated.
2253 (i386_linux_read_btrace): Renamed to
2254 x86_linux_read_btrace. All uses updated.
2255
b9c1d481
AS
22562014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2257
2258 * remote.c (extended_remote_post_attach): New function.
2259 (init_extended_remote_ops): Install it as to_post_attach method.
2260
7180e04a
PA
22612014-07-09 Pedro Alves <palves@redhat.com>
2262
2263 * infcmd.c (attach_command_post_wait): Don't call
2264 target_terminal_inferior here.
2265 (attach_command): Call it here instead.
2266
9a9a7608
AB
22672014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2268
2269 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2270 field.
2271 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2272 from varobj.c, with additional checks.
2273 (c_varobj_ops): Fill in is_path_expr_parent field.
2274 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2275 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2276 field.
2277 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2278 ops method.
2279 (varobj_default_is_path_expr_parent): New function.
2280 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2281 (varobj_default_is_path_expr_parent): Declare new function.
2282
1f267ae3
MM
22832014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2284
2285 * infcmd.c (finish_backward): Turn internal error into normal error.
2286
b2ee242b
PA
22872014-07-07 Pedro Alves <palves@redhat.com>
2288
8a869bca 2289 PR gdb/17096
b2ee242b
PA
2290 * remote.c (async_handle_remote_sigint)
2291 (async_handle_remote_sigint_twice): Call
2292 gdb_call_async_signal_handler instead of
2293 mark_async_signal_handler.
2294
38e229b2
TT
22952014-07-07 Tom Tromey <tromey@redhat.com>
2296
2297 * target-delegates.c: Rebuild.
2298 * target.c (target_info_record): Remove.
2299 * record.c (info_record_command): Unconditionally call
2300 to_info_record.
2301 * target.h (struct target_ops) <to_info_record>: Use
2302 TARGET_DEFAULT_IGNORE.
2303 (target_info_record): Remove.
2304
f0f9ff95
TT
23052014-07-07 Tom Tromey <tromey@redhat.com>
2306
2307 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2308 TARGET_DEFAULT_NORETURN.
2309 * target.c (generic_tls_error): New function.
2310 (target_translate_tls_address): Don't search target stack.
2311 * target-delegates.c: Rebuild.
2312 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2313 stack.
2314 * linux-thread-db.c (thread_db_get_thread_local_address):
2315 Unconditionally call beneath target.
2316
4a5be5ee
MK
23172014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2318
2319 * cli/cli-logging.c (pop_output_files): Assign targerr to
2320 gdb_stdtargerr.
2321
92c3b204
AB
23222014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * MAINTAINERS (Write After Approval): Update my email address.
2325
9b11e3a7
GB
23262014-07-02 Gary Benson <gbenson@redhat.com>
2327
2328 * proc-service.c (ps_xfer_memory): Update comment.
2329 (ps_pstop): Remove unused function.
2330 (ps_pcontinue): Likewise.
2331 (ps_lstop): Likewise.
2332 (ps_lcontinue): Likewise.
2333 (ps_lgetxregsize): Likewise.
2334 (ps_lgetxregs): Likewise.
2335 (ps_lsetxregs): Likewise.
2336 (ps_plog): Likewise.
2337 (ps_ptread): Likewise.
2338 (ps_ptwrite): Likewise.
2339
cf363f18
MW
23402014-07-01 Mark Wielaard <mjw@redhat.com>
2341
2342 * dwarf2read.c (add_array_cv_type): New function.
2343 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2344 (read_tag_volatile_type): Likewise.
2345
82ae6c8d
TT
23462014-07-01 Tom Tromey <tromey@redhat.com>
2347
2348 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2349 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2350 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2351 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2352 * command.h (cmd_cfunc_ftype): Move earlier.
2353 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2354 (add_com, add_info): Use cmd_cfunc_ftype.
2355
96142726
TT
23562014-06-30 Tom Tromey <tromey@redhat.com>
2357
2358 * symtab.c (operator_chars): Make parameters and return type
2359 const.
2360 (file_matches): Make "files" const.
2361 (struct search_symbols_data) <files>: Now const.
2362 (search_symbols): Make "regexp" and "files" parameters const.
2363 Update.
2364 (symtab_symbol_info): Remove cast.
2365 (rbreak_command): Update.
2366 * symtab.h (search_symbols): Update.
2367
b67a2c6f
YQ
23682014-06-27 Yao Qi <yao@codesourcery.com>
2369
2370 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2371 Change parameter type to 'struct thread_info *'. Caller
2372 updated.
2373 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2374 Update declaration.
2375 * dummy-frame.c (struct dummy_frame_id): New.
2376 (dummy_frame_id_eq): New function.
2377 (struct dummy_frame) <id>: Change its type to 'struct
2378 dummy_frame_id'.
2379 (dummy_frame_push): Add parameter ptid and save it in
2380 dummy_frame_id.
2381 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2382 inferior_ptid.
2383 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2384 to inferior_ptid.
2385 (lookup_dummy_frame): Change parameter type to 'struct
2386 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2387 instead of frame_id_eq.
2388 (dummy_frame_pop): Add parameter ptid. Callers updated.
2389 Update comments. Compose dummy_frame_id and pass it to
2390 lookup_dummy_frame.
2391 (dummy_frame_discard): Add parameter ptid.
2392 (dummy_frame_sniffer): Compose dummy_frame_id and call
2393 dummy_frame_id_eq instead of frame_id_eq.
2394 (fprint_dummy_frames): Print ptid.
2395 * dummy-frame.h: Remove comments.
2396 (dummy_frame_push): Add ptid in declaration.
2397 (dummy_frame_pop, dummy_frame_discard): Likewise.
2398
5b10184c
TT
23992014-06-26 Tom Tromey <tromey@redhat.com>
2400
2401 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2402 * command.h (error_no_arg): Update.
2403
06900326
TT
24042014-06-26 Tom Tromey <tromey@redhat.com>
2405
2406 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2407 (do_show_command): Make "arg" const.
2408 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2409
c2bcbb1d
TT
24102014-06-26 Tom Tromey <tromey@redhat.com>
2411
2412 * record-full.c (record_full_get_bookmark): Make "args" const.
2413 (record_full_goto_bookmark): Make "raw_bookmark" const.
2414 * record.c (record_goto): New function.
2415 (cmd_record_goto): Use it. Now static.
2416 * record.h (record_goto): Declare.
2417 (cmd_record_goto): Remove declaration.
2418 * target-delegates.c: Rebuild.
2419 * target.h (struct target_ops) <to_get_bookmark,
2420 to_goto_bookmark>: Make parameter const.
2421
9cbe5fff
TT
24222014-06-26 Tom Tromey <tromey@redhat.com>
2423
2424 * defs.h (generic_load): Update.
2425 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2426 * monitor.c (monitor_load): Make "args" const.
2427 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2428 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2429 const.
2430 (mips_load): Make "file" const.
2431 * remote-sim.c (gdbsim_load): Make "args" const.
2432 * remote.c (remote_load): Make "name" const.
2433 * symfile.c (generic_load): Make "args" const.
2434 * target-delegates.c: Rebuild.
2435 * target.c (target_load): Make "arg" const.
2436 (debug_to_load): Make "args" const.
2437 * target.h (struct target_ops) <to_load>: Make parameter const.
2438 (target_load): Update.
2439
34a68019
TT
24402014-06-26 Tom Tromey <tromey@redhat.com>
2441
2442 PR symtab/16902:
2443 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2444 (dwarf2_physname, read_partial_die)
2445 (guess_partial_die_structure_name, fixup_partial_die)
2446 (guess_full_die_structure_name, anonymous_struct_prefix)
2447 (dwarf2_name): Use per-BFD obstack.
2448
efc889c1
YQ
24492014-06-26 Yao Qi <yao@codesourcery.com>
2450
2451 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2452 dummyframe and this_id into inner block below.
2453
4395285e
YQ
24542014-06-26 Yao Qi <yao@codesourcery.com>
2455
2456 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2457 with "signal_pass[0]" in the initialization of signal_pass.
2458
aef92902
MM
24592014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2460
2461 * record-btrace.c (record_btrace_generating_corefile)
2462 (record_btrace_prepare_to_generate_core)
2463 (record_btrace_done_generating_core): New.
2464 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2465 (record_btrace_store_registers, record_btrace_prepare_to_store):
2466 Forward request when generating a core file.
2467 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2468 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2469 to_done_generating_core.
2470
5fff78c4
MM
24712014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2472
2473 * target.h (target_ops) <to_prepare_to_generate_core>
2474 <to_done_generating_core>: New.
2475 (target_prepare_to_generate_core, target_done_generating_core): New.
2476 * target.c (target_prepare_to_generate_core)
2477 (target_done_generating_core): New.
2478 * target-delegates.c: Regenerate.
2479 * gcore.c: (write_gcore_file): Rename to ...
2480 (write_gcore_file_1): ...this.
2481 (write_gcore_file): Call target_prepare_to_generate_core
2482 and target_done_generating_core.
2483
1d1f1ccb
MM
24842014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2485
2486 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2487 * gcore.c (write_gcore_file): Free memory returned from
2488 make_corefile_notes.
2489 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2490 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2491
3343ef86
YQ
24922014-06-24 Yao Qi <yao@codesourcery.com>
2493
2494 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2495 (arm_linux_init_abi): Set skip_trampoline_code with
2496 gdbarch_skip_trampoline_code instead of
2497 find_solib_trampoline_target.
2498
18d18ac8
YQ
24992014-06-24 Yao Qi <yao@codesourcery.com>
2500
2501 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2502 arm_skip_bx_reg returns non-zero.
2503
80d8d390
YQ
25042014-06-24 Yao Qi <yao@codesourcery.com>
2505
2506 * arm-tdep.c (arm_skip_bx_reg): New function.
2507 (arm_skip_stub): Call arm_skip_bx_reg.
2508
6a18a01c
DB
25092014-06-23 Don Breazeal <donb@codesourcery.com>
2510
2511 * MAINTAINERS: Add myself as write-after-approval maintainer.
2512
8e9db26e
PA
25132014-06-23 Pedro Alves <palves@redhat.com>
2514
2515 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2516 DR_CONTROL before setting DR0..DR3.
2517 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2518 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2519 bits of DR_CONTROL related to the debug register slot being
2520 disabled. If all slots are vacant, clear local slowdown as well,
2521 and assert DR_CONTROL is 0.
2522
70afc5b7
SC
25232014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2524
2525 * python/lib/gdb/command/xmethods.py
2526 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2527 current progspace only if the string "progspace" matches LOCUS_RE.
2528
840ed64d
JK
25292014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2530
2531 Fix --with-system-readline with readline-6.3 patch 5.
2532 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2533 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2534 types.
2535
26f2dc30
TT
25362014-06-20 Tom Tromey <tromey@redhat.com>
2537
2538 * dwarf2read.c (dw2_get_real_path): Use correct type in
2539 OBSTACK_CALLOC.
2540 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2541
125f8a3d
GB
25422014-06-20 Gary Benson <gbenson@redhat.com>
2543
2544 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2545 * common/glibc_thread_db.h: Likewise.
2546 * common/i386-cpuid.h: Likewise.
2547 * common/i386-gcc-cpuid.h: Likewise.
2548 * common/linux-btrace.h: Likewise.
2549 * common/linux-osdata.h: Likewise.
2550 * common/linux-procfs.h: Likewise.
2551 * common/linux-ptrace.h: Likewise.
2552 * common/mips-linux-watch.h: Likewise.
2553 * common/linux-btrace.c: Moved to nat.
2554 * common/linux-osdata.c: Likewise.
2555 * common/linux-procfs.c: Likewise.
2556 * common/linux-ptrace.c: Likewise.
2557 * common/mips-linux-watch.c: Likewise.
2558 * nat/gdb_thread_db.h: Moved from common.
2559 * nat/glibc_thread_db.h: Likewise.
2560 * nat/i386-cpuid.h: Likewise.
2561 * nat/i386-gcc-cpuid.h: Likewise.
2562 * nat/linux-btrace.c: Likewise.
2563 * nat/linux-btrace.h: Likewise.
2564 * nat/linux-osdata.c: Likewise.
2565 * nat/linux-osdata.h: Likewise.
2566 * nat/linux-procfs.c: Likewise.
2567 * nat/linux-procfs.h: Likewise.
2568 * nat/linux-ptrace.c: Likewise.
2569 * nat/linux-ptrace.h: Likewise.
2570 * nat/mips-linux-watch.c: Likewise.
2571 * nat/mips-linux-watch.h: Likewise.
2572 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2573 (object file files): Reordered.
2574 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2575 of glibc_thread_db.h.
2576
42995dbd
GB
25772014-06-20 Gary Benson <gbenson@redhat.com>
2578
2579 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2580 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2581 (i386_dr_low): Likewise.
2582 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2583 (i386_dr_low_set_addr): Likewise.
2584 (i386_dr_low_get_addr): Likewise.
2585 (i386_dr_low_can_set_control): Likewise.
2586 (i386_dr_low_set_control): Likewise.
2587 (i386_dr_low_get_control): Likewise.
2588 (i386_dr_low_get_status): Likewise.
2589 (i386_get_debug_register_length): Likewise.
2590 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2591 (i386_dr_low): Likewise.
2592 * nat/i386-dregs.c (i386-low.h): Remove include.
2593 (i386-nat.h): Likewise.
2594 (nat/i386-dregs.h): New include.
2595 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2596 (i386_dr_low_set_addr): Likewise.
2597 (i386_dr_low_get_addr): Likewise.
2598 (i386_dr_low_can_set_control): Likewise.
2599 (i386_dr_low_set_control): Likewise.
2600 (i386_dr_low_get_control): Likewise.
2601 (i386_dr_low_get_status): Likewise.
2602 (i386_get_debug_register_length): Likewise.
2603 (debug_hw_points): Likewise.
2604
3ed9baed
IB
26052014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2606
2607 * Makefile.in (SFILES): Add d-exp.y.
2608 (YYFILES): Add d-exp.c.
2609 (YYOBJ): Add d-exp.o.
2610 (local-maintainer-clean): Delete d-exp.c.
2611 * d-exp.y: New file.
2612 * d-lang.h (d_parse): New declaration.
2613 (d_error): New declaration.
2614 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2615 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2616 PREC_ORDER operators.
2617 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2618
78c164b0
YQ
26192014-06-19 Yao Qi <yao@codesourcery.com>
2620
2621 * gdbthread.h (any_running): Remove the declaration.
2622 * thread.c (any_running): Remove.
2623
f6e29b6e
YQ
26242014-06-19 Yao Qi <yao@codesourcery.com>
2625
2626 * gdbthread.h (struct thread_info) <state>: Change its type to
2627 'enum thread_state'. Update comments.
2628
034f788c
PA
26292014-06-19 Pedro Alves <palves@redhat.com>
2630
2631 * gdbthread.h (ALL_THREADS): Delete.
2632 (ALL_NON_EXITED_THREADS): New macro.
2633 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2634 instead of ALL_THREADS.
2635 * infrun.c (find_thread_needs_step_over)
2636 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2637 instead of ALL_THREADS.
2638 * record-btrace.c (record_btrace_open)
2639 (record_btrace_stop_recording, record_btrace_close)
2640 (record_btrace_is_replaying, record_btrace_resume)
2641 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2642 * remote.c (append_pending_thread_resumptions): Likewise.
2643 * thread.c (thread_apply_all_command): Likewise.
2644
46e33252
GB
26452014-06-19 Gary Benson <gbenson@redhat.com>
2646
2647 * i386-nat.c (i386_stopped_by_watchpoint):
2648 Use i386_dr_stopped_by_watchpoint.
2649 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2650 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2651
3a8ee006
GB
26522014-06-19 Gary Benson <gbenson@redhat.com>
2653
2654 * nat/i386-dregs.c: New file.
2655 * Makefile.in (i386-dregs.o): New rule.
2656 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2657 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2658 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2659 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2660 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2661 * config/i386/go32.mh (NATDEPFILES): Likewise.
2662 * config/i386/linux.mh (NATDEPFILES): Likewise.
2663 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2664 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2665 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2666 * i386-nat.h (debug_hw_points): New declaration.
2667 * i386-nat.c (breakpoint.h): Remove include.
2668 (command.h): Likewise.
2669 (target.h): Likewise.
2670 (gdb_assert.h): Likewise.
2671 (debug_hw_points): Made nonstatic.
2672 (debug_printf): Now in i386-dregs.c.
2673 (TARGET_HAS_DR_LEN_8): Likewise.
2674 (DR_CONTROL_SHIFT): Likewise.
2675 (DR_CONTROL_SIZE): Likewise.
2676 (DR_RW_EXECUTE): Likewise.
2677 (DR_RW_WRITE): Likewise.
2678 (DR_RW_READ): Likewise.
2679 (DR_RW_IORW): Likewise.
2680 (DR_LEN_1): Likewise.
2681 (DR_LEN_2): Likewise.
2682 (DR_LEN_4): Likewise.
2683 (DR_LEN_8): Likewise.
2684 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2685 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2686 (DR_ENABLE_SIZE): Likewise.
2687 (DR_LOCAL_SLOWDOWN): Likewise.
2688 (DR_GLOBAL_SLOWDOWN): Likewise.
2689 (DR_CONTROL_RESERVED): Likewise.
2690 (I386_DR_CONTROL_MASK): Likewise.
2691 (I386_DR_VACANT): Likewise.
2692 (I386_DR_LOCAL_ENABLE): Likewise.
2693 (I386_DR_GLOBAL_ENABLE): Likewise.
2694 (I386_DR_DISABLE): Likewise.
2695 (I386_DR_SET_RW_LEN): Likewise.
2696 (I386_DR_GET_RW_LEN): Likewise.
2697 (I386_DR_WATCH_HIT): Likewise.
2698 (i386_wp_op_t): Likewise.
2699 (i386_show_dr): Likewise.
2700 (i386_length_and_rw_bits): Likewise.
2701 (i386_insert_aligned_watchpoint): Likewise.
2702 (i386_remove_aligned_watchpoint): Likewise.
2703 (i386_handle_nonaligned_watchpoint): Likewise.
2704 (i386_update_inferior_debug_regs): Likewise.
2705 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2706 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2707 (i386_region_ok_for_watchpoint):
2708 Use i386_dr_region_ok_for_watchpoint.
2709 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2710
322a8e06
GB
27112014-06-19 Gary Benson <gbenson@redhat.com>
2712
2713 * i386-nat.c (i386_insert_hw_breakpoint): Use
2714 i386_insert_watchpoint.
2715 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2716
8f26655c
GB
27172014-06-19 Gary Benson <gbenson@redhat.com>
2718
2719 * i386-nat.c (i386_dr_show): Renamed to
2720 i386_show_dr and made static. All uses updated.
2721 (i386_dr_length_and_rw_bits): Renamed to
2722 i386_length_and_rw_bits and made static.
2723 All uses updated.
2724 (i386_dr_insert_aligned_watchpoint): Renamed to
2725 i386_insert_aligned_watchpoint and made static.
2726 All uses updated.
2727 (i386_dr_remove_aligned_watchpoint): Renamed to
2728 i386_remove_aligned_watchpoint and made static.
2729 All uses updated.
2730 (i386_dr_update_inferior_debug_regs): Renamed to
2731 i386_update_inferior_debug_regs and made static.
2732 All uses updated.
2733 * nat/i386-dregs.h (i386_dr_show): Removed.
2734 (i386_dr_length_and_rw_bits): Likewise.
2735 (i386_dr_insert_aligned_watchpoint): Likewise.
2736 (i386_dr_remove_aligned_watchpoint): Likewise.
2737 (i386_dr_update_inferior_debug_regs): Likewise.
2738
992c7d70
GB
27392014-06-19 Gary Benson <gbenson@redhat.com>
2740
2741 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2742 * configure: Regenerate.
2743 * config.in: Likewise.
2744 * main.c (signal.h): New include.
2745 (setup_alternate_signal_stack): New function.
2746 (captured_main): Call the above.
2747 * cp-support.c (signal.h): New include.
2748 (catch_demangler_crashes): New flag.
2749 (SIGJMP_BUF): New define.
2750 (SIGSETJMP): Likewise.
2751 (SIGLONGJMP): Likewise.
2752 (gdb_demangle_jmp_buf): New static global.
2753 (gdb_demangle_attempt_core_dump): Likewise.
2754 (gdb_demangle_signal_handler): New function.
2755 (gdb_demangle): If catch_demangler_crashes is set, install the
2756 above signal handler before calling bfd_demangle, and restore
2757 the original signal handler afterwards. Display the offending
2758 symbol and call demangler_warning the first time a segmentation
2759 fault is caught.
2760 (_initialize_cp_support): New maint set/show command.
2761
eae7090b
GB
27622014-06-19 Gary Benson <gbenson@redhat.com>
2763
2764 * utils.h (resource_limit_kind): New enum.
2765 (can_dump_core): New declaration.
2766 (warn_cant_dump_core): Likewise.
2767 (dump_core): Likewise.
2768 * utils.c (dump_core): Made nonstatic. Added new
2769 parameter "limit_kind".
2770 (can_dump_core): Made nonstatic. Moved printing code to...
2771 (warn_cant_dump_core): New function.
2772 (can_dump_core_warn): Likewise.
2773 (internal_vproblem): Replace calls to can_dump_core with
2774 calls to can_dump_core_warn. Supply new argument to each.
2775
57fcfb1b
GB
27762014-06-19 Gary Benson <gbenson@redhat.com>
2777
2778 * utils.h (demangler_vwarning): New declaration.
2779 (demangler_warning): Likewise.
2780 * utils.c (struct internal_problem)
2781 <user_settable_should_quit>: New field.
2782 <user_settable_should_dump_core>: Likewise
2783 (internal_error_problem): Add values for above new fields.
2784 (internal_warning_problem): Likewise.
2785 (demangler_warning_problem): New static global.
2786 (demangler_vwarning): New function.
2787 (demangler_warning): Likewise.
2788 (add_internal_problem_command): Selectively add commands.
2789 (_initialize_utils): New internal problem command.
2790 * maint.c (maintenance_demangler_warning): New function.
2791 (_initialize_maint_cmds): New command.
2792
17a40b44
TT
27932014-06-18 Tom Tromey <tromey@redhat.com>
2794
2795 * f-valprint.c (info_common_command_for_block): Update.
2796 * symtab.h (struct general_symbol_info) <common_block>: Now
2797 const.
2798
346d1dfe
TT
27992014-06-18 Tom Tromey <tromey@redhat.com>
2800
2801 * symtab.h (struct symtab) <blockvector>: Now const.
2802 * ada-lang.c (ada_add_global_exceptions): Update.
2803 * buildsym.c (augment_type_symtab): Update.
2804 * dwarf2read.c (dw2_lookup_symbol): Update.
2805 * jit.c (finalize_symtab): Update.
2806 * jv-lang.c (add_class_symtab_symbol): Update.
2807 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2808 Update.
2809 * objfiles.c (objfile_relocate1): Update.
2810 * psymtab.c (lookup_symbol_aux_psymtabs)
2811 (maintenance_check_psymtabs): Update.
2812 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2813 Update.
2814 * spu-tdep.c (spu_catch_start): Update.
2815 * symmisc.c (dump_symtab_1): Update.
2816 * symtab.c (lookup_global_symbol_from_objfile)
2817 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2818 (basic_lookup_transparent_type_quick)
2819 (basic_lookup_transparent_type, find_pc_sect_symtab)
2820 (find_pc_sect_line, search_symbols): Update.
2821 * block.c (find_block_in_blockvector): Make "bl" const.
2822 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2823 const.
2824 (blockvector_contains_pc): Make "bv" const.
2825 (block_for_pc_sect): Update.
2826 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2827 (blockvector_contains_pc): Update.
2828 * breakpoint.c (resolve_sal_pc): Update.
2829 * inline-frame.c (block_starting_point_at): Update.
2830
1834676b
TT
28312014-06-18 Tom Tromey <tromey@redhat.com>
2832
2833 * completer.c (complete_line): Make "line_buffer" const.
2834 * completer.h (complete_line): Update.
2835
ac1a991b
TT
28362014-06-18 Tom Tromey <tromey@redhat.com>
2837
2838 * symtab.c (add_macro_name): Remove unneeded cast.
2839
5bc98e52
TT
28402014-06-18 Tom Tromey <tromey@redhat.com>
2841
2842 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2843 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2844
8236def8
TT
28452014-06-18 Tom Tromey <tromey@redhat.com>
2846
2847 * probe.c (info_probes_for_ops): Make "arg" const.
2848 * probe.h (info_probes_for_ops): Update.
2849
3977b71f
TT
28502014-06-18 Tom Tromey <tromey@redhat.com>
2851
2852 * varobj.c (varobj_create): Update.
2853 * valops.c (value_of_this): Update.
2854 * tracepoint.c (add_local_symbols, scope_info): Update.
2855 * symtab.h (struct general_symbol_info) <block>: Now const.
2856 * symtab.c (skip_prologue_sal)
2857 (default_make_symbol_completion_list_break_on)
2858 (skip_prologue_using_sal): Update.
2859 * stack.h (iterate_over_block_locals)
2860 (iterate_over_block_local_vars): Update.
2861 * stack.c (print_frame_args): Update.
2862 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2863 parameter const.
2864 (get_selected_block): Make return type const.
2865 * python/py-frame.c (frapy_block): Update.
2866 * python/py-block.c (gdbpy_block_for_pc): Update.
2867 * p-exp.y (%union) <bval>: Now const.
2868 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2869 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2870 * m2-exp.y (%union) <bval>: Now const.
2871 * linespec.c (get_current_search_block): Make return type const.
2872 (create_sals_line_offset, find_label_symbols): Update.
2873 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2874 Update.
2875 (block_starting_point_at): Make "block" const.
2876 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2877 (check_exception_resume): Update.
2878 * guile/scm-frame.c (gdbscm_frame_block): Update.
2879 * guile/scm-block.c (gdbscm_lookup_block): Update.
2880 * frame.h (get_frame_block): Update.
2881 (get_selected_block): Make return type const.
2882 * frame.c (frame_id_inner): Update.
2883 * f-valprint.c (info_common_command_for_block)
2884 (info_common_command): Update.
2885 * dwarf2loc.c (dwarf2_find_location_expression)
2886 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2887 (locexpr_describe_location_piece): Update.
2888 * c-exp.y (%union) <bval>: Now const.
2889 * breakpoint.c (resolve_sal_pc): Update.
2890 * blockframe.c (get_frame_block):Make return type const.
2891 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2892 (block_innermost_frame): Update.
2893 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2894 (block_for_pc, block_for_pc_sect): Update.
2895 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2896 'pblock' const.
2897 (block_for_pc_sect, block_for_pc): Make return type const.
2898 * ax-gdb.c (gen_expr): Update.
2899 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2900 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2901 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2902 (ada_read_var_value): Update.
2903 * ada-exp.y (struct name_info) <block>: Now const.
2904 (%union): Likewise.
2905 (block_lookup): Constify.
2906
b9228891
GB
29072014-06-18 Gary Benson <gbenson@redhat.com>
2908
2909 * nat/i386-dregs.h: New file.
2910 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2911 * i386-nat.h (i386-dregs.h): New include.
2912 (DR_FIRSTADDR): Now in i386-dregs.h.
2913 (DR_LASTADDR): Likewise.
2914 (DR_NADDR): Likewise.
2915 (DR_STATUS): Likewise.
2916 (DR_CONTROL): Likewise.
2917 (i386_debug_reg_state): Likewise.
2918 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2919
a1aa2221
LM
29202014-06-18 Don Breazeal <donb@codesourcery.com>
2921
2922 * breakpoint.c (set_longjmp_breakpoint): Call
2923 momentary_breakpoint_from_master with additional argument.
2924 (set_longjmp_breakpoint_for_call_dummy): Call
2925 momentary_breakpoint_from_master with additional argument.
2926 (set_std_terminate_breakpoint): Call
2927 momentary_breakpoint_from_master with additional argument.
2928 (momentary_breakpoint_from_master): Add argument to function
2929 definition and use it to initialize structure member flag.
74228e77 2930 (clone_momentary_breakpoint): Call
a1aa2221
LM
2931 momentary_breakpoint_from_master with additional argument.
2932 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2933 member flags set in momentary_breakpoint_from_master.
2934
4be83cc2
GB
29352014-06-18 Gary Benson <gbenson@redhat.com>
2936
2937 * i386-nat.c (i386_show_dr): Renamed to
2938 i386_dr_show and made nonstatic. All uses updated.
2939 (i386_length_and_rw_bits): Renamed to
2940 i386_dr_length_and_rw_bits and made nonstatic.
2941 All uses updated.
2942 (i386_insert_aligned_watchpoint): Renamed to
2943 i386_dr_insert_aligned_watchpoint and made nonstatic.
2944 All uses updated.
2945 (i386_remove_aligned_watchpoint): Renamed to
2946 i386_dr_remove_aligned_watchpoint and made nonstatic.
2947 All uses updated.
2948 (i386_update_inferior_debug_regs): Renamed to
2949 i386_dr_update_inferior_debug_regs and made nonstatic.
2950 All uses updated.
2951
131aa0d4
GB
29522014-06-18 Gary Benson <gbenson@redhat.com>
2953
2954 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2955 (i386_dr_low_can_set_control): Likewise.
2956 (i386_dr_low_set_addr): Likewise.
2957 (i386_dr_low_set_control): Likewise.
2958 (i386_dr_low_get_addr): Likewise.
2959 (i386_dr_low_get_status): Likewise.
2960 (i386_dr_low_get_control): Likewise.
2961 (i386_insert_aligned_watchpoint): Use new macros.
2962 (i386_update_inferior_debug_regs): Likewise.
2963 (i386_stopped_data_address): Likewise.
2964
d9305f7f
GB
29652014-06-18 Gary Benson <gbenson@redhat.com>
2966
2967 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2968 New parameter. All uses updated.
2969
ea008da4
GB
29702014-06-18 Gary Benson <gbenson@redhat.com>
2971
2972 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2973 All uses updated.
2974
1b6d4134
GB
29752014-06-18 Gary Benson <gbenson@redhat.com>
2976
2977 * i386-nat.c (debug_printf): New macro.
2978 (i386_get_debug_register_length): Likewise.
2979 (TARGET_HAS_DR_LEN_8): Use above macro.
2980 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2981 and printf_unfiltered. Use phex to format values.
2982
9b4550ef
GB
29832014-06-18 Gary Benson <gbenson@redhat.com>
2984
2985 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2986 Make const.
2987
6e62758f
GB
29882014-06-18 Gary Benson <gbenson@redhat.com>
2989
2990 * i386-nat.c: Comment changes.
2991
51c79e94
GB
29922014-06-18 Gary Benson <gbenson@redhat.com>
2993
2994 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2995
3e11889a
GB
29962014-06-18 Gary Benson <gbenson@redhat.com>
2997
2998 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2999 (i386_insert_aligned_watchpoint): Likewise.
3000 (i386_remove_aligned_watchpoint): Likewise.
3001 (i386_handle_nonaligned_watchpoint): Likewise.
3002
fc6e2f03
GB
30032014-06-18 Gary Benson <gbenson@redhat.com>
3004
3005 * i386-nat.c: Whitespace changes.
3006
2afe7d50
SB
30072014-06-17 Samuel Bronson <naesten@gmail.com>
3008
3009 * MAINTAINERS: Update Roland McGrath's email address.
3010 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3011 Red Hat a while ago, and giving me a current address.
2afe7d50 3012
3bca49ee
TT
30132014-06-17 Tom Tromey <tromey@redhat.com>
3014
3015 * utils.h (savestring): Remove declaration.
3016
6e366df1
TT
30172014-06-17 Tom Tromey <tromey@redhat.com>
3018
3019 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3020
6be47f0c
KS
30212014-06-16 Keith Seitz <keiths@redhat.com>
3022
3023 PR mi/15863
3024 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3025 to update the varobj if inferior_ptid is null_ptid.
3026
7bc112c1
TT
30272014-06-16 Tom Tromey <tromey@redhat.com>
3028
3029 * target.h (struct target_ops) <to_info_proc>: Make parameter
3030 const.
3031 (target_info_proc): Update.
3032 * target.c (target_info_proc): Make "args" const.
3033 * procfs.c (procfs_info_proc): Update.
3034 * linux-tdep.c (linux_info_proc): Update.
3035 (linux_core_info_proc_mappings): Make "args" const.
3036 (linux_core_info_proc): Update.
3037 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3038 * gdbarch.c: Rebuild.
3039 * gdbarch.h: Rebuild.
3040 * corelow.c (core_info_proc): Update.
3041
fee354ee
TT
30422014-06-16 Tom Tromey <tromey@redhat.com>
3043
3044 * target.h (struct target_ops) <to_disconnect>: Make parameter
3045 const.
3046 (target_disconnect): Update.
3047 * target.c (target_disconnect): Make "args" const.
3048 * target-delegates.c: Rebuild.
3049 * remote.c (remote_disconnect): Update.
3050 * record.h (record_disconnect): Update.
3051 * record.c (record_disconnect): Update.
3052 * inf-child.c (inf_child_disconnect): Update.
3053
a30bf1f1
TT
30542014-06-16 Tom Tromey <tromey@redhat.com>
3055
3056 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3057 * target.c (debug_to_rcmd, default_rcmd): Update.
3058 * target-delegates.c: Rebuild.
3059 * remote.c (remote_rcmd): Update.
3060 * monitor.c (monitor_rcmd): Update.
3061
d03de421
PA
30622014-06-16 Pedro Alves <palves@redhat.com>
3063
3064 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3065 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3066 have OBJF_SHARED set.
3067 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3068 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3069 instead of OBJF_USERLOADED.
3070 * objfiles.h (OBJF_SHARED): Update comment.
3071 (userloaded_objfile_contains_address_p): Rename to ...
3072 (shared_objfile_contains_address_p): ... this, and update
3073 comments.
3074 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3075 new objfile.
3076 (remove_symbol_file_command): Skip objfiles that don't have
3077 OBJF_SHARED set.
3078
99f4262f
TT
30792014-06-16 Tom Tromey <tromey@redhat.com>
3080
3081 * minsyms.h (prim_record_minimal_symbol)
3082 (prim_record_minimal_symbol_and_info): Update comments.
3083
97d66cc6
EZ
30842014-06-14 Eli Zaretskii <eliz@gnu.org>
3085
3086 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3087 or --without-guile, according to how GDB was built.
3088
635c7e8a
TT
30892014-06-13 Tom Tromey <tromey@redhat.com>
3090
3091 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3092 to help_list.
3093 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3094 to help_list.
3095 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3096 help_list.
3097 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3098 help_list.Pass all_commands, not -1, to help_list.
3099 * cli/cli-dump.c (dump_command, append_command)
3100 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3101 (binary_dump_command, binary_append_command): Pass all_commands,
3102 not -1, to help_list.
3103 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3104 -1, to help_list.
3105 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3106 -1, to help_list.
3107 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3108 help_list.
3109 * top.c (set_history): Pass all_commands, not -1, to help_list.
3110 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3111 all_commands, not -1, to help_list.
3112 * symfile.c (overlay_command): Pass all_commands, not -1, to
3113 help_list.
3114 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3115 help_list.
3116 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3117 help_list.
3118 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3119 -1, to help_list.
3120 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3121 not -1, to help_list.
3122 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3123 not -1, to help_list.
3124 * maint.c (maintenance_command, maintenance_info_command)
3125 (maintenance_print_command, maintenance_set_cmd): Pass
3126 all_commands, not -1, to help_list.
3127 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3128 help_list.
3129 * language.c (set_check): Pass all_commands, not -1, to help_list.
3130 * infcmd.c (unset_command): Pass all_commands, not -1, to
3131 help_list.
3132 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3133 help_list.
3134 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3135 help_list.
3136 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3137 help_list.
3138 * breakpoint.c (save_command): Pass all_commands, not -1, to
3139 help_list.
3140 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3141 all_commands, not -1, to help_list.
3142
b94ade42
PL
31432014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3144
3145 * regcache.c (struct register_to_invalidate): New structure.
3146 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3147 functions.
3148 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3149
31f628ae
YQ
31502014-06-12 Yao Qi <yao@codesourcery.com>
3151
3152 * varobj.c (varobj_get_num_children): Call
3153 varobj_is_dynamic_p.
3154 (varobj_list_children): Likewise.
3155 (varobj_update): Likewise. Update comments.
3156
cde5ef40
YQ
31572014-06-12 Yao Qi <yao@codesourcery.com>
3158
3159 * varobj.c (varobj_pretty_printed_p): Rename to ...
3160 (varobj_is_dynamic_p): ... this. New function.
3161 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3162 (varobj_is_dynamic_p): Declare.
3163 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3164 (mi_print_value_p, varobj_update_one): Likewise.
3165
576ea091
YQ
31662014-06-12 Pedro Alves <pedro@codesourcery.com>
3167 Yao Qi <yao@codesourcery.com>
3168
3169 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3170 (varobj_get_iterator): Wrap up code for pretty-printer by
3171 "#if HAVE_PYTHON" and "#endif".
3172 (update_dynamic_varobj_children): Likewise.
3173
827f100c
YQ
31742014-06-12 Pedro Alves <pedro@codesourcery.com>
3175 Yao Qi <yao@codesourcery.com>
3176
3177 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3178 gdb_python_initialized is false. Move some code from varobj.c.
3179 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3180 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3181 (struct varobj_item): Moved to varobj-iter.h".
3182 (varobj_clear_saved_item): New function.
3183 (update_dynamic_varobj_children): Move python-related code to
3184 py-varobj.c.
3185 (free_variable): Call varobj_clear_saved_item and
3186 varobj_iter_delete.
3187
e5250216
YQ
31882014-06-12 Pedro Alves <pedro@codesourcery.com>
3189 Yao Qi <yao@codesourcery.com>
3190
3191 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3192 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3193 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3194 (py-varobj.o): New rule.
3195 * python/py-varobj.c: New file.
3196 * python/python-internal.h (py_varobj_get_iterator): Declare.
3197 * varobj-iter.h: New file.
3198 * varobj.c: Include "varobj-iter.h"
3199 (struct varobj) <child_iter>: Change its type from "PyObject *"
3200 to "struct varobj_iter *".
3201 <saved_item>: Likewise.
3202 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3203 [HAVE_PYTHON] (varobj_get_iterator): New function.
3204 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3205 python-specific code to python/py-varobj.c.
3206 (install_visualizer): Call varobj_iter_delete instead of
3207 Py_XDECREF.
3208 * varobj.h (varobj_ensure_python_env): Declare.
3209
5a2e0d6e
YQ
32102014-06-12 Yao Qi <yao@codesourcery.com>
3211
3212 * varobj.c (struct varobj_item): New structure.
3213 (create_child_with_value): Update declaration.
3214 (varobj_add_child): Replace arguments 'name' and 'value' with
3215 'item'. All callers updated.
3216 (install_dynamic_child): Likewise.
3217 (update_dynamic_varobj_children): Likewise.
3218 (varobj_add_child): Likewise.
3219 (create_child_with_value): Likewise.
3220
919b9a93
JB
32212014-06-11 Joel Brobecker <brobecker@adacore.com>
3222
3223 * NEWS: Create a new section for the next release branch.
3224 Rename the section of the current branch, now that it has
3225 been cut.
3226
71a55bdf
JB
32272014-06-11 Joel Brobecker <brobecker@adacore.com>
3228
3229 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3230 * version.in: Bump version to 7.8.50.DATE-cvs.
3231
364fe1f7
PA
32322014-06-11 Pedro Alves <palves@redhat.com>
3233
3234 PR remote/17028
3235 * ser-mingw.c (net_windows_socket_check_pending): New function.
3236 (net_windows_select_thread): Ignore spurious wakeups. Use
3237 net_windows_socket_check_pending.
3238 (net_windows_wait_handle): Check for pending events with
3239 ioctlsocket, through net_windows_socket_check_pending, instead of
3240 checking the socket's event.
3241
5a6c7709
SC
32422014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3243
3244 * python/python-internal.h (gdb_PyObject_GetAttrString)
3245 (gdb_PyObject_HasAttrString): New inline function definitions.
3246 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3247 char * of the second argument to PyObject_GetAttrString.
74228e77 3248
0e58ee40
JB
32492014-06-10 Joel Brobecker <brobecker@adacore.com>
3250
3251 * serial.c (serial_write): Fix index of character to be printed
3252 in call to serial_logchar when serial debug traces are enabled.
3253
d190df30
JB
32542014-06-10 Joel Brobecker <brobecker@adacore.com>
3255
3256 * gdbtypes (resolve_dynamic_range): Add function description.
3257
b4b01d36
PA
32582014-06-09 Pedro Alves <palves@redhat.com>
3259
3260 * linux-nat.c (linux_child_follow_fork): Initialize status with
3261 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3262 inner block. Only pass the signal to PTRACE_DETACH if in pass
3263 state.
3264
3657956b
GB
32652014-06-09 Gary Benson <gbenson@redhat.com>
3266
3267 * common/signals.c (gdb_signal_from_host): Reorder to separate
3268 the always-available ANSI-standard signals from the signals that
3269 require checking.
3270 (do_gdb_signal_to_host): Likewise.
3271 * proc-events.c (signal_table): Likewise.
3272
c077881a
HZ
32732014-06-08 Hui Zhu <hui@codesourcery.com>
3274
3275 * common/linux-ptrace.c (linux_disable_event_reporting): New
3276 function.
3277 * common/linux-ptrace.h (linux_disable_event_reporting): New
3278 declaration.
3279 * linux-nat.c (linux_child_follow_fork): Do a single step before
3280 detach.
3281
4186eb54
KS
32822014-06-07 Keith Seitz <keiths@redhat.com>
3283
3284 Revert:
3285 PR c++/16253
3286 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3287 from symbol_matches_domain in symtab.c. All local callers
3288 of symbol_matches_domain updated.
3289 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3290 search STRUCT_DOMAIN.
3291 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3292 independently. standard_lookup will do that automatically.
3293 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3294 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3295 (cp_lookup_symbol_in_namespace): Likewise.
3296 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3297 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3298 may return a STRUCT_DOMAIN match.
3299 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3300 * cp-support.c: Include language.h.
3301 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3302 VAR_DOMAIN.
3303 * psymtab.c (match_partial_symbol): Compare the requested
3304 domain with the symbol's domain directly.
3305 (lookup_partial_symbol): Likewise.
3306 * symtab.c (lookup_symbol_in_language): Explain when/why
3307 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3308 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3309 appropriate languages.
3310 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3311 and moved to ada-lang.c
3312 (lookup_block_symbol): Explain that this function only returns
3313 symbol matching the requested DOMAIN.
3314 Compare the requested domain with the symbol's domain directly.
3315 (iterate_over_symbols): Compare the requested domain with the
3316 symbol's domain directly.
3317 * symtab.h (symbol_matches_domain): Remove.
3318
25326a28 33192014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3320
3321 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3322 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3323 (gdbscm_guile_version_is_at_least): Declare.
3324 (gdbscm_scm_string_to_int): Declare.
3325 * guile/guile.c (gdbscm_guile_major_version): New global.
3326 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3327 (guile_datadir): New static global.
3328 (gdbscm_guile_data_directory): New function.
3329 (initialize_scheme_side): Update.
3330 (misc_guile_functions): Add guile-data-directory.
3331 (initialize_gdb_module): Fetch guile version number.
3332 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3333 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3334 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3335 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3336 comments.
3337 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3338 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3339 * guile/scm-value.c (gdbscm_value_to_string): Only call
3340 scm_port_conversion_strategy if Guile version >= 2.0.6.
3341
0a770bb2 33422014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3343
3344 * main.c (print_gdb_help): Add -q and --silent.
3345
73ba372c
GB
33462014-06-06 Gary Benson <gbenson@redhat.com>
3347
3348 * common/signals.c: Remove preprocessor conditionals for
3349 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3350 SIGSEGV and SIGTERM.
3351 * proc-events.c: Likewise.
3352
c33b2f12
MM
33532014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3354
3355 * symfile.c (symfile_free_objfile): Remove restriction to
3356 OBJF_USERLOADED.
3357 * symfile-mem.c (symbol_file_add_from_memory): Call
3358 add_target_sections_of_objfile.
3359
fb934770
LC
33602014-06-05 Ludovic Courtès <ludo@gnu.org>
3361
3362 * guile/scm-value.c (gdbscm_history_append_x): Use
3363 'vlscm_get_value_smob_arg_unsafe' instead of
3364 'vlscm_scm_to_value'.
3365
6ef284bd
SM
33662014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3367
3368 PR mi/15806
3369 * utils.c (printchar): Don't escape at all if quoter is NUL.
3370 Update function documentation to clarify effect of parameter
3371 QUOTER.
3372 * remote.c (escape_buffer): Pass '\\' as the quoter to
3373 fputstrn_unfiltered.
3374 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3375 generate the output.
3376 (mi_solib_unloaded): Same.
3377
270c9937
JB
33782014-06-05 Joel Brobecker <brobecker@adacore.com>
3379
3380 * development.sh: Delete.
3381 * Makefile.in (config.status): Adjust dependency on development.sh.
3382 * configure.ac: Adjust development.sh source call.
3383 * configure: Regenerate.
3384
16f691fb
DE
33852014-06-04 Doug Evans <xdje42@gmail.com>
3386
3387 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3388 is_scheme_bkpt, spec.
3389 (bpscm_make_breakpoint_smob): Initialize new members.
3390 (gdbscm_create_breakpoint_x): Split into two ...
3391 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3392 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3393 (scheme_function breakpoint_functions): Update.
3394 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3395 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3396 register-breakpoint!.
3397
ef7cab6b
JB
33982014-06-04 Joel Brobecker <brobecker@adacorer.com>
3399
3400 PR server/17023
3401 * mem-break.c (z_type_supported): Return zero if
3402 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3403
012370f6
TT
34042014-06-04 Tom Tromey <tromey@redhat.com>
3405
3406 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3407 value_from_contents_and_address_unresolved.
3408 (ada_template_to_fixed_record_type_1): Likewise.
3409 (ada_which_variant_applies): Likewise.
3410 * value.h (value_from_contents_and_address_unresolved): Declare.
3411 * value.c (value_from_contents_and_address_unresolved): New
3412 function.
3413 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3414 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3415 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3416
92e2a17f
TT
34172014-06-04 Tom Tromey <tromey@redhat.com>
3418
3419 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3420
c0939df1
TT
34212014-06-04 Tom Tromey <tromey@redhat.com>
3422
3423 * procfs.c (procfs_attach): Make "args" const.
3424 * windows-nat.c (windows_attach): Make "args" const.
3425 * nto-procfs.c (procfs_attach): Make "args" const.
3426 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3427 * go32-nat.c (go32_attach): Make "args" const.
3428 * gnu-nat.c (gnu_attach): Make "args" const.
3429 * darwin-nat.c (darwin_attach): Make "args" const.
3430 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3431 * linux-nat.c (linux_nat_attach): Make "args" const.
3432 * remote.c (extended_remote_attach_1, extended_remote_attach):
3433 Make "args" const.
3434 * target.h (struct target_ops) <to_attach>: Make "args" const.
3435 (find_default_attach): Likewise.
3436 * utils.c (parse_pid_to_attach): Make "args" const.
3437 * utils.h (parse_pid_to_attach): Update.
3438
8eaff7cd
TT
34392014-06-04 Tom Tromey <tromey@redhat.com>
3440
3441 * target-delegates.c: Rebuild.
3442 * target.c (default_thread_address_space): New function.
3443 (target_thread_address_space): Simplify.
3444 * target.h (struct target_ops) <to_thread_address_space>: Add
3445 TARGET_DEFAULT_FUNC.
3446
1913f160
DE
34472014-06-04 Doug Evans <xdje42@gmail.com>
3448
3449 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3450
70ad5bff
MM
34512014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3452
3453 * record-btrace.c: Include event-loop.h and inf-loop.h.
3454 (record_btrace_resume_exec_dir)
3455 (record_btrace_async_inferior_event_handler)
3456 (record_btrace_handle_async_inferior_event): New.
3457 (record_btrace_open): Create async event handler.
3458 (record_btrace_close): Delete async event handler.
3459 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3460 Mark async event handler.
3461 (record_btrace_execution_direction): New.
3462 (init_record_btrace_ops): Initialize to_execution_direction.
3463
b6210538
DE
34642014-06-03 Doug Evans <xdje42@gmail.com>
3465
3466 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3467 (gdbscm_make_parameter): Ditto.
3468
a5b1fd27
DE
34692014-06-03 Doug Evans <dje@google.com>
3470
3471 * exec.c (exec_close_1): Call clear_section_table instead of
3472 resize_section_table.
3473 (clear_section_table): New function.
3474 (resize_section_table): Make static. Rename arg num_added to
3475 adjustment.
3476 * exec.h (clear_section_table): Declare.
3477 (resize_section_table): Delete.
3478 * progspace.c (release_program_space): Call clear_section_table
3479 instead of resize_section_table.
3480
0c6e92a5
SC
34812014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3482
3483 * NEWS (Python Scripting): Add entry about the new xmethods
3484 feature.
3485
883964a7
SC
34862014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3487
3488 * python/py-xmethods.c: New file.
3489 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3490 (objfpy_dealloc): XDECREF on the new xmethods field.
3491 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3492 field.
3493 (objfpy_get_xmethods): New function.
3494 (objfile_getset): New entry 'xmethods'.
3495 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3496 (pspy_dealloc): XDECREF on the new xmethods field.
3497 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3498 field.
3499 (pspy_get_xmethods): New function.
3500 (pspace_getset): New entry 'xmethods'.
3501 * python/python-internal.h: Add declarations for new functions.
3502 * python/python.c (_initialize_python): Invoke
3503 gdbpy_initialize_xmethods.
3504 * python/lib/gdb/__init__.py (xmethods): New
3505 attribute.
3506 * python/lib/gdb/xmethod.py: New file.
3507 * python/lib/gdb/command/xmethods.py: New file.
3508
58992dc5
SC
35092014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3510
3511 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3512 best match method returned by find_overload_match is an xmethod.
3513 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3514 the best matching operator returned by find_overload_match is an
3515 xmethod.
3516 * valops.c: #include "extension.h".
3517 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3518 Return void. The list of matching source methods is returned in
3519 "fn_list" and a vector of matching debug method workers is
3520 returned in "xm_worker_vec". Update all callers.
3521 (value_find_oload_method_list): Likewise.
3522 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3523 non-NULL, then the index of the best matching method in this
3524 vector is returned. Update all callers.
3525 (find_overload_match): Include xmethods while performing overload
3526 resolution.
3527
e81e7f5e
SC
35282014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3529
3530 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3531 * extension-priv.h (struct extension_language_ops): Add the
3532 xmethod interface.
3533 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3534 get_matching_xmethod_workers, get_xmethod_argtypes,
3535 invoke_xmethod, free_xmethod_worker,
3536 free_xmethod_worker_vec): New functions.
3537 * extension.h: #include "common/vec.h".
3538 New function declarations.
3539 (struct xmethod_worker): New struct.
3540 (VEC (xmethod_worker_ptr)): New vector type.
3541 (xmethod_worker_ptr): New typedef.
3542 (xmethod_worker_vec): Likewise.
3543 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3544 builtin_type.
3545 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3546 (struct builtin_type): New field "xmethod".
3547 * valarith.c (value_ptradd): Assert that the value argument is not
3548 lval_xcallable.
3549 * valops.c (value_must_coerce_to_target): Return 0 for
3550 lval_xcallable values.
3551 * value.c (struct value): New field XM_WORKER in the field
3552 LOCATION.
3553 (value_address, value_raw_address): Return 0 for lval_xcallable
3554 values.
3555 (set_value_address): Assert that the value is not an
3556 lval_xcallable.
3557 (value_free): Free the associated xmethod worker when freeing
3558 lval_xcallable values.
3559 (set_value_component_location): Assert that the WHOLE value is not
3560 lval_xcallable.
3561 (value_of_xmethod, call_xmethod): New functions.
3562 * value.h: Declare "struct xmethod_worker".
3563 Declare new functions value_of_xmethod, call_xmethod.
3564
ef370185
JB
35652014-06-03 Joel Brobecker <brobecker@adacore.com>
3566 Pedro Alves <palves@redhat.com>
3567
3568 PR breakpoints/17000
3569 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3570 New function, extracted from software_breakpoint_inserted_here_p.
3571 (software_breakpoint_inserted_here_p): Replace factored out code
3572 by call to find_non_raw_software_breakpoint_inserted_here.
3573 (bp_target_info_copy_insertion_state): New function.
3574 (bkpt_insert_location): Handle the case of a single-step
3575 breakpoint already inserted at the same address.
3576 (bkpt_remove_location): Handle the case of a single-step
3577 breakpoint still inserted at the same address.
3578 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3579 breakpoint already inserted at the same address.
3580 (deprecated_remove_raw_breakpoint): Handle the case of a
3581 non-raw breakpoint still inserted at the same address.
3582 (find_single_step_breakpoint): New function, extracted from
3583 single_step_breakpoint_inserted_here_p.
3584 (find_single_step_breakpoint): New function,
3585 factored out from single_step_breakpoint_inserted_here_p.
3586 (single_step_breakpoint_inserted_here_p): Reimplement.
3587
1e2ccb61
BM
35882014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3589
3590 Pushed by Joel Brobecker <brobecker@adacore.com>
3591 * source.c (show_substitute_path_command): Fix display of matching
3592 substitution rules.
3593
d3448d85
GB
35942014-06-03 Gary Benson <gbenson@redhat.com>
3595
3596 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3597
06eb1586
DE
35982014-06-02 Doug Evans <xdje42@gmail.com>
3599
3600 Add parameter support for Guile.
3601 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3602 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3603 (scm-param.o): New rule.
3604 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3605 (gdbscm_misc_error): Declare.
3606 (gdbscm_canonicalize_command_name): Declare.
3607 (gdbscm_scm_to_host_string): Declare.
3608 (gdbscm_scm_from_host_string): Declare.
3609 (gdbscm_initialize_parameters): Declare.
3610 * guile/guile.c (initialize_gdb_module): Call
3611 gdbscm_initialize_parameters.
3612 * guile/lib/gdb.scm: Export parameter symbols.
3613 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3614 cmdscm_canonicalize_name and made public. All callers updated.
3615 * guile/scm-exception.c (gdbscm_misc_error): New function.
3616 * guile/scm-param.c: New file.
3617 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3618 (gdbscm_scm_to_host_string): New function.
3619 (gdbscm_scm_from_host_string): New function.
3620 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3621
e698b8c4
DE
36222014-06-02 Doug Evans <xdje42@gmail.com>
3623
3624 Add command support for Guile.
3625 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3626 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3627 (scm-cmd.o): New rule.
3628 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3629 (gdbscm_user_error_p): Declare.
3630 (gdbscm_parse_command_name): Declare.
3631 (gdbscm_valid_command_class_p): Declare.
3632 (gdbscm_initialize_commands): Declare.
3633 * guile/guile.c (initialize_gdb_module): Call
3634 gdbscm_initialize_commands.
3635 * guile/lib/gdb.scm: Export command symbols.
3636 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3637 (throw-user-error): New function.
3638 * guile/scm-cmd.c: New file.
3639 * guile/scm-exception.c (user_error_symbol): New static global.
3640 (gdbscm_user_error_p): New function.
3641 (gdbscm_initialize_exceptions): Set user_error_symbol.
3642 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3643
fb1f94b0
PM
36442014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3645
3646 * top.c (command_loop): Handle comments here...
3647 (command_line_input): ... not here.
3648
ded03782
DE
36492014-06-02 Doug Evans <xdje42@gmail.com>
3650
3651 Add progspace support for Guile.
3652 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3653 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3654 (scm-progspace.o): New rule.
3655 * guile/guile-internal.h (pspace_smob): New typedef.
3656 (psscm_pspace_smob_pretty_printers): Declare.
3657 (psscm_pspace_smob_from_pspace): Declare.
3658 (psscm_scm_from_pspace): Declare.
3659 * guile/guile.c (initialize_gdb_module): Call
3660 gdbscm_initialize_pspaces.
3661 * guile/lib/gdb.scm: Export progspace symbols.
3662 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3663 support.
3664 (append-pretty-printer!): Ditto.
3665 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3666 Implement.
3667 * guile/scm-progspace.c: New file.
3668
397998fc
AM
36692014-06-03 Alan Modra <amodra@gmail.com>
3670
3671 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3672 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3673
6aa5f3a6
DE
36742014-06-02 Doug Evans <dje@google.com>
3675
3676 Add support for skeletonless type units.
3677 * dwarf2read.c (struct dwarf2_per_objfile): New member
3678 n_allocated_type_units.
3679 (struct dwarf2_per_objfile) <tu_stats>: New member
3680 nr_all_type_units_reallocs.
3681 (create_signatured_type_table_from_index): Initialize
3682 n_allocated_type_units
3683 (create_all_type_units): Ditto.
3684 (add_type_unit): Move up in file. New arg slot.
3685 All callers updated. Increase space for all_type_units more
3686 efficiently.
3687 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3688 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3689 (lookup_dwp_signatured_type): Ditto.
3690 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3691 All callers updated.
3692 (build_type_psymtabs_1): Leave type_unit_groups as
3693 NULL if no TUs present.
3694 (print_tu_stats): New function.
3695 (process_skeletonless_type_unit): New function.
3696 (process_dwo_file_for_skeletonless_type_units): New
3697 function.
3698 (process_skeletonless_type_units): New function.
3699 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3700 Call print tu_stats if debugging enabled.
3701
41fac0cf
PA
37022014-06-02 Pedro Alves <palves@redhat.com>
3703
3704 * breakpoint.c (build_target_command_list): Don't build a command
3705 list if we have any duplicate location that isn't a dprintf.
3706
cd1608cc
PA
37072014-06-02 Pedro Alves <palves@redhat.com>
3708
3709 * breakpoint.c (dprintf_breakpoint_hit): New function.
3710 (initialize_breakpoint_ops): Install it as dprintf's
3711 breakpoint_hit method.
3712
486ef3b9
JB
37132014-06-02 Joel Brobecker <brobecker@adacore.com>
3714
3715 * source.c (substitute_path_rule_matches): Simplify using
3716 filename_ncmp instead of FILENAME_CMP.
3717
230cd560
JB
37182014-06-02 Joel Brobecker <brobecker@adacore.com>
3719
3720 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3721
16954d5d
LC
37222014-06-01 Ludovic Courtès <ludo@gnu.org>
3723
3724 * configure.ac: When Guile is available, check for the
3725 availability of 'scm_new_smob'.
3726 * configure, config.h.in: Regenerate.
3727 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3728 function.
3729
53e8a631
AB
37302014-05-30 Andrew Burgess <aburgess@broadcom.com>
3731
3732 * frame.c (struct frame_info): Add stop_string field.
3733 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3734 (get_prev_frame_always): Old content moved into
3735 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3736 TRY_CATCH, handle MEMORY_ERROR exceptions.
3737 (frame_stop_reason_string): New function definition.
3738 * frame.h (unwind_stop_reason_to_string): Extend comment to
3739 mention frame_stop_reason_string.
3740 (frame_stop_reason_string): New function declaration.
3741 * stack.c (frame_info): Switch to frame_stop_reason_string.
3742 (backtrace_command_1): Switch to frame_stop_reason_string.
3743 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3744 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3745 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3746
70e38b8e
AB
37472014-05-30 Andrew Burgess <aburgess@broadcom.com>
3748
3749 * frame.c (frame_stop_reason_string): Rename to ...
3750 (unwind_stop_reason_to_string): this.
3751 * frame.h (frame_stop_reason_string): Rename to ...
3752 (unwind_stop_reason_to_string): this.
3753 * stack.c (frame_info): Update call to frame_stop_reason_string.
3754 (backtrace_command_1): Likewise.
3755 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3756 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3757
938f0e2f
AB
37582014-05-30 Andrew Burgess <aburgess@broadcom.com>
3759
3760 * frame.c (remove_prev_frame): New function.
3761 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3762 remove_prev_frame.
3763
a09dd441
PA
37642014-05-29 Pedro Alves <palves@redhat.com>
3765
3766 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3767 and make it const. When a single-step decays to a continue,
3768 clear 'step', not 'hw_step'. Pass whether the caller wanted
3769 to step to user_visible_resume_ptid, not what we ask the
3770 target to do.
3771
bdc36728
PA
37722014-05-29 Pedro Alves <palves@redhat.com>
3773
3774 * infrun.c (process_event_stop_test, handle_step_into_function)
3775 (handle_step_into_function_backward): Adjust.
3776 Don't set the even thread's stop_step and call stop_waiting before
3777 calling end_stepping_range. Instead do that ...
3778 (end_stepping_range): ... here. Take an ecs pointer parameter.
3779
22bcd14b
PA
37802014-05-29 Pedro Alves <palves@redhat.com>
3781
3782 * infrun.c (stop_stepping): Rename to ...
3783 (stop_waiting): ... this.
3784 (proceed): Update comment.
3785 (process_event_stop_test, handle_inferior_event)
3786 (handle_signal_stop, handle_step_into_function)
3787 (handle_step_into_function_backward): Update.
3788
4ae57c05
PA
37892014-05-29 Pedro Alves <palves@redhat.com>
3790
3791 * infcall.c (run_inferior_call): Don't check whether the current
3792 thread is running after the proceed call.
3793
329ea579
PA
37942014-05-29 Pedro Alves <palves@redhat.com>
3795 Tom Tromey <tromey@redhat.com>
3796
3797 * NEWS: Mention "maint set target-async", "set mi-async", and that
3798 background execution commands are now always available.
3799 * target.h (target_async_permitted): Update comment.
3800 * target.c (target_async_permitted, target_async_permitted_1):
3801 Default to 1.
3802 (set_target_async_command): Rename to ...
3803 (maint_set_target_async_command): ... this.
3804 (show_target_async_command): Rename to ...
3805 (maint_show_target_async_command): ... this.
3806 (_initialize_target): Adjust.
3807 * infcmd.c (prepare_execution_command): Make extern.
3808 * inferior.h (prepare_execution_command): Declare.
3809 * infrun.c (set_observer_mode): Leave target async alone.
3810 * mi/mi-interp.c (mi_interpreter_init): Install
3811 mi_on_sync_execution_done as sync_execution_done observer.
3812 (mi_on_sync_execution_done): New function.
3813 (mi_execute_command_input_handler): Don't print the prompt if we
3814 just started a synchronous command with an async target.
3815 (mi_on_resume): Check sync_execution before printing prompt.
3816 * mi/mi-main.h (mi_async_p): Declare.
3817 * mi/mi-main.c: Include gdbcmd.h.
3818 (mi_async_p): New function.
3819 (mi_async, mi_async_1): New globals.
3820 (set_mi_async_command, show_mi_async_command, mi_async): New
3821 functions.
3822 (exec_continue): Call prepare_execution_command.
3823 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3824 (mi_execute_async_cli_command): Use mi_async_p.
3825 (_initialize_mi_main): Install "set mi-async". Make
3826 "target-async" a deprecated alias.
3827
92bcb5f9
PA
38282014-05-29 Pedro Alves <palves@redhat.com>
3829
3830 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3831 (_initialize_cli_interp): Adjust.
3832 * event-loop.c: Include "observer.h".
3833 (start_event_loop): Notify 'command_error' observers instead of
3834 calling display_gdb_prompt. Remove FIXME comment.
3835 * event-top.c (display_gdb_prompt): Remove call into the
3836 interpreters.
3837 * inf-loop.c: Include "observer.h".
3838 (inferior_event_handler): Notify 'command_error' observers instead
3839 of calling display_gdb_prompt.
3840 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3841 observers instead of calling display_gdb_prompt.
3842 * interps.c (interp_set): Don't call display_gdb_prompt.
3843 (current_interp_display_prompt_p): Delete.
3844 * interps.h (interp_prompt_p): Delete declaration.
3845 (interp_prompt_p_ftype): Delete.
3846 (struct interp_procs) <prompt_proc_p>: Delete field.
3847 (current_interp_display_prompt_p): Delete declaration.
3848 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3849 (_initialize_mi_interp): Adjust.
3850 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3851 'command_error' observers.
3852 (tui_on_sync_execution_done, tui_on_command_error): New
3853 functions.
3854 (tui_display_prompt_p): Delete.
3855 (_initialize_tui_interp): Adjust.
3856
fd664c91
PA
38572014-05-29 Pedro Alves <palves@redhat.com>
3858
3859 PR gdb/13860
3860 * cli/cli-interp.c: Include infrun.h and observer.h.
3861 (cli_uiout, cli_interp): New globals.
3862 (cli_on_signal_received, cli_on_end_stepping_range)
3863 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3864 functions.
3865 (cli_interpreter_init): Install them as 'end_stepping_range',
3866 'signal_received' 'signal_exited', 'exited' and 'no_history'
3867 observers.
3868 (_initialize_cli_interp): Remove cli_interp local.
3869 * infrun.c (handle_inferior_event): Call the several stop reason
3870 observers instead of printing the stop reason directly.
3871 (end_stepping_range): New function.
3872 (print_end_stepping_range_reason, print_signal_exited_reason)
3873 (print_exited_reason, print_signal_received_reason)
3874 (print_no_history_reason): Make static, and add an uiout
3875 parameter. Print to that instead of to CURRENT_UIOUT.
3876 * infrun.h (print_end_stepping_range_reason)
3877 (print_signal_exited_reason, print_exited_reason)
3878 (print_signal_received_reason print_no_history_reason): New
3879 declarations.
3880 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3881 'mi_uiout'.
3882 <cli_uiout>: New field.
3883 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3884 uiout for CLI output. Install 'signal_received',
3885 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3886 observers.
3887 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3888 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3889 (mi_on_no_history): New functions.
3890 (ui_out_free_cleanup): Delete function.
3891 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3892 instead use the one already stored in the MI interpreter data.
3893 (mi_ui_out): Adjust.
3894 * tui/tui-interp.c: Include infrun.h and observer.h.
3895 (tui_interp): New global.
3896 (tui_on_signal_received, tui_on_end_stepping_range)
3897 (tui_on_signal_exited, tui_on_exited)
3898 (tui_on_no_history): New functions.
3899 (tui_init): Install them as 'end_stepping_range',
3900 'signal_received' 'signal_exited', 'exited' and 'no_history'
3901 observers.
3902 (_initialize_tui_interp): Delete tui_interp local.
3903
8817a6f2
PA
39042014-05-29 Pedro Alves <palves@redhat.com>
3905
3906 PR gdb/15713
3907 * linux-nat.c (linux_nat_resume_callback): Rename the second
3908 parameter to 'except'. Skip LP if it points to EXCEPT.
3909 (linux_nat_resume): Don't mark the event lwp as not stopped
3910 before resuming sibling lwps. Instead ask
3911 linux_nat_resume_callback to skip the event lwp. Mark it as not
3912 stopped after actually resuming it.
3913 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3914 resuming it.
3915 (wait_lwp): Mark the lwp as stopped here.
3916 (stop_wait_callback): Mark the lwp as not stopped right after
3917 resuming it. Don't mark lwps as stopped here.
3918 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3919 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3920
251bde03
PA
39212014-05-29 Pedro Alves <palves@redhat.com>
3922
3923 PR PR15693
3924 * infrun.c (resume): Determine how much to resume depending on
3925 whether the caller wanted a step, not whether we can hardware step
3926 the target. Mark all threads that we intend to run as running,
3927 unless we're calling an inferior function.
3928 (normal_stop): If the thread is running an infcall, don't finish
3929 thread state.
3930 * target.c (target_resume): Don't mark threads as running here.
3931
7f3c0343
JB
39322014-05-28 Joel Brobecker <brobecker@adacore.com>
3933
3934 * serial.c (_initialize_serial): Remove support for
3935 the "set remotebaud" and "show remotebaud" commands.
3936 * NEWS: Add entry documenting the removal of that command.
3937
ee34b3f9
YQ
39382014-05-28 Yao Qi <yao@codesourcery.com>
3939
3940 * charset.c: Fix typo in comments.
3941
add6c04d
GB
39422014-05-27 Gary Benson <gbenson@redhat.com>
3943
3944 * utils.c (internal_vproblem): Prompt for a bug report.
3945
92c48fc5
AW
39462014-05-26 Andy Wingo <wingo@igalia.com>
3947
3948 * guile/scm-arch.c (arscm_mark_arch_smob):
3949 * guile/scm-block.c (bkscm_mark_block_smob)
3950 (bkscm_mark_block_syms_progress_smob):
3951 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3952 * guile/scm-exception.c (exscm_mark_exception_smob):
3953 * guile/scm-frame.c (frscm_mark_frame_smob):
3954 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3955 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3956 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3957 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3958 (ppscm_mark_pretty_printer_worker_smob):
3959 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3960 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3961 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3962 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3963 mark functions.
3964 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3965 function.
3966
b2715b27
AW
39672014-05-26 Andy Wingo <wingo@igalia.com>
3968 Doug Evans <xdje42@gmail.com>
3969
3970 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3971 empty_base_class. All uses updated.
3972 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3973 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3974 Adapt all callers.
3975 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3976 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3977 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3978 (gdbscm_gsmob_has_property_p, add_property_name)
3979 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3980 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3981 (gdb-object-has-property?, gdb-object-properties): Remove.
3982 (gdb-object-kind): Renamed from gsmob-kind.
3983
214ab2da
AW
39842014-05-26 Andy Wingo <wingo@igalia.com>
3985
3986 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3987 * configure: Regenerate.
3988
589fdceb
MM
39892014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3990
3991 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3992
67b5c0c1
MM
39932014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3994
3995 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3996 (replay_memory_access_read_only, replay_memory_access_read_write)
3997 (replay_memory_access_types, replay_memory_access)
3998 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3999 (cmd_set_record_btrace, cmd_show_record_btrace)
4000 (cmd_show_replay_memory_access): New.
4001 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4002 (record_btrace_remove_breakpoint): Replace
4003 record_btrace_allow_memory_access with replay_memory_access.
4004 (_initialize_record_btrace): Add commands.
4005 * NEWS: Announce it.
4006
036cd381
RR
40072014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4008
4009 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4010
c77c1e42
RR
40112014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4012
4013 * MAINTAINERS (Write After Approval): Move self back from
4014 paper trail.
4015
45741a9c
PA
40162014-05-22 Pedro Alves <palves@redhat.com>
4017
4018 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4019 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4020 (disable_randomization, enum exec_direction_kind)
4021 (execution_direction, stop_registers, start_remote)
4022 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4023 (wait_for_inferior, normal_stop, get_last_target_status)
4024 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4025 (insert_step_resume_breakpoint_at_sal)
4026 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4027 (set_step_info, print_stop_event, signal_stop_state)
4028 (signal_print_state, signal_pass_state, signal_stop_update)
4029 (signal_print_update, signal_pass_update)
4030 (update_signals_program_target, clear_exit_convenience_vars)
4031 (displaced_step_dump_bytes, update_observer_mode)
4032 (signal_catch_update, gdb_signal_from_command): Move
4033 declarations ...
4034 * infrun.h: ... to this new file.
4035 * amd64-tdep.c: Include infrun.h.
4036 * annotate.c: Include infrun.h.
4037 * arch-utils.c: Include infrun.h.
4038 * arm-linux-tdep.c: Include infrun.h.
4039 * arm-tdep.c: Include infrun.h.
4040 * break-catch-sig.c: Include infrun.h.
4041 * breakpoint.c: Include infrun.h.
4042 * common/agent.c: Include infrun.h instead of inferior.h.
4043 * corelow.c: Include infrun.h.
4044 * event-top.c: Include infrun.h.
4045 * go32-nat.c: Include infrun.h.
4046 * i386-tdep.c: Include infrun.h.
4047 * inf-loop.c: Include infrun.h.
4048 * infcall.c: Include infrun.h.
4049 * infcmd.c: Include infrun.h.
4050 * infrun.c: Include infrun.h.
4051 * linux-fork.c: Include infrun.h.
4052 * linux-nat.c: Include infrun.h.
4053 * linux-thread-db.c: Include infrun.h.
4054 * monitor.c: Include infrun.h.
4055 * nto-tdep.c: Include infrun.h.
4056 * procfs.c: Include infrun.h.
4057 * record-btrace.c: Include infrun.h.
4058 * record-full.c: Include infrun.h.
4059 * remote-m32r-sdi.c: Include infrun.h.
4060 * remote-mips.c: Include infrun.h.
4061 * remote-notif.c: Include infrun.h.
4062 * remote-sim.c: Include infrun.h.
4063 * remote.c: Include infrun.h.
4064 * reverse.c: Include infrun.h.
4065 * rs6000-tdep.c: Include infrun.h.
4066 * s390-linux-tdep.c: Include infrun.h.
4067 * solib-irix.c: Include infrun.h.
4068 * solib-osf.c: Include infrun.h.
4069 * solib-svr4.c: Include infrun.h.
4070 * target.c: Include infrun.h.
4071 * top.c: Include infrun.h.
4072 * windows-nat.c: Include infrun.h.
4073 * mi/mi-interp.c: Include infrun.h.
4074 * mi/mi-main.c: Include infrun.h.
4075 * python/py-threadevent.c: Include infrun.h.
4076
98eb56a4
PA
40772014-05-22 Pedro Alves <palves@redhat.com>
4078
4079 * infrun.c (handle_inferior_event): Store the exit code for
4080 --return-child-result here, instead of ...
4081 (print_exited_reason): ... here.
4082
17b2616c
PA
40832014-05-21 Pedro Alves <palves@redhat.com>
4084
4085 PR gdb/13860
4086 * gdbthread.h (struct thread_control_state): New field
4087 `command_interp'.
4088 * infrun.c (follow_fork): Copy the new thread control field to the
4089 child fork thread.
4090 (clear_proceed_status_thread): Clear the new thread control field.
4091 (proceed): Set the new thread control field.
4092 * interps.h (command_interp): Declare.
4093 * interps.c (command_interpreter): New global.
4094 (command_interp): New function.
4095 (interp_exec): Set `command_interpreter' while here.
4096 * cli-out.c (cli_uiout_dtor): New function.
4097 (cli_ui_out_impl): Install it.
4098 * mi/mi-interp.c: Include cli-out.h.
4099 (mi_cmd_interpreter_exec): Add comment.
4100 (restore_current_uiout_cleanup): New function.
4101 (ui_out_free_cleanup): New function.
4102 (mi_on_normal_stop): If finishing an execution command started by
4103 a CLI command, or any kind of breakpoint-like event triggered,
4104 print the stop event to the output (CLI) stream.
4105 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4106
5166082f
PA
41072014-05-21 Pedro Alves <palves@redhat.com>
4108
4109 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4110 current source line having changed.
4111 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4112 * infrun.c (normal_stop): Adjust call to
4113 set_current_sal_from_frame.
4114 * source.c (clear_lines_listed_range): New function.
4115 (set_current_source_symtab_and_line, identify_source_line): Clear
4116 the lines listed range.
4117 (line_info): Handle the first "info line" after the current source
4118 line having changed.
4119 * stack.c (print_stack_frame): Remove center handling.
4120 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4121 center sal.line.
4122
c1ee2fb3
PA
41232014-05-21 Pedro Alves <palves@redhat.com>
4124
4125 * inf-child.c (inf_child_mourn_inferior): New function.
4126 * inf-child.h (inf_child_mourn_inferior): New declaration.
4127 * darwin-nat.c (darwin_mourn_inferior): Use
4128 inf_child_mourn_inferior.
4129 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4130 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4131 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4132 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4133 * windows-nat.c (windows_mourn_inferior): Likewise.
4134
5c6d4fb2
DE
41352014-05-21 Doug Evans <xdje42@gmail.com>
4136
250748cb 4137 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4138
4a2722c5
DE
41392014-05-21 Doug Evans <xdje42@gmail.com>
4140
17292b30 4141 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4142 (gdbscm_out_of_range_error): Ditto.
4143 (gdbscm_memory_error): Ditto.
250748cb
DE
4144 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4145 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4146 (gdbscm_out_of_range_error): Update.
4147 (gdbscm_memory_error): Update.
4148 (gdbscm_scm_to_target_string_unsafe): Delete.
4149
6a3cb8e8
PA
41502014-05-21 Pedro Alves <palves@redhat.com>
4151
4152 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4153 globals.
4154 (inf_child_open_target): New function.
4155 (inf_child_open): Use inf_child_open_target to push the target
4156 instead of erroring out.
4157 (inf_child_disconnect, inf_child_close)
4158 (inf_child_maybe_unpush_target): New functions.
4159 (inf_child_target): Install inf_child_disconnect and
4160 inf_child_close. Store a pointer to the returned object.
4161 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4162 declarations.
4163 * target.c (auto_connect_native_target): New global.
4164 (show_default_run_target): New function.
4165 (find_default_run_target): Return NULL if automatically connecting
4166 to the native target is disabled.
4167 (_initialize_target): Install set/show auto-connect-native-target.
4168 * NEWS: Mention "set auto-connect-native-target", and "target
4169 native".
4170 * linux-nat.c (super_close): New global.
4171 (linux_nat_close): Call super_close.
4172 (linux_nat_add_target): Store a pointer to the base class's
4173 to_close method.
4174 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4175 inf_child_maybe_unpush.
4176 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4177 already pushed.
4178 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4179 the inferior. Use inf_child_maybe_unpush_target.
4180 (inf_ttrace_attach): Don't push the target if it is already
4181 pushed.
4182 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4183 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4184 after mourning the inferior. Use inf_child_maybe_unpush_target.
4185 (darwin_attach_pid): Don't push the target if it is already
4186 pushed.
4187 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4188 mourning the inferior. Use inf_child_maybe_unpush_target.
4189 (gnu_detach): Use inf_child_maybe_unpush_target.
4190 * go32-nat.c (go32_create_inferior): Don't push the target if it
4191 is already pushed.
4192 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4193 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4194 (procfs_open): Rename to ...
4195 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4196 comments. Can target_preopen before changing node. Call
4197 inf_child_open_target to push the target explicitly.
4198 (procfs_attach): Don't push the target if it is already pushed.
4199 (procfs_detach): Use inf_child_maybe_unpush_target.
4200 (procfs_create_inferior): Don't push the target if it is already
4201 pushed.
4202 (nto_native_ops): New global.
4203 (procfs_open): Reimplement.
4204 (procfs_native_open): New function.
4205 (init_procfs_targets): Install procfs_native_open as to_open of
4206 "target native". Store a pointer to the "native" target in
4207 nto_native_ops.
4208 * procfs.c (procfs_attach): Don't push the target if it is already
4209 pushed.
4210 (procfs_detach): Use inf_child_maybe_unpush_target.
4211 (procfs_mourn_inferior): Only unpush the target after mourning the
4212 inferior. Use inf_child_maybe_unpush_target.
4213 (procfs_init_inferior): Don't push the target if it is already
4214 pushed.
4215 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4216 if it is already pushed.
4217
930ee1b1
PA
42182014-05-21 Pedro Alves <palves@redhat.com>
4219
4220 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4221 and "procfs" targets are now called "native" instead.
4222
1f5d1b13
PA
42232014-05-21 Pedro Alves <palves@redhat.com>
4224
4225 * go32-nat.c (go32_open): Delete.
4226 (go32_target): Don't override the to_open method.
4227
132f8e03
PA
42282014-05-21 Pedro Alves <palves@redhat.com>
4229
4230 * nto-procfs.c (procfs_can_run): New function.
4231 (nto_procfs_ops): New global.
4232 (init_procfs_targets): New, based on procfs_target. Install
4233 "target native" in addition to "target procfs".
4234 (_initialize_procfs): Call init_procfs_targets instead of adding
4235 the target here.
4236
03c136c3
PA
42372014-05-21 Pedro Alves <palves@redhat.com>
4238
4239 * windows-nat.c (windows_target): Don't override to_shortname,
4240 to_longname or to_doc.
4241
a635d0f3
PA
42422014-05-21 Pedro Alves <palves@redhat.com>
4243
4244 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4245 to_doc.
4246
4f9b5133
PA
42472014-05-21 Pedro Alves <palves@redhat.com>
4248
4249 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4250 to_shortname, to_longname or to_doc.
4251
bc85afde
PA
42522014-05-21 Pedro Alves <palves@redhat.com>
4253
4254 * go32-nat.c (go32_target): Don't override to_shortname,
4255 to_longname or to_doc.
4256
4ebfc96e
PA
42572014-05-21 Pedro Alves <palves@redhat.com>
4258
4259 * inf-child.c (inf_child_open): Remove mention of "child".
4260 (inf_child_target): Rename target to "native" instead of "child".
4261
2648dfed
AA
42622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4263
4264 * Makefile.in (SFILES): Delete "regset.c".
4265 (COMMON_OBS): Delete "regset.o".
4266 * regset.c: Remove.
4267 * regset.h (regset_alloc): Delete prototype.
4268
b13feb94
AA
42692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4270
4271 * sparc-linux-tdep.c (sparc32_linux_gregset)
4272 (sparc32_linux_fpregset): New static regset structures.
4273 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4274 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4275 'fpregset' fields.
4276 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4277 (sparc64_linux_fpregset): New static regset structures.
4278 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4279 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4280 New static regset structures.
4281 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4282 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4283 New static regset structures.
4284 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4285 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4286 New static regset structures.
4287 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4288 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4289 New static regset structures.
4290 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4291
b4fd25c9
AA
42922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4293
4294 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4295 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4296 register maps ("regmaps") from "*regset" to "*regmap". Do this
4297 for all regmap types and variables.
4298 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4299 (sparc32_linux_supply_core_gregset)
4300 (sparc32_linux_collect_core_gregset)
4301 (sparc32_linux_supply_core_fpregset)
4302 (sparc32_linux_collect_core_fpregset): Likewise.
4303 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4304 (sparc_gregmap, sparc_fpregmap): ... these.
4305 (sparc_supply_gregset, sparc_collect_gregset)
4306 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4307 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4308 (_initialize_sparc_nat): Rename regmaps.
4309 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4310 (sparc_gregmap, sparc_fpregmap): ... these.
4311 (sparc_supply_gregset, sparc_collect_gregset)
4312 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4313 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4314 Rename macros to...
4315 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4316 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4317 Likewise.
4318 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4319 Rename to...
4320 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4321 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4322 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4323 regmaps.
4324 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4325 (sparc32_bsd_fpregset): Rename to...
4326 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4327 (sparc32_bsd_fpregmap): ... these.
4328 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4329 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4330 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4331 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4332 (struct sparc_gregmap, struct sparc_fpregmap)
4333 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4334 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4335 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4336 (sparc32_supply_regset, sparc32_collect_gregset)
4337 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4338 prototypes.
4339 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4340 (sparc64_linux_ptrace_gregmap): ... this.
4341 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4342 (_initialize_sparc64_linux_nat): Rename regmaps.
4343 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4344 (sparc64_linux_core_gregmap): ... this.
4345 (sparc64_linux_supply_core_gregset)
4346 (sparc64_linux_collect_core_gregset)
4347 (sparc64_linux_supply_core_fpregset)
4348 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4349 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4350 (sparc64_sol2_fpregset): Rename to...
4351 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4352 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4353 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4354 regmaps.
4355 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4356 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4357 (sparc64_bsd_fpregset): Rename to...
4358 (struct sparc_gregmap, sparc64_sol2_gregmap)
4359 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4360 (sparc64_bsd_fpregmap): ... these.
4361 (sparc64_supply_gregset, sparc64_collect_gregset)
4362 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4363 prototypes.
4364 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4365 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4366 (sparc64fbsd_gregmap): ... this.
4367 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4368 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4369 Rename regmaps.
4370 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4371 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4372 (sparc64nbsd_collect_fpregset): Likewise.
4373 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4374 (sparc64nbsd_gregmap): ... this.
4375 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4376 regmaps.
4377 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4378 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4379 (sparc64obsd_gregmap): ... this.
4380 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4381 regmaps.
4382 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4383 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4384 (sparc32nbsd_gregmap): ... this.
4385 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4386 regmaps.
4387
8fea3224
AA
43882014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4389
4390 * score-tdep.c (score7_linux_gregset): New static regset
4391 structure.
4392 (score7_linux_regset_from_core_section): Remove dynamic regset
4393 allocation.
4394 (score_gdbarch_init): Drop allocation of tdep structure.
4395 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4396
24534243
AA
43972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4398
4399 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4400 regset structures.
4401 (am33_regset_from_core_section): Remove dynamic regset
4402 allocations.
4403
b7195f27
AA
44042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4405
4406 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4407 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4408 structures.
4409 (mips_linux_regset_from_core_section): Remove dynamic regset
4410 allocations.
4411 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4412 'gregset64', 'fpregset', and 'fpregset64'.
4413 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4414 deleted tdep fields.
4415
ecc37a5a
AA
44162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4417
4418 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4419 regset structures.
4420 (amd64_regset_from_core_section): Remove dynamic regset
4421 allocations.
4422 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4423 structure.
4424 (amd64obsd_regset_from_core_section): Remove dynamic regset
4425 allocation.
4426 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4427 Likewise.
4428 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4429 x86-common regset supply function.
4430 * i386-tdep.c (i386_collect_gregset): Make static.
4431 (i386_gregset): New global regset structure.
4432 (i386_fpregset, i386_xstateregset): New static regset structures.
4433 (i386_regset_from_core_section): Remove dynamic regset
4434 allocations.
4435 (i386_gdbarch_init): Remove initialization of tdep fields
4436 'gregset', 'fpregset', and 'xstateregset'.
4437 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4438 'fpregset', and 'xstateregset'.
4439 (i386_collect_gregset): Remove prototype.
4440 (i386_gregset): New declaration.
4441 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4442 structure.
4443 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4444 allocation.
4445
b7611c43
AA
44462014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4447
4448 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4449 (arm_linux_vfpregset): New static regset structures.
4450 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4451 regset structures.
4452 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4453 and 'vfpregset' fields.
4454
a069a2bd
AA
44552014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4456
4457 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4458 (aarch64_linux_fpregset): New static regset structures.
4459 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4460 of regset structures.
4461 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4462 'fpregset' fields.
4463
09424cff
AA
44642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4465
4466 * regset.h (struct regset): Remove gdbarch field.
4467 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4468 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4469 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4470 Likewise.
4471 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4472 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4473 (ppc32_linux_vsxregset): Likewise.
4474 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4475 via the regcache instead of the regset.
4476 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4477 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4478 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4479 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4480 Likewise.
4481
3ca7dae4
AA
44822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4483
4484 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4485 Constify structures.
4486 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4487 (alphanbsd_aout_gregset): Likewise.
4488 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4489 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4490 Likewise.
4491 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4492 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4493 Likewise.
4494 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4495 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4496 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4497 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4498 * m88k-tdep.c (m88k_gregset): Likewise.
4499 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4500 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4501 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4502 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4503 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4504 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4505 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4506 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4507 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4508 Likewise.
4509 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4510 * sh-tdep.h (sh_corefile_gregset): Likewise.
4511 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4512 * vax-tdep.c (vax_gregset): Likewise.
4513
5876f503
JK
45142014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4515
4516 Fix TLS access for -static -pthread.
4517 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4518 (try_thread_db_load_1): Initialize it.
4519 (thread_db_get_thread_local_address): Call it if LM is zero.
4520 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4521 * target.h (struct target_ops) (to_get_thread_local_address): Add
4522 load_module_addr comment.
4523
0256a6ac
PA
45242014-05-21 Pedro Alves <palves@redhat.com>
4525
4526 * dcache.c (dcache_read_memory_partial): If reading the cache line
4527 fails, fallback to reading just the memory the caller wanted.
4528
227533ac
DE
45292014-05-20 Doug Evans <dje@google.com>
4530
4531 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4532 instead of get_current_arch.
4533
936d2992
PA
45342014-05-20 Pedro Alves <palves@redhat.com>
4535
4536 * NEWS: Mention that compare-sections now works with all targets.
4537
4538 * remote.c (PACKET_qCRC): New enum value.
4539 (remote_verify_memory): Don't send qCRC if the target has no
4540 execution. Use packet_support/packet_ok. If the target doesn't
4541 support the qCRC packet, fallback to a deep memory copy.
4542 (compare_sections_command): Say "target image" instead of "remote
4543 executable".
4544 (_initialize_remote): Add PACKET_qCRC to the list of config
4545 packets that have no associated command. Extend comment.
4546 * target.c (simple_verify_memory, default_verify_memory): New
4547 function.
4548 * target.h (struct target_ops) <to_verify_memory>: Default to
4549 default_verify_memory.
4550 (simple_verify_memory): New declaration.
4551 * target-delegates.c: Regenerate.
4552
e59fa00f
MM
45532014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4554
4555 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4556
f2205de0
HZ
45572014-05-20 Hui Zhu <hui@codesourcery.com>
4558 Yao Qi <yao@codesourcery.com>
4559
4560 PR backtrace/16558
4561 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4562 and change address of sp and pc.
4563
c4e54771
TT
45642014-05-19 Tom Tromey <tromey@redhat.com>
4565
4566 * gdbtypes.c (rank_function): Use XNEWVEC.
4567 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4568
73051182
DE
45692014-05-19 Doug Evans <dje@google.com>
4570
4571 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4572 build_type_unit_groups and moved closer to only caller. Remove
4573 arguments. All references updated. Remove outdated .gdb_index
4574 comment.
4575 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4576 build_type_psymtabs_1.
4577
8832e7e3
DE
45782014-05-19 Doug Evans <dje@google.com>
4579
4580 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4581 n_type_unit_groups, all_type_unit_groups. All uses removed.
4582 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4583 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4584 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4585 (add_type_unit_group_to_table): Delete.
4586
cd8ae15e
DE
45872014-05-19 Doug Evans <dje@google.com>
4588
4589 * eval.c (evaluate_subexp_standard): Add some comments.
4590
08f4850b
DE
45912014-05-17 Doug Evans <xdje42@gmail.com>
4592
4593 * progspace.c (remove_program_space): Delete, unused.
4594 * progspace.h (remove_program_space): Ditto.
4595
bed8455c
DE
45962014-05-17 Doug Evans <xdje42@gmail.com>
4597
4598 * inferior.c (prune_inferiors): Fix comment.
4599 (remove_inferior_command): Call prune_program_spaces.
4600
8d551b02
DE
46012014-05-16 Doug Evans <dje@google.com>
4602
4603 New command line option -D.
4604 * NEWS: Mention it.
4605 * main.c (set_gdb_data_directory): New function.
4606 (captured_main): Recognize -D. Flag error for --data-directory "".
4607 Call set_gdb_data_directory.
4608 (print_gdb_help): Print --data-directory, -D.
4609 * main.h (set_gdb_data_directory): Declare.
4610 * top.c (staged_gdb_datadir): New static global.
4611 (set_gdb_datadir): Call set_gdb_data_directory
4612 (show_gdb_datadir): New function.
4613 (init_main): Update init of data-directory parameter.
4614
18848e28
GF
46152014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4616
4617 Import the "dirfd" gnulib module.
4618 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4619 * gnulib/aclocal.m4: Update.
4620 * gnulib/config.in: Update.
4621 * gnulib/configure: Update.
4622 * gnulib/import/Makefile.am: Update.
4623 * gnulib/import/Makefile.in: Update.
4624 * gnulib/import/dirfd.c: New.
4625 * gnulib/import/m4/dirfd.m4: New.
4626 * gnulib/import/m4/gnulib-cache.m4: Update.
4627 * gnulib/import/m4/gnulib-comp.m4: Update.
4628
95c64f92
YQ
46292014-05-16 Pierre Muller <muller@sourceware.org>
4630 Yao Qi <yao@codesourcery.com>
4631
4632 * valprint.c (print_wchar): Move the code on checking whether
4633 W is a printable wide char to the default branch of switch
4634 statement below. Call wchar_printable instead of gdb_iswprint.
4635
cac395ea
TM
46362014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4637
19679eca 4638 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4639 ldr.w and ldrd instructions.
4640
83655187
DE
46412014-05-15 Doug Evans <dje@google.com>
4642
4643 * dwarf2read.c (read_structure_type): Delete outdated comments.
4644
dd756689
TT
46452014-05-14 Tom Tromey <tromey@redhat.com>
4646
4647 * macrocmd.c (print_macro_definition): Reindent.
4648
75ddda77
DE
46492014-05-13 Doug Evans <xdje42@gmail.com>
4650
4651 * python/py-cmd.c (cmdpy_completer): Add comment.
4652 (completers): Make const.
4653
b0f16a3e
SM
46542014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4655
4656 * infrun.c (resume): Remove should_resume (unused). Move up
4657 declaration of resume_ptid.
4658
033c3379
TT
46592014-05-13 Tom Tromey <tromey@redhat.com>
4660
4661 * language.h (unop_type_check): Remove.
4662 (binop_type_check): Don't declare.
4663
9b44a3a5
AA
46642014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4665
4666 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4667 call to regcache_raw_collect.
4668
303a33fa
SM
46692014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4670
4671 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4672 mi_console->quote as the quoting character.
4673
196100a0
SM
46742014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4675
4676 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4677
f989a1c8
TT
46782014-04-29 Tom Tromey <tromey@redhat.com>
4679
4680 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4681 "show debug varobj".
4682
9404b58f
KM
46832014-05-07 Kyle McMartin <kyle@redhat.com>
4684
4685 Pushed by Joel Brobecker <brobecker@adacore.com>.
4686 * aarch64-tdep.c (aarch64_software_single_step): New function.
4687 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4688 with aarch64_software_single_step.
4689
5e49ba57
JB
46902014-05-05 Joel Brobecker <brobecker@adacore.com>
4691
4692 GDB 7.7.1 released.
4693
c888a17d
KS
46942014-05-05 Keith Seitz <keiths@redhat.com>
4695
4696 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4697 variable or history value is successfully parsed.
4698
290a839c
YQ
46992014-05-05 Yao Qi <yao@codesourcery.com>
4700 Pedro Alves <palves@redhat.com>
4701
4702 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4703 address of blocks that intersects the requested range. Trim
4704 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4705 sections.
4706 * ctf.c (ctf_xfer_partial): Likewise.
4707
91256dc2
YQ
47082014-05-05 Yao Qi <yao@codesourcery.com>
4709
4710 * printcmd.c (display_command): Remove the check to
4711 target_has_execution.
4712
07284463
MK
47132014-05-03 Mark Kettenis <kettenis@gnu.org>
4714
4715 * ppcobsd-nat.c: Include "obsd-nat.h".
4716 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4717 add_target.
4718 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4719
30a1e6cc
SDJ
47202014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4721
4722 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4723 and 16-bit signed and unsigned arguments. Update comment.
4724 (stap_parse_probe_arguments): Extend code to handle such
4725 arguments. Use warning instead of complaint to notify about
4726 unrecognized bitness.
4727
f33da99a
SDJ
47282014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4729
4730 PR breakpoints/16889
4731 * stap-probe.c (stap_parse_probe_arguments): Simplify
4732 check for non-prefixed probes (i.e., probes whose
4733 arguments do not start with "N@"). Always set the
4734 argument type to a sane value.
4735
95cf3b38
DT
47362014-05-01 David Taylor <dtaylor@emc.com>
4737
4738 * remote.c (compare_sections_command): Add -r option to compare
4739 all loadable read-only sections.
4740
1cfdf534
SC
47412014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4742
4743 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4744 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4745 Update all callers.
4746 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4747 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4748 Remove unused CORE_ADDR argument. Update all callers.
4749
ca4f7f8b
PA
47502014-04-29 Pedro Alves <palves@redhat.com>
4751
4752 * remote.c (struct packet_config) <detect>: Extend comment.
4753 (add_packet_config_cmd): Don't set the config's detect or support
4754 fields here.
4755 (init_all_packet_configs): Also initialize the config's 'detect'
4756 field.
4757 (reset_all_packet_configs_support): New function.
4758 (remote_open_1): Call reset_all_packet_configs_support instead of
4759 init_all_packet_configs.
4760 (_initialize_remote): Initialize all packet configs. Assert that
4761 all packets have an associated command, except a few known
4762 outliers.
4763
11c1ba78
JB
47642014-04-28 Joel Brobecker <brobecker@adacore.com>
4765
4766 * dwarf2read.c (read_subrange_type): Handle dynamic
4767 DW_AT_lower_bound attributes.
4768
8739bc53
JB
47692014-04-28 Joel Brobecker <brobecker@adacore.com>
4770
4771 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4772 dynamic bounds before computing its upper bound.
4773 (ada_discrete_type_low_bound): Same as above with the lower bound.
4774
6f8a3220
JB
47752014-04-28 Joel Brobecker <brobecker@adacore.com>
4776
4777 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4778 range types. Adjust the array handling implementation to
4779 take advantage of this change.
4780 (resolve_dynamic_range): New function, mostly extracted from
4781 resolve_dynamic_bounds.
4782 (resolve_dynamic_array): New function, mostly extracted from
4783 resolve_dynamic_bounds.
4784 (resolve_dynamic_bounds): Delete.
4785 (resolve_dynamic_type): Reimplement. Add handling of
4786 TYPE_CODE_RANGE types.
4787
4d072ce4
JB
47882014-04-28 Joel Brobecker <brobecker@adacore.com>
4789
4790 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4791 handling of parallel ___XA types.
4792
52865325
JB
47932014-04-28 Joel Brobecker <brobecker@adacore.com>
4794
4795 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4796 unnecessary second call to static_unwrap_type.
4797
433e77fa
HZ
47982014-04-27 Hui Zhu <hui@codesourcery.com>
4799
4800 * stack.c (print_frame_info): Call do_gdb_disassembly with
4801 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4802
b51a69ee
DE
48032014-04-26 Doug Evans <xdje42@gmail.com>
4804
4805 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4806
7ae1a6a6
PA
48072014-04-25 Pedro Alves <palves@redhat.com>
4808
4809 PR server/16255
4810 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4811 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4812 and newline from built string.
4813 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4814 (linux_ptrace_attach_fail_reason): ... this.
4815 * linux-nat.c (linux_nat_attach): Adjust to use
4816 linux_ptrace_attach_fail_reason.
4817
4082afcc
PA
48182014-04-25 Pedro Alves <palves@redhat.com>
4819
4820 * remote.c (struct remote_state): Remove multi_process_aware,
4821 non_stop_aware, cond_tracepoints, cond_breakpoints,
4822 breakpoint_commands, fast_tracepoints, static_tracepoints,
4823 install_in_trace, disconnected_tracing,
4824 enable_disable_tracepoints, string_tracing, and
4825 augmented_libraries_svr4_read fields.
4826 (remote_multi_process_p): Move further below in the file.
4827 (struct packet_config): Add comments.
4828 (update_packet_config): Delete function.
4829 (show_packet_config_cmd): Use packet_config_support.
4830 (add_packet_config_cmd): Use NULL as set callback.
4831 (packet_ok): "set remote foo-packet"-style commands no longer
4832 change config->supported -- adjust.
4833 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4834 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4835 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4836 (PACKET_QNonStop, PACKET_multiprocess_feature)
4837 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4838 (PACKET_DisconnectedTracing_feature)
4839 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4840 (set_remote_protocol_packet_cmd): Delete function.
4841 (packet_config_support, packet_support): New functions.
4842 (set_remote_protocol_Z_packet_cmd): Don't call
4843 update_packet_config.
4844 (remote_query_attached, remote_pass_signals)
4845 (remote_program_signals, remote_threads_info)
4846 (remote_threads_extra_info, remote_start_remote): Use
4847 packet_support.
4848 (remote_start_remote): Use packet_config_support and
4849 packet_support.
4850 (init_all_packet_configs): Set all packets to unknown support,
4851 instead of calling update_packet_config.
4852 (remote_check_symbols): Use packet_support.
4853 (remote_supported_packet): Unconditionally set the packet config's
4854 support status.
4855 (remote_multi_process_feature, remote_non_stop_feature)
4856 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4857 (remote_breakpoint_commands_feature)
4858 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4859 (remote_install_in_trace_feature)
4860 (remote_disconnected_tracing_feature)
4861 (remote_enable_disable_tracepoint_feature)
4862 (remote_string_tracing_feature)
4863 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4864 (remote_protocol_features): Adjust to use remote_supported_packet
4865 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4866 "ConditionalTracepoints", "ConditionalBreakpoints",
4867 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4868 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4869 "EnableDisableTracepoints", and "tracenz".
4870 (remote_query_supported): Use packet_support.
4871 (remote_open_1): Adjust.
4872 (extended_remote_attach_1): Use packet_support. Switch on the
4873 result of packet_ok instead of checking whether the packet ended
4874 up disabled.
4875 (remote_vcont_resume): Use packet_support.
4876 (remote_resume, remote_stop_ns, fetch_register_using_p)
4877 (remote_prepare_to_store, store_register_using_P)
4878 (check_binary_download, remote_write_bytes): Use packet_support.
4879 (remote_vkill): Use packet_support. Switch on the result of
4880 packet_ok instead of checking whether the packet ended up
4881 disabled.
4882 (extended_remote_supports_disable_randomization): Use
4883 packet_support.
4884 (extended_remote_run): Switch on the result of packet_ok instead
4885 of checking whether the packet ended up disabled.
4886 (remote_insert_breakpoint, remote_remove_breakpoint)
4887 (remote_insert_watchpoint, remote_remove_watchpoint)
4888 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4889 packet_support.
4890 (remote_search_memory): Use packet_config_support.
4891 (remote_get_thread_local_address, remote_get_tib_address)
4892 (remote_hostio_send_command, remote_can_execute_reverse): Use
4893 packet_support.
4894 (remote_supports_cond_tracepoints)
4895 (remote_supports_cond_breakpoints)
4896 (remote_supports_fast_tracepoints)
4897 (remote_supports_static_tracepoints)
4898 (remote_supports_install_in_trace)
4899 (remote_supports_enable_disable_tracepoint)
4900 (remote_supports_string_tracing)
4901 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4902 the packet config says the feature is enabled or disabled.
4903 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4904 (remote_get_trace_status): Use packet_support.
4905 (remote_set_disconnected_tracing): Adjust to check whether the
4906 feature is enabled with packet_support.
4907 (remote_set_trace_buffer_size, remote_use_agent)
4908 (remote_can_use_agent, remote_supports_btrace): Use
4909 packet_support.
4910 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4911 Use packet_config_support.
4912 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4913 the packet config says the feature is enabled or disabled.
4914 (set_range_stepping): Use packet_support.
4915
bdb52a22
TT
49162014-04-25 Tom Tromey <tromey@redhat.com>
4917
4918 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4919 argument.
4920
e9475ead
SA
49212014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4922
4923 * NEWS: Mention support for C99 variable length arrays.
4924
82eacd52
JB
49252014-04-24 Joel Brobecker <brobecker@adacore.com>
4926
4927 * ada-lang.c (standard_exc): Expand introductory comment.
4928
01f9f808
MS
49292014-04-24 Michael Sturm <michael.sturm@mintel.com>
4930 Walfred Tedeschi <walfred.tedeschi@intel.com>
4931
4932 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4933 AVX512 registers.
4934 (amd64_linux_read_description): Add code to handle AVX512 xstate
4935 mask and return respective tdesc.
4936 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4937 and features/i386/x32-avx512-linux.c.
4938 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4939 (amd64_linux_core_read_description): Add code to handle AVX512
4940 xstate mask and return respective tdesc.
4941 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4942 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4943 calculation.
4944 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4945 (tdesc_amd64_avx512_linux): New prototype.
4946 (tdesc_x32_avx512_linux): Likewise.
4947 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4948 features/i386/x32-avx512.c.
4949 (amd64_ymm_avx512_names): New register names for pseudo
4950 registers YMM16-31.
4951 (amd64_ymmh_avx512_names): New register names for raw registers
4952 YMMH16-31.
4953 (amd64_k_names): New register names for K registers.
4954 (amd64_zmmh_names): New register names for ZMM raw registers.
4955 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4956 (amd64_xmm_avx512_names): New register names for XMM16-31
4957 registers.
4958 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4959 registers.
4960 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4961 if feature is present.
4962 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4963 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4964 (AMD64_NUM_REGS): Adjust to new number of registers.
4965 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4966 registers supplied via XSTATE by AVX512 registers.
4967 (i386_linux_read_description): Add case for AVX512.
4968 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4969 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4970 (i386_linux_core_read_description): Add case for AVX512.
4971 (i386_linux_init_abi): Install supported register note section
4972 for AVX512.
4973 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4974 AVX512.
4975 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4976 registers to be number of zmm7h + 1.
4977 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4978 * i386-tdep.c: Include features/i386/i386-avx512.c.
4979 (i386_zmm_names): Add ZMM pseudo register names array.
4980 (i386_zmmh_names): Add ZMM raw register names array.
4981 (i386_k_names): Add K raw register names array.
4982 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4983 registers. AVX512 has 16 more ZMM registers than there are YMM
4984 registers.
4985 (i386_zmmh_regnum_p): Add function to look up register number of
4986 ZMM raw registers.
4987 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4988 (i386_k_regnum_p): Likewise for K raw registers.
4989 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4990 registers added by AVX512.
4991 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4992 registers added by AVX512.
4993 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4994 added by AVX512.
4995 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4996 (i386_pseudo_register_name): Add ZMM pseudo registers.
4997 (i386_zmm_type): Construct and return vector registers type for ZMM
4998 registers.
4999 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5000 ZMM0-31 pseudo registers and K registers.
5001 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5002 and YMM16-31 registers from register cache.
5003 (i386_pseudo_register_write): Add code to write K, ZMM and
5004 YMM16-31 registers.
5005 (i386_register_reggroup_p): Add code to include/exclude AVX512
5006 registers in/from respective register groups.
5007 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5008 registers if feature is present in xcr0.
5009 (i386_gdbarch_init): Add code to initialize AVX512 feature
5010 variables in tdep structure, wire in pseudo registers and call
5011 initialize_tdesc_i386_avx512.
5012 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5013 variables.
5014 (i386_regnum): Add AVX512 registers.
5015 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5016 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5017 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5018 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5019 512 bits wide.
5020 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5021 (i386_ymm_avx512_regnum_p): Likewise.
5022 (i386_k_regnum_p): Likewise.
5023 (i386_zmm_regnum_p): Likewise.
5024 (i386_zmmh_regnum_p): Likewise.
5025 * i387-tdep.c : Update year in copyright notice.
5026 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5027 XSAVE buffer.
5028 (XSAVE_YMM_AVX512_ADDR): New macro.
5029 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5030 XSAVE buffer.
5031 (XSAVE_XMM_AVX512_ADDR): New macro.
5032 (xsave_avx512_k_offset): New table for K register offsets in
5033 XSAVE buffer.
5034 (XSAVE_AVX512_K_ADDR): New macro.
5035 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5036 in XSAVE buffer.
5037 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5038 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5039 buffer.
5040 (i387_collect_xsave): Add code to collect AVX512 registers from
5041 XSAVE buffer.
5042 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5043 of XMM16-31 registers.
5044 (I387_NUM_K_REGS): New define for number of K registers.
5045 (I387_K0_REGNUM): New define for K0 register number.
5046 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5047 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5048 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5049 registers.
5050 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5051 (I387_XMM16_REGNUM): New define for XMM16 register number.
5052 (I387_YMM0_REGNUM): New define for YMM0 register number.
5053 (I387_KEND_REGNUM): New define for last K register number.
5054 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5055 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5056 number.
5057 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5058 number.
5059 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5060 size.
5061 * features/Makefile: Add AVX512 related files.
5062 * features/i386/32bit-avx512.xml: New file.
5063 * features/i386/64bit-avx512.xml: Likewise.
5064 * features/i386/amd64-avx512-linux.c: Likewise.
5065 * features/i386/amd64-avx512-linux.xml: Likewise.
5066 * features/i386/amd64-avx512.c: Likewise.
5067 * features/i386/amd64-avx512.xml: Likewise.
5068 * features/i386/i386-avx512-linux.c: Likewise.
5069 * features/i386/i386-avx512-linux.xml: Likewise.
5070 * features/i386/i386-avx512.c: Likewise.
5071 * features/i386/i386-avx512.xml: Likewise.
5072 * features/i386/x32-avx512-linux.c: Likewise.
5073 * features/i386/x32-avx512-linux.xml: Likewise.
5074 * features/i386/x32-avx512.c: Likewise.
5075 * features/i386/x32-avx512.xml: Likewise.
5076 * regformats/i386/amd64-avx512-linux.dat: New file.
5077 * regformats/i386/amd64-avx512.dat: Likewise.
5078 * regformats/i386/i386-avx512-linux.dat: Likewise.
5079 * regformats/i386/i386-avx512.dat: Likewise.
5080 * regformats/i386/x32-avx512-linux.dat: Likewise.
5081 * regformats/i386/x32-avx512.dat: Likewise.
5082 * NEWS: Add note about new support for AVX512.
5083
5084
08351840
PA
50852014-04-23 Pedro Alves <palves@redhat.com>
5086
5087 * breakpoint.c (insert_bp_location): Tolerate errors if the
5088 breakpoint is set in a user-loaded objfile.
5089 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5090 location is marked shlib_disabled. If the breakpoint is set in a
5091 user-loaded objfile is a GDB-side memory breakpoint, validate it
5092 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5093 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5094 flag.
5095 * mem-break.c (memory_validate_breakpoint): New function.
5096 * objfiles.c (userloaded_objfile_contains_address_p): New
5097 function.
5098 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5099 * target.h (memory_validate_breakpoint): New declaration.
5100
076855f9
PA
51012014-04-23 Pedro Alves <palves@redhat.com>
5102
5103 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5104 the breakpoint is set in a shared library, only suppress
5105 errors for software breakpoints, not hardware breakpoints.
5106
483805cf
PA
51072014-04-22 Pedro Alves <palves@redhat.com>
5108
5109 * infrun.c (schedlock_applies): New function, factored out from
5110 find_thread_needs_step_over.
5111 (find_thread_needs_step_over): Use it.
5112 (switch_back_to_stepped_thread): Always clear trap_expected if the
5113 step over is finished. Return early if scheduler locking applies.
5114 Look for the stepping thread and a potential step-over thread with
5115 a single loop.
5116 (currently_stepping_or_nexting_callback): Delete.
5117
a75fef0e
NC
51182014-04-22 Nick Clifton <nickc@redhat.com>
5119
5120 * NEWS: Mention that ARM sim now supports tracing.
5121
48b6e87e
YQ
51222014-04-22 Yao Qi <yao@codesourcery.com>
5123
5124 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5125 to ...
5126 * tracefile.c (tracefile_fetch_registers): ... it. New
5127 function.
5128 * tracefile.h (tracefile_fetch_registers): Declare.
5129 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5130 tracefile_fetch_registers.
5131
17617f2d
EZ
51322014-04-19 Eli Zaretskii <eliz@gnu.org>
5133
5134 PR gdb/14018
5135 * windows-nat.c (thread_rec): Don't display a warning when
5136 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5137 fails for any reason, set th->suspended to -1, so that we don't
5138 try to resume such a thread. Also, don't return NULL in these
5139 cases, to avoid completely ruin the session due to "PC register is
5140 not available" error.
5141 (do_windows_fetch_inferior_registers): Check errors in
5142 GetThreadContext call.
5143 (windows_continue): Accept an additional argument KILLED; if not
5144 zero, ignore errors in the SetThreadContext call, since the
5145 inferior was killed and is shutting down.
5146 (windows_resume, get_windows_debug_event)
5147 (windows_create_inferior, windows_mourn_inferior)
5148 (windows_kill_inferior): All callers of windows_continue changed
5149 to adjust to its new calling sequence.
5150
5723a6fd
YQ
51512014-04-19 Yao Qi <yao@codesourcery.com>
5152
5153 * ctf.c (ctf_open): Call post_create_inferior.
5154
614d5099
YQ
51552014-04-19 Yao Qi <yao@codesourcery.com>
5156
5157 * ctf.c (handle_id): New static variable.
5158 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5159 value. Get the declaration of event "register" and get length
5160 of field "contents".
5161
dac3e710
YQ
51622014-04-19 Yao Qi <yao@codesourcery.com>
5163
5164 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5165
2bca57ba
SC
51662014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5167
5168 * valops.c (oload_method_static): Remove unnecessary argument
5169 METHOD. Update all callers.
5170
51d48146
PA
51712014-04-18 Pedro alves <palves@redhat.com>
5172 Tom Tromey <tromey@redhat.com>
5173
5174 PR backtrace/15558
5175 * frame.c (get_prev_frame_1): Rename to ...
5176 (get_prev_frame_always): ... this, and make extern. Adjust.
5177 (skip_artificial_frames): Use get_prev_frame_always.
5178 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5179 (get_frame_unwind_stop_reason): Adjust to rename.
5180 * frame.h (get_prev_frame_always): Declare.
5181 * inline-frame.c: Include frame.h.
5182 (inline_frame_this_id): Use get_prev_frame_always.
5183
1bdad2e0
TG
51842014-04-18 Tristan Gingold <gingold@adacore.com>
5185
5186 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5187 code by using bfd_mach_o_get_base_address.
5188
7ce16bd4
UW
51892014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5190
5191 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5192 (spu_ax_pseudo_register_collect): New function.
5193 (spu_ax_pseudo_register_push_stack): Likewise.
5194 (spu_dwarf_reg_to_regnum): Likewise.
5195 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5196
2ed3c037
UW
51972014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5198
5199 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5200 Replace FRAME argument with FRAME_ID.
5201 * gdbarch.c, gdbarch.h: Regenerate.
5202 * findvar.c (default_value_from_register): Add GDBARCH argument;
5203 replace FRAME by FRAME_ID. No longer call get_frame_id.
5204 (value_from_register): Update call to gdbarch_value_from_register.
5205 * value.h (default_value_from_register): Update prototype.
5206 * s390-linux-tdep.c (s390_value_from_register): Update interface
5207 and call to default_value_from_register.
5208 * spu-tdep.c (spu_value_from_register): Likewise.
5209
5210 * findvar.c (address_from_register): Remove TYPE argument.
5211 Do not call value_from_register; use gdbarch_value_from_register
5212 with null_frame_id instead.
5213 * value.h (address_from_register): Update prototype.
5214 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5215 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5216 address_from_register interface change.
5217
71e50e83
YQ
52182014-04-17 Yao Qi <yao@codesourcery.com>
5219
5220 * gdbtypes.h: Update comments to link to types and macros'
5221 definitions.
5222
7a23c549
SC
52232014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5224
5225 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5226
22869d73
KS
52272014-04-16 Keith Seitz <keiths@redhat.com>
5228
5229 PR gdb/15827
5230 * dwarf2read.c (skip_one_die): Check that all relative-offset
5231 sibling DIEs fall within range of the current reader's buffer.
5232 (read_partial_die): Likewise.
5233
c4f87ca6
KS
52342014-04-16 Keith Seitz <keiths@redhat.com>
5235
5236 PR c++/16597
5237 * cp-namespace.c (lookup_symbol_file): If the type name of
5238 `this' is NULL, return immediately.
5239
b50c8614
KS
52402014-04-14 Keith Seitz <keiths@redhat.com>
5241
5242 PR c++/16253
5243 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5244 from symbol_matches_domain in symtab.c. All local callers
5245 of symbol_matches_domain updated.
5246 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5247 search STRUCT_DOMAIN.
5248 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5249 independently. standard_lookup will do that automatically.
5250 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5251 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5252 (cp_lookup_symbol_in_namespace): Likewise.
5253 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5254 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5255 may return a STRUCT_DOMAIN match.
5256 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5257 * cp-support.c: Include language.h.
5258 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5259 VAR_DOMAIN.
5260 * psymtab.c (match_partial_symbol): Compare the requested
5261 domain with the symbol's domain directly.
5262 (lookup_partial_symbol): Likewise.
5263 * symtab.c (lookup_symbol_in_language): Explain when/why
5264 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5265 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5266 appropriate languages.
5267 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5268 and moved to ada-lang.c
5269 (lookup_block_symbol): Explain that this function only returns
5270 symbol matching the requested DOMAIN.
5271 Compare the requested domain with the symbol's domain directly.
5272 (iterate_over_symbols): Compare the requested domain with the
5273 symbol's domain directly.
5274 * symtab.h (symbol_matches_domain): Remove.
5275
3d567982
TT
52762014-04-14 Tom Tromey <tromey@redhat.com>
5277
5278 PR c++/15246:
5279 * c-exp.y (type_aggregate_p): New function.
5280 (qualified_name, classify_inner_name): Use it.
5281 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5282 and TYPE_TARGET_TYPE of an enum type.
5283 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5284 an enum type.
5285 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5286 handle TYPE_DECLARED_CLASS.
5287 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5288 types.
5289 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5290 * valops.c (enum_constant_from_type): New function.
5291 (value_aggregate_elt): Use it.
5292 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5293 TYPE_CODE_ENUM.
5294
c848d642
TT
52952014-04-14 Tom Tromey <tromey@redhat.com>
5296
5297 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5298 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5299 const.
5300 * value.h (value_aggregate_elt): Update.
5301
0626fc76
TT
53022014-04-14 Tom Tromey <tromey@redhat.com>
5303
5304 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5305
5ecaaa66
SA
53062014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5307
5308 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5309 (evaluate_subexp_standard): Pass noside argument.
5310 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5311 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5312 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5313 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5314 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5315
1612e0c0
SA
53162014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5317
5318 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5319 points to a constant blob.
5320
c451ebe5
SA
53212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5322
5323 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5324 property and store it as the high bound and flag the range accordingly.
5325 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5326 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5327 * gdbtypes.h (enum range_flags): New enum.
5328 (struct range_bounds): Add flags member.
5329
1d42e4c4
SA
53302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5331
5332 * c-typeprint.c (c_type_print_varspec_suffix): Added
5333 check for not yet resolved high bound. If unresolved, print
5334 "variable length" string to the console instead of random
5335 length.
5336
9f1f738a
SA
53372014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5338
5339 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5340 value.
5341 (ada_template_to_fixed_record_type_1): Likewise.
5342 (ada_to_fixed_type_1): Likewise.
5343 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5344 (cp_print_value): Likewise.
5345 * d-valprint.c (dynamic_array_type): Likewise.
5346 * findvar.c (address_of_variable): Likewise.
5347 * jv-valprint.c (java_value_print): Likewise.
5348 * valops.c (value_ind): Likewise.
5349 * value.c (coerce_ref): Likewise.
5350
3c8452d4
SA
53512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5352
5353 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5354 value and retrieve the dynamic type size.
5355
4ad88275
SA
53562014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5357
5358 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5359 passed to sizeof is dynamic evaluate the argument to compute the length.
5360
80180f79
SA
53612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5362 Joel Brobecker <brobecker@adacore.com>
5363
5364 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5365 (dwarf2_evaluate_property): New function.
5366 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5367 * dwarf2read.c (attr_to_dynamic_prop): New function.
5368 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5369 attribute.
5370 * gdbtypes.c: Include dwarf2loc.h.
5371 (is_dynamic_type): New function.
5372 (resolve_dynamic_type): New function.
5373 (resolve_dynamic_bounds): New function.
5374 (get_type_length): New function.
5375 (check_typedef): Use get_type_length to compute type length.
5376 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5377 (TYPE_LOW_BOUND_KIND): New macro.
5378 (is_dynamic_type): New function prototype.
5379 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5380 to resolve dynamic properties of the type. Update comment.
5381 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5382
a1556843
RH
53832014-04-14 Richard Henderson <rth@redhat.com>
5384
5385 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5386
0be03e84
DE
53872014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5388 Doug Evans <xdje42@gmail.com>
5389
5390 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5391 dereference TYPE_CODE_REF values.
5392
6b662e19
JB
53932014-04-11 Joel Brobecker <brobecker@adacore.com>
5394
5395 Revert the following changes due to regressions:
5396
5397 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5398 (dwarf2_evaluate_property): New function.
5399 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5400 * dwarf2read.c (attr_to_dynamic_prop): New function.
5401 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5402 attribute.
5403 * gdbtypes.c: Include dwarf2loc.h.
5404 (is_dynamic_type): New function.
5405 (resolve_dynamic_type): New function.
5406 (resolve_dynamic_bounds): New function.
5407 (get_type_length): New function.
5408 (check_typedef): Use get_type_length to compute type length.
5409 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5410 (TYPE_LOW_BOUND_KIND): New macro.
5411 (is_dynamic_type): New function prototype.
5412 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5413 to resolve dynamic properties of the type. Update comment.
5414 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5415
5416 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5417 passed to sizeof is dynamic evaluate the argument to compute the length.
5418
5419 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5420 value and retrieve the dynamic type size.
5421
5422 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5423 (ada_template_to_fixed_record_type_1): Likewise.
5424 (ada_to_fixed_type_1): Likewise.
5425 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5426 (cp_print_value): Likewise.
5427 * d-valprint.c (dynamic_array_type): Likewise.
5428 * eval.c (evaluate_subexp_with_coercion): Likewise.
5429 * findvar.c (address_of_variable): Likewise.
5430 * jv-valprint.c (java_value_print): Likewise.
5431 * valops.c (value_ind): Likewise.
5432 * value.c (coerce_ref): Likewise.
5433
5434 * c-typeprint.c (c_type_print_varspec_suffix): Added
5435 check for not yet resolved high bound. If unresolved, print
5436 "variable length" string to the console instead of random
5437 length.
5438
5439 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5440 property and store it as the high bound and flag the range accordingly.
5441 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5442 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5443 * gdbtypes.h (enum range_flags): New enum.
5444 (struct range_bounds): Add flags member.
5445
5446 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5447 points to a constant blob.
5448
5449 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5450 (evaluate_subexp_standard): Pass noside argument.
5451 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5452 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5453 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5454 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5455 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5456
245a5f0b
KS
54572014-04-11 Keith Seitz <keiths@redhat.com>
5458
5459 PR c++/16675
5460 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5461 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5462 reference types.
5463
3bce8237
SA
54642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5465
5466 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5467 (evaluate_subexp_standard): Pass noside argument.
5468 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5469 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5470 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5471 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5472 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5473
92b09522
SA
54742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5475
5476 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5477 points to a constant blob.
5478
e1969afb
SA
54792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5480
5481 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5482 property and store it as the high bound and flag the range accordingly.
5483 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5484 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5485 * gdbtypes.h (enum range_flags): New enum.
5486 (struct range_bounds): Add flags member.
5487
b86138fb
SA
54882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5489
5490 * c-typeprint.c (c_type_print_varspec_suffix): Added
5491 check for not yet resolved high bound. If unresolved, print
5492 "variable length" string to the console instead of random
5493 length.
5494
bcd629a4
SA
54952014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5496
5497 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5498 (ada_template_to_fixed_record_type_1): Likewise.
5499 (ada_to_fixed_type_1): Likewise.
5500 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5501 (cp_print_value): Likewise.
5502 * d-valprint.c (dynamic_array_type): Likewise.
5503 * eval.c (evaluate_subexp_with_coercion): Likewise.
5504 * findvar.c (address_of_variable): Likewise.
5505 * jv-valprint.c (java_value_print): Likewise.
5506 * valops.c (value_ind): Likewise.
5507 * value.c (coerce_ref): Likewise.
5508
04b19544
SA
55092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5510
5511 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5512 value and retrieve the dynamic type size.
5513
26cb189f
SA
55142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5515
5516 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5517 passed to sizeof is dynamic evaluate the argument to compute the length.
5518
37c1ab67
SA
55192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5520
5521 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5522 (dwarf2_evaluate_property): New function.
5523 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5524 * dwarf2read.c (attr_to_dynamic_prop): New function.
5525 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5526 attribute.
5527 * gdbtypes.c: Include dwarf2loc.h.
5528 (is_dynamic_type): New function.
5529 (resolve_dynamic_type): New function.
5530 (resolve_dynamic_bounds): New function.
5531 (get_type_length): New function.
5532 (check_typedef): Use get_type_length to compute type length.
5533 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5534 (TYPE_LOW_BOUND_KIND): New macro.
5535 (is_dynamic_type): New function prototype.
5536 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5537 to resolve dynamic properties of the type. Update comment.
5538 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5539
729efb13
SA
55402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5541
5542 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5543 declaring high/low bounds and change uses accordingly. Call
5544 create_range_type instead of create_static_range_type.
5545 * gdbtypes.c (create_range_type): New function.
5546 (create_range_type): Convert bounds into struct bound_prop and pass
5547 them to create_range_type.
5548 * gdbtypes.h (struct bound_prop): New struct.
5549 (create_range_type): New function prototype.
5550 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5551 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5552 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5553 part of the bound.
5554 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5555
0c9c3474
SA
55562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5557
5558 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5559 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5560 * ada-lang.c: All uses of create_range_type updated.
5561 * coffread.c: All uses of create_range_type updated.
5562 * dwarf2read.c: All uses of create_range_type updated.
5563 * f-exp.y: All uses of create_range_type updated.
5564 * m2-valprint.c: All uses of create_range_type updated.
5565 * mdebugread.c: All uses of create_range_type updated.
5566 * stabsread.c: All uses of create_range_type updated.
5567 * valops.c: All uses of create_range_type updated.
5568 * valprint.c: All uses of create_range_type updated.
5569
9d497a19
PA
55702014-04-10 Pedro Alves <palves@redhat.com>
5571
5572 * breakpoint.c (single_step_breakpoints)
5573 (single_step_gdbarch): Move up in the file.
5574 (one_breakpoint_xfer_memory): New function, factored out from ...
5575 (breakpoint_xfer_memory): ... here. Also process single-step
5576 breakpoints.
5577
15a9128a
TG
55782014-04-09 Tristan Gingold <gingold@adacore.com>
5579
5580 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5581 comments.
5582 (darwin_decode_exception_message): Free port only after use.
5583
9c97a070
PL
55842014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5585
5586 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5587 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5588 when setting the size of call_length.
5589
7af389b8
SC
55902014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5591
5592 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5593 dereference TYPE_CODE_REF values.
5594
86ad98c3
JB
55952014-04-07 Joel Brobecker <brobecker@adacore.com>
5596
5597 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5598 end of warning message.
5599
b0aeadb3
DE
56002014-04-03 Doug Evans <dje@google.com>
5601
5602 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5603 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5604
5979d6b6
AM
56052014-04-02 Alan Modra <amodra@gmail.com>
5606
5607 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5608 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5609 (struct symbol_file_add_from_memory_args): Add size field.
5610 (find_vdso_size): New function.
5611 (add_vsyscall_page): Attempt to find vdso size.
5612
0d60c288
DE
56132014-04-01 Doug Evans <dje@google.com>
5614
5615 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5616
a41f2563
TG
56172014-04-01 Tristan Gingold <gingold@adacore.com>
5618
5619 * darwin-nat.c (darwin_encode_reply): Add prototype.
5620 (darwin_decode_exception_message): Reply to unknown inferiors.
5621 (darwin_decode_message): Handle message by id. Ignore message
5622 to unknown inferior.
5623 (darwin_wait): Discard unknown messages, add debug trace.
5624
11a865c8
DE
56252014-03-31 Doug Evans <dje@google.com>
5626
5627 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5628 comp_dir_string.
5629
770e7fc7
DE
56302014-03-31 Doug Evans <dje@google.com>
5631
5632 New option "set print symbol-loading".
5633 * NEWS: Mention it.
5634 * solib.c (solib_read_symbols): Only print symbol loading messages
5635 if requested.
5636 (solib_add): If symbol loading is in "brief" mode, notify user
5637 symbols are being loaded.
5638 (reload_shared_libraries_1): Ditto.
5639 * symfile.c (print_symbol_loading_off): New static global.
5640 (print_symbol_loading_brief): New static global.
5641 (print_symbol_loading_full): New static global.
5642 (print_symbol_loading_enums): New static global.
5643 (print_symbol_loading): New static global.
5644 (print_symbol_loading_p): New function.
5645 (symbol_file_add_with_addrs): Only print symbol loading messages
5646 if requested.
5647 (_initialize_symfile): Register "print symbol-loading" set/show
5648 command.
5649 * symfile.h (print_symbol_loading_p): Declare.
5650
c32c64b7
DE
56512014-03-30 Doug Evans <xdje42@gmail.com>
5652
5653 * infrun.c (set_last_target_status): New function.
5654 (handle_inferior_event): Call it.
5655
7c0bc051
DE
56562014-03-30 Doug Evans <xdje42@gmail.com>
5657
5658 * inferior.h (enum stop_kind): Improve comment.
5659
8776cfe9
JB
56602014-03-28 Joel Brobecker <brobecker@adacore.com>
5661
5662 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5663 a reference, strip the reference layer before calling
5664 the lang_ops value_has_mutated callback.
5665
410a0ff2
SDJ
56662014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5667
5668 Remove some globals from our parser.
5669 * language.c (unk_lang_parser): Add "struct parser_state"
5670 argument.
5671 * language.h (struct language_defn) <la_parser>: Likewise.
5672 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5673 (initialize_expout): Add "struct parser_state" argument.
5674 Rewrite function to use the parser state.
5675 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5676 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5677 write_exp_elt_longcst, write_exp_elt_dblcst,
5678 write_exp_elt_decfloatcst, write_exp_elt_type,
5679 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5680 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5681 write_dollar_variable): Likewise.
5682 (parse_exp_in_context_1): Use parser state.
5683 (insert_type_address_space): Add "struct parser_state" argument.
5684 Use parser state.
5685 (increase_expout_size): New function.
5686 * parser-defs.h: Forward declare "struct language_defn" and
5687 "struct parser_state".
5688 (expout, expout_size, expout_ptr): Remove extern declarations.
5689 (parse_gdbarch, parse_language): Rewrite macro declarations to
5690 accept the parser state.
5691 (struct parser_state): New struct.
5692 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5693 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5694 write_exp_elt_decfloatcst, write_exp_elt_type,
5695 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5696 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5697 write_exp_msymbol, write_dollar_variable,
5698 mark_struct_expression, insert_type_address_space): Add "struct
5699 parser_state" argument.
5700 (increase_expout_size): New function.
5701 * utils.c (do_clear_parser_state): New function.
5702 (make_cleanup_clear_parser_state): Likewise.
5703 * utils.h (make_cleanup_clear_parser_state): New function
5704 prototype.
5705 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5706 Update calls to write_exp* in order to pass the parser state.
5707 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5708 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5709 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5710 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5711 * stap-probe.c (stap_parse_register_operand): Likewise.
5712 (stap_parse_single_operand): Likewise.
5713 (stap_parse_argument_1): Likewise.
5714 (stap_parse_argument): Use parser state.
5715 * stap-probe.h: Include "parser-defs.h".
5716 (struct stap_parse_info) <pstate>: New field.
5717 * c-exp.y (parse_type): Rewrite to use parser state.
5718 (yyparse): Redefine to c_parse_internal.
5719 (pstate): New global variable.
5720 (parse_number): Add "struct parser_state" argument.
5721 (write_destructor_name): Likewise.
5722 (type_exp): Update calls to write_exp* and similars in order to
5723 use parser state.
5724 (exp1, exp, variable, qualified_name, space_identifier,
5725 typename, typebase): Likewise.
5726 (write_destructor_name, parse_number, lex_one_token,
5727 classify_name, classify_inner_name, c_parse): Add "struct
5728 parser_state" argument. Update function to use parser state.
5729 * c-lang.h: Forward declare "struct parser_state".
5730 (c_parse): Add "struct parser_state" argument.
5731 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5732 (yyparse): Redefine macro to ada_parse_internal.
5733 (pstate): New variable.
5734 (write_int, write_object_renaming, write_var_or_type,
5735 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5736 type_int, type_long, type_long_long, type_float, type_double,
5737 type_long_double, type_char, type_boolean, type_system_address):
5738 Add "struct parser_state" argument.
5739 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5740 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5741 var_or_type, aggregate, aggregate_component_list,
5742 positional_list, others, component_group,
5743 component_associations): Update calls to write_exp* and similar
5744 functions in order to use parser state.
5745 (ada_parse, write_var_from_sym, write_int,
5746 write_exp_op_with_string, write_object_renaming,
5747 find_primitive_type, write_selectors, write_ambiguous_var,
5748 write_var_or_type, write_name_assoc, type_int, type_long,
5749 type_long_long, type_float, type_double, type_long_double,
5750 type_char, type_boolean, type_system_address): Add "struct
5751 parser_state" argument. Adjust function to use parser state.
5752 * ada-lang.c (parse): Likewise.
5753 * ada-lang.h: Forward declare "struct parser_state".
5754 (ada_parse): Add "struct parser_state" argument.
5755 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5756 calls to both functions.
5757 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5758 parser state.
5759 (yyparse): Redefine macro to f_parse_internal.
5760 (pstate): New variable.
5761 (parse_number): Add "struct parser_state" argument.
5762 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5763 and similars in order to use parser state.
5764 (parse_number): Adjust code to use parser state.
5765 (yylex): Likewise.
5766 (f_parse): New function.
5767 * f-lang.h: Forward declare "struct parser_state".
5768 (f_parse): Add "struct parser_state" argument.
5769 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5770 parser state.
5771 (yyparse): Redefine macro for java_parse_internal.
5772 (pstate): New variable.
5773 (push_expression_name, push_expression_name, insert_exp): Add
5774 "struct parser_state" argument.
5775 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5776 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5777 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5778 PostIncrementExpression, PostDecrementExpression,
5779 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5780 UnaryExpressionNotPlusMinus, CastExpression,
5781 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5782 RelationalExpression, EqualityExpression, AndExpression,
5783 ExclusiveOrExpression, InclusiveOrExpression,
5784 ConditionalAndExpression, ConditionalOrExpression,
5785 ConditionalExpression, Assignment, LeftHandSide): Update
5786 calls to write_exp* and similars in order to use parser state.
5787 (parse_number): Ajust code to use parser state.
5788 (yylex): Likewise.
5789 (java_parse): New function.
5790 (push_variable): Add "struct parser_state" argument. Adjust
5791 code to user parser state.
5792 (push_fieldnames, push_qualified_expression_name,
5793 push_expression_name, insert_exp): Likewise.
5794 * jv-lang.h: Forward declare "struct parser_state".
5795 (java_parse): Add "struct parser_state" argument.
5796 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5797 parser state.
5798 (yyparse): Redefine macro to m2_parse_internal.
5799 (pstate): New variable.
5800 (type_exp, exp, fblock, variable, type): Update calls to
5801 write_exp* and similars to use parser state.
5802 (yylex): Likewise.
5803 (m2_parse): New function.
5804 * m2-lang.h: Forward declare "struct parser_state".
5805 (m2_parse): Add "struct parser_state" argument.
5806 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5807 * objc-lang.h: Forward declare "struct parser_state".
5808 (end_msglist): Add "struct parser_state" argument.
5809 * p-exp.y (parse_type): Rewrite macro to use parser state.
5810 (yyparse): Redefine macro to pascal_parse_internal.
5811 (pstate): New variable.
5812 (parse_number): Add "struct parser_state" argument.
5813 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5814 write_exp* and similars in order to use parser state.
5815 (parse_number, yylex): Adjust code to use parser state.
5816 (pascal_parse): New function.
5817 * p-lang.h: Forward declare "struct parser_state".
5818 (pascal_parse): Add "struct parser_state" argument.
5819 * go-exp.y (parse_type): Rewrite macro to use parser state.
5820 (yyparse): Redefine macro to go_parse_internal.
5821 (pstate): New variable.
5822 (parse_number): Add "struct parser_state" argument.
5823 (type_exp, exp1, exp, variable, type): Update calls to
5824 write_exp* and similars in order to use parser state.
5825 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5826 to use parser state.
5827 (go_parse): Likewise.
5828 * go-lang.h: Forward declare "struct parser_state".
5829 (go_parse): Add "struct parser_state" argument.
5830
342587c4
DE
58312014-03-27 Doug Evans <dje@google.com>
5832
5833 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5834
33e80786
DE
58352014-03-27 Doug Evans <dje@google.com>
5836
5837 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5838 Remove argument abbrev_section. All callers updated.
5839
1dbab08b
DE
58402014-03-27 Doug Evans <dje@google.com>
5841
5842 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5843 addr_base, ranges_base.
5844
318d3177
KS
58452014-03-26 Keith Seitz <keiths@redhat.com>
5846
5847 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5848 types, not VAR_DOMAIN.
5849
1e54db15
SL
58502014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5851
5852 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5853 "ra" registers.
5854 * features/nios2-linux.c: Regenerated.
5855 * features/nios2.c: Regenerated.
5856
d3839ede
PA
58572014-03-25 Pedro Alves <palves@redhat.com>
5858
5859 * cli/cli-script.c (script_from_file): Force the interpreter to
5860 sync mode.
5861
7588d2ec
PL
58622014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5863
5864 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5865 small stack allocation.
5866
a6290449
TG
58672014-03-24 Tristan Gingold <gingold@adacore.com>
5868
5869 * darwin-nat.c (exc_server): Remove unused prototype.
5870 (darwin_dump_message): Correctly display data on x86_64.
5871 (darwin_encode_reply): Fix style.
5872 Add comments and fix indentation.
5873
31ae9d24 58742014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5875
5876 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5877
6339bfc4
DE
58782014-03-22 Doug Evans <xdje42@gmail.com>
5879
5880 * infcmd.c: Whitespace fixes.
5881 (interrupt_command): Merge two function comments into one.
5882
0a07590b
DE
58832014-03-22 Doug Evans <xdje42@gmail.com>
5884
5885 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5886 All uses updated.
5887
b55fbac4
YQ
58882014-03-22 Yao Qi <yao@codesourcery.com>
5889
5890 * remote.c (target_read_live_memory): Remove.
5891 (memory_xfer_live_readonly_partial): Rename it to
5892 remote_xfer_live_readonly_partial. Remove argument 'object'.
5893 All callers updated. Call remote_read_bytes_1
5894 instead of target_read_live_memory.
5895 * tracepoint.c (set_traceframe_number): Remove.
5896 (make_cleanup_restore_traceframe_number): Likewise .
5897 * tracepoint.h (set_traceframe_number): Remove declaration.
5898 (make_cleanup_restore_traceframe_number): Likewise.
5899
9217e74e
YQ
59002014-03-22 Yao Qi <yao@codesourcery.com>
5901
5902 * remote.c (remote_read_bytes): Move code on reading from the
5903 remote stub to ...
5904 (remote_read_bytes_1): ... here. New function.
5905
8acf9577
YQ
59062014-03-22 Yao Qi <yao@codesourcery.com>
5907
5908 * ctf.c (ctf_xfer_partial): Check the return value of
5909 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5910 return TARGET_XFER_UNAVAILABLE.
5911 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5912 * target.c (target_read_live_memory): Move it to remote.c.
5913 (memory_xfer_live_readonly_partial): Likewise.
5914 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5915 * remote.c (target_read_live_memory): Moved from target.c.
5916 (memory_xfer_live_readonly_partial): Likewise.
5917 (remote_read_bytes): Factored out from
5918 memory_xfer_partial_1.
5919
feef67ab
DE
59202014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5921
5922 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5923 NULL pointer.
5924
b65dc60b
PA
59252014-03-21 Pedro Alves <palves@redhat.com>
5926
5927 * infrun.c (normal_stop): Extend comment.
5928
b4ab256d
HZ
59292014-03-21 Hui Zhu <hui@codesourcery.com>
5930 Pedro Alves <palves@redhat.com>
5931
5932 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5933 static buffer.
5934 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5935 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5936 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5937
deba7593
MR
59382014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5939
5940 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5941 `z' formatted output modifier.
5942
1bff71c3
SDJ
59432014-03-20 Tom Tromey <tromey@redhat.com>
5944 Sergio Durigan Junior <sergiodj@redhat.com>
5945
5946 * probe.c (parse_probes): Turn assert into an ordinary error.
5947 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5948 exceptions when parsing probes. Rearrange the code for clarity.
5949
90e28950
TT
59502014-03-20 Tom Tromey <tromey@redhat.com>
5951
5952 PR gdb/14135
5953 * top.c (execute_command): Only dispatch events if the command
5954 started the target.
5955
beb460e8
PA
59562014-03-20 Tom Tromey <tromey@redhat.com>
5957
5958 PR cli/15718
5959 * infcall.c: Include event-top.h.
5960 (run_inferior_call): Call async_disable_stdin if needed.
5961
99619bea
PA
59622014-03-20 Pedro Alves <palves@redhat.com>
5963
5964 * infrun.c (prepare_to_proceed): Delete.
5965 (thread_still_needs_step_over): New function.
5966 (find_thread_needs_step_over): New function.
5967 (proceed): If the current thread needs a step-over, set its
5968 steping_over_breakpoint flag. Adjust to use
5969 find_thread_needs_step_over instead of prepare_to_proceed.
5970 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5971 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5972 breakpoint.
5973 (switch_back_to_stepped_thread): Step over breakpoints of all
5974 threads not the stepping thread, before switching back to the
5975 stepping thread.
5976
2adfaa28
PA
59772014-03-20 Pedro Alves <palves@redhat.com>
5978
5979 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5980 extern.
5981 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5982 * infrun.c (saved_singlestep_ptid)
5983 (stepping_past_singlestep_breakpoint): Delete.
5984 (resume): Remove stepping_past_singlestep_breakpoint handling.
5985 (proceed): Store the prev_pc of the stepping thread too.
5986 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5987 singlestep_pc.
5988 (enum infwait_states): Delete infwait_thread_hop_state.
5989 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5990 field.
5991 (handle_inferior_event): Adjust.
5992 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5993 handling and the thread-hop code. Before removing single-step
5994 breakpoints, check whether the thread hit a single-step breakpoint
5995 of another thread. If it did, the trap is not a random signal.
5996 (switch_back_to_stepped_thread): If the event thread hit a
5997 single-step breakpoint, unblock it before switching to the
5998 stepping thread. Handle the case of the stepped thread having
5999 advanced already.
6000 (keep_going): Handle the case of the current thread moving past a
6001 single-step breakpoint.
6002
31e77af2
PA
60032014-03-20 Pedro Alves <palves@redhat.com>
6004
6005 PR breakpoints/7143
6006 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6007 are being stepped over.
6008 (breakpoint_address_match): Make extern.
6009 * breakpoint.h (breakpoint_address_match): New declaration.
6010 * inferior.h (stepping_past_instruction_at): New declaration.
6011 * infrun.c (struct step_over_info): New type.
6012 (step_over_info): New global.
6013 (set_step_over_info, clear_step_over_info)
6014 (stepping_past_instruction_at): New functions.
6015 (handle_inferior_event): Clear the step-over info when
6016 trap_expected is cleared.
6017 (resume): Remove now stale comment.
6018 (clear_proceed_status): Clear step-over info.
6019 (proceed): Adjust step-over handling to set or clear the step-over
6020 info instead of removing all breakpoints.
6021 (handle_signal_stop): When setting up a thread-hop, don't remove
6022 breakpoints here.
6023 (stop_stepping): Clear step-over info.
6024 (keep_going): Adjust step-over handling to set or clear step-over
6025 info and then always inserting breakpoints, instead of removing
6026 all breakpoints when stepping over one.
6027
b9f437de
PA
60282014-03-20 Pedro Alves <palves@redhat.com>
6029
6030 * infrun.c (previous_inferior_ptid): Adjust comment.
6031 (deferred_step_ptid): Delete.
6032 (infrun_thread_ptid_changed, prepare_to_proceed)
6033 (init_wait_for_inferior): Adjust.
6034 (handle_signal_stop): Delete deferred_step_ptid handling.
6035
06c868a8
JK
60362014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6037
6038 PR gdb/15358
6039 * defs.h (sync_quit_force_run): New declaration.
6040 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6041 * event-top.c (async_sigterm_handler): New declaration.
6042 (async_sigterm_token): New variable.
6043 (async_init_signals): Create also async_sigterm_token.
6044 (async_sigterm_handler): New function.
6045 (sync_quit_force_run): New variable.
6046 (handle_sigterm): Replace quit_force call by other calls.
6047 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6048
dea80df0
MR
60492014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6050
6051 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6052 offset into SPE pseudo registers.
6053
0c7e1a46
PA
60542014-03-18 Pedro Alves <palves@redhat.com>
6055
6056 PR gdb/13860
6057 * inferior.h (print_stop_event): Declare.
6058 * infrun.c (print_stop_event): New, factored out from ...
6059 (normal_stop): ... this.
6060 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6061 of bpstat_print/print_stack_frame.
6062
9c1fcd01
TT
60632014-03-17 Tom Tromey <tromey@redhat.com>
6064
6065 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6066
11aa919a
PMR
60672014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6068
6069 * ada-lang.c (decode_constrained_packed_array): Perform a
6070 minimal coercion for reference with coerce_ref instead of
6071 ada_coerce_ref.
6072
d4ccb5e0
TG
60732014-03-17 Tristan Gingold <gingold@adacore.com>
6074
6075 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6076 (darwin_solib_create_inferior_hook): Emit a warning if version
6077 is unhandled.
6078
49840f2a
UW
60792014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6080
6081 * python/py-value.c (get_field_flag): Cast flag_name argument to
6082 PyObject_GetAttrString to support Python 2.4.
6083
ed4123e5
JK
60842014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6085
6086 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6087 (Global Maintainers): Remove Jan Kratochvil.
6088
d6b64346
PA
60892014-03-14 Pedro Alves <palves@redhat.com>
6090
6091 * inferior.h (terminal_ours_for_output): Rename to ...
6092 (child_terminal_ours_for_output): ... this.
6093 (terminal_save_ours): Rename to ...
6094 (child_terminal_save_ours): ... this.
6095 (terminal_ours): Rename to ...
6096 (child_terminal_ours): ... this.
6097 (terminal_inferior): Rename to ...
6098 (child_terminal_inferior): ... this.
6099 (terminal_init_inferior): Rename to ...
6100 (child_terminal_init_inferior): ... this.
6101 (terminal_init_inferior_with_pgrp): Rename to ...
6102 (child_terminal_init_inferior_with_pgrp): ... this.
6103 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6104 (child_terminal_init_with_pgrp): ... this.
6105 (terminal_save_ours): Rename to ...
6106 (child_terminal_save_ours): ... this.
6107 (terminal_init_inferior): Rename to ...
6108 (child_terminal_init): ... this. Adjust.
6109 (terminal_inferior): Rename to ...
6110 (child_terminal_inferior): ... this.
6111 (terminal_ours_for_output): Rename to ...
6112 (child_terminal_ours_for_output): ... this. Adjust.
6113 (terminal_ours): Rename to ...
6114 (child_terminal_ours): ... this.
6115 (terminal_ours_1): Rename to ...
6116 (child_terminal_ours_1): ... this. Adjust.
6117 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6118 * windows-nat.c (do_initial_windows_stuff): Adjust.
6119 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6120 (gnu_terminal_init): ... this. Adjust.
6121 (gnu_target): Adjust.
6122 * inf-child.c (inf_child_target): Adjust.
6123
5a1e8c7a
DE
61242014-03-13 Doug Evans <xdje42@gmail.com>
6125
6126 PR guile/16612
6127 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6128 new eq?-hashtab.
6129
350e1a76
DE
61302014-03-13 Doug Evans <xdje42@gmail.com>
6131
6132 * value.c (record_latest_value): Call release_value_or_incref
6133 instead of release_value.
6134
a69900ae
PA
61352014-03-13 Pedro Alves <palves@redhat.com>
6136
6137 * procfs.c (procfs_target): Don't override to_shortname,
6138 to_longname or to_doc.
6139
5db9f0bd
PA
61402014-03-13 Pedro Alves <palves@redhat.com>
6141
6142 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6143 Unix in user visible strings.
6144
5e3a2c38
SS
61452014-03-12 Stan Shebs <stan@codesourcery.com>
6146
6147 * gdbtypes.h: Annotate comments for Doxygen, add a page
6148 block comment with some general info.
6149
8bc2fe48
PA
61502014-03-12 Pedro Alves <palves@redhat.com>
6151
6152 * infcmd.c (prepare_execution_command): New function, factored out
6153 from several execution commands.
6154 (run_command_1, continue_command, step_1, jump_command)
6155 (signal_command, until_command, advance_command, finish_command)
6156 (attach_command): Use prepare_execution_command.
6157
638c5f49
OJ
61582014-03-12 Omair Javaid <omair.javaid@linaro.org>
6159
6160 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6161 (MAX_BPTS): Define.
6162 (MAX_WPTS): Define.
6163 (struct arm_linux_thread_points): Removed.
6164 (struct arm_linux_process_info): New.
6165 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6166 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6167 (arm_linux_find_breakpoints_by_tid): Removed.
6168 (struct arch_lwp_info): New.
6169 (arm_linux_find_process_pid): New functions.
6170 (arm_linux_add_process): New functions.
6171 (arm_linux_process_info_get): New functions.
6172 (arm_linux_forget_process): New function.
6173 (arm_linux_get_debug_reg_state): New function.
6174 (struct update_registers_data): New.
6175 (update_registers_callback): New function.
6176 (arm_linux_insert_hw_breakpoint1): Updated.
6177 (arm_linux_remove_hw_breakpoint1): Updated.
6178 (arm_linux_insert_hw_breakpoint): Updated.
6179 (arm_linux_remove_hw_breakpoint): Updated.
6180 (arm_linux_insert_watchpoint): Updated.
6181 (arm_linux_remove_watchpoint): Updated.
6182 (arm_linux_new_thread): Updated.
6183 (arm_linux_prepare_to_resume): New function.
6184 (arm_linux_new_fork): New function.
6185 (_initialize_arm_linux_nat): Updated.
6186
6d03af93
PA
61872014-03-12 Pedro Alves <palves@redhat.com>
6188
6189 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6190
b3ccfe11
TT
61912014-03-12 Tom Tromey <tromey@redhat.com>
6192
6193 * inf-child.c (return_zero): New function.
6194 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6195 * aix-thread.c (aix_thread_inferior_created): New function.
6196 (aix_thread_attach): Remove.
6197 (init_aix_thread_ops): Don't set to_attach.
6198 (_initialize_aix_thread): Register inferior_created observer.
6199 * corelow.c (init_core_ops): Don't set to_attach or
6200 to_create_inferior.
6201 * exec.c (init_exec_ops): Don't set to_attach or
6202 to_create_inferior.
6203 * infcmd.c (run_command_1): Use find_run_target. Make direct
6204 target calls.
6205 (attach_command): Use find_attach_target. Make direct target
6206 calls.
6207 * record-btrace.c (init_record_btrace_ops): Don't set
6208 to_create_inferior.
6209 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6210 Remove.
6211 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6212 set to_create_inferior.
6213 * target.c (complete_target_initialization): Add assertion.
6214 (target_create_inferior): Remove.
6215 (find_default_attach, find_default_create_inferior): Remove.
6216 (find_attach_target, find_run_target): New functions.
6217 (find_default_is_async_p, find_default_can_async_p)
6218 (target_supports_non_stop, target_attach): Remove.
6219 (init_dummy_target): Don't set to_create_inferior or
6220 to_supports_non_stop.
6221 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6222 TARGET_DEFAULT_FUNC.
6223 <to_create_inferior>: Add comment.
6224 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6225 TARGET_DEFAULT_RETURN.
6226 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6227 (find_attach_target, find_run_target): Declare.
6228 (target_create_inferior): Remove.
6229 (target_has_execution_1): Update comment.
6230 (target_supports_non_stop): Remove.
6231 * target-delegates.c: Rebuild.
6232
91f83b02
PA
62332014-03-12 Pedro Alves <palves@redhat.com>
6234
6235 * inf-child.h: Update comment to not mention Unix.
6236
f1aea813
PA
62372014-03-12 Pedro Alves <palves@redhat.com>
6238
6239 * inf-child.c: Update top comment to not mention Unix. Add
6240 generic comment describing how this target is meant to be used.
6241 (inf_child_post_attach, inf_child_post_startup_inferior)
6242 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6243 Unix in comment.
6244
ee8e9165
PA
62452014-03-12 Pedro Alves <palves@redhat.com>
6246
6247 * nto-procfs.c: Include inf-child.h.
6248 (procfs_ops): Delete global.
6249 (procfs_can_run): Delete method.
6250 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6251 target pointer instead of referencing procfs_ops.
6252 (procfs_prepare_to_store): Delete.
6253 (init_procfs_ops): Delete function.
6254 (procfs_target): New function, based on init_procfs_ops, but
6255 inherit inf_child_target.
6256 (_initialize_procfs): Use procfs_target.
6257
51a9c8c5
PA
62582014-03-12 Pedro Alves <palves@redhat.com>
6259
6260 * windows-nat.c: Include inf-child.h.
6261 (windows_ops): Delete global.
6262 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6263 methods.
6264 (init_windows_ops): Delete function.
6265 (windows_target): New function, based on init_windows_ops, but
6266 inherit inf_child_target.
6267 (_initialize_windows_nat): Use windows_target. Install x86
6268 specific target methods here.
6269
c1966e26
DE
62702014-03-10 Doug Evans <xdje42@gmail.com>
6271
6272 * guile/guile.c (call_initialize_gdb_module): New function.
6273 (initialize_guile): Replace call to scm_init_guile with call to
6274 scm_with_guile.
6275
023db19c
JB
62762014-03-10 Joel Brobecker <brobecker@adacore.com>
6277
6278 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6279 in call to TYPE_CODE macro.
6280
5ec18f2b
JG
62812014-03-10 Jerome Guitton <guitton@adacore.com>
6282
8668be63
JB
6283 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6284 Resolve tagged types to full view.
5ec18f2b 6285
7d03f2eb
HZ
62862014-03-10 Hui Zhu <hui@codesourcery.com>
6287
6288 * target.h (target_insert_breakpoint): Remove "hardware" from its
6289 comments.
6290
c5164cbc
DE
62912014-03-07 Doug Evans <dje@google.com>
6292
6293 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6294
c4a3fee2
DE
62952014-03-07 Doug Evans <dje@google.com>
6296
6297 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6298 Remove unused local comp_dir_attr. Assert exactly one of
6299 stub_comp_unit_die, stub_comp_dir is non-NULL.
6300
3156469c
JB
63012014-03-07 Joel Brobecker <brobecker@adacore.com>
6302
6303 * target.h (complete_target_initialization, add_target):
6304 Add comment.
6305
c1a7b7c6
PA
63062014-03-07 Pedro Alves <palves@redhat.com>
6307
6308 * go32-nat.c: Include inf-child.h.
6309 (go32_ops): Delete global.
6310 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6311 Delete methods.
6312 (go32_create_inferior): Push the passed in target pointer instead
6313 of referencing go32_ops.
6314 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6315 (go32_target): New function, based on init_go32_ops, but inherit
6316 inf_child_target.
6317 (_initialize_go32_nat): Use go32_target. Move parts of
6318 init_go32_ops here.
6319
d3c1a85f
JB
63202014-03-06 Joel Brobecker <brobecker@adacore.com>
6321
6322 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6323 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6324 SYMBOL_VALUE_ADDRESS.
6325 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6326
5fa1d40e
YQ
63272014-03-06 Yao Qi <yao@codesourcery.com>
6328
6329 * breakpoint.c (get_tracepoint_by_number): Remove argument
6330 optional_p. All callers updated. Adjust comments. Update
6331 output message.
6332 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6333
0c13193f
YQ
63342014-03-06 Yao Qi <yao@codesourcery.com>
6335
6336 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6337 early if get_number returns zero. Use 'p' instead of 'args'.
6338
2217da06
YQ
63392014-03-06 Yao Qi <yao@codesourcery.com>
6340
6341 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6342 message.
6343
cc3da688
YQ
63442014-03-06 Yao Qi <yao@codesourcery.com>
6345
6346 PR breakpoints/16508
6347 * tracepoint.c (check_trace_running): New function.
6348 (trace_find_command): Move code to check_trace_running and
6349 call check_trace_running.
6350 (trace_find_pc_command): Likewise.
6351 (trace_find_tracepoint_command): Likewise.
6352 (trace_find_line_command): Likewise.
6353 (trace_find_range_command): Likewise.
6354 * tracepoint.h (check_trace_running): Likewise.
6355 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6356
6a5f844b
YQ
63572014-03-06 Yao Qi <yao@codesourcery.com>
6358
6359 * target.h (struct target_ops) <to_traceframe_info>: Use
6360 TARGET_DEFAULT_NORETURN (tcomplain ()).
6361 * target-delegates.c: Regenerated.
6362
0f26cec1
PA
63632014-03-05 Pedro Alves <palves@redhat.com>
6364
6365 PR gdb/16575
6366 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6367 void. Update comment.
6368 (dcache_xfer_memory): Delete.
6369 (dcache_read_memory_partial): New, based on the read bits of
6370 dcache_xfer_memory.
6371 (dcache_update): Add status parameter. Use ULONGEST for len, and
6372 adjust. Discard cache lines if the reason for the update was
6373 error.
6374 * dcache.h (dcache_xfer_memory): Delete declaration.
6375 (dcache_read_memory_partial): New declaration.
6376 (dcache_update): Update prototype.
6377 * target.c (raw_memory_xfer_partial): Update the dcache here.
6378 (memory_xfer_partial_1): Don't handle dcache writes here.
6379
b2b255bd
MF
63802014-03-05 Mike Frysinger <vapier@gentoo.org>
6381
6382 * remote-sim.c (gdbsim_load): Add const to prog.
6383
5d9cf8a4
TT
63842014-03-03 Tom Tromey <tromey@redhat.com>
6385
6386 * elfread.c (probe_key): Change to bfd_data.
6387 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6388 now per-BFD, not per-objfile.
6389 * stap-probe.c (stap_probe_destroy): Update comment.
6390 (handle_stap_probe): Allocate on the per-BFD obstack.
6391
729662a5
TT
63922014-03-03 Tom Tromey <tromey@redhat.com>
6393
6394 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6395 * breakpoint.c (create_longjmp_master_breakpoint): Use
6396 get_probe_address.
6397 (add_location_to_breakpoint, bkpt_probe_insert_location)
6398 (bkpt_probe_remove_location): Update.
6399 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6400 * elfread.c (elf_symfile_relocate_probe): Remove.
6401 (elf_probe_fns): Update.
6402 (insert_exception_resume_breakpoint): Change type of "probe"
6403 parameter to bound_probe.
6404 (check_exception_resume): Update.
6405 * objfiles.c (objfile_relocate1): Don't relocate probes.
6406 * probe.c (bound_probe_s): New typedef.
6407 (parse_probes): Use get_probe_address. Set sal's objfile.
6408 (find_probe_by_pc): Return a bound_probe.
6409 (collect_probes): Return a VEC(bound_probe_s).
6410 (compare_probes): Update.
6411 (gen_ui_out_table_header_info): Change type of "probes"
6412 parameter. Update.
6413 (info_probes_for_ops): Update.
6414 (get_probe_address): New function.
6415 (probe_safe_evaluate_at_pc): Update.
6416 * probe.h (struct probe_ops) <get_probe_address>: New field.
6417 <set_semaphore, clear_semaphore>: Add objfile parameter.
6418 (struct probe) <objfile>: Remove field.
6419 <arch>: New field.
6420 <address>: Update comment.
6421 (struct bound_probe): New.
6422 (find_probe_by_pc): Return a bound_probe.
6423 (get_probe_address): Declare.
6424 * solib-svr4.c (struct probe_and_action) <address>: New field.
6425 (hash_probe_and_action, equal_probe_and_action): Update.
6426 (register_solib_event_probe): Add address parameter.
6427 (solib_event_probe_at): Update.
6428 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6429 get_probe_address.
6430 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6431 (stap_get_probe_address): New function.
6432 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6433 (compile_probe_arg): Update.
6434 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6435 address.
6436 (handle_stap_probe): Don't relocate the probe.
6437 (stap_relocate): Remove.
6438 (stap_gen_info_probes_table_values): Update.
6439 (stap_probe_ops): Remove stap_relocate.
6440 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6441 (debug_sym_probe_fns): Update.
6442 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6443 * symtab.c (init_sal): Use memset.
6444 * symtab.h (struct symtab_and_line) <objfile>: New field.
6445 * tracepoint.c (start_tracing, stop_tracing): Update.
6446
ff887920
TT
64472014-03-03 Tom Tromey <tromey@redhat.com>
6448
6449 * probe.h (parse_probes, find_probe_by_pc)
6450 (find_probes_in_objfile): Fix comments.
6451
f0407826
DE
64522014-03-02 Doug Evans <xdje42@gmail.com>
6453
6454 * infrun.c (handle_signal_stop): Replace test for
6455 TARGET_WAITKIND_STOPPED with an assert.
6456
35e6a711
DE
64572014-03-02 Doug Evans <xdje42@gmail.com>
6458
6459 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6460
667f9d0b
DE
64612014-03-02 Doug Evans <xdje42@gmail.com>
6462
6463 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6464
dc92ace0
MK
64652014-03-01 Mark Kettenis <kettenis@gnu.org>
6466
6467 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6468
a900370f
MK
64692014-03-01 Mark Kettenis <kettenis@gnu.org>
6470
6471 * i386obsd-nat.c: Include "obsd-nat.h".
6472 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6473 add_target.
6474 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6475
b72a7981
MK
64762014-03-01 Mark Kettenis <kettenis@gnu.org>
6477
6478 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6479
96c70aba
MK
64802014-03-01 Mark Kettenis <kettenis@gnu.org>
6481
6482 * mips64obsd-nat.c: Include "obsd-nath".
6483 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6484 add_target
6485 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6486
874a80af
MK
64872014-03-01 Mark Kettenis <kettenis@gnu.org>
6488
8fd408f1
MK
6489 * amd64obsd-nat.c: Include "obsd-nat,h.
6490 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6491 add_target.
874a80af
MK
6492 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6493
9cf95373
SC
64942014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6495
6496 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6497 (find_overload_match): Update call to find_oload_champ.
6498 (find_oload_champ_namespace_loop): Likewise
6499
863e4da4
MK
65002014-02-28 Mark Kettenis <kettenis@gnu.org>
6501
025cac40
MK
6502 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6503
1ed586ce
MK
6504 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6505 * config/sparc/obsd64.mh: New file.
6506 * sparc64obsd-nat.c: New file.
6507
863e4da4
MK
6508 * obsd-nat.h: New file.
6509 * obsd-nat.c: New file.
6510 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6511 (ALLDEPFILES): Add obsd-nat.c.
6512
89de4da4
TT
65132014-02-28 Tom Tromey <tromey@redhat.com>
6514
6515 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6516 * cli-out.h (cli_ui_out_impl): Now const.
6517 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6518 * ui-out.c (struct ui_out) <impl>: Now const.
6519 (default_ui_out_impl): Now const.
6520 (ui_out_new): Make 'impl' parameter const.
6521 * ui-out.h (ui_out_new): Update.
6522
c725e7b6
MK
65232014-02-27 Mark Kettenis <kettenis@gnu.org>
6524
6525 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6526
670b46b3
MK
65272014-02-27 Mark Kettenis <kettenis@gnu.org>
6528
6529 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6530
c91550fc
JK
65312014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6532
6533 Additional PR 8882 fix.
6534 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6535
2fa0369e
PA
65362014-02-27 Pedro Alves <palves@redhat.com>
6537
6538 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6539 isn't set.
6540
d632a097
PA
65412014-02-27 Pedro Alves <palves@redhat.com>
6542
6543 PR 12702
6544 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6545 * nat/linux-waitpid.c: Include string.h.
6546 (status_to_str): Moved here and made extern.
6547 * nat/linux-waitpid.h (status_to_str): New declaration.
6548
2ebd5a35
HZ
65492014-02-27 Hui Zhu <hui@codesourcery.com>
6550
6551 PR 12702
6552 * infrun.c (ptid_match): Move ...
6553 * common/ptid.c (ptid_match): ... here.
6554 * inferior.h (ptid_match): Move ...
6555 * common/ptid.h (ptid_match): ... here.
6556
3cdd631f
MK
65572014-02-27 Mark Kettenis <kettenis@gnu.org>
6558
6559 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6560 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6561 gdb_target_obs.
6562
bee30a64
MK
65632014-02-27 Mark Kettenis <kettenis@gnu.org>
6564
6565 * obsd-tdep.c (obsd_auxv_parse): New function.
6566 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6567
6568 * gdbarch.sh (auxv_parse): New.
6569 * gdbarch.h: Regenerated.
6570 * gdbarch.c: Regenerated.
6571 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6572
7a5a839f
LC
65732014-02-26 Ludovic Courtès <ludo@gnu.org>
6574
6575 * guile/scm-value.c (gdbscm_history_append_x): New function.
6576 (value_functions): Add it.
6577
31aa7e4e
JB
65782014-02-27 Joel Brobecker <brobecker@adacore.com>
6579
6580 * dwarf2read.c (attr_value_as_address): New function.
6581 (dwarf2_find_base_address, read_call_site_scope): Use
6582 attr_value_as_address in place of DW_ADDR.
6583 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6584 the low and high addresses. Slight rework of the handling
6585 of the high pc being a constant form, and limit it to
6586 DWARF verson 4 or higher.
6587 (dwarf2_record_block_ranges): Likewise.
6588 (read_partial_die): Likewise.
6589 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6590
9b333ba3
TT
65912014-02-26 Tom Tromey <tromey@redhat.com>
6592
6593 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6594
5f6cac40
TT
65952014-02-26 Tom Tromey <tromey@redhat.com>
6596
6597 * elfread.c (elf_read_minimal_symbols): Return early if
6598 minimal symbols have already been read. Add "ei" parameter.
6599 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6600 * minsyms.c (prim_record_minimal_symbol_full): Update.
6601 * objfiles.h (struct objstats) <n_minsyms>: Move...
6602 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6603 * symmisc.c (print_objfile_statistics): Update.
6604
2750ef27
TT
66052014-02-26 Tom Tromey <tromey@redhat.com>
6606
6607 * elfread.c (elf_read_minimal_symbols): New function, from
6608 elf_symfile_read.
6609 (elf_symfile_read): Call it.
6610
34643a32
TT
66112014-02-26 Tom Tromey <tromey@redhat.com>
6612
6613 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6614 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6615 (lookup_minimal_symbol_solib_trampoline)
6616 (lookup_minimal_symbol_by_pc_section_1)
6617 (lookup_minimal_symbol_and_objfile): Update.
6618 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6619 Don't allocate a minimal symbol if minsyms have already been read.
6620 (build_minimal_symbol_hash_tables): Update.
6621 (install_minimal_symbols): Do nothing if minsyms already read.
6622 Use the per-BFD obstack.
6623 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6624 * objfiles.c (allocate_objfile): Call
6625 terminate_minimal_symbol_table later.
6626 (have_minimal_symbols): Update.
6627 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6628 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6629 Move from struct objfile.
6630 <minsyms_read>: New field.
6631 (struct objfile) <msymbols, minimal_symbol_count,
6632 msymbol_hash, msymbol_demangled_hash>: Move.
6633 (ALL_OBJFILE_MSYMBOLS): Update.
6634 * symfile.c (read_symbols): Set minsyms_read.
6635 (reread_symbols): Update.
6636 * symmisc.c (dump_objfile, dump_msymbols): Update.
6637
2273f0ac
TT
66382014-02-26 Tom Tromey <tromey@redhat.com>
6639
6640 * minsyms.c (msymbols_sort): Remove.
6641 * minsyms.h (msymbols_sort): Remove.
6642 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6643 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6644 * elfread.c (elf_symtab_read): Don't add section offsets.
6645 * xcoffread.c (record_minimal_symbol): Don't add section offset
6646 to minimal symbol address.
6647 * somread.c (text_offset, data_offset): Remove.
6648 (som_symtab_read): Don't add section offsets to minimal symbol
6649 addresses.
6650 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6651 Don't add section offsets to minimal symbols.
6652 * coffread.c (coff_symtab_read): Don't add section offsets
6653 to minimal symbol addresses.
6654 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6655 to minimal symbol addresses.
6656 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6657 section offset to minimal symbol addresses.
6658 * mdebugread.c (parse_partial_symbols): Don't add section
6659 offset to minimal symbol addresses.
6660 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6661 offset to minimal symbol addresses.
6662
77e371c0
TT
66632014-02-26 Tom Tromey <tromey@redhat.com>
6664
6665 * ada-lang.c (ada_main_name): Update.
6666 (ada_add_standard_exceptions): Update.
6667 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6668 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6669 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6670 * auxv.c (ld_so_xfer_auxv): Update.
6671 * avr-tdep.c (avr_scan_prologue): Update.
6672 * ax-gdb.c (gen_var_ref): Update.
6673 * blockframe.c (get_pc_function_start)
6674 (find_pc_partial_function_gnu_ifunc): Update.
6675 * breakpoint.c (create_overlay_event_breakpoint)
6676 (create_longjmp_master_breakpoint)
6677 (create_std_terminate_master_breakpoint)
6678 (create_exception_master_breakpoint): Update.
6679 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6680 * c-valprint.c (c_val_print): Update.
6681 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6682 * common/agent.c (agent_look_up_symbols): Update.
6683 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6684 * dwarf2loc.c (call_site_to_target_addr): Update.
6685 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6686 * elfread.c (elf_gnu_ifunc_record_cache)
6687 (elf_gnu_ifunc_resolve_by_got): Update.
6688 * findvar.c (default_read_var_value): Update.
6689 * frame.c (inside_main_func): Update.
6690 * frv-tdep.c (frv_frame_this_id): Update.
6691 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6692 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6693 Update.
6694 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6695 (hppa_hpux_find_dummy_bpaddr): Update.
6696 * hppa-tdep.c (hppa_symbol_address): Update.
6697 * infcmd.c (until_next_command): Update.
6698 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6699 Update.
6700 * linespec.c (minsym_found, add_minsym): Update.
6701 * linux-nat.c (get_signo): Update.
6702 * linux-thread-db.c (inferior_has_bug): Update.
6703 * m32c-tdep.c (m32c_return_value)
6704 (m32c_m16c_address_to_pointer): Update.
6705 * m32r-tdep.c (m32r_frame_this_id): Update.
6706 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6707 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6708 * maint.c (maintenance_translate_address): Update.
6709 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6710 (frob_address): New function.
6711 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6712 frob_address. Rename parameter to "pc_in".
6713 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6714 addresses.
6715 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6716 Update.
6717 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6718 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6719 * objc-lang.c (find_objc_msgsend): Update.
6720 * objfiles.c (objfile_relocate1): Update.
6721 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6722 * p-valprint.c (pascal_val_print): Update.
6723 * parse.c (write_exp_msymbol): Update.
6724 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6725 (ppc_elfv2_skip_entrypoint): Update.
6726 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6727 * printcmd.c (build_address_symbolic, msym_info)
6728 (address_info): Update.
6729 * proc-service.c (ps_pglobal_lookup): Update.
6730 * psymtab.c (find_pc_sect_psymtab_closer)
6731 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6732 Change msymbol parameter to bound_minimal_symbol.
6733 * ravenscar-thread.c (get_running_thread_id): Update.
6734 * remote.c (remote_check_symbols): Update.
6735 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6736 address.
6737 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6738 * solib-dsbt.c (lm_base): Update.
6739 * solib-frv.c (lm_base, main_got): Update.
6740 * solib-irix.c (locate_base): Update.
6741 * solib-som.c (som_solib_create_inferior_hook)
6742 (link_map_start): Update.
6743 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6744 * solib-svr4.c (elf_locate_base, enable_break): Update.
6745 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6746 (flush_ea_cache): Update.
6747 * stabsread.c (define_symbol, scan_file_globals): Update.
6748 * stack.c (find_frame_funname): Update.
6749 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6750 (debug_qf_find_pc_sect_symtab): Update.
6751 * symfile.c (simple_read_overlay_table)
6752 (simple_overlay_update): Update.
6753 * symfile.h (struct quick_symbol_functions)
6754 <find_pc_sect_symtab>: Change type of msymbol to
6755 bound_minimal_symbol.
6756 * symmisc.c (dump_msymbols): Update.
6757 * symtab.c (find_pc_sect_symtab_via_partial)
6758 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6759 (search_symbols, print_msymbol_info): Update.
6760 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6761 (MSYMBOL_VALUE_ADDRESS): Redefine.
6762 (BMSYMBOL_VALUE_ADDRESS): New macro.
6763 * tracepoint.c (scope_info): Update.
6764 * tui/tui-disasm.c (tui_find_disassembly_address)
6765 (tui_get_begin_asm_address): Update.
6766 * valops.c (find_function_in_inferior): Update.
6767 * value.c (value_static_field, value_fn_field): Update.
6768
3b7344d5
TT
67692014-02-26 Tom Tromey <tromey@redhat.com>
6770
6771 * ada-lang.c (ada_update_initial_language): Update.
6772 (ada_main_name, ada_has_this_exception_support): Update.
6773 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6774 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6775 * arm-tdep.c (arm_skip_stub): Update.
6776 * auxv.c (ld_so_xfer_auxv): Update.
6777 * avr-tdep.c (avr_scan_prologue): Update.
6778 * ax-gdb.c (gen_var_ref): Update.
6779 * breakpoint.c (struct breakpoint_objfile_data)
6780 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6781 type to bound_minimal_symbol.
6782 (create_overlay_event_breakpoint)
6783 (create_longjmp_master_breakpoint)
6784 (create_std_terminate_master_breakpoint)
6785 (create_exception_master_breakpoint): Update.
6786 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6787 * c-exp.y (classify_name): Update.
6788 * coffread.c (coff_symfile_read): Update.
6789 * common/agent.c (agent_look_up_symbols): Update.
6790 * d-lang.c (d_main_name): Update.
6791 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6792 * dec-thread.c (enable_dec_thread): Update.
6793 * dwarf2loc.c (call_site_to_target_addr): Update.
6794 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6795 * eval.c (evaluate_subexp_standard): Update.
6796 * findvar.c (struct minsym_lookup_data) <result>: Change type
6797 to bound_minimal_symbol.
6798 <objfile>: Remove.
6799 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6800 * frame.c (inside_main_func): Update.
6801 * frv-tdep.c (frv_frame_this_id): Update.
6802 * gcore.c (call_target_sbrk): Update.
6803 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6804 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6805 Update.
6806 * go-lang.c (go_main_name): Update.
6807 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6808 (hppa_hpux_find_import_stub_for_addr): Update.
6809 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6810 Update. Change return type.
6811 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6812 type.
6813 * jit.c (jit_breakpoint_re_set_internal): Update.
6814 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6815 Update.
6816 * linux-nat.c (get_signo): Update.
6817 * linux-thread-db.c (inferior_has_bug): Update
6818 * m32c-tdep.c (m32c_return_value)
6819 (m32c_m16c_address_to_pointer): Update.
6820 * m32r-tdep.c (m32r_frame_this_id): Update.
6821 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6822 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6823 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6824 lookup_minimal_symbol. Change return type.
6825 (lookup_minimal_symbol): Remove.
6826 (lookup_bound_minimal_symbol): Update.
6827 (lookup_minimal_symbol_text): Change return type.
6828 (lookup_minimal_symbol_solib_trampoline): Change return type.
6829 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6830 (lookup_minimal_symbol_solib_trampoline): Change return type.
6831 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6832 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6833 (value_nsstring, find_imps): Update.
6834 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6835 * p-lang.c (pascal_main_name): Update.
6836 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6837 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6838 * proc-service.c (ps_pglobal_lookup): Update.
6839 * ravenscar-thread.c (get_running_thread_msymbol): Change
6840 return type.
6841 (has_ravenscar_runtime, get_running_thread_id): Update.
6842 * remote.c (remote_check_symbols): Update.
6843 * sol-thread.c (ps_pglobal_lookup): Update.
6844 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6845 * solib-dsbt.c (lm_base): Update.
6846 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6847 Update.
6848 * solib-irix.c (locate_base): Update.
6849 * solib-som.c (som_solib_create_inferior_hook)
6850 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6851 Update.
6852 * solib-spu.c (spu_enable_break): Update.
6853 * solib-svr4.c (elf_locate_base, enable_break): Update.
6854 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6855 (flush_ea_cache): Update.
6856 * stabsread.c (define_symbol): Update.
6857 * symfile.c (simple_read_overlay_table): Update.
6858 * symtab.c (find_pc_sect_line): Update.
6859 * tracepoint.c (scope_info): Update.
6860 * tui-disasm.c (tui_get_begin_asm_address): Update.
6861 * value.c (value_static_field): Update.
6862
40c1a007
TT
68632014-02-26 Tom Tromey <tromey@redhat.com>
6864
6865 * minsyms.c (prim_record_minimal_symbol_full): Use
6866 SET_MSYMBOL_VALUE_ADDRESS.
6867 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6868 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6869 SET_MSYMBOL_VALUE_ADDRESS.
6870 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6871 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6872
efd66ac6
TT
68732014-02-26 Tom Tromey <tromey@redhat.com>
6874
6875 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6876 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6877 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6878 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6879 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6880 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6881 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6882 * ada-lang.c (ada_main_name): Update.
6883 (ada_lookup_simple_minsym): Update.
6884 (ada_make_symbol_completion_list): Update.
6885 (ada_add_standard_exceptions): Update.
6886 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6887 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6888 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6889 * arm-tdep.c (skip_prologue_function): Update.
6890 (arm_skip_stack_protector, arm_skip_stub): Update.
6891 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6892 (arm_wince_skip_main_prologue): Update.
6893 * auxv.c (ld_so_xfer_auxv): Update.
6894 * avr-tdep.c (avr_scan_prologue): Update.
6895 * ax-gdb.c (gen_var_ref): Update.
6896 * block.c (call_site_for_pc): Update.
6897 * blockframe.c (get_pc_function_start): Update.
6898 (find_pc_partial_function_gnu_ifunc): Update.
6899 * breakpoint.c (create_overlay_event_breakpoint): Update.
6900 (create_longjmp_master_breakpoint): Update.
6901 (create_std_terminate_master_breakpoint): Update.
6902 (create_exception_master_breakpoint): Update.
6903 (resolve_sal_pc): Update.
6904 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6905 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6906 Update.
6907 * c-valprint.c (c_val_print): Update.
6908 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6909 * coffread.c (coff_symfile_read): Update.
6910 * common/agent.c (agent_look_up_symbols): Update.
6911 * dbxread.c (find_stab_function_addr): Update.
6912 (end_psymtab): Update.
6913 * dwarf2loc.c (call_site_to_target_addr): Update.
6914 (func_verify_no_selftailcall): Update.
6915 (tailcall_dump): Update.
6916 (call_site_find_chain_1): Update.
6917 (dwarf_expr_reg_to_entry_parameter): Update.
6918 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6919 (elf_gnu_ifunc_resolve_by_got): Update.
6920 * f-valprint.c (info_common_command): Update.
6921 * findvar.c (read_var_value): Update.
6922 * frame.c (get_prev_frame_1): Update.
6923 (inside_main_func): Update.
6924 * frv-tdep.c (frv_skip_main_prologue): Update.
6925 (frv_frame_this_id): Update.
6926 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6927 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6928 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6929 (gnuv3_skip_trampoline): Update.
6930 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6931 (hppa64_hpux_in_solib_call_trampoline): Update.
6932 (hppa_hpux_skip_trampoline_code): Update.
6933 (hppa64_hpux_search_dummy_call_sequence): Update.
6934 (hppa_hpux_find_import_stub_for_addr): Update.
6935 (hppa_hpux_find_dummy_bpaddr): Update.
6936 * hppa-tdep.c (hppa_symbol_address)
6937 (hppa_lookup_stub_minimal_symbol): Update.
6938 * i386-tdep.c (i386_skip_main_prologue): Update.
6939 (i386_pe_skip_trampoline_code): Update.
6940 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6941 * infcall.c (get_function_name): Update.
6942 * infcmd.c (until_next_command): Update.
6943 * jit.c (jit_breakpoint_re_set_internal): Update.
6944 (jit_inferior_init): Update.
6945 * linespec.c (minsym_found): Update.
6946 (add_minsym): Update.
6947 * linux-fork.c (info_checkpoints_command): Update.
6948 * linux-nat.c (get_signo): Update.
6949 * linux-thread-db.c (inferior_has_bug): Update.
6950 * m32c-tdep.c (m32c_return_value): Update.
6951 (m32c_m16c_address_to_pointer): Update.
6952 (m32c_m16c_pointer_to_address): Update.
6953 * m32r-tdep.c (m32r_frame_this_id): Update.
6954 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6955 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6956 * maint.c (maintenance_translate_address): Update.
6957 * minsyms.c (add_minsym_to_hash_table): Update.
6958 (add_minsym_to_demangled_hash_table): Update.
6959 (msymbol_objfile): Update.
6960 (lookup_minimal_symbol): Update.
6961 (iterate_over_minimal_symbols): Update.
6962 (lookup_minimal_symbol_text): Update.
6963 (lookup_minimal_symbol_by_pc_name): Update.
6964 (lookup_minimal_symbol_solib_trampoline): Update.
6965 (lookup_minimal_symbol_by_pc_section_1): Update.
6966 (lookup_minimal_symbol_and_objfile): Update.
6967 (prim_record_minimal_symbol_full): Update.
6968 (compare_minimal_symbols): Update.
6969 (compact_minimal_symbols): Update.
6970 (build_minimal_symbol_hash_tables): Update.
6971 (install_minimal_symbols): Update.
6972 (terminate_minimal_symbol_table): Update.
6973 (find_solib_trampoline_target): Update.
6974 (minimal_symbol_upper_bound): Update.
6975 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6976 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6977 (mips_skip_pic_trampoline_code): Update.
6978 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6979 * objc-lang.c (selectors_info): Update.
6980 (classes_info): Update.
6981 (find_methods): Update.
6982 (find_imps): Update.
6983 (find_objc_msgsend): Update.
6984 * objfiles.c (objfile_relocate1): Update.
6985 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6986 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6987 * p-valprint.c (pascal_val_print): Update.
6988 * parse.c (write_exp_msymbol): Update.
6989 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6990 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6991 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6992 * printcmd.c (build_address_symbolic): Update.
6993 (sym_info): Update.
6994 (address_info): Update.
6995 * proc-service.c (ps_pglobal_lookup): Update.
6996 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6997 (find_pc_sect_psymtab): Update.
6998 * python/py-framefilter.c (py_print_frame): Update.
6999 * ravenscar-thread.c (get_running_thread_id): Update.
7000 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7001 Update.
7002 * remote.c (remote_check_symbols): Update.
7003 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7004 (rs6000_skip_trampoline_code): Update.
7005 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7006 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7007 * solib-dsbt.c (lm_base): Update.
7008 * solib-frv.c (lm_base): Update.
7009 (main_got): Update.
7010 * solib-irix.c (locate_base): Update.
7011 * solib-som.c (som_solib_create_inferior_hook): Update.
7012 (som_solib_desire_dynamic_linker_symbols): Update.
7013 (link_map_start): Update.
7014 * solib-spu.c (spu_enable_break): Update.
7015 (ocl_enable_break): Update.
7016 * solib-svr4.c (elf_locate_base): Update.
7017 (enable_break): Update.
7018 * spu-tdep.c (spu_get_overlay_table): Update.
7019 (spu_catch_start): Update.
7020 (flush_ea_cache): Update.
7021 * stabsread.c (define_symbol): Update.
7022 (scan_file_globals): Update.
7023 * stack.c (find_frame_funname): Update.
7024 (frame_info): Update.
7025 * symfile.c (simple_read_overlay_table): Update.
7026 (simple_overlay_update): Update.
7027 * symmisc.c (dump_msymbols): Update.
7028 * symtab.c (fixup_section): Update.
7029 (find_pc_sect_line): Update.
7030 (skip_prologue_sal): Update.
7031 (search_symbols): Update.
7032 (print_msymbol_info): Update.
7033 (rbreak_command): Update.
7034 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7035 (completion_list_objc_symbol): Update.
7036 (default_make_symbol_completion_list_break_on): Update.
7037 * tracepoint.c (scope_info): Update.
7038 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7039 (tui_get_begin_asm_address): Update.
7040 * valops.c (find_function_in_inferior): Update.
7041 * value.c (value_static_field): Update.
7042 (value_fn_field): Update.
7043
50e65b17
TT
70442014-02-26 Tom Tromey <tromey@redhat.com>
7045
7046 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7047 bound minimal symbols. Move code that knows about minsym
7048 table layout...
7049 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7050 function.
7051 * minsyms.h (minimal_symbol_upper_bound): Declare.
7052 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7053 minimal_symbol_upper_bound.
7054
1b588015
JB
70552014-02-27 Joel Brobecker <brobecker@adacore.com>
7056
7057 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7058 Use the type's name if its basic type does not have a tag.
7059
dbb9c2b1
JB
70602014-02-27 Joel Brobecker <brobecker@adacore.com>
7061
7062 * dwarf2read.c (read_subrange_type): Add comment.
7063
55426c9d
JB
70642014-02-27 Joel Brobecker <brobecker@adacore.com>
7065
7066 * dwarf2read.c (update_enumeration_type_from_children): New
7067 function, mostly extracted from process_structure_scope.
7068 (read_enumeration_type): Call update_enumeration_type_from_children.
7069 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7070 and flag_flag_enum fields.
7071
f2fce0ca
PA
70722014-02-26 Pedro Alves <palves@redhat.com>
7073
7074 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7075 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7076 to_xfer_partial method.
7077
7a44e40e
PA
70782014-02-26 Pedro Alves <palves@redhat.com>
7079
7080 * target.c (complete_target_initialization): Don't install
7081 default_xfer_partial as to_xfer_partial hook.
7082 (nomemory): Delete.
7083 (update_current_target): Don't INHERIT nor de_fault
7084 deprecated_xfer_memory. Delete de_fault macro.
7085 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7086 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7087 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7088 field.
7089
bd265cd0
PA
70902014-02-26 Pedro Alves <palves@redhat.com>
7091
7092 * go32-nat.c (my_write_child): New function.
7093 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7094 (go32_xfer_partial): New function.
7095 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7096 Instead install a to_xfer_partial hook.
7097
9d46c4e5
PA
70982014-02-26 Pedro Alves <palves@redhat.com>
7099
7100 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7101 to_xfer_partial helper. Rewrite.
7102 (procfs_xfer_partial): New function.
7103 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7104 Install a to_xfer_partial hook.
7105
a1583b1f
PA
71062014-02-26 Pedro Alves <palves@redhat.com>
7107
7108 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7109 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7110 (m32r_xfer_partial): New function.
7111 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7112 Install a to_xfer_partial hook.
7113
6df1b29f
PA
71142014-02-26 Pedro Alves <palves@redhat.com>
7115
7116 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7117 helper.
7118 (mips_xfer_partial): New function.
7119 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7120 hook. Install a to_xfer_partial hook.
7121
dc53a7ad
JB
71222014-02-26 Joel Brobecker <brobecker@adacore.com>
7123
7124 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7125 * gdbtypes.c (create_array_type_with_stride): New function,
7126 renaming create_array_type, but with an added parameter
7127 called "bit_stride".
7128 (create_array_type): Re-implement using
7129 create_array_type_with_stride.
7130 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7131 and DW_AT_bit_stride attributes.
7132
12ab52e9
PA
71332014-02-26 Pedro Alves <palves@redhat.com>
7134
7135 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7136 task-specific breakpoints.
7137
d16461ae
PA
71382014-02-25 Pedro Alves <palves@redhat.com>
7139
7140 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7141 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7142
a8b16220
SS
71432014-02-25 Stan Shebs <stan@codesourcery.com>
7144
7145 * defs.h: Annotate comments for Doxygen.
7146
b9e795ee
TT
71472014-02-25 Tom Tromey <tromey@redhat.com>
7148
7149 * target.h (target_ignore): Don't declare.
7150 * target.c (target_ignore): Remove.
7151
849c862e
JK
71522014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7153
7154 PR gdb/16626
7155 * auto-load.c (auto_load_objfile_script_1): Change filename to
7156 debugfile.
7157
475109d8
JB
71582014-02-25 Joel Brobecker <brobecker@adacore.com>
7159
7160 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7161 documentation. Adjust prototype to match the target_ops
7162 to_xfer_partial method. Adjust implementation accordingly.
7163
e186c3bd
HZ
71642014-02-25 Hui Zhu <hui@codesourcery.com>
7165
7166 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7167 to_traceframe_info.
7168
6d451942
KB
71692014-02-25 Kevin Buettner <kevinb@redhat.com>
7170
041ab8b4 7171 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7172 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7173 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7174 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7175 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7176 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7177 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7178 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7179 New constants.
7180 (rl78_register_type): Use a data pointer type for SP and
7181 new pseudo registers mentioned above. Use a 16 bit integer
7182 type for all other register pairs.
7183 (rl78_register_name, rl78_g10_register_name): Update for
7184 new pseudo registers.
7185 (rl78_pseudo_register_read): Likewise.
7186 (rl78_pseudo_register_write): Likewise.
7187 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7188 to the newly added pseudo registers.
7189
eddf0bae
DE
71902014-02-24 Doug Evans <dje@google.com>
7191
7192 * value.c (record_latest_value): Fix comment.
7193 * printcmd.c (print_command_1): Remove code to handle -1 return from
7194 record_latest_value.
7195
e96027e0
PA
71962014-02-24 Pedro Alves <palves@redhat.com>
7197
7198 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7199 deprecated_xfer_memory hook.
7200 (procfs_xfer_partial): Call procfs_xfer_memory instead
7201 of the deprecated_xfer_memory target hook.
7202 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7203 helper.
7204
0837c976
YZ
72052014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7206
7207 * windows-nat.c (windows_xfer_shared_libraries): Return
7208 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7209 requested object is TARGET_OBJECT_LIBRARIES.
7210
bc113b4e
YQ
72112014-02-24 Yao Qi <yao@codesourcery.com>
7212
7213 * target.h (enum target_xfer_status)
7214 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7215 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7216 explicitly. New.
7217 * corefile.c (memory_error_message): User updated.
7218 * exec.c (section_table_read_available_memory): Likewise.
7219 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7220 * target.c (target_xfer_status_to_string): Likewise.
7221 (raw_memory_xfer_partial): Likewise.
7222 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7223 * valops.c (read_value_memory): Likewise.
7224 * exec.h: Update comments.
7225
01cb8804
YQ
72262014-02-24 Yao Qi <yao@codesourcery.com>
7227
7228 * target.c (target_xfer_status_to_string): Rename argument err
7229 to status.
7230 * target.h (target_xfer_status_to_string): Update declaration.
7231 Replace target_xfer_error_to_string with
7232 target_xfer_status_to_string in comment.
7233
93063aa6
YQ
72342014-02-24 Yao Qi <yao@codesourcery.com>
7235
7236 * mips-linux-nat.c (super_close): Update its type.
7237 (mips_linux_close): Pass 'self' to super_close.
7238
5c328c05
YQ
72392014-02-24 Yao Qi <yao@codesourcery.com>
7240
7241 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7242 * corefile.c (read_memory): Adjusted.
7243 * target.c (target_write_with_progress): Adjusted.
7244
f73023dd
YQ
72452014-02-23 Yao Qi <yao@codesourcery.com>
7246
7247 Revert two patches:
7248
7249 2013-10-25 Yao Qi <yao@codesourcery.com>
7250
7251 * remote.c (remote_traceframe_info): Return early if
7252 traceframe is not selected.
7253
7254 2013-07-19 Yao Qi <yao@codesourcery.com>
7255
7256 * target.c (update_current_target): Change the default action
7257 of 'to_traceframe_info' from tcomplain to return_zero.
7258 * target.h (struct target_ops) <to_traceframe_info>: Add more
7259 comments.
7260
5a2eb0ef
YQ
72612014-02-23 Yao Qi <yao@codesourcery.com>
7262
7263 * valops.c (read_value_memory): Rewrite it. Call
7264 target_xfer_partial in a loop.
7265 * exec.h (section_table_available_memory): Remove declaration.
7266 Move comments to ...
7267 * exec.c (section_table_available_memory): ... here. Make it
7268 static.
7269
1ee79381
YQ
72702014-02-23 Yao Qi <yao@codesourcery.com>
7271
7272 * exec.c (section_table_read_available_memory): New function.
7273 * exec.h (section_table_read_available_memory): Declare.
7274 * ctf.c (ctf_xfer_partial): Call
7275 section_table_read_available_memory.
7276 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7277
1ca49d37
YQ
72782014-02-23 Yao Qi <yao@codesourcery.com>
7279
7280 * ctf.c (ctf_xfer_partial): Move code to ...
7281 * exec.c (exec_read_partial_read_only): ... it. New function.
7282 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7283 * tracefile.c: Include "exec.h".
7284 * exec.h (exec_read_partial_read_only): Declare.
7285
a283690e
YQ
72862014-02-23 Yao Qi <yao@codesourcery.com>
7287
7288 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7289 (tfile_has_memory): Remove.
7290 (init_tfile_ops): Don't set fields to_has_all_memory and
7291 to_has_memory of tfile_ops.
7292 * tracefile.c (tracefile_has_all_memory): New function.
7293 (tracefile_has_memory): New function.
7294 (init_tracefile_ops): Initialize fields to_has_all_memory and
7295 to_has_memory of 'ops'.
7296
12e03cd0
YQ
72972014-02-23 Yao Qi <yao@codesourcery.com>
7298
7299 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7300 (ctf_thread_alive, ctf_get_trace_status): Remove.
7301 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7302 init_tracefile_ops.
7303 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7304 (tfile_has_stack, tfile_has_registers): Remove.
7305 (tfile_thread_alive): Remove.
7306 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7307 init_tracefile_ops.
7308 * tracefile.c (tracefile_has_stack): New function.
7309 (tracefile_has_registers): New function.
7310 (tracefile_thread_alive): New function.
7311 (tracefile_get_trace_status): New function.
7312 (init_tracefile_ops): New function.
7313 * tracefile.h (init_tracefile_ops): Declare.
7314
11395323
YQ
73152014-02-23 Yao Qi <yao@codesourcery.com>
7316
7317 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7318 (O_LARGEFILE): Likewise.
7319 (tfile_ops): Likewise.
7320 (TRACE_HEADER_SIZE): Likewise.
7321 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7322 (cur_data_size): Likewise.
7323 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7324 (tfile_close, tfile_files_info): Likewise.
7325 (tfile_get_trace_status): Likewise.
7326 (tfile_get_tracepoint_status): Likewise.
7327 (tfile_get_traceframe_address): Likewise.
7328 (tfile_trace_find, match_blocktype): Likewise.
7329 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7330 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7331 (tfile_get_trace_state_variable_value): Likewise.
7332 (tfile_has_all_memory, tfile_has_memory): Likewise.
7333 (tfile_has_stack, tfile_has_registers): Likewise.
7334 (tfile_thread_alive, build_traceframe_info): Likewise.
7335 (tfile_traceframe_info, init_tfile_ops): Likewise.
7336 (_initialize_tracepoint): Don't call init_tfile_ops
7337 and add_target_with_completer.
7338 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7339 exec.h, completer.h and filenames.h.
7340 (_initialize_tracefile_tfile): New function.
7341
7951c4eb
YQ
73422014-02-23 Yao Qi <yao@codesourcery.com>
7343
7344 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7345 tracefile-tfile.o.
7346 (HFILES_NO_SRCDIR): Add tracefile.h.
7347 * ctf.c: Include "tracefile.h".
7348 * tracefile.h: New file.
7349 * tracefile.c: New file
7350 * tracefile-tfile.c: New file.
7351 * tracepoint.c: Include "tracefile.h".
7352 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7353 (stop_reason_names): Add const.
7354 (trace_file_writer_xfree): Move it to tracefile.c.
7355 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7356 (trace_save_ctf): Likewise.
7357 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7358 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7359 (tfile_write_header, tfile_write_regblock_type): Likewise.
7360 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7361 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7362 (tfile_write_raw_data, tfile_end): Likewise.
7363 (tfile_trace_file_writer_new): Likewise.
7364 (free_uploaded_tp): Make it extern.
7365 (free_uploaded_tsv): Make it extern.
7366 (_initialize_tracepoint): Move code to register command 'tsave'
7367 to tracefile.c.
7368 * tracepoint.h (stop_reason_names): Declare.
7369 (struct trace_frame_write_ops): Move it to tracefile.h.
7370 (struct trace_file_write_ops): Likewise.
7371 (struct trace_file_writer): Likewise.
7372 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7373
184cd072
JK
73742014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7375
7376 PR gdb/16594
7377 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7378 process name.
7379 (get_cores_used_by_process): New parameter num_cores, use it.
7380 (linux_xfer_osdata_processes): Pass num_cores to it.
7381 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7382 process name.
7383
c63528fc
AK
73842014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7385
7386 * target.c (memory_xfer_partial): Fix length arg in call to
7387 breakpoint_xfer_memory.
7388
d7b30f67
SDJ
73892014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7390
7391 PR tdep/16397
7392 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7393 number comes after the + or - signs. Adjust length of register
7394 name to be extracted.
7395
8838afaf
TT
73962014-02-20 Tom Tromey <tromey@redhat.com>
7397
7398 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7399 (ada_varobj_ops): Mark "extern".
7400
05227d14
TT
74012014-02-20 Tom Tromey <tromey@redhat.com>
7402
7403 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7404
1254eefc
DE
74052014-02-20 Doug Evans <xdje42@gmail.com>
7406
7407 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7408 All callers updated.
7409 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7410 All callers updated.
7411 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7412 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7413
adde2bff
DE
74142014-02-20 lin zuojian <manjian2006@gmail.com>
7415 Joel Brobecker <brobecker@adacore.com>
7416 Doug Evans <xdje42@gmail.com>
7417
7418 PR symtab/16581
7419 * dwarf2read.c (struct die_info): New member in_process.
7420 (reset_die_in_process): New function.
7421 (process_die): Set it at the start, reset when returning.
7422 (inherit_abstract_dies): Only call process_die if origin_child_die
7423 not already being processed.
7424
3be75f87
JB
74252014-02-20 Joel Brobecker <brobecker@adacore.com>
7426
7427 * windows-nat.c (handle_unload_dll): Add function documentation.
7428 (do_initial_windows_stuff): Add comment explaining why we wait
7429 until after inferior initialization has finished before
7430 processing all DLLs.
7431
47f7ffdb
JB
74322014-02-20 Joel Brobecker <brobecker@adacore.com>
7433
7434 * windows-nat.c (get_module_name): Delete.
7435 (windows_get_exec_module_filename): New function, mostly
7436 inspired from get_module_name.
7437 (windows_pid_to_exec_file): Replace call to get_module_name
7438 by call to windows_get_exec_module_filename.
7439
1cd9feab
JB
74402014-02-20 Joel Brobecker <brobecker@adacore.com>
7441
7442 * windows-nat.c (handle_load_dll): Rewrite this function's
7443 introductory comment. Remove code using get_module_name
7444 to get the DLL's name.
7445
ea39ad35
JB
74462014-02-20 Joel Brobecker <brobecker@adacore.com>
7447
7448 * windows-nat.c (get_windows_debug_event): Ignore
7449 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7450 if windows_initialization_done == 0.
7451 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7452 Adjust implementation to always load all DLLs.
7453 (do_initial_windows_stuff): Replace call to
7454 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7455
95060284
JB
74562014-02-20 Joel Brobecker <brobecker@adacore.com>
7457
7458 * windows-nat.c (_initialize_windows_nat): Deprecate the
7459 "dll-symbols" command. Turn the "add-shared-symbol-files"
7460 and "assf" aliases into commands, and deprecate them as well.
7461 * NEWS: Add entry explaining that "dll-symbols" and its two
7462 aliases are now deprecated.
7463
8d4fdb12
JB
74642014-02-20 Joel Brobecker <brobecker@adacore.com>
7465
7466 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7467 new-line in debug string. Remove trailing spaces.
7468
1b281443
SS
74692014-02-19 Stan Shebs <stan@codesourcery.com>
7470
7471 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7472
f7bd0f78
SC
74732014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7474
7475 * NEWS: Add entry for the new feature
7476 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7477 and class values.
7478
399ebc3d
SS
74792014-02-19 Stan Shebs <stan@codesourcery.com>
7480
7481 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7482
c658158d
PA
74832014-02-19 Pedro Alves <palves@redhat.com>
7484
7485 * common/ptid.h (struct ptid): Mention that process_stratum
7486 targets should prefer ptid.lwp.
7487
ba348170
PA
74882014-02-19 Pedro Alves <palves@redhat.com>
7489
7490 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7491 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7492 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7493 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7494 store remote thread ids rather than ptid.tid.
7495 (_initialize_remote): Adjust.
7496
ac01945b
TT
74972014-02-19 Tom Tromey <tromey@redhat.com>
7498
7499 * target.c (target_get_unwinder): Rewrite.
7500 (target_get_tailcall_unwinder): Rewrite.
7501 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7502 (record_btrace_to_get_tailcall_unwinder): New function.
7503 (init_record_btrace_ops): Update.
7504 * target.h (struct target_ops) <to_get_unwinder,
7505 to_get_tailcall_unwinder>: Now function pointers. Use
7506 TARGET_DEFAULT_RETURN.
7507
8476dc92
TT
75082014-02-19 Tom Tromey <tromey@redhat.com>
7509
7510 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7511 argument.
7512 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7513
c0eca49f
TT
75142014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7517 directly.
7518 * target-delegates.c: Rebuild.
7519 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7520 TARGET_DEFAULT_FUNC.
7521 * target.c (default_target_decr_pc_after_break): Rename from
7522 forward_target_decr_pc_after_break. Simplify.
7523 (target_decr_pc_after_break): Rely on delegation.
7524
596b6b39
TT
75252014-02-19 Tom Tromey <tromey@redhat.com>
7526
7527 * target.c (update_current_target): Do not INHERIT to_doc or
7528 to_magic. Do not de_fault to_open or to_close.
7529
b427c1bc
TT
75302014-02-19 Tom Tromey <tromey@redhat.com>
7531
7532 * gcore.h (objfile_find_memory_regions): Declare.
7533 * gcore.c (objfile_find_memory_regions): No longer static. Add
7534 "self" argument.
7535 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7536 * exec.c: Include gcore.h.
7537 (exec_set_find_memory_regions): Remove.
7538 (exec_find_memory_regions): Remove.
7539 (exec_do_find_memory_regions): Remove.
7540 (init_exec_ops): Update.
7541 * defs.h (exec_set_find_memory_regions): Remove.
7542
9b144037
TT
75432014-02-19 Tom Tromey <tromey@redhat.com>
7544
7545 * target-delegates.c: Rebuild.
7546 * target.h (struct target_ops) <to_extra_thread_info,
7547 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7548 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7549 not 0, in TARGET_DEFAULT_RETURN.
7550
555bbdeb
TT
75512014-02-19 Tom Tromey <tromey@redhat.com>
7552
7553 * target.c (complete_target_initialization): Remove casts. Use
7554 return_zero_has_execution.
7555 (return_zero): Add "ignore" argument.
7556 (return_zero_has_execution): New function.
7557 (init_dummy_target): Remove casts. Use
7558 return_zero_has_execution.
7559
be4ddd36
TT
75602014-02-19 Tom Tromey <tromey@redhat.com>
7561
7562 * target.c (update_current_target): Update comments. Do not
7563 INHERIT to_stratum.
7564
2117c711
TT
75652014-02-19 Tom Tromey <tromey@redhat.com>
7566
7567 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7568 needed.
7569 * corelow.c (core_read_description): Delegate when needed.
7570 * remote.c (remote_read_description): Delegate when needed.
7571 * target-delegates.c: Rebuild.
7572 * target.c (target_read_description): Rewrite.
7573 * target.h (struct target_ops) <to_read_description>: Update
7574 comment. Use TARGET_DEFAULT_RETURN.
7575
e88ef65c
TT
75762014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * target-delegates.c: Rebuild.
7579 * target.c (update_current_target): Don't inherit or default
7580 to_can_run.
7581 (find_default_run_target): Check against delegate_can_run.
7582 * target.h (struct target_ops) <to_can_run>: Use
7583 TARGET_DEFAULT_RETURN.
7584
86a0854a
TT
75852014-02-19 Tom Tromey <tromey@redhat.com>
7586
7587 * target-delegates.c: Rebuild.
7588 * target.c (target_disconnect): Unconditionally delegate.
7589 * target.h (struct target_ops) <to_disconnect>: Use
7590 TARGET_DEFAULT_NORETURN.
7591
ee97f592
TT
75922014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * record.c (record_stop): Unconditionally delegate.
7595 * target-delegates.c: Rebuild.
7596 * target.c (target_stop_recording): Unconditionally delegate.
7597 * target.h (struct target_ops) <to_stop_recording>: Use
7598 TARGET_DEFAULT_IGNORE.
7599
6dc7fcf4
TT
76002014-02-19 Tom Tromey <tromey@redhat.com>
7601
7602 * target-delegates.c: Rebuild.
7603 * target.c (target_enable_btrace): Unconditionally delegate.
7604 * target.h (struct target_ops) <to_enable_btrace>: Use
7605 TARGET_DEFAULT_NORETURN.
7606
eb5b20d4
TT
76072014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * target-delegates.c: Rebuild.
7610 * target.c (target_read_btrace): Unconditionally delegate.
7611 * target.h (struct target_ops) <to_read_btrace>: Use
7612 TARGET_DEFAULT_NORETURN.
7613
9ace480d
TT
76142014-02-19 Tom Tromey <tromey@redhat.com>
7615
7616 * target-delegates.c: Rebuild.
7617 * target.c (target_teardown_btrace): Unconditionally delegate.
7618 * target.h (struct target_ops) <to_teardown_btrace>: Use
7619 TARGET_DEFAULT_NORETURN.
7620
8dc292d3
TT
76212014-02-19 Tom Tromey <tromey@redhat.com>
7622
7623 * target-delegates.c: Rebuild.
7624 * target.c (target_disable_btrace): Unconditionally delegate.
7625 * target.h (struct target_ops) <to_disable_btrace>: Use
7626 TARGET_DEFAULT_NORETURN.
7627
58a5184e
TT
76282014-02-19 Tom Tromey <tromey@redhat.com>
7629
7630 * target-delegates.c: Rebuild.
7631 * target.c (default_search_memory): New function.
7632 (simple_search_memory): Update comment.
7633 (target_search_memory): Unconditionally delegate.
7634 * target.h (struct target_ops) <to_search_memory>: Use
7635 TARGET_DEFAULT_FUNC.
7636
8de71aab
TT
76372014-02-19 Tom Tromey <tromey@redhat.com>
7638
7639 * auxv.c (default_auxv_parse): No longer static.
7640 (target_auxv_parse): Unconditionally delegate.
7641 * auxv.h (default_auxv_parse): Declare.
7642 * target-delegates.c: Rebuild.
7643 * target.c: Include auxv.h.
7644 * target.h (struct target_ops) <to_auxv_parse>: Use
7645 TARGET_DEFAULT_FUNC.
7646
6b2c5a57
TT
76472014-02-19 Tom Tromey <tromey@redhat.com>
7648
7649 * target-delegates.c: Rebuild.
7650 * target.c (target_memory_map): Unconditionally delegate.
7651 * target.h (struct target_ops) <to_memory_map>: Use
7652 TARGET_DEFAULT_RETURN.
7653
cbffc065
TT
76542014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * target-delegates.c: Rebuild.
7657 * target.c (target_thread_alive): Unconditionally delegate.
7658 * target.h (struct target_ops) <to_thread_alive>: Use
7659 TARGET_DEFAULT_RETURN.
7660
f09e2107
TT
76612014-02-19 Tom Tromey <tromey@redhat.com>
7662
7663 * target-delegates.c: Rebuild.
7664 * target.c (target_save_record): Unconditionally delegate.
7665 * target.h (struct target_ops) <to_save_record>: Use
7666 TARGET_DEFAULT_NORETURN.
7667
07366925
TT
76682014-02-19 Tom Tromey <tromey@redhat.com>
7669
7670 * target-delegates.c: Rebuild.
7671 * target.c (target_delete_record): Unconditionally delegate.
7672 * target.h (struct target_ops) <to_delete_record>: Use
7673 TARGET_DEFAULT_NORETURN.
7674
dd2e9d25
TT
76752014-02-19 Tom Tromey <tromey@redhat.com>
7676
7677 * target-delegates.c: Rebuild.
7678 * target.c (target_record_is_replaying): Unconditionally
7679 delegate.
7680 * target.h (struct target_ops) <to_record_is_replaying>: Use
7681 TARGET_DEFAULT_RETURN.
7682
671e76cc
TT
76832014-02-19 Tom Tromey <tromey@redhat.com>
7684
7685 * target-delegates.c: Rebuild.
7686 * target.c (target_goto_record_begin): Unconditionally delegate.
7687 * target.h (struct target_ops) <to_goto_record_begin>: Use
7688 TARGET_DEFAULT_NORETURN.
7689
e9179bb3
TT
76902014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target-delegates.c: Rebuild.
7693 * target.c (target_goto_record_end): Unconditionally delegate.
7694 * target.h (struct target_ops) <to_goto_record_end>: Use
7695 TARGET_DEFAULT_NORETURN.
7696
05969c84
TT
76972014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * target-delegates.c: Rebuild.
7700 * target.c (target_goto_record): Unconditionally delegate.
7701 * target.h (struct target_ops) <to_goto_record>: Use
7702 TARGET_DEFAULT_NORETURN.
7703
3679abfa
TT
77042014-02-19 Tom Tromey <tromey@redhat.com>
7705
7706 * target-delegates.c: Rebuild.
7707 * target.c (target_insn_history): Unconditionally delegate.
7708 * target.h (struct target_ops) <to_insn_history>: Use
7709 TARGET_DEFAULT_NORETURN.
7710
8444ab58
TT
77112014-02-19 Tom Tromey <tromey@redhat.com>
7712
7713 * target-delegates.c: Rebuild.
7714 * target.c (target_insn_history_from): Unconditionally delegate.
7715 * target.h (struct target_ops) <to_insn_history_from>: Use
7716 TARGET_DEFAULT_NORETURN.
7717
c29302cc
TT
77182014-02-19 Tom Tromey <tromey@redhat.com>
7719
7720 * target-delegates.c: Rebuild.
7721 * target.c (target_insn_history_range): Unconditionally delegate.
7722 * target.h (struct target_ops) <to_insn_history_range>: Use
7723 TARGET_DEFAULT_NORETURN.
7724
170049d4
TT
77252014-02-19 Tom Tromey <tromey@redhat.com>
7726
7727 * target-delegates.c: Rebuild.
7728 * target.c (target_call_history): Unconditionally delegate.
7729 * target.h (struct target_ops) <to_call_history>: Use
7730 TARGET_DEFAULT_NORETURN.
7731
16fc27d6
TT
77322014-02-19 Tom Tromey <tromey@redhat.com>
7733
7734 * target-delegates.c: Rebuild.
7735 * target.c (target_call_history_from): Unconditionally delegate.
7736 * target.h (struct target_ops) <to_call_history_from>: Use
7737 TARGET_DEFAULT_NORETURN.
7738
115d9817
TT
77392014-02-19 Tom Tromey <tromey@redhat.com>
7740
7741 * target-delegates.c: Rebuild.
7742 * target.c (target_call_history_range): Unconditionally delegate.
7743 * target.h (struct target_ops) <to_call_history_range>: Use
7744 TARGET_DEFAULT_NORETURN.
7745
eb276a6b
TT
77462014-02-19 Tom Tromey <tromey@redhat.com>
7747
7748 * target-delegates.c: Rebuild.
7749 * target.c (target_verify_memory): Unconditionally delegate.
7750 * target.h (struct target_ops) <to_verify_memory>: Use
7751 TARGET_DEFAULT_NORETURN.
7752
9e538d0d
TT
77532014-02-19 Tom Tromey <tromey@redhat.com>
7754
7755 * target-delegates.c: Rebuild.
7756 * target.c (target_core_of_thread): Unconditionally delegate.
7757 * target.h (struct target_ops) <to_core_of_thread>: Use
7758 TARGET_DEFAULT_RETURN.
7759
f6fb2925
TT
77602014-02-19 Tom Tromey <tromey@redhat.com>
7761
7762 * target-delegates.c: Rebuild.
7763 * target.c (target_flash_done): Unconditionally delegate.
7764 * target.h (struct target_ops) <to_flash_done>: Use
7765 TARGET_DEFAULT_NORETURN.
7766
e8a6c6ac
TT
77672014-02-19 Tom Tromey <tromey@redhat.com>
7768
7769 * target-delegates.c: Rebuild.
7770 * target.c (target_flash_erase): Unconditionally delegate.
7771 * target.h (struct target_ops) <to_flash_erase>: Use
7772 TARGET_DEFAULT_NORETURN.
7773
7e35c012
TT
77742014-02-19 Tom Tromey <tromey@redhat.com>
7775
7776 * target-delegates.c: Rebuild.
7777 * target.c (target_get_section_table): Unconditionally delegate.
7778 * target.h (struct target_ops) <to_get_section_table>: Use
7779 TARGET_DEFAULT_RETURN.
7780
770234d3
TT
77812014-02-19 Tom Tromey <tromey@redhat.com>
7782
7783 * target-delegates.c: Rebuild.
7784 * target.c (target_pid_to_str): Unconditionally delegate.
7785 (init_dummy_target): Don't initialize to_pid_to_str.
7786 (default_pid_to_str): Rename from dummy_pid_to_str.
7787 * target.h (struct target_ops) <to_pid_to_str>: Use
7788 TARGET_DEFAULT_FUNC.
7789
09b0dc2b
TT
77902014-02-19 Tom Tromey <tromey@redhat.com>
7791
7792 * target-delegates.c: Rebuild.
7793 * target.c (target_find_new_threads): Unconditionally delegate.
7794 * target.h (struct target_ops) <to_find_new_threads>: Use
7795 TARGET_DEFAULT_RETURN.
7796
7d4f8efa
TT
77972014-02-19 Tom Tromey <tromey@redhat.com>
7798
7799 * target-delegates.c: Rebuild.
7800 * target.c (target_program_signals): Unconditionally delegate.
7801 * target.h (struct target_ops) <to_program_signals>: Use
7802 TARGET_DEFAULT_IGNORE.
7803
035cad7f
TT
78042014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target-delegates.c: Rebuild.
7807 * target.c (target_pass_signals): Unconditionally delegate.
7808 * target.h (struct target_ops) <to_pass_signals>: Use
7809 TARGET_DEFAULT_IGNORE.
7810
8d657035
TT
78112014-02-19 Tom Tromey <tromey@redhat.com>
7812
7813 * target-delegates.c: Rebuild.
7814 * target.c (default_mourn_inferior): New function.
7815 (target_mourn_inferior): Unconditionally delegate.
7816 * target.h (struct target_ops) <to_mourn_inferior>: Use
7817 TARGET_DEFAULT_FUNC.
7818
098dba18
TT
78192014-02-19 Tom Tromey <tromey@redhat.com>
7820
7821 * target-delegates.c: Rebuild.
7822 * target.c (default_follow_fork): New function.
7823 (target_follow_fork): Unconditionally delegate.
7824 * target.h (struct target_ops) <to_follow_fork>: Use
7825 TARGET_DEFAULT_FUNC.
7826
423a4807
TT
78272014-02-19 Tom Tromey <tromey@redhat.com>
7828
7829 * target-delegates.c: Rebuild.
7830 * target.c (target_kill): Unconditionally delegate.
7831 * target.h (struct target_ops) <to_kill>: Use
7832 TARGET_DEFAULT_NORETURN.
7833
6c7e5e5c
TT
78342014-02-19 Tom Tromey <tromey@redhat.com>
7835
7836 * target-delegates.c: Rebuild.
7837 * target.c (target_masked_watch_num_registers): Unconditionally
7838 delegate.
7839 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7840 Use TARGET_DEFAULT_RETURN.
7841
8b1c364c
TT
78422014-02-19 Tom Tromey <tromey@redhat.com>
7843
7844 * target-delegates.c: Rebuild.
7845 * target.c (target_remove_mask_watchpoint): Unconditionally
7846 delegate.
7847 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7848 TARGET_DEFAULT_RETURN.
7849
cd4ae029
TT
78502014-02-19 Tom Tromey <tromey@redhat.com>
7851
7852 * target-delegates.c: Rebuild.
7853 * target.c (target_insert_mask_watchpoint): Unconditionally
7854 delegate.
7855 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7856 TARGET_DEFAULT_RETURN.
7857
a134316b
TT
78582014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_ranged_break_num_registers): Unconditionally
7862 delegate.
7863 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7864 Use TARGET_DEFAULT_RETURN.
7865
ad5989bd
TT
78662014-02-19 Tom Tromey <tromey@redhat.com>
7867
7868 * target-delegates.c: Rebuild.
7869 * target.c (target_fetch_registers): Unconditionally delegate.
7870 * target.h (struct target_ops) <to_fetch_registers>: Use
7871 TARGET_DEFAULT_NORETURN.
7872
46ee7e8d
TT
78732014-02-19 Tom Tromey <tromey@redhat.com>
7874
7875 * target-delegates.c: Rebuild.
7876 * target.c (update_current_target): Don't inherit or default
7877 to_stop.
7878 * target.h (struct target_ops) <to_stop>: Use
7879 TARGET_DEFAULT_IGNORE.
7880
843f59ed
TT
78812014-02-19 Tom Tromey <tromey@redhat.com>
7882
7883 * target-delegates.c: Rebuild.
7884 * target.c (update_current_target): Don't inherit or default
7885 to_can_run_breakpoint_commands.
7886 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7887 Use TARGET_DEFAULT_RETURN.
7888
ccfde2a0
TT
78892014-02-19 Tom Tromey <tromey@redhat.com>
7890
7891 * target-delegates.c: Rebuild.
7892 * target.c (update_current_target): Don't inherit or default
7893 to_supports_evaluation_of_breakpoint_conditions.
7894 * target.h (struct target_ops)
7895 <to_supports_evaluation_of_breakpoint_conditions>: Use
7896 TARGET_DEFAULT_RETURN.
7897
0de91722
TT
78982014-02-19 Tom Tromey <tromey@redhat.com>
7899
7900 * target-delegates.c: Rebuild.
7901 * target.c (update_current_target): Don't inherit or default
7902 to_augmented_libraries_svr4_read.
7903 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7904 Use TARGET_DEFAULT_RETURN.
7905
9a7d8b48
TT
79062014-02-19 Tom Tromey <tromey@redhat.com>
7907
7908 * target-delegates.c: Rebuild.
7909 * target.c (update_current_target): Don't inherit or default
7910 to_can_use_agent.
7911 * target.h (struct target_ops) <to_can_use_agent>: Use
7912 TARGET_DEFAULT_RETURN.
7913
d9db5b21
TT
79142014-02-19 Tom Tromey <tromey@redhat.com>
7915
7916 * target-delegates.c: Rebuild.
7917 * target.c (update_current_target): Don't inherit or default
7918 to_use_agent.
7919 * target.h (struct target_ops) <to_use_agent>: Use
7920 TARGET_DEFAULT_NORETURN.
7921
92155eeb
TT
79222014-02-19 Tom Tromey <tromey@redhat.com>
7923
7924 * target-delegates.c: Rebuild.
7925 * target.c (update_current_target): Don't inherit or default
7926 to_traceframe_info.
7927 (return_null): Remove.
7928 * target.h (struct target_ops) <to_traceframe_info>: Use
7929 TARGET_DEFAULT_RETURN.
7930
d6522a22
TT
79312014-02-19 Tom Tromey <tromey@redhat.com>
7932
7933 * target-delegates.c: Rebuild.
7934 * target.c (update_current_target): Don't inherit or default
7935 to_static_tracepoint_markers_by_strid.
7936 * target.h (struct target_ops)
7937 <to_static_tracepoint_markers_by_strid>: Use
7938 TARGET_DEFAULT_NORETURN.
7939
4c3e4425
TT
79402014-02-19 Tom Tromey <tromey@redhat.com>
7941
7942 * target-delegates.c: Rebuild.
7943 * target.c (update_current_target): Don't inherit or default
7944 to_static_tracepoint_marker_at.
7945 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7946 Use TARGET_DEFAULT_RETURN.
7947
dcd6917f
TT
79482014-02-19 Tom Tromey <tromey@redhat.com>
7949
7950 * target-delegates.c: Rebuild.
7951 * target.c (update_current_target): Don't inherit or default
7952 to_set_permissions.
7953 * target.h (struct target_ops) <to_set_permissions>: Use
7954 TARGET_DEFAULT_IGNORE.
7955
22bcceee
TT
79562014-02-19 Tom Tromey <tromey@redhat.com>
7957
7958 * target-delegates.c: Rebuild.
7959 * target.c (update_current_target): Don't inherit or default
7960 to_get_tib_address.
7961 * target.h (struct target_ops) <to_get_tib_address>: Use
7962 TARGET_DEFAULT_NORETURN.
7963
8586ccaa
TT
79642014-02-19 Tom Tromey <tromey@redhat.com>
7965
7966 * target-delegates.c: Rebuild.
7967 * target.c (update_current_target): Don't inherit or default
7968 to_set_trace_notes.
7969 * target.h (struct target_ops) <to_set_trace_notes>: Use
7970 TARGET_DEFAULT_RETURN.
7971
91df8d1d
TT
79722014-02-19 Tom Tromey <tromey@redhat.com>
7973
7974 * target-delegates.c: Rebuild.
7975 * target.c (update_current_target): Don't initialize
7976 to_set_trace_buffer_size.
7977 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7978 TARGET_DEFAULT_IGNORE.
7979
8d526939
TT
79802014-02-19 Tom Tromey <tromey@redhat.com>
7981
7982 * target-delegates.c: Rebuild.
7983 * target.c (update_current_target): Don't inherit or default
7984 to_set_circular_trace_buffer.
7985 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7986 TARGET_DEFAULT_IGNORE.
7987
0bcfeddf
TT
79882014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target-delegates.c: Rebuild.
7991 * target.c (update_current_target): Don't inherit or default
7992 to_set_disconnected_tracing.
7993 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7994 TARGET_DEFAULT_IGNORE.
7995
9249843f
TT
79962014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target-delegates.c: Rebuild.
7999 * target.c (update_current_target): Don't inherit or default
8000 to_get_min_fast_tracepoint_insn_len.
8001 (return_minus_one): Remove.
8002 * target.h (struct target_ops)
8003 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8004
ace92e7d
TT
80052014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target-delegates.c: Rebuild.
8008 * target.c (update_current_target): Don't inherit or default
8009 to_get_raw_trace_data.
8010 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8011 TARGET_DEFAULT_NORETURN.
8012
08120467
TT
80132014-02-19 Tom Tromey <tromey@redhat.com>
8014
8015 * target-delegates.c: Rebuild.
8016 * target.c (update_current_target): Don't inherit or default
8017 to_upload_trace_state_variables.
8018 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8019 Use TARGET_DEFAULT_RETURN.
8020
1e949b00
TT
80212014-02-19 Tom Tromey <tromey@redhat.com>
8022
8023 * target-delegates.c: Rebuild.
8024 * target.c (update_current_target): Don't inherit or default
8025 to_upload_tracepoints.
8026 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8027 TARGET_DEFAULT_RETURN.
8028
a2e6c147
TT
80292014-02-19 Tom Tromey <tromey@redhat.com>
8030
8031 * target-delegates.c: Rebuild.
8032 * target.c (update_current_target): Don't inherit or default
8033 to_save_trace_data.
8034 * target.h (struct target_ops) <to_save_trace_data>: Use
8035 TARGET_DEFAULT_NORETURN.
8036
959bcd0b
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_get_trace_state_variable_value.
8042 * target.h (struct target_ops)
8043 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8044
afc94e66
TT
80452014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (update_current_target): Don't inherit or default
8049 to_trace_find.
8050 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8051
e51c07ea
TT
80522014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (update_current_target): Don't inherit or default
8056 to_trace_stop.
8057 * target.h (struct target_ops) <to_trace_stop>: Use
8058 TARGET_DEFAULT_NORETURN.
8059
6fea14cd
TT
80602014-02-19 Tom Tromey <tromey@redhat.com>
8061
8062 * target-delegates.c: Rebuild.
8063 * target.c (update_current_target): Don't inherit or default
8064 to_get_tracepoint_status.
8065 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8066 TARGET_DEFAULT_NORETURN.
8067
4072d4ff
TT
80682014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * target-delegates.c: Rebuild.
8071 * target.c (update_current_target): Don't inherit or default
8072 to_get_trace_status.
8073 * target.h (struct target_ops) <to_get_trace_status>: Use
8074 TARGET_DEFAULT_RETURN.
8075
25da2e80
TT
80762014-02-19 Tom Tromey <tromey@redhat.com>
8077
8078 * target-delegates.c: Rebuild.
8079 * target.c (update_current_target): Don't inherit or default
8080 to_trace_start.
8081 * target.h (struct target_ops) <to_trace_start>: Use
8082 TARGET_DEFAULT_NORETURN.
8083
86dd181d
TT
80842014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (update_current_target): Don't inherit or default
8088 to_trace_set_readonly_regions.
8089 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8090 Use TARGET_DEFAULT_NORETURN.
8091
05c41993
TT
80922014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target-delegates.c: Rebuild.
8095 * target.c (update_current_target): Don't inherit or default
8096 to_disable_tracepoint.
8097 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8098 TARGET_DEFAULT_NORETURN.
8099
151f70f1
TT
81002014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target-delegates.c: Rebuild.
8103 * target.c (update_current_target): Don't inherit or default
8104 to_enable_tracepoint.
8105 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8106 TARGET_DEFAULT_NORETURN.
8107
94eb98b9
TT
81082014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target-delegates.c: Rebuild.
8111 * target.c (update_current_target): Don't inherit or default
8112 to_download_trace_state_variable.
8113 * target.h (struct target_ops) <to_download_trace_state_variable>:
8114 Use TARGET_DEFAULT_NORETURN.
8115
719acc4a
TT
81162014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target-delegates.c: Rebuild.
8119 * target.c (update_current_target): Don't inherit or default
8120 to_can_download_tracepoint.
8121 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8122 TARGET_DEFAULT_RETURN.
8123
9a980a22
TT
81242014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * target-delegates.c: Rebuild.
8127 * target.c (update_current_target): Don't inherit or default
8128 to_download_tracepoint.
8129 * target.h (struct target_ops) <to_download_tracepoint>: Use
8130 TARGET_DEFAULT_NORETURN.
8131
5536135b
TT
81322014-02-19 Tom Tromey <tromey@redhat.com>
8133
8134 * target-delegates.c: Rebuild.
8135 * target.c (update_current_target): Don't inherit or default
8136 to_trace_init.
8137 * target.h (struct target_ops) <to_trace_init>: Use
8138 TARGET_DEFAULT_RETURN.
8139
9409d39e
TT
81402014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_supports_string_tracing.
8145 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8146 TARGET_DEFAULT_RETURN.
8147
aab1b22d
TT
81482014-02-19 Tom Tromey <tromey@redhat.com>
8149
8150 * target-delegates.c: Rebuild.
8151 * target.c (update_current_target): Don't inherit or default
8152 to_supports_enable_disable_tracepoint.
8153 * target.h (struct target_ops)
8154 <to_supports_enable_disable_tracepoint>: Use
8155 TARGET_DEFAULT_RETURN.
8156
a7304748
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target-delegates.c: Rebuild.
8160 * target.c (update_current_target): Don't inherit or default
8161 to_supports_multi_process.
8162 * target.h (struct target_ops) <to_supports_multi_process>: Use
8163 TARGET_DEFAULT_RETURN.
8164
4229b31d
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target-delegates.c: Rebuild.
8168 * target.c (update_current_target): Don't inherit or default
8169 to_get_ada_task_ptid.
8170 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8171 TARGET_DEFAULT_FUNC.
8172
43eba180
TT
81732014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_thread_architecture.
8178 * target.h (struct target_ops) <to_thread_architecture>: Use
8179 TARGET_DEFAULT_FUNC.
8180
fe31bf5b
TT
81812014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * target-delegates.c: Rebuild.
8184 * target.c (update_current_target): Don't inherit or default
8185 to_execution_direction.
8186 * target.h (struct target_ops) <to_execution_direction>: Use
8187 TARGET_DEFAULT_FUNC.
8188
53e1cfc7
TT
81892014-02-19 Tom Tromey <tromey@redhat.com>
8190
8191 * target-delegates.c: Rebuild.
8192 * target.c (update_current_target): Don't inherit or default
8193 to_can_execute_reverse.
8194 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8195 TARGET_DEFAULT_RETURN.
8196 (target_can_execute_reverse): Unconditionally delegate.
8197
9bb9d61d
TT
81982014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (update_current_target): Don't inherit or default
8202 to_goto_bookmark.
8203 (dummy_goto_bookmark): Remove.
8204 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8205 * target.h (struct target_ops) <to_goto_bookmark>: Use
8206 TARGET_DEFAULT_NORETURN.
8207
3dbafbbb
TT
82082014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8212 to_get_bookmark.
8213 (dummy_get_bookmark): Remove.
8214 (init_dummy_target): Don't inherit or default to_get_bookmark.
8215 * target.h (struct target_ops) <to_get_bookmark>: Use
8216 TARGET_DEFAULT_NORETURN
8217
16f796b1
TT
82182014-02-19 Tom Tromey <tromey@redhat.com>
8219
8220 * target-delegates.c: Rebuild.
8221 * target.c (update_current_target): Don't inherit or default
8222 to_make_corefile_notes.
8223 (init_dummy_target): Don't initialize to_make_corefile_notes.
8224 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8225 TARGET_DEFAULT_FUNC.
8226
0b5a2719
TT
82272014-02-19 Tom Tromey <tromey@redhat.com>
8228
8229 * target-delegates.c: Rebuild.
8230 * target.c (update_current_target): Don't inherit or default
8231 to_find_memory_regions.
8232 (init_dummy_target): Don't initialize to_find_memory_regions.
8233 * target.h (struct target_ops) <to_find_memory_regions>: Use
8234 TARGET_DEFAULT_FUNC.
8235
d9cb0195
TT
82362014-02-19 Tom Tromey <tromey@redhat.com>
8237
8238 * target-delegates.c: Rebuild.
8239 * target.c (update_current_target): Don't inherit or default
8240 to_log_command.
8241 * target.h (struct target_ops) <to_log_command>: Use
8242 TARGET_DEFAULT_IGNORE.
8243 (target_log_command): Unconditionally delegate.
8244
830ca330
TT
82452014-02-19 Tom Tromey <tromey@redhat.com>
8246
8247 * target-delegates.c: Rebuild.
8248 * target.c (update_current_target): Don't inherit or default
8249 to_pid_to_exec_file.
8250 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8251 TARGET_DEFAULT_RETURN.
8252
825828fc
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target-delegates.c: Rebuild.
8256 * target.c (update_current_target): Don't inherit or default
8257 to_thread_name.
8258 (target_thread_name): Unconditionally delegate.
8259 * target.h (struct target_ops) <to_thread_name>: Use
8260 TARGET_DEFAULT_RETURN.
8261
4a7e6dda
TT
82622014-02-19 Tom Tromey <tromey@redhat.com>
8263
8264 * target-delegates.c: Rebuild.
8265 * target.c (update_current_target): Don't inherit or default
8266 to_extra_thread_info.
8267 * target.h (struct target_ops) <to_extra_thread_info>: Use
8268 TARGET_DEFAULT_RETURN.
8269
0db88c1d
TT
82702014-02-19 Tom Tromey <tromey@redhat.com>
8271
8272 * target-delegates.c: Rebuild.
8273 * target.c (update_current_target): Don't inherit or default
8274 to_has_exited.
8275 * target.h (struct target_ops) <to_has_exited>: Use
8276 TARGET_DEFAULT_RETURN..
8277
6a9fa051
TT
82782014-02-19 Tom Tromey <tromey@redhat.com>
8279
8280 * target-delegates.c: Rebuild.
8281 * target.c (update_current_target): Don't inherit or default
8282 to_set_syscall_catchpoint.
8283 (return_one): Remove.
8284 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8285 TARGET_DEFAULT_RETURN.
8286
62f64d7a
TT
82872014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target-delegates.c: Rebuild.
8290 * target.c (update_current_target): Don't inherit or default
8291 to_insert_exec_catchpoint.
8292 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8293 TARGET_DEFAULT_RETURN.
8294
cda0f38c
TT
82952014-01-08 Tom Tromey <tromey@redhat.com>
8296
8297 * target-delegates.c: Rebuild.
8298 * target.c (update_current_target): Don't inherit or default
8299 to_insert_exec_catchpoint.
8300 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8301 TARGET_DEFAULT_RETURN.
8302
95c3375e
TT
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target-delegates.c: Rebuild.
8306 * target.c (update_current_target): Don't inherit or default
8307 to_remove_vfork_catchpoint.
8308 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8309 TARGET_DEFAULT_RETURN.
8310
7e18a8dc
TT
83112014-02-19 Tom Tromey <tromey@redhat.com>
8312
8313 * target-delegates.c: Rebuild.
8314 * target.c (update_current_target): Don't inherit or default
8315 to_insert_vfork_catchpoint.
8316 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8317 TARGET_DEFAULT_RETURN.
8318
e1a21fb7
TT
83192014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * target-delegates.c: Rebuild.
8322 * target.c (update_current_target): Don't inherit or default
8323 to_remove_fork_catchpoint.
8324 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8325 TARGET_DEFAULT_RETURN.
8326
5958ebeb
TT
83272014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8331 to_insert_fork_catchpoint.
8332 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8333 TARGET_DEFAULT_RETURN.
8334
340ba4bf
TT
83352014-02-19 Tom Tromey <tromey@redhat.com>
8336
8337 * target-delegates.c: Rebuild.
8338 * target.c (update_current_target): Don't inherit or default
8339 to_post_startup_inferior.
8340 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8341 TARGET_DEFAULT_IGNORE.
8342
7634da87
TT
83432014-02-19 Tom Tromey <tromey@redhat.com>
8344
8345 * target-delegates.c: Rebuild.
8346 * target.c (update_current_target): Don't inherit or default
8347 to_load.
8348 * target.h (struct target_ops) <to_load>: Use
8349 TARGET_DEFAULT_NORETURN.
8350
e19e919f
TT
83512014-02-19 Tom Tromey <tromey@redhat.com>
8352
8353 * target-delegates.c: Rebuild.
8354 * target.c (update_current_target): Don't inherit or default
8355 to_terminal_info.
8356 * target.h (struct target_ops) <to_terminal_info>: Use
8357 TARGET_DEFAULT_FUNC.
8358
c6ea8f79
TT
83592014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * target-delegates.c: Rebuild.
8362 * target.c (update_current_target): Don't inherit or default
8363 to_terminal_save_ours.
8364 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8365 TARGET_DEFAULT_IGNORE.
8366
e4a733f1
TT
83672014-02-19 Tom Tromey <tromey@redhat.com>
8368
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_terminal_ours.
8372 * target.h (struct target_ops) <to_terminal_ours>: Use
8373 TARGET_DEFAULT_IGNORE.
8374
74fcbef9
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_terminal_ours_for_output.
8380 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8381 TARGET_DEFAULT_IGNORE.
8382
ddeaacc9
TT
83832014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (update_current_target): Don't inherit or default
8387 to_terminal_inferior.
8388 * target.h (struct target_ops) <to_terminal_inferior>: Use
8389 TARGET_DEFAULT_IGNORE.
8390
0343661d
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * target-delegates.c: Rebuild.
8394 * target.c (update_current_target): Don't inherit or default
8395 to_terminal_init.
8396 * target.h (struct target_ops) <to_terminal_init>: Use
8397 TARGET_DEFAULT_IGNORE.
8398
77cdffe9
TT
83992014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target-delegates.c: Rebuild.
8402 * target.c (update_current_target): Don't inherit or default
8403 to_can_accel_watchpoint_condition.
8404 * target.h (struct target_ops)
8405 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8406
d03655e4
TT
84072014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target-delegates.c: Rebuild.
8410 * target.c (update_current_target): Don't inherit or default
8411 to_region_ok_for_hw_watchpoint.
8412 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8413 Use TARGET_DEFAULT_FUNC.
8414
65f160a9
TT
84152014-02-19 Tom Tromey <tromey@redhat.com>
8416
8417 * target-delegates.c: Rebuild.
8418 * target.c (update_current_target): Don't inherit or default
8419 to_watchpoint_addr_within_range.
8420 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8421 Use TARGET_DEFAULT_FUNC.
8422
61dd109f
TT
84232014-02-19 Tom Tromey <tromey@redhat.com>
8424
8425 * target-delegates.c: Rebuild.
8426 * target.c (update_current_target): Don't inherit or default
8427 to_remove_watchpoint.
8428 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8429 TARGET_DEFAULT_NORETURN.
8430
016facd4
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8435 to_insert_watchpoint.
8436 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8437 TARGET_DEFAULT_RETURN.
8438
418dabac
TT
84392014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target-delegates.c: Rebuild.
8442 * target.c (update_current_target): Don't inherit or default
8443 to_remove_hw_breakpoint.
8444 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8445 TARGET_DEFAULT_RETURN.
8446
61b371f9
TT
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_insert_hw_breakpoint.
8452 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8453 TARGET_DEFAULT_RETURN.
8454
52b51d06
TT
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8459 to_can_use_hw_breakpoint.
8460 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8461 TARGET_DEFAULT_RETURN.
8462
f86e59b2
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8467 to_files_info.
8468 * target.h (struct target_ops) <to_files_info>: Use
8469 TARGET_DEFAULT_IGNORE.
8470
6c628163
TT
84712014-02-19 Tom Tromey <tromey@redhat.com>
8472
8473 * target-delegates.c: Rebuild.
8474 * target.c (update_current_target): Don't inherit or default
8475 to_store.
8476 * target.h (struct target_ops) <to_store>: Use
8477 TARGET_DEFAULT_NORETURN.
8478
bebd3233
TT
84792014-02-19 Tom Tromey <tromey@redhat.com>
8480
8481 * target-delegates.c: Rebuild.
8482 * target.c (update_current_target): Don't inherit or default
8483 to_post_attach.
8484 * target.h (struct target_ops) <to_post_attach>: Use
8485 TARGET_DEFAULT_IGNORE.
8486
a53f3625
TT
84872014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_rcmd.
8492 (default_rcmd): New function.
8493 (do_monitor_command): Unconditionally delegate.
8494 * target.h (struct target_ops) <to_rmcd>: Use
8495 TARGET_DEFAULT_FUNC.
8496
e9a29200
TT
84972014-02-19 Tom Tromey <tromey@redhat.com>
8498
8499 * target-delegates.c: Rebuild.
8500 * target.c (init_dummy_target): Don't initialize to_attach.
8501 (target_attach): Unconditionally delegate.
8502 * target.h (struct target_ops) <to_attach>: Use
8503 TARGET_DEFAULT_FUNC.
8504
09da0d0a
TT
85052014-02-19 Tom Tromey <tromey@redhat.com>
8506
8507 * target-delegates.c: Rebuild.
8508 * target.c (target_detach): Unconditionally delegate.
8509 (init_dummy_target): Don't initialize to_detach.
8510 * target.h (struct target_ops) <to_detach>: Use
8511 TARGET_DEFAULT_IGNORE.
8512
5436ff03
TT
85132014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8516 Add argument.
8517 (target_augmented_libraries_svr4_read): Add argument.
8518 * target.c (update_current_target): Update.
8519 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8520 argument.
8521
f0d960ea
TT
85222014-02-19 Tom Tromey <tromey@redhat.com>
8523
8524 * target.h (struct target_ops) <to_call_history_range>: Add
8525 argument.
8526 * target.c (target_call_history_range): Add argument.
8527 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8528 argument.
8529 (record_btrace_call_history_from): Update.
8530
ec0aea04
TT
85312014-02-19 Tom Tromey <tromey@redhat.com>
8532
8533 * target.h (struct target_ops) <to_call_history_from>: Add
8534 argument.
8535 * target.c (target_call_history_from): Add argument.
8536 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8537 argument.
8538
5df2fcba
TT
85392014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * target.h (struct target_ops) <to_call_history>: Add argument.
8542 * target.c (target_call_history): Add argument.
8543 * record-btrace.c (record_btrace_call_history): Add 'self'
8544 argument.
8545
4e99c6b7
TT
85462014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * target.h (struct target_ops) <to_insn_history_range>: Add
8549 argument.
8550 * target.c (target_insn_history_range): Add argument.
8551 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8552 argument.
8553 (record_btrace_insn_history_from): Update.
8554
9abc3ff3
TT
85552014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target.h (struct target_ops) <to_insn_history_from>: Add
8558 argument.
8559 * target.c (target_insn_history_from): Add argument.
8560 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8561 argument.
8562
7a6c5609
TT
85632014-02-19 Tom Tromey <tromey@redhat.com>
8564
8565 * target.h (struct target_ops) <to_insn_history>: Add argument.
8566 * target.c (target_insn_history): Add argument.
8567 * record-btrace.c (record_btrace_insn_history): Add 'self'
8568 argument.
8569
606183ac
TT
85702014-02-19 Tom Tromey <tromey@redhat.com>
8571
8572 * target.h (struct target_ops) <to_goto_record>: Add argument.
8573 * target.c (target_goto_record): Add argument.
8574 * record-full.c (record_full_goto): Add 'self' argument.
8575 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8576
307a1b91
TT
85772014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8580 * target.c (target_goto_record_end): Add argument.
8581 * record-full.c (record_full_goto_end): Add 'self' argument.
8582 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8583
08475817
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target.h (struct target_ops) <to_goto_record_begin>: Add
8587 argument.
8588 * target.c (target_goto_record_begin): Add argument.
8589 * record-full.c (record_full_goto_begin): Add 'self' argument.
8590 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8591 argument.
8592
1c63c994
TT
85932014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * target.h (struct target_ops) <to_record_is_replaying>: Add
8596 argument.
8597 * target.c (target_record_is_replaying): Add argument.
8598 * record-full.c (record_full_is_replaying): Add 'self' argument.
8599 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8600 argument.
8601 (record_btrace_xfer_partial, record_btrace_store_registers)
8602 (record_btrace_prepare_to_store, record_btrace_resume)
8603 (record_btrace_wait, record_btrace_decr_pc_after_break)
8604 (record_btrace_find_new_threads, record_btrace_thread_alive):
8605 Update.
8606
d1b55219
TT
86072014-02-19 Tom Tromey <tromey@redhat.com>
8608
8609 * target.h (struct target_ops) <to_delete_record>: Add argument.
8610 * target.c (target_delete_record): Add argument.
8611 * record-full.c (record_full_delete): Add 'self' argument.
8612
1390f529
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target.h (struct target_ops) <to_save_record>: Add argument.
8616 * target.c (target_save_record): Add argument.
8617 * record-full.c (record_full_save): Add 'self' argument.
8618 (record_full_save): Add 'self' argument.
8619
630d6a4a
TT
86202014-02-19 Tom Tromey <tromey@redhat.com>
8621
8622 * target.h (struct target_ops) <to_info_record>: Add argument.
8623 * target.c (target_info_record): Add argument.
8624 * record.c (info_record_command): Add argument.
8625 * record-full.c (record_full_info): Add 'self' argument.
8626 * record-btrace.c (record_btrace_info): Add 'self' argument.
8627
c6cd7c02
TT
86282014-02-19 Tom Tromey <tromey@redhat.com>
8629
8630 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8631 * target.c (target_stop_recording): Add argument.
8632 * record.c (record_stop): Add argument.
8633 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8634 argument.
8635
39c49f83
TT
86362014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8639 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8640 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8641 argument.
8642 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8643 (_initialize_amd64_linux_nat): Use it.
8644 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8645 (_initialize_i386_linux_nat): Use it.
8646
1777056d
TT
86472014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8650 * target.c (target_teardown_btrace): Add argument.
8651 * remote.c (remote_teardown_btrace): Add 'self' argument.
8652 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8653 argument.
8654 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8655 argument.
8656
25e95349
TT
86572014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8660 * target.c (target_disable_btrace): Add argument.
8661 * remote.c (remote_disable_btrace): Add 'self' argument.
8662 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8663 argument.
8664 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8665 argument.
8666
e3c49f88
TT
86672014-02-19 Tom Tromey <tromey@redhat.com>
8668
8669 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8670 * target.c (target_enable_btrace): Add argument.
8671 * remote.c (remote_enable_btrace): Add 'self' argument.
8672 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8673 argument.
8674 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8675 argument.
8676
fe38f897
TT
86772014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8680 (target_can_use_agent): Add argument.
8681 * target.c (update_current_target): Update.
8682 * remote.c (remote_can_use_agent): Add 'self' argument.
8683 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8684
2c152180
TT
86852014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target.h (struct target_ops) <to_use_agent>: Add argument.
8688 (target_use_agent): Add argument.
8689 * target.c (update_current_target): Update.
8690 * remote.c (remote_use_agent): Add 'self' argument.
8691 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8692
a893e81f
TT
86932014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8696 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8697 (target_traceframe_info): Add argument.
8698 * target.c (update_current_target): Update.
8699 * remote.c (remote_traceframe_info): Add 'self' argument.
8700 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8701
c686c57f
TT
87022014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * target.h (target_static_tracepoint_markers_by_strid): Add
8705 argument.
8706 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8707 'self' argument.
8708 * target.c (update_current_target): Update.
8709 * remote.c (struct target_ops)
8710 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8711 * linux-nat.c (struct target_ops)
8712 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8713
61fc905d
TT
87142014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8717 Add argument.
8718 (target_static_tracepoint_marker_at): Add argument.
8719 * target.c (update_current_target): Update.
8720 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8721 argument.
8722
c378d69d
TT
87232014-02-19 Tom Tromey <tromey@redhat.com>
8724
8725 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8726 (target_set_permissions): Add argument.
8727 * target.c (update_current_target): Update.
8728 * remote.c (remote_set_permissions): Add 'self' argument.
8729 (remote_start_remote): Update.
8730
bd7ae0f5
TT
87312014-02-19 Tom Tromey <tromey@redhat.com>
8732
8733 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8734 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8735 (target_get_tib_address): Add argument.
8736 * target.c (update_current_target): Update.
8737 * remote.c (remote_get_tib_address): Add 'self' argument.
8738
d9e68a2c
TT
87392014-02-19 Tom Tromey <tromey@redhat.com>
8740
8741 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8742 (target_set_trace_notes): Add argument.
8743 * target.c (update_current_target): Update.
8744 * remote.c (remote_set_trace_notes): Add 'self' argument.
8745
4da384be
TT
87462014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8749 argument.
8750 (target_set_trace_buffer_size): Add argument.
8751 * target.c (update_current_target): Update.
8752 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8753
736d5b1f
TT
87542014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8757 argument.
8758 (target_set_circular_trace_buffer): Add argument.
8759 * target.c (update_current_target): Update.
8760 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8761 argument.
8762
37b25738
TT
87632014-02-19 Tom Tromey <tromey@redhat.com>
8764
8765 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8766 argument.
8767 (target_set_disconnected_tracing): Add argument.
8768 * target.c (update_current_target): Update.
8769 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8770
0e67620a
TT
87712014-02-19 Tom Tromey <tromey@redhat.com>
8772
8773 * target.h (struct target_ops)
8774 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8775 (target_get_min_fast_tracepoint_insn_len): Add argument.
8776 * target.c (update_current_target): Update.
8777 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8778 argument.
8779
88ee6f45
TT
87802014-02-19 Tom Tromey <tromey@redhat.com>
8781
8782 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8783 argument.
8784 (target_get_raw_trace_data): Add argument.
8785 * target.c (update_current_target): Update.
8786 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8787
181e3713
TT
87882014-02-19 Tom Tromey <tromey@redhat.com>
8789
8790 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8791 Add argument.
8792 (target_upload_trace_state_variables): Add argument.
8793 * target.c (update_current_target): Update.
8794 * remote.c (remote_upload_trace_state_variables): Add 'self'
8795 argument.
8796 (remote_start_remote): Update.
8797
ab6617cc
TT
87982014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8801 argument.
8802 (target_upload_tracepoints): Add argument.
8803 * target.c (update_current_target): Update.
8804 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8805 (remote_start_remote): Update.
8806
dc3decaf
TT
88072014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8810 (target_save_trace_data): Add argument.
8811 * target.c (update_current_target): Update.
8812 * remote.c (remote_save_trace_data): Add 'self' argument.
8813
4011015b
TT
88142014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8817 argument.
8818 * target.h (struct target_ops)
8819 <to_get_trace_state_variable_value>: Add argument.
8820 (target_get_trace_state_variable_value): Add argument.
8821 * target.c (update_current_target): Update.
8822 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8823 argument.
8824 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8825
bd4c6793
TT
88262014-02-19 Tom Tromey <tromey@redhat.com>
8827
8828 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8829 * target.h (struct target_ops) <to_trace_find>: Add argument.
8830 (target_trace_find): Add argument.
8831 * target.c (update_current_target): Update.
8832 * remote.c (remote_trace_find): Add 'self' argument.
8833 * ctf.c (ctf_trace_find): Add 'self' argument.
8834
74499f1b
TT
88352014-02-19 Tom Tromey <tromey@redhat.com>
8836
8837 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8838 (target_trace_stop): Add argument.
8839 * target.c (update_current_target): Update.
8840 * remote.c (remote_trace_stop): Add 'self' argument.
8841
db90e85c
TT
88422014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8845 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8846 argument.
8847 (target_get_tracepoint_status): Add argument.
8848 * target.c (update_current_target): Update.
8849 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8850
8bd200f1
TT
88512014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8854 * target.h (struct target_ops) <to_get_trace_status>: Add
8855 argument.
8856 (target_get_trace_status): Add argument.
8857 * target.c (update_current_target): Update.
8858 * remote.c (remote_get_trace_status): Add 'self' argument.
8859 (remote_start_remote, remote_can_download_tracepoint): Update.
8860 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8861
e2d1aae3
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target.h (struct target_ops) <to_trace_start>: Add argument.
8865 (target_trace_start): Add argument.
8866 * target.c (update_current_target): Update.
8867 * remote.c (remote_trace_start): Add 'self' argument.
8868
583f9a86
TT
88692014-02-19 Tom Tromey <tromey@redhat.com>
8870
8871 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8872 Add argument.
8873 (target_trace_set_readonly_regions): Add argument.
8874 * target.c (update_current_target): Update.
8875 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8876 argument.
8877
780b049c
TT
88782014-02-19 Tom Tromey <tromey@redhat.com>
8879
8880 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8881 argument.
8882 (target_disable_tracepoint): Add argument.
8883 * target.c (update_current_target): Update.
8884 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8885
46670d57
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8889 argument.
8890 (target_enable_tracepoint): Add argument.
8891 * target.c (update_current_target): Update.
8892 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8893
559d2b81
TT
88942014-02-19 Tom Tromey <tromey@redhat.com>
8895
8896 * target.h (struct target_ops) <to_download_trace_state_variable>:
8897 Add argument.
8898 (target_download_trace_state_variable): Add argument.
8899 * target.c (update_current_target): Update.
8900 * remote.c (remote_download_trace_state_variable): Add 'self'
8901 argument.
8902
a52a8357
TT
89032014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8906 argument.
8907 (target_can_download_tracepoint): Add argument.
8908 * target.c (update_current_target): Update.
8909 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8910
548f7808
TT
89112014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target.h (struct target_ops) <to_download_tracepoint>: Add
8914 argument.
8915 (target_download_tracepoint): Add argument.
8916 * target.c (update_current_target): Update.
8917 * remote.c (remote_download_tracepoint): Add 'self' argument.
8918
ecae04e1
TT
89192014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target.h (struct target_ops) <to_trace_init>: Add argument.
8922 (target_trace_init): Add argument.
8923 * target.c (update_current_target): Update.
8924 * remote.c (remote_trace_init): Add 'self' argument.
8925
fab5aa7c
TT
89262014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8929 * target.c (target_fileio_readlink): Add argument.
8930 * remote.c (remote_hostio_readlink): Add 'self' argument.
8931 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8932
dbbca37d
TT
89332014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8936 * target.c (target_fileio_unlink): Add argument.
8937 * remote.c (remote_hostio_unlink): Add 'self' argument.
8938 (remote_file_delete): Update.
8939 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8940
df39ea25
TT
89412014-02-19 Tom Tromey <tromey@redhat.com>
8942
8943 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8944 * target.c (target_fileio_close): Add argument.
8945 * remote.c (remote_hostio_close): Add 'self' argument.
8946 (remote_hostio_close_cleanup): Update.
8947 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8948 Update.
8949 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8950
a3be983c
TT
89512014-02-19 Tom Tromey <tromey@redhat.com>
8952
8953 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8954 * target.c (target_fileio_pread): Add argument.
8955 * remote.c (remote_hostio_pread): Add 'self' argument.
8956 (remote_bfd_iovec_pread, remote_file_get): Update.
8957 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8958
0d866f62
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8962 * target.c (target_fileio_pwrite): Add argument.
8963 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8964 (remote_file_put): Update.
8965 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8966
cd897586
TT
89672014-02-19 Tom Tromey <tromey@redhat.com>
8968
8969 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8970 * target.c (target_fileio_open): Add argument.
8971 * remote.c (remote_hostio_open): Add 'self' argument.
8972 (remote_bfd_iovec_open): Add 'self' argument.
8973 (remote_file_put): Add 'self' argument.
8974 (remote_file_get): Add 'self' argument.
8975 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8976
78eff0ec
TT
89772014-02-19 Tom Tromey <tromey@redhat.com>
8978
8979 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8980 Add argument.
8981 (target_can_run_breakpoint_commands): Add argument.
8982 * target.c (update_current_target): Update.
8983 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8984 argument.
8985 (remote_insert_breakpoint): Add 'self' argument.
8986 (remote_insert_hw_breakpoint): Add 'self' argument.
8987 (remote_can_run_breakpoint_commands): Add 'self' argument.
8988
efcc2da7
TT
89892014-02-19 Tom Tromey <tromey@redhat.com>
8990
8991 * target.h (struct target_ops)
8992 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8993 (target_supports_evaluation_of_breakpoint_conditions): Add
8994 argument.
8995 * target.c (update_current_target): Update.
8996 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8997 argument.
8998 (remote_insert_breakpoint): Add 'self' argument.
8999 (remote_insert_hw_breakpoint): Add 'self' argument.
9000 (remote_supports_cond_breakpoints): Add 'self' argument.
9001
6de37a3a
TT
90022014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9005 argument.
9006 (target_supports_string_tracing): Add argument.
9007 * target.c (update_current_target): Update.
9008 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9009
2bfc0540
TT
90102014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target.h (struct target_ops)
9013 <to_supports_disable_randomization>: Add argument.
9014 * target.c (find_default_supports_disable_randomization): Add
9015 argument.
9016 (target_supports_disable_randomization): Add argument.
9017 (find_default_supports_disable_randomization): Add 'self'
9018 argument.
9019 * remote.c (extended_remote_supports_disable_randomization): Add
9020 'self' argument.
9021 (remote_supports_disable_randomization): Add 'self' argument.
9022 (extended_remote_create_inferior): Update.
9023 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9024 'self' argument.
9025
7d178d6a
TT
90262014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target.h (struct target_ops)
9029 <to_supports_enable_disable_tracepoint>: Add argument.
9030 (target_supports_enable_disable_tracepoint): Add argument.
9031 * target.c (update_current_target): Update.
9032 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9033 argument.
9034
86ce2668
TT
90352014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target.h (struct target_ops) <to_supports_multi_process>: Add
9038 argument.
9039 (target_supports_multi_process): Add argument.
9040 * target.c (update_current_target): Update.
9041 * remote.c (remote_supports_multi_process): Add 'self' argument.
9042 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9043 argument.
9044 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9045 argument.
9046
4c612759
TT
90472014-02-19 Tom Tromey <tromey@redhat.com>
9048
9049 * target.h (struct target_ops) <to_execution_direction>: Add
9050 argument.
9051 (target_execution_direction): Add argument.
9052 * target.c (default_execution_direction): Add 'self' argument.
9053 * record-full.c (record_full_execution_direction): Add 'self'
9054 argument.
9055
19db3e69
TT
90562014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9059 argument.
9060 (target_can_execute_reverse): Add argument.
9061 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9062 * record-full.c (record_full_can_execute_reverse): Add 'self'
9063 argument.
9064 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9065 argument.
9066
1e6b91a4
TT
90672014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9070 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9071 argument.
9072 (target_get_ada_task_ptid): Add argument.
9073 * target.c (update_current_target): Update.
9074 (default_get_ada_task_ptid): Add 'self' argument.
9075 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9076 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9077 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9078 argument.
9079 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9080 argument.
9081 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9082 argument.
9083 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9084 argument.
9085 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9086 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9087 argument.
9088
3c80fb48
TT
90892014-02-19 Tom Tromey <tromey@redhat.com>
9090
9091 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9092 (target_goto_bookmark): Add argument.
9093 * target.c (dummy_goto_bookmark): Add 'self' argument.
9094 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9095
dd0e2830
TT
90962014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9099 (target_get_bookmark): Add argument.
9100 * target.c (dummy_get_bookmark): Add 'self' argument.
9101 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9102
fc6691b2
TT
91032014-02-19 Tom Tromey <tromey@redhat.com>
9104
9105 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9106 argument.
9107 (target_make_corefile_notes): Add argument.
9108 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9109 * procfs.c (procfs_make_note_section): Add 'self' argument.
9110 (procfs_make_note_section): Add 'self' argument.
9111 (procfs_make_note_section): Add 'self' argument.
9112 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9113 argument.
9114 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9115 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9116 * exec.c (exec_make_note_section): Add 'self' argument.
9117 (exec_make_note_section): Add 'self' argument.
9118
2e73927c
TT
91192014-02-19 Tom Tromey <tromey@redhat.com>
9120
9121 * target.h (struct target_ops) <to_find_memory_regions>: Add
9122 argument.
9123 (target_find_memory_regions): Add argument.
9124 * target.c (dummy_find_memory_regions): Add 'self' argument.
9125 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9126 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9127 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9128 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9129 * exec. (exec_do_find_memory_regions): New global.
9130 (exec_set_find_memory_regions): Rewrite.
9131 (exec_find_memory_regions): New function.
9132 (init_exec_ops): Use exec_find_memory_regions.
9133
2a9a2795
TT
91342014-02-19 Tom Tromey <tromey@redhat.com>
9135
9136 * target.h (struct target_ops) <to_supports_non_stop>: Add
9137 argument.
9138 * target.c (find_default_supports_non_stop): Add argument.
9139 (target_supports_non_stop): Add argument.
9140 (find_default_supports_non_stop): Add 'self' argument.
9141 * remote.c (remote_supports_non_stop): Add 'self' argument.
9142 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9143
4ab76ea3
TT
91442014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * target.h (struct target_ops) <to_log_command>: Add argument.
9147 (target_log_command): Add argument.
9148 * serial.h (serial_log_command): Add 'self' argument.
9149 * serial.c (serial_log_command): Add 'self' argument.
9150
8dd27370
TT
91512014-02-19 Tom Tromey <tromey@redhat.com>
9152
9153 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9154 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9155 argument.
9156 (target_pid_to_exec_file): Add argument.
9157 * target.c (debug_to_pid_to_exec_file): Add argument.
9158 (update_current_target): Update.
9159 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9160 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9161 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9162 (linux_handle_extended_wait): Update.
9163 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9164 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9165 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9166 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9167
1aac633b
TT
91682014-02-19 Tom Tromey <tromey@redhat.com>
9169
9170 * target.h (struct target_ops) <to_rcmd>: Add argument.
9171 (target_rcmd): Add argument.
9172 * target.c (debug_to_rcmd): Add argument.
9173 (update_current_target, do_monitor_command): Update.
9174 * remote.c (remote_rcmd): Add 'self' argument.
9175 * monitor.c (monitor_rcmd): Add 'self' argument.
9176
1eab8a48
TT
91772014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * windows-nat.c (windows_stop): Add 'self' argument.
9180 * target.h (struct target_ops) <to_stop>: Add argument.
9181 * target.c (target_stop): Add argument.
9182 (debug_to_stop): Add argument.
9183 (update_current_target): Update.
9184 * remote.c (remote_stop): Add 'self' argument.
9185 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9186 (gdbsim_cntrl_c): Update.
9187 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9188 * procfs.c (procfs_stop): Add 'self' argument.
9189 * nto-procfs.c (procfs_stop): Add 'self' argument.
9190 * monitor.c (monitor_stop): Add 'self' argument.
9191 (monitor_open): Update.
9192 * linux-nat.c (linux_nat_stop): Add argument.
9193 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9194 * gnu-nat.c (gnu_stop): Add 'self' argument.
9195 * darwin-nat.c (darwin_stop): Add 'self' argument.
9196
503a628d
TT
91972014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target.h (struct target_ops) <to_thread_name>: Add argument.
9200 * target.c (target_thread_name): Add argument.
9201 (update_current_target): Update.
9202 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9203
c15906d8
TT
92042014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_extra_thread_info>: Add
9207 argument.
9208 (target_extra_thread_info): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_threads_extra_info): Add 'self' argument.
9211 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9212 argument.
9213 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9214 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9215 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9216 argument.
9217 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9218 argument.
9219 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9220 argument.
9221 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9222 argument.
9223
daf5e9b6
TT
92242014-02-19 Tom Tromey <tromey@redhat.com>
9225
9226 * target.h (struct target_ops) <to_program_signals>: Add argument.
9227 * target.c (target_program_signals): Add argument.
9228 * remote.c (remote_program_signals): Add 'self' argument.
9229
94bedb42
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9233 * target.c (target_pass_signals): Add argument.
9234 * remote.c (remote_pass_signals): Add 'self' argument.
9235 (remote_start_remote): Update.
9236 * procfs.c (procfs_pass_signals): Add 'self' argument.
9237 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9238 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9239 (linux_nat_create_inferior, linux_nat_attach): Update.
9240
da82bd6b
TT
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * windows-nat.c (windows_can_run): Add 'self' argument.
9244 * target.h (struct target_ops) <to_can_run>: Add argument.
9245 (target_can_run): Add argument.
9246 * target.c (debug_to_can_run): Add argument.
9247 (update_current_target): Update.
9248 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9249 * inf-child.c (inf_child_can_run): Add 'self' argument.
9250 * go32-nat.c (go32_can_run): Add 'self' argument.
9251
d796e1d6
TT
92522014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * target.h (struct target_ops) <to_has_exited>: Add argument.
9255 (target_has_exited): Add argument.
9256 * target.c (debug_to_has_exited): Add argument.
9257 (update_current_target): Update.
9258
ff214e67
TT
92592014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9262 argument.
9263 (target_set_syscall_catchpoint): Add argument.
9264 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9265 argument.
9266 * target.c (update_current_target): Update.
9267
758e29d2
TT
92682014-02-19 Tom Tromey <tromey@redhat.com>
9269
9270 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9271 argument.
9272 (target_remove_exec_catchpoint): Add argument.
9273 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9274 (update_current_target): Update.
9275 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9276 argument.
9277
ba025e51
TT
92782014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9281 argument.
9282 (target_insert_exec_catchpoint): Add argument.
9283 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9284 (update_current_target): Update.
9285 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9286 argument.
9287
e98cf0cd
TT
92882014-02-19 Tom Tromey <tromey@redhat.com>
9289
9290 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9291 argument.
9292 (target_remove_vfork_catchpoint): Add argument.
9293 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9294 (update_current_target): Update.
9295 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9296 argument.
9297
3ecc7da0
TT
92982014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9301 argument.
9302 (target_insert_vfork_catchpoint): Add argument.
9303 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9304 (update_current_target): Update.
9305 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9306 argument.
9307
973fc227
TT
93082014-02-19 Tom Tromey <tromey@redhat.com>
9309
9310 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9311 argument.
9312 (target_remove_fork_catchpoint): Add argument.
9313 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9314 (update_current_target): Update.
9315 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9316 argument.
9317
a863b201
TT
93182014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9321 argument.
9322 (target_insert_fork_catchpoint): Add argument.
9323 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9324 (update_current_target): Update.
9325 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9326 argument.
9327
2e97a79e
TT
93282014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9331 argument.
9332 (target_post_startup_inferior): Add argument.
9333 * target.c (debug_to_post_startup_inferior): Add argument.
9334 (update_current_target): Update.
9335 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9336 argument.
9337 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9338 argument.
9339 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9340 argument.
9341 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9342 argument.
9343 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9344 'self' argument.
9345 (super_post_startup_inferior): Likewise.
9346 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9347 'self' argument.
9348 (super_post_startup_inferior): Likewise.
9349 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9350 Add 'self' argument.
9351 (super_post_startup_inferior): Likewise.
9352
71a9f134
TT
93532014-02-19 Tom Tromey <tromey@redhat.com>
9354
9355 * target.h (struct target_ops) <to_load>: Add argument.
9356 * target.c (target_load): Add argument.
9357 (debug_to_load): Add argument.
9358 (update_current_target): Update.
9359 * remote.c (remote_load): Add 'self' argument.
9360 * remote-sim.c (gdbsim_load): Add 'self' argument.
9361 * remote-mips.c (mips_load): Add 'self' argument.
9362 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9363 * monitor.c (monitor_load): Add 'self' argument.
9364 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9365
0a4f40a2
TT
93662014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9369 (target_terminal_info): Add argument.
9370 * target.c (debug_to_terminal_info): Add argument.
9371 (default_terminal_info): Likewise.
9372 * inflow.c (child_terminal_info): Add 'self' argument.
9373 * inferior.h (child_terminal_info): Add 'self' argument.
9374 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9375
ae3bd431
TT
93762014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9379 argument.
9380 (target_terminal_save_ours): Add argument.
9381 * target.c (debug_to_terminal_save_ours): Add argument.
9382 (update_current_target): Update.
9383 * inflow.c (terminal_save_ours): Add 'self' argument.
9384 * inferior.h (terminal_save_ours): Add 'self' argument.
9385
e3594fd1
TT
93862014-02-19 Tom Tromey <tromey@redhat.com>
9387
9388 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9389 (target_terminal_ours): Add argument.
9390 * target.c (debug_to_terminal_ours): Add argument.
9391 (update_current_target): Update.
9392 * remote.c (remote_terminal_ours): Add 'self' argument.
9393 (remote_close): Update.
9394 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9395 * inflow.c (terminal_ours): Add 'self' argument.
9396 * inferior.h (terminal_ours): Add 'self' argument.
9397 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9398
2e1e1a19
TT
93992014-02-19 Pedro Alves <palves@redhat.com>
9400 Tom Tromey <tromey@redhat.com>
9401
9402 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9403 argument.
9404 (target_terminal_ours_for_output): Add argument.
9405 * target.c (debug_to_terminal_ours_for_output): Add argument.
9406 (update_current_target): Update.
9407 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9408 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9409 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9410
d2f640d4
TT
94112014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target.h (struct target_ops) <to_terminal_inferior>: Add
9414 argument.
9415 * target.c (target_terminal_inferior): Add argument.
9416 (update_current_target): Update.
9417 * remote.c (remote_terminal_inferior): Add 'self' argument.
9418 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9419 * inflow.c (terminal_inferior): Add 'self' argument.
9420 * inferior.h (terminal_inferior): Add 'self' argument.
9421 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9422 (go32_terminal_inferior): Add 'self' argument.
9423
c42bf286
TT
94242014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9427 (target_terminal_init): Add argument.
9428 * target.c (debug_to_terminal_init): Add argument.
9429 (update_current_target): Update.
9430 * inflow.c (terminal_init_inferior): Add 'self' argument.
9431 * inferior.h (terminal_init_inferior): Add 'self' argument.
9432 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9433 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9434
c3a5ff89
TT
94352014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target.h (struct target_ops)
9438 <to_can_accel_watchpoint_condition>: Add argument.
9439 (target_can_accel_watchpoint_condition): Add argument.
9440 * target.c (debug_to_can_accel_watchpoint_condition): Add
9441 argument.
9442 (update_current_target): Update.
9443 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9444 'self' argument.
9445
31568a15
TT
94462014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9449 Add argument.
9450 (target_region_ok_for_hw_watchpoint): Add argument.
9451 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9452 (default_region_ok_for_hw_watchpoint): Add argument.
9453 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9454 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9455 argument.
9456 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9457 argument.
9458 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9459 argument.
9460 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9461 'self' argument.
9462 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9463 'self' argument.
9464 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9465 'self' argument.
9466 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9467 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9468 'self' argument.
9469 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9470 Add 'self' argument.
9471
7bb99c53
TT
94722014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9475 argument.
9476 (target_insert_watchpoint): Add argument.
9477 * target.c (debug_to_insert_watchpoint): Add argument.
9478 (update_current_target): Update.
9479 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9480 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9481 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9482 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9483 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9484 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9485 argument.
9486 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9487 (procfs_insert_hw_watchpoint): Add 'self' argument.
9488 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9489 argument.
9490 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9491 argument.
9492 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9493 argument.
9494 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9495 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9496 argument.
9497 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9498 'self' argument.
9499
11b5219a
TT
95002014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9503 argument.
9504 (target_remove_watchpoint): Add argument.
9505 * target.c (debug_to_remove_watchpoint): Add argument.
9506 (update_current_target): Update.
9507 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9508 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9509 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9510 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9511 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9512 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9513 argument.
9514 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9515 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9516 argument.
9517 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9518 argument.
9519 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9520 argument.
9521 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9522 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9523 argument.
9524 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9525 'self' argument.
9526
a64dc96c
TT
95272014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9530 argument.
9531 (target_remove_hw_breakpoint): Add argument.
9532 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9533 (update_current_target): Update.
9534 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9535 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9536 argument.
9537 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9538 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9539 argument.
9540 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9541 'self' argument.
9542
23a26771
TT
95432014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9546 argument.
9547 (target_insert_hw_breakpoint): Add argument.
9548 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9549 (update_current_target): Update.
9550 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9551 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9552 argument.
9553 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9554 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9555 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9556 argument.
9557 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9558 'self' argument.
9559
5461485a
TT
95602014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9563 argument.
9564 (target_can_use_hardware_watchpoint): Add argument.
9565 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9566 (update_current_target): Update.
9567 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9568 argument.
9569 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9570 argument.
9571 * remote.c (remote_check_watch_resources): Add 'self' argument.
9572 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9573 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9574 argument.
9575 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9576 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9577 argument.
9578 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9579 argument.
9580 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9581 argument.
9582 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9583 argument.
9584 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9585 argument.
9586 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9587 argument.
9588 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9589 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9590 argument.
9591 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9592 'self' argument.
9593
f045800c
TT
95942014-02-19 Tom Tromey <tromey@redhat.com>
9595
9596 * target.h (struct target_ops) <to_post_attach>: Add argument.
9597 (target_post_attach): Add argument.
9598 * target.c (debug_to_post_attach): Add argument.
9599 (update_current_target): Update.
9600 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9601 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9602 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9603 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9604 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9605
de90e03d
TT
96062014-02-19 Tom Tromey <tromey@redhat.com>
9607
9608 * windows-nat.c (windows_close): Add 'self' argument.
9609 * tracepoint.c (tfile_close): Add 'self' argument.
9610 * target.h (struct target_ops) <to_close>: Add argument.
9611 * target.c (target_close): Add argument.
9612 (update_current_target): Update.
9613 * remote.c (remote_close): Add 'self' argument.
9614 * remote-sim.c (gdbsim_close): Add 'self' argument.
9615 * remote-mips.c (mips_close): Add 'self' argument.
9616 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9617 * record-full.c (record_full_close): Add 'self' argument.
9618 * record-btrace.c (record_btrace_close): Add 'self' argument.
9619 * monitor.h (monitor_close): Add 'self' argument.
9620 * monitor.c (monitor_close): Add 'self' argument.
9621 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9622 * linux-nat.c (linux_nat_close): Add argument.
9623 * go32-nat.c (go32_close): Add 'self' argument.
9624 * exec.c (exec_close_1): Add 'self' argument.
9625 * ctf.c (ctf_close): Add 'self' argument.
9626 * corelow.c (core_close): Add 'self' argument.
9627 (core_close_cleanup): Update.
9628 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9629 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9630
9dd130a0
TT
96312014-02-19 Tom Tromey <tromey@redhat.com>
9632
9633 * remote.c (remote_load): New function.
9634 (init_remote_ops): Use it.
9635
46917d26
TT
96362014-02-19 Tom Tromey <tromey@redhat.com>
9637
9638 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9639 argument.
9640 * common/linux-btrace.h (linux_supports_btrace): Update.
9641 * remote.c (remote_supports_btrace): Add "self" argument.
9642 * target-delegates.c: Rebuild.
9643 * target.c (target_supports_btrace): Remove.
9644 * target.h (struct target_ops) <to_supports_btrace>: Add
9645 target_ops argument.
9646 (target_supports_btrace): New define.
9647
6b84065d
TT
96482014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * record-full.c (record_full_beneath_to_resume_ops)
9651 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9652 (record_full_beneath_to_wait)
9653 (record_full_beneath_to_store_registers_ops)
9654 (record_full_beneath_to_store_registers)
9655 (record_full_beneath_to_xfer_partial_ops)
9656 (record_full_beneath_to_xfer_partial)
9657 (record_full_beneath_to_insert_breakpoint_ops)
9658 (record_full_beneath_to_insert_breakpoint)
9659 (record_full_beneath_to_remove_breakpoint_ops)
9660 (record_full_beneath_to_remove_breakpoint)
9661 (record_full_beneath_to_stopped_by_watchpoint)
9662 (record_full_beneath_to_stopped_data_address)
9663 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9664 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9665 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9666 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9667 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9668 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9669 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9670 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9671 (record_full_resume, record_full_wait_1)
9672 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9673 (record_full_store_registers, record_full_xfer_partial)
9674 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9675 (record_full_async, record_full_core_xfer_partial): Use target
9676 delegation.
9677 * target-delegates.c: Rebuild.
9678 * target.c (current_xfer_partial): Remove.
9679 (update_current_target): Do not INHERIT or de_fault
9680 to_insert_breakpoint, to_remove_breakpoint,
9681 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9682 to_is_async_p, to_async. Do not set to_xfer_partial field.
9683 (default_xfer_partial): Simplify.
9684 (current_xfer_partial): Remove.
9685 (target_wait, target_resume): Simplify.
9686 (find_default_can_async_p, find_default_is_async_p): Update.
9687 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9688 to_xfer_partial, to_stopped_by_watchpoint,
9689 to_stopped_data_address.
9690 (target_store_registers): Simplify.
9691 (forward_target_remove_breakpoint)
9692 (forward_target_insert_breakpoint): Remove.
9693 (target_remove_breakpoint, target_insert_breakpoint)
9694 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9695 * target.h (struct target_ops) <to_resume, to_wait,
9696 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9697 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9698 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9699 markup.
9700 (forward_target_remove_breakpoint)
9701 (forward_target_insert_breakpoint): Remove.
9702 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9703 directly.
9704 (record_btrace_insert_breakpoint): Delegate directly.
9705
1101cb7b
TT
97062014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 PR build/7701:
9709 * target-delegates.c: New file.
9710 * target.c: Include target-delegates.c.
9711 (init_dummy_target): Call install_dummy_methods.
9712 (complete_target_initialization): Call install_delegators.
9713 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9714 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9715 * make-target-delegates: New file.
9716
8b06beed
TT
97172014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * record.c (find_record_target): Use find_target_at.
9720 * target.c (find_target_at): New function.
9721 * target.h (find_target_at): Declare.
9722
6a109b6b
TT
97232014-02-19 Tom Tromey <tromey@redhat.com>
9724
9725 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9726 Add 'ops' argument.
9727 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9728 'ops' argument.
9729 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9730 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9731 'ops' argument.
9732 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9733 argument.
9734 * linux-nat.c (save_sigtrap): Update.
9735 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9736 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9737 (linux_nat_close): Update.
9738 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9739 argument.
9740 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9741 argument.
9742 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9743 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9744 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9745 (tmp_to_async): Add 'ops' argument.
9746 (record_full_stopped_by_watchpoint, record_full_async)
9747 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9748 argument.
9749 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9750 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9751 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9752 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9753 (remote_is_async_p, remote_async): Add 'ops' argument.
9754 (remote_stopped_data_address): Update.
9755 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9756 * target.c (update_current_target)
9757 (find_default_can_async_p, find_default_is_async_p): Update.
9758 (init_dummy_target): Update.
9759 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9760 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9761 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9762 (target_can_async_p, target_is_async_p, target_async)
9763 (target_stopped_by_watchpoint): Update.
9764
e095146b
YQ
97652014-02-19 Yao Qi <yao@codesourcery.com>
9766
9767 PR gdb/16220
9768 * gdbarch.sh: Remove startup_gdbarch.
9769 * gdbarch.c: Regenerated.
9770 * gdbarch.h: Likewise.
9771
bc3c6b36
KB
97722014-02-17 Kevin Buettner <kevinb@redhat.com>
9773
9774 * rl78-tdep.c (rl78_g10_register_name): New function.
9775 (rl78_return_value): Add g10 support.
9776 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9777 g10.
9778
98dc0167 97792014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9780
9781 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9782 (SUBDIR_GUILE_SRCS): Ditto.
9783 (scm-gsmob.o): Ditto.
9784
842c05cd
YQ
97852014-02-17 Yao Qi <yao@codesourcery.com>
9786
9787 * gnu-nat.c (ILL_RPC): Declare defined function.
9788
25c0bd04
YQ
97892014-02-17 Yao Qi <yao@codesourcery.com>
9790
9791 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9792 mach_msg_type_number_t.
9793 (gnu_write_inferior): Likewise.
9794
a9a758e3
YQ
97952014-02-17 Yao Qi <yao@codesourcery.com>
9796
9797 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9798 in format string.
9799 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9800 (inf_validate_procs, inf_signal): Likewise.
9801 (S_exception_raise_request): Likewise.
9802 (do_mach_notify_dead_name): Likewise.
9803 (steal_exc_port): Likewise.
9804 (gnu_read_inferior): Change 'copy_count''s type to
9805 mach_msg_type_number_t.
9806 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9807 format string.
9808
bae8023e
TS
98092014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9810
c82f56d9
TS
9811 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9812 flag. Adjust all users; in particular...
9813 (gnu_wait): ..., don't decrement its value in here...
9814 (gnu_create_inferior): ..., and instead set the flag in here,
9815 around the startup_inferior call, and call that one with
9816 START_INFERIOR_TRAPS_EXPECTED.
9817
3398af6a
TS
9818 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9819 (ILL_RPC): ... new macro.
9820 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9821 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9822 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9823 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9824 functions with ILL_RPC macro.
9825 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9826 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9827 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9828 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9829 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9830 (S_proc_getlogin_reply, S_proc_getsid_reply)
9831 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9832 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9833 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9834 (S_proc_getnports_reply, S_proc_is_important_reply)
9835 (S_proc_get_code_reply): New stub functions, generated with
9836 ILL_RPC macro.
9837
d47642c9
TS
9838 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9839 collected the type check structures.
9840
bae8023e
TS
9841 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9842
8a55ffb0
DE
98432014-02-14 Doug Evans <dje@google.com>
9844
9845 * target.c (target_write_partial): Fix result type.
9846
c2853f3d
JM
98472014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9848
9849 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9850 the proper offsets to access fpregset_t.
9851
ac61d2db
SA
98522014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9853
9854 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9855 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9856 * h8300-tdep.c (setmachinelist): Remove global.
9857 * hppa-tdep.c (hppa_sigtramp): Remove global.
9858 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9859 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9860 * ravenscar-thread.c (update_target_observer): Remove global.
9861 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9862
9d2d0b8b
TT
98632014-02-12 Tom Tromey <tromey@redhat.com>
9864
9865 * common/rsp-low.c: Update comments.
9866 * common/rsp-low.h: Update comments.
9867
a7191e8b
TT
98682014-02-12 Tom Tromey <tromey@redhat.com>
9869
9870 * common/rsp-low.c (convert_ascii_to_int): Remove.
9871 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9872
ff0e980e
TT
98732014-02-12 Tom Tromey <tromey@redhat.com>
9874
9875 * common/rsp-low.h (unhexify): Don't declare.
9876 * common/rsp-low.c (unhexify): Remove.
9877
e9371aff
TT
98782014-02-12 Tom Tromey <tromey@redhat.com>
9879
9880 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9881 * common/rsp-low.c (convert_int_to_ascii): Remove.
9882
971dc0b8
TT
98832014-02-12 Tom Tromey <tromey@redhat.com>
9884
9885 * common/rsp-low.h (hexify): Don't declare.
9886 * common/rsp-low.c (hexify): Remove.
9887
0a822afb
TT
98882014-02-12 Tom Tromey <tromey@redhat.com>
9889
9890 * common/rsp-low.c (hexify): Never take strlen of argument.
9891
9f1b45b0
TT
98922014-02-12 Tom Tromey <tromey@redhat.com>
9893
9894 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9895 * remote.c (extended_remote_run, remote_rcmd)
9896 (remote_download_trace_state_variable, remote_save_trace_data)
9897 (remote_set_trace_notes): Update.
9898 * tracepoint.c (encode_source_string, tfile_write_status)
9899 (tfile_write_uploaded_tsv): Update.
9900
9c3d6531
TT
99012014-02-12 Tom Tromey <tromey@redhat.com>
9902
9903 * tracepoint.c: Include rsp-low.h.
9904 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9905 * remote.c: Include rsp-low.h.
9906 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9907 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9908 (remote_unescape_input): Move to common/rsp-low.c.
9909 * common/rsp-low.h: New file.
9910 * common/rsp-low.c: New file.
9911 * Makefile.in (SFILES): Add common/rsp-low.c.
9912 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9913 (COMMON_OBS): Add rsp-low.o.
9914 (rsp-low.o): New target.
9915
01fd3ea5
TT
99162014-02-12 Tom Tromey <tromey@redhat.com>
9917
9918 * utils.h: Include print-utils.h.
9919 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9920 (int_string, core_addr_to_string, core_addr_to_string_nz)
9921 (hex_string, hex_string_custom): Don't declare.
9922 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9923 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9924 (hex_string_custom, int_string, core_addr_to_string)
9925 (core_addr_to_string_nz, host_address_to_string): Move to
9926 common/print-utils.c.
9927 * common/print-utils.h: New file.
9928 * common/print-utils.c: New file
9929 * Makefile.in (SFILES): Add common/print-utils.c.
9930 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9931 (COMMON_OBS): Add print-utils.o.
9932 (print-utils.o): New target.
9933
9fb50108
TT
99342014-02-12 Tom Tromey <tromey@redhat.com>
9935
9936 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9937
0548b5db
MK
99382014-02-12 Mark Kettenis <kettenis@gnu.org>
9939
9940 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9941
493443a4
MK
99422014-02-12 Mark Kettenis <kettenis@gnu.org>
9943
9944 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9945 if a PT_IO ptrace request returns sucessfully but indicates that 0
9946 bytes were transferred.
9947
706d0883
PA
99482014-02-12 Pedro Alves <palves@redhat.com>
9949 Kevin Buettner <kevinb@redhat.com>
9950
9951 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9952 TYPE_INSTANCE_FLAG_CODE_SPACE.
9953
5caa2f0b
PA
99542014-02-12 Pedro Alves <palves@redhat.com>
9955
9956 * h8300-tdep.c (pseudo_from_raw_register)
9957 (raw_from_pseudo_register): New functions.
9958 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9959 them.
9960
76fd5f74
PA
99612014-02-12 Pedro Alves <palves@redhat.com>
9962
9963 * h8300-tdep.c (h8300_register_sim_regno): New function.
9964 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9965 gdbarch_register_sim_regno hook.
9966
8f008406
SA
99672014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9968
9969 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9970
195abc10
SA
99712014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9972
9973 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9974
93ffa5b9
MK
99752014-02-12 Mark Kettenis <kettenis@gnu.org>
9976
9977 * obsd-tdep.h (obsd_init_abi): New prototype.
9978 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9979 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9980 (obsd_init_abi): New functions.
9981 * i386obsd-tdep.c: Include "obsd-tdep.h".
9982 (i386obsd_init_abi): Call obsd_init_abi.
9983 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9984 (amd64obsd_init_abi): Call obsd_init_abi.
9985 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9986 obsd-tdep.c to gdb_target_obs.
9987
49caec94
JM
99882014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9989
9990 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9991 double float arguments to 16-byte in the argument slots.
9992
e1402065
DE
99932014-02-11 Doug Evans <xdje42@gmail.com>
9994
9995 * configure.ac: Don't crash if pkg-config is not found and guile
9996 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9997 in guile checks.
9998 * configure: Regenerate.
9999
edcc890f
YQ
100002014-02-11 Yao Qi <yao@codesourcery.com>
10001
10002 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10003 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10004 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10005 * gnu-nat.c (gnu_xfer_memory): Likewise.
10006 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10007 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10008 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10009 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10010
9b409511
YQ
100112014-02-11 Yao Qi <yao@codesourcery.com>
10012
10013 * target.h (enum target_xfer_error): Rename to ...
10014 (enum target_xfer_status): ... it. New. All users updated.
10015 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10016 New.
10017 (TARGET_XFER_STATUS_ERROR_P): New macro.
10018 (target_xfer_error_to_string): Remove declaration.
10019 (target_xfer_status_to_string): Declare.
10020 (target_xfer_partial_ftype): Adjust it.
10021 (struct target_ops) <to_xfer_partial>: Return
10022 target_xfer_status. Add argument xfered_len. Update
10023 comments.
10024 * target.c (target_xfer_error_to_string): Rename to ...
10025 (target_xfer_status_to_string): ... it. New. All callers
10026 updated.
10027 (target_read_live_memory): Likewise. Call target_xfer_partial
10028 instead of target_read.
10029 (memory_xfer_live_readonly_partial): Return
10030 target_xfer_status. Add argument xfered_len.
10031 (raw_memory_xfer_partial): Likewise.
10032 (memory_xfer_partial_1): Likewise.
10033 (memory_xfer_partial): Likewise.
10034 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10035 properly. Update debug message.
10036 (default_xfer_partial, current_xfer_partial): Likewise.
10037 (target_write_partial): Likewise.
10038 (target_read_partial): Likewise. All callers updated.
10039 (read_whatever_is_readable): Likewise.
10040 (target_write_with_progress): Likewise.
10041 (target_read_alloc_1): Likewise.
10042
10043 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10044 * auxv.c (procfs_xfer_auxv): Likewise.
10045 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10046 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10047 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10048 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10049 * corefile.c (read_memory): Adjust.
10050 * corelow.c (core_xfer_partial): Likewise.
10051 * ctf.c (ctf_xfer_partial): Likewise.
10052 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10053 updated.
10054 (darwin_xfer_partial): Likewise.
10055 * exec.c (section_table_xfer_memory_partial): Likewise. All
10056 callers updated.
10057 (exec_xfer_partial): Likewise.
10058 * exec.h (section_table_xfer_memory_partial): Update
10059 declaration.
10060 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10061 negative.
10062 (gnu_xfer_partial): Likewise.
10063 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10064 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10065 (ia64_hpux_xfer_solib_got): Likewise.
10066 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10067 type of 'partial_len' to ULONGEST.
10068 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10069 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10070 (linux_nat_xfer_partial): Likewise.
10071 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10072 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10073 * monitor.c (monitor_xfer_memory): Likewise.
10074 (monitor_xfer_partial): Likewise.
10075 * procfs.c (procfs_xfer_partial): Likewise.
10076 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10077 * record-full.c (record_full_xfer_partial): Likewise.
10078 (record_full_core_xfer_partial): Likewise.
10079 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10080 (gdbsim_xfer_partial): Likewise.
10081 * remote.c (remote_write_bytes_aux): Likewise. All callers
10082 updated.
10083 (remote_write_bytes, remote_read_bytes): Likewise. All
10084 callers updated.
10085 (remote_flash_erase): Likewise. All callers updated.
10086 (remote_write_qxfer): Likewise. All callers updated.
10087 (remote_read_qxfer): Likewise. All callers updated.
10088 (remote_xfer_partial): Likewise.
10089 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10090 (rs6000_xfer_shared_libraries): Likewise.
10091 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10092 (sol_thread_xfer_partial): Likewise.
10093 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10094 (sparc_xfer_partial): Likewise.
10095 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10096 updated.
10097 (spu_xfer_partial): Likewise.
10098 * spu-multiarch.c (spu_xfer_partial): Likewise.
10099 * tracepoint.c (tfile_xfer_partial): Likewise.
10100 * windows-nat.c (windows_xfer_memory): Likewise.
10101 (windows_xfer_shared_libraries): Likewise.
10102 (windows_xfer_partial): Likewise.
10103 * valprint.c: Replace 'target_xfer_error' with
10104 'target_xfer_status' in comments.
10105
a8e63083
JB
101062014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10107
10108 Checked in by Joel Brobecker <brobecker@adacore.com>.
10109 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10110
e86b67d3
JB
101112014-02-11 Joel Brobecker <brobecker@adacore.com>
10112
10113 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10114 function parameters.
10115
4b7d1f7f
WN
101162014-02-10 Will Newton <will.newton@linaro.org>
10117
10118 * elfread.c (elf_rel_plt_read): Look for a .got section if
10119 looking up .got.plt fails.
10120 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10121 on address passed to elf_gnu_ifunc_record_cache.
10122 (elf_gnu_ifunc_resolve_addr): Likewise.
10123 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10124
961842b2
JM
101252014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10126
10127 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10128 (X_RETTURN): New macro.
10129 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10130
10131 * sparc64-tdep.c (sparc64_init_abi): Hook
10132 sparc_in_function_epilogue_p.
10133
3f03e7b1
GB
101342014-02-10 Gary Benson <gbenson@redhat.com>
10135
10136 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10137 Rename name_matcher to symbol_matcher.
10138
96f861ef
GB
101392014-02-10 Gary Benson <gbenson@redhat.com>
10140
10141 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10142 Use expand_symtabs_file_matcher_ftype and
10143 expand_symtabs_symbol_matcher_ftype.
10144
ee01b665
JB
101452014-02-10 Joel Brobecker <brobecker@adacore.com>
10146
10147 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10148 (struct ada_symbol_cache): New.
10149 (ada_free_symbol_cache): Forward declare.
10150 (struct ada_pspace_data): New.
10151 (ada_pspace_data_handle): New static global.
10152 (get_ada_pspace_data, ada_pspace_data_cleanup)
10153 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10154 (cache_space, cache): Delete, now folded inside struct
10155 ada_pspace_data.
10156 (ada_get_symbol_cache): New function.
10157 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10158 implementation.
10159 (_initialize_ada_language): Remove initialization of cache_space.
10160 Move call to observer_attach_inferior_exit up, grouping it
10161 with the other observer registrations inside this function.
10162 Rename command to be more general. Add call to
10163 register_program_space_data_with_cleanup.
10164
143adbbf
JB
101652014-02-10 Joel Brobecker <brobecker@adacore.com>
10166
10167 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10168 ada_new_objfile_observer.
10169 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10170 (_initialize_tasks): Update uses of ada_new_objfile_observer
10171 and ada_tasks_normal_stop_observer.
10172
aa4fb036
JB
101732014-02-10 Joel Brobecker <brobecker@adacore.com>
10174
10175 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10176 returned by the 'Length attribute to integer.
10177
9dee8cc6
JB
101782014-02-10 Joel Brobecker <brobecker@adacore.com>
10179
10180 * ada-lang.c (_initialize_ada_language): Initialize
10181 cache_space obstack.
10182
3d9434b5
JB
101832014-02-10 Joel Brobecker <brobecker@adacore.com>
10184
10185 * ada-lang.c (HASH_SIZE): New macro.
10186 (struct cache_entry): New type.
10187 (cache_space, cache): New static globals.
10188 (ada_clear_symbol_cache, find_entry): New functions.
10189 (lookup_cached_symbol, cache_symbol): Implement.
10190 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10191 (_initialize_ada_language): Attach ada_new_objfile_observer
10192 and ada_free_objfile_observer.
10193
f0c5f9b2
JB
101942014-02-10 Joel Brobecker <brobecker@adacore.com>
10195
10196 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10197 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10198 struct block * parameter.
10199 (ada_lookup_symbol_list_worker): Constify local variable "block".
10200 Remove cast which is no longer necessary.
10201
ed3ef339
DE
102022014-02-10 Doug Evans <xdje42@gmail.com>
10203
10204 Add Guile as an extension language.
10205 * NEWS: Mention Guile scripting.
10206 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10207 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10208 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10209 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10210 (CLIBS): Add GUILE_LIBS.
10211 (install-guile): New rule.
10212 (guile.o): New rule.
10213 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10214 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10215 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10216 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10217 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10218 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10219 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10220 * configure.ac: New option --with-guile.
10221 * configure: Regenerate.
10222 * config.in: Regenerate.
10223 * auto-load.c: Remove #include "python/python.h". Add #include
10224 "gdb/section-scripts.h".
10225 (source_section_scripts): Handle Guile scripts.
10226 (_initialize_auto_load): Add name of Guile objfile script to
10227 scripts-directory help text.
10228 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10229 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10230 (struct breakpoint): New member scm_bp_object.
10231 * defs.h (enum command_control_type): New value guile_control.
10232 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10233 "extension.h".
10234 (show_user): Update comment.
10235 (_initialize_cli_cmds): Update help text for "show user". Update help
10236 text for max-user-call-depth.
10237 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10238 "extension.h".
10239 (multi_line_command_p): Add guile_control.
10240 (print_command_lines): Handle guile_control.
10241 (execute_control_command, recurse_read_control_structure): Ditto.
10242 (process_next_line): Recognize "guile" commands.
10243 * disasm.c (gdb_disassemble_info): Make non-static.
10244 * disasm.h: #include "dis-asm.h".
10245 (struct gdbarch): Add forward decl.
10246 (gdb_disassemble_info): Declare.
10247 * extension.c: #include "guile/guile.h".
10248 (extension_languages): Add guile.
10249 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10250 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10251 * gdbtypes.c (get_unsigned_type_max): New function.
10252 (get_signed_type_minmax): New function.
10253 * gdbtypes.h (get_unsigned_type_max): Declare.
10254 (get_signed_type_minmax): Declare.
10255 * guile/README: New file.
10256 * guile/guile-internal.h: New file.
10257 * guile/guile.c: New file.
10258 * guile/guile.h: New file.
10259 * guile/scm-arch.c: New file.
10260 * guile/scm-auto-load.c: New file.
10261 * guile/scm-block.c: New file.
10262 * guile/scm-breakpoint.c: New file.
10263 * guile/scm-disasm.c: New file.
10264 * guile/scm-exception.c: New file.
10265 * guile/scm-frame.c: New file.
10266 * guile/scm-gsmob.c: New file.
10267 * guile/scm-iterator.c: New file.
10268 * guile/scm-lazy-string.c: New file.
10269 * guile/scm-math.c: New file.
10270 * guile/scm-objfile.c: New file.
10271 * guile/scm-ports.c: New file.
10272 * guile/scm-pretty-print.c: New file.
10273 * guile/scm-safe-call.c: New file.
10274 * guile/scm-string.c: New file.
10275 * guile/scm-symbol.c: New file.
10276 * guile/scm-symtab.c: New file.
10277 * guile/scm-type.c: New file.
10278 * guile/scm-utils.c: New file.
10279 * guile/scm-value.c: New file.
10280 * guile/lib/gdb.scm: New file.
10281 * guile/lib/gdb/boot.scm: New file.
10282 * guile/lib/gdb/experimental.scm: New file.
10283 * guile/lib/gdb/init.scm: New file.
10284 * guile/lib/gdb/iterator.scm: New file.
10285 * guile/lib/gdb/printing.scm: New file.
10286 * guile/lib/gdb/types.scm: New file.
10287 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10288 (VPATH): Add $(GUILE_SRCDIR).
10289 (GUILE_DIR): New variable.
10290 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10291 (all): Add stamp-guile dependency.
10292 (stamp-guile): New rule.
10293 (clean-guile, install-guile, uninstall-guile): New rules.
10294 (install-only): Add install-guile dependency.
10295 (uninstall): Add uninstall-guile dependency.
10296 (clean): Add clean-guile dependency.
10297
ac020ec5
DE
102982014-02-09 Doug Evans <xdje42@gmail.com>
10299
10300 Revert this patch (which I approved, mea culpa).
10301
10302 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10303
10304 * Makefile.in (all-lib): Remove.
10305 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10306
2a081c59
JK
103072014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10308
10309 Fix Python stack corruption.
10310 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10311 gdb_py_longest.
10312
0a6bd22d
MK
103132014-02-08 Mark Kettenis <kettenis@gnu.org>
10314
10315 * Makefile.in (all-lib): Remove.
10316 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10317
1a860409
DE
103182014-02-07 Doug Evans <dje@google.com>
10319
10320 * extension-priv.h (extension_language_script_ops): Add comment.
10321 (extension_language_ops): Add comment.
caf5a491 10322 (active_ext_lang_state): Fix typo in comment.
1a860409 10323
d137e6dc
PA
103242014-02-07 Pedro Alves <palves@redhat.com>
10325
0dcb32c3 10326 PR breakpoints/16292
d137e6dc
PA
10327 * infrun.c (handle_signal_stop) <signal arrives while stepping
10328 over a breakpoint>: Switch back to the stepping thread.
10329
ce6d0892
YQ
103302014-02-07 Yao Qi <yao@codesourcery.com>
10331
10332 * target.c (target_xfer_partial): Return zero if LEN is zero.
10333
2ed4b548
YQ
103342014-02-07 Yao Qi <yao@codesourcery.com>
10335
10336 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10337 (ld_so_xfer_auxv): Likewise.
10338 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10339 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10340 * corelow.c (core_xfer_partial): Likewise.
10341 * ctf.c (ctf_xfer_partial): Likewise.
10342 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10343 (darwin_xfer_partial): Likewise.
10344 * exec.c (exec_xfer_partial): Likewise.
10345 * gnu-nat.c (gnu_xfer_partial): Likewise.
10346 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10347 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10348 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10349 * linux-nat.c (linux_xfer_siginfo): Likewise.
10350 (linux_proc_xfer_spu): Likewise.
10351 * procfs.c (procfs_xfer_partial): Likewise.
10352 * record-full.c (record_full_xfer_partial): Likewise.
10353 (record_full_core_xfer_partial): Likewise.
10354 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10355 * remote.c (remote_write_qxfer): Likewise.
10356 (remote_write_qxfer, remote_read_qxfer): Likewise.
10357 (remote_xfer_partial): Likewise.
10358 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10359 (rs6000_xfer_shared_libraries): Likewise.
10360 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10361 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10362 (spu_xfer_partial): Likewise.
10363 * target.c (memory_xfer_partial_1): Likewise.
10364 * tracepoint.c (tfile_xfer_partial): Likewise.
10365 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10366 (windows_xfer_partial): Likewise.
10367
c09f20e4
YQ
103682014-02-07 Yao Qi <yao@codesourcery.com>
10369
10370 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10371 comments.
10372 (core_xfer_shared_libraries_aix): Likewise.
10373 * gdbarch.c, gdbarch.h: Regenerated.
10374 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10375 ULONGEST. Change 'len_avail' type to ULONGEST.
10376 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10377 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10378 declaration.
10379 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10380
8635b3bf
YQ
103812014-02-07 Yao Qi <yao@codesourcery.com>
10382
10383 * corefile.c (memory_error): Get 'exception' from ERR and pass
10384 'exception' to throw_error.
10385
6dddc817
DE
103862014-02-06 Doug Evans <xdje42@gmail.com>
10387
10388 * configure.ac (libpython checking): Remove all but python.o from
10389 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10390 * configure: Regenerate.
10391
10392 * Makefile.in (SFILES): Add extension.c.
10393 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10394 (COMMON_OBS): Add extension.o.
10395 * extension.h: New file.
10396 * extension-priv.h: New file.
10397 * extension.c: New file.
10398
10399 * python/python-internal.h: #include "extension.h".
10400 (gdbpy_auto_load_enabled): Declare.
10401 (gdbpy_apply_val_pretty_printer): Declare.
10402 (gdbpy_apply_frame_filter): Declare.
10403 (gdbpy_preserve_values): Declare.
10404 (gdbpy_breakpoint_cond_says_stop): Declare.
10405 (gdbpy_breakpoint_has_cond): Declare.
10406 (void source_python_script_for_objfile): Delete.
10407 * python/python.c: #include "extension-priv.h".
10408 Delete inclusion of "observer.h".
10409 (extension_language_python): Moved here and renamed from
10410 script_language_python in py-auto-load.c.
10411 Redefined to be of type extension_language_defn.
10412 (python_extension_script_ops): New global.
10413 (python_extension_ops): New global.
10414 (struct python_env): New member previous_active.
10415 (restore_python_env): Call restore_active_ext_lang.
10416 (ensure_python_env): Call set_active_ext_lang.
10417 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10418 New arg extlang.
10419 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10420 New arg extlang.
10421 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10422 New arg extlang.
10423 (gdbpy_eval_from_control_command): Renamed from
10424 eval_python_from_control_command, made static. New arg extlang.
10425 (gdbpy_source_script) Renamed from source_python_script, made static.
10426 New arg extlang.
10427 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10428 result to int. New arg extlang.
10429 (gdbpy_source_objfile_script): Renamed from
10430 source_python_script_for_objfile, made static. New arg extlang.
10431 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10432 static. New args extlang, extlang_printers. Change result type to
10433 "void".
10434 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10435 static. New arg extlang. Rename arg printers to extlang_printers
10436 and change type to ext_lang_type_printers *.
10437 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10438 static. Replace argument arg with extlang, extlang_printers.
10439 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10440 (!HAVE_PYTHON, source_python_script): Delete.
10441 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10442 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10443 (!HAVE_PYTHON, start_type_printers): Delete.
10444 (!HAVE_PYTHON, apply_type_printers): Delete.
10445 (!HAVE_PYTHON, free_type_printers): Delete.
10446 (_initialize_python): Delete call to observer_attach_before_prompt.
10447 (finalize_python): Set/restore active extension language.
10448 (gdbpy_finish_initialization) Renamed from
10449 finish_python_initialization, made static. New arg extlang.
10450 (gdbpy_initialized): New function.
10451 * python/python.h: #include "extension.h". Delete #include
10452 "value.h", "mi/mi-cmds.h".
10453 (extension_language_python): Declare.
10454 (GDBPY_AUTO_FILE_NAME): Delete.
10455 (enum py_bt_status): Moved to extension.h and renamed to
10456 ext_lang_bt_status.
10457 (enum frame_filter_flags): Moved to extension.h.
10458 (enum py_frame_args): Moved to extension.h and renamed to
10459 ext_lang_frame_args.
10460 (finish_python_initialization): Delete.
10461 (eval_python_from_control_command): Delete.
10462 (source_python_script): Delete.
10463 (apply_val_pretty_printer): Delete.
10464 (apply_frame_filter): Delete.
10465 (preserve_python_values): Delete.
10466 (gdbpy_script_language_defn): Delete.
10467 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10468 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10469
10470 * auto-load.c: #include "extension.h".
10471 (GDB_AUTO_FILE_NAME): Delete.
10472 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10473 (script_language_gdb): Delete, moved to extension.c and renamed to
10474 extension_language_gdb.
10475 (source_gdb_script_for_objfile): Delete.
10476 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10477 (loaded_script): Change type of language member to
10478 struct extension_language_defn *.
10479 (init_loaded_scripts_info): Initialize
10480 unsupported_script_warning_printed.
10481 (maybe_add_script): Make static. Change type of language arg to
10482 struct extension_language_defn *.
10483 (clear_section_scripts): Reset unsupported_script_warning_printed.
10484 (auto_load_objfile_script_1): Rewrite to use extension language API.
10485 (auto_load_objfile_script): Make public. Remove support-compiled-in
10486 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10487 (source_section_scripts): Rewrite to use extension language API.
10488 (load_auto_scripts_for_objfile): Rewrite to use
10489 auto_load_scripts_for_objfile.
10490 (collect_matching_scripts_data): Change type of language member to
10491 struct extension_language_defn *.
10492 (auto_load_info_scripts): Change type of language arg to
10493 struct extension_language_defn *.
10494 (unsupported_script_warning_print): New function.
10495 (script_not_found_warning_print): Make static.
10496 (_initialize_auto_load): Rewrite construction of scripts-directory
10497 help.
10498 * auto-load.h (struct objfile): Add forward decl.
10499 (struct script_language): Delete.
10500 (struct auto_load_pspace_info): Add forward decl.
10501 (struct extension_language_defn): Add forward decl.
10502 (maybe_add_script): Delete.
10503 (auto_load_objfile_script): Declare.
10504 (script_not_found_warning_print): Delete.
10505 (auto_load_info_scripts): Update prototype.
10506 (auto_load_gdb_scripts_enabled): Declare.
10507 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10508 auto_load_python_scripts_enabled and made public.
10509 (script_language_python): Delete, moved to python.c.
10510 (gdbpy_script_language_defn): Delete.
10511 (info_auto_load_python_scripts): Update to use
10512 extension_language_python.
10513
10514 * breakpoint.c (condition_command): Replace call to
10515 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10516 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10517 with call to breakpoint_ext_lang_cond_says_stop.
10518 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10519 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10520 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10521 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10522 New arg slang.
10523 (local_setattro): Print name of extension language with existing
10524 stop condition.
10525
10526 * valprint.c (val_print, value_print): Update to call
10527 apply_ext_lang_val_pretty_printer.
10528 * cp-valprint.c (cp_print_value): Update call to
10529 apply_ext_lang_val_pretty_printer.
10530 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10531 (gdbpy_apply_val_pretty_printer): Renamed from
10532 apply_val_pretty_printer. New arg extlang.
10533 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10534
10535 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10536 extension language API.
10537 * cli/cli-script.c (execute_control_command): Update to call
10538 eval_ext_lang_from_control_command.
10539
10540 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10541 enum ext_lang_bt_status values. Update call to
10542 apply_ext_lang_frame_filter.
10543 (mi_cmd_stack_list_locals): Ditto.
10544 (mi_cmd_stack_list_args): Ditto.
10545 (mi_cmd_stack_list_variables): Ditto.
10546 * mi/mi-main.c: Delete #include "python/python-internal.h".
10547 Add #include "extension.h".
10548 (mi_cmd_list_features): Replace reference to python internal variable
10549 gdb_python_initialized with call to ext_lang_initialized_p.
10550
10551 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10552 Update to use enum ext_lang_frame_args. Update to call
10553 apply_ext_lang_frame_filter.
10554 * python/py-framefilter.c (extract_sym): Update to use enum
10555 ext_lang_bt_status.
10556 (extract_value, py_print_type, py_print_value): Ditto.
10557 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10558 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10559 (py_print_frame): Ditto.
10560 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10561 New arg extlang. Update to use enum ext_lang_bt_status.
10562
10563 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10564 finish_python_initialization. Replace with call to
10565 finish_ext_lang_initialization.
10566
10567 * typeprint.c (do_free_global_table): Update to call
10568 free_ext_lang_type_printers.
10569 (create_global_typedef_table): Update to call
10570 start_ext_lang_type_printers.
10571 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10572 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10573 (type_print_options): Change type of global_printers from "void *"
10574 to "struct ext_lang_type_printers *".
10575
10576 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10577 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10578 (gdbpy_preserve_values): Renamed from preserve_python_values.
10579 New arg extlang.
10580 (!HAVE_PYTHON, preserve_python_values): Delete.
10581
10582 * utils.c (quit_flag): Delete, moved to extension.c.
10583 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10584 extension.c.
10585
10586 * eval.c: Delete #include "python/python.h".
10587 * main.c: Delete #include "python/python.h".
10588
10589 * defs.h: Update comment.
10590
6af79985
JB
105912014-02-06 Joel Brobecker <brobecker@adacore.com>
10592
10593 GDB 7.7 released.
10594
12c5175d
MK
105952014-02-05 Mark Kettenis <kettenis@gnu.org>
10596
10597 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10598 defined.
10599
8dc5b319
YQ
106002014-02-05 Yao Qi <yao@codesourcery.com>
10601
10602 * remote.c (remote_pass_signals): Remove local 'buf' and use
10603 rs->buf.
10604 (remote_program_signals): Likewise.
10605
de7b2893
YQ
106062014-02-05 Yao Qi <yao@codesourcery.com>
10607
10608 * ctf.c: Include "inferior.h" and "gdbthread.h".
10609 (CTF_PID): A new macro.
10610 (ctf_open): Call inferior_appeared and add_thread_silent.
10611 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10612 (ctf_thread_alive): New function.
10613 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10614
66d032ac
YQ
106152014-02-05 Yao Qi <yao@codesourcery.com>
10616
10617 Revert this patch:
10618
10619 2013-05-24 Yao Qi <yao@codesourcery.com>
10620
10621 * tracepoint.c (TFILE_PID): Remove.
10622 (tfile_open): Don't add thread and inferior.
10623 (tfile_close): Don't set 'inferior_ptid'. Don't call
10624 exit_inferior_silent.
10625 (tfile_thread_alive): Remove.
10626 (init_tfile_ops): Don't set field 'to_thread_alive' of
10627 tfile_ops.
10628
f4ccffad
CE
106292014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10630
10631 * remote.c (remote_start_remote): Call remote_check_symbols even
10632 if only symbol-file (not file) has been given.
10633
591a12a1
UW
106342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10635
10636 * gdbarch.sh (skip_entrypoint): New callback.
10637 * gdbarch.c, gdbarch.h: Regenerate.
10638 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10639 * infrun.c (fill_in_stop_func): Likewise.
10640 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10641 (ppc_elfv2_elf_make_msymbol_special): New function.
10642 (ppc_elfv2_skip_entrypoint): Likewise.
10643 (ppc_linux_init_abi): Install them for ELFv2.
10644
cc0e89c5
UW
106452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10646
10647 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10648 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10649 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10650 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10651 structures returned in GPRs.
10652
52f548e4
UW
106532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10654
10655 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10656 offset to the stack parameter list for the ELFv2 ABI.
10657
d4094b6a
UW
106582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10659
10660 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10661 set_gdbarch_convert_from_func_ptr_addr and
10662 set_gdbarch_elf_make_msymbol_special for ELFv1.
10663 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10664 function descriptors on ELFv1.
10665 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10666 set up r12 at function entry.
10667
cd453cd0
UW
106682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10669
10670 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10671 (struct gdbarch_tdep): New member elf_abi.
10672
10673 * rs6000-tdep.c: Include "elf/ppc64.h".
10674 (rs6000_gdbarch_init): Detect ELF ABI version.
10675
0ff3e01f
UW
106762014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10677
10678 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10679 within a register pair holding a DFP 128-bit value on little-endian.
10680 (ppc64_sysv_abi_return_value_base): Likewise.
10681 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10682 (dfp_pseudo_register_write): Likewise.
10683
5b757e5d
UW
106842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10685
10686 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10687 offset on little-endian when passing _Decimal32.
10688 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10689
084ee545
UW
106902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10691
10692 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10693 of the overlapped FP register within the VSX register on little-
10694 endian platforms.
10695 (efpr_pseudo_register_write): Likewise.
10696
d63167af
UW
106972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10698
10699 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10700 offset on little-endian when passing small structures.
10701
e765b44c
UW
107022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10703
10704 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10705 (struct ppc64_sysv_argpos): New data structure.
10706 (ppc64_sysv_abi_push_float): Remove.
10707 (ppc64_sysv_abi_push_val): New function.
10708 (ppc64_sysv_abi_push_integer): Likewise.
10709 (ppc64_sysv_abi_push_freg): Likewise.
10710 (ppc64_sysv_abi_push_vreg): Likewise.
10711 (ppc64_sysv_abi_push_param): Likewise.
10712 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10713 (ppc64_sysv_abi_return_value_base): New function.
10714 (ppc64_sysv_abi_return_value): Refactor to use it.
10715
36c24d95
UW
107162014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10717
10718 * NEWS: Document new target powerpc64le-*-linux*.
10719
26fd9228
MK
107202014-02-04 Mark Kettenis <kettenis@gnu.org>
10721
10722 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10723 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10724 core dumps.
10725 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10726 register set used in ELF core dumps. Add floating-point register set.
10727
c5bb7362
KB
107282014-02-03 Kevin Buettner <kevinb@redhat.com>
10729
74228e77 10730 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10731 dwarf2_to_gdb[] table using symbolic constants. Adjust
10732 penultimate entry from number representing the PC register
10733 to symbolic constant representing the MDR register. Add
10734 constant for the PC register to the end of the table.
10735
af09351e
MK
107362014-02-03 Mark Kettenis <kettenis@gnu.org>
10737
10738 * bsd-kvm.c: Include <sys/param.h>
10739
8507e05d
MK
107402014-02-03 Mark Kettenis <kettenis@gnu.org>
10741
10742 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10743
ae56bfb8
JB
107442014-01-31 Joel Brobecker <brobecker@adacore.com>
10745
10746 * ada-lang.h (clear_ada_sym_cache): Delete.
10747
718ee4dc
UW
107482014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10749
10750 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10751
401e27fd
JM
107522014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10753
10754 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10755 the sigreturn register save area only if the syscall is
10756 sigreturn.
10757
a7c88acd
JB
107582014-01-29 Joel Brobecker <brobecker@adacore.com>
10759
10760 * valops.c (value_slice): Minor reformatting.
10761
fa0079ea
UW
107622014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10763
10764 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10765
c6044dd1
JB
107662014-01-28 Joel Brobecker <brobecker@adacore.com>
10767
10768 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10769 New static globals.
10770 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10771 (ada_ignore_descriptive_types_p): New static global.
10772 (find_parallel_type_by_descriptive_type): Return immediately
10773 if ada_ignore_descriptive_types_p is set.
10774 (_initialize_ada_language): Register new commands "maintenance
10775 set ada", "maintenance show ada", "maintenance set ada
10776 ignore-descriptive-types" and "maintenance show ada
10777 ignore-descriptive-types".
10778 * NEWS: Add entry for new "maint ada set/show
10779 ignore-descriptive-types" commands.
10780
568e808b
MM
107812014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10782
10783 * record-btrace.c (record_btrace_close): Call btrace_teardown
10784 for all threads.
10785
467d141b
JB
107862014-01-27 Joel Brobecker <brobecker@adacore.com>
10787
10788 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10789 "ui-out.h".
10790
fb151210
JB
107912014-01-27 Joel Brobecker <brobecker@adacore.com>
10792
10793 * ada-typeprint (type_is_full_subrange_of_target_type):
10794 New function.
10795 (print_range): Add parameter bounds_prefered_p. If not set,
10796 try printing range types using the name of their base type.
10797 (print_range_type): Add parameter bounds_prefered_p.
10798 Use it in call to print_range.
10799 (print_array_type, ada_print_type): Update calls to print_range
10800 and print_range_type.
10801
aba02109
JB
108022014-01-27 Joel Brobecker <brobecker@adacore.com>
10803
10804 * ada-typeprint.c (print_array_type, print_choices, print_range)
10805 (print_range_bound, print_dynamic_range_bound, print_range_type):
10806 Remove declaration.
10807
e62e21fd
JB
108082014-01-27 Joel Brobecker <brobecker@adacore.com>
10809
10810 * ada-typeprint.c (print_range): Add missing empty line
10811 after local declaration.
10812
859cf5d1
JB
108132014-01-27 Joel Brobecker <brobecker@adacore.com>
10814
10815 * ada-valprint.c (print_optional_low_bound): Get index_type's
10816 target type for as long as it is a TYPE_CODE_RANGE.
10817
25790f6f
JB
108182014-01-27 Joel Brobecker <brobecker@adacore.com>
10819
10820 * procfs.c (procfs_make_note_section): Remove assertion and
10821 associated comment.
10822
6b6aa828
YQ
108232014-01-24 Yao Qi <yao@codesourcery.com>
10824
10825 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10826 * corelow.c (get_core_siginfo): Likewise.
10827
5d6df423
YQ
108282014-01-24 Yao Qi <yao@codesourcery.com>
10829
10830 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10831 ULONGEST. Don't check 'len' is negative.
10832 (remote_write_bytes): Change type of 'len' to ULONGEST.
10833
83b645b8
TT
108342014-01-23 Tom Tromey <tromey@redhat.com>
10835
10836 PR python/16485:
10837 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10838 Handle exception from frame.block.
10839 (FrameVars.fetch_frame_locals): Likewise.
10840
0740f8d8
TT
108412014-01-23 Tom Tromey <tromey@redhat.com>
10842
10843 PR python/16487:
10844 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10845 on a NULL pointer. Move "goto error" to correct place.
10846
21909fa1
TT
108472014-01-23 Tom Tromey <tromey@redhat.com>
10848
10849 PR python/16491:
10850 * python/py-framefilter.c (apply_frame_filter): Call
10851 ensure_python_env after computing gdbarch.
10852
17fde6d0
YQ
108532014-01-23 Yao Qi <yao@codesourcery.com>
10854
10855 * target.c (raw_memory_xfer_partial): Change argument type
10856 from void * to gdb_byte *.
10857 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10858
87ce2a04
DE
108592014-01-22 Doug Evans <dje@google.com>
10860
10861 New gdbserver option --debug-format=timestamp.
10862 * NEWS: Mention it.
10863
237b092b
AA
108642014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10865
10866 * syscalls/s390x-linux.xml: New file.
10867 * syscalls/s390-linux.xml: New file.
10868 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10869 (XML_SYSCALL_FILENAME_S390X): Likewise.
10870 (op_svc): New enum value for SVC opcode.
10871 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10872 (s390_linux_get_syscall_number): New function.
10873 (s390_gdbarch_init): Register '*get_syscall_number' and the
10874 syscall xml file name.
10875 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10876 "s390-linux.xml" and "s390x-linux.xml".
10877 * NEWS: Announce new feature.
10878
54bff650
BS
108792014-01-22 Baruch Siach <baruch@tkos.co.il>
10880
10881 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10882
14e361d7
PA
108832014-01-22 Pedro Alves <palves@redhat.com>
10884
10885 * xtensa-config.c: Include defs.h.
10886
46bbb3ed
JB
108872014-01-22 Joel Brobecker <brobecker@adacore.com>
10888
10889 * common/common-utils.h: Add "ARI:" comment beside __func__
10890 reference.
10891
3a80edfc
JB
108922014-01-22 Joel Brobecker <brobecker@adacore.com>
10893
10894 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10895 documentation a bit.
10896
4869db5e
RM
108972014-01-21 Roland McGrath <mcgrathr@google.com>
10898
10899 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10900 * configure: Regenerate.
10901 * aclocal.m4: Regenerate.
10902 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10903 New substituted variables.
10904 (install-strip): New target.
10905 (INSTALL_SCRIPT): New substituted variable.
10906 (FLAGS_TO_PASS): Add it.
10907 (install-only): Use $(INSTALL_SCRIPT) rather than
10908 $(INSTALL_PROGRAM) for gcore.
10909
9ea4267d
TT
109102014-01-20 Tom Tromey <tromey@redhat.com>
10911
10912 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10913 together.
10914
1f2bdf09
TT
109152014-01-20 Tom Tromey <tromey@redhat.com>
10916
10917 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10918 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10919 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10920 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10921 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10922 (struct cmd_list_element) <flags>: Remove.
10923 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10924 doc_allocated>: New fields.
10925 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10926 bitfields.
10927 * maint.c (maintenance_do_deprecate): Update.
10928 * top.c (execute_command): Update.
10929
e671835b
BS
109302014-01-20 Baruch Siach <baruch@tkos.co.il>
10931
10932 * xtensa-linux-nat.c: Include asm/ptrace.h.
10933
50367cd2
IB
109342014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10935
10936 * Makefile.in (SFILES): Add d-support.c.
10937 (COMMON_OBS): Add d-support.o.
10938 * d-lang.h (d_parse_symbol): Add comment, now defined in
10939 d-support.c.
10940 * d-lang.c (parse_call_convention)
10941 (parse_attributes, parse_function_types)
10942 (parse_function_args, parse_type, parse_identifier)
10943 (call_convention_p, d_parse_symbol): Move functions to ...
10944 * d-support.c: ... New file.
10945
ec9f644a
IB
109462014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10947
10948 * d-lang.h (d_parse_symbol): Add declaration.
10949 * d-lang.c (extract_identifiers)
10950 (extract_type_info): Remove functions.
10951 (parse_call_convention, parse_attributes)
10952 (parse_function_types, parse_function_args)
10953 (parse_type, parse_identifier, call_convention_p)
10954 (d_parse_symbol): New functions.
10955 (d_demangle): Use d_parse_symbol to demangle D symbols.
10956
94b1b47e
IB
109572014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10958
10959 * d-lang.h (struct builtin_d_type): New data type.
10960 (builtin_d_type): Add declaration.
10961 * d-lang.c (d_language_arch_info, build_d_types)
10962 (builtin_d_type): New functions.
10963 (enum d_primitive_types): New data type.
10964 (d_language_defn): Change c_language_arch_info to
10965 d_language_arch_info.
10966 (d_type_data): New static variable.
10967 (_initialize_d_language): Initialize d_type_data.
10968
63778547
IB
109692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10970
10971 * d-lang.h (d_main_name): Add declaration.
10972 * d-lang.c (d_main_name): New function.
10973 * symtab.c (find_main_name): Add call to d_main_name.
10974
3271ba66
IB
109752014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10976
10977 * d-lang.c (d_language_defn): Change macro_expansion_c to
10978 macro_expansion_no.
10979
d36b3012
IB
109802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10981
10982 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10983
c90a6fb7
SDJ
109842014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10985
10986 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10987 gdb_exception" declaration.
10988 * remote.c (getpkt_or_notif_sane): Likewise.
10989
749234e5
DE
109902014-01-17 Doug Evans <dje@google.com>
10991
10992 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10993 function, contents of dirnames_to_char_ptr_vec_append moved here.
10994 (delim_string_to_char_ptr_vec): New function.
10995 (dirnames_to_char_ptr_vec_append): Rewrite.
10996 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10997
df049a58
DE
109982014-01-17 Doug Evans <dje@google.com>
10999
11000 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11001 and moved here ...
11002 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11003 #include "common-utils.h".
11004 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11005 * common/vec.h (VEC_ASSERT_PASS): Update.
11006 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11007 (MACH_CHECK_ERROR): Update.
11008
69f97648
SM
110092014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11010
11011 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11012 comments.
11013 * gdbarch.h: Regenerate.
11014
98b1cfdc
TT
110152014-01-16 Tom Tromey <tromey@redhat.com>
11016
11017 * value.c (struct value) <regnum>: Move earlier.
11018
77a19445
TT
110192014-01-16 Tom Tromey <tromey@redhat.com>
11020
11021 * remote.c (extended_remote_create_inferior): Rename from
11022 extended_remote_create_inferior_1. Add "ops" argument. Remove
11023 old implementation.
11024
62261490
PA
110252014-01-16 Pedro Alves <palves@redhat.com>
11026
11027 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11028 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11029 the backchain.
11030
4d65956b
DE
110312014-01-16 Doug Evans <dje@google.com>
11032
11033 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11034
52834460
MM
110352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11036
11037 * btrace.h (btrace_thread_flag): New.
11038 (struct btrace_thread_info) <flags>: New.
11039 * record-btrace.c (record_btrace_resume_thread)
11040 (record_btrace_find_thread_to_move, btrace_step_no_history)
11041 (btrace_step_stopped, record_btrace_start_replaying)
11042 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11043 (record_btrace_find_resume_thread): New.
11044 (record_btrace_resume, record_btrace_wait): Extend.
11045 (record_btrace_can_execute_reverse): New.
11046 (record_btrace_open): Fail in non-stop mode.
11047 (record_btrace_set_replay): Split into this, ...
11048 (record_btrace_stop_replaying): ... this, ...
11049 (record_btrace_clear_histories): ... and this.
11050 (init_record_btrace_ops): Init to_can_execute_reverse.
11051 * NEWS: Announce it.
11052
118e6252
MM
110532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11054
11055 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11056 (forward_target_decr_pc_after_break)
11057 (target_decr_pc_after_break): New.
11058 * target.c (forward_target_decr_pc_after_break)
11059 (target_decr_pc_after_break): New.
11060 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11061 instead of gdbarch_decr_pc_after_break.
11062 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11063 instead of gdbarch_decr_pc_after_break.
11064 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11065 instead of gdbarch_decr_pc_after_break.
11066 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11067 instead of gdbarch_decr_pc_after_break.
11068 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11069 instead of gdbarch_decr_pc_after_break.
11070 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11071 instead of gdbarch_decr_pc_after_break.
11072
6e07b1d2
MM
110732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11074
11075 * btrace.c: Include regcache.h.
11076 (btrace_add_pc): New.
11077 (btrace_enable): Call btrace_add_pc.
11078 (btrace_is_empty): New.
11079 * btrace.h (btrace_is_empty): New.
11080 * record-btrace.c (require_btrace, record_btrace_info): Call
11081 btrace_is_empty.
11082
969c39fb
MM
110832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11084
11085 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11086 Support delta reads.
11087 (linux_disable_btrace): Change return type.
11088 * common/linux-btrace.h (linux_read_btrace): Change parameters
11089 and return type to allow error reporting. Update users.
11090 (linux_disable_btrace): Change return type. Update users.
11091 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11092 New.
11093 (btrace_error): New.
11094 (btrace_block) <begin>: Comment on BEGIN == 0.
11095 * btrace.c (btrace_compute_ftrace): Start from the end of
11096 the current trace.
11097 (btrace_stitch_trace, btrace_clear_history): New.
11098 (btrace_fetch): Read delta trace, return if replaying.
11099 (btrace_clear): Move clear history code to btrace_clear_history.
11100 (parse_xml_btrace): Throw an error if parsing failed.
11101 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11102 and return type to allow error reporting.
11103 (target_read_btrace): Change parameters and return type to allow
11104 error reporting.
11105 * target.c (target_read_btrace): Update.
11106 * remote.c (remote_read_btrace): Support delta reads. Pass
11107 errors on.
11108 * NEWS: Announce it.
11109
0b722aec
MM
111102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11111
11112 * record.h (record_btrace_frame_unwind)
11113 (record_btrace_tailcall_frame_unwind): New declarations.
11114 * dwarf2-frame: Include record.h
11115 (dwarf2_frame_cfa): Throw an error for btrace frames.
11116 * record-btrace.c: Include hashtab.h.
11117 (btrace_get_bfun_name): New.
11118 (btrace_call_history): Call btrace_get_bfun_name.
11119 (struct btrace_frame_cache): New.
11120 (bfcache): New.
11121 (bfcache_hash, bfcache_eq, bfcache_new): New.
11122 (btrace_get_frame_function): New.
11123 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11124 (record_btrace_frame_this_id): Compute own id.
11125 (record_btrace_frame_prev_register): Provide PC, throw_error
11126 for all other registers.
11127 (record_btrace_frame_sniffer): Detect btrace frames.
11128 (record_btrace_tailcall_frame_sniffer): New.
11129 (record_btrace_frame_dealloc_cache): New.
11130 (record_btrace_frame_unwind): Add new functions.
11131 (record_btrace_tailcall_frame_unwind): New.
11132 (_initialize_record_btrace): Allocate cache.
11133 * btrace.c (btrace_clear): Call reinit_frame_cache.
11134 * NEWS: Announce it.
11135
066ce621
MM
111362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11137
11138 * record-btrace.c (record_btrace_set_replay)
11139 (record_btrace_goto_begin, record_btrace_goto_end)
11140 (record_btrace_goto): New.
11141 (init_record_btrace_ops): Initialize them.
11142 * NEWS: Announce it.
11143
e2887aa3
MM
111442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11145
11146 * record-btrace.c (record_btrace_find_new_threads)
11147 (record_btrace_thread_alive): New.
11148 (init_record_btrace_ops): Initialize to_find_new_threads and
11149 to_thread_alive.
11150
b2f4cfde
MM
111512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11152
11153 * record-btrace.c (record_btrace_resume): New.
11154 (record_btrace_wait): New.
11155 (init_record_btrace_ops): Initialize to_wait and to_resume.
11156
633785ff
MM
111572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11158
11159 * record-btrace.c (record_btrace_xfer_partial)
11160 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11161 (record_btrace_allow_memory_access): New.
11162 (init_record_btrace_ops): Initialize new methods.
11163 * target.c (raw_memory_xfer_partial): Bail out if target reports
11164 that this memory is not available.
11165
3db08215
MM
111662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11167
11168 * target.h (target_ops) <to_insert_breakpoint>
11169 <to_remove_breakpoint>: Add target_ops parameter.
11170 (forward_target_insert_breakpoint): New.
11171 (forward_target_remove_breakpoint): New.
11172 (memory_remove_breakpoint, memory_insert_breakpoint):
11173 Add target_ops parameter.
11174 * target.c (target_insert_breakpoint): Split into this and ...
11175 (forward_target_insert_breakpoint): ... this.
11176 (target_remove_breakpoint): Split into this and ...
11177 (forward_target_remove_breakpoint): ... this.
11178 (debug_to_insert_breakpoint): Add target_ops parameter.
11179 Call forward_target_insert_breakpoint.
11180 (debug_to_remove_breakpoint): Add target_ops parameter.
11181 Call forward_target_remove_breakpoint.
11182 (update_current_target): Do not inherit or default to_insert_breakpoint
11183 and to_remove_breakpoint.
11184 * corelow.c (ignore): Add target_ops parameter.
11185 * exec.c (ignore): Add target_ops parameter.
11186 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11187 Add target_ops parameter.
11188 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11189 Add target_ops parameter.
11190 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11191 Add target_ops parameter.
11192 * record-full.c (record_full_beneath_to_insert_breakpoint)
11193 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11194 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11195 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11196 (record_full_core_remove_breakpoint): Add target_ops parameter.
11197 Update users.
11198 (record_full_beneath_to_insert_breakpoint_ops)
11199 (record_full_beneath_to_remove_breakpoint_ops)
11200 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11201 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11202 tmp_to_remove_breakpoint_ops,
11203 record_full_beneath_to_insert_breakpoint_ops, and
11204 record_full_beneath_to_remove_breakpoint_ops.
11205 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11206 (m32r_remove_breakpoint): Add target_ops parameter.
11207 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11208 Add target_ops parameter.
11209 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11210 Add target_ops parameter.
11211
cecac1ab
MM
112122014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11213 Markus Metzger <markus.t.metzger@intel.com>
11214
11215 * record-btrace.c: Include frame-unwind.h.
11216 (record_btrace_frame_unwind_stop_reason)
11217 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11218 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11219 New.
11220 (init_record_btrace_ops): Install it.
11221
824344ca
MM
112222014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11223
11224 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11225 get_prev_frame_1.
11226
32261e52
MM
112272014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11228
11229 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11230 earlier.
11231
ea001bdc
MM
112322014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11233
11234 * frame-unwind.c: Include target.h.
11235 (frame_unwind_try_unwinder): New function with code from ...
11236 (frame_unwind_find_by_frame): ... here. New variable
11237 unwinder_from_target, call also target_get_unwinder)
11238 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11239 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11240 * target.h (struct target_ops): New fields to_get_unwinder and
11241 to_get_tailcall_unwinder.
11242 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11243
1f3ef581
MM
112442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11245
11246 * record-btrace.c (record_btrace_fetch_registers)
11247 (record_btrace_store_registers)
11248 (record_btrace_to_prepare_to_store): New.
11249 (init_record_btrace_ops): Add the above.
11250
f32dbf8c
MM
112512014-01-16 Tom Tromey <tromey@redhat.com>
11252
11253 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11254 * target.h (struct target_ops) <to_prepare_to_store>: Add
11255 argument.
11256 (target_prepare_to_store): Add argument.
11257 * target.c (debug_to_prepare_to_store): Add argument.
11258 (update_current_target): Update.
11259 * remote.c (remote_prepare_to_store): Add 'self' argument.
11260 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11261 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11262 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11263 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11264 argument.
11265 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11266 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11267 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11268 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11269 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11270
07bbe694
MM
112712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11272
11273 * btrace.h (replay) <replay>: New.
11274 (btrace_is_replaying): New.
11275 * btrace.c (btrace_clear): Free replay iterator.
11276 (btrace_is_replaying): New.
11277 * record-btrace.c (record_btrace_is_replaying): New.
11278 (record_btrace_info): Print insn number if replaying.
11279 (record_btrace_insn_history): Start at replay position.
11280 (record_btrace_call_history): Start at replay position.
11281 (init_record_btrace_ops): Init to_record_is_replaying.
11282
0688d04e
MM
112832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11284
11285 * record-btrace.c (record_btrace_insn_history_range): Include
11286 end.
11287 (record_btrace_insn_history_from): Adjust range.
11288 (record_btrace_call_history_range): Include
11289 end.
11290 (record_btrace_call_history_from): Adjust range.
11291 * NEWS: Announce changes.
11292
8710b709
MM
112932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11294
11295 * record.h (enum record_print_flag)
11296 <record_print_indent_calls>: New.
11297 * record.c (get_call_history_modifiers): Recognize /c modifier.
11298 (_initialize_record): Document /c modifier.
11299 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11300 Reorder fields. Optionally indent the function name. Update
11301 all users.
11302 * NEWS: Announce changes.
11303
d0fa7535
MM
113042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11305
11306 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11307
5de9129b
MM
113082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11309
11310 * btrace.c (ftrace_new_function): Start counting at one.
11311 * record-btrace.c (record_btrace_info): Adjust number of calls
11312 and insns.
11313 * NEWS: Announce it.
11314
7acbe133
MM
113152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11316
11317 * record-btrace.c (btrace_call_history_insn_range): Print
11318 insn range as [begin, end].
11319
23a7fe75
MM
113202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11321
11322 * btrace.h (struct btrace_func_link): New.
11323 (enum btrace_function_flag): New.
11324 (struct btrace_inst): Rename to ...
11325 (struct btrace_insn): ...this. Update all users.
11326 (struct btrace_func) <ibegin, iend>: Remove.
11327 (struct btrace_func_link): New.
11328 (struct btrace_func): Rename to ...
11329 (struct btrace_function): ...this. Update all users.
11330 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11331 (number, level, flags>: New.
11332 (struct btrace_insn_iterator): Rename to ...
11333 (struct btrace_insn_history): ...this.
11334 Update all users.
11335 (struct btrace_insn_iterator, btrace_call_iterator): New.
11336 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11337 (struct btrace_target_info) <begin, end, level>
11338 <insn_history, call_history>: New.
11339 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11340 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11341 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11342 (btrace_call_number, btrace_call_begin, btrace_call_end)
11343 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11344 (btrace_find_function_by_number, btrace_set_insn_history)
11345 (btrace_set_call_history): New.
11346 * btrace.c (btrace_init_insn_iterator)
11347 (btrace_init_func_iterator, compute_itrace): Remove.
11348 (ftrace_print_function_name, ftrace_print_filename)
11349 (ftrace_skip_file): Change
11350 parameter to const.
11351 (ftrace_init_func): Remove.
11352 (ftrace_debug): Use new btrace_function fields.
11353 (ftrace_function_switched): Also consider gaining and
11354 losing symbol information).
11355 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11356 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11357 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11358 New.
11359 (ftrace_new_function): Move. Remove debug print.
11360 (ftrace_update_lines, ftrace_update_insns): New.
11361 (ftrace_update_function): Check for call, ret, and jump.
11362 (compute_ftrace): Renamed to ...
11363 (btrace_compute_ftrace): ...this. Rewritten to compute call
11364 stack.
11365 (btrace_fetch, btrace_clear): Updated.
11366 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11367 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11368 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11369 (btrace_call_number, btrace_call_begin, btrace_call_end)
11370 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11371 (btrace_find_function_by_number, btrace_set_insn_history)
11372 (btrace_set_call_history): New.
11373 * record-btrace.c (require_btrace): Use new btrace thread
11374 info fields.
11375 (record_btrace_info, btrace_insn_history)
11376 (record_btrace_insn_history, record_btrace_insn_history_range):
11377 Use new btrace thread info fields and new iterator.
11378 (btrace_func_history_src_line): Rename to ...
11379 (btrace_call_history_src_line): ...this. Use new btrace
11380 thread info fields.
11381 (btrace_func_history): Rename to ...
11382 (btrace_call_history): ...this. Use new btrace thread info
11383 fields and new iterator.
11384 (record_btrace_call_history, record_btrace_call_history_range):
11385 Use new btrace thread info fields and new iterator.
11386
8372a7cb
MM
113872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11388
11389 * frame.h (frame_id_build_unavailable_stack_special): New.
11390 * frame.c (frame_id_build_unavailable_stack_special): New.
11391
c2170eef
MM
113922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11393
11394 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11395 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11396 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11397 to gdbarch.
11398 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11399 (i386_insn_is_jump, i386_jmp_p): New.
11400 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11401 insn_is_jump to gdbarch.
11402 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11403 * gdbarch.h: Regenerated.
11404 * gdbarch.c: Regenerated.
11405 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11406 (default_insn_is_jump): New.
11407 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11408 (default_insn_is_jump): New.
11409
864089d2
MM
114102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11411
11412 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11413 Change to ...
11414 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11415 (btrace_read_type) <btrace_read_new>: Change to ...
11416 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11417
ed9edfb5
MM
114182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11419
11420 * common/linux-btrace.c (linux_read_btrace): Free trace from
11421 previous iteration.
11422
fbcbc3fd
DE
114232014-01-15 Doug Evans <dje@google.com>
11424
11425 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11426 uint32_t.
11427
3d548a53
TT
114282014-01-15 Tom Tromey <tromey@redhat.com>
11429
11430 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11431 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11432 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11433 (set_objfile_main_name): New function.
11434 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11435 language_of_main>: New fields.
11436 (set_objfile_main_name): Declare.
11437 * symtab.c (find_main_name): Loop over objfiles to find the main
11438 name and language.
11439 (set_main_name): Now static.
11440 (get_main_info): Add comment.
11441 * symtab.h (set_main_name): Don't declare.
11442
32ac0d11
TT
114432014-01-15 Tom Tromey <tromey@redhat.com>
11444
11445 * symtab.c (main_progspace_key): New global.
11446 (struct main_info): New.
11447 (name_of_main, language_of_main): Remove.
11448 (get_main_info, main_info_cleanup): New function.
11449 (set_main_name, main_name, main_language): Use get_main_info.
11450 (_initialize_symtab): Initialize main_progspace_key.
11451
9e6c82ad
TT
114522014-01-15 Tom Tromey <tromey@redhat.com>
11453
11454 * dbxread.c (process_one_symbol): Update.
11455 * dwarf2read.c (read_partial_die): Update.
11456 * symfile.c (set_initial_language): Call main_language.
11457 * symtab.c (language_of_main): Now static.
11458 (set_main_name): Add 'lang' parameter.
11459 (find_main_name): Update.
11460 (main_language): New function.
11461 (symtab_observer_executable_changed): Update.
11462 * symtab.h (set_main_name): Update.
11463 (language_of_main): Remove.
11464 (main_language): Declare.
11465
6ef55de7
TT
114662014-01-15 Tom Tromey <tromey@redhat.com>
11467
11468 * symfile.c (init_entry_point_info): Use new "initialized" field.
11469 Update.
11470 * objfiles.h (struct entry_point) <initialized>: New field.
11471 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11472 (struct objfile) <ei>: ...here. Remove.
11473 * objfiles.c (entry_point_address_query): Update.
11474
53eddfa6
TT
114752014-01-15 Tom Tromey <tromey@redhat.com>
11476
11477 * objfiles.c (entry_point_address_query): Relocate entry point
11478 address.
11479 (objfile_relocate1): Do not relocate entry point address.
11480 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11481 <the_bfd_section_index>: New field.
11482 * symfile.c (init_entry_point_info): Find the entry point's
11483 section.
11484
d56e56aa
TT
114852014-01-15 Tom Tromey <tromey@redhat.com>
11486
11487 * solib-frv.c (enable_break): Use entry_point_address_query.
11488
33a97bbe
OJ
114892014-01-15 Omair Javaid <omair.javaid@linaro.org>
11490
11491 * NEWS: Add note on improved process record-replay on
11492 arm*-linux* targets.
11493
c6ec2b30
OJ
114942014-01-15 Omair Javaid <omair.javaid@linaro.org>
11495
11496 * arm-tdep.c (enum arm_record_result): New enum.
11497 (arm_record_unsupported_insn): New function.
11498 (arm_record_coproc_data_proc): Removed.
11499 (thumb2_record_ld_st_multiple): New function.
11500 (thumb2_record_ld_st_dual_ex_tbb): New function.
11501 (thumb2_record_data_proc_sreg_mimm): New function.
11502 (thumb2_record_ps_dest_generic): New function.
11503 (thumb2_record_branch_misc_cntrl): New function.
11504 (thumb2_record_str_single_data): New function.
11505 (thumb2_record_ld_mem_hints): New function.
11506 (thumb2_record_ld_word): New function.
11507 (thumb2_record_lmul_lmla_div): New function.
11508 (thumb2_record_decode_insn_handler): New function.
11509 (decode_insn): Add thumb32 instruction handlers.
11510
97dfe206
OJ
115112014-01-15 Omair Javaid <omair.javaid@linaro.org>
11512
11513 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11514 (struct arm_linux_record_tdep): Declare.
11515 (arm_canonicalize_syscall): New function.
11516 (arm_all_but_pc_registers_record): New function.
11517 (arm_linux_syscall_record): New function.
11518 (arm_linux_init_abi): Add syscall recording constructs.
11519 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11520 decoding. (arm_record_coproc_data_proc): Update arm syscall
11521 decoding.
11522 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11523 <arm_syscall_record>: New field.
11524 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11525 gdb_target_obs.
11526
9904a494
OJ
115272014-01-15 Omair Javaid <omair.javaid@linaro.org>
11528
11529 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11530 register for push instruction recording.
11531
f969241e
OJ
115322014-01-15 Omair Javaid <omair.javaid@linaro.org>
11533
11534 * arm-tdep.c (thumb_record_misc): Update to correct logical
11535 error while recording ldm, ldmia and pop instructions.
11536
bfbbec00
OJ
115372014-01-15 Omair Javaid <omair.javaid@linaro.org>
11538
11539 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11540
e40adcc9
PA
115412014-01-15 Pedro Alves <palves@redhat.com>
11542
11543 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11544 (go32_resume, go32_fetch_registers, store_register)
11545 (go32_store_registers, go32_prepare_to_store)
11546 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11547 (go32_create_inferior, go32_can_run, go32_terminal_init)
11548 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11549 declarations.
11550
b0a16e66
TT
115512014-01-15 Tom Tromey <tromey@redhat.com>
11552
11553 * target.h (async_callback_ftype): New typedef.
11554 (struct target_ops) <to_async>: Use it.
11555
bf7105a4
JB
115562014-01-15 Joel Brobecker <brobecker@adacore.com>
11557
11558 * python/py-value.c (get_field_type): Remove unnecessary curly
11559 braces for single-statement if block.
11560
a8f35c2e
JB
115612014-01-15 Joel Brobecker <brobecker@adacore.com>
11562
11563 * python/py-type.c (convert_field): Add missing empty line
11564 after declarations.
11565
bb4142cf
DE
115662014-01-14 Doug Evans <dje@google.com>
11567
11568 * symfile.h (expand_symtabs_matching): Renamed from
11569 expand_partial_symbol_names. Update prototype.
11570 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11571 * symfile.c (expand_symtabs_matching): Renamed from
11572 expand_partial_symbol_names. New args file_matcher, kind.
11573 Rename arg fun to symbol_matcher.
11574 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11575 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11576 ada_expand_partial_symbol_name.
11577 (ada_make_symbol_completion_list): Update to call
11578 expand_symtabs_matching.
11579 (ada_add_global_exceptions): Call expand_symtabs_matching.
11580 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11581 call map_symbol_filenames.
11582 * symtab.c (sources_info): Update to call map_symbol_filenames.
11583 (search_symbols): Call expand_symtabs_matching.
11584 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11585 (default_make_symbol_completion_list_break_on): Update to call
11586 expand_symtabs_matching.
11587 (make_source_files_completion_list): Update to call
11588 map_symbol_filenames.
11589
206f2a57
DE
115902014-01-14 Doug Evans <dje@google.com>
11591
11592 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11593 (expand_symtabs_symbol_matcher_ftype): New typedef.
11594 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11595 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11596 * symfile.c (expand_partial_symbol_names): Update to use
11597 expand_symtabs_symbol_matcher_ftype.
11598 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11599 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11600 Arg name_matcher renamed to symbol_matcher.
11601 * psymtab.c (recursively_search_psymtabs): Update to use
11602 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11603 sym_matcher.
11604 (expand_symtabs_matching_via_partial): Update to use
11605 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11606 Arg name_matcher renamed to symbol_matcher.
11607
540c2971
DE
116082014-01-14 Doug Evans <dje@google.com>
11609
11610 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11611 (map_partial_symbol_filenames): Ditto.
11612 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11613 (map_partial_symbol_filenames): Ditto.
11614 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11615 (map_partial_symbol_filenames): Ditto.
11616 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11617 (map_partial_symbol_filenames): Ditto.
11618 * symtab.c: Delete #include "psymtab.h".
11619
8213266a
PA
116202014-01-14 Pedro Alves <palves@redhat.com>
11621 Tom Tromey <tromey@redhat.com>
11622
11623 * infrun.c (use_displaced_stepping): Use find_record_target
11624 instead of RECORD_IS_USED.
11625 (adjust_pc_after_break): Use record_full_is_used instead of
11626 RECORD_IS_USED.
11627 * record-btrace.c (record_btrace_open): Call record_preopen
11628 instead of checking RECORD_IS_USED.
11629 * record-full.c (record_full_shortname)
11630 (record_full_core_shortname): New globals.
11631 (record_full_is_used): New function.
11632 (find_full_open): Call record_preopen instead of checking
11633 RECORD_IS_USED.
11634 (init_record_full_ops): Set the target's shortname to
11635 record_full_shortname.
11636 (init_record_full_core_ops): Set the target's shortname to
11637 record_full_core_shortname.
11638 * record-full.h (record_full_is_used): Declare.
11639 * record.c (find_record_target): Make extern.
11640 (record_preopen): New function.
11641 * record.h (RECORD_IS_USED): Delete macro.
11642 (find_record_target, record_preopen): Declare functions.
11643
7ec1862d
YQ
116442014-01-14 Yao Qi <yao@codesourcery.com>
11645
11646 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11647 'len''s type to ULONGEST.
11648 (core_xfer_shared_libraries_aix): Likewise.
11649 * gdbarch.c, gdbarch.h: Regenerated.
11650 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11651 Change type of 'len' to ULONGEST.
11652 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11653 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11654
dea80a27
YQ
116552014-01-14 Yao Qi <yao@codesourcery.com>
11656
11657 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11658 type of 'len' to ULONGEST.
11659 (linux_xfer_osdata_processgroups): Likewise.
11660 (linux_xfer_osdata_threads): Likewise.
11661 (linux_xfer_osdata_fds): Likewise.
11662 (linux_xfer_osdata_isockets): Likewise.
11663 (linux_xfer_osdata_shm): Likewise.
11664 (linux_xfer_osdata_sem): Likewise.
11665 (linux_xfer_osdata_msg): Likewise.
11666 (linux_common_xfer_osdata): Likewise.
11667 (struct osdata_type) <getter>: Likewise.
11668 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11669 the declaration.
11670
b55e14c7
YQ
116712014-01-14 Yao Qi <yao@codesourcery.com>
11672
11673 * target.h (target_xfer_partial_ftype): Update.
11674 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11675 ULONGEST.
11676 * aix-thread.c (aix_thread_xfer_partial): Change type of
11677 argument 'len' to ULONGEST.
11678 * auxv.c (procfs_xfer_auxv): Likewise.
11679 (ld_so_xfer_auxv): Likewise.
11680 (memory_xfer_auxv): Likewise.
11681 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11682 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11683 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11684 * corelow.c (core_xfer_partial): Likewise.
11685 * ctf.c (ctf_xfer_partial): Likewise.
11686 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11687 '%u'.
11688 (darwin_read_dyld_info): Likewise.
11689 (darwin_xfer_partial): Likewise.
11690 * exec.c (section_table_xfer_memory_partial): Likewise.
11691 (exec_xfer_partial): Likewise.
11692 * exec.h (section_table_xfer_memory_partial): Update
11693 declaration.
11694 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11695 instead of plongest.
11696 (gnu_xfer_partial): Likewise.
11697 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11698 (ia64_hpux_xfer_solib_got): Likewise.
11699 (ia64_hpux_xfer_partial): Likewise.
11700 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11701 * inf-ptrace.c (inf_ptrace_xfer_partial):
11702 * inf-ttrace.c (inf_ttrace_xfer_partial):
11703 * linux-nat.c (linux_xfer_siginfo): Likewise.
11704 (linux_nat_xfer_partial): Likewise.
11705 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11706 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11707 * monitor.c (monitor_xfer_memory): Likewise.
11708 (monitor_xfer_partial): Likewise.
11709 * procfs.c (procfs_xfer_partial): Likewise.
11710 * record-full.c (record_full_xfer_partial): Likewise.
11711 (record_full_core_xfer_partial): Likewise.
11712 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11713 instead of plongest.
11714 (gdbsim_xfer_partial): Likewise.
11715 * remote.c (remote_xfer_partial): Likewise.
11716 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11717 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11718 declaration.
11719 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11720 (rs6000_xfer_shared_libraries): Likewise.
11721 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11722 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11723 (sparc_xfer_partial): Likewise.
11724 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11725 (spu_xfer_partial): Likewise.
11726 * spu-multiarch.c (spu_xfer_partial): Likewise.
11727 * target.c (target_read_live_memory): Likewise.
11728 (memory_xfer_live_readonly_partial): Likewise.
11729 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11730 (target_xfer_partial, default_xfer_partial): Likewise.
11731 (current_xfer_partial): Likewise.
11732 * tracepoint.c (tfile_xfer_partial): Likewise.
11733 * windows-nat.c (windows_xfer_memory): Likewise. Call
11734 pulongest instead of plongest.
11735 (windows_xfer_partial): Likewise.
11736 (windows_xfer_shared_libraries): Likewise.
11737
05804640
YQ
117382014-01-14 Yao Qi <yao@codesourcery.com>
11739
11740 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11741 target_xfer_partial_ftype.
11742
b5b08fb4
SC
117432014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11744
11745 PR python/15464
11746 PR python/16113
11747 * valops.c (value_struct_elt_bitpos): New function
11748 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11749 object to 'None' if the field name is an empty string ("").
11750 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11751 attribute to look for a field when 'name' is 'None'.
11752 (get_field_type): New function
11753
13aaf454
DE
117542014-01-13 Doug Evans <dje@google.com>
11755
11756 PR symtab/16426
11757 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11758 (try_open_dwop_file): Ditto.
11759 * gdb_bfd.c: #include "vec.h".
11760 (bfdp): New typedef.
11761 (struct gdb_bfd_data): New member included_bfds.
11762 (gdb_bfd_unref): Unref all included bfds.
11763 (gdb_bfd_record_inclusion): New function.
11764 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11765
c2cec97c
TT
117662014-01-13 Tom Tromey <tromey@redhat.com>
11767
11768 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11769
78e5999d
TT
117702014-01-13 Tom Tromey <tromey@redhat.com>
11771
11772 * defs.h (use_windows): Remove.
11773 * gdb.c (main): Update.
11774 * main.c (captured_main, gdb_main): Update.
11775 * main.h (struct captured_main_args) <use_windows>: Remove.
11776 * top.c (use_windows): Remove.
11777
f2052bbe
TT
117782014-01-13 Tom Tromey <tromey@redhat.com>
11779
11780 * defs.h (deprecated_flush_hook): Remove.
11781
fde4f8ed
JK
117822014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11783
11784 PR threads/16216
11785 * linux-thread-db.c (try_thread_db_load): Add parameter
11786 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11787 (try_thread_db_load_from_pdir_1): Move it there from here.
11788 (try_thread_db_load_from_sdir): Update caller.
11789 (try_thread_db_load_from_dir): Move it there from here.
11790
bdf61915
PP
117912014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11792
11793 * regformats/regdat.sh: Always rewrite the register file.
11794
f71e1a8d
PA
117952014-01-13 Pedro Alves <palves@redhat.com>
11796
11797 * Makefile.in (CHECK_HEADERS): New variable.
11798 (check-headers:): New rule.
11799
42c85435
TT
118002014-01-13 Tom Tromey <tromey@redhat.com>
11801
11802 * cli/cli-setshow.c (do_set_command): Update.
11803 * defs.h (deprecated_set_hook): Remove.
11804 * top.c (deprecated_set_hook): Remove.
11805
f8de5129
PA
118062014-01-13 Pedro Alves <palves@redhat.com>
11807
11808 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11809 the tracepoint if the PC is a pseudo-register.
11810
fc270c35
TT
118112014-01-13 Tom Tromey <tromey@redhat.com>
11812
11813 * defs.h (XCALLOC): Remove.
11814 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11815 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11816 * dwarf2loc.c (allocate_piece_closure): Likewise.
11817 * elfread.c (elf_symfile_segments): Likewise.
11818 (elf_symfile_segments): Likewise.
11819 * gdbtypes.c (copy_type_recursive): Likewise.
11820 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11821 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11822 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11823 XCALLOC.
11824 * mt-tdep.c (mt_gdbarch_init): Likewise.
11825 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11826 XCALLOC.
11827 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11828 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11829 * registry.c (registry_alloc_data): Likewise.
11830 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11831 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11832 * serial.c (serial_fdopen_ops): Likewise.
11833 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11834 XCALLOC.
11835 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11836 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11837 not XCALLOC.
11838
70ba0933
TT
118392014-01-13 Tom Tromey <tromey@redhat.com>
11840
11841 * defs.h (XMALLOC): Remove.
11842 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11843 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11844 * cli-out.c (struct ui_out *): Likewise.
11845 * cli/cli-dump.c (add_dump_command): Likewise.
11846 (add_dump_command): Likewise.
11847 * complaints.c (get_complaints): Likewise.
11848 (find_complaint): Likewise.
11849 * dwarf2-frame.c (execute_cfa_program): Likewise.
11850 * dwarf2read.c (abbrev_table_read_table): Likewise.
11851 * gdbarch.sh: Likewise.
11852 * gdbarch.c: Rebuild.
11853 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11854 * interps.c (interp_new): Likewise.
11855 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11856 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11857 * mi/mi-console.c (mi_console_file_new): Likewise.
11858 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11859 * mi/mi-out.c (mi_out_new): Likewise.
11860 * mi/mi-parse.c (mi_parse): Likewise.
11861 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11862 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11863 * observer.c (xalloc_observer_list_node): Likewise.
11864 * regcache.c (regcache_xmalloc_1): Likewise.
11865 * reggroups.c (reggroup_new): Likewise.
11866 (_initialize_reggroup): Likewise.
11867 * registry.c (register_data_with_cleanup): Likewise.
11868 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11869 * ser-base.c (serial_ttystate): Likewise.
11870 * ser-mingw.c (make_pipe_state): Likewise.
11871 * ser-pipe.c (pipe_open): Likewise.
11872 * serial.c (serial_open): Likewise.
11873 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11874 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11875 (tui_alloc_win_info): Likewise.
11876 (tui_add_content_elements): Likewise.
11877 * tui/tui-file.c (tui_file_new): Likewise.
11878 * tui/tui-out.c (tui_out_new): Likewise.
11879 * ui-file.c (mem_file_new): Likewise.
11880 * ui-out.c (push_level): Likewise.
11881 (make_cleanup_ui_out_end): Likewise.
11882 (append_header_to_list): Likewise.
11883 (ui_out_new): Likewise.
11884 * user-regs.c (user_reg_add_builtin): Likewise.
11885
41bf6aca
TT
118862014-01-13 Tom Tromey <tromey@redhat.com>
11887
11888 * defs.h (XZALLOC): Remove.
11889 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11890 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11891 (get_ada_tasks_inferior_data): Likewise.
11892 * auto-load.c (get_auto_load_pspace_data): Likewise.
11893 * auxv.c (get_auxv_inferior_data): Likewise.
11894 * bfd-target.c (target_bfd_reopen): Likewise.
11895 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11896 (deprecated_insert_raw_breakpoint): Likewise.
11897 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11898 * corelow.c (core_open): Likewise.
11899 * darwin-nat.c (darwin_check_new_threads): Likewise.
11900 (darwin_attach_pid): Likewise.
11901 * dummy-frame.c (dummy_frame_push): Likewise.
11902 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11903 * dwarf2loc.c (allocate_piece_closure): Likewise.
11904 * elfread.c (elf_symfile_segments): Likewise.
11905 * eval.c (ptrmath_type_p): Likewise.
11906 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11907 * gdbtypes.c (alloc_type_arch): Likewise.
11908 (alloc_type_instance): Likewise.
11909 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11910 * inf-child.c (inf_child_can_use_agent): Likewise.
11911 * inflow.c (get_inflow_inferior_data): Likewise.
11912 * infrun.c (save_infcall_suspend_state): Likewise.
11913 * jit.c (jit_reader_load): Likewise.
11914 (get_jit_objfile_data): Likewise.
11915 (get_jit_program_space_data): Likewise.
11916 (jit_object_open_impl): Likewise.
11917 (jit_symtab_open_impl): Likewise.
11918 (jit_block_open_impl): Likewise.
11919 (jit_frame_sniffer): Likewise.
11920 * linux-fork.c (add_fork): Likewise.
11921 * maint.c (make_command_stats_cleanup): Likewise.
11922 * objfiles.c (get_objfile_pspace_data): Likewise.
11923 * opencl-lang.c (struct lval_closure): Likewise.
11924 * osdata.c (osdata_start_osdata): Likewise.
11925 * progspace.c (new_address_space): Likewise.
11926 (add_program_space): Likewise.
11927 * remote-sim.c (get_sim_inferior_data): Likewise.
11928 * sh-tdep.c (sh_gdbarch_init): Likewise.
11929 * skip.c (Ignore): Likewise.
11930 (skip_delete_command): Likewise.
11931 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11932 (library_list_start_library): Likewise.
11933 (solib_aix_current_sos): Likewise.
11934 * solib-darwin.c (get_darwin_info): Likewise.
11935 (darwin_current_sos): Likewise.
11936 * solib-dsbt.c (get_dsbt_info): Likewise.
11937 * solib-ia64-hpux.c (new_so_list): Likewise.
11938 (ia64_hpux_get_solib_linkage_addr): Likewise.
11939 * solib-spu.c (append_ocl_sos): Likewise.
11940 (spu_current_sos): Likewise.
11941 * solib-svr4.c (get_svr4_info): Likewise.
11942 (svr4_keep_data_in_core): Likewise.
11943 (library_list_start_library): Likewise.
11944 (svr4_default_sos): Likewise.
11945 (svr4_read_so_list): Likewise.
11946 * solib-target.c (library_list_start_library): Likewise.
11947 (solib_target_current_sos): Likewise.
11948 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11949 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11950 * symfile.c (default_symfile_segments): Likewise.
11951 * target-descriptions.c (tdesc_data_init): Likewise.
11952 (tdesc_create_reg): Likewise.
11953 (struct tdesc_type *): Likewise.
11954 (tdesc_create_vector): Likewise.
11955 (tdesc_set_struct_size): Likewise.
11956 (struct tdesc_type *): Likewise.
11957 (tdesc_free_feature): Likewise.
11958 (tdesc_create_feature): Likewise.
11959 * windows-nat.c (windows_add_thread): Likewise.
11960 (windows_make_so): Likewise.
11961 * xml-support.c (gdb_xml_body_text): Likewise.
11962 (gdb_xml_create_parser_and_cleanup): Likewise.
11963 (xml_process_xincludes): Likewise.
11964 * xml-syscall.c (allocate_syscalls_info): Likewise.
11965 (syscall_create_syscall_desc): Likewise.
11966
5acfdbae
SDJ
119672014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11968
11969 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11970 function, with code from i386_stap_parse_special_token.
11971 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11972 (i386_stap_parse_special_token): Move code to the two functions
11973 above; simplify it.
11974
0000e5cc
PA
119752014-01-09 Pedro Alves <palves@redhat.com>
11976 Hui Zhu <hui@codesourcery.com>
11977
11978 PR gdb/16101
11979 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11980 bp_err_string. Don't mark the location shlib_disabled if the
11981 error thrown wasn't a generic or memory error. Catch errors
11982 thrown while inserting breakpoints in overlayed code. Output
11983 error message of software breakpoints.
11984 * remote.c (remote_insert_breakpoint): If this breakpoint has
11985 target-side commands but this stub doesn't support Z0 packets,
11986 throw NOT_SUPPORTED_ERROR error.
11987 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11988 * target.h (target_insert_breakpoint): Extend comment.
11989 (target_insert_hw_breakpoint): Add comment.
11990
b7ea362b
PA
119912014-01-08 Pedro Alves <palves@redhat.com>
11992
11993 * remote.c (remote_add_thread): Add threads silently if starting
11994 up.
11995 (remote_notice_new_inferior): If in all-stop, and starting up,
11996 don't call notice_new_inferior.
11997 (get_current_thread): New function, factored out from ...
11998 (add_current_inferior_and_thread): ... this. Adjust.
11999 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12000 found any thread, then select the remote's current thread as GDB's
12001 current thread too.
12002
b7bba001
JB
120032014-01-08 Joel Brobecker <brobecker@adacore.com>
12004
12005 * NEWS: Create a new section for the next release branch.
12006 Rename the section of the current branch, now that it has
12007 been cut.
12008
16dfbded
JB
120092014-01-08 Joel Brobecker <brobecker@adacore.com>
12010
12011 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12012 * version.in: Bump version to 7.7.50.DATE-cvs.
12013
22c90ac1
YQ
120142014-01-08 Yao Qi <yao@codesourcery.com>
12015
12016 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12017 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12018 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12019
d64ad97c
YQ
120202014-01-08 Yao Qi <yao@codesourcery.com>
12021
12022 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12023 return value of bfd_get_filename to symbol_file_add_from_bfd.
12024
f93ba80c
PM
120252014-01-08 Pierre Muller <muller@sourceware.org>
12026
12027 Fix PR16201.
12028 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12029 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12030 to prim_record_mininal_symbol_and_info.
12031 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12032 in call to prim_record_minimal_symbol_and_info.
12033 (read_pe_exported_syms): Set index field of section_data.
12034
a4d9ba85
AP
120352014-01-07 Andrew Pinski <apinski@cavium.com>
12036
12037 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12038 * features/aarch64.c: Regenerate.
12039
1b67eb02
AS
120402014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12041
12042 * target.c (return_null): Define.
12043 (update_current_target): Use it instead of return_zero for
12044 functions that return a pointer.
12045
5e3f4fab
EBM
120462014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12047
12048 * source.c (add_path): Fix check for duplicated paths in the previously
12049 included paths.
12050
e2616788
HK
120512014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12052
12053 * ada-lang.c: Remove duplicated include statements.
12054 * alphabsd-nat.c: Ditto.
12055 * amd64-darwin-tdep.c: Ditto.
12056 * amd64fbsd-nat.c: Ditto.
12057 * auto-load.c: Ditto.
12058 * ax-gdb.c: Ditto.
12059 * breakpoint.c: Ditto.
12060 * dbxread.c: Ditto.
12061 * fork-child.c: Ditto.
12062 * gdb_usleep.c: Ditto.
12063 * i386-darwin-tdep.c: Ditto.
12064 * i386fbsd-nat.c: Ditto.
12065 * infcmd.c: Ditto.
12066 * inferior.c: Ditto.
12067 * jv-lang.c: Ditto.
12068 * linux-nat.c: Ditto.
12069 * linux-tdep.c: Ditto.
12070 * m68kbsd-nat.c: Ditto.
12071 * m68klinux-nat.c: Ditto.
12072 * microblaze-tdep.c: Ditto.
12073 * mips-linux-tdep.c: Ditto.
12074 * mn10300-tdep.c: Ditto.
12075 * nto-tdep.c: Ditto.
12076 * opencl-lang.c: Ditto.
12077 * osdata.c: Ditto.
12078 * printcmd.c: Ditto.
12079 * regcache.c: Ditto.
12080 * remote-m32r-sdi.c: Ditto.
12081 * remote.c: Ditto.
12082 * symfile.c: Ditto.
12083 * symtab.c: Ditto.
12084 * tilegx-linux-nat.c: Ditto.
12085 * tilegx-tdep.c: Ditto.
12086 * tracepoint.c: Ditto.
12087 * valops.c: Ditto.
12088 * vaxbsd-nat.c: Ditto.
12089 * windows-nat.c: Ditto.
12090 * xtensa-tdep.c: Ditto.
12091
bd1f7788
YQ
120922014-01-07 Yao Qi <yao@codesourcery.com>
12093
12094 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12095
79301218
JB
120962014-01-07 Yao Qi <yao@codesourcery.com>
12097 Joel Brobecker <brobecker@adacore.com>
12098
12099 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12100 (pdc_write_regs): Likewise.
12101 (fetch_regs_kernel_thread): Likewise.
12102 (store_regs_kernel_thread): Likewise.
12103
121042014-01-07 Joel Brobecker <brobecker@adacore.com>
12105
12106 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12107 tagged type objects to their actual type.
12108
8e355c5d
JB
121092014-01-07 Joel Brobecker <brobecker@adacore.com>
12110
12111 * ada-valprint.c (print_field_values): Add "language" parameter.
12112 Update calls to print_field_values and print_variant_part.
12113 Pass new parameter "language" in call to val_print instead
12114 of "current_language". Replace call to ada_val_print by call
12115 to val_print.
12116 (print_variant_part): Add "language" parameter.
12117 (ada_val_print_struct_union): Update call to print_field_values.
12118
4fbf5aa5
JB
121192014-01-07 Joel Brobecker <brobecker@adacore.com>
12120
12121 * ada-valprint.c (ui_memcpy): Delete.
12122 (ada_print_floating): Update documentation. Add empty line
12123 between between function documentation and implementation.
12124 Delete variable "buffer". Use ui_file_xstrdup in place of
12125 ui_file_put. Minor adjustments following this change.
12126
71855601
JB
121272014-01-07 Joel Brobecker <brobecker@adacore.com>
12128
12129 * ada-valprint.c (ada_val_print_string): New function,
12130 extracted from ada_val_print_array.
12131 (ada_val_print_array): Replace extracted code by call
12132 to ada_val_print_string followed by a return. Move
12133 "else" branch to the function's top block.
12134
4eb27a30
JB
121352014-01-07 Joel Brobecker <brobecker@adacore.com>
12136
12137 * ada-valprint.c (ada_val_print_array): Move implementation
12138 down. Rename parameter "offset" and "val" into "offset_aligned"
12139 and "original_value" respectively. Add parameter "offset".
12140
34b27950
JB
121412014-01-07 Joel Brobecker <brobecker@adacore.com>
12142
12143 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12144 re-organizing the code. Change the "???" message printed
12145 when target type is a TYPE_CODE_UNDEF into
12146 "<ref to undefined type>".
12147
079e4591
JB
121482014-01-07 Joel Brobecker <brobecker@adacore.com>
12149
12150 * ada-valprint.c (print_record): Delete, implementation inlined...
12151 (ada_val_print_struct_union): ... here. Remove call to
12152 ada_check_typedef in inlined implementation.
12153
8004dfd1
JB
121542014-01-07 Joel Brobecker <brobecker@adacore.com>
12155
12156 * ada-valprint.c (ada_val_print_gnat_array): New function,
12157 extracted from ada_val_print_1;
12158 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12159 (ada_val_print_flt, ada_val_print_struct_union)
12160 (ada_val_print_ref): Likewise.
12161 (ada_val_print_1): Delete variables i and elttype.
12162 Replace extracted-out code by call to corresponding
12163 new functions.
12164
760a2db0
JB
121652014-01-07 Joel Brobecker <brobecker@adacore.com>
12166
12167 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12168
3a92c861
JB
121692014-01-07 Joel Brobecker <brobecker@adacore.com>
12170
12171 * ada-valprint.c (ada_val_print_1): Replace calls to
12172 ada_val_print_1 by calls to val_print.
12173
cd1630f9
JB
121742014-01-07 Joel Brobecker <brobecker@adacore.com>
12175
12176 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12177 Update calls to self accordingly. Replace calls to c_val_print
12178 by calls to val_print.
12179
bdf779a0
JB
121802014-01-07 Joel Brobecker <brobecker@adacore.com>
12181
12182 * ada-valprint.c (print_record): Delete declaration.
12183 (adjust_type_signedness, ada_val_print_1): Likewise.
12184 (ada_val_print): Move function implementation down.
12185 (print_variant_part, print_field_values, print_record):
12186 Move function implementation up.
12187
c0d48811
JB
121882014-01-07 Joel Brobecker <brobecker@adacore.com>
12189
12190 * python/py-type.c (typy_get_name): New function.
12191 (type_object_getset): Add entry for attribute "name".
12192 * NEWS: Add entry mentioning this new attribute.
12193
c26e9cbb
YQ
121942014-01-07 Yao Qi <yao@codesourcery.com>
12195
12196 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12197 statement.
12198
0cc6f43d
YQ
121992014-01-07 Yao Qi <yao@codesourcery.com>
12200
12201 * gnu-nat.c (info_port_rights): Add qualifier const to
12202 argument args.
12203
eec03155
YQ
122042014-01-07 Yao Qi <yao@codesourcery.com>
12205
12206 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12207
f04a82ef
YQ
122082014-01-07 Yao Qi <yao@codesourcery.com>
12209
12210 * gnu-nat.c (make_inf) Update declaration.
12211 (make_inf): Make it static.
12212 (inf_set_traced): Likewise.
12213 (inf_port_to_thread, inf_task_died_status): Likewise.
12214
d57dda0a
YQ
122152014-01-07 Yao Qi <yao@codesourcery.com>
12216
12217 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12218
3aa8c969
YQ
122192014-01-07 Yao Qi <yao@codesourcery.com>
12220
12221 * gnu-nat.c (_initialize_gnu_nat): Declare.
12222
94123b4f
YQ
122232014-01-07 Yao Qi <yao@codesourcery.com>
12224
12225 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12226 'enum bfd_endian'.
12227 (struct gdbarch_info) <byte_order>: Change type to
12228 'enum bfd_endian'.
12229 <byte_order_for_code>: Likewise.
12230 * gdbarch.c, gdbarch.h: Regenerated.
12231
dc81d70a
TT
122322014-01-06 Sasha Smundak <asmundak@google.com>
12233
12234 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12235
cc2f3c35
TT
122362014-01-06 Tom Tromey <tromey@redhat.com>
12237
12238 * doublest.c (convert_doublest_to_floatformat): Use const, not
12239 CONST.
12240 * somread.c (som_symtab_read): Likewise.
12241
adcf2eed
HZ
122422014-01-07 Hui Zhu <hui@codesourcery.com>
12243
12244 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12245 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12246 (gdb_bfd_fopen): Ditto.
12247 (gdb_bfd_openr): Ditto.
12248 (gdb_bfd_openw): Ditto.
12249 (gdb_bfd_openr_iovec): Ditto.
12250 (gdb_bfd_fdopenr): Ditto.
12251 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12252 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12253 with xstrdup.
12254 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12255 with xstrdup.
12256 * symfile-mem.c (symbol_file_add_from_memory): Removed
12257 gdb_bfd_stash_filename.
12258
50722198
DE
122592014-01-03 Doug Evans <dje@google.com>
12260
12261 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12262 output.
12263
2fa4b862
JB
122642014-01-01 Joel Brobecker <brobecker@adacore.com>
12265
12266 Update year range in copyright notice of all files.
12267
28498c42
JB
122682014-01-01 Joel Brobecker <brobecker@adacore.com>
12269
12270 * top.c (print_gdb_version): Set copyright year to 2014.
12271
7b6e1046
JB
122722014-01-01 Joel Brobecker <brobecker@adacore.com>
12273
12274 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12275
df96af55 12276For older changes see ChangeLog-2013.
c906108c
SS
12277\f
12278Local Variables:
12279mode: change-log
12280left-margin: 8
12281fill-column: 74
12282version-control: never
57da7796 12283coding: utf-8
c906108c 12284End:
This page took 2.220002 seconds and 4 git commands to generate.