Delete redundant struct cie field
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
22fd09ae
JK
12014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4 (linux_make_corefile_notes): call update_thread_list, protected against
5 exceptions.
6
656e8868
PA
72014-08-21 Pedro Alves <palves@redhat.com>
8
9 * infcmd.c (attach_command): Remove comment.
10
de589d04
WN
112014-08-21 Bin Cheng <bin.cheng@arm.com>
12
13 * aarch64-linux-nat.c (dr_changed_t): Change the type from
14 unsigned LONGEST to ULONGEST.
15
2a31c623
PA
162014-08-20 Pedro Alves <palves@redhat.com>
17
18 * Makefile.in (check-read1): New rule.
19
d36430db
JB
202014-08-20 Joel Brobecker <brobecker@adacore.com>
21
22 * value.c (value_from_contents_and_address): Strip resolved_type's
23 typedef layers before checking its TYPE_DATA_LOCATION.
24
000339af
PA
252014-08-20 Pedro Alves <palves@redhat.com>
26
27 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
28
5f52445b
YQ
292014-08-20 Yao Qi <yao@codesourcery.com>
30
31 * amd64-tdep.c (amd64_classify): Add a blank line after the
32 example. Move "*/" to a new line.
33 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
34 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
35 * dwarf2read.c (psymtab_include_file_name): Likewise.
36
9a0dc9e3
PA
372014-08-19 Andrew Burgess <aburgess@broadcom.com>
38 Pedro Alves <palves@redhat.com>
39
40 PR symtab/14604
41 PR symtab/14605
42 * ada-lang.c (coerce_unspec_val_to_type): Use
43 value_contents_copy_raw.
44 * ada-valprint.c (val_print_packed_array_elements): Adjust.
45 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
46 * cp-valprint.c (cp_print_value_fields): Let the common printing
47 code handle optimized out values.
48 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
49 * d-valprint.c (dynamic_array_type): Use
50 value_bits_any_optimized_out.
51 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
52 check_any_valid fields.
53 (check_pieced_value_bits): Delete and inline ...
54 (check_pieced_synthetic_pointer): ... here.
55 (check_pieced_value_validity): Delete.
56 (check_pieced_value_invalid): Delete.
57 (pieced_value_funcs): Remove check_validity and check_any_valid
58 fields.
59 (read_pieced_value): Use mark_value_bits_optimized_out.
60 (write_pieced_value): Switch to use
61 mark_value_bytes_optimized_out.
62 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
63 of assuming the whole value is optimized out.
64 * findvar.c (read_frame_register_value): Remove special handling
65 of optimized out registers.
66 (value_from_register): Use mark_value_bytes_optimized_out.
67 * frame-unwind.c (frame_unwind_got_optimized): Use
68 mark_value_bytes_optimized_out.
69 * jv-valprint.c (java_value_print): Adjust.
70 (java_print_value_fields): Let the common printing code handle
71 optimized out values.
72 * mips-tdep.c (mips_print_register): Remove special handling of
73 optimized out registers.
74 * opencl-lang.c (lval_func_check_validity): Delete.
75 (lval_func_check_any_valid): Delete.
76 (opencl_value_funcs): Remove check_validity and check_any_valid
77 fields.
78 * p-valprint.c (pascal_object_print_value_fields): Let the common
79 printing code handle optimized out values.
80 * stack.c (read_frame_arg): Remove special handling of optimized
81 out values. Fetch both VAL and ENTRYVAL before comparing
82 contents. Adjust to value_available_contents_eq rename.
83 * valprint.c (valprint_check_validity)
84 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
85 (val_print_array_elements): Adjust.
86 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
87 (value_bits_any_optimized_out): New function.
88 (value_entirely_covered_by_range_vector): New function, factored
89 out from value_entirely_unavailable.
90 (value_entirely_unavailable): Reimplement.
91 (value_entirely_optimized_out): New function.
92 (insert_into_bit_range_vector): New function, factored out from
93 mark_value_bits_unavailable.
94 (mark_value_bits_unavailable): Reimplement.
95 (struct ranges_and_idx): New struct.
96 (find_first_range_overlap_and_match): New function, factored out
97 from value_available_contents_bits_eq.
98 (value_available_contents_bits_eq): Rename to ...
99 (value_contents_bits_eq): ... this. Check both unavailable
100 contents and optimized out contents.
101 (value_available_contents_eq): Rename to ...
102 (value_contents_eq): ... this.
103 (allocate_value_lazy): Remove reference to the old optimized_out
104 boolean.
105 (allocate_optimized_out_value): Use
106 mark_value_bytes_optimized_out.
107 (require_not_optimized_out): Adjust to check whether the
108 optimized_out vec is empty.
109 (ranges_copy_adjusted): New function, factored out from
110 value_contents_copy_raw.
111 (value_contents_copy_raw): Also copy the optimized out ranges.
112 Assert the destination ranges aren't optimized out.
113 (value_contents_copy): Update comment, remove call to
114 require_not_optimized_out.
115 (value_contents_equal): Adjust to check whether the optimized_out
116 vec is empty.
117 (set_value_optimized_out, value_optimized_out_const): Delete.
118 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
119 New functions.
120 (value_entirely_optimized_out, value_bits_valid): Delete.
121 (value_copy): Take a VEC copy of the 'optimized_out' field.
122 (value_primitive_field): Remove special handling of optimized out.
123 (value_fetch_lazy): Assert that lazy values have no unavailable
124 regions. Use value_bits_any_optimized_out. Remove some special
125 handling for optimized out values.
126 * value.h: Add intro comment about <optimized out> and
127 <unavailable>.
128 (struct lval_funcs): Remove check_validity and check_any_valid
129 fields.
130 (set_value_optimized_out, value_optimized_out_const): Remove.
131 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
132 New declarations.
133 (value_bits_any_optimized_out): New declaration.
134 (value_bits_valid): Delete declaration.
135 (value_available_contents_eq): Rename to ...
136 (value_contents_eq): ... this, and extend comments.
137
6694c411
JK
1382014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
139
140 Fix -fsanitize=address on unreadable inferior strings.
141 * valprint.c (val_print_string): Fix access before BUFFER.
142
89a1c21a
SM
1432014-08-19 Simon Marchi <simon.marchi@ericsson.com>
144
145 * target.c (target_struct_size): Remove.
146 (target_struct_allocsize): Remove.
147 (DEFAULT_ALLOCSIZE): Remove.
148 (target_ops_p): New typedef.
149 (DEF_VEC_P (target_ops_p)): New vector type.
150 (target_structs): Change type to VEC (target_ops_p).
151 (add_target_with_completer): Replace "push" code by VEC_safe_push.
152 (find_default_run_target): Rewrite for loop following changes to
153 target_structs.
154
cb417230
JB
1552014-08-19 Joel Brobecker <brobecker@adacore.com>
156
157 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
158 Adjust code accordingly. Adjust function description comment.
159
817e0957
YQ
1602014-08-19 Yao Qi <yao@codesourcery.com>
161
162 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
163 types.
164
2974be62
AM
1652014-08-19 Alan Modra <amodra@gmail.com>
166
167 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
168 * config.in: Regenerate.
169 * configure: Regenerate.
170
34abf635
GB
1712014-08-19 Tom Tromey <tromey@redhat.com>
172 Gary Benson <gbenson@redhat.com>
173
174 * common/common-debug.h: New file.
175 * common/common-debug.c: Likewise.
176 * debug.c: Likewise.
177 * Makefile.in (SFILES): Add common/common-debug.c.
178 (HFILES_NO_SRCDIR): Add common/common-debug.h.
179 (COMMON_OBS): Add common-debug.o and debug.o.
180 (common-debug.o): New rule.
181 * common/common-defs.h: Include common-debug.h.
182 * common/agent.c (debug_agent_printf): New function.
183 (DEBUG_AGENT): Redefine.
184 * nat/i386-dregs.c (debug_printf): Undefine.
185
f6e94d78
GB
1862014-08-19 Gary Benson <gbenson@redhat.com>
187
188 * common/common-defs.h: Include print-utils.h.
189 * utils.h: Do not include print-utils.h.
190
9239eeab
GB
1912014-08-19 Tom Tromey <tromey@redhat.com>
192 Gary Benson <gbenson@redhat.com>
193
194 * common/common-types.h: New file.
195 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
196 * common/common-defs.h: Include common-types.h.
197 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
198 (ULONGEST): Remove.
199
ef87c8bb
GB
2002014-08-19 Tom Tromey <tromey@redhat.com>
201 Gary Benson <gbenson@redhat.com>
202
203 * common/errors.h: New file.
204 * common/errors.c: Likewise.
205 * Makefile.in (SFILES): Add common/errors.c.
206 (HFILES_NO_SRCDIR): Add common/errors.h.
207 (COMMON_OBS): Add errors.o.
208 (errors.o): New rule.
209 * common/common-defs.h: Include errors.h.
210 * utils.h (perror_with_name, error, verror, warning, vwarning):
211 Don't declare.
212 * common/common-utils.h: (malloc_failure, internal_error):
213 Likewise.
214
196a707b
GB
2152014-08-19 Gary Benson <gbenson@redhat.com>
216
217 * utils.c (internal_vproblem): Always print the message.
218
ded4fc8f
DE
2192014-08-18 Doug Evans <dje@google.com>
220
221 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
222
950c97d8
JB
2232014-08-18 Joel Brobecker <brobecker@adacore.com>
224
225 * ada-typeprint.c (type_is_full_subrange_of_target_type):
226 Return 0 if TYPE is dynamic.
227 (print_range): Add handling of dynamic ranges.
228
3cdcd0ce
JB
2292014-08-18 Keven Boell <keven.boell@intel.com>
230 Joel Brobecker <brobecker@adacore.com>
231
232 * gdbtypes.h (struct main_type): Add field "data_location".
233 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
234 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
235 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
236 a dynamic data location.
237 (resolve_dynamic_type): Add DW_AT_data_location handling.
238 (copy_recursive, copy_type): Copy the data_location information
239 when present.
240 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
241 * value.c (value_from_contents_and_address): Add
242 DW_AT_data_location handling.
243
08412b07
JB
2442014-08-18 Keven Boell <keven.boell@intel.com>
245 Joel Brobecker <brobecker@adacore.com>
246
247 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
248 field "get_object_address".
249 * dwarf2expr.c (execute_stack_op): Add handling for
250 DW_OP_push_object_address.
251 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
252 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
253 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
254 (dwarf_expr_get_obj_addr): New function.
255 (dwarf_expr_ctx_funcs): Add get_object_address field.
256 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
257 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
258 (dwarf2_evaluate_property): Add parameter "address". Use it.
259 (needs_get_obj_addr): New function.
260 (needs_frame_ctx_funcs): Add get_object_address field.
261 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
262 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
263 (resolve_dynamic_array): Likewise.
264
84754697
JB
2652014-08-18 Joel Brobecker <brobecker@adacore.com>
266
267 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
268 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
269 fixed value for records and unions for which some GNAT encodings
270 are present.
271
da5c522f
JB
2722014-08-18 Joel Brobecker <brobecker@adacore.com>
273
274 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
275 rewrite to avoid "else if" and "else" constructs. Should be
276 a no-op in practice.
277
0d72a7c3
JB
2782014-08-18 Joel Brobecker <brobecker@adacore.com>
279
280 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
281 of lexical block.
282
e66d4446
SC
2832014-08-15 Siva Chandra Reddy <sivachandra@google.com>
284
285 PR c++/17132
286 * eval.c: Update all calls to find_overload_match.
287 * valarith.c: Likewise.
288 (value_user_defined_cpp_op, value_user_defined_op): New
289 argument NOSIDE. Update all callers.
290 * valops.c (find_overload_match): New argument NOSIDE.
291 * value.h (find_overload_match): Update signature.
292
940df408
SC
2932014-08-15 Siva Chandra Reddy <sivachandra@google.com>
294
295 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
296 'items' methods instead of 'iteritems' method on dictionaries.
297
699ca60a
DE
2982014-08-15 Doug Evans <dje@google.com>
299
300 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
301 closer to use.
302
37780ee5
DE
3032014-08-15 Doug Evans <dje@google.com>
304
305 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
306
0ad93d4f
DE
3072014-08-15 Doug Evans <dje@google.com>
308
309 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
310
20d8c372
DE
3112014-08-15 Doug Evans <dje@google.com>
312
313 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
314 unused.
315
cb039ba4
EZ
3162014-08-15 Eli Zaretskii <eliz@gnu.org>
317
318 * dcache.h: Include target.h, to avoid compile time warnings.
319
eb7a547a
JB
3202014-08-15 Joel Brobecker <brobecker@adacore.com>
321
322 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
323 frame_info" partial declaration.
324 * gdbarch.h: Regenerate.
325
783cecc8
YQ
3262014-08-15 Yao Qi <yao@codesourcery.com>
327
328 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
329 Add parameter 'decode_for_pst_p'. Callers update.
330
65c749e7
YQ
3312014-08-13 Yao Qi <yao@codesourcery.com>
332
333 PR build/17104
334 * configure.ac: Use local variable 'pos'.
335 * configure: Regenerated.
336
d769e349
DE
3372014-08-11 Doug Evans <dje@google.com>
338
339 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
340 message, it is redundant with "Reading symbols from ..." message.
341
24f1235e
DE
3422014-08-10 Doug Evans <xdje42@gmail.com>
343
344 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
345
dcd2e6ef
YQ
3462014-08-09 Yao Qi <yao@codesourcery.com>
347
348 PR remote/9053
349 * remote.c (remote_xfer_partial): Remove dead code.
350
070bdf0b
AA
3512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
352
353 * ia64-linux-tdep.c: Include "regset.h".
354 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
355 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
356 (ia64_linux_supply_fpregset): New function.
357 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
358 (ia64_linux_regset_from_core_section): New function.
359 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
360 method.
361
08f9f542
AA
3622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
363
364 * m68klinux-tdep.c: Include "regset.h".
365 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
366 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
367 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
368 (m68k_linux_regset_from_core_section): New function.
369 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
370 method.
371
8f1cee41
AA
3722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
373
374 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
375 function. Move logic to...
376 (tilegx_linux_regmap): ... this new register map.
377 (tilegx_linux_regset): Refer to register map, replace supply
378 method by regcache_supply_regset, and add collect method.
379 * tilegx-tdep.h (enum tilegx_regnum): New enum value
380 TILEGX_FIRST_EASY_REGNUM.
381
c5741217
AA
3822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
383
384 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
385 that calls regcache_supply_regset and handles the EPC register
386 separately. Move main logic to...
387 (score7_linux_gregmap): ... this new register map.
388 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
389 (score7_linux_gregset): Refer to register map. Add collect method.
390 (score7_linux_regset_from_core_section): Replace
391 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
392 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
393 (struct regset): Delete unused forward declaraction.
394 (struct pt_regs): Delete structure definition.
395 (elf_gregset_t): Delete typedef.
396
81580573
AA
3972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
398
399 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
400 (nios2_core_regset): Add collect method.
401
ba199d7d
AA
4022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
403
404 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
405 platform-independent and don't write to read-only input buffer.
406 (m32r_linux_collect_gregset): New function.
407 (m32r_linux_gregset): Add collect method.
408
0006a9da
AA
4092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
410
411 * hppa-linux-tdep.c (greg_map): Rename to...
412 (hppa_linux_gregmap): ... this. Also convert to
413 regcache_map_entry format.
414 (hppa_linux_supply_regset): Delete function.
415 (hppa_linux_supply_fpregset): Delete function. Move logic to...
416 (hppa_linux_fpregmap): ... this new register map.
417 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
418 register map, replace supply method by regcache_supply_regset, and
419 add collect method regcache_collect_regset.
420
901e1b23
AA
4212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
422
423 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
424 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
425 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
426 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
427 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
428 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
429 (frv_linux_supply_gregset): Replace main logic by call to
430 regcache_supply_regset, but keep clearing gr32-gr63.
431 (frv_linux_supply_fpregset): Delete function.
432 (frv_linux_gregset): Refer to appropriate register map and add
433 regcache_collect_regset as the collect method.
434 (frv_linux_fpregset): Likewise. Also exchange the supply method
435 by regcache_supply_regset.
436
1d6e7555
AA
4372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
438
439 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
440 by call to alpha_supply_int_regs.
441 (alpha_linux_collect_gregset): New function.
442 (alpha_linux_supply_fpregset): Replace logic by call to
443 alpha_supply_fp_regs.
444 (alpha_linux_collect_fpregset): New function.
445 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
446
d4d793bf
AA
4472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
448
449 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
450 by call to regcache_collect_regset.
451 (supply_gregset, supply_fpregset): Call regcache_supply_regset
452 instead of aarch64_linux_supply_gregset/_fpregset.
453 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
454 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
455 header file instead.
456 (aarch64_linux_supply_gregset, supply_gregset_from_core)
457 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
458 functions. Move logic to ...
459 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
460 register maps.
461 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
462 refer to new register maps, replace *_regset_from_core by
463 regcache_supply_regset, and also use regcache_collect_regset.
464 * aarch64-linux-tdep.h: Include "regset.h".
465 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
466 Delete prototypes.
467 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
468 macros, moved from C source file.
469 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
470 variable declarations.
471
99b7da5d
AA
4722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
473
474 * s390-linux-nat.c: Include "regset.h".
475 (regmap_gregset): Delete macro.
476 (s390_64_regmap_gregset): New register map for
477 regcache_supply/_collect_regset.
478 (s390_64_gregset): New regset.
479 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
480 (regmap_fpregset): Delete macro.
481 (s390_native_supply, s390_native_collect): Delete functions.
482 (supply_gregset, fill_gregset): Replace s390-specific regmap
483 handling by a call to regcache_supply/_collect_regset.
484 (supply_fpregset, fill_fpregset): Call regcache_supply/
485 _collect_regset instead of s390_native_supply/_collect.
486 (fetch_regset, store_regset): Likewise. Also change the last
487 parameter to a regset instead of a regmap.
488 (s390_linux_fetch_inferior_registers)
489 (390_linux_store_inferior_registers): Adjust last parameter in
490 calls to fetch_regset and store_regset.
491 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
492 (s390_gregmap): ... this. Also make static const and convert to
493 regcache_map_entry format.
494 (s390x_regmap_gregset): Delete.
495 (s390_regmap_fpregset): Rename to...
496 (s390_fpregmap): ... this. Make static const and convert to
497 regcache_map_entry format.
498 (s390_regmap_upper, s390_regmap_last_break)
499 (s390x_regmap_last_break, s390_regmap_system_call)
500 (s390_regmap_tdb): Likewise.
501 (s390_supply_regset, s390_collect_regset): Remove functions.
502 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
503 s390_supply_regset.
504 (s390_gregset, s390_fpregset, s390_upper_regset)
505 (s390_last_break_regset, s390x_last_break_regset)
506 (s390_system_call_regset, s390_tdb_regset): Make global and
507 replace s390_supply/_collect_regset by regcache_supply/
508 _collect_regset.
509 (s390x_gregset): Delete.
510 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
511 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
512 (s390_regmap_fpregset, s390_regmap_last_break)
513 (s390x_regmap_last_break, s390_regmap_system_call)
514 (s390_regmap_tdb): Delete global variable declarations.
515 (s390_gregset, s390_fpregset, s390_last_break_regset)
516 (s390x_last_break_regset, s390_system_call_regset)
517 (s390_tdb_regset): New global variable declarations.
518
0b309272
AA
5192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
520
521 * regcache.c: Include "regset.h".
522 (regcache_transfer_regset): New local function.
523 (regcache_supply_regset, regcache_collect_regset): New functions.
524 * regcache.h (struct regcache_map_entry): New structure.
525 (REGCACHE_MAP_SKIP): New enum value.
526 (regcache_supply_regset, regcache_collect_regset): New prototypes.
527
7fefa8d7
AA
5282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
529
530 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
531 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
532 (ppc_linux_collect_gregset ): Likewise.
533 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
534 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
535 (ppc_collect_vrregset): Likewise.
536 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
537 Likewise.
538
96c4f946
YQ
5392014-08-07 Yao Qi <yao@codesourcery.com>
540
541 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
542 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
543 * remote.c (remote_read_bytes): Likewise.
544
fffbe6a8
YQ
5452014-08-07 Yao Qi <yao@codesourcery.com>
546
547 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
548
5ee8a82c
YQ
5492014-08-07 Yao Qi <yao@codesourcery.com>
550
551 PR remote/17230
552 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
553 TARGET_XFER_OK instead of 0.
554
bb974a24
GB
5552014-08-07 Gary Benson <gbenson@redhat.com>
556
557 * common/common-defs.h: Include errno.h.
558 * defs.h: Do not include errno.h.
559 * ada-typeprint.c: Likewise.
560 * c-typeprint.c: Likewise.
561 * core-regset.c: Likewise.
562 * corefile.c: Likewise.
563 * corelow.c: Likewise.
564 * event-loop.c: Likewise.
565 * f-typeprint.c: Likewise.
566 * gnu-nat.c: Likewise.
567 * go32-nat.c: Likewise.
568 * i386gnu-nat.c: Likewise.
569 * m2-typeprint.c: Likewise.
570 * nat/linux-btrace.c: Likewise.
571 * p-typeprint.c: Likewise.
572 * procfs.c: Likewise.
573 * remote-sim.c: Likewise.
574 * rs6000-nat.c: Likewise.
575 * target.c: Likewise.
576 * typeprint.c: Likewise.
577 * ui-file.c: Likewise.
578 * valops.c: Likewise.
579 * valprint.c: Likewise.
580
6d3d12eb
GB
5812014-08-07 Gary Benson <gbenson@redhat.com>
582
583 * common/common-defs.h: Include string.h.
584 * aarch64-tdep.c: Do not include string.h.
585 * ada-exp.y: Likewise.
586 * ada-lang.c: Likewise.
587 * ada-lex.l: Likewise.
588 * ada-typeprint.c: Likewise.
589 * ada-valprint.c: Likewise.
590 * aix-thread.c: Likewise.
591 * alpha-linux-tdep.c: Likewise.
592 * alpha-mdebug-tdep.c: Likewise.
593 * alpha-nat.c: Likewise.
594 * alpha-osf1-tdep.c: Likewise.
595 * alpha-tdep.c: Likewise.
596 * alphanbsd-tdep.c: Likewise.
597 * amd64-dicos-tdep.c: Likewise.
598 * amd64-linux-tdep.c: Likewise.
599 * amd64-nat.c: Likewise.
600 * amd64-sol2-tdep.c: Likewise.
601 * amd64fbsd-tdep.c: Likewise.
602 * amd64obsd-tdep.c: Likewise.
603 * arch-utils.c: Likewise.
604 * arm-linux-nat.c: Likewise.
605 * arm-linux-tdep.c: Likewise.
606 * arm-tdep.c: Likewise.
607 * arm-wince-tdep.c: Likewise.
608 * armbsd-tdep.c: Likewise.
609 * armnbsd-nat.c: Likewise.
610 * armnbsd-tdep.c: Likewise.
611 * armobsd-tdep.c: Likewise.
612 * avr-tdep.c: Likewise.
613 * ax-gdb.c: Likewise.
614 * ax-general.c: Likewise.
615 * bcache.c: Likewise.
616 * bfin-tdep.c: Likewise.
617 * breakpoint.c: Likewise.
618 * build-id.c: Likewise.
619 * buildsym.c: Likewise.
620 * c-exp.y: Likewise.
621 * c-lang.c: Likewise.
622 * c-typeprint.c: Likewise.
623 * c-valprint.c: Likewise.
624 * charset.c: Likewise.
625 * cli-out.c: Likewise.
626 * cli/cli-cmds.c: Likewise.
627 * cli/cli-decode.c: Likewise.
628 * cli/cli-dump.c: Likewise.
629 * cli/cli-interp.c: Likewise.
630 * cli/cli-logging.c: Likewise.
631 * cli/cli-script.c: Likewise.
632 * cli/cli-setshow.c: Likewise.
633 * cli/cli-utils.c: Likewise.
634 * coffread.c: Likewise.
635 * common/agent.c: Likewise.
636 * common/buffer.c: Likewise.
637 * common/buffer.h: Likewise.
638 * common/common-utils.c: Likewise.
639 * common/filestuff.c: Likewise.
640 * common/filestuff.c: Likewise.
641 * common/format.c: Likewise.
642 * common/print-utils.c: Likewise.
643 * common/rsp-low.c: Likewise.
644 * common/signals.c: Likewise.
645 * common/vec.h: Likewise.
646 * common/xml-utils.c: Likewise.
647 * core-regset.c: Likewise.
648 * corefile.c: Likewise.
649 * corelow.c: Likewise.
650 * cp-abi.c: Likewise.
651 * cp-name-parser.y: Likewise.
652 * cp-support.c: Likewise.
653 * cp-valprint.c: Likewise.
654 * cris-tdep.c: Likewise.
655 * d-exp.y: Likewise.
656 * darwin-nat.c: Likewise.
657 * dbxread.c: Likewise.
658 * dcache.c: Likewise.
659 * demangle.c: Likewise.
660 * dicos-tdep.c: Likewise.
661 * disasm.c: Likewise.
662 * doublest.c: Likewise.
663 * dsrec.c: Likewise.
664 * dummy-frame.c: Likewise.
665 * dwarf2-frame.c: Likewise.
666 * dwarf2loc.c: Likewise.
667 * dwarf2read.c: Likewise.
668 * elfread.c: Likewise.
669 * environ.c: Likewise.
670 * eval.c: Likewise.
671 * event-loop.c: Likewise.
672 * exceptions.c: Likewise.
673 * exec.c: Likewise.
674 * expprint.c: Likewise.
675 * f-exp.y: Likewise.
676 * f-lang.c: Likewise.
677 * f-typeprint.c: Likewise.
678 * f-valprint.c: Likewise.
679 * fbsd-nat.c: Likewise.
680 * findcmd.c: Likewise.
681 * findvar.c: Likewise.
682 * fork-child.c: Likewise.
683 * frame.c: Likewise.
684 * frv-linux-tdep.c: Likewise.
685 * frv-tdep.c: Likewise.
686 * gdb.c: Likewise.
687 * gdb_bfd.c: Likewise.
688 * gdbarch.c: Likewise.
689 * gdbarch.sh: Likewise.
690 * gdbtypes.c: Likewise.
691 * gnu-nat.c: Likewise.
692 * gnu-v2-abi.c: Likewise.
693 * gnu-v3-abi.c: Likewise.
694 * go-exp.y: Likewise.
695 * go-lang.c: Likewise.
696 * go32-nat.c: Likewise.
697 * guile/guile.c: Likewise.
698 * guile/scm-auto-load.c: Likewise.
699 * hppa-hpux-tdep.c: Likewise.
700 * hppa-linux-nat.c: Likewise.
701 * hppanbsd-tdep.c: Likewise.
702 * hppaobsd-tdep.c: Likewise.
703 * i386-cygwin-tdep.c: Likewise.
704 * i386-dicos-tdep.c: Likewise.
705 * i386-linux-tdep.c: Likewise.
706 * i386-nto-tdep.c: Likewise.
707 * i386-sol2-tdep.c: Likewise.
708 * i386-tdep.c: Likewise.
709 * i386bsd-tdep.c: Likewise.
710 * i386gnu-nat.c: Likewise.
711 * i386nbsd-tdep.c: Likewise.
712 * i386obsd-tdep.c: Likewise.
713 * i387-tdep.c: Likewise.
714 * ia64-libunwind-tdep.c: Likewise.
715 * ia64-linux-nat.c: Likewise.
716 * inf-child.c: Likewise.
717 * inf-ptrace.c: Likewise.
718 * inf-ttrace.c: Likewise.
719 * infcall.c: Likewise.
720 * infcmd.c: Likewise.
721 * inflow.c: Likewise.
722 * infrun.c: Likewise.
723 * interps.c: Likewise.
724 * iq2000-tdep.c: Likewise.
725 * irix5-nat.c: Likewise.
726 * jv-exp.y: Likewise.
727 * jv-lang.c: Likewise.
728 * jv-typeprint.c: Likewise.
729 * jv-valprint.c: Likewise.
730 * language.c: Likewise.
731 * linux-fork.c: Likewise.
732 * linux-nat.c: Likewise.
733 * lm32-tdep.c: Likewise.
734 * m2-exp.y: Likewise.
735 * m2-typeprint.c: Likewise.
736 * m32c-tdep.c: Likewise.
737 * m32r-linux-nat.c: Likewise.
738 * m32r-linux-tdep.c: Likewise.
739 * m32r-rom.c: Likewise.
740 * m32r-tdep.c: Likewise.
741 * m68hc11-tdep.c: Likewise.
742 * m68k-tdep.c: Likewise.
743 * m68kbsd-tdep.c: Likewise.
744 * m68klinux-nat.c: Likewise.
745 * m68klinux-tdep.c: Likewise.
746 * m88k-tdep.c: Likewise.
747 * machoread.c: Likewise.
748 * macrocmd.c: Likewise.
749 * main.c: Likewise.
750 * mdebugread.c: Likewise.
751 * mem-break.c: Likewise.
752 * memattr.c: Likewise.
753 * memory-map.c: Likewise.
754 * mep-tdep.c: Likewise.
755 * mi/mi-cmd-break.c: Likewise.
756 * mi/mi-cmd-disas.c: Likewise.
757 * mi/mi-cmd-env.c: Likewise.
758 * mi/mi-cmd-stack.c: Likewise.
759 * mi/mi-cmd-var.c: Likewise.
760 * mi/mi-cmds.c: Likewise.
761 * mi/mi-console.c: Likewise.
762 * mi/mi-getopt.c: Likewise.
763 * mi/mi-interp.c: Likewise.
764 * mi/mi-main.c: Likewise.
765 * mi/mi-parse.c: Likewise.
766 * microblaze-rom.c: Likewise.
767 * microblaze-tdep.c: Likewise.
768 * mingw-hdep.c: Likewise.
769 * minidebug.c: Likewise.
770 * minsyms.c: Likewise.
771 * mips-irix-tdep.c: Likewise.
772 * mips-linux-tdep.c: Likewise.
773 * mips-tdep.c: Likewise.
774 * mips64obsd-tdep.c: Likewise.
775 * mipsnbsd-tdep.c: Likewise.
776 * mipsread.c: Likewise.
777 * mn10300-linux-tdep.c: Likewise.
778 * mn10300-tdep.c: Likewise.
779 * monitor.c: Likewise.
780 * moxie-tdep.c: Likewise.
781 * mt-tdep.c: Likewise.
782 * nat/linux-btrace.c: Likewise.
783 * nat/linux-osdata.c: Likewise.
784 * nat/linux-procfs.c: Likewise.
785 * nat/linux-ptrace.c: Likewise.
786 * nat/linux-waitpid.c: Likewise.
787 * nbsd-tdep.c: Likewise.
788 * nios2-linux-tdep.c: Likewise.
789 * nto-procfs.c: Likewise.
790 * nto-tdep.c: Likewise.
791 * objc-lang.c: Likewise.
792 * objfiles.c: Likewise.
793 * opencl-lang.c: Likewise.
794 * osabi.c: Likewise.
795 * osdata.c: Likewise.
796 * p-exp.y: Likewise.
797 * p-lang.c: Likewise.
798 * p-typeprint.c: Likewise.
799 * parse.c: Likewise.
800 * posix-hdep.c: Likewise.
801 * ppc-linux-nat.c: Likewise.
802 * ppc-sysv-tdep.c: Likewise.
803 * ppcfbsd-tdep.c: Likewise.
804 * ppcnbsd-tdep.c: Likewise.
805 * ppcobsd-tdep.c: Likewise.
806 * printcmd.c: Likewise.
807 * procfs.c: Likewise.
808 * prologue-value.c: Likewise.
809 * python/py-auto-load.c: Likewise.
810 * python/py-gdb-readline.c: Likewise.
811 * ravenscar-thread.c: Likewise.
812 * regcache.c: Likewise.
813 * registry.c: Likewise.
814 * remote-fileio.c: Likewise.
815 * remote-m32r-sdi.c: Likewise.
816 * remote-mips.c: Likewise.
817 * remote-notif.c: Likewise.
818 * remote-sim.c: Likewise.
819 * remote.c: Likewise.
820 * reverse.c: Likewise.
821 * rs6000-aix-tdep.c: Likewise.
822 * ser-base.c: Likewise.
823 * ser-go32.c: Likewise.
824 * ser-mingw.c: Likewise.
825 * ser-pipe.c: Likewise.
826 * ser-tcp.c: Likewise.
827 * ser-unix.c: Likewise.
828 * serial.c: Likewise.
829 * sh-tdep.c: Likewise.
830 * sh64-tdep.c: Likewise.
831 * shnbsd-tdep.c: Likewise.
832 * skip.c: Likewise.
833 * sol-thread.c: Likewise.
834 * solib-dsbt.c: Likewise.
835 * solib-frv.c: Likewise.
836 * solib-osf.c: Likewise.
837 * solib-som.c: Likewise.
838 * solib-spu.c: Likewise.
839 * solib-target.c: Likewise.
840 * solib.c: Likewise.
841 * somread.c: Likewise.
842 * source.c: Likewise.
843 * sparc-nat.c: Likewise.
844 * sparc-sol2-tdep.c: Likewise.
845 * sparc-tdep.c: Likewise.
846 * sparc64-tdep.c: Likewise.
847 * sparc64fbsd-tdep.c: Likewise.
848 * sparc64nbsd-tdep.c: Likewise.
849 * sparcnbsd-tdep.c: Likewise.
850 * spu-linux-nat.c: Likewise.
851 * spu-multiarch.c: Likewise.
852 * spu-tdep.c: Likewise.
853 * stabsread.c: Likewise.
854 * stack.c: Likewise.
855 * std-regs.c: Likewise.
856 * symfile.c: Likewise.
857 * symmisc.c: Likewise.
858 * symtab.c: Likewise.
859 * target.c: Likewise.
860 * thread.c: Likewise.
861 * tilegx-linux-nat.c: Likewise.
862 * tilegx-tdep.c: Likewise.
863 * top.c: Likewise.
864 * tracepoint.c: Likewise.
865 * tui/tui-command.c: Likewise.
866 * tui/tui-data.c: Likewise.
867 * tui/tui-disasm.c: Likewise.
868 * tui/tui-file.c: Likewise.
869 * tui/tui-layout.c: Likewise.
870 * tui/tui-out.c: Likewise.
871 * tui/tui-regs.c: Likewise.
872 * tui/tui-source.c: Likewise.
873 * tui/tui-stack.c: Likewise.
874 * tui/tui-win.c: Likewise.
875 * tui/tui-windata.c: Likewise.
876 * tui/tui-winsource.c: Likewise.
877 * typeprint.c: Likewise.
878 * ui-file.c: Likewise.
879 * ui-out.c: Likewise.
880 * user-regs.c: Likewise.
881 * utils.c: Likewise.
882 * v850-tdep.c: Likewise.
883 * valarith.c: Likewise.
884 * valops.c: Likewise.
885 * valprint.c: Likewise.
886 * value.c: Likewise.
887 * varobj.c: Likewise.
888 * vax-tdep.c: Likewise.
889 * vaxnbsd-tdep.c: Likewise.
890 * vaxobsd-tdep.c: Likewise.
891 * windows-nat.c: Likewise.
892 * xcoffread.c: Likewise.
893 * xml-support.c: Likewise.
894 * xstormy16-tdep.c: Likewise.
895 * xtensa-linux-nat.c: Likewise.
896
dccbb609
GB
8972014-08-07 Gary Benson <gbenson@redhat.com>
898
899 * common/common-defs.h: Include gdb_assert.h.
900 * aarch64-tdep.c: Do not include gdb_assert.h.
901 * addrmap.c: Likewise.
902 * aix-thread.c: Likewise.
903 * alpha-linux-tdep.c: Likewise.
904 * alpha-mdebug-tdep.c: Likewise.
905 * alphanbsd-tdep.c: Likewise.
906 * amd64-nat.c: Likewise.
907 * amd64-tdep.c: Likewise.
908 * amd64bsd-nat.c: Likewise.
909 * amd64fbsd-nat.c: Likewise.
910 * amd64fbsd-tdep.c: Likewise.
911 * amd64nbsd-nat.c: Likewise.
912 * amd64nbsd-tdep.c: Likewise.
913 * amd64obsd-nat.c: Likewise.
914 * amd64obsd-tdep.c: Likewise.
915 * arch-utils.c: Likewise.
916 * arm-tdep.c: Likewise.
917 * armbsd-tdep.c: Likewise.
918 * auxv.c: Likewise.
919 * bcache.c: Likewise.
920 * bfin-tdep.c: Likewise.
921 * blockframe.c: Likewise.
922 * breakpoint.c: Likewise.
923 * bsd-kvm.c: Likewise.
924 * bsd-uthread.c: Likewise.
925 * buildsym.c: Likewise.
926 * c-exp.y: Likewise.
927 * c-lang.c: Likewise.
928 * charset.c: Likewise.
929 * cleanups.c: Likewise.
930 * cli-out.c: Likewise.
931 * cli/cli-decode.c: Likewise.
932 * cli/cli-dump.c: Likewise.
933 * cli/cli-logging.c: Likewise.
934 * cli/cli-script.c: Likewise.
935 * cli/cli-utils.c: Likewise.
936 * coffread.c: Likewise.
937 * common/common-utils.c: Likewise.
938 * common/queue.h: Likewise.
939 * common/signals.c: Likewise.
940 * common/vec.h: Likewise.
941 * complaints.c: Likewise.
942 * completer.c: Likewise.
943 * corelow.c: Likewise.
944 * cp-abi.c: Likewise.
945 * cp-name-parser.y: Likewise.
946 * cp-namespace.c: Likewise.
947 * cp-support.c: Likewise.
948 * cris-tdep.c: Likewise.
949 * dbxread.c: Likewise.
950 * dictionary.c: Likewise.
951 * doublest.c: Likewise.
952 * dsrec.c: Likewise.
953 * dummy-frame.c: Likewise.
954 * dwarf2-frame-tailcall.c: Likewise.
955 * dwarf2-frame.c: Likewise.
956 * dwarf2expr.c: Likewise.
957 * dwarf2loc.c: Likewise.
958 * dwarf2read.c: Likewise.
959 * eval.c: Likewise.
960 * event-loop.c: Likewise.
961 * exceptions.c: Likewise.
962 * expprint.c: Likewise.
963 * f-valprint.c: Likewise.
964 * fbsd-nat.c: Likewise.
965 * findvar.c: Likewise.
966 * frame-unwind.c: Likewise.
967 * frame.c: Likewise.
968 * frv-tdep.c: Likewise.
969 * gcore.c: Likewise.
970 * gdb-dlfcn.c: Likewise.
971 * gdb_bfd.c: Likewise.
972 * gdbarch.c: Likewise.
973 * gdbarch.sh: Likewise.
974 * gdbtypes.c: Likewise.
975 * gnu-nat.c: Likewise.
976 * gnu-v3-abi.c: Likewise.
977 * go-lang.c: Likewise.
978 * guile/scm-exception.c: Likewise.
979 * guile/scm-gsmob.c: Likewise.
980 * guile/scm-lazy-string.c: Likewise.
981 * guile/scm-math.c: Likewise.
982 * guile/scm-pretty-print.c: Likewise.
983 * guile/scm-safe-call.c: Likewise.
984 * guile/scm-utils.c: Likewise.
985 * guile/scm-value.c: Likewise.
986 * h8300-tdep.c: Likewise.
987 * hppa-hpux-nat.c: Likewise.
988 * hppa-tdep.c: Likewise.
989 * hppanbsd-tdep.c: Likewise.
990 * hppaobsd-tdep.c: Likewise.
991 * i386-darwin-nat.c: Likewise.
992 * i386-darwin-tdep.c: Likewise.
993 * i386-nto-tdep.c: Likewise.
994 * i386-tdep.c: Likewise.
995 * i386bsd-nat.c: Likewise.
996 * i386fbsd-tdep.c: Likewise.
997 * i386gnu-nat.c: Likewise.
998 * i386nbsd-tdep.c: Likewise.
999 * i386obsd-tdep.c: Likewise.
1000 * i387-tdep.c: Likewise.
1001 * ia64-libunwind-tdep.c: Likewise.
1002 * ia64-tdep.c: Likewise.
1003 * inf-ptrace.c: Likewise.
1004 * inf-ttrace.c: Likewise.
1005 * infcall.c: Likewise.
1006 * infcmd.c: Likewise.
1007 * infrun.c: Likewise.
1008 * inline-frame.c: Likewise.
1009 * interps.c: Likewise.
1010 * jv-lang.c: Likewise.
1011 * jv-typeprint.c: Likewise.
1012 * linux-fork.c: Likewise.
1013 * linux-nat.c: Likewise.
1014 * linux-thread-db.c: Likewise.
1015 * m32c-tdep.c: Likewise.
1016 * m32r-linux-nat.c: Likewise.
1017 * m32r-tdep.c: Likewise.
1018 * m68k-tdep.c: Likewise.
1019 * m68kbsd-nat.c: Likewise.
1020 * m68kbsd-tdep.c: Likewise.
1021 * m88k-tdep.c: Likewise.
1022 * machoread.c: Likewise.
1023 * macroexp.c: Likewise.
1024 * macrotab.c: Likewise.
1025 * maint.c: Likewise.
1026 * mdebugread.c: Likewise.
1027 * memory-map.c: Likewise.
1028 * mep-tdep.c: Likewise.
1029 * mi/mi-common.c: Likewise.
1030 * microblaze-tdep.c: Likewise.
1031 * mingw-hdep.c: Likewise.
1032 * mips-linux-nat.c: Likewise.
1033 * mips-linux-tdep.c: Likewise.
1034 * mips-tdep.c: Likewise.
1035 * mips64obsd-tdep.c: Likewise.
1036 * mipsnbsd-tdep.c: Likewise.
1037 * mn10300-linux-tdep.c: Likewise.
1038 * mn10300-tdep.c: Likewise.
1039 * moxie-tdep.c: Likewise.
1040 * mt-tdep.c: Likewise.
1041 * nat/linux-btrace.c: Likewise.
1042 * nat/linux-osdata.c: Likewise.
1043 * nat/linux-ptrace.c: Likewise.
1044 * nat/mips-linux-watch.c: Likewise.
1045 * nios2-linux-tdep.c: Likewise.
1046 * nios2-tdep.c: Likewise.
1047 * objc-lang.c: Likewise.
1048 * objfiles.c: Likewise.
1049 * obsd-nat.c: Likewise.
1050 * opencl-lang.c: Likewise.
1051 * osabi.c: Likewise.
1052 * parse.c: Likewise.
1053 * ppc-linux-nat.c: Likewise.
1054 * ppc-sysv-tdep.c: Likewise.
1055 * ppcfbsd-nat.c: Likewise.
1056 * ppcfbsd-tdep.c: Likewise.
1057 * ppcnbsd-nat.c: Likewise.
1058 * ppcnbsd-tdep.c: Likewise.
1059 * ppcobsd-nat.c: Likewise.
1060 * ppcobsd-tdep.c: Likewise.
1061 * printcmd.c: Likewise.
1062 * procfs.c: Likewise.
1063 * prologue-value.c: Likewise.
1064 * psymtab.c: Likewise.
1065 * python/py-lazy-string.c: Likewise.
1066 * python/py-value.c: Likewise.
1067 * regcache.c: Likewise.
1068 * reggroups.c: Likewise.
1069 * registry.c: Likewise.
1070 * remote-sim.c: Likewise.
1071 * remote.c: Likewise.
1072 * rs6000-aix-tdep.c: Likewise.
1073 * rs6000-tdep.c: Likewise.
1074 * s390-linux-tdep.c: Likewise.
1075 * score-tdep.c: Likewise.
1076 * ser-base.c: Likewise.
1077 * ser-mingw.c: Likewise.
1078 * sh-tdep.c: Likewise.
1079 * sh64-tdep.c: Likewise.
1080 * solib-darwin.c: Likewise.
1081 * solib-spu.c: Likewise.
1082 * solib-svr4.c: Likewise.
1083 * source.c: Likewise.
1084 * sparc-nat.c: Likewise.
1085 * sparc-sol2-tdep.c: Likewise.
1086 * sparc-tdep.c: Likewise.
1087 * sparc64-sol2-tdep.c: Likewise.
1088 * sparc64-tdep.c: Likewise.
1089 * sparc64fbsd-tdep.c: Likewise.
1090 * sparc64nbsd-tdep.c: Likewise.
1091 * sparc64obsd-tdep.c: Likewise.
1092 * sparcnbsd-tdep.c: Likewise.
1093 * sparcobsd-tdep.c: Likewise.
1094 * spu-multiarch.c: Likewise.
1095 * spu-tdep.c: Likewise.
1096 * stabsread.c: Likewise.
1097 * stack.c: Likewise.
1098 * symfile.c: Likewise.
1099 * symtab.c: Likewise.
1100 * target-descriptions.c: Likewise.
1101 * target-memory.c: Likewise.
1102 * target.c: Likewise.
1103 * tic6x-linux-tdep.c: Likewise.
1104 * tic6x-tdep.c: Likewise.
1105 * tilegx-linux-nat.c: Likewise.
1106 * tilegx-tdep.c: Likewise.
1107 * top.c: Likewise.
1108 * tramp-frame.c: Likewise.
1109 * tui/tui-out.c: Likewise.
1110 * tui/tui-winsource.c: Likewise.
1111 * ui-out.c: Likewise.
1112 * user-regs.c: Likewise.
1113 * utils.c: Likewise.
1114 * v850-tdep.c: Likewise.
1115 * valops.c: Likewise.
1116 * value.c: Likewise.
1117 * varobj.c: Likewise.
1118 * vax-nat.c: Likewise.
1119 * xml-syscall.c: Likewise.
1120 * xml-tdesc.c: Likewise.
1121 * xstormy16-tdep.c: Likewise.
1122 * xtensa-linux-nat.c: Likewise.
1123 * xtensa-tdep.c: Likewise.
1124
e76df0d0
GB
11252014-08-07 Gary Benson <gbenson@redhat.com>
1126
1127 * common/common-defs.h: Include common-utils.h.
1128 * defs.h: Do not include common-utils.h.
1129 * common/gdb_assert.h: Likewise.
1130 * darwin-nat.h: Likewise.
1131 * nat/linux-btrace.c: Likewise.
1132 * target/waitstatus.h: Likewise.
1133
4cb9c816
GB
11342014-08-07 Gary Benson <gbenson@redhat.com>
1135
1136 * common/common-defs.h: Include ptid.h.
1137 * defs.h: Do not include ptid.h.
1138 * inferior.h: Likewise.
1139 * infrun.h: Likewise.
1140 * nat/linux-btrace.h: Likewise.
1141 * nat/linux-osdata.h: Likewise.
1142 * target/waitstatus.h: Likewise.
1143
3995eeee
GB
11442014-08-07 Gary Benson <gbenson@redhat.com>
1145
1146 * common/common-defs.h: Include gdb_locale.h.
1147 * defs.h: Do not include gdb_locale.h.
1148
cb9f1a9b
GB
11492014-08-07 Gary Benson <gbenson@redhat.com>
1150
1151 * common/common-defs.h: Include gdb/signals.h.
1152 * defs.h: Do not include gdb/signals.h.
1153
a5fceff8
GB
11542014-08-07 Gary Benson <gbenson@redhat.com>
1155
1156 * common/common-defs.h: Include pathmax.h.
1157 * defs.h: Do not include pathmax.h.
1158
b9391142
GB
11592014-08-07 Gary Benson <gbenson@redhat.com>
1160
1161 * common/common-defs.h: Include libiberty.h.
1162 * defs.h: Do not include libiberty.h.
1163 * common/queue.h: Likewise.
1164 * cp-name-parser.y: Likewise.
1165 * mi/mi-cmd-catch.c: Likewise.
1166 * python/python.c: Likewise.
1167
0e443c87
GB
11682014-08-07 Gary Benson <gbenson@redhat.com>
1169
1170 * common/common-defs.h: Include ansidecl.h.
1171 * defs.h: Do not include ansidecl.h.
1172 * common/buffer.h: Likewise.
1173 * common/common-utils.h: Likewise.
1174
8ebb3f56
GB
11752014-08-07 Gary Benson <gbenson@redhat.com>
1176
1177 * common/common-defs.h: Include stddef.h.
1178 * defs.h: Do not include stddef.h.
1179 * common/common-utils.h: Likewise.
1180 * amd64fbsd-nat.c: Likewise.
1181 * bcache.c: Likewise.
1182 * charset.c: Likewise.
1183 * common/buffer.h: Likewise.
1184 * common/vec.h: Likewise.
1185 * i386bsd-nat.c: Likewise.
1186 * nat/linux-btrace.h: Likewise.
1187 * ppcfbsd-nat.c: Likewise.
1188 * ppcnbsd-tdep.h: Likewise.
1189 * ppcobsd-nat.c: Likewise.
1190 * ppcobsd-tdep.h: Likewise.
1191 * python/py-gdb-readline.c: Likewise.
1192
8980bdf6
GB
11932014-08-07 Gary Benson <gbenson@redhat.com>
1194
1195 * common/common-defs.h: Include stdarg.h.
1196 * defs.h: Do not include stdarg.h.
1197 * ada-lang.c: Likewise.
1198 * common/common-utils.h: Likewise.
1199 * guile/scm-string.c: Likewise.
1200 * guile/scm-utils.c: Likewise.
1201 * m32c-tdep.c: Likewise.
1202
d7096f71
GB
12032014-08-07 Gary Benson <gbenson@redhat.com>
1204
1205 * common/common-defs.h: Include stdlib.h.
1206 * defs.h: Do not include stdlib.h.
1207 * addrmap.c: Likewise.
1208 * bcache.c: Likewise.
1209 * common/buffer.c: Likewise.
1210 * common/common-utils.c: Likewise.
1211 * cp-name-parser.y: Likewise.
1212 * go32-nat.c: Likewise.
1213 * mn10300-linux-tdep.c: Likewise.
1214 * nat/linux-osdata.c: Likewise.
1215 * tui/tui.c: Likewise.
1216 * windows-nat.c: Likewise.
1217
d02f550d
GB
12182014-08-07 Gary Benson <gbenson@redhat.com>
1219
1220 * common/common-defs.h: Include stdio.h.
1221 * defs.h: Do not include stdio.h.
1222 * ada-lang.c: Likewise.
1223 * common/buffer.c: Likewise.
1224 * common/common-utils.c: Likewise.
1225 * cp-name-parser.y: Likewise.
1226 * gnu-nat.c: Likewise.
1227 * go32-nat.c: Likewise.
1228 * i386gnu-nat.c: Likewise.
1229 * proc-api.c: Likewise.
1230 * proc-events.c: Likewise.
1231 * proc-flags.c: Likewise.
1232 * proc-why.c: Likewise.
1233 * python/python-internal.h: Likewise.
1234 * target-memory.c: Likewise.
1235 * tui/tui-io.c: Likewise.
1236 * tui/tui.c: Likewise.
1237
b6d7a4bf
SM
12382014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1239
1240 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1241 (scan_dyntag_auxv): Same.
1242
af19829b
YQ
12432014-08-06 Yao Qi <yao@codesourcery.com>
1244
1245 * amd64-linux-nat.c: Remove duplicated include
1246 "x86-linux-nat.h".
1247 * i386-linux-nat.c: Likewise.
1248
8e07a239
YQ
12492014-08-06 Yao Qi <yao@codesourcery.com>
1250
1251 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1252 operand" with "Special opcode" in comments.
1253
7bfe8241
GB
12542014-08-05 Gary Benson <gbenson@redhat.com>
1255
1256 * interps.c (initialize_interps): Remove prototype.
1257 (interpreter_initialized): Remove static global.
1258 (interp_add): Do not call initialize_interps.
1259 (initialize_interps): Remove function.
1260
d6c95504
GB
12612014-08-05 Gary Benson <gbenson@redhat.com>
1262
1263 * utils.c (vwarning): Remove spurious va_end.
1264
241fd515
AM
12652014-08-05 Alan Modra <amodra@gmail.com>
1266
1267 * charset.c (convert_between_encodings): Cast result of obstack_base.
1268 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1269 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1270 (read_unwind_info): Use size_t for some locals.
1271 * jit.c (finalize_symtab): Likewise.
1272 * utils.c (hashtab_obstack_allocate): Likewise.
1273 * symmisc.c (print_objfile_statistics): Update format strings.
1274
dc304a94
JK
12752014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1276
1277 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1278 (Changes in GDB 7.8): ... here.
1279
3cecbbbe
TT
12802014-08-04 Tom Tromey <tromey@redhat.com>
1281
1282 * target.c (set_targetdebug): New function.
1283 (initialize_targets): Pass set_targetdebug when creating "set
1284 debug target".
1285
6908c509
JB
12862014-08-01 Joel Brobecker <brobecker@adacore.com>
1287
1288 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1289 if detecting a variable-sized field that is not the last field.
1290 Fix struct type length computation.
1291
53e8f97d
JB
12922014-08-01 Joel Brobecker <brobecker@adacore.com>
1293
1294 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1295 Add debug trace.
1296
e068c55d
JB
12972014-08-01 Joel Brobecker <brobecker@adacore.com>
1298
1299 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1300 Remove "+ 8" offset in computation of CHAIN_VMA.
1301
4d4ca2a1
DE
13022014-07-31 Doug Evans <dje@google.com>
1303
1304 * inflow.c (child_terminal_inferior): Add comment.
1305 (child_terminal_ours_for_output): Add comment.
1306 (child_terminal_ours): Add comment.
1307 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1308 (linux_nat_terminal_ours): Add comment.
1309
462f517e
GB
13102014-07-31 Gary Benson <gbenson@redhat.com>
1311
1312 * common/btrace-common.h: Do not include defs.h or server.h.
1313 * nat/mips-linux-watch.h: Likewise.
1314 * gdb-dlfcn.h: Do not include defs.h.
1315 * tracefile.h: Likewise.
1316
74228e77
RM
13172014-07-30 Roland McGrath <mcgrathr@google.com>
1318
1319 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1320
014f9477
TT
13212014-07-30 Tom Tromey <tromey@redhat.com>
1322
1323 * bsd-kvm.c (bsd_kvm_open): Constify.
1324 * corelow.c (core_open): Constify.
1325 * ctf.c (ctf_open): Constify.
1326 * dbug-rom.c (dbug_open): Constify.
1327 * exec.c (exec_open): Constify.
1328 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1329 * microblaze-rom.c (picobug_open): Constify.
1330 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1331 Constify.
1332 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1333 * record-btrace.c (record_btrace_open): Constify.
1334 * record-full.c (record_full_core_open_1, record_full_open_1)
1335 (record_full_open): Constify.
1336 * remote-m32r-sdi.c (m32r_open): Constify.
1337 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1338 (rockhopper_open, lsi_open): Constify.
1339 * remote-sim.c (gdbsim_open): Constify.
1340 * remote.c (remote_open, extended_remote_open, remote_open_1):
1341 Constify.
1342 * target.h (struct target_ops) <to_open>: Make "arg" const.
1343 * tracefile-tfile.c (tfile_open): Constify.
1344
e799154c
TT
13452014-07-30 Tom Tromey <tromey@redhat.com>
1346
1347 * breakpoint.c (map_breakpoint_numbers): Update.
1348 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1349 (get_number_const): New function.
1350 (get_number): Rewrite using get_number_const.
1351 (init_number_or_range): Make "string" const.
1352 (number_is_in_list): Make "list" const.
1353 * cli/cli-utils.h (get_number_const): Declare.
1354 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1355 (init_number_or_range, number_is_in_list): Update.
1356 * printcmd.c (map_display_numbers): Update.
1357 * value.c (value_from_history_ref): Constify.
1358 * value.h (value_from_history_ref): Update.
1359
5f08566b
TT
13602014-07-30 Tom Tromey <tromey@redhat.com>
1361
1362 * corefile.c (hook_type, call_extra_exec_file_hooks)
1363 (specify_exec_file_hook): Constify.
1364 * exec.c (exec_file_attach): Make "filename" const.
1365 * gdbcore.h (deprecated_exec_file_display_hook)
1366 (specify_exec_file_hook, exec_file_attach): Constify.
1367 * main.c (captured_main): Use catch_command_errors_const.
1368
8981c758
TT
13692014-07-30 Tom Tromey <tromey@redhat.com>
1370
1371 * target.c (open_target): New function.
1372 (add_target_with_completer, add_deprecated_target_alias): Use
1373 set_cmd_sfunc, set_cmd_context.
1374 (debug_to_open): Remove.
1375 (setup_target_debug): Update.
1376
a1c7835a
YQ
13772014-07-30 Yao Qi <yao@codesourcery.com>
1378
1379 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1380 comments.
1381 * parse.c (exp_iterate): Update comments.
1382
976411d6
GB
13832014-07-30 Gary Benson <gbenson@redhat.com>
1384
1385 * common/common-defs.h: New file.
1386 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1387 * defs.h: Include common-defs.h.
1388 Do not include config.h or build-gnulib/config.h.
1389
5d4848a4
GB
13902014-07-30 Gary Benson <gbenson@redhat.com>
1391
1392 * common/common-utils.h: Do not include config.h.
1393 * nat/linux-btrace.h: Likewise.
1394
d41f6d8e
GB
13952014-07-30 Gary Benson <gbenson@redhat.com>
1396
1397 * btrace.c: Include defs.h.
1398 * common/ptid.c: Include defs.h or server.h as appropriate.
1399 * nat/mips-linux-watch.c: Likewise.
1400
84202f9c
TT
14012014-07-29 Tom Tromey <tromey@redhat.com>
1402
1403 * target.c (target_is_pushed): Simplify.
1404
2530441c
JB
14052014-07-29 Joel Brobecker <brobecker@adacore.com>
1406
1407 GDB 7.8 released.
1408
7e09a223
YQ
14092014-07-29 Yao Qi <yao@codesourcery.com>
1410
1411 PR gdb/17206
1412 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1413
7ebdbe92
DE
14142014-07-28 Doug Evans <xdje42@gmail.com>
1415
1416 PR guile/17203
1417 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1418 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1419 parameters.
1420
f347ffc9
WN
14212014-07-28 Will Newton <will.newton@linaro.org>
1422
1423 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1424 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1425 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1426 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1427 (THUMB2_EABI_SYSCALL): Likewise.
1428 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1429 struct tramp_frame.
1430 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1431 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1432
37c5f1f7
DE
14332014-07-27 Doug Evans <xdje42@gmail.com>
1434
1435 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1436
0c3abbc7
DE
14372014-07-27 Doug Evans <xdje42@gmail.com>
1438
1439 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1440
e76c5d17
DE
14412014-07-26 Ludovic Courtès <ludo@gnu.org>
1442 Doug Evans <xdje42@gmail.com>
1443
1444 PR guile/17146
1445 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1446 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1447 * configure.ac: Try to use guild to compile an scm file, if it fails
1448 then disable guile support.
1449 * configure: Regenerate.
1450 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1451 GUILE_FILE_LIST.
1452 (GUILE_COMPILED_FILES): New variable.
1453 (GUILE_FILES) Update.
1454 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1455 (stamp-guile): Compile scm files.
1456 * guile/guile.c (boot_guile_support): New function.
1457 (standard_throw_args_p): New function.
1458 (print_standard_throw_error, print_throw_error): New functions.
1459 (handle_boot_error): New function.
1460 (initialize_scheme_side): Rewrite to call boot_guile_support.
1461 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1462 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1463
186fcde0
DE
14642014-07-26 Ludovic Courtès <ludo@gnu.org>
1465 Doug Evans <xdje42@gmail.com>
1466
1467 PR guile/17146
1468 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1469 * guile/lib/gdb/support.scm: New file.
1470 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1471 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1472 All uses updated.
1473 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1474 All uses updated.
1475 (%assert-type): Ditto, and renamed to assert-type.
1476 (%exception-print-style): Delete.
1477
4df42755
DE
14782014-07-26 Doug Evans <xdje42@gmail.com>
1479
1480 PR build/17105
1481 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1482 * configure: Regenerate.
1483 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1484 PYTHON_FILES.
1485 (PYTHON_FILES): New variable.
1486 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1487 (GUILE_FILES): New variable.
1488 (stamp-python, install-python, uninstall-python): Handle empty
1489 file list.
1490 (stamp-guile, install-guile, uninstall-guile): Ditto.
1491
ee7333ae
DE
14922014-07-26 Doug Evans <xdje42@gmail.com>
1493
1494 PR guile/17177
1495 * guile/lib/gdb.scm (pretty-printers): Export.
1496 (set-pretty-printers!): Export.
1497 * guile/lib/gdb/printing.scm (gdb module): Update.
1498 (prepend-pretty-printer!, append-pretty-printer!): Update.
1499 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1500 (pretty_printer_list_var): Delete.
1501 (pretty_printer_list): New static global.
1502 (gdbscm_pretty_printers): New function.
1503 (gdbscm_set_pretty_printers_x): New function.
1504 (ppscm_find_pretty_printer_from_gdb): Update.
1505 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1506 (gdbscm_initialize_pretty_printers): Update.
1507
74edf516
DE
15082014-07-26 Doug Evans <xdje42@gmail.com>
1509
1510 PR 17185
1511 * configure.ac: Add check for header gc/gc.h.
1512 Add check for function setenv.
1513 * configure: Regenerate.
1514 * config.in: Regenerate.
1515 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1516
d54398a7
MR
15172014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1518
1519 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1520 variation in gdbarch matching.
1521
ab16fce8
TT
15222014-07-25 Tom Tromey <tromey@redhat.com>
1523
1524 * exec.c (using_exec_ops): Remove.
1525 (exec_close_1): Update. Remove extraneous block, reindent.
1526 (add_target_sections): Use target_is_pushed.
1527
88056fbb
PA
15282014-07-25 Pedro Alves <palves@redhat.com>
1529
1530 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1531 * monitor.c (monitor_create_inferior): Likewise.
1532 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1533 * remote-sim.c (gdbsim_create_inferior): Likewise.
1534 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1535 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1536 * windows-nat.c (do_initial_windows_stuff): Likewise.
1537
70509625
PA
15382014-07-25 Pedro Alves <palves@redhat.com>
1539
1540 * NEWS: Mention signal passing and "signal" command changes.
1541 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1542 comment.
1543 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1544 call.
1545 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1546 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1547 (jump_command): Adjust clear_proceed_status call.
1548 (signal_command): Warn if other thread that are resumed have
1549 signals that will be delivered. Adjust clear_proceed_status call.
1550 (until_next_command, finish_command)
1551 (proceed_after_attach_callback, attach_command_post_wait)
1552 (attach_command): Adjust clear_proceed_status call.
1553 * infrun.c (proceed_after_vfork_done): Likewise.
1554 (proceed_after_attach_callback): Adjust comment.
1555 (clear_proceed_status_thread): Clear stop_signal if not in pass
1556 state.
1557 (clear_proceed_status_callback): Delete.
1558 (clear_proceed_status): New 'step' parameter. Only clear the
1559 proceed status of threads the command being prepared is about to
1560 resume.
1561 (proceed): If passed in an explicit signal, override stop_signal
1562 with it. Don't pass the last stop signal to the thread we're
1563 resuming.
1564 (init_wait_for_inferior): Adjust clear_proceed_status call.
1565 (switch_back_to_stepped_thread): Clear the signal if it should not
1566 be passed.
1567 * infrun.h (clear_proceed_status): New 'step' parameter.
1568 (user_visible_resume_ptid): Add comment.
1569 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1570 signal is in pass state.
1571 * remote.c (append_pending_thread_resumptions): Likewise.
1572 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1573
d8be2939
TT
15742014-07-25 Tom Tromey <tromey@redhat.com>
1575
1576 * target.h (target_stopped_data_address)
1577 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1578 parentheses.
1579
7d0d9d2b
PL
15802014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1581
1582 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1583 comments.
1584 (avr_pointer_to_address): Likewise.
1585
e9e7f724
TT
15862014-07-24 Tom Tromey <tromey@redhat.com>
1587
1588 * monitor.c (compile_pattern): Update.
1589 * target.h (struct target_ops) <to_shortname, to_longname,
1590 to_doc>: Now const.
1591
1947513d
TT
15922014-07-24 Tom Tromey <tromey@redhat.com>
1593
1594 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1595 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1596 (add_info_alias, add_com): Make "doc" const.
1597 (print_doc_line): Make "str" const.
1598 (delete_cmd): Update.
1599 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1600 (print_doc_line): Update.
1601 * cli/cli-script.c (document_command): Update.
1602 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1603 (add_com, add_info, add_info_alias): Update.
1604 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1605 * python/py-cmd.c (cmdpy_destroyer): Update.
1606
64e61d29
TT
16072014-07-24 Tom Tromey <tromey@redhat.com>
1608
1609 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1610 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1611 (help_cmd_list): Constify.
1612 (lookup_cmd): Update.
1613 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1614 const.
1615 (help_cmd_list, apropos_cmd): Update.
1616 * cli/cli-script.c (show_user): Update.
1617 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1618 * cli/cli-setshow.h (cmd_show_list): Update.
1619 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1620 (cmd_show_list): Update.
1621 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1622 * python/py-cmd.c (cmdpy_destroyer): Update.
1623
429e55ea
TT
16242014-07-24 Tom Tromey <tromey@redhat.com>
1625
1626 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1627 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1628 const.
1629 * command.h (deprecate_cmd): Update.
1630 * maint.c (maintenance_do_deprecate): Add casts.
1631
64669f3b
TT
16322014-07-24 Tom Tromey <tromey@redhat.com>
1633
1634 * cli/cli-decode.c (help_cmd): Make parameter "const".
1635 * cli/cli-decode.h (help_cmd): Update.
1636
d3d3328b
TT
16372014-07-24 Tom Tromey <tromey@redhat.com>
1638
1639 * stack.c (up_silently_base, down_silently_base): Make argument
1640 const.
1641
414842dc
TT
16422014-07-24 Tom Tromey <tromey@redhat.com>
1643
1644 * solib.c (solib_add): Make "pattern" const.
1645 * solib.h (solib_add): Update.
1646
baa336ce
TT
16472014-07-24 Tom Tromey <tromey@redhat.com>
1648
1649 * remote.c (remote_serial_open, print_packet, putpkt)
1650 (putpkt_binary): Constify.
1651 * remote.h (putpkt): Update.
1652
5a19e2d0
TT
16532014-07-24 Tom Tromey <tromey@redhat.com>
1654
1655 * monitor.c (monitor_open): Make "args" const.
1656 * monitor.h (monitor_open): Update.
1657
fc4baa5e
TT
16582014-07-24 Tom Tromey <tromey@redhat.com>
1659
1660 * maint.c (match_bfd_flags): Make "string" const.
1661 (print_bfd_section_info): Remove casts.
1662 (print_objfile_section_info): Make "string" const.
1663
0d5f0dbe
TT
16642014-07-24 Tom Tromey <tromey@redhat.com>
1665
1666 * inf-child.c (inf_child_open_target): Make "arg" const.
1667 * inf-child.h (inf_child_open_target): Update.
1668
41c77899
TT
16692014-07-24 Tom Tromey <tromey@redhat.com>
1670
1671 * environ.c (unset_in_environ): Make "var" const.
1672 * environ.h (unset_in_environ): Update.
1673
93db0d79
TT
16742014-07-24 Tom Tromey <tromey@redhat.com>
1675
1676 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1677 Make "cmd" const.
1678 (scan_filename_with_cleanup): Likewise.
1679 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1680 Make arguments const.
1681 (restore_command): Update.
1682
36d6eb95
PA
16832014-07-24 Pedro Alves <palves@redhat.com>
1684
1685 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1686
8009206a
TT
16872014-07-24 Tom Tromey <tromey@redhat.com>
1688 Gary Benson <gbenson@redhat.com>
1689
1690 * nat/linux-ptrace.c (additional_flags): New global.
1691 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1692 additional_flags; don't check GDBSERVER.
1693 (linux_ptrace_set_additional_flags): New function.
1694 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1695 Declare.
1696 * linux-nat.c (_initialize_linux_nat): Call
1697 linux_ptrace_set_additional_flags.
1698
a7068b60
TT
16992014-07-24 Tom Tromey <tromey@redhat.com>
1700
1701 * make-target-delegates (munge_type, write_debugmethod): New
1702 functions.
1703 (debug_names): New global.
1704 ($TARGET_DEBUG_PRINTER): New global.
1705 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1706 name.
1707 Write debug methods. Generate init_debug_target.
1708 * target-debug.h: New file.
1709 * target-delegates.c: Rebuild.
1710 * target.c: Include target-debug.h.
1711 (debug_target): Hoist definition.
1712 (target_kill, target_get_section_table, target_memory_map)
1713 (target_flash_erase, target_flash_done, target_detach)
1714 (target_disconnect, target_wait, target_resume)
1715 (target_pass_signals, target_program_signals, target_follow_fork)
1716 (target_mourn_inferior, target_search_memory)
1717 (target_thread_address_space, target_close)
1718 (target_find_new_threads, target_core_of_thread)
1719 (target_verify_memory, target_insert_mask_watchpoint)
1720 (target_remove_mask_watchpoint): Remove targetdebug code.
1721 (debug_to_post_attach, debug_to_prepare_to_store)
1722 (debug_to_files_info, debug_to_insert_breakpoint)
1723 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1724 (debug_to_region_ok_for_hw_watchpoint)
1725 (debug_to_can_accel_watchpoint_condition)
1726 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1727 (debug_to_watchpoint_addr_within_range)
1728 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1729 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1730 (debug_to_terminal_init, debug_to_terminal_inferior)
1731 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1732 (debug_to_terminal_save_ours, debug_to_terminal_info)
1733 (debug_to_load, debug_to_post_startup_inferior)
1734 (debug_to_insert_fork_catchpoint)
1735 (debug_to_remove_fork_catchpoint)
1736 (debug_to_insert_vfork_catchpoint)
1737 (debug_to_remove_vfork_catchpoint)
1738 (debug_to_insert_exec_catchpoint)
1739 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1740 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1741 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1742 (setup_target_debug): Call init_debug_target.
1743 * target.h (TARGET_DEBUG_PRINTER): New macro.
1744 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1745 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1746
2c51604d
GB
17472014-07-24 Gary Benson <gbenson@redhat.com>
1748
1749 * exceptions.h (throw_vfatal): Renamed to...
1750 (throw_vquit): New declaration.
1751 (throw_quit): Likewise.
1752 * exceptions.c (throw_vfatal): Renamed to...
1753 (throw_vquit): New function.
1754 (throw_quit): Likewise.
1755 (throw_error): Call throw_verror rather than throw_it.
1756 * utils.h (vfatal): Removed.
1757 (fatal): Likewise.
1758 * utils.c (vfatal): Removed.
1759 (fatal): Likewise.
1760 (internal_verror): Replaced call to fatal with call to throw_quit.
1761 (quit): Replaced calls to fatal with calls to throw_quit.
1762
34211963
ME
17632014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1764
1765 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1766 target_read_code.
1767
a52b4d3e
ME
17682014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1769
1770 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1771 less than zero in conditional expression.
1772
a8bdc56b
TT
17732014-07-23 Tom Tromey <tromey@redhat.com>
1774
1775 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1776 ($INTRO_PART): Don't match whitespace.
1777 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1778 argument matching.
1779 ($METHOD): Add $METHOD_TRAILER.
1780 (trim): Rewrite.
1781 (scan_target_h): New sub.
1782 Change main loop not to collect state.
1783 * target-delegates.c: Rebuild.
1784
91b52240
GB
17852014-07-23 Gary Benson <gbenson@redhat.com>
1786
1787 * cp-support.c (gdb_demangle): Fix build on systems without
1788 sigaltstack.
1789
45326f6f
JK
17902014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1791
1792 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1793 for reference entry value target data value.
1794
e214cf6c
JK
17952014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1796
1797 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1798 value_available_contents_eq.
1799
bddbbedd
PA
18002014-07-22 Pedro Alves <palves@redhat.com>
1801
1802 * value.c (allocate_optimized_out_value): Don't mark value as
1803 non-lazy.
1804
45c71484
JW
18052014-07-22 Jiong Wang <jiong.wang@arm.com>
1806
1807 * MAINTAINERS (Write After Approval): Update my email address.
1808
9597b22a
DE
18092014-07-20 Doug Evans <dje@google.com>
1810
1811 PR server/17147
1812 * remote.c (putpkt_binary): Add text to error message.
1813
91101fe5
YQ
18142014-07-20 Yao Qi <yao@codesourcery.com>
1815
1816 * eval.c: Remove "Chill" from comments.
1817 * gdbtypes.h: Likewise.
1818 * symtab.h: Likewise.
1819
c9402c95
YQ
18202014-07-20 Yao Qi <yao@codesourcery.com>
1821
1822 * std-operator.def: Update comments to TERNOP_SLICE.
1823
ae8fddda
YQ
18242014-07-20 Yao Qi <yao@codesourcery.com>
1825
1826 * std-operator.def: Remove BINOP_RANGE.
1827 * breakpoint.c (watchpoint_exp_is_const): Update.
1828 * expprint.c (dump_subexp_body_standard): Likewise.
1829 * eval.c (init_array_element): Remove dead code.
1830 (evaluate_subexp_standard): Likewise.
1831
9c816640
YQ
18322014-07-20 Yao Qi <yao@codesourcery.com>
1833
1834 * std-operator.def: Remove BINOP_IN.
1835 * breakpoint.c (watchpoint_exp_is_const): Update.
1836 * eval.c (evaluate_subexp_standard): Likewise.
1837 * expprint.c (dump_subexp_body_standard): Likewise.
1838
164224e9
ME
18392014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1840
1841 * microblaze-tdep.c (microblaze_register_names): Add
1842 the rshr and rslr register names.
1843 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1844 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1845 Use of tdesc_numbered_register. Use of
1846 microblaze_register_g_packet_guesses. Use of
1847 tdesc_use_registers. Use of set_gdbarch_register_type.
1848 (microblaze_register_g_packet_guesses): New.
1849 * microblaze-tdep.h (microblaze_reg_num): Add
1850 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1851 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1852 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1853 * features/microblaze-core.xml: New file.
1854 * features/microblaze-stack-protect.xml: New file.
1855 * features/microblaze-with-stack-protect.c: New file.
1856 * features/microblaze-with-stack-protect.xml: New file.
1857 * features/microblaze.xml: New file.
1858 * features/microblaze.c: New file.
1859 * features/Makefile (microblaze-with-stack-protect): Add
1860 microblaze-with-stack-protect microblaze and microblaze-expedite.
1861 * regformats/microblaze-with-stack-protect.dat: New file.
1862 * regformats/microblaze.dat: New file.
1863 * doc/gdb.texinfo (MicroBlaze Features): Added.
1864
e8b2341c
TT
18652014-07-18 Tom Tromey <tromey@redhat.com>
1866
1867 * exec.c (exec_ops): Now static.
1868 * exec.h (exec_ops): Don't declare.
1869
44e89118
TT
18702014-07-18 Tom Tromey <tromey@redhat.com>
1871
1872 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1873 to find_target_beneath.
1874 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1875 find_target_beneath.
1876 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1877
b0ed115f
TT
18782014-07-18 Tom Tromey <tromey@redhat.com>
1879
1880 PR gdb/17130:
1881 * utils.c (quit): Use target_supports_terminal_ours.
1882 * target.h (target_supports_terminal_ours): Declare.
1883 * target.c (target_supports_delete_record): Don't check
1884 to_delete_record against NULL.
1885 (target_supports_terminal_ours): New function.
1886
e75fdfca
TT
18872014-07-18 Tom Tromey <tromey@redhat.com>
1888
1889 PR gdb/17130:
1890 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1891 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1892 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1893 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1894 * windows-nat.c (windows_xfer_partial): Always delegate.
1895 * record-btrace.c (record_btrace_xfer_partial): Simplify
1896 delegation.
1897 (record_btrace_fetch_registers, record_btrace_store_registers)
1898 (record_btrace_prepare_to_store, record_btrace_resume)
1899 (record_btrace_wait, record_btrace_find_new_threads)
1900 (record_btrace_thread_alive): Likewise.
1901 * procfs.c (procfs_xfer_partial): Always delegate.
1902 * corelow.c (core_xfer_partial): Always delegate.
1903 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1904
83814951
TT
19052014-07-18 Tom Tromey <tromey@redhat.com>
1906
1907 * exec.c (exec_make_note_section): Move earlier.
1908
b8b8facf
DE
19092014-07-17 Doug Evans <dje@google.com>
1910
74b49205 1911 PR gdb/17170
b8b8facf
DE
1912 * maint.c (count_symtabs_and_blocks): Handle NULL
1913 current_program_space.
1914 (report_command_stats): Check global enabled flag in addition to
1915 recorded enabled flag.
1916 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1917
69ff6be5
PA
19182014-07-16 Pedro Alves <palves@redhat.com>
1919
1920 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1921
252db1b5
TT
19222014-07-16 Tom Tromey <tromey@redhat.com>
1923
1924 * target.h (struct target_ops) <to_delete_record>: Reformat
1925 comment.
1926
a432721e
TT
19272014-07-16 Tom Tromey <tromey@redhat.com>
1928
1929 * target-delegates.c: Rebuild.
1930
487d9753
PL
19312014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1932
1933 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1934 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1935 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1936 (avr_pointer_to_address): Likewise.
1937 (avr_address_class_type_flags): New function.
1938 (avr_address_class_type_flags_to_name): Likewise.
1939 (avr_address_class_name_to_type_flags): Likewise.
1940 (avr_gdbarch_init): Set address_class_type_flags,
1941 address_class_type_flags_to_name and
1942 address_class_name_to_type_flags.
1943
57745c90
PA
19442014-07-15 Pedro Alves <palves@redhat.com>
1945
1946 * linux-nat.c (kill_callback): Save errno and work with saved
1947 copy.
1948
2d40be18
SM
19492014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1950
1951 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1952
572f6555
EBM
19532014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1954
1955 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1956 breakpoint support correctly.
1957
cc1c52ad
PA
19582014-07-14 Pedro Alves <palves@redhat.com>
1959
1960 * utils.c (prompt_for_continue): Call target_terminal_ours.
1961
1e973570
PA
19622014-07-14 Pedro Alves <palves@redhat.com>
1963
1964 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1965 catch_errors. Don't re-enable stdin or notify observers where,
1966 and rethrow error.
1967 (fetch_inferior_event_wrapper): Delete.
1968
93d6eb10
PA
19692014-07-14 Pedro Alves <palves@redhat.com>
1970
1971 PR gdb/17072
1972 * top.c: Include "inf-loop.h".
1973 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1974 field.
1975 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1976 was async before.
1977 (gdb_readline_wrapper): Store whether the target is async, and
1978 make it sync.
1979
0017922d
PA
19802014-07-14 Pedro Alves <palves@redhat.com>
1981
1982 PR gdb/17072
1983 * top.c (gdb_readline_wrapper_line): Tweak comment.
1984 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1985 the input handler callback.
1986
94696ad3
PA
19872014-07-14 Pedro Alves <palves@redhat.com>
1988
1989 PR gdb/17072
1990 * main.c: Include event-top.h.
1991 (handle_command_errors): New function.
1992 (catch_command_errors, catch_command_errors_const): Use it.
1993
9d1e69a2
PA
19942014-07-14 Pedro Alves <palves@redhat.com>
1995
1996 * exceptions.c (catch_command_errors, catch_command_errors_const):
1997 Moved to main.c.
1998 * exceptions.h (catch_command_errors_ftype)
1999 (catch_command_errors_const_ftype): Moved to main.c.
2000 (catch_command_errors, catch_command_errors_const): Delete
2001 declarations.
2002 * main.c (catch_command_errors_ftype)
2003 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2004 (catch_command_errors, catch_command_errors_const)): Moved here
2005 from exceptions.c and make static.
2006
feefc97b
PA
20072014-07-14 Pedro Alves <palves@redhat.com>
2008
2009 * exceptions.c (print_any_exception): Delete.
2010 (catch_exceptions_with_msg): Use exception_print instead of
2011 print_any_exception.
2012 (catch_errors): Use exception_fprintf instead of
2013 print_any_exception.
2014 (catch_command_errors, catch_command_errors_const): Use
2015 exception_print instead of print_any_exception.
2016
c933f875
PA
20172014-07-14 Pedro Alves <palves@redhat.com>
2018
2019 * infcall.c (run_inferior_call): Set 'sync_execution' while
2020 running the inferior call.
2021
feb6f816
PA
20222014-07-14 Pedro Alves <palves@redhat.com>
2023
2024 * value.c (value_contents_equal): Delete function.
2025 * value.h (value_contents_equal): Delete declaration.
2026
d98b7a16
TT
20272014-07-14 Tom Tromey <tromey@redhat.com>
2028
2029 PR exp/17106:
2030 * gdbtypes.c (is_dynamic_type_internal): New function, from
2031 is_dynamic_type.
2032 (is_dynamic_type): Rewrite.
2033 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2034 (resolve_dynamic_struct): Likewise.
2035 (resolve_dynamic_type_internal): New function, from
2036 resolve_dynamic_type.
2037 (resolve_dynamic_type): Rewrite.
2038
548740d6
TT
20392014-07-14 Tom Tromey <tromey@redhat.com>
2040
2041 * target.c (target_require_runnable): Also check record_stratum.
2042 Update comment.
2043
808f7ab1
YQ
20442014-07-11 Yao Qi <yao@codesourcery.com>
2045
2046 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2047 thumb_instruction_restores_sp return true.
2048
540314bd
YQ
20492014-07-11 Yao Qi <yao@codesourcery.com>
2050
2051 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2052 (thumb_in_function_epilogue_p): Call
2053 thumb_instruction_restores_sp.
2054
1db01f22
YQ
20552014-07-11 Yao Qi <yao@codesourcery.com>
2056
2057 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2058 'add sp, #imm'.
2059 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2060
3116063b
GB
20612014-07-11 Gary Benson <gbenson@redhat.com>
2062
2063 * amd64-linux-nat.c (gdbcore.h): Remove include.
2064 (regset.h): Likewise.
2065 (nat/linux-btrace.h): Likewise.
2066 (btrace.h): Likewise.
2067 (gdb_assert.h): Likewise.
2068 (string.h): Likewise.
2069 (sys/uio.h): Likewise.
2070 (sys/debugreg.h): Likewise.
2071 (sys/syscall.h): Likewise.
2072 (sys/procfs.h): Likewise.
2073 (sys/user.h): Likewise.
2074 (asm/ptrace.h): Likewise.
2075 (i386-nat.h): Likewise.
2076 * i386-linux-nat.c (i386-nat.h): Likewise.
2077 (regset.h): Likewise.
2078 (target.h): Likewise.
2079 (linux-nat.h): Likewise.
2080 (nat/linux-btrace.h): Likewise.
2081 (btrace.h): Likewise.
2082 (gdb_assert.h): Likewise.
2083 (string.h): Likewise.
2084 (sys/uio.h): Likewise.
2085 (sys/user.h): Likewise.
2086 (sys/procfs.h): Likewise.
2087 (sys/reg.h): Likewise.
2088 (sys/debugreg.h): Likewise.
2089 (ORIG_EAX): Remove definition.
2090
040baaf6
GB
20912014-07-11 Gary Benson <gbenson@redhat.com>
2092
2093 * i386-linux-nat.h: New file.
2094 * x86-linux-nat.h: Likewise.
2095 * x86-linux-nat.c: Likewise.
2096 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2097 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2098 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2099 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2100 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2101 (PTRACE_SETREGSET): Likewise.
2102 (arch_lwp_info): Now in x86-linux-nat.c.
2103 (have_ptrace_getregset): Now in x86-linux-nat.h.
2104 (x86_linux_dr_get): Now in x86-linux-nat.c.
2105 (x86_linux_dr_set): Likewise.
2106 (x86_linux_dr_get_addr): Likewise.
2107 (x86_linux_dr_get_control): Likewise.
2108 (x86_linux_dr_get_status): Likewise.
2109 (update_debug_registers_callback): Likewise.
2110 (x86_linux_dr_set_control): Likewise.
2111 (x86_linux_dr_set_addr): Likewise.
2112 (x86_linux_prepare_to_resume): Likewise.
2113 (x86_linux_new_thread): Likewise.
2114 (x86_linux_new_fork): Likewise.
2115 (x86_linux_get_thread_area): Likewise.
2116 (super_post_startup_inferior): Likewise.
2117 (x86_linux_child_post_startup_inferior): Likewise.
2118 (AMD64_LINUX_USER64_CS): Likewise.
2119 (AMD64_LINUX_X32_DS): Likewise.
2120 (x86_linux_read_description): Likewise.
2121 (x86_linux_enable_btrace): Likewise.
2122 (x86_linux_disable_btrace): Likewise.
2123 (x86_linux_teardown_btrace): Likewise.
2124 (x86_linux_read_btrace): Likewise.
2125 (x86_linux_create_target): Likewise.
2126 (x86_linux_add_target): Likewise.
2127 * i386-linux-nat.c (x86-linux-nat.h): New include.
2128 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2129 (PTRACE_SETREGSET): Likewise.
2130 (arch_lwp_info): Now in x86-linux-nat.c.
2131 (have_ptrace_getregset): Now in x86-linux-nat.h.
2132 (x86_linux_dr_get): Now in x86-linux-nat.c.
2133 (x86_linux_dr_set): Likewise.
2134 (x86_linux_dr_get_addr): Likewise.
2135 (x86_linux_dr_get_control): Likewise.
2136 (x86_linux_dr_get_status): Likewise.
2137 (update_debug_registers_callback): Likewise.
2138 (x86_linux_dr_set_control): Likewise.
2139 (x86_linux_dr_set_addr): Likewise.
2140 (x86_linux_prepare_to_resume): Likewise.
2141 (x86_linux_new_thread): Likewise.
2142 (x86_linux_new_fork): Likewise.
2143 (x86_linux_get_thread_area): Likewise.
2144 (super_post_startup_inferior): Likewise.
2145 (x86_linux_child_post_startup_inferior): Likewise.
2146 (AMD64_LINUX_USER64_CS): Likewise.
2147 (AMD64_LINUX_X32_DS): Likewise.
2148 (x86_linux_read_description): Likewise.
2149 (x86_linux_enable_btrace): Likewise.
2150 (x86_linux_disable_btrace): Likewise.
2151 (x86_linux_teardown_btrace): Likewise.
2152 (x86_linux_read_btrace): Likewise.
2153 (x86_linux_create_target): Likewise.
2154 (x86_linux_add_target): Likewise.
2155
1aa7e42c
GB
21562014-07-11 Gary Benson <gbenson@redhat.com>
2157
2158 * amd64-linux-nat.c: Comment and whitespace changes.
2159 * i386-linux-nat.c: Comment and whitespace changes.
2160
c1e246a0
GB
21612014-07-11 Gary Benson <gbenson@redhat.com>
2162
2163 * amd64-linux-nat.c (x86_linux_create_target): New function.
2164 (x86_linux_add_target): Likewise.
2165 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2166 * i386-linux-nat.c (x86_linux_create_target): New function.
2167 (x86_linux_add_target): Likewise.
2168 (_initialize_i386_linux_nat): Delegate to the above new functions.
2169
8c420b8d
GB
21702014-07-11 Gary Benson <gbenson@redhat.com>
2171
2172 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2173 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2174 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2175 (ps_get_thread_area): Delegate to the above.
2176
cb1da100
GB
21772014-07-11 Gary Benson <gbenson@redhat.com>
2178
2179 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2180 x86_linux_read_description. All uses updated. amd64-specific
2181 code conditionalized. Conditionalized i386-specific code added.
2182 Redundant cast removed.
2183 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2184 x86_linux_read_description. All uses updated. i386-specific
2185 code conditionalized. Conditionalized amd64-specific code added.
2186 One sizeof replaced with the actual type it is describing.
2187
2acf3cd0
GB
21882014-07-11 Gary Benson <gbenson@redhat.com>
2189
2190 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2191 x86_linux_dr_get. All uses updated.
2192 (amd64_linux_dr_set): Renamed to
2193 x86_linux_dr_set. All uses updated.
2194 (amd64_linux_dr_get_addr): Renamed to
2195 x86_linux_dr_get_addr. All uses updated.
2196 (amd64_linux_dr_get_control): Renamed to
2197 x86_linux_dr_get_control. All uses updated.
2198 (amd64_linux_dr_get_status): Renamed to
2199 x86_linux_dr_get_status. All uses updated.
2200 (amd64_linux_dr_set_control): Renamed to
2201 x86_linux_dr_set_control. All uses updated.
2202 (amd64_linux_dr_set_addr): Renamed to
2203 x86_linux_dr_set_addr. All uses updated.
2204 (amd64_linux_prepare_to_resume): Renamed to
2205 x86_linux_prepare_to_resume. All uses updated.
2206 (amd64_linux_new_thread): Renamed to
2207 x86_linux_new_thread. All uses updated.
2208 (amd64_linux_new_fork): Renamed to
2209 x86_linux_new_fork. All uses updated.
2210 (amd64_linux_child_post_startup_inferior): Renamed to
2211 x86_linux_child_post_startup_inferior. All uses updated.
2212 (amd64_linux_enable_btrace): Renamed to
2213 x86_linux_enable_btrace. All uses updated.
2214 (amd64_linux_disable_btrace): Renamed to
2215 x86_linux_disable_btrace. All uses updated.
2216 (amd64_linux_teardown_btrace): Renamed to
2217 x86_linux_teardown_btrace. All uses updated.
2218 (amd64_linux_read_btrace): Renamed to
2219 x86_linux_read_btrace. All uses updated.
2220 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2221 x86_linux_dr_get. All uses updated.
2222 (i386_linux_dr_set): Renamed to
2223 x86_linux_dr_set. All uses updated.
2224 (i386_linux_dr_get_addr): Renamed to
2225 x86_linux_dr_get_addr. All uses updated.
2226 (i386_linux_dr_get_control): Renamed to
2227 x86_linux_dr_get_control. All uses updated.
2228 (i386_linux_dr_get_status): Renamed to
2229 x86_linux_dr_get_status. All uses updated.
2230 (i386_linux_dr_set_control): Renamed to
2231 x86_linux_dr_set_control. All uses updated.
2232 (i386_linux_dr_set_addr): Renamed to
2233 x86_linux_dr_set_addr. All uses updated.
2234 (i386_linux_prepare_to_resume): Renamed to
2235 x86_linux_prepare_to_resume. All uses updated.
2236 (i386_linux_new_thread): Renamed to
2237 x86_linux_new_thread. All uses updated.
2238 (i386_linux_new_fork): Renamed to
2239 x86_linux_new_fork. All uses updated.
2240 (i386_linux_child_post_startup_inferior): Renamed to
2241 x86_linux_child_post_startup_inferior. All uses updated.
2242 (i386_linux_enable_btrace): Renamed to
2243 x86_linux_enable_btrace. All uses updated.
2244 (i386_linux_disable_btrace): Renamed to
2245 x86_linux_disable_btrace. All uses updated.
2246 (i386_linux_teardown_btrace): Renamed to
2247 x86_linux_teardown_btrace. All uses updated.
2248 (i386_linux_read_btrace): Renamed to
2249 x86_linux_read_btrace. All uses updated.
2250
b9c1d481
AS
22512014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2252
2253 * remote.c (extended_remote_post_attach): New function.
2254 (init_extended_remote_ops): Install it as to_post_attach method.
2255
7180e04a
PA
22562014-07-09 Pedro Alves <palves@redhat.com>
2257
2258 * infcmd.c (attach_command_post_wait): Don't call
2259 target_terminal_inferior here.
2260 (attach_command): Call it here instead.
2261
9a9a7608
AB
22622014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2263
2264 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2265 field.
2266 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2267 from varobj.c, with additional checks.
2268 (c_varobj_ops): Fill in is_path_expr_parent field.
2269 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2270 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2271 field.
2272 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2273 ops method.
2274 (varobj_default_is_path_expr_parent): New function.
2275 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2276 (varobj_default_is_path_expr_parent): Declare new function.
2277
1f267ae3
MM
22782014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2279
2280 * infcmd.c (finish_backward): Turn internal error into normal error.
2281
b2ee242b
PA
22822014-07-07 Pedro Alves <palves@redhat.com>
2283
8a869bca 2284 PR gdb/17096
b2ee242b
PA
2285 * remote.c (async_handle_remote_sigint)
2286 (async_handle_remote_sigint_twice): Call
2287 gdb_call_async_signal_handler instead of
2288 mark_async_signal_handler.
2289
38e229b2
TT
22902014-07-07 Tom Tromey <tromey@redhat.com>
2291
2292 * target-delegates.c: Rebuild.
2293 * target.c (target_info_record): Remove.
2294 * record.c (info_record_command): Unconditionally call
2295 to_info_record.
2296 * target.h (struct target_ops) <to_info_record>: Use
2297 TARGET_DEFAULT_IGNORE.
2298 (target_info_record): Remove.
2299
f0f9ff95
TT
23002014-07-07 Tom Tromey <tromey@redhat.com>
2301
2302 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2303 TARGET_DEFAULT_NORETURN.
2304 * target.c (generic_tls_error): New function.
2305 (target_translate_tls_address): Don't search target stack.
2306 * target-delegates.c: Rebuild.
2307 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2308 stack.
2309 * linux-thread-db.c (thread_db_get_thread_local_address):
2310 Unconditionally call beneath target.
2311
4a5be5ee
MK
23122014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2313
2314 * cli/cli-logging.c (pop_output_files): Assign targerr to
2315 gdb_stdtargerr.
2316
92c3b204
AB
23172014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * MAINTAINERS (Write After Approval): Update my email address.
2320
9b11e3a7
GB
23212014-07-02 Gary Benson <gbenson@redhat.com>
2322
2323 * proc-service.c (ps_xfer_memory): Update comment.
2324 (ps_pstop): Remove unused function.
2325 (ps_pcontinue): Likewise.
2326 (ps_lstop): Likewise.
2327 (ps_lcontinue): Likewise.
2328 (ps_lgetxregsize): Likewise.
2329 (ps_lgetxregs): Likewise.
2330 (ps_lsetxregs): Likewise.
2331 (ps_plog): Likewise.
2332 (ps_ptread): Likewise.
2333 (ps_ptwrite): Likewise.
2334
cf363f18
MW
23352014-07-01 Mark Wielaard <mjw@redhat.com>
2336
2337 * dwarf2read.c (add_array_cv_type): New function.
2338 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2339 (read_tag_volatile_type): Likewise.
2340
82ae6c8d
TT
23412014-07-01 Tom Tromey <tromey@redhat.com>
2342
2343 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2344 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2345 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2346 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2347 * command.h (cmd_cfunc_ftype): Move earlier.
2348 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2349 (add_com, add_info): Use cmd_cfunc_ftype.
2350
96142726
TT
23512014-06-30 Tom Tromey <tromey@redhat.com>
2352
2353 * symtab.c (operator_chars): Make parameters and return type
2354 const.
2355 (file_matches): Make "files" const.
2356 (struct search_symbols_data) <files>: Now const.
2357 (search_symbols): Make "regexp" and "files" parameters const.
2358 Update.
2359 (symtab_symbol_info): Remove cast.
2360 (rbreak_command): Update.
2361 * symtab.h (search_symbols): Update.
2362
b67a2c6f
YQ
23632014-06-27 Yao Qi <yao@codesourcery.com>
2364
2365 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2366 Change parameter type to 'struct thread_info *'. Caller
2367 updated.
2368 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2369 Update declaration.
2370 * dummy-frame.c (struct dummy_frame_id): New.
2371 (dummy_frame_id_eq): New function.
2372 (struct dummy_frame) <id>: Change its type to 'struct
2373 dummy_frame_id'.
2374 (dummy_frame_push): Add parameter ptid and save it in
2375 dummy_frame_id.
2376 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2377 inferior_ptid.
2378 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2379 to inferior_ptid.
2380 (lookup_dummy_frame): Change parameter type to 'struct
2381 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2382 instead of frame_id_eq.
2383 (dummy_frame_pop): Add parameter ptid. Callers updated.
2384 Update comments. Compose dummy_frame_id and pass it to
2385 lookup_dummy_frame.
2386 (dummy_frame_discard): Add parameter ptid.
2387 (dummy_frame_sniffer): Compose dummy_frame_id and call
2388 dummy_frame_id_eq instead of frame_id_eq.
2389 (fprint_dummy_frames): Print ptid.
2390 * dummy-frame.h: Remove comments.
2391 (dummy_frame_push): Add ptid in declaration.
2392 (dummy_frame_pop, dummy_frame_discard): Likewise.
2393
5b10184c
TT
23942014-06-26 Tom Tromey <tromey@redhat.com>
2395
2396 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2397 * command.h (error_no_arg): Update.
2398
06900326
TT
23992014-06-26 Tom Tromey <tromey@redhat.com>
2400
2401 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2402 (do_show_command): Make "arg" const.
2403 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2404
c2bcbb1d
TT
24052014-06-26 Tom Tromey <tromey@redhat.com>
2406
2407 * record-full.c (record_full_get_bookmark): Make "args" const.
2408 (record_full_goto_bookmark): Make "raw_bookmark" const.
2409 * record.c (record_goto): New function.
2410 (cmd_record_goto): Use it. Now static.
2411 * record.h (record_goto): Declare.
2412 (cmd_record_goto): Remove declaration.
2413 * target-delegates.c: Rebuild.
2414 * target.h (struct target_ops) <to_get_bookmark,
2415 to_goto_bookmark>: Make parameter const.
2416
9cbe5fff
TT
24172014-06-26 Tom Tromey <tromey@redhat.com>
2418
2419 * defs.h (generic_load): Update.
2420 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2421 * monitor.c (monitor_load): Make "args" const.
2422 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2423 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2424 const.
2425 (mips_load): Make "file" const.
2426 * remote-sim.c (gdbsim_load): Make "args" const.
2427 * remote.c (remote_load): Make "name" const.
2428 * symfile.c (generic_load): Make "args" const.
2429 * target-delegates.c: Rebuild.
2430 * target.c (target_load): Make "arg" const.
2431 (debug_to_load): Make "args" const.
2432 * target.h (struct target_ops) <to_load>: Make parameter const.
2433 (target_load): Update.
2434
34a68019
TT
24352014-06-26 Tom Tromey <tromey@redhat.com>
2436
2437 PR symtab/16902:
2438 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2439 (dwarf2_physname, read_partial_die)
2440 (guess_partial_die_structure_name, fixup_partial_die)
2441 (guess_full_die_structure_name, anonymous_struct_prefix)
2442 (dwarf2_name): Use per-BFD obstack.
2443
efc889c1
YQ
24442014-06-26 Yao Qi <yao@codesourcery.com>
2445
2446 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2447 dummyframe and this_id into inner block below.
2448
4395285e
YQ
24492014-06-26 Yao Qi <yao@codesourcery.com>
2450
2451 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2452 with "signal_pass[0]" in the initialization of signal_pass.
2453
aef92902
MM
24542014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2455
2456 * record-btrace.c (record_btrace_generating_corefile)
2457 (record_btrace_prepare_to_generate_core)
2458 (record_btrace_done_generating_core): New.
2459 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2460 (record_btrace_store_registers, record_btrace_prepare_to_store):
2461 Forward request when generating a core file.
2462 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2463 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2464 to_done_generating_core.
2465
5fff78c4
MM
24662014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2467
2468 * target.h (target_ops) <to_prepare_to_generate_core>
2469 <to_done_generating_core>: New.
2470 (target_prepare_to_generate_core, target_done_generating_core): New.
2471 * target.c (target_prepare_to_generate_core)
2472 (target_done_generating_core): New.
2473 * target-delegates.c: Regenerate.
2474 * gcore.c: (write_gcore_file): Rename to ...
2475 (write_gcore_file_1): ...this.
2476 (write_gcore_file): Call target_prepare_to_generate_core
2477 and target_done_generating_core.
2478
1d1f1ccb
MM
24792014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2480
2481 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2482 * gcore.c (write_gcore_file): Free memory returned from
2483 make_corefile_notes.
2484 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2485 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2486
3343ef86
YQ
24872014-06-24 Yao Qi <yao@codesourcery.com>
2488
2489 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2490 (arm_linux_init_abi): Set skip_trampoline_code with
2491 gdbarch_skip_trampoline_code instead of
2492 find_solib_trampoline_target.
2493
18d18ac8
YQ
24942014-06-24 Yao Qi <yao@codesourcery.com>
2495
2496 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2497 arm_skip_bx_reg returns non-zero.
2498
80d8d390
YQ
24992014-06-24 Yao Qi <yao@codesourcery.com>
2500
2501 * arm-tdep.c (arm_skip_bx_reg): New function.
2502 (arm_skip_stub): Call arm_skip_bx_reg.
2503
6a18a01c
DB
25042014-06-23 Don Breazeal <donb@codesourcery.com>
2505
2506 * MAINTAINERS: Add myself as write-after-approval maintainer.
2507
8e9db26e
PA
25082014-06-23 Pedro Alves <palves@redhat.com>
2509
2510 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2511 DR_CONTROL before setting DR0..DR3.
2512 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2513 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2514 bits of DR_CONTROL related to the debug register slot being
2515 disabled. If all slots are vacant, clear local slowdown as well,
2516 and assert DR_CONTROL is 0.
2517
70afc5b7
SC
25182014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2519
2520 * python/lib/gdb/command/xmethods.py
2521 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2522 current progspace only if the string "progspace" matches LOCUS_RE.
2523
840ed64d
JK
25242014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2525
2526 Fix --with-system-readline with readline-6.3 patch 5.
2527 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2528 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2529 types.
2530
26f2dc30
TT
25312014-06-20 Tom Tromey <tromey@redhat.com>
2532
2533 * dwarf2read.c (dw2_get_real_path): Use correct type in
2534 OBSTACK_CALLOC.
2535 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2536
125f8a3d
GB
25372014-06-20 Gary Benson <gbenson@redhat.com>
2538
2539 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2540 * common/glibc_thread_db.h: Likewise.
2541 * common/i386-cpuid.h: Likewise.
2542 * common/i386-gcc-cpuid.h: Likewise.
2543 * common/linux-btrace.h: Likewise.
2544 * common/linux-osdata.h: Likewise.
2545 * common/linux-procfs.h: Likewise.
2546 * common/linux-ptrace.h: Likewise.
2547 * common/mips-linux-watch.h: Likewise.
2548 * common/linux-btrace.c: Moved to nat.
2549 * common/linux-osdata.c: Likewise.
2550 * common/linux-procfs.c: Likewise.
2551 * common/linux-ptrace.c: Likewise.
2552 * common/mips-linux-watch.c: Likewise.
2553 * nat/gdb_thread_db.h: Moved from common.
2554 * nat/glibc_thread_db.h: Likewise.
2555 * nat/i386-cpuid.h: Likewise.
2556 * nat/i386-gcc-cpuid.h: Likewise.
2557 * nat/linux-btrace.c: Likewise.
2558 * nat/linux-btrace.h: Likewise.
2559 * nat/linux-osdata.c: Likewise.
2560 * nat/linux-osdata.h: Likewise.
2561 * nat/linux-procfs.c: Likewise.
2562 * nat/linux-procfs.h: Likewise.
2563 * nat/linux-ptrace.c: Likewise.
2564 * nat/linux-ptrace.h: Likewise.
2565 * nat/mips-linux-watch.c: Likewise.
2566 * nat/mips-linux-watch.h: Likewise.
2567 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2568 (object file files): Reordered.
2569 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2570 of glibc_thread_db.h.
2571
42995dbd
GB
25722014-06-20 Gary Benson <gbenson@redhat.com>
2573
2574 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2575 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2576 (i386_dr_low): Likewise.
2577 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2578 (i386_dr_low_set_addr): Likewise.
2579 (i386_dr_low_get_addr): Likewise.
2580 (i386_dr_low_can_set_control): Likewise.
2581 (i386_dr_low_set_control): Likewise.
2582 (i386_dr_low_get_control): Likewise.
2583 (i386_dr_low_get_status): Likewise.
2584 (i386_get_debug_register_length): Likewise.
2585 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2586 (i386_dr_low): Likewise.
2587 * nat/i386-dregs.c (i386-low.h): Remove include.
2588 (i386-nat.h): Likewise.
2589 (nat/i386-dregs.h): New include.
2590 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2591 (i386_dr_low_set_addr): Likewise.
2592 (i386_dr_low_get_addr): Likewise.
2593 (i386_dr_low_can_set_control): Likewise.
2594 (i386_dr_low_set_control): Likewise.
2595 (i386_dr_low_get_control): Likewise.
2596 (i386_dr_low_get_status): Likewise.
2597 (i386_get_debug_register_length): Likewise.
2598 (debug_hw_points): Likewise.
2599
3ed9baed
IB
26002014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2601
2602 * Makefile.in (SFILES): Add d-exp.y.
2603 (YYFILES): Add d-exp.c.
2604 (YYOBJ): Add d-exp.o.
2605 (local-maintainer-clean): Delete d-exp.c.
2606 * d-exp.y: New file.
2607 * d-lang.h (d_parse): New declaration.
2608 (d_error): New declaration.
2609 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2610 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2611 PREC_ORDER operators.
2612 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2613
78c164b0
YQ
26142014-06-19 Yao Qi <yao@codesourcery.com>
2615
2616 * gdbthread.h (any_running): Remove the declaration.
2617 * thread.c (any_running): Remove.
2618
f6e29b6e
YQ
26192014-06-19 Yao Qi <yao@codesourcery.com>
2620
2621 * gdbthread.h (struct thread_info) <state>: Change its type to
2622 'enum thread_state'. Update comments.
2623
034f788c
PA
26242014-06-19 Pedro Alves <palves@redhat.com>
2625
2626 * gdbthread.h (ALL_THREADS): Delete.
2627 (ALL_NON_EXITED_THREADS): New macro.
2628 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2629 instead of ALL_THREADS.
2630 * infrun.c (find_thread_needs_step_over)
2631 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2632 instead of ALL_THREADS.
2633 * record-btrace.c (record_btrace_open)
2634 (record_btrace_stop_recording, record_btrace_close)
2635 (record_btrace_is_replaying, record_btrace_resume)
2636 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2637 * remote.c (append_pending_thread_resumptions): Likewise.
2638 * thread.c (thread_apply_all_command): Likewise.
2639
46e33252
GB
26402014-06-19 Gary Benson <gbenson@redhat.com>
2641
2642 * i386-nat.c (i386_stopped_by_watchpoint):
2643 Use i386_dr_stopped_by_watchpoint.
2644 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2645 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2646
3a8ee006
GB
26472014-06-19 Gary Benson <gbenson@redhat.com>
2648
2649 * nat/i386-dregs.c: New file.
2650 * Makefile.in (i386-dregs.o): New rule.
2651 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2652 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2653 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2654 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2655 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2656 * config/i386/go32.mh (NATDEPFILES): Likewise.
2657 * config/i386/linux.mh (NATDEPFILES): Likewise.
2658 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2659 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2660 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2661 * i386-nat.h (debug_hw_points): New declaration.
2662 * i386-nat.c (breakpoint.h): Remove include.
2663 (command.h): Likewise.
2664 (target.h): Likewise.
2665 (gdb_assert.h): Likewise.
2666 (debug_hw_points): Made nonstatic.
2667 (debug_printf): Now in i386-dregs.c.
2668 (TARGET_HAS_DR_LEN_8): Likewise.
2669 (DR_CONTROL_SHIFT): Likewise.
2670 (DR_CONTROL_SIZE): Likewise.
2671 (DR_RW_EXECUTE): Likewise.
2672 (DR_RW_WRITE): Likewise.
2673 (DR_RW_READ): Likewise.
2674 (DR_RW_IORW): Likewise.
2675 (DR_LEN_1): Likewise.
2676 (DR_LEN_2): Likewise.
2677 (DR_LEN_4): Likewise.
2678 (DR_LEN_8): Likewise.
2679 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2680 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2681 (DR_ENABLE_SIZE): Likewise.
2682 (DR_LOCAL_SLOWDOWN): Likewise.
2683 (DR_GLOBAL_SLOWDOWN): Likewise.
2684 (DR_CONTROL_RESERVED): Likewise.
2685 (I386_DR_CONTROL_MASK): Likewise.
2686 (I386_DR_VACANT): Likewise.
2687 (I386_DR_LOCAL_ENABLE): Likewise.
2688 (I386_DR_GLOBAL_ENABLE): Likewise.
2689 (I386_DR_DISABLE): Likewise.
2690 (I386_DR_SET_RW_LEN): Likewise.
2691 (I386_DR_GET_RW_LEN): Likewise.
2692 (I386_DR_WATCH_HIT): Likewise.
2693 (i386_wp_op_t): Likewise.
2694 (i386_show_dr): Likewise.
2695 (i386_length_and_rw_bits): Likewise.
2696 (i386_insert_aligned_watchpoint): Likewise.
2697 (i386_remove_aligned_watchpoint): Likewise.
2698 (i386_handle_nonaligned_watchpoint): Likewise.
2699 (i386_update_inferior_debug_regs): Likewise.
2700 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2701 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2702 (i386_region_ok_for_watchpoint):
2703 Use i386_dr_region_ok_for_watchpoint.
2704 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2705
322a8e06
GB
27062014-06-19 Gary Benson <gbenson@redhat.com>
2707
2708 * i386-nat.c (i386_insert_hw_breakpoint): Use
2709 i386_insert_watchpoint.
2710 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2711
8f26655c
GB
27122014-06-19 Gary Benson <gbenson@redhat.com>
2713
2714 * i386-nat.c (i386_dr_show): Renamed to
2715 i386_show_dr and made static. All uses updated.
2716 (i386_dr_length_and_rw_bits): Renamed to
2717 i386_length_and_rw_bits and made static.
2718 All uses updated.
2719 (i386_dr_insert_aligned_watchpoint): Renamed to
2720 i386_insert_aligned_watchpoint and made static.
2721 All uses updated.
2722 (i386_dr_remove_aligned_watchpoint): Renamed to
2723 i386_remove_aligned_watchpoint and made static.
2724 All uses updated.
2725 (i386_dr_update_inferior_debug_regs): Renamed to
2726 i386_update_inferior_debug_regs and made static.
2727 All uses updated.
2728 * nat/i386-dregs.h (i386_dr_show): Removed.
2729 (i386_dr_length_and_rw_bits): Likewise.
2730 (i386_dr_insert_aligned_watchpoint): Likewise.
2731 (i386_dr_remove_aligned_watchpoint): Likewise.
2732 (i386_dr_update_inferior_debug_regs): Likewise.
2733
992c7d70
GB
27342014-06-19 Gary Benson <gbenson@redhat.com>
2735
2736 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2737 * configure: Regenerate.
2738 * config.in: Likewise.
2739 * main.c (signal.h): New include.
2740 (setup_alternate_signal_stack): New function.
2741 (captured_main): Call the above.
2742 * cp-support.c (signal.h): New include.
2743 (catch_demangler_crashes): New flag.
2744 (SIGJMP_BUF): New define.
2745 (SIGSETJMP): Likewise.
2746 (SIGLONGJMP): Likewise.
2747 (gdb_demangle_jmp_buf): New static global.
2748 (gdb_demangle_attempt_core_dump): Likewise.
2749 (gdb_demangle_signal_handler): New function.
2750 (gdb_demangle): If catch_demangler_crashes is set, install the
2751 above signal handler before calling bfd_demangle, and restore
2752 the original signal handler afterwards. Display the offending
2753 symbol and call demangler_warning the first time a segmentation
2754 fault is caught.
2755 (_initialize_cp_support): New maint set/show command.
2756
eae7090b
GB
27572014-06-19 Gary Benson <gbenson@redhat.com>
2758
2759 * utils.h (resource_limit_kind): New enum.
2760 (can_dump_core): New declaration.
2761 (warn_cant_dump_core): Likewise.
2762 (dump_core): Likewise.
2763 * utils.c (dump_core): Made nonstatic. Added new
2764 parameter "limit_kind".
2765 (can_dump_core): Made nonstatic. Moved printing code to...
2766 (warn_cant_dump_core): New function.
2767 (can_dump_core_warn): Likewise.
2768 (internal_vproblem): Replace calls to can_dump_core with
2769 calls to can_dump_core_warn. Supply new argument to each.
2770
57fcfb1b
GB
27712014-06-19 Gary Benson <gbenson@redhat.com>
2772
2773 * utils.h (demangler_vwarning): New declaration.
2774 (demangler_warning): Likewise.
2775 * utils.c (struct internal_problem)
2776 <user_settable_should_quit>: New field.
2777 <user_settable_should_dump_core>: Likewise
2778 (internal_error_problem): Add values for above new fields.
2779 (internal_warning_problem): Likewise.
2780 (demangler_warning_problem): New static global.
2781 (demangler_vwarning): New function.
2782 (demangler_warning): Likewise.
2783 (add_internal_problem_command): Selectively add commands.
2784 (_initialize_utils): New internal problem command.
2785 * maint.c (maintenance_demangler_warning): New function.
2786 (_initialize_maint_cmds): New command.
2787
17a40b44
TT
27882014-06-18 Tom Tromey <tromey@redhat.com>
2789
2790 * f-valprint.c (info_common_command_for_block): Update.
2791 * symtab.h (struct general_symbol_info) <common_block>: Now
2792 const.
2793
346d1dfe
TT
27942014-06-18 Tom Tromey <tromey@redhat.com>
2795
2796 * symtab.h (struct symtab) <blockvector>: Now const.
2797 * ada-lang.c (ada_add_global_exceptions): Update.
2798 * buildsym.c (augment_type_symtab): Update.
2799 * dwarf2read.c (dw2_lookup_symbol): Update.
2800 * jit.c (finalize_symtab): Update.
2801 * jv-lang.c (add_class_symtab_symbol): Update.
2802 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2803 Update.
2804 * objfiles.c (objfile_relocate1): Update.
2805 * psymtab.c (lookup_symbol_aux_psymtabs)
2806 (maintenance_check_psymtabs): Update.
2807 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2808 Update.
2809 * spu-tdep.c (spu_catch_start): Update.
2810 * symmisc.c (dump_symtab_1): Update.
2811 * symtab.c (lookup_global_symbol_from_objfile)
2812 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2813 (basic_lookup_transparent_type_quick)
2814 (basic_lookup_transparent_type, find_pc_sect_symtab)
2815 (find_pc_sect_line, search_symbols): Update.
2816 * block.c (find_block_in_blockvector): Make "bl" const.
2817 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2818 const.
2819 (blockvector_contains_pc): Make "bv" const.
2820 (block_for_pc_sect): Update.
2821 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2822 (blockvector_contains_pc): Update.
2823 * breakpoint.c (resolve_sal_pc): Update.
2824 * inline-frame.c (block_starting_point_at): Update.
2825
1834676b
TT
28262014-06-18 Tom Tromey <tromey@redhat.com>
2827
2828 * completer.c (complete_line): Make "line_buffer" const.
2829 * completer.h (complete_line): Update.
2830
ac1a991b
TT
28312014-06-18 Tom Tromey <tromey@redhat.com>
2832
2833 * symtab.c (add_macro_name): Remove unneeded cast.
2834
5bc98e52
TT
28352014-06-18 Tom Tromey <tromey@redhat.com>
2836
2837 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2838 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2839
8236def8
TT
28402014-06-18 Tom Tromey <tromey@redhat.com>
2841
2842 * probe.c (info_probes_for_ops): Make "arg" const.
2843 * probe.h (info_probes_for_ops): Update.
2844
3977b71f
TT
28452014-06-18 Tom Tromey <tromey@redhat.com>
2846
2847 * varobj.c (varobj_create): Update.
2848 * valops.c (value_of_this): Update.
2849 * tracepoint.c (add_local_symbols, scope_info): Update.
2850 * symtab.h (struct general_symbol_info) <block>: Now const.
2851 * symtab.c (skip_prologue_sal)
2852 (default_make_symbol_completion_list_break_on)
2853 (skip_prologue_using_sal): Update.
2854 * stack.h (iterate_over_block_locals)
2855 (iterate_over_block_local_vars): Update.
2856 * stack.c (print_frame_args): Update.
2857 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2858 parameter const.
2859 (get_selected_block): Make return type const.
2860 * python/py-frame.c (frapy_block): Update.
2861 * python/py-block.c (gdbpy_block_for_pc): Update.
2862 * p-exp.y (%union) <bval>: Now const.
2863 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2864 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2865 * m2-exp.y (%union) <bval>: Now const.
2866 * linespec.c (get_current_search_block): Make return type const.
2867 (create_sals_line_offset, find_label_symbols): Update.
2868 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2869 Update.
2870 (block_starting_point_at): Make "block" const.
2871 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2872 (check_exception_resume): Update.
2873 * guile/scm-frame.c (gdbscm_frame_block): Update.
2874 * guile/scm-block.c (gdbscm_lookup_block): Update.
2875 * frame.h (get_frame_block): Update.
2876 (get_selected_block): Make return type const.
2877 * frame.c (frame_id_inner): Update.
2878 * f-valprint.c (info_common_command_for_block)
2879 (info_common_command): Update.
2880 * dwarf2loc.c (dwarf2_find_location_expression)
2881 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2882 (locexpr_describe_location_piece): Update.
2883 * c-exp.y (%union) <bval>: Now const.
2884 * breakpoint.c (resolve_sal_pc): Update.
2885 * blockframe.c (get_frame_block):Make return type const.
2886 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2887 (block_innermost_frame): Update.
2888 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2889 (block_for_pc, block_for_pc_sect): Update.
2890 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2891 'pblock' const.
2892 (block_for_pc_sect, block_for_pc): Make return type const.
2893 * ax-gdb.c (gen_expr): Update.
2894 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2895 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2896 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2897 (ada_read_var_value): Update.
2898 * ada-exp.y (struct name_info) <block>: Now const.
2899 (%union): Likewise.
2900 (block_lookup): Constify.
2901
b9228891
GB
29022014-06-18 Gary Benson <gbenson@redhat.com>
2903
2904 * nat/i386-dregs.h: New file.
2905 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2906 * i386-nat.h (i386-dregs.h): New include.
2907 (DR_FIRSTADDR): Now in i386-dregs.h.
2908 (DR_LASTADDR): Likewise.
2909 (DR_NADDR): Likewise.
2910 (DR_STATUS): Likewise.
2911 (DR_CONTROL): Likewise.
2912 (i386_debug_reg_state): Likewise.
2913 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2914
a1aa2221
LM
29152014-06-18 Don Breazeal <donb@codesourcery.com>
2916
2917 * breakpoint.c (set_longjmp_breakpoint): Call
2918 momentary_breakpoint_from_master with additional argument.
2919 (set_longjmp_breakpoint_for_call_dummy): Call
2920 momentary_breakpoint_from_master with additional argument.
2921 (set_std_terminate_breakpoint): Call
2922 momentary_breakpoint_from_master with additional argument.
2923 (momentary_breakpoint_from_master): Add argument to function
2924 definition and use it to initialize structure member flag.
74228e77 2925 (clone_momentary_breakpoint): Call
a1aa2221
LM
2926 momentary_breakpoint_from_master with additional argument.
2927 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2928 member flags set in momentary_breakpoint_from_master.
2929
4be83cc2
GB
29302014-06-18 Gary Benson <gbenson@redhat.com>
2931
2932 * i386-nat.c (i386_show_dr): Renamed to
2933 i386_dr_show and made nonstatic. All uses updated.
2934 (i386_length_and_rw_bits): Renamed to
2935 i386_dr_length_and_rw_bits and made nonstatic.
2936 All uses updated.
2937 (i386_insert_aligned_watchpoint): Renamed to
2938 i386_dr_insert_aligned_watchpoint and made nonstatic.
2939 All uses updated.
2940 (i386_remove_aligned_watchpoint): Renamed to
2941 i386_dr_remove_aligned_watchpoint and made nonstatic.
2942 All uses updated.
2943 (i386_update_inferior_debug_regs): Renamed to
2944 i386_dr_update_inferior_debug_regs and made nonstatic.
2945 All uses updated.
2946
131aa0d4
GB
29472014-06-18 Gary Benson <gbenson@redhat.com>
2948
2949 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2950 (i386_dr_low_can_set_control): Likewise.
2951 (i386_dr_low_set_addr): Likewise.
2952 (i386_dr_low_set_control): Likewise.
2953 (i386_dr_low_get_addr): Likewise.
2954 (i386_dr_low_get_status): Likewise.
2955 (i386_dr_low_get_control): Likewise.
2956 (i386_insert_aligned_watchpoint): Use new macros.
2957 (i386_update_inferior_debug_regs): Likewise.
2958 (i386_stopped_data_address): Likewise.
2959
d9305f7f
GB
29602014-06-18 Gary Benson <gbenson@redhat.com>
2961
2962 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2963 New parameter. All uses updated.
2964
ea008da4
GB
29652014-06-18 Gary Benson <gbenson@redhat.com>
2966
2967 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2968 All uses updated.
2969
1b6d4134
GB
29702014-06-18 Gary Benson <gbenson@redhat.com>
2971
2972 * i386-nat.c (debug_printf): New macro.
2973 (i386_get_debug_register_length): Likewise.
2974 (TARGET_HAS_DR_LEN_8): Use above macro.
2975 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2976 and printf_unfiltered. Use phex to format values.
2977
9b4550ef
GB
29782014-06-18 Gary Benson <gbenson@redhat.com>
2979
2980 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2981 Make const.
2982
6e62758f
GB
29832014-06-18 Gary Benson <gbenson@redhat.com>
2984
2985 * i386-nat.c: Comment changes.
2986
51c79e94
GB
29872014-06-18 Gary Benson <gbenson@redhat.com>
2988
2989 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2990
3e11889a
GB
29912014-06-18 Gary Benson <gbenson@redhat.com>
2992
2993 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2994 (i386_insert_aligned_watchpoint): Likewise.
2995 (i386_remove_aligned_watchpoint): Likewise.
2996 (i386_handle_nonaligned_watchpoint): Likewise.
2997
fc6e2f03
GB
29982014-06-18 Gary Benson <gbenson@redhat.com>
2999
3000 * i386-nat.c: Whitespace changes.
3001
2afe7d50
SB
30022014-06-17 Samuel Bronson <naesten@gmail.com>
3003
3004 * MAINTAINERS: Update Roland McGrath's email address.
3005 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3006 Red Hat a while ago, and giving me a current address.
2afe7d50 3007
3bca49ee
TT
30082014-06-17 Tom Tromey <tromey@redhat.com>
3009
3010 * utils.h (savestring): Remove declaration.
3011
6e366df1
TT
30122014-06-17 Tom Tromey <tromey@redhat.com>
3013
3014 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3015
6be47f0c
KS
30162014-06-16 Keith Seitz <keiths@redhat.com>
3017
3018 PR mi/15863
3019 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3020 to update the varobj if inferior_ptid is null_ptid.
3021
7bc112c1
TT
30222014-06-16 Tom Tromey <tromey@redhat.com>
3023
3024 * target.h (struct target_ops) <to_info_proc>: Make parameter
3025 const.
3026 (target_info_proc): Update.
3027 * target.c (target_info_proc): Make "args" const.
3028 * procfs.c (procfs_info_proc): Update.
3029 * linux-tdep.c (linux_info_proc): Update.
3030 (linux_core_info_proc_mappings): Make "args" const.
3031 (linux_core_info_proc): Update.
3032 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3033 * gdbarch.c: Rebuild.
3034 * gdbarch.h: Rebuild.
3035 * corelow.c (core_info_proc): Update.
3036
fee354ee
TT
30372014-06-16 Tom Tromey <tromey@redhat.com>
3038
3039 * target.h (struct target_ops) <to_disconnect>: Make parameter
3040 const.
3041 (target_disconnect): Update.
3042 * target.c (target_disconnect): Make "args" const.
3043 * target-delegates.c: Rebuild.
3044 * remote.c (remote_disconnect): Update.
3045 * record.h (record_disconnect): Update.
3046 * record.c (record_disconnect): Update.
3047 * inf-child.c (inf_child_disconnect): Update.
3048
a30bf1f1
TT
30492014-06-16 Tom Tromey <tromey@redhat.com>
3050
3051 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3052 * target.c (debug_to_rcmd, default_rcmd): Update.
3053 * target-delegates.c: Rebuild.
3054 * remote.c (remote_rcmd): Update.
3055 * monitor.c (monitor_rcmd): Update.
3056
d03de421
PA
30572014-06-16 Pedro Alves <palves@redhat.com>
3058
3059 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3060 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3061 have OBJF_SHARED set.
3062 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3063 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3064 instead of OBJF_USERLOADED.
3065 * objfiles.h (OBJF_SHARED): Update comment.
3066 (userloaded_objfile_contains_address_p): Rename to ...
3067 (shared_objfile_contains_address_p): ... this, and update
3068 comments.
3069 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3070 new objfile.
3071 (remove_symbol_file_command): Skip objfiles that don't have
3072 OBJF_SHARED set.
3073
99f4262f
TT
30742014-06-16 Tom Tromey <tromey@redhat.com>
3075
3076 * minsyms.h (prim_record_minimal_symbol)
3077 (prim_record_minimal_symbol_and_info): Update comments.
3078
97d66cc6
EZ
30792014-06-14 Eli Zaretskii <eliz@gnu.org>
3080
3081 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3082 or --without-guile, according to how GDB was built.
3083
635c7e8a
TT
30842014-06-13 Tom Tromey <tromey@redhat.com>
3085
3086 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3087 to help_list.
3088 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3089 to help_list.
3090 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3091 help_list.
3092 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3093 help_list.Pass all_commands, not -1, to help_list.
3094 * cli/cli-dump.c (dump_command, append_command)
3095 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3096 (binary_dump_command, binary_append_command): Pass all_commands,
3097 not -1, to help_list.
3098 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3099 -1, to help_list.
3100 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3101 -1, to help_list.
3102 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3103 help_list.
3104 * top.c (set_history): Pass all_commands, not -1, to help_list.
3105 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3106 all_commands, not -1, to help_list.
3107 * symfile.c (overlay_command): Pass all_commands, not -1, to
3108 help_list.
3109 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3110 help_list.
3111 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3112 help_list.
3113 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3114 -1, to help_list.
3115 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3116 not -1, to help_list.
3117 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3118 not -1, to help_list.
3119 * maint.c (maintenance_command, maintenance_info_command)
3120 (maintenance_print_command, maintenance_set_cmd): Pass
3121 all_commands, not -1, to help_list.
3122 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3123 help_list.
3124 * language.c (set_check): Pass all_commands, not -1, to help_list.
3125 * infcmd.c (unset_command): Pass all_commands, not -1, to
3126 help_list.
3127 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3128 help_list.
3129 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3130 help_list.
3131 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3132 help_list.
3133 * breakpoint.c (save_command): Pass all_commands, not -1, to
3134 help_list.
3135 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3136 all_commands, not -1, to help_list.
3137
b94ade42
PL
31382014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3139
3140 * regcache.c (struct register_to_invalidate): New structure.
3141 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3142 functions.
3143 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3144
31f628ae
YQ
31452014-06-12 Yao Qi <yao@codesourcery.com>
3146
3147 * varobj.c (varobj_get_num_children): Call
3148 varobj_is_dynamic_p.
3149 (varobj_list_children): Likewise.
3150 (varobj_update): Likewise. Update comments.
3151
cde5ef40
YQ
31522014-06-12 Yao Qi <yao@codesourcery.com>
3153
3154 * varobj.c (varobj_pretty_printed_p): Rename to ...
3155 (varobj_is_dynamic_p): ... this. New function.
3156 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3157 (varobj_is_dynamic_p): Declare.
3158 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3159 (mi_print_value_p, varobj_update_one): Likewise.
3160
576ea091
YQ
31612014-06-12 Pedro Alves <pedro@codesourcery.com>
3162 Yao Qi <yao@codesourcery.com>
3163
3164 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3165 (varobj_get_iterator): Wrap up code for pretty-printer by
3166 "#if HAVE_PYTHON" and "#endif".
3167 (update_dynamic_varobj_children): Likewise.
3168
827f100c
YQ
31692014-06-12 Pedro Alves <pedro@codesourcery.com>
3170 Yao Qi <yao@codesourcery.com>
3171
3172 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3173 gdb_python_initialized is false. Move some code from varobj.c.
3174 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3175 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3176 (struct varobj_item): Moved to varobj-iter.h".
3177 (varobj_clear_saved_item): New function.
3178 (update_dynamic_varobj_children): Move python-related code to
3179 py-varobj.c.
3180 (free_variable): Call varobj_clear_saved_item and
3181 varobj_iter_delete.
3182
e5250216
YQ
31832014-06-12 Pedro Alves <pedro@codesourcery.com>
3184 Yao Qi <yao@codesourcery.com>
3185
3186 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3187 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3188 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3189 (py-varobj.o): New rule.
3190 * python/py-varobj.c: New file.
3191 * python/python-internal.h (py_varobj_get_iterator): Declare.
3192 * varobj-iter.h: New file.
3193 * varobj.c: Include "varobj-iter.h"
3194 (struct varobj) <child_iter>: Change its type from "PyObject *"
3195 to "struct varobj_iter *".
3196 <saved_item>: Likewise.
3197 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3198 [HAVE_PYTHON] (varobj_get_iterator): New function.
3199 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3200 python-specific code to python/py-varobj.c.
3201 (install_visualizer): Call varobj_iter_delete instead of
3202 Py_XDECREF.
3203 * varobj.h (varobj_ensure_python_env): Declare.
3204
5a2e0d6e
YQ
32052014-06-12 Yao Qi <yao@codesourcery.com>
3206
3207 * varobj.c (struct varobj_item): New structure.
3208 (create_child_with_value): Update declaration.
3209 (varobj_add_child): Replace arguments 'name' and 'value' with
3210 'item'. All callers updated.
3211 (install_dynamic_child): Likewise.
3212 (update_dynamic_varobj_children): Likewise.
3213 (varobj_add_child): Likewise.
3214 (create_child_with_value): Likewise.
3215
919b9a93
JB
32162014-06-11 Joel Brobecker <brobecker@adacore.com>
3217
3218 * NEWS: Create a new section for the next release branch.
3219 Rename the section of the current branch, now that it has
3220 been cut.
3221
71a55bdf
JB
32222014-06-11 Joel Brobecker <brobecker@adacore.com>
3223
3224 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3225 * version.in: Bump version to 7.8.50.DATE-cvs.
3226
364fe1f7
PA
32272014-06-11 Pedro Alves <palves@redhat.com>
3228
3229 PR remote/17028
3230 * ser-mingw.c (net_windows_socket_check_pending): New function.
3231 (net_windows_select_thread): Ignore spurious wakeups. Use
3232 net_windows_socket_check_pending.
3233 (net_windows_wait_handle): Check for pending events with
3234 ioctlsocket, through net_windows_socket_check_pending, instead of
3235 checking the socket's event.
3236
5a6c7709
SC
32372014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3238
3239 * python/python-internal.h (gdb_PyObject_GetAttrString)
3240 (gdb_PyObject_HasAttrString): New inline function definitions.
3241 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3242 char * of the second argument to PyObject_GetAttrString.
74228e77 3243
0e58ee40
JB
32442014-06-10 Joel Brobecker <brobecker@adacore.com>
3245
3246 * serial.c (serial_write): Fix index of character to be printed
3247 in call to serial_logchar when serial debug traces are enabled.
3248
d190df30
JB
32492014-06-10 Joel Brobecker <brobecker@adacore.com>
3250
3251 * gdbtypes (resolve_dynamic_range): Add function description.
3252
b4b01d36
PA
32532014-06-09 Pedro Alves <palves@redhat.com>
3254
3255 * linux-nat.c (linux_child_follow_fork): Initialize status with
3256 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3257 inner block. Only pass the signal to PTRACE_DETACH if in pass
3258 state.
3259
3657956b
GB
32602014-06-09 Gary Benson <gbenson@redhat.com>
3261
3262 * common/signals.c (gdb_signal_from_host): Reorder to separate
3263 the always-available ANSI-standard signals from the signals that
3264 require checking.
3265 (do_gdb_signal_to_host): Likewise.
3266 * proc-events.c (signal_table): Likewise.
3267
c077881a
HZ
32682014-06-08 Hui Zhu <hui@codesourcery.com>
3269
3270 * common/linux-ptrace.c (linux_disable_event_reporting): New
3271 function.
3272 * common/linux-ptrace.h (linux_disable_event_reporting): New
3273 declaration.
3274 * linux-nat.c (linux_child_follow_fork): Do a single step before
3275 detach.
3276
4186eb54
KS
32772014-06-07 Keith Seitz <keiths@redhat.com>
3278
3279 Revert:
3280 PR c++/16253
3281 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3282 from symbol_matches_domain in symtab.c. All local callers
3283 of symbol_matches_domain updated.
3284 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3285 search STRUCT_DOMAIN.
3286 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3287 independently. standard_lookup will do that automatically.
3288 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3289 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3290 (cp_lookup_symbol_in_namespace): Likewise.
3291 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3292 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3293 may return a STRUCT_DOMAIN match.
3294 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3295 * cp-support.c: Include language.h.
3296 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3297 VAR_DOMAIN.
3298 * psymtab.c (match_partial_symbol): Compare the requested
3299 domain with the symbol's domain directly.
3300 (lookup_partial_symbol): Likewise.
3301 * symtab.c (lookup_symbol_in_language): Explain when/why
3302 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3303 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3304 appropriate languages.
3305 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3306 and moved to ada-lang.c
3307 (lookup_block_symbol): Explain that this function only returns
3308 symbol matching the requested DOMAIN.
3309 Compare the requested domain with the symbol's domain directly.
3310 (iterate_over_symbols): Compare the requested domain with the
3311 symbol's domain directly.
3312 * symtab.h (symbol_matches_domain): Remove.
3313
25326a28 33142014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3315
3316 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3317 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3318 (gdbscm_guile_version_is_at_least): Declare.
3319 (gdbscm_scm_string_to_int): Declare.
3320 * guile/guile.c (gdbscm_guile_major_version): New global.
3321 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3322 (guile_datadir): New static global.
3323 (gdbscm_guile_data_directory): New function.
3324 (initialize_scheme_side): Update.
3325 (misc_guile_functions): Add guile-data-directory.
3326 (initialize_gdb_module): Fetch guile version number.
3327 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3328 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3329 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3330 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3331 comments.
3332 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3333 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3334 * guile/scm-value.c (gdbscm_value_to_string): Only call
3335 scm_port_conversion_strategy if Guile version >= 2.0.6.
3336
0a770bb2 33372014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3338
3339 * main.c (print_gdb_help): Add -q and --silent.
3340
73ba372c
GB
33412014-06-06 Gary Benson <gbenson@redhat.com>
3342
3343 * common/signals.c: Remove preprocessor conditionals for
3344 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3345 SIGSEGV and SIGTERM.
3346 * proc-events.c: Likewise.
3347
c33b2f12
MM
33482014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3349
3350 * symfile.c (symfile_free_objfile): Remove restriction to
3351 OBJF_USERLOADED.
3352 * symfile-mem.c (symbol_file_add_from_memory): Call
3353 add_target_sections_of_objfile.
3354
fb934770
LC
33552014-06-05 Ludovic Courtès <ludo@gnu.org>
3356
3357 * guile/scm-value.c (gdbscm_history_append_x): Use
3358 'vlscm_get_value_smob_arg_unsafe' instead of
3359 'vlscm_scm_to_value'.
3360
6ef284bd
SM
33612014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3362
3363 PR mi/15806
3364 * utils.c (printchar): Don't escape at all if quoter is NUL.
3365 Update function documentation to clarify effect of parameter
3366 QUOTER.
3367 * remote.c (escape_buffer): Pass '\\' as the quoter to
3368 fputstrn_unfiltered.
3369 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3370 generate the output.
3371 (mi_solib_unloaded): Same.
3372
270c9937
JB
33732014-06-05 Joel Brobecker <brobecker@adacore.com>
3374
3375 * development.sh: Delete.
3376 * Makefile.in (config.status): Adjust dependency on development.sh.
3377 * configure.ac: Adjust development.sh source call.
3378 * configure: Regenerate.
3379
16f691fb
DE
33802014-06-04 Doug Evans <xdje42@gmail.com>
3381
3382 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3383 is_scheme_bkpt, spec.
3384 (bpscm_make_breakpoint_smob): Initialize new members.
3385 (gdbscm_create_breakpoint_x): Split into two ...
3386 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3387 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3388 (scheme_function breakpoint_functions): Update.
3389 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3390 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3391 register-breakpoint!.
3392
ef7cab6b
JB
33932014-06-04 Joel Brobecker <brobecker@adacorer.com>
3394
3395 PR server/17023
3396 * mem-break.c (z_type_supported): Return zero if
3397 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3398
012370f6
TT
33992014-06-04 Tom Tromey <tromey@redhat.com>
3400
3401 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3402 value_from_contents_and_address_unresolved.
3403 (ada_template_to_fixed_record_type_1): Likewise.
3404 (ada_which_variant_applies): Likewise.
3405 * value.h (value_from_contents_and_address_unresolved): Declare.
3406 * value.c (value_from_contents_and_address_unresolved): New
3407 function.
3408 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3409 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3410 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3411
92e2a17f
TT
34122014-06-04 Tom Tromey <tromey@redhat.com>
3413
3414 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3415
c0939df1
TT
34162014-06-04 Tom Tromey <tromey@redhat.com>
3417
3418 * procfs.c (procfs_attach): Make "args" const.
3419 * windows-nat.c (windows_attach): Make "args" const.
3420 * nto-procfs.c (procfs_attach): Make "args" const.
3421 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3422 * go32-nat.c (go32_attach): Make "args" const.
3423 * gnu-nat.c (gnu_attach): Make "args" const.
3424 * darwin-nat.c (darwin_attach): Make "args" const.
3425 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3426 * linux-nat.c (linux_nat_attach): Make "args" const.
3427 * remote.c (extended_remote_attach_1, extended_remote_attach):
3428 Make "args" const.
3429 * target.h (struct target_ops) <to_attach>: Make "args" const.
3430 (find_default_attach): Likewise.
3431 * utils.c (parse_pid_to_attach): Make "args" const.
3432 * utils.h (parse_pid_to_attach): Update.
3433
8eaff7cd
TT
34342014-06-04 Tom Tromey <tromey@redhat.com>
3435
3436 * target-delegates.c: Rebuild.
3437 * target.c (default_thread_address_space): New function.
3438 (target_thread_address_space): Simplify.
3439 * target.h (struct target_ops) <to_thread_address_space>: Add
3440 TARGET_DEFAULT_FUNC.
3441
1913f160
DE
34422014-06-04 Doug Evans <xdje42@gmail.com>
3443
3444 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3445
70ad5bff
MM
34462014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3447
3448 * record-btrace.c: Include event-loop.h and inf-loop.h.
3449 (record_btrace_resume_exec_dir)
3450 (record_btrace_async_inferior_event_handler)
3451 (record_btrace_handle_async_inferior_event): New.
3452 (record_btrace_open): Create async event handler.
3453 (record_btrace_close): Delete async event handler.
3454 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3455 Mark async event handler.
3456 (record_btrace_execution_direction): New.
3457 (init_record_btrace_ops): Initialize to_execution_direction.
3458
b6210538
DE
34592014-06-03 Doug Evans <xdje42@gmail.com>
3460
3461 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3462 (gdbscm_make_parameter): Ditto.
3463
a5b1fd27
DE
34642014-06-03 Doug Evans <dje@google.com>
3465
3466 * exec.c (exec_close_1): Call clear_section_table instead of
3467 resize_section_table.
3468 (clear_section_table): New function.
3469 (resize_section_table): Make static. Rename arg num_added to
3470 adjustment.
3471 * exec.h (clear_section_table): Declare.
3472 (resize_section_table): Delete.
3473 * progspace.c (release_program_space): Call clear_section_table
3474 instead of resize_section_table.
3475
0c6e92a5
SC
34762014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3477
3478 * NEWS (Python Scripting): Add entry about the new xmethods
3479 feature.
3480
883964a7
SC
34812014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3482
3483 * python/py-xmethods.c: New file.
3484 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3485 (objfpy_dealloc): XDECREF on the new xmethods field.
3486 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3487 field.
3488 (objfpy_get_xmethods): New function.
3489 (objfile_getset): New entry 'xmethods'.
3490 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3491 (pspy_dealloc): XDECREF on the new xmethods field.
3492 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3493 field.
3494 (pspy_get_xmethods): New function.
3495 (pspace_getset): New entry 'xmethods'.
3496 * python/python-internal.h: Add declarations for new functions.
3497 * python/python.c (_initialize_python): Invoke
3498 gdbpy_initialize_xmethods.
3499 * python/lib/gdb/__init__.py (xmethods): New
3500 attribute.
3501 * python/lib/gdb/xmethod.py: New file.
3502 * python/lib/gdb/command/xmethods.py: New file.
3503
58992dc5
SC
35042014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3505
3506 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3507 best match method returned by find_overload_match is an xmethod.
3508 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3509 the best matching operator returned by find_overload_match is an
3510 xmethod.
3511 * valops.c: #include "extension.h".
3512 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3513 Return void. The list of matching source methods is returned in
3514 "fn_list" and a vector of matching debug method workers is
3515 returned in "xm_worker_vec". Update all callers.
3516 (value_find_oload_method_list): Likewise.
3517 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3518 non-NULL, then the index of the best matching method in this
3519 vector is returned. Update all callers.
3520 (find_overload_match): Include xmethods while performing overload
3521 resolution.
3522
e81e7f5e
SC
35232014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3524
3525 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3526 * extension-priv.h (struct extension_language_ops): Add the
3527 xmethod interface.
3528 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3529 get_matching_xmethod_workers, get_xmethod_argtypes,
3530 invoke_xmethod, free_xmethod_worker,
3531 free_xmethod_worker_vec): New functions.
3532 * extension.h: #include "common/vec.h".
3533 New function declarations.
3534 (struct xmethod_worker): New struct.
3535 (VEC (xmethod_worker_ptr)): New vector type.
3536 (xmethod_worker_ptr): New typedef.
3537 (xmethod_worker_vec): Likewise.
3538 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3539 builtin_type.
3540 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3541 (struct builtin_type): New field "xmethod".
3542 * valarith.c (value_ptradd): Assert that the value argument is not
3543 lval_xcallable.
3544 * valops.c (value_must_coerce_to_target): Return 0 for
3545 lval_xcallable values.
3546 * value.c (struct value): New field XM_WORKER in the field
3547 LOCATION.
3548 (value_address, value_raw_address): Return 0 for lval_xcallable
3549 values.
3550 (set_value_address): Assert that the value is not an
3551 lval_xcallable.
3552 (value_free): Free the associated xmethod worker when freeing
3553 lval_xcallable values.
3554 (set_value_component_location): Assert that the WHOLE value is not
3555 lval_xcallable.
3556 (value_of_xmethod, call_xmethod): New functions.
3557 * value.h: Declare "struct xmethod_worker".
3558 Declare new functions value_of_xmethod, call_xmethod.
3559
ef370185
JB
35602014-06-03 Joel Brobecker <brobecker@adacore.com>
3561 Pedro Alves <palves@redhat.com>
3562
3563 PR breakpoints/17000
3564 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3565 New function, extracted from software_breakpoint_inserted_here_p.
3566 (software_breakpoint_inserted_here_p): Replace factored out code
3567 by call to find_non_raw_software_breakpoint_inserted_here.
3568 (bp_target_info_copy_insertion_state): New function.
3569 (bkpt_insert_location): Handle the case of a single-step
3570 breakpoint already inserted at the same address.
3571 (bkpt_remove_location): Handle the case of a single-step
3572 breakpoint still inserted at the same address.
3573 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3574 breakpoint already inserted at the same address.
3575 (deprecated_remove_raw_breakpoint): Handle the case of a
3576 non-raw breakpoint still inserted at the same address.
3577 (find_single_step_breakpoint): New function, extracted from
3578 single_step_breakpoint_inserted_here_p.
3579 (find_single_step_breakpoint): New function,
3580 factored out from single_step_breakpoint_inserted_here_p.
3581 (single_step_breakpoint_inserted_here_p): Reimplement.
3582
1e2ccb61
BM
35832014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3584
3585 Pushed by Joel Brobecker <brobecker@adacore.com>
3586 * source.c (show_substitute_path_command): Fix display of matching
3587 substitution rules.
3588
d3448d85
GB
35892014-06-03 Gary Benson <gbenson@redhat.com>
3590
3591 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3592
06eb1586
DE
35932014-06-02 Doug Evans <xdje42@gmail.com>
3594
3595 Add parameter support for Guile.
3596 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3597 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3598 (scm-param.o): New rule.
3599 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3600 (gdbscm_misc_error): Declare.
3601 (gdbscm_canonicalize_command_name): Declare.
3602 (gdbscm_scm_to_host_string): Declare.
3603 (gdbscm_scm_from_host_string): Declare.
3604 (gdbscm_initialize_parameters): Declare.
3605 * guile/guile.c (initialize_gdb_module): Call
3606 gdbscm_initialize_parameters.
3607 * guile/lib/gdb.scm: Export parameter symbols.
3608 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3609 cmdscm_canonicalize_name and made public. All callers updated.
3610 * guile/scm-exception.c (gdbscm_misc_error): New function.
3611 * guile/scm-param.c: New file.
3612 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3613 (gdbscm_scm_to_host_string): New function.
3614 (gdbscm_scm_from_host_string): New function.
3615 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3616
e698b8c4
DE
36172014-06-02 Doug Evans <xdje42@gmail.com>
3618
3619 Add command support for Guile.
3620 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3621 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3622 (scm-cmd.o): New rule.
3623 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3624 (gdbscm_user_error_p): Declare.
3625 (gdbscm_parse_command_name): Declare.
3626 (gdbscm_valid_command_class_p): Declare.
3627 (gdbscm_initialize_commands): Declare.
3628 * guile/guile.c (initialize_gdb_module): Call
3629 gdbscm_initialize_commands.
3630 * guile/lib/gdb.scm: Export command symbols.
3631 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3632 (throw-user-error): New function.
3633 * guile/scm-cmd.c: New file.
3634 * guile/scm-exception.c (user_error_symbol): New static global.
3635 (gdbscm_user_error_p): New function.
3636 (gdbscm_initialize_exceptions): Set user_error_symbol.
3637 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3638
fb1f94b0
PM
36392014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3640
3641 * top.c (command_loop): Handle comments here...
3642 (command_line_input): ... not here.
3643
ded03782
DE
36442014-06-02 Doug Evans <xdje42@gmail.com>
3645
3646 Add progspace support for Guile.
3647 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3648 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3649 (scm-progspace.o): New rule.
3650 * guile/guile-internal.h (pspace_smob): New typedef.
3651 (psscm_pspace_smob_pretty_printers): Declare.
3652 (psscm_pspace_smob_from_pspace): Declare.
3653 (psscm_scm_from_pspace): Declare.
3654 * guile/guile.c (initialize_gdb_module): Call
3655 gdbscm_initialize_pspaces.
3656 * guile/lib/gdb.scm: Export progspace symbols.
3657 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3658 support.
3659 (append-pretty-printer!): Ditto.
3660 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3661 Implement.
3662 * guile/scm-progspace.c: New file.
3663
397998fc
AM
36642014-06-03 Alan Modra <amodra@gmail.com>
3665
3666 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3667 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3668
6aa5f3a6
DE
36692014-06-02 Doug Evans <dje@google.com>
3670
3671 Add support for skeletonless type units.
3672 * dwarf2read.c (struct dwarf2_per_objfile): New member
3673 n_allocated_type_units.
3674 (struct dwarf2_per_objfile) <tu_stats>: New member
3675 nr_all_type_units_reallocs.
3676 (create_signatured_type_table_from_index): Initialize
3677 n_allocated_type_units
3678 (create_all_type_units): Ditto.
3679 (add_type_unit): Move up in file. New arg slot.
3680 All callers updated. Increase space for all_type_units more
3681 efficiently.
3682 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3683 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3684 (lookup_dwp_signatured_type): Ditto.
3685 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3686 All callers updated.
3687 (build_type_psymtabs_1): Leave type_unit_groups as
3688 NULL if no TUs present.
3689 (print_tu_stats): New function.
3690 (process_skeletonless_type_unit): New function.
3691 (process_dwo_file_for_skeletonless_type_units): New
3692 function.
3693 (process_skeletonless_type_units): New function.
3694 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3695 Call print tu_stats if debugging enabled.
3696
41fac0cf
PA
36972014-06-02 Pedro Alves <palves@redhat.com>
3698
3699 * breakpoint.c (build_target_command_list): Don't build a command
3700 list if we have any duplicate location that isn't a dprintf.
3701
cd1608cc
PA
37022014-06-02 Pedro Alves <palves@redhat.com>
3703
3704 * breakpoint.c (dprintf_breakpoint_hit): New function.
3705 (initialize_breakpoint_ops): Install it as dprintf's
3706 breakpoint_hit method.
3707
486ef3b9
JB
37082014-06-02 Joel Brobecker <brobecker@adacore.com>
3709
3710 * source.c (substitute_path_rule_matches): Simplify using
3711 filename_ncmp instead of FILENAME_CMP.
3712
230cd560
JB
37132014-06-02 Joel Brobecker <brobecker@adacore.com>
3714
3715 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3716
16954d5d
LC
37172014-06-01 Ludovic Courtès <ludo@gnu.org>
3718
3719 * configure.ac: When Guile is available, check for the
3720 availability of 'scm_new_smob'.
3721 * configure, config.h.in: Regenerate.
3722 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3723 function.
3724
53e8a631
AB
37252014-05-30 Andrew Burgess <aburgess@broadcom.com>
3726
3727 * frame.c (struct frame_info): Add stop_string field.
3728 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3729 (get_prev_frame_always): Old content moved into
3730 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3731 TRY_CATCH, handle MEMORY_ERROR exceptions.
3732 (frame_stop_reason_string): New function definition.
3733 * frame.h (unwind_stop_reason_to_string): Extend comment to
3734 mention frame_stop_reason_string.
3735 (frame_stop_reason_string): New function declaration.
3736 * stack.c (frame_info): Switch to frame_stop_reason_string.
3737 (backtrace_command_1): Switch to frame_stop_reason_string.
3738 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3739 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3740 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3741
70e38b8e
AB
37422014-05-30 Andrew Burgess <aburgess@broadcom.com>
3743
3744 * frame.c (frame_stop_reason_string): Rename to ...
3745 (unwind_stop_reason_to_string): this.
3746 * frame.h (frame_stop_reason_string): Rename to ...
3747 (unwind_stop_reason_to_string): this.
3748 * stack.c (frame_info): Update call to frame_stop_reason_string.
3749 (backtrace_command_1): Likewise.
3750 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3751 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3752
938f0e2f
AB
37532014-05-30 Andrew Burgess <aburgess@broadcom.com>
3754
3755 * frame.c (remove_prev_frame): New function.
3756 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3757 remove_prev_frame.
3758
a09dd441
PA
37592014-05-29 Pedro Alves <palves@redhat.com>
3760
3761 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3762 and make it const. When a single-step decays to a continue,
3763 clear 'step', not 'hw_step'. Pass whether the caller wanted
3764 to step to user_visible_resume_ptid, not what we ask the
3765 target to do.
3766
bdc36728
PA
37672014-05-29 Pedro Alves <palves@redhat.com>
3768
3769 * infrun.c (process_event_stop_test, handle_step_into_function)
3770 (handle_step_into_function_backward): Adjust.
3771 Don't set the even thread's stop_step and call stop_waiting before
3772 calling end_stepping_range. Instead do that ...
3773 (end_stepping_range): ... here. Take an ecs pointer parameter.
3774
22bcd14b
PA
37752014-05-29 Pedro Alves <palves@redhat.com>
3776
3777 * infrun.c (stop_stepping): Rename to ...
3778 (stop_waiting): ... this.
3779 (proceed): Update comment.
3780 (process_event_stop_test, handle_inferior_event)
3781 (handle_signal_stop, handle_step_into_function)
3782 (handle_step_into_function_backward): Update.
3783
4ae57c05
PA
37842014-05-29 Pedro Alves <palves@redhat.com>
3785
3786 * infcall.c (run_inferior_call): Don't check whether the current
3787 thread is running after the proceed call.
3788
329ea579
PA
37892014-05-29 Pedro Alves <palves@redhat.com>
3790 Tom Tromey <tromey@redhat.com>
3791
3792 * NEWS: Mention "maint set target-async", "set mi-async", and that
3793 background execution commands are now always available.
3794 * target.h (target_async_permitted): Update comment.
3795 * target.c (target_async_permitted, target_async_permitted_1):
3796 Default to 1.
3797 (set_target_async_command): Rename to ...
3798 (maint_set_target_async_command): ... this.
3799 (show_target_async_command): Rename to ...
3800 (maint_show_target_async_command): ... this.
3801 (_initialize_target): Adjust.
3802 * infcmd.c (prepare_execution_command): Make extern.
3803 * inferior.h (prepare_execution_command): Declare.
3804 * infrun.c (set_observer_mode): Leave target async alone.
3805 * mi/mi-interp.c (mi_interpreter_init): Install
3806 mi_on_sync_execution_done as sync_execution_done observer.
3807 (mi_on_sync_execution_done): New function.
3808 (mi_execute_command_input_handler): Don't print the prompt if we
3809 just started a synchronous command with an async target.
3810 (mi_on_resume): Check sync_execution before printing prompt.
3811 * mi/mi-main.h (mi_async_p): Declare.
3812 * mi/mi-main.c: Include gdbcmd.h.
3813 (mi_async_p): New function.
3814 (mi_async, mi_async_1): New globals.
3815 (set_mi_async_command, show_mi_async_command, mi_async): New
3816 functions.
3817 (exec_continue): Call prepare_execution_command.
3818 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3819 (mi_execute_async_cli_command): Use mi_async_p.
3820 (_initialize_mi_main): Install "set mi-async". Make
3821 "target-async" a deprecated alias.
3822
92bcb5f9
PA
38232014-05-29 Pedro Alves <palves@redhat.com>
3824
3825 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3826 (_initialize_cli_interp): Adjust.
3827 * event-loop.c: Include "observer.h".
3828 (start_event_loop): Notify 'command_error' observers instead of
3829 calling display_gdb_prompt. Remove FIXME comment.
3830 * event-top.c (display_gdb_prompt): Remove call into the
3831 interpreters.
3832 * inf-loop.c: Include "observer.h".
3833 (inferior_event_handler): Notify 'command_error' observers instead
3834 of calling display_gdb_prompt.
3835 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3836 observers instead of calling display_gdb_prompt.
3837 * interps.c (interp_set): Don't call display_gdb_prompt.
3838 (current_interp_display_prompt_p): Delete.
3839 * interps.h (interp_prompt_p): Delete declaration.
3840 (interp_prompt_p_ftype): Delete.
3841 (struct interp_procs) <prompt_proc_p>: Delete field.
3842 (current_interp_display_prompt_p): Delete declaration.
3843 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3844 (_initialize_mi_interp): Adjust.
3845 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3846 'command_error' observers.
3847 (tui_on_sync_execution_done, tui_on_command_error): New
3848 functions.
3849 (tui_display_prompt_p): Delete.
3850 (_initialize_tui_interp): Adjust.
3851
fd664c91
PA
38522014-05-29 Pedro Alves <palves@redhat.com>
3853
3854 PR gdb/13860
3855 * cli/cli-interp.c: Include infrun.h and observer.h.
3856 (cli_uiout, cli_interp): New globals.
3857 (cli_on_signal_received, cli_on_end_stepping_range)
3858 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3859 functions.
3860 (cli_interpreter_init): Install them as 'end_stepping_range',
3861 'signal_received' 'signal_exited', 'exited' and 'no_history'
3862 observers.
3863 (_initialize_cli_interp): Remove cli_interp local.
3864 * infrun.c (handle_inferior_event): Call the several stop reason
3865 observers instead of printing the stop reason directly.
3866 (end_stepping_range): New function.
3867 (print_end_stepping_range_reason, print_signal_exited_reason)
3868 (print_exited_reason, print_signal_received_reason)
3869 (print_no_history_reason): Make static, and add an uiout
3870 parameter. Print to that instead of to CURRENT_UIOUT.
3871 * infrun.h (print_end_stepping_range_reason)
3872 (print_signal_exited_reason, print_exited_reason)
3873 (print_signal_received_reason print_no_history_reason): New
3874 declarations.
3875 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3876 'mi_uiout'.
3877 <cli_uiout>: New field.
3878 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3879 uiout for CLI output. Install 'signal_received',
3880 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3881 observers.
3882 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3883 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3884 (mi_on_no_history): New functions.
3885 (ui_out_free_cleanup): Delete function.
3886 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3887 instead use the one already stored in the MI interpreter data.
3888 (mi_ui_out): Adjust.
3889 * tui/tui-interp.c: Include infrun.h and observer.h.
3890 (tui_interp): New global.
3891 (tui_on_signal_received, tui_on_end_stepping_range)
3892 (tui_on_signal_exited, tui_on_exited)
3893 (tui_on_no_history): New functions.
3894 (tui_init): Install them as 'end_stepping_range',
3895 'signal_received' 'signal_exited', 'exited' and 'no_history'
3896 observers.
3897 (_initialize_tui_interp): Delete tui_interp local.
3898
8817a6f2
PA
38992014-05-29 Pedro Alves <palves@redhat.com>
3900
3901 PR gdb/15713
3902 * linux-nat.c (linux_nat_resume_callback): Rename the second
3903 parameter to 'except'. Skip LP if it points to EXCEPT.
3904 (linux_nat_resume): Don't mark the event lwp as not stopped
3905 before resuming sibling lwps. Instead ask
3906 linux_nat_resume_callback to skip the event lwp. Mark it as not
3907 stopped after actually resuming it.
3908 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3909 resuming it.
3910 (wait_lwp): Mark the lwp as stopped here.
3911 (stop_wait_callback): Mark the lwp as not stopped right after
3912 resuming it. Don't mark lwps as stopped here.
3913 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3914 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3915
251bde03
PA
39162014-05-29 Pedro Alves <palves@redhat.com>
3917
3918 PR PR15693
3919 * infrun.c (resume): Determine how much to resume depending on
3920 whether the caller wanted a step, not whether we can hardware step
3921 the target. Mark all threads that we intend to run as running,
3922 unless we're calling an inferior function.
3923 (normal_stop): If the thread is running an infcall, don't finish
3924 thread state.
3925 * target.c (target_resume): Don't mark threads as running here.
3926
7f3c0343
JB
39272014-05-28 Joel Brobecker <brobecker@adacore.com>
3928
3929 * serial.c (_initialize_serial): Remove support for
3930 the "set remotebaud" and "show remotebaud" commands.
3931 * NEWS: Add entry documenting the removal of that command.
3932
ee34b3f9
YQ
39332014-05-28 Yao Qi <yao@codesourcery.com>
3934
3935 * charset.c: Fix typo in comments.
3936
add6c04d
GB
39372014-05-27 Gary Benson <gbenson@redhat.com>
3938
3939 * utils.c (internal_vproblem): Prompt for a bug report.
3940
92c48fc5
AW
39412014-05-26 Andy Wingo <wingo@igalia.com>
3942
3943 * guile/scm-arch.c (arscm_mark_arch_smob):
3944 * guile/scm-block.c (bkscm_mark_block_smob)
3945 (bkscm_mark_block_syms_progress_smob):
3946 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3947 * guile/scm-exception.c (exscm_mark_exception_smob):
3948 * guile/scm-frame.c (frscm_mark_frame_smob):
3949 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3950 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3951 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3952 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3953 (ppscm_mark_pretty_printer_worker_smob):
3954 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3955 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3956 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3957 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3958 mark functions.
3959 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3960 function.
3961
b2715b27
AW
39622014-05-26 Andy Wingo <wingo@igalia.com>
3963 Doug Evans <xdje42@gmail.com>
3964
3965 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3966 empty_base_class. All uses updated.
3967 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3968 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3969 Adapt all callers.
3970 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3971 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3972 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3973 (gdbscm_gsmob_has_property_p, add_property_name)
3974 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3975 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3976 (gdb-object-has-property?, gdb-object-properties): Remove.
3977 (gdb-object-kind): Renamed from gsmob-kind.
3978
214ab2da
AW
39792014-05-26 Andy Wingo <wingo@igalia.com>
3980
3981 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3982 * configure: Regenerate.
3983
589fdceb
MM
39842014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3985
3986 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3987
67b5c0c1
MM
39882014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3989
3990 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3991 (replay_memory_access_read_only, replay_memory_access_read_write)
3992 (replay_memory_access_types, replay_memory_access)
3993 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3994 (cmd_set_record_btrace, cmd_show_record_btrace)
3995 (cmd_show_replay_memory_access): New.
3996 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3997 (record_btrace_remove_breakpoint): Replace
3998 record_btrace_allow_memory_access with replay_memory_access.
3999 (_initialize_record_btrace): Add commands.
4000 * NEWS: Announce it.
4001
036cd381
RR
40022014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4003
4004 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4005
c77c1e42
RR
40062014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4007
4008 * MAINTAINERS (Write After Approval): Move self back from
4009 paper trail.
4010
45741a9c
PA
40112014-05-22 Pedro Alves <palves@redhat.com>
4012
4013 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4014 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4015 (disable_randomization, enum exec_direction_kind)
4016 (execution_direction, stop_registers, start_remote)
4017 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4018 (wait_for_inferior, normal_stop, get_last_target_status)
4019 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4020 (insert_step_resume_breakpoint_at_sal)
4021 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4022 (set_step_info, print_stop_event, signal_stop_state)
4023 (signal_print_state, signal_pass_state, signal_stop_update)
4024 (signal_print_update, signal_pass_update)
4025 (update_signals_program_target, clear_exit_convenience_vars)
4026 (displaced_step_dump_bytes, update_observer_mode)
4027 (signal_catch_update, gdb_signal_from_command): Move
4028 declarations ...
4029 * infrun.h: ... to this new file.
4030 * amd64-tdep.c: Include infrun.h.
4031 * annotate.c: Include infrun.h.
4032 * arch-utils.c: Include infrun.h.
4033 * arm-linux-tdep.c: Include infrun.h.
4034 * arm-tdep.c: Include infrun.h.
4035 * break-catch-sig.c: Include infrun.h.
4036 * breakpoint.c: Include infrun.h.
4037 * common/agent.c: Include infrun.h instead of inferior.h.
4038 * corelow.c: Include infrun.h.
4039 * event-top.c: Include infrun.h.
4040 * go32-nat.c: Include infrun.h.
4041 * i386-tdep.c: Include infrun.h.
4042 * inf-loop.c: Include infrun.h.
4043 * infcall.c: Include infrun.h.
4044 * infcmd.c: Include infrun.h.
4045 * infrun.c: Include infrun.h.
4046 * linux-fork.c: Include infrun.h.
4047 * linux-nat.c: Include infrun.h.
4048 * linux-thread-db.c: Include infrun.h.
4049 * monitor.c: Include infrun.h.
4050 * nto-tdep.c: Include infrun.h.
4051 * procfs.c: Include infrun.h.
4052 * record-btrace.c: Include infrun.h.
4053 * record-full.c: Include infrun.h.
4054 * remote-m32r-sdi.c: Include infrun.h.
4055 * remote-mips.c: Include infrun.h.
4056 * remote-notif.c: Include infrun.h.
4057 * remote-sim.c: Include infrun.h.
4058 * remote.c: Include infrun.h.
4059 * reverse.c: Include infrun.h.
4060 * rs6000-tdep.c: Include infrun.h.
4061 * s390-linux-tdep.c: Include infrun.h.
4062 * solib-irix.c: Include infrun.h.
4063 * solib-osf.c: Include infrun.h.
4064 * solib-svr4.c: Include infrun.h.
4065 * target.c: Include infrun.h.
4066 * top.c: Include infrun.h.
4067 * windows-nat.c: Include infrun.h.
4068 * mi/mi-interp.c: Include infrun.h.
4069 * mi/mi-main.c: Include infrun.h.
4070 * python/py-threadevent.c: Include infrun.h.
4071
98eb56a4
PA
40722014-05-22 Pedro Alves <palves@redhat.com>
4073
4074 * infrun.c (handle_inferior_event): Store the exit code for
4075 --return-child-result here, instead of ...
4076 (print_exited_reason): ... here.
4077
17b2616c
PA
40782014-05-21 Pedro Alves <palves@redhat.com>
4079
4080 PR gdb/13860
4081 * gdbthread.h (struct thread_control_state): New field
4082 `command_interp'.
4083 * infrun.c (follow_fork): Copy the new thread control field to the
4084 child fork thread.
4085 (clear_proceed_status_thread): Clear the new thread control field.
4086 (proceed): Set the new thread control field.
4087 * interps.h (command_interp): Declare.
4088 * interps.c (command_interpreter): New global.
4089 (command_interp): New function.
4090 (interp_exec): Set `command_interpreter' while here.
4091 * cli-out.c (cli_uiout_dtor): New function.
4092 (cli_ui_out_impl): Install it.
4093 * mi/mi-interp.c: Include cli-out.h.
4094 (mi_cmd_interpreter_exec): Add comment.
4095 (restore_current_uiout_cleanup): New function.
4096 (ui_out_free_cleanup): New function.
4097 (mi_on_normal_stop): If finishing an execution command started by
4098 a CLI command, or any kind of breakpoint-like event triggered,
4099 print the stop event to the output (CLI) stream.
4100 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4101
5166082f
PA
41022014-05-21 Pedro Alves <palves@redhat.com>
4103
4104 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4105 current source line having changed.
4106 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4107 * infrun.c (normal_stop): Adjust call to
4108 set_current_sal_from_frame.
4109 * source.c (clear_lines_listed_range): New function.
4110 (set_current_source_symtab_and_line, identify_source_line): Clear
4111 the lines listed range.
4112 (line_info): Handle the first "info line" after the current source
4113 line having changed.
4114 * stack.c (print_stack_frame): Remove center handling.
4115 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4116 center sal.line.
4117
c1ee2fb3
PA
41182014-05-21 Pedro Alves <palves@redhat.com>
4119
4120 * inf-child.c (inf_child_mourn_inferior): New function.
4121 * inf-child.h (inf_child_mourn_inferior): New declaration.
4122 * darwin-nat.c (darwin_mourn_inferior): Use
4123 inf_child_mourn_inferior.
4124 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4125 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4126 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4127 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4128 * windows-nat.c (windows_mourn_inferior): Likewise.
4129
5c6d4fb2
DE
41302014-05-21 Doug Evans <xdje42@gmail.com>
4131
250748cb 4132 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4133
4a2722c5
DE
41342014-05-21 Doug Evans <xdje42@gmail.com>
4135
17292b30 4136 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4137 (gdbscm_out_of_range_error): Ditto.
4138 (gdbscm_memory_error): Ditto.
250748cb
DE
4139 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4140 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4141 (gdbscm_out_of_range_error): Update.
4142 (gdbscm_memory_error): Update.
4143 (gdbscm_scm_to_target_string_unsafe): Delete.
4144
6a3cb8e8
PA
41452014-05-21 Pedro Alves <palves@redhat.com>
4146
4147 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4148 globals.
4149 (inf_child_open_target): New function.
4150 (inf_child_open): Use inf_child_open_target to push the target
4151 instead of erroring out.
4152 (inf_child_disconnect, inf_child_close)
4153 (inf_child_maybe_unpush_target): New functions.
4154 (inf_child_target): Install inf_child_disconnect and
4155 inf_child_close. Store a pointer to the returned object.
4156 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4157 declarations.
4158 * target.c (auto_connect_native_target): New global.
4159 (show_default_run_target): New function.
4160 (find_default_run_target): Return NULL if automatically connecting
4161 to the native target is disabled.
4162 (_initialize_target): Install set/show auto-connect-native-target.
4163 * NEWS: Mention "set auto-connect-native-target", and "target
4164 native".
4165 * linux-nat.c (super_close): New global.
4166 (linux_nat_close): Call super_close.
4167 (linux_nat_add_target): Store a pointer to the base class's
4168 to_close method.
4169 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4170 inf_child_maybe_unpush.
4171 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4172 already pushed.
4173 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4174 the inferior. Use inf_child_maybe_unpush_target.
4175 (inf_ttrace_attach): Don't push the target if it is already
4176 pushed.
4177 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4178 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4179 after mourning the inferior. Use inf_child_maybe_unpush_target.
4180 (darwin_attach_pid): Don't push the target if it is already
4181 pushed.
4182 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4183 mourning the inferior. Use inf_child_maybe_unpush_target.
4184 (gnu_detach): Use inf_child_maybe_unpush_target.
4185 * go32-nat.c (go32_create_inferior): Don't push the target if it
4186 is already pushed.
4187 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4188 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4189 (procfs_open): Rename to ...
4190 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4191 comments. Can target_preopen before changing node. Call
4192 inf_child_open_target to push the target explicitly.
4193 (procfs_attach): Don't push the target if it is already pushed.
4194 (procfs_detach): Use inf_child_maybe_unpush_target.
4195 (procfs_create_inferior): Don't push the target if it is already
4196 pushed.
4197 (nto_native_ops): New global.
4198 (procfs_open): Reimplement.
4199 (procfs_native_open): New function.
4200 (init_procfs_targets): Install procfs_native_open as to_open of
4201 "target native". Store a pointer to the "native" target in
4202 nto_native_ops.
4203 * procfs.c (procfs_attach): Don't push the target if it is already
4204 pushed.
4205 (procfs_detach): Use inf_child_maybe_unpush_target.
4206 (procfs_mourn_inferior): Only unpush the target after mourning the
4207 inferior. Use inf_child_maybe_unpush_target.
4208 (procfs_init_inferior): Don't push the target if it is already
4209 pushed.
4210 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4211 if it is already pushed.
4212
930ee1b1
PA
42132014-05-21 Pedro Alves <palves@redhat.com>
4214
4215 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4216 and "procfs" targets are now called "native" instead.
4217
1f5d1b13
PA
42182014-05-21 Pedro Alves <palves@redhat.com>
4219
4220 * go32-nat.c (go32_open): Delete.
4221 (go32_target): Don't override the to_open method.
4222
132f8e03
PA
42232014-05-21 Pedro Alves <palves@redhat.com>
4224
4225 * nto-procfs.c (procfs_can_run): New function.
4226 (nto_procfs_ops): New global.
4227 (init_procfs_targets): New, based on procfs_target. Install
4228 "target native" in addition to "target procfs".
4229 (_initialize_procfs): Call init_procfs_targets instead of adding
4230 the target here.
4231
03c136c3
PA
42322014-05-21 Pedro Alves <palves@redhat.com>
4233
4234 * windows-nat.c (windows_target): Don't override to_shortname,
4235 to_longname or to_doc.
4236
a635d0f3
PA
42372014-05-21 Pedro Alves <palves@redhat.com>
4238
4239 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4240 to_doc.
4241
4f9b5133
PA
42422014-05-21 Pedro Alves <palves@redhat.com>
4243
4244 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4245 to_shortname, to_longname or to_doc.
4246
bc85afde
PA
42472014-05-21 Pedro Alves <palves@redhat.com>
4248
4249 * go32-nat.c (go32_target): Don't override to_shortname,
4250 to_longname or to_doc.
4251
4ebfc96e
PA
42522014-05-21 Pedro Alves <palves@redhat.com>
4253
4254 * inf-child.c (inf_child_open): Remove mention of "child".
4255 (inf_child_target): Rename target to "native" instead of "child".
4256
2648dfed
AA
42572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4258
4259 * Makefile.in (SFILES): Delete "regset.c".
4260 (COMMON_OBS): Delete "regset.o".
4261 * regset.c: Remove.
4262 * regset.h (regset_alloc): Delete prototype.
4263
b13feb94
AA
42642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4265
4266 * sparc-linux-tdep.c (sparc32_linux_gregset)
4267 (sparc32_linux_fpregset): New static regset structures.
4268 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4269 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4270 'fpregset' fields.
4271 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4272 (sparc64_linux_fpregset): New static regset structures.
4273 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4274 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4275 New static regset structures.
4276 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4277 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4278 New static regset structures.
4279 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4280 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4281 New static regset structures.
4282 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4283 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4284 New static regset structures.
4285 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4286
b4fd25c9
AA
42872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4288
4289 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4290 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4291 register maps ("regmaps") from "*regset" to "*regmap". Do this
4292 for all regmap types and variables.
4293 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4294 (sparc32_linux_supply_core_gregset)
4295 (sparc32_linux_collect_core_gregset)
4296 (sparc32_linux_supply_core_fpregset)
4297 (sparc32_linux_collect_core_fpregset): Likewise.
4298 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4299 (sparc_gregmap, sparc_fpregmap): ... these.
4300 (sparc_supply_gregset, sparc_collect_gregset)
4301 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4302 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4303 (_initialize_sparc_nat): Rename regmaps.
4304 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4305 (sparc_gregmap, sparc_fpregmap): ... these.
4306 (sparc_supply_gregset, sparc_collect_gregset)
4307 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4308 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4309 Rename macros to...
4310 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4311 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4312 Likewise.
4313 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4314 Rename to...
4315 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4316 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4317 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4318 regmaps.
4319 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4320 (sparc32_bsd_fpregset): Rename to...
4321 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4322 (sparc32_bsd_fpregmap): ... these.
4323 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4324 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4325 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4326 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4327 (struct sparc_gregmap, struct sparc_fpregmap)
4328 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4329 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4330 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4331 (sparc32_supply_regset, sparc32_collect_gregset)
4332 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4333 prototypes.
4334 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4335 (sparc64_linux_ptrace_gregmap): ... this.
4336 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4337 (_initialize_sparc64_linux_nat): Rename regmaps.
4338 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4339 (sparc64_linux_core_gregmap): ... this.
4340 (sparc64_linux_supply_core_gregset)
4341 (sparc64_linux_collect_core_gregset)
4342 (sparc64_linux_supply_core_fpregset)
4343 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4344 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4345 (sparc64_sol2_fpregset): Rename to...
4346 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4347 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4348 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4349 regmaps.
4350 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4351 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4352 (sparc64_bsd_fpregset): Rename to...
4353 (struct sparc_gregmap, sparc64_sol2_gregmap)
4354 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4355 (sparc64_bsd_fpregmap): ... these.
4356 (sparc64_supply_gregset, sparc64_collect_gregset)
4357 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4358 prototypes.
4359 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4360 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4361 (sparc64fbsd_gregmap): ... this.
4362 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4363 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4364 Rename regmaps.
4365 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4366 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4367 (sparc64nbsd_collect_fpregset): Likewise.
4368 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4369 (sparc64nbsd_gregmap): ... this.
4370 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4371 regmaps.
4372 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4373 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4374 (sparc64obsd_gregmap): ... this.
4375 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4376 regmaps.
4377 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4378 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4379 (sparc32nbsd_gregmap): ... this.
4380 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4381 regmaps.
4382
8fea3224
AA
43832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4384
4385 * score-tdep.c (score7_linux_gregset): New static regset
4386 structure.
4387 (score7_linux_regset_from_core_section): Remove dynamic regset
4388 allocation.
4389 (score_gdbarch_init): Drop allocation of tdep structure.
4390 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4391
24534243
AA
43922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4393
4394 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4395 regset structures.
4396 (am33_regset_from_core_section): Remove dynamic regset
4397 allocations.
4398
b7195f27
AA
43992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4400
4401 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4402 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4403 structures.
4404 (mips_linux_regset_from_core_section): Remove dynamic regset
4405 allocations.
4406 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4407 'gregset64', 'fpregset', and 'fpregset64'.
4408 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4409 deleted tdep fields.
4410
ecc37a5a
AA
44112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4412
4413 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4414 regset structures.
4415 (amd64_regset_from_core_section): Remove dynamic regset
4416 allocations.
4417 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4418 structure.
4419 (amd64obsd_regset_from_core_section): Remove dynamic regset
4420 allocation.
4421 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4422 Likewise.
4423 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4424 x86-common regset supply function.
4425 * i386-tdep.c (i386_collect_gregset): Make static.
4426 (i386_gregset): New global regset structure.
4427 (i386_fpregset, i386_xstateregset): New static regset structures.
4428 (i386_regset_from_core_section): Remove dynamic regset
4429 allocations.
4430 (i386_gdbarch_init): Remove initialization of tdep fields
4431 'gregset', 'fpregset', and 'xstateregset'.
4432 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4433 'fpregset', and 'xstateregset'.
4434 (i386_collect_gregset): Remove prototype.
4435 (i386_gregset): New declaration.
4436 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4437 structure.
4438 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4439 allocation.
4440
b7611c43
AA
44412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4442
4443 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4444 (arm_linux_vfpregset): New static regset structures.
4445 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4446 regset structures.
4447 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4448 and 'vfpregset' fields.
4449
a069a2bd
AA
44502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4451
4452 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4453 (aarch64_linux_fpregset): New static regset structures.
4454 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4455 of regset structures.
4456 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4457 'fpregset' fields.
4458
09424cff
AA
44592014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4460
4461 * regset.h (struct regset): Remove gdbarch field.
4462 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4463 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4464 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4465 Likewise.
4466 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4467 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4468 (ppc32_linux_vsxregset): Likewise.
4469 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4470 via the regcache instead of the regset.
4471 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4472 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4473 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4474 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4475 Likewise.
4476
3ca7dae4
AA
44772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4478
4479 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4480 Constify structures.
4481 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4482 (alphanbsd_aout_gregset): Likewise.
4483 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4484 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4485 Likewise.
4486 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4487 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4488 Likewise.
4489 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4490 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4491 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4492 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4493 * m88k-tdep.c (m88k_gregset): Likewise.
4494 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4495 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4496 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4497 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4498 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4499 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4500 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4501 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4502 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4503 Likewise.
4504 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4505 * sh-tdep.h (sh_corefile_gregset): Likewise.
4506 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4507 * vax-tdep.c (vax_gregset): Likewise.
4508
5876f503
JK
45092014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4510
4511 Fix TLS access for -static -pthread.
4512 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4513 (try_thread_db_load_1): Initialize it.
4514 (thread_db_get_thread_local_address): Call it if LM is zero.
4515 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4516 * target.h (struct target_ops) (to_get_thread_local_address): Add
4517 load_module_addr comment.
4518
0256a6ac
PA
45192014-05-21 Pedro Alves <palves@redhat.com>
4520
4521 * dcache.c (dcache_read_memory_partial): If reading the cache line
4522 fails, fallback to reading just the memory the caller wanted.
4523
227533ac
DE
45242014-05-20 Doug Evans <dje@google.com>
4525
4526 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4527 instead of get_current_arch.
4528
936d2992
PA
45292014-05-20 Pedro Alves <palves@redhat.com>
4530
4531 * NEWS: Mention that compare-sections now works with all targets.
4532
4533 * remote.c (PACKET_qCRC): New enum value.
4534 (remote_verify_memory): Don't send qCRC if the target has no
4535 execution. Use packet_support/packet_ok. If the target doesn't
4536 support the qCRC packet, fallback to a deep memory copy.
4537 (compare_sections_command): Say "target image" instead of "remote
4538 executable".
4539 (_initialize_remote): Add PACKET_qCRC to the list of config
4540 packets that have no associated command. Extend comment.
4541 * target.c (simple_verify_memory, default_verify_memory): New
4542 function.
4543 * target.h (struct target_ops) <to_verify_memory>: Default to
4544 default_verify_memory.
4545 (simple_verify_memory): New declaration.
4546 * target-delegates.c: Regenerate.
4547
e59fa00f
MM
45482014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4549
4550 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4551
f2205de0
HZ
45522014-05-20 Hui Zhu <hui@codesourcery.com>
4553 Yao Qi <yao@codesourcery.com>
4554
4555 PR backtrace/16558
4556 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4557 and change address of sp and pc.
4558
c4e54771
TT
45592014-05-19 Tom Tromey <tromey@redhat.com>
4560
4561 * gdbtypes.c (rank_function): Use XNEWVEC.
4562 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4563
73051182
DE
45642014-05-19 Doug Evans <dje@google.com>
4565
4566 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4567 build_type_unit_groups and moved closer to only caller. Remove
4568 arguments. All references updated. Remove outdated .gdb_index
4569 comment.
4570 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4571 build_type_psymtabs_1.
4572
8832e7e3
DE
45732014-05-19 Doug Evans <dje@google.com>
4574
4575 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4576 n_type_unit_groups, all_type_unit_groups. All uses removed.
4577 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4578 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4579 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4580 (add_type_unit_group_to_table): Delete.
4581
cd8ae15e
DE
45822014-05-19 Doug Evans <dje@google.com>
4583
4584 * eval.c (evaluate_subexp_standard): Add some comments.
4585
08f4850b
DE
45862014-05-17 Doug Evans <xdje42@gmail.com>
4587
4588 * progspace.c (remove_program_space): Delete, unused.
4589 * progspace.h (remove_program_space): Ditto.
4590
bed8455c
DE
45912014-05-17 Doug Evans <xdje42@gmail.com>
4592
4593 * inferior.c (prune_inferiors): Fix comment.
4594 (remove_inferior_command): Call prune_program_spaces.
4595
8d551b02
DE
45962014-05-16 Doug Evans <dje@google.com>
4597
4598 New command line option -D.
4599 * NEWS: Mention it.
4600 * main.c (set_gdb_data_directory): New function.
4601 (captured_main): Recognize -D. Flag error for --data-directory "".
4602 Call set_gdb_data_directory.
4603 (print_gdb_help): Print --data-directory, -D.
4604 * main.h (set_gdb_data_directory): Declare.
4605 * top.c (staged_gdb_datadir): New static global.
4606 (set_gdb_datadir): Call set_gdb_data_directory
4607 (show_gdb_datadir): New function.
4608 (init_main): Update init of data-directory parameter.
4609
18848e28
GF
46102014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4611
4612 Import the "dirfd" gnulib module.
4613 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4614 * gnulib/aclocal.m4: Update.
4615 * gnulib/config.in: Update.
4616 * gnulib/configure: Update.
4617 * gnulib/import/Makefile.am: Update.
4618 * gnulib/import/Makefile.in: Update.
4619 * gnulib/import/dirfd.c: New.
4620 * gnulib/import/m4/dirfd.m4: New.
4621 * gnulib/import/m4/gnulib-cache.m4: Update.
4622 * gnulib/import/m4/gnulib-comp.m4: Update.
4623
95c64f92
YQ
46242014-05-16 Pierre Muller <muller@sourceware.org>
4625 Yao Qi <yao@codesourcery.com>
4626
4627 * valprint.c (print_wchar): Move the code on checking whether
4628 W is a printable wide char to the default branch of switch
4629 statement below. Call wchar_printable instead of gdb_iswprint.
4630
cac395ea
TM
46312014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4632
19679eca 4633 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4634 ldr.w and ldrd instructions.
4635
83655187
DE
46362014-05-15 Doug Evans <dje@google.com>
4637
4638 * dwarf2read.c (read_structure_type): Delete outdated comments.
4639
dd756689
TT
46402014-05-14 Tom Tromey <tromey@redhat.com>
4641
4642 * macrocmd.c (print_macro_definition): Reindent.
4643
75ddda77
DE
46442014-05-13 Doug Evans <xdje42@gmail.com>
4645
4646 * python/py-cmd.c (cmdpy_completer): Add comment.
4647 (completers): Make const.
4648
b0f16a3e
SM
46492014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4650
4651 * infrun.c (resume): Remove should_resume (unused). Move up
4652 declaration of resume_ptid.
4653
033c3379
TT
46542014-05-13 Tom Tromey <tromey@redhat.com>
4655
4656 * language.h (unop_type_check): Remove.
4657 (binop_type_check): Don't declare.
4658
9b44a3a5
AA
46592014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4660
4661 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4662 call to regcache_raw_collect.
4663
303a33fa
SM
46642014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4665
4666 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4667 mi_console->quote as the quoting character.
4668
196100a0
SM
46692014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4670
4671 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4672
f989a1c8
TT
46732014-04-29 Tom Tromey <tromey@redhat.com>
4674
4675 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4676 "show debug varobj".
4677
9404b58f
KM
46782014-05-07 Kyle McMartin <kyle@redhat.com>
4679
4680 Pushed by Joel Brobecker <brobecker@adacore.com>.
4681 * aarch64-tdep.c (aarch64_software_single_step): New function.
4682 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4683 with aarch64_software_single_step.
4684
5e49ba57
JB
46852014-05-05 Joel Brobecker <brobecker@adacore.com>
4686
4687 GDB 7.7.1 released.
4688
c888a17d
KS
46892014-05-05 Keith Seitz <keiths@redhat.com>
4690
4691 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4692 variable or history value is successfully parsed.
4693
290a839c
YQ
46942014-05-05 Yao Qi <yao@codesourcery.com>
4695 Pedro Alves <palves@redhat.com>
4696
4697 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4698 address of blocks that intersects the requested range. Trim
4699 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4700 sections.
4701 * ctf.c (ctf_xfer_partial): Likewise.
4702
91256dc2
YQ
47032014-05-05 Yao Qi <yao@codesourcery.com>
4704
4705 * printcmd.c (display_command): Remove the check to
4706 target_has_execution.
4707
07284463
MK
47082014-05-03 Mark Kettenis <kettenis@gnu.org>
4709
4710 * ppcobsd-nat.c: Include "obsd-nat.h".
4711 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4712 add_target.
4713 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4714
30a1e6cc
SDJ
47152014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4716
4717 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4718 and 16-bit signed and unsigned arguments. Update comment.
4719 (stap_parse_probe_arguments): Extend code to handle such
4720 arguments. Use warning instead of complaint to notify about
4721 unrecognized bitness.
4722
f33da99a
SDJ
47232014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4724
4725 PR breakpoints/16889
4726 * stap-probe.c (stap_parse_probe_arguments): Simplify
4727 check for non-prefixed probes (i.e., probes whose
4728 arguments do not start with "N@"). Always set the
4729 argument type to a sane value.
4730
95cf3b38
DT
47312014-05-01 David Taylor <dtaylor@emc.com>
4732
4733 * remote.c (compare_sections_command): Add -r option to compare
4734 all loadable read-only sections.
4735
1cfdf534
SC
47362014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4737
4738 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4739 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4740 Update all callers.
4741 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4742 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4743 Remove unused CORE_ADDR argument. Update all callers.
4744
ca4f7f8b
PA
47452014-04-29 Pedro Alves <palves@redhat.com>
4746
4747 * remote.c (struct packet_config) <detect>: Extend comment.
4748 (add_packet_config_cmd): Don't set the config's detect or support
4749 fields here.
4750 (init_all_packet_configs): Also initialize the config's 'detect'
4751 field.
4752 (reset_all_packet_configs_support): New function.
4753 (remote_open_1): Call reset_all_packet_configs_support instead of
4754 init_all_packet_configs.
4755 (_initialize_remote): Initialize all packet configs. Assert that
4756 all packets have an associated command, except a few known
4757 outliers.
4758
11c1ba78
JB
47592014-04-28 Joel Brobecker <brobecker@adacore.com>
4760
4761 * dwarf2read.c (read_subrange_type): Handle dynamic
4762 DW_AT_lower_bound attributes.
4763
8739bc53
JB
47642014-04-28 Joel Brobecker <brobecker@adacore.com>
4765
4766 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4767 dynamic bounds before computing its upper bound.
4768 (ada_discrete_type_low_bound): Same as above with the lower bound.
4769
6f8a3220
JB
47702014-04-28 Joel Brobecker <brobecker@adacore.com>
4771
4772 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4773 range types. Adjust the array handling implementation to
4774 take advantage of this change.
4775 (resolve_dynamic_range): New function, mostly extracted from
4776 resolve_dynamic_bounds.
4777 (resolve_dynamic_array): New function, mostly extracted from
4778 resolve_dynamic_bounds.
4779 (resolve_dynamic_bounds): Delete.
4780 (resolve_dynamic_type): Reimplement. Add handling of
4781 TYPE_CODE_RANGE types.
4782
4d072ce4
JB
47832014-04-28 Joel Brobecker <brobecker@adacore.com>
4784
4785 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4786 handling of parallel ___XA types.
4787
52865325
JB
47882014-04-28 Joel Brobecker <brobecker@adacore.com>
4789
4790 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4791 unnecessary second call to static_unwrap_type.
4792
433e77fa
HZ
47932014-04-27 Hui Zhu <hui@codesourcery.com>
4794
4795 * stack.c (print_frame_info): Call do_gdb_disassembly with
4796 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4797
b51a69ee
DE
47982014-04-26 Doug Evans <xdje42@gmail.com>
4799
4800 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4801
7ae1a6a6
PA
48022014-04-25 Pedro Alves <palves@redhat.com>
4803
4804 PR server/16255
4805 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4806 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4807 and newline from built string.
4808 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4809 (linux_ptrace_attach_fail_reason): ... this.
4810 * linux-nat.c (linux_nat_attach): Adjust to use
4811 linux_ptrace_attach_fail_reason.
4812
4082afcc
PA
48132014-04-25 Pedro Alves <palves@redhat.com>
4814
4815 * remote.c (struct remote_state): Remove multi_process_aware,
4816 non_stop_aware, cond_tracepoints, cond_breakpoints,
4817 breakpoint_commands, fast_tracepoints, static_tracepoints,
4818 install_in_trace, disconnected_tracing,
4819 enable_disable_tracepoints, string_tracing, and
4820 augmented_libraries_svr4_read fields.
4821 (remote_multi_process_p): Move further below in the file.
4822 (struct packet_config): Add comments.
4823 (update_packet_config): Delete function.
4824 (show_packet_config_cmd): Use packet_config_support.
4825 (add_packet_config_cmd): Use NULL as set callback.
4826 (packet_ok): "set remote foo-packet"-style commands no longer
4827 change config->supported -- adjust.
4828 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4829 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4830 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4831 (PACKET_QNonStop, PACKET_multiprocess_feature)
4832 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4833 (PACKET_DisconnectedTracing_feature)
4834 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4835 (set_remote_protocol_packet_cmd): Delete function.
4836 (packet_config_support, packet_support): New functions.
4837 (set_remote_protocol_Z_packet_cmd): Don't call
4838 update_packet_config.
4839 (remote_query_attached, remote_pass_signals)
4840 (remote_program_signals, remote_threads_info)
4841 (remote_threads_extra_info, remote_start_remote): Use
4842 packet_support.
4843 (remote_start_remote): Use packet_config_support and
4844 packet_support.
4845 (init_all_packet_configs): Set all packets to unknown support,
4846 instead of calling update_packet_config.
4847 (remote_check_symbols): Use packet_support.
4848 (remote_supported_packet): Unconditionally set the packet config's
4849 support status.
4850 (remote_multi_process_feature, remote_non_stop_feature)
4851 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4852 (remote_breakpoint_commands_feature)
4853 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4854 (remote_install_in_trace_feature)
4855 (remote_disconnected_tracing_feature)
4856 (remote_enable_disable_tracepoint_feature)
4857 (remote_string_tracing_feature)
4858 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4859 (remote_protocol_features): Adjust to use remote_supported_packet
4860 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4861 "ConditionalTracepoints", "ConditionalBreakpoints",
4862 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4863 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4864 "EnableDisableTracepoints", and "tracenz".
4865 (remote_query_supported): Use packet_support.
4866 (remote_open_1): Adjust.
4867 (extended_remote_attach_1): Use packet_support. Switch on the
4868 result of packet_ok instead of checking whether the packet ended
4869 up disabled.
4870 (remote_vcont_resume): Use packet_support.
4871 (remote_resume, remote_stop_ns, fetch_register_using_p)
4872 (remote_prepare_to_store, store_register_using_P)
4873 (check_binary_download, remote_write_bytes): Use packet_support.
4874 (remote_vkill): Use packet_support. Switch on the result of
4875 packet_ok instead of checking whether the packet ended up
4876 disabled.
4877 (extended_remote_supports_disable_randomization): Use
4878 packet_support.
4879 (extended_remote_run): Switch on the result of packet_ok instead
4880 of checking whether the packet ended up disabled.
4881 (remote_insert_breakpoint, remote_remove_breakpoint)
4882 (remote_insert_watchpoint, remote_remove_watchpoint)
4883 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4884 packet_support.
4885 (remote_search_memory): Use packet_config_support.
4886 (remote_get_thread_local_address, remote_get_tib_address)
4887 (remote_hostio_send_command, remote_can_execute_reverse): Use
4888 packet_support.
4889 (remote_supports_cond_tracepoints)
4890 (remote_supports_cond_breakpoints)
4891 (remote_supports_fast_tracepoints)
4892 (remote_supports_static_tracepoints)
4893 (remote_supports_install_in_trace)
4894 (remote_supports_enable_disable_tracepoint)
4895 (remote_supports_string_tracing)
4896 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4897 the packet config says the feature is enabled or disabled.
4898 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4899 (remote_get_trace_status): Use packet_support.
4900 (remote_set_disconnected_tracing): Adjust to check whether the
4901 feature is enabled with packet_support.
4902 (remote_set_trace_buffer_size, remote_use_agent)
4903 (remote_can_use_agent, remote_supports_btrace): Use
4904 packet_support.
4905 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4906 Use packet_config_support.
4907 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4908 the packet config says the feature is enabled or disabled.
4909 (set_range_stepping): Use packet_support.
4910
bdb52a22
TT
49112014-04-25 Tom Tromey <tromey@redhat.com>
4912
4913 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4914 argument.
4915
e9475ead
SA
49162014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4917
4918 * NEWS: Mention support for C99 variable length arrays.
4919
82eacd52
JB
49202014-04-24 Joel Brobecker <brobecker@adacore.com>
4921
4922 * ada-lang.c (standard_exc): Expand introductory comment.
4923
01f9f808
MS
49242014-04-24 Michael Sturm <michael.sturm@mintel.com>
4925 Walfred Tedeschi <walfred.tedeschi@intel.com>
4926
4927 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4928 AVX512 registers.
4929 (amd64_linux_read_description): Add code to handle AVX512 xstate
4930 mask and return respective tdesc.
4931 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4932 and features/i386/x32-avx512-linux.c.
4933 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4934 (amd64_linux_core_read_description): Add code to handle AVX512
4935 xstate mask and return respective tdesc.
4936 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4937 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4938 calculation.
4939 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4940 (tdesc_amd64_avx512_linux): New prototype.
4941 (tdesc_x32_avx512_linux): Likewise.
4942 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4943 features/i386/x32-avx512.c.
4944 (amd64_ymm_avx512_names): New register names for pseudo
4945 registers YMM16-31.
4946 (amd64_ymmh_avx512_names): New register names for raw registers
4947 YMMH16-31.
4948 (amd64_k_names): New register names for K registers.
4949 (amd64_zmmh_names): New register names for ZMM raw registers.
4950 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4951 (amd64_xmm_avx512_names): New register names for XMM16-31
4952 registers.
4953 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4954 registers.
4955 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4956 if feature is present.
4957 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4958 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4959 (AMD64_NUM_REGS): Adjust to new number of registers.
4960 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4961 registers supplied via XSTATE by AVX512 registers.
4962 (i386_linux_read_description): Add case for AVX512.
4963 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4964 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4965 (i386_linux_core_read_description): Add case for AVX512.
4966 (i386_linux_init_abi): Install supported register note section
4967 for AVX512.
4968 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4969 AVX512.
4970 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4971 registers to be number of zmm7h + 1.
4972 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4973 * i386-tdep.c: Include features/i386/i386-avx512.c.
4974 (i386_zmm_names): Add ZMM pseudo register names array.
4975 (i386_zmmh_names): Add ZMM raw register names array.
4976 (i386_k_names): Add K raw register names array.
4977 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4978 registers. AVX512 has 16 more ZMM registers than there are YMM
4979 registers.
4980 (i386_zmmh_regnum_p): Add function to look up register number of
4981 ZMM raw registers.
4982 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4983 (i386_k_regnum_p): Likewise for K raw registers.
4984 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4985 registers added by AVX512.
4986 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4987 registers added by AVX512.
4988 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4989 added by AVX512.
4990 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4991 (i386_pseudo_register_name): Add ZMM pseudo registers.
4992 (i386_zmm_type): Construct and return vector registers type for ZMM
4993 registers.
4994 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4995 ZMM0-31 pseudo registers and K registers.
4996 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4997 and YMM16-31 registers from register cache.
4998 (i386_pseudo_register_write): Add code to write K, ZMM and
4999 YMM16-31 registers.
5000 (i386_register_reggroup_p): Add code to include/exclude AVX512
5001 registers in/from respective register groups.
5002 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5003 registers if feature is present in xcr0.
5004 (i386_gdbarch_init): Add code to initialize AVX512 feature
5005 variables in tdep structure, wire in pseudo registers and call
5006 initialize_tdesc_i386_avx512.
5007 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5008 variables.
5009 (i386_regnum): Add AVX512 registers.
5010 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5011 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5012 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5013 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5014 512 bits wide.
5015 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5016 (i386_ymm_avx512_regnum_p): Likewise.
5017 (i386_k_regnum_p): Likewise.
5018 (i386_zmm_regnum_p): Likewise.
5019 (i386_zmmh_regnum_p): Likewise.
5020 * i387-tdep.c : Update year in copyright notice.
5021 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5022 XSAVE buffer.
5023 (XSAVE_YMM_AVX512_ADDR): New macro.
5024 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5025 XSAVE buffer.
5026 (XSAVE_XMM_AVX512_ADDR): New macro.
5027 (xsave_avx512_k_offset): New table for K register offsets in
5028 XSAVE buffer.
5029 (XSAVE_AVX512_K_ADDR): New macro.
5030 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5031 in XSAVE buffer.
5032 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5033 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5034 buffer.
5035 (i387_collect_xsave): Add code to collect AVX512 registers from
5036 XSAVE buffer.
5037 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5038 of XMM16-31 registers.
5039 (I387_NUM_K_REGS): New define for number of K registers.
5040 (I387_K0_REGNUM): New define for K0 register number.
5041 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5042 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5043 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5044 registers.
5045 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5046 (I387_XMM16_REGNUM): New define for XMM16 register number.
5047 (I387_YMM0_REGNUM): New define for YMM0 register number.
5048 (I387_KEND_REGNUM): New define for last K register number.
5049 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5050 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5051 number.
5052 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5053 number.
5054 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5055 size.
5056 * features/Makefile: Add AVX512 related files.
5057 * features/i386/32bit-avx512.xml: New file.
5058 * features/i386/64bit-avx512.xml: Likewise.
5059 * features/i386/amd64-avx512-linux.c: Likewise.
5060 * features/i386/amd64-avx512-linux.xml: Likewise.
5061 * features/i386/amd64-avx512.c: Likewise.
5062 * features/i386/amd64-avx512.xml: Likewise.
5063 * features/i386/i386-avx512-linux.c: Likewise.
5064 * features/i386/i386-avx512-linux.xml: Likewise.
5065 * features/i386/i386-avx512.c: Likewise.
5066 * features/i386/i386-avx512.xml: Likewise.
5067 * features/i386/x32-avx512-linux.c: Likewise.
5068 * features/i386/x32-avx512-linux.xml: Likewise.
5069 * features/i386/x32-avx512.c: Likewise.
5070 * features/i386/x32-avx512.xml: Likewise.
5071 * regformats/i386/amd64-avx512-linux.dat: New file.
5072 * regformats/i386/amd64-avx512.dat: Likewise.
5073 * regformats/i386/i386-avx512-linux.dat: Likewise.
5074 * regformats/i386/i386-avx512.dat: Likewise.
5075 * regformats/i386/x32-avx512-linux.dat: Likewise.
5076 * regformats/i386/x32-avx512.dat: Likewise.
5077 * NEWS: Add note about new support for AVX512.
5078
5079
08351840
PA
50802014-04-23 Pedro Alves <palves@redhat.com>
5081
5082 * breakpoint.c (insert_bp_location): Tolerate errors if the
5083 breakpoint is set in a user-loaded objfile.
5084 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5085 location is marked shlib_disabled. If the breakpoint is set in a
5086 user-loaded objfile is a GDB-side memory breakpoint, validate it
5087 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5088 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5089 flag.
5090 * mem-break.c (memory_validate_breakpoint): New function.
5091 * objfiles.c (userloaded_objfile_contains_address_p): New
5092 function.
5093 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5094 * target.h (memory_validate_breakpoint): New declaration.
5095
076855f9
PA
50962014-04-23 Pedro Alves <palves@redhat.com>
5097
5098 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5099 the breakpoint is set in a shared library, only suppress
5100 errors for software breakpoints, not hardware breakpoints.
5101
483805cf
PA
51022014-04-22 Pedro Alves <palves@redhat.com>
5103
5104 * infrun.c (schedlock_applies): New function, factored out from
5105 find_thread_needs_step_over.
5106 (find_thread_needs_step_over): Use it.
5107 (switch_back_to_stepped_thread): Always clear trap_expected if the
5108 step over is finished. Return early if scheduler locking applies.
5109 Look for the stepping thread and a potential step-over thread with
5110 a single loop.
5111 (currently_stepping_or_nexting_callback): Delete.
5112
a75fef0e
NC
51132014-04-22 Nick Clifton <nickc@redhat.com>
5114
5115 * NEWS: Mention that ARM sim now supports tracing.
5116
48b6e87e
YQ
51172014-04-22 Yao Qi <yao@codesourcery.com>
5118
5119 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5120 to ...
5121 * tracefile.c (tracefile_fetch_registers): ... it. New
5122 function.
5123 * tracefile.h (tracefile_fetch_registers): Declare.
5124 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5125 tracefile_fetch_registers.
5126
17617f2d
EZ
51272014-04-19 Eli Zaretskii <eliz@gnu.org>
5128
5129 PR gdb/14018
5130 * windows-nat.c (thread_rec): Don't display a warning when
5131 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5132 fails for any reason, set th->suspended to -1, so that we don't
5133 try to resume such a thread. Also, don't return NULL in these
5134 cases, to avoid completely ruin the session due to "PC register is
5135 not available" error.
5136 (do_windows_fetch_inferior_registers): Check errors in
5137 GetThreadContext call.
5138 (windows_continue): Accept an additional argument KILLED; if not
5139 zero, ignore errors in the SetThreadContext call, since the
5140 inferior was killed and is shutting down.
5141 (windows_resume, get_windows_debug_event)
5142 (windows_create_inferior, windows_mourn_inferior)
5143 (windows_kill_inferior): All callers of windows_continue changed
5144 to adjust to its new calling sequence.
5145
5723a6fd
YQ
51462014-04-19 Yao Qi <yao@codesourcery.com>
5147
5148 * ctf.c (ctf_open): Call post_create_inferior.
5149
614d5099
YQ
51502014-04-19 Yao Qi <yao@codesourcery.com>
5151
5152 * ctf.c (handle_id): New static variable.
5153 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5154 value. Get the declaration of event "register" and get length
5155 of field "contents".
5156
dac3e710
YQ
51572014-04-19 Yao Qi <yao@codesourcery.com>
5158
5159 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5160
2bca57ba
SC
51612014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5162
5163 * valops.c (oload_method_static): Remove unnecessary argument
5164 METHOD. Update all callers.
5165
51d48146
PA
51662014-04-18 Pedro alves <palves@redhat.com>
5167 Tom Tromey <tromey@redhat.com>
5168
5169 PR backtrace/15558
5170 * frame.c (get_prev_frame_1): Rename to ...
5171 (get_prev_frame_always): ... this, and make extern. Adjust.
5172 (skip_artificial_frames): Use get_prev_frame_always.
5173 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5174 (get_frame_unwind_stop_reason): Adjust to rename.
5175 * frame.h (get_prev_frame_always): Declare.
5176 * inline-frame.c: Include frame.h.
5177 (inline_frame_this_id): Use get_prev_frame_always.
5178
1bdad2e0
TG
51792014-04-18 Tristan Gingold <gingold@adacore.com>
5180
5181 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5182 code by using bfd_mach_o_get_base_address.
5183
7ce16bd4
UW
51842014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5185
5186 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5187 (spu_ax_pseudo_register_collect): New function.
5188 (spu_ax_pseudo_register_push_stack): Likewise.
5189 (spu_dwarf_reg_to_regnum): Likewise.
5190 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5191
2ed3c037
UW
51922014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5193
5194 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5195 Replace FRAME argument with FRAME_ID.
5196 * gdbarch.c, gdbarch.h: Regenerate.
5197 * findvar.c (default_value_from_register): Add GDBARCH argument;
5198 replace FRAME by FRAME_ID. No longer call get_frame_id.
5199 (value_from_register): Update call to gdbarch_value_from_register.
5200 * value.h (default_value_from_register): Update prototype.
5201 * s390-linux-tdep.c (s390_value_from_register): Update interface
5202 and call to default_value_from_register.
5203 * spu-tdep.c (spu_value_from_register): Likewise.
5204
5205 * findvar.c (address_from_register): Remove TYPE argument.
5206 Do not call value_from_register; use gdbarch_value_from_register
5207 with null_frame_id instead.
5208 * value.h (address_from_register): Update prototype.
5209 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5210 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5211 address_from_register interface change.
5212
71e50e83
YQ
52132014-04-17 Yao Qi <yao@codesourcery.com>
5214
5215 * gdbtypes.h: Update comments to link to types and macros'
5216 definitions.
5217
7a23c549
SC
52182014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5219
5220 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5221
22869d73
KS
52222014-04-16 Keith Seitz <keiths@redhat.com>
5223
5224 PR gdb/15827
5225 * dwarf2read.c (skip_one_die): Check that all relative-offset
5226 sibling DIEs fall within range of the current reader's buffer.
5227 (read_partial_die): Likewise.
5228
c4f87ca6
KS
52292014-04-16 Keith Seitz <keiths@redhat.com>
5230
5231 PR c++/16597
5232 * cp-namespace.c (lookup_symbol_file): If the type name of
5233 `this' is NULL, return immediately.
5234
b50c8614
KS
52352014-04-14 Keith Seitz <keiths@redhat.com>
5236
5237 PR c++/16253
5238 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5239 from symbol_matches_domain in symtab.c. All local callers
5240 of symbol_matches_domain updated.
5241 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5242 search STRUCT_DOMAIN.
5243 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5244 independently. standard_lookup will do that automatically.
5245 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5246 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5247 (cp_lookup_symbol_in_namespace): Likewise.
5248 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5249 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5250 may return a STRUCT_DOMAIN match.
5251 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5252 * cp-support.c: Include language.h.
5253 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5254 VAR_DOMAIN.
5255 * psymtab.c (match_partial_symbol): Compare the requested
5256 domain with the symbol's domain directly.
5257 (lookup_partial_symbol): Likewise.
5258 * symtab.c (lookup_symbol_in_language): Explain when/why
5259 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5260 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5261 appropriate languages.
5262 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5263 and moved to ada-lang.c
5264 (lookup_block_symbol): Explain that this function only returns
5265 symbol matching the requested DOMAIN.
5266 Compare the requested domain with the symbol's domain directly.
5267 (iterate_over_symbols): Compare the requested domain with the
5268 symbol's domain directly.
5269 * symtab.h (symbol_matches_domain): Remove.
5270
3d567982
TT
52712014-04-14 Tom Tromey <tromey@redhat.com>
5272
5273 PR c++/15246:
5274 * c-exp.y (type_aggregate_p): New function.
5275 (qualified_name, classify_inner_name): Use it.
5276 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5277 and TYPE_TARGET_TYPE of an enum type.
5278 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5279 an enum type.
5280 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5281 handle TYPE_DECLARED_CLASS.
5282 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5283 types.
5284 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5285 * valops.c (enum_constant_from_type): New function.
5286 (value_aggregate_elt): Use it.
5287 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5288 TYPE_CODE_ENUM.
5289
c848d642
TT
52902014-04-14 Tom Tromey <tromey@redhat.com>
5291
5292 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5293 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5294 const.
5295 * value.h (value_aggregate_elt): Update.
5296
0626fc76
TT
52972014-04-14 Tom Tromey <tromey@redhat.com>
5298
5299 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5300
5ecaaa66
SA
53012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5302
5303 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5304 (evaluate_subexp_standard): Pass noside argument.
5305 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5306 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5307 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5308 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5309 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5310
1612e0c0
SA
53112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5312
5313 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5314 points to a constant blob.
5315
c451ebe5
SA
53162014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5317
5318 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5319 property and store it as the high bound and flag the range accordingly.
5320 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5321 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5322 * gdbtypes.h (enum range_flags): New enum.
5323 (struct range_bounds): Add flags member.
5324
1d42e4c4
SA
53252014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5326
5327 * c-typeprint.c (c_type_print_varspec_suffix): Added
5328 check for not yet resolved high bound. If unresolved, print
5329 "variable length" string to the console instead of random
5330 length.
5331
9f1f738a
SA
53322014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5333
5334 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5335 value.
5336 (ada_template_to_fixed_record_type_1): Likewise.
5337 (ada_to_fixed_type_1): Likewise.
5338 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5339 (cp_print_value): Likewise.
5340 * d-valprint.c (dynamic_array_type): Likewise.
5341 * findvar.c (address_of_variable): Likewise.
5342 * jv-valprint.c (java_value_print): Likewise.
5343 * valops.c (value_ind): Likewise.
5344 * value.c (coerce_ref): Likewise.
5345
3c8452d4
SA
53462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5347
5348 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5349 value and retrieve the dynamic type size.
5350
4ad88275
SA
53512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5352
5353 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5354 passed to sizeof is dynamic evaluate the argument to compute the length.
5355
80180f79
SA
53562014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5357 Joel Brobecker <brobecker@adacore.com>
5358
5359 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5360 (dwarf2_evaluate_property): New function.
5361 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5362 * dwarf2read.c (attr_to_dynamic_prop): New function.
5363 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5364 attribute.
5365 * gdbtypes.c: Include dwarf2loc.h.
5366 (is_dynamic_type): New function.
5367 (resolve_dynamic_type): New function.
5368 (resolve_dynamic_bounds): New function.
5369 (get_type_length): New function.
5370 (check_typedef): Use get_type_length to compute type length.
5371 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5372 (TYPE_LOW_BOUND_KIND): New macro.
5373 (is_dynamic_type): New function prototype.
5374 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5375 to resolve dynamic properties of the type. Update comment.
5376 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5377
a1556843
RH
53782014-04-14 Richard Henderson <rth@redhat.com>
5379
5380 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5381
0be03e84
DE
53822014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5383 Doug Evans <xdje42@gmail.com>
5384
5385 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5386 dereference TYPE_CODE_REF values.
5387
6b662e19
JB
53882014-04-11 Joel Brobecker <brobecker@adacore.com>
5389
5390 Revert the following changes due to regressions:
5391
5392 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5393 (dwarf2_evaluate_property): New function.
5394 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5395 * dwarf2read.c (attr_to_dynamic_prop): New function.
5396 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5397 attribute.
5398 * gdbtypes.c: Include dwarf2loc.h.
5399 (is_dynamic_type): New function.
5400 (resolve_dynamic_type): New function.
5401 (resolve_dynamic_bounds): New function.
5402 (get_type_length): New function.
5403 (check_typedef): Use get_type_length to compute type length.
5404 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5405 (TYPE_LOW_BOUND_KIND): New macro.
5406 (is_dynamic_type): New function prototype.
5407 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5408 to resolve dynamic properties of the type. Update comment.
5409 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5410
5411 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5412 passed to sizeof is dynamic evaluate the argument to compute the length.
5413
5414 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5415 value and retrieve the dynamic type size.
5416
5417 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5418 (ada_template_to_fixed_record_type_1): Likewise.
5419 (ada_to_fixed_type_1): Likewise.
5420 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5421 (cp_print_value): Likewise.
5422 * d-valprint.c (dynamic_array_type): Likewise.
5423 * eval.c (evaluate_subexp_with_coercion): Likewise.
5424 * findvar.c (address_of_variable): Likewise.
5425 * jv-valprint.c (java_value_print): Likewise.
5426 * valops.c (value_ind): Likewise.
5427 * value.c (coerce_ref): Likewise.
5428
5429 * c-typeprint.c (c_type_print_varspec_suffix): Added
5430 check for not yet resolved high bound. If unresolved, print
5431 "variable length" string to the console instead of random
5432 length.
5433
5434 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5435 property and store it as the high bound and flag the range accordingly.
5436 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5437 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5438 * gdbtypes.h (enum range_flags): New enum.
5439 (struct range_bounds): Add flags member.
5440
5441 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5442 points to a constant blob.
5443
5444 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5445 (evaluate_subexp_standard): Pass noside argument.
5446 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5447 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5448 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5449 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5450 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5451
245a5f0b
KS
54522014-04-11 Keith Seitz <keiths@redhat.com>
5453
5454 PR c++/16675
5455 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5456 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5457 reference types.
5458
3bce8237
SA
54592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5460
5461 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5462 (evaluate_subexp_standard): Pass noside argument.
5463 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5464 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5465 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5466 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5467 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5468
92b09522
SA
54692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5470
5471 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5472 points to a constant blob.
5473
e1969afb
SA
54742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5475
5476 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5477 property and store it as the high bound and flag the range accordingly.
5478 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5479 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5480 * gdbtypes.h (enum range_flags): New enum.
5481 (struct range_bounds): Add flags member.
5482
b86138fb
SA
54832014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5484
5485 * c-typeprint.c (c_type_print_varspec_suffix): Added
5486 check for not yet resolved high bound. If unresolved, print
5487 "variable length" string to the console instead of random
5488 length.
5489
bcd629a4
SA
54902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5491
5492 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5493 (ada_template_to_fixed_record_type_1): Likewise.
5494 (ada_to_fixed_type_1): Likewise.
5495 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5496 (cp_print_value): Likewise.
5497 * d-valprint.c (dynamic_array_type): Likewise.
5498 * eval.c (evaluate_subexp_with_coercion): Likewise.
5499 * findvar.c (address_of_variable): Likewise.
5500 * jv-valprint.c (java_value_print): Likewise.
5501 * valops.c (value_ind): Likewise.
5502 * value.c (coerce_ref): Likewise.
5503
04b19544
SA
55042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5505
5506 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5507 value and retrieve the dynamic type size.
5508
26cb189f
SA
55092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5510
5511 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5512 passed to sizeof is dynamic evaluate the argument to compute the length.
5513
37c1ab67
SA
55142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5515
5516 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5517 (dwarf2_evaluate_property): New function.
5518 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5519 * dwarf2read.c (attr_to_dynamic_prop): New function.
5520 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5521 attribute.
5522 * gdbtypes.c: Include dwarf2loc.h.
5523 (is_dynamic_type): New function.
5524 (resolve_dynamic_type): New function.
5525 (resolve_dynamic_bounds): New function.
5526 (get_type_length): New function.
5527 (check_typedef): Use get_type_length to compute type length.
5528 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5529 (TYPE_LOW_BOUND_KIND): New macro.
5530 (is_dynamic_type): New function prototype.
5531 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5532 to resolve dynamic properties of the type. Update comment.
5533 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5534
729efb13
SA
55352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5536
5537 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5538 declaring high/low bounds and change uses accordingly. Call
5539 create_range_type instead of create_static_range_type.
5540 * gdbtypes.c (create_range_type): New function.
5541 (create_range_type): Convert bounds into struct bound_prop and pass
5542 them to create_range_type.
5543 * gdbtypes.h (struct bound_prop): New struct.
5544 (create_range_type): New function prototype.
5545 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5546 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5547 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5548 part of the bound.
5549 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5550
0c9c3474
SA
55512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5552
5553 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5554 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5555 * ada-lang.c: All uses of create_range_type updated.
5556 * coffread.c: All uses of create_range_type updated.
5557 * dwarf2read.c: All uses of create_range_type updated.
5558 * f-exp.y: All uses of create_range_type updated.
5559 * m2-valprint.c: All uses of create_range_type updated.
5560 * mdebugread.c: All uses of create_range_type updated.
5561 * stabsread.c: All uses of create_range_type updated.
5562 * valops.c: All uses of create_range_type updated.
5563 * valprint.c: All uses of create_range_type updated.
5564
9d497a19
PA
55652014-04-10 Pedro Alves <palves@redhat.com>
5566
5567 * breakpoint.c (single_step_breakpoints)
5568 (single_step_gdbarch): Move up in the file.
5569 (one_breakpoint_xfer_memory): New function, factored out from ...
5570 (breakpoint_xfer_memory): ... here. Also process single-step
5571 breakpoints.
5572
15a9128a
TG
55732014-04-09 Tristan Gingold <gingold@adacore.com>
5574
5575 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5576 comments.
5577 (darwin_decode_exception_message): Free port only after use.
5578
9c97a070
PL
55792014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5580
5581 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5582 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5583 when setting the size of call_length.
5584
7af389b8
SC
55852014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5586
5587 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5588 dereference TYPE_CODE_REF values.
5589
86ad98c3
JB
55902014-04-07 Joel Brobecker <brobecker@adacore.com>
5591
5592 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5593 end of warning message.
5594
b0aeadb3
DE
55952014-04-03 Doug Evans <dje@google.com>
5596
5597 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5598 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5599
5979d6b6
AM
56002014-04-02 Alan Modra <amodra@gmail.com>
5601
5602 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5603 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5604 (struct symbol_file_add_from_memory_args): Add size field.
5605 (find_vdso_size): New function.
5606 (add_vsyscall_page): Attempt to find vdso size.
5607
0d60c288
DE
56082014-04-01 Doug Evans <dje@google.com>
5609
5610 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5611
a41f2563
TG
56122014-04-01 Tristan Gingold <gingold@adacore.com>
5613
5614 * darwin-nat.c (darwin_encode_reply): Add prototype.
5615 (darwin_decode_exception_message): Reply to unknown inferiors.
5616 (darwin_decode_message): Handle message by id. Ignore message
5617 to unknown inferior.
5618 (darwin_wait): Discard unknown messages, add debug trace.
5619
11a865c8
DE
56202014-03-31 Doug Evans <dje@google.com>
5621
5622 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5623 comp_dir_string.
5624
770e7fc7
DE
56252014-03-31 Doug Evans <dje@google.com>
5626
5627 New option "set print symbol-loading".
5628 * NEWS: Mention it.
5629 * solib.c (solib_read_symbols): Only print symbol loading messages
5630 if requested.
5631 (solib_add): If symbol loading is in "brief" mode, notify user
5632 symbols are being loaded.
5633 (reload_shared_libraries_1): Ditto.
5634 * symfile.c (print_symbol_loading_off): New static global.
5635 (print_symbol_loading_brief): New static global.
5636 (print_symbol_loading_full): New static global.
5637 (print_symbol_loading_enums): New static global.
5638 (print_symbol_loading): New static global.
5639 (print_symbol_loading_p): New function.
5640 (symbol_file_add_with_addrs): Only print symbol loading messages
5641 if requested.
5642 (_initialize_symfile): Register "print symbol-loading" set/show
5643 command.
5644 * symfile.h (print_symbol_loading_p): Declare.
5645
c32c64b7
DE
56462014-03-30 Doug Evans <xdje42@gmail.com>
5647
5648 * infrun.c (set_last_target_status): New function.
5649 (handle_inferior_event): Call it.
5650
7c0bc051
DE
56512014-03-30 Doug Evans <xdje42@gmail.com>
5652
5653 * inferior.h (enum stop_kind): Improve comment.
5654
8776cfe9
JB
56552014-03-28 Joel Brobecker <brobecker@adacore.com>
5656
5657 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5658 a reference, strip the reference layer before calling
5659 the lang_ops value_has_mutated callback.
5660
410a0ff2
SDJ
56612014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5662
5663 Remove some globals from our parser.
5664 * language.c (unk_lang_parser): Add "struct parser_state"
5665 argument.
5666 * language.h (struct language_defn) <la_parser>: Likewise.
5667 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5668 (initialize_expout): Add "struct parser_state" argument.
5669 Rewrite function to use the parser state.
5670 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5671 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5672 write_exp_elt_longcst, write_exp_elt_dblcst,
5673 write_exp_elt_decfloatcst, write_exp_elt_type,
5674 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5675 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5676 write_dollar_variable): Likewise.
5677 (parse_exp_in_context_1): Use parser state.
5678 (insert_type_address_space): Add "struct parser_state" argument.
5679 Use parser state.
5680 (increase_expout_size): New function.
5681 * parser-defs.h: Forward declare "struct language_defn" and
5682 "struct parser_state".
5683 (expout, expout_size, expout_ptr): Remove extern declarations.
5684 (parse_gdbarch, parse_language): Rewrite macro declarations to
5685 accept the parser state.
5686 (struct parser_state): New struct.
5687 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5688 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5689 write_exp_elt_decfloatcst, write_exp_elt_type,
5690 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5691 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5692 write_exp_msymbol, write_dollar_variable,
5693 mark_struct_expression, insert_type_address_space): Add "struct
5694 parser_state" argument.
5695 (increase_expout_size): New function.
5696 * utils.c (do_clear_parser_state): New function.
5697 (make_cleanup_clear_parser_state): Likewise.
5698 * utils.h (make_cleanup_clear_parser_state): New function
5699 prototype.
5700 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5701 Update calls to write_exp* in order to pass the parser state.
5702 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5703 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5704 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5705 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5706 * stap-probe.c (stap_parse_register_operand): Likewise.
5707 (stap_parse_single_operand): Likewise.
5708 (stap_parse_argument_1): Likewise.
5709 (stap_parse_argument): Use parser state.
5710 * stap-probe.h: Include "parser-defs.h".
5711 (struct stap_parse_info) <pstate>: New field.
5712 * c-exp.y (parse_type): Rewrite to use parser state.
5713 (yyparse): Redefine to c_parse_internal.
5714 (pstate): New global variable.
5715 (parse_number): Add "struct parser_state" argument.
5716 (write_destructor_name): Likewise.
5717 (type_exp): Update calls to write_exp* and similars in order to
5718 use parser state.
5719 (exp1, exp, variable, qualified_name, space_identifier,
5720 typename, typebase): Likewise.
5721 (write_destructor_name, parse_number, lex_one_token,
5722 classify_name, classify_inner_name, c_parse): Add "struct
5723 parser_state" argument. Update function to use parser state.
5724 * c-lang.h: Forward declare "struct parser_state".
5725 (c_parse): Add "struct parser_state" argument.
5726 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5727 (yyparse): Redefine macro to ada_parse_internal.
5728 (pstate): New variable.
5729 (write_int, write_object_renaming, write_var_or_type,
5730 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5731 type_int, type_long, type_long_long, type_float, type_double,
5732 type_long_double, type_char, type_boolean, type_system_address):
5733 Add "struct parser_state" argument.
5734 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5735 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5736 var_or_type, aggregate, aggregate_component_list,
5737 positional_list, others, component_group,
5738 component_associations): Update calls to write_exp* and similar
5739 functions in order to use parser state.
5740 (ada_parse, write_var_from_sym, write_int,
5741 write_exp_op_with_string, write_object_renaming,
5742 find_primitive_type, write_selectors, write_ambiguous_var,
5743 write_var_or_type, write_name_assoc, type_int, type_long,
5744 type_long_long, type_float, type_double, type_long_double,
5745 type_char, type_boolean, type_system_address): Add "struct
5746 parser_state" argument. Adjust function to use parser state.
5747 * ada-lang.c (parse): Likewise.
5748 * ada-lang.h: Forward declare "struct parser_state".
5749 (ada_parse): Add "struct parser_state" argument.
5750 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5751 calls to both functions.
5752 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5753 parser state.
5754 (yyparse): Redefine macro to f_parse_internal.
5755 (pstate): New variable.
5756 (parse_number): Add "struct parser_state" argument.
5757 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5758 and similars in order to use parser state.
5759 (parse_number): Adjust code to use parser state.
5760 (yylex): Likewise.
5761 (f_parse): New function.
5762 * f-lang.h: Forward declare "struct parser_state".
5763 (f_parse): Add "struct parser_state" argument.
5764 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5765 parser state.
5766 (yyparse): Redefine macro for java_parse_internal.
5767 (pstate): New variable.
5768 (push_expression_name, push_expression_name, insert_exp): Add
5769 "struct parser_state" argument.
5770 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5771 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5772 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5773 PostIncrementExpression, PostDecrementExpression,
5774 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5775 UnaryExpressionNotPlusMinus, CastExpression,
5776 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5777 RelationalExpression, EqualityExpression, AndExpression,
5778 ExclusiveOrExpression, InclusiveOrExpression,
5779 ConditionalAndExpression, ConditionalOrExpression,
5780 ConditionalExpression, Assignment, LeftHandSide): Update
5781 calls to write_exp* and similars in order to use parser state.
5782 (parse_number): Ajust code to use parser state.
5783 (yylex): Likewise.
5784 (java_parse): New function.
5785 (push_variable): Add "struct parser_state" argument. Adjust
5786 code to user parser state.
5787 (push_fieldnames, push_qualified_expression_name,
5788 push_expression_name, insert_exp): Likewise.
5789 * jv-lang.h: Forward declare "struct parser_state".
5790 (java_parse): Add "struct parser_state" argument.
5791 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5792 parser state.
5793 (yyparse): Redefine macro to m2_parse_internal.
5794 (pstate): New variable.
5795 (type_exp, exp, fblock, variable, type): Update calls to
5796 write_exp* and similars to use parser state.
5797 (yylex): Likewise.
5798 (m2_parse): New function.
5799 * m2-lang.h: Forward declare "struct parser_state".
5800 (m2_parse): Add "struct parser_state" argument.
5801 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5802 * objc-lang.h: Forward declare "struct parser_state".
5803 (end_msglist): Add "struct parser_state" argument.
5804 * p-exp.y (parse_type): Rewrite macro to use parser state.
5805 (yyparse): Redefine macro to pascal_parse_internal.
5806 (pstate): New variable.
5807 (parse_number): Add "struct parser_state" argument.
5808 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5809 write_exp* and similars in order to use parser state.
5810 (parse_number, yylex): Adjust code to use parser state.
5811 (pascal_parse): New function.
5812 * p-lang.h: Forward declare "struct parser_state".
5813 (pascal_parse): Add "struct parser_state" argument.
5814 * go-exp.y (parse_type): Rewrite macro to use parser state.
5815 (yyparse): Redefine macro to go_parse_internal.
5816 (pstate): New variable.
5817 (parse_number): Add "struct parser_state" argument.
5818 (type_exp, exp1, exp, variable, type): Update calls to
5819 write_exp* and similars in order to use parser state.
5820 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5821 to use parser state.
5822 (go_parse): Likewise.
5823 * go-lang.h: Forward declare "struct parser_state".
5824 (go_parse): Add "struct parser_state" argument.
5825
342587c4
DE
58262014-03-27 Doug Evans <dje@google.com>
5827
5828 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5829
33e80786
DE
58302014-03-27 Doug Evans <dje@google.com>
5831
5832 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5833 Remove argument abbrev_section. All callers updated.
5834
1dbab08b
DE
58352014-03-27 Doug Evans <dje@google.com>
5836
5837 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5838 addr_base, ranges_base.
5839
318d3177
KS
58402014-03-26 Keith Seitz <keiths@redhat.com>
5841
5842 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5843 types, not VAR_DOMAIN.
5844
1e54db15
SL
58452014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5846
5847 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5848 "ra" registers.
5849 * features/nios2-linux.c: Regenerated.
5850 * features/nios2.c: Regenerated.
5851
d3839ede
PA
58522014-03-25 Pedro Alves <palves@redhat.com>
5853
5854 * cli/cli-script.c (script_from_file): Force the interpreter to
5855 sync mode.
5856
7588d2ec
PL
58572014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5858
5859 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5860 small stack allocation.
5861
a6290449
TG
58622014-03-24 Tristan Gingold <gingold@adacore.com>
5863
5864 * darwin-nat.c (exc_server): Remove unused prototype.
5865 (darwin_dump_message): Correctly display data on x86_64.
5866 (darwin_encode_reply): Fix style.
5867 Add comments and fix indentation.
5868
31ae9d24 58692014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5870
5871 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5872
6339bfc4
DE
58732014-03-22 Doug Evans <xdje42@gmail.com>
5874
5875 * infcmd.c: Whitespace fixes.
5876 (interrupt_command): Merge two function comments into one.
5877
0a07590b
DE
58782014-03-22 Doug Evans <xdje42@gmail.com>
5879
5880 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5881 All uses updated.
5882
b55fbac4
YQ
58832014-03-22 Yao Qi <yao@codesourcery.com>
5884
5885 * remote.c (target_read_live_memory): Remove.
5886 (memory_xfer_live_readonly_partial): Rename it to
5887 remote_xfer_live_readonly_partial. Remove argument 'object'.
5888 All callers updated. Call remote_read_bytes_1
5889 instead of target_read_live_memory.
5890 * tracepoint.c (set_traceframe_number): Remove.
5891 (make_cleanup_restore_traceframe_number): Likewise .
5892 * tracepoint.h (set_traceframe_number): Remove declaration.
5893 (make_cleanup_restore_traceframe_number): Likewise.
5894
9217e74e
YQ
58952014-03-22 Yao Qi <yao@codesourcery.com>
5896
5897 * remote.c (remote_read_bytes): Move code on reading from the
5898 remote stub to ...
5899 (remote_read_bytes_1): ... here. New function.
5900
8acf9577
YQ
59012014-03-22 Yao Qi <yao@codesourcery.com>
5902
5903 * ctf.c (ctf_xfer_partial): Check the return value of
5904 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5905 return TARGET_XFER_UNAVAILABLE.
5906 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5907 * target.c (target_read_live_memory): Move it to remote.c.
5908 (memory_xfer_live_readonly_partial): Likewise.
5909 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5910 * remote.c (target_read_live_memory): Moved from target.c.
5911 (memory_xfer_live_readonly_partial): Likewise.
5912 (remote_read_bytes): Factored out from
5913 memory_xfer_partial_1.
5914
feef67ab
DE
59152014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5916
5917 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5918 NULL pointer.
5919
b65dc60b
PA
59202014-03-21 Pedro Alves <palves@redhat.com>
5921
5922 * infrun.c (normal_stop): Extend comment.
5923
b4ab256d
HZ
59242014-03-21 Hui Zhu <hui@codesourcery.com>
5925 Pedro Alves <palves@redhat.com>
5926
5927 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5928 static buffer.
5929 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5930 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5931 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5932
deba7593
MR
59332014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5934
5935 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5936 `z' formatted output modifier.
5937
1bff71c3
SDJ
59382014-03-20 Tom Tromey <tromey@redhat.com>
5939 Sergio Durigan Junior <sergiodj@redhat.com>
5940
5941 * probe.c (parse_probes): Turn assert into an ordinary error.
5942 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5943 exceptions when parsing probes. Rearrange the code for clarity.
5944
90e28950
TT
59452014-03-20 Tom Tromey <tromey@redhat.com>
5946
5947 PR gdb/14135
5948 * top.c (execute_command): Only dispatch events if the command
5949 started the target.
5950
beb460e8
PA
59512014-03-20 Tom Tromey <tromey@redhat.com>
5952
5953 PR cli/15718
5954 * infcall.c: Include event-top.h.
5955 (run_inferior_call): Call async_disable_stdin if needed.
5956
99619bea
PA
59572014-03-20 Pedro Alves <palves@redhat.com>
5958
5959 * infrun.c (prepare_to_proceed): Delete.
5960 (thread_still_needs_step_over): New function.
5961 (find_thread_needs_step_over): New function.
5962 (proceed): If the current thread needs a step-over, set its
5963 steping_over_breakpoint flag. Adjust to use
5964 find_thread_needs_step_over instead of prepare_to_proceed.
5965 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5966 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5967 breakpoint.
5968 (switch_back_to_stepped_thread): Step over breakpoints of all
5969 threads not the stepping thread, before switching back to the
5970 stepping thread.
5971
2adfaa28
PA
59722014-03-20 Pedro Alves <palves@redhat.com>
5973
5974 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5975 extern.
5976 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5977 * infrun.c (saved_singlestep_ptid)
5978 (stepping_past_singlestep_breakpoint): Delete.
5979 (resume): Remove stepping_past_singlestep_breakpoint handling.
5980 (proceed): Store the prev_pc of the stepping thread too.
5981 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5982 singlestep_pc.
5983 (enum infwait_states): Delete infwait_thread_hop_state.
5984 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5985 field.
5986 (handle_inferior_event): Adjust.
5987 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5988 handling and the thread-hop code. Before removing single-step
5989 breakpoints, check whether the thread hit a single-step breakpoint
5990 of another thread. If it did, the trap is not a random signal.
5991 (switch_back_to_stepped_thread): If the event thread hit a
5992 single-step breakpoint, unblock it before switching to the
5993 stepping thread. Handle the case of the stepped thread having
5994 advanced already.
5995 (keep_going): Handle the case of the current thread moving past a
5996 single-step breakpoint.
5997
31e77af2
PA
59982014-03-20 Pedro Alves <palves@redhat.com>
5999
6000 PR breakpoints/7143
6001 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6002 are being stepped over.
6003 (breakpoint_address_match): Make extern.
6004 * breakpoint.h (breakpoint_address_match): New declaration.
6005 * inferior.h (stepping_past_instruction_at): New declaration.
6006 * infrun.c (struct step_over_info): New type.
6007 (step_over_info): New global.
6008 (set_step_over_info, clear_step_over_info)
6009 (stepping_past_instruction_at): New functions.
6010 (handle_inferior_event): Clear the step-over info when
6011 trap_expected is cleared.
6012 (resume): Remove now stale comment.
6013 (clear_proceed_status): Clear step-over info.
6014 (proceed): Adjust step-over handling to set or clear the step-over
6015 info instead of removing all breakpoints.
6016 (handle_signal_stop): When setting up a thread-hop, don't remove
6017 breakpoints here.
6018 (stop_stepping): Clear step-over info.
6019 (keep_going): Adjust step-over handling to set or clear step-over
6020 info and then always inserting breakpoints, instead of removing
6021 all breakpoints when stepping over one.
6022
b9f437de
PA
60232014-03-20 Pedro Alves <palves@redhat.com>
6024
6025 * infrun.c (previous_inferior_ptid): Adjust comment.
6026 (deferred_step_ptid): Delete.
6027 (infrun_thread_ptid_changed, prepare_to_proceed)
6028 (init_wait_for_inferior): Adjust.
6029 (handle_signal_stop): Delete deferred_step_ptid handling.
6030
06c868a8
JK
60312014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6032
6033 PR gdb/15358
6034 * defs.h (sync_quit_force_run): New declaration.
6035 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6036 * event-top.c (async_sigterm_handler): New declaration.
6037 (async_sigterm_token): New variable.
6038 (async_init_signals): Create also async_sigterm_token.
6039 (async_sigterm_handler): New function.
6040 (sync_quit_force_run): New variable.
6041 (handle_sigterm): Replace quit_force call by other calls.
6042 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6043
dea80df0
MR
60442014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6045
6046 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6047 offset into SPE pseudo registers.
6048
0c7e1a46
PA
60492014-03-18 Pedro Alves <palves@redhat.com>
6050
6051 PR gdb/13860
6052 * inferior.h (print_stop_event): Declare.
6053 * infrun.c (print_stop_event): New, factored out from ...
6054 (normal_stop): ... this.
6055 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6056 of bpstat_print/print_stack_frame.
6057
9c1fcd01
TT
60582014-03-17 Tom Tromey <tromey@redhat.com>
6059
6060 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6061
11aa919a
PMR
60622014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6063
6064 * ada-lang.c (decode_constrained_packed_array): Perform a
6065 minimal coercion for reference with coerce_ref instead of
6066 ada_coerce_ref.
6067
d4ccb5e0
TG
60682014-03-17 Tristan Gingold <gingold@adacore.com>
6069
6070 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6071 (darwin_solib_create_inferior_hook): Emit a warning if version
6072 is unhandled.
6073
49840f2a
UW
60742014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6075
6076 * python/py-value.c (get_field_flag): Cast flag_name argument to
6077 PyObject_GetAttrString to support Python 2.4.
6078
ed4123e5
JK
60792014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6080
6081 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6082 (Global Maintainers): Remove Jan Kratochvil.
6083
d6b64346
PA
60842014-03-14 Pedro Alves <palves@redhat.com>
6085
6086 * inferior.h (terminal_ours_for_output): Rename to ...
6087 (child_terminal_ours_for_output): ... this.
6088 (terminal_save_ours): Rename to ...
6089 (child_terminal_save_ours): ... this.
6090 (terminal_ours): Rename to ...
6091 (child_terminal_ours): ... this.
6092 (terminal_inferior): Rename to ...
6093 (child_terminal_inferior): ... this.
6094 (terminal_init_inferior): Rename to ...
6095 (child_terminal_init_inferior): ... this.
6096 (terminal_init_inferior_with_pgrp): Rename to ...
6097 (child_terminal_init_inferior_with_pgrp): ... this.
6098 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6099 (child_terminal_init_with_pgrp): ... this.
6100 (terminal_save_ours): Rename to ...
6101 (child_terminal_save_ours): ... this.
6102 (terminal_init_inferior): Rename to ...
6103 (child_terminal_init): ... this. Adjust.
6104 (terminal_inferior): Rename to ...
6105 (child_terminal_inferior): ... this.
6106 (terminal_ours_for_output): Rename to ...
6107 (child_terminal_ours_for_output): ... this. Adjust.
6108 (terminal_ours): Rename to ...
6109 (child_terminal_ours): ... this.
6110 (terminal_ours_1): Rename to ...
6111 (child_terminal_ours_1): ... this. Adjust.
6112 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6113 * windows-nat.c (do_initial_windows_stuff): Adjust.
6114 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6115 (gnu_terminal_init): ... this. Adjust.
6116 (gnu_target): Adjust.
6117 * inf-child.c (inf_child_target): Adjust.
6118
5a1e8c7a
DE
61192014-03-13 Doug Evans <xdje42@gmail.com>
6120
6121 PR guile/16612
6122 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6123 new eq?-hashtab.
6124
350e1a76
DE
61252014-03-13 Doug Evans <xdje42@gmail.com>
6126
6127 * value.c (record_latest_value): Call release_value_or_incref
6128 instead of release_value.
6129
a69900ae
PA
61302014-03-13 Pedro Alves <palves@redhat.com>
6131
6132 * procfs.c (procfs_target): Don't override to_shortname,
6133 to_longname or to_doc.
6134
5db9f0bd
PA
61352014-03-13 Pedro Alves <palves@redhat.com>
6136
6137 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6138 Unix in user visible strings.
6139
5e3a2c38
SS
61402014-03-12 Stan Shebs <stan@codesourcery.com>
6141
6142 * gdbtypes.h: Annotate comments for Doxygen, add a page
6143 block comment with some general info.
6144
8bc2fe48
PA
61452014-03-12 Pedro Alves <palves@redhat.com>
6146
6147 * infcmd.c (prepare_execution_command): New function, factored out
6148 from several execution commands.
6149 (run_command_1, continue_command, step_1, jump_command)
6150 (signal_command, until_command, advance_command, finish_command)
6151 (attach_command): Use prepare_execution_command.
6152
638c5f49
OJ
61532014-03-12 Omair Javaid <omair.javaid@linaro.org>
6154
6155 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6156 (MAX_BPTS): Define.
6157 (MAX_WPTS): Define.
6158 (struct arm_linux_thread_points): Removed.
6159 (struct arm_linux_process_info): New.
6160 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6161 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6162 (arm_linux_find_breakpoints_by_tid): Removed.
6163 (struct arch_lwp_info): New.
6164 (arm_linux_find_process_pid): New functions.
6165 (arm_linux_add_process): New functions.
6166 (arm_linux_process_info_get): New functions.
6167 (arm_linux_forget_process): New function.
6168 (arm_linux_get_debug_reg_state): New function.
6169 (struct update_registers_data): New.
6170 (update_registers_callback): New function.
6171 (arm_linux_insert_hw_breakpoint1): Updated.
6172 (arm_linux_remove_hw_breakpoint1): Updated.
6173 (arm_linux_insert_hw_breakpoint): Updated.
6174 (arm_linux_remove_hw_breakpoint): Updated.
6175 (arm_linux_insert_watchpoint): Updated.
6176 (arm_linux_remove_watchpoint): Updated.
6177 (arm_linux_new_thread): Updated.
6178 (arm_linux_prepare_to_resume): New function.
6179 (arm_linux_new_fork): New function.
6180 (_initialize_arm_linux_nat): Updated.
6181
6d03af93
PA
61822014-03-12 Pedro Alves <palves@redhat.com>
6183
6184 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6185
b3ccfe11
TT
61862014-03-12 Tom Tromey <tromey@redhat.com>
6187
6188 * inf-child.c (return_zero): New function.
6189 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6190 * aix-thread.c (aix_thread_inferior_created): New function.
6191 (aix_thread_attach): Remove.
6192 (init_aix_thread_ops): Don't set to_attach.
6193 (_initialize_aix_thread): Register inferior_created observer.
6194 * corelow.c (init_core_ops): Don't set to_attach or
6195 to_create_inferior.
6196 * exec.c (init_exec_ops): Don't set to_attach or
6197 to_create_inferior.
6198 * infcmd.c (run_command_1): Use find_run_target. Make direct
6199 target calls.
6200 (attach_command): Use find_attach_target. Make direct target
6201 calls.
6202 * record-btrace.c (init_record_btrace_ops): Don't set
6203 to_create_inferior.
6204 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6205 Remove.
6206 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6207 set to_create_inferior.
6208 * target.c (complete_target_initialization): Add assertion.
6209 (target_create_inferior): Remove.
6210 (find_default_attach, find_default_create_inferior): Remove.
6211 (find_attach_target, find_run_target): New functions.
6212 (find_default_is_async_p, find_default_can_async_p)
6213 (target_supports_non_stop, target_attach): Remove.
6214 (init_dummy_target): Don't set to_create_inferior or
6215 to_supports_non_stop.
6216 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6217 TARGET_DEFAULT_FUNC.
6218 <to_create_inferior>: Add comment.
6219 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6220 TARGET_DEFAULT_RETURN.
6221 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6222 (find_attach_target, find_run_target): Declare.
6223 (target_create_inferior): Remove.
6224 (target_has_execution_1): Update comment.
6225 (target_supports_non_stop): Remove.
6226 * target-delegates.c: Rebuild.
6227
91f83b02
PA
62282014-03-12 Pedro Alves <palves@redhat.com>
6229
6230 * inf-child.h: Update comment to not mention Unix.
6231
f1aea813
PA
62322014-03-12 Pedro Alves <palves@redhat.com>
6233
6234 * inf-child.c: Update top comment to not mention Unix. Add
6235 generic comment describing how this target is meant to be used.
6236 (inf_child_post_attach, inf_child_post_startup_inferior)
6237 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6238 Unix in comment.
6239
ee8e9165
PA
62402014-03-12 Pedro Alves <palves@redhat.com>
6241
6242 * nto-procfs.c: Include inf-child.h.
6243 (procfs_ops): Delete global.
6244 (procfs_can_run): Delete method.
6245 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6246 target pointer instead of referencing procfs_ops.
6247 (procfs_prepare_to_store): Delete.
6248 (init_procfs_ops): Delete function.
6249 (procfs_target): New function, based on init_procfs_ops, but
6250 inherit inf_child_target.
6251 (_initialize_procfs): Use procfs_target.
6252
51a9c8c5
PA
62532014-03-12 Pedro Alves <palves@redhat.com>
6254
6255 * windows-nat.c: Include inf-child.h.
6256 (windows_ops): Delete global.
6257 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6258 methods.
6259 (init_windows_ops): Delete function.
6260 (windows_target): New function, based on init_windows_ops, but
6261 inherit inf_child_target.
6262 (_initialize_windows_nat): Use windows_target. Install x86
6263 specific target methods here.
6264
c1966e26
DE
62652014-03-10 Doug Evans <xdje42@gmail.com>
6266
6267 * guile/guile.c (call_initialize_gdb_module): New function.
6268 (initialize_guile): Replace call to scm_init_guile with call to
6269 scm_with_guile.
6270
023db19c
JB
62712014-03-10 Joel Brobecker <brobecker@adacore.com>
6272
6273 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6274 in call to TYPE_CODE macro.
6275
5ec18f2b
JG
62762014-03-10 Jerome Guitton <guitton@adacore.com>
6277
8668be63
JB
6278 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6279 Resolve tagged types to full view.
5ec18f2b 6280
7d03f2eb
HZ
62812014-03-10 Hui Zhu <hui@codesourcery.com>
6282
6283 * target.h (target_insert_breakpoint): Remove "hardware" from its
6284 comments.
6285
c5164cbc
DE
62862014-03-07 Doug Evans <dje@google.com>
6287
6288 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6289
c4a3fee2
DE
62902014-03-07 Doug Evans <dje@google.com>
6291
6292 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6293 Remove unused local comp_dir_attr. Assert exactly one of
6294 stub_comp_unit_die, stub_comp_dir is non-NULL.
6295
3156469c
JB
62962014-03-07 Joel Brobecker <brobecker@adacore.com>
6297
6298 * target.h (complete_target_initialization, add_target):
6299 Add comment.
6300
c1a7b7c6
PA
63012014-03-07 Pedro Alves <palves@redhat.com>
6302
6303 * go32-nat.c: Include inf-child.h.
6304 (go32_ops): Delete global.
6305 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6306 Delete methods.
6307 (go32_create_inferior): Push the passed in target pointer instead
6308 of referencing go32_ops.
6309 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6310 (go32_target): New function, based on init_go32_ops, but inherit
6311 inf_child_target.
6312 (_initialize_go32_nat): Use go32_target. Move parts of
6313 init_go32_ops here.
6314
d3c1a85f
JB
63152014-03-06 Joel Brobecker <brobecker@adacore.com>
6316
6317 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6318 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6319 SYMBOL_VALUE_ADDRESS.
6320 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6321
5fa1d40e
YQ
63222014-03-06 Yao Qi <yao@codesourcery.com>
6323
6324 * breakpoint.c (get_tracepoint_by_number): Remove argument
6325 optional_p. All callers updated. Adjust comments. Update
6326 output message.
6327 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6328
0c13193f
YQ
63292014-03-06 Yao Qi <yao@codesourcery.com>
6330
6331 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6332 early if get_number returns zero. Use 'p' instead of 'args'.
6333
2217da06
YQ
63342014-03-06 Yao Qi <yao@codesourcery.com>
6335
6336 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6337 message.
6338
cc3da688
YQ
63392014-03-06 Yao Qi <yao@codesourcery.com>
6340
6341 PR breakpoints/16508
6342 * tracepoint.c (check_trace_running): New function.
6343 (trace_find_command): Move code to check_trace_running and
6344 call check_trace_running.
6345 (trace_find_pc_command): Likewise.
6346 (trace_find_tracepoint_command): Likewise.
6347 (trace_find_line_command): Likewise.
6348 (trace_find_range_command): Likewise.
6349 * tracepoint.h (check_trace_running): Likewise.
6350 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6351
6a5f844b
YQ
63522014-03-06 Yao Qi <yao@codesourcery.com>
6353
6354 * target.h (struct target_ops) <to_traceframe_info>: Use
6355 TARGET_DEFAULT_NORETURN (tcomplain ()).
6356 * target-delegates.c: Regenerated.
6357
0f26cec1
PA
63582014-03-05 Pedro Alves <palves@redhat.com>
6359
6360 PR gdb/16575
6361 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6362 void. Update comment.
6363 (dcache_xfer_memory): Delete.
6364 (dcache_read_memory_partial): New, based on the read bits of
6365 dcache_xfer_memory.
6366 (dcache_update): Add status parameter. Use ULONGEST for len, and
6367 adjust. Discard cache lines if the reason for the update was
6368 error.
6369 * dcache.h (dcache_xfer_memory): Delete declaration.
6370 (dcache_read_memory_partial): New declaration.
6371 (dcache_update): Update prototype.
6372 * target.c (raw_memory_xfer_partial): Update the dcache here.
6373 (memory_xfer_partial_1): Don't handle dcache writes here.
6374
b2b255bd
MF
63752014-03-05 Mike Frysinger <vapier@gentoo.org>
6376
6377 * remote-sim.c (gdbsim_load): Add const to prog.
6378
5d9cf8a4
TT
63792014-03-03 Tom Tromey <tromey@redhat.com>
6380
6381 * elfread.c (probe_key): Change to bfd_data.
6382 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6383 now per-BFD, not per-objfile.
6384 * stap-probe.c (stap_probe_destroy): Update comment.
6385 (handle_stap_probe): Allocate on the per-BFD obstack.
6386
729662a5
TT
63872014-03-03 Tom Tromey <tromey@redhat.com>
6388
6389 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6390 * breakpoint.c (create_longjmp_master_breakpoint): Use
6391 get_probe_address.
6392 (add_location_to_breakpoint, bkpt_probe_insert_location)
6393 (bkpt_probe_remove_location): Update.
6394 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6395 * elfread.c (elf_symfile_relocate_probe): Remove.
6396 (elf_probe_fns): Update.
6397 (insert_exception_resume_breakpoint): Change type of "probe"
6398 parameter to bound_probe.
6399 (check_exception_resume): Update.
6400 * objfiles.c (objfile_relocate1): Don't relocate probes.
6401 * probe.c (bound_probe_s): New typedef.
6402 (parse_probes): Use get_probe_address. Set sal's objfile.
6403 (find_probe_by_pc): Return a bound_probe.
6404 (collect_probes): Return a VEC(bound_probe_s).
6405 (compare_probes): Update.
6406 (gen_ui_out_table_header_info): Change type of "probes"
6407 parameter. Update.
6408 (info_probes_for_ops): Update.
6409 (get_probe_address): New function.
6410 (probe_safe_evaluate_at_pc): Update.
6411 * probe.h (struct probe_ops) <get_probe_address>: New field.
6412 <set_semaphore, clear_semaphore>: Add objfile parameter.
6413 (struct probe) <objfile>: Remove field.
6414 <arch>: New field.
6415 <address>: Update comment.
6416 (struct bound_probe): New.
6417 (find_probe_by_pc): Return a bound_probe.
6418 (get_probe_address): Declare.
6419 * solib-svr4.c (struct probe_and_action) <address>: New field.
6420 (hash_probe_and_action, equal_probe_and_action): Update.
6421 (register_solib_event_probe): Add address parameter.
6422 (solib_event_probe_at): Update.
6423 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6424 get_probe_address.
6425 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6426 (stap_get_probe_address): New function.
6427 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6428 (compile_probe_arg): Update.
6429 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6430 address.
6431 (handle_stap_probe): Don't relocate the probe.
6432 (stap_relocate): Remove.
6433 (stap_gen_info_probes_table_values): Update.
6434 (stap_probe_ops): Remove stap_relocate.
6435 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6436 (debug_sym_probe_fns): Update.
6437 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6438 * symtab.c (init_sal): Use memset.
6439 * symtab.h (struct symtab_and_line) <objfile>: New field.
6440 * tracepoint.c (start_tracing, stop_tracing): Update.
6441
ff887920
TT
64422014-03-03 Tom Tromey <tromey@redhat.com>
6443
6444 * probe.h (parse_probes, find_probe_by_pc)
6445 (find_probes_in_objfile): Fix comments.
6446
f0407826
DE
64472014-03-02 Doug Evans <xdje42@gmail.com>
6448
6449 * infrun.c (handle_signal_stop): Replace test for
6450 TARGET_WAITKIND_STOPPED with an assert.
6451
35e6a711
DE
64522014-03-02 Doug Evans <xdje42@gmail.com>
6453
6454 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6455
667f9d0b
DE
64562014-03-02 Doug Evans <xdje42@gmail.com>
6457
6458 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6459
dc92ace0
MK
64602014-03-01 Mark Kettenis <kettenis@gnu.org>
6461
6462 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6463
a900370f
MK
64642014-03-01 Mark Kettenis <kettenis@gnu.org>
6465
6466 * i386obsd-nat.c: Include "obsd-nat.h".
6467 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6468 add_target.
6469 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6470
b72a7981
MK
64712014-03-01 Mark Kettenis <kettenis@gnu.org>
6472
6473 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6474
96c70aba
MK
64752014-03-01 Mark Kettenis <kettenis@gnu.org>
6476
6477 * mips64obsd-nat.c: Include "obsd-nath".
6478 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6479 add_target
6480 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6481
874a80af
MK
64822014-03-01 Mark Kettenis <kettenis@gnu.org>
6483
8fd408f1
MK
6484 * amd64obsd-nat.c: Include "obsd-nat,h.
6485 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6486 add_target.
874a80af
MK
6487 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6488
9cf95373
SC
64892014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6490
6491 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6492 (find_overload_match): Update call to find_oload_champ.
6493 (find_oload_champ_namespace_loop): Likewise
6494
863e4da4
MK
64952014-02-28 Mark Kettenis <kettenis@gnu.org>
6496
025cac40
MK
6497 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6498
1ed586ce
MK
6499 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6500 * config/sparc/obsd64.mh: New file.
6501 * sparc64obsd-nat.c: New file.
6502
863e4da4
MK
6503 * obsd-nat.h: New file.
6504 * obsd-nat.c: New file.
6505 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6506 (ALLDEPFILES): Add obsd-nat.c.
6507
89de4da4
TT
65082014-02-28 Tom Tromey <tromey@redhat.com>
6509
6510 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6511 * cli-out.h (cli_ui_out_impl): Now const.
6512 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6513 * ui-out.c (struct ui_out) <impl>: Now const.
6514 (default_ui_out_impl): Now const.
6515 (ui_out_new): Make 'impl' parameter const.
6516 * ui-out.h (ui_out_new): Update.
6517
c725e7b6
MK
65182014-02-27 Mark Kettenis <kettenis@gnu.org>
6519
6520 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6521
670b46b3
MK
65222014-02-27 Mark Kettenis <kettenis@gnu.org>
6523
6524 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6525
c91550fc
JK
65262014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6527
6528 Additional PR 8882 fix.
6529 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6530
2fa0369e
PA
65312014-02-27 Pedro Alves <palves@redhat.com>
6532
6533 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6534 isn't set.
6535
d632a097
PA
65362014-02-27 Pedro Alves <palves@redhat.com>
6537
6538 PR 12702
6539 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6540 * nat/linux-waitpid.c: Include string.h.
6541 (status_to_str): Moved here and made extern.
6542 * nat/linux-waitpid.h (status_to_str): New declaration.
6543
2ebd5a35
HZ
65442014-02-27 Hui Zhu <hui@codesourcery.com>
6545
6546 PR 12702
6547 * infrun.c (ptid_match): Move ...
6548 * common/ptid.c (ptid_match): ... here.
6549 * inferior.h (ptid_match): Move ...
6550 * common/ptid.h (ptid_match): ... here.
6551
3cdd631f
MK
65522014-02-27 Mark Kettenis <kettenis@gnu.org>
6553
6554 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6555 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6556 gdb_target_obs.
6557
bee30a64
MK
65582014-02-27 Mark Kettenis <kettenis@gnu.org>
6559
6560 * obsd-tdep.c (obsd_auxv_parse): New function.
6561 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6562
6563 * gdbarch.sh (auxv_parse): New.
6564 * gdbarch.h: Regenerated.
6565 * gdbarch.c: Regenerated.
6566 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6567
7a5a839f
LC
65682014-02-26 Ludovic Courtès <ludo@gnu.org>
6569
6570 * guile/scm-value.c (gdbscm_history_append_x): New function.
6571 (value_functions): Add it.
6572
31aa7e4e
JB
65732014-02-27 Joel Brobecker <brobecker@adacore.com>
6574
6575 * dwarf2read.c (attr_value_as_address): New function.
6576 (dwarf2_find_base_address, read_call_site_scope): Use
6577 attr_value_as_address in place of DW_ADDR.
6578 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6579 the low and high addresses. Slight rework of the handling
6580 of the high pc being a constant form, and limit it to
6581 DWARF verson 4 or higher.
6582 (dwarf2_record_block_ranges): Likewise.
6583 (read_partial_die): Likewise.
6584 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6585
9b333ba3
TT
65862014-02-26 Tom Tromey <tromey@redhat.com>
6587
6588 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6589
5f6cac40
TT
65902014-02-26 Tom Tromey <tromey@redhat.com>
6591
6592 * elfread.c (elf_read_minimal_symbols): Return early if
6593 minimal symbols have already been read. Add "ei" parameter.
6594 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6595 * minsyms.c (prim_record_minimal_symbol_full): Update.
6596 * objfiles.h (struct objstats) <n_minsyms>: Move...
6597 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6598 * symmisc.c (print_objfile_statistics): Update.
6599
2750ef27
TT
66002014-02-26 Tom Tromey <tromey@redhat.com>
6601
6602 * elfread.c (elf_read_minimal_symbols): New function, from
6603 elf_symfile_read.
6604 (elf_symfile_read): Call it.
6605
34643a32
TT
66062014-02-26 Tom Tromey <tromey@redhat.com>
6607
6608 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6609 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6610 (lookup_minimal_symbol_solib_trampoline)
6611 (lookup_minimal_symbol_by_pc_section_1)
6612 (lookup_minimal_symbol_and_objfile): Update.
6613 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6614 Don't allocate a minimal symbol if minsyms have already been read.
6615 (build_minimal_symbol_hash_tables): Update.
6616 (install_minimal_symbols): Do nothing if minsyms already read.
6617 Use the per-BFD obstack.
6618 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6619 * objfiles.c (allocate_objfile): Call
6620 terminate_minimal_symbol_table later.
6621 (have_minimal_symbols): Update.
6622 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6623 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6624 Move from struct objfile.
6625 <minsyms_read>: New field.
6626 (struct objfile) <msymbols, minimal_symbol_count,
6627 msymbol_hash, msymbol_demangled_hash>: Move.
6628 (ALL_OBJFILE_MSYMBOLS): Update.
6629 * symfile.c (read_symbols): Set minsyms_read.
6630 (reread_symbols): Update.
6631 * symmisc.c (dump_objfile, dump_msymbols): Update.
6632
2273f0ac
TT
66332014-02-26 Tom Tromey <tromey@redhat.com>
6634
6635 * minsyms.c (msymbols_sort): Remove.
6636 * minsyms.h (msymbols_sort): Remove.
6637 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6638 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6639 * elfread.c (elf_symtab_read): Don't add section offsets.
6640 * xcoffread.c (record_minimal_symbol): Don't add section offset
6641 to minimal symbol address.
6642 * somread.c (text_offset, data_offset): Remove.
6643 (som_symtab_read): Don't add section offsets to minimal symbol
6644 addresses.
6645 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6646 Don't add section offsets to minimal symbols.
6647 * coffread.c (coff_symtab_read): Don't add section offsets
6648 to minimal symbol addresses.
6649 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6650 to minimal symbol addresses.
6651 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6652 section offset to minimal symbol addresses.
6653 * mdebugread.c (parse_partial_symbols): Don't add section
6654 offset to minimal symbol addresses.
6655 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6656 offset to minimal symbol addresses.
6657
77e371c0
TT
66582014-02-26 Tom Tromey <tromey@redhat.com>
6659
6660 * ada-lang.c (ada_main_name): Update.
6661 (ada_add_standard_exceptions): Update.
6662 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6663 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6664 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6665 * auxv.c (ld_so_xfer_auxv): Update.
6666 * avr-tdep.c (avr_scan_prologue): Update.
6667 * ax-gdb.c (gen_var_ref): Update.
6668 * blockframe.c (get_pc_function_start)
6669 (find_pc_partial_function_gnu_ifunc): Update.
6670 * breakpoint.c (create_overlay_event_breakpoint)
6671 (create_longjmp_master_breakpoint)
6672 (create_std_terminate_master_breakpoint)
6673 (create_exception_master_breakpoint): Update.
6674 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6675 * c-valprint.c (c_val_print): Update.
6676 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6677 * common/agent.c (agent_look_up_symbols): Update.
6678 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6679 * dwarf2loc.c (call_site_to_target_addr): Update.
6680 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6681 * elfread.c (elf_gnu_ifunc_record_cache)
6682 (elf_gnu_ifunc_resolve_by_got): Update.
6683 * findvar.c (default_read_var_value): Update.
6684 * frame.c (inside_main_func): Update.
6685 * frv-tdep.c (frv_frame_this_id): Update.
6686 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6687 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6688 Update.
6689 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6690 (hppa_hpux_find_dummy_bpaddr): Update.
6691 * hppa-tdep.c (hppa_symbol_address): Update.
6692 * infcmd.c (until_next_command): Update.
6693 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6694 Update.
6695 * linespec.c (minsym_found, add_minsym): Update.
6696 * linux-nat.c (get_signo): Update.
6697 * linux-thread-db.c (inferior_has_bug): Update.
6698 * m32c-tdep.c (m32c_return_value)
6699 (m32c_m16c_address_to_pointer): Update.
6700 * m32r-tdep.c (m32r_frame_this_id): Update.
6701 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6702 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6703 * maint.c (maintenance_translate_address): Update.
6704 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6705 (frob_address): New function.
6706 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6707 frob_address. Rename parameter to "pc_in".
6708 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6709 addresses.
6710 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6711 Update.
6712 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6713 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6714 * objc-lang.c (find_objc_msgsend): Update.
6715 * objfiles.c (objfile_relocate1): Update.
6716 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6717 * p-valprint.c (pascal_val_print): Update.
6718 * parse.c (write_exp_msymbol): Update.
6719 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6720 (ppc_elfv2_skip_entrypoint): Update.
6721 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6722 * printcmd.c (build_address_symbolic, msym_info)
6723 (address_info): Update.
6724 * proc-service.c (ps_pglobal_lookup): Update.
6725 * psymtab.c (find_pc_sect_psymtab_closer)
6726 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6727 Change msymbol parameter to bound_minimal_symbol.
6728 * ravenscar-thread.c (get_running_thread_id): Update.
6729 * remote.c (remote_check_symbols): Update.
6730 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6731 address.
6732 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6733 * solib-dsbt.c (lm_base): Update.
6734 * solib-frv.c (lm_base, main_got): Update.
6735 * solib-irix.c (locate_base): Update.
6736 * solib-som.c (som_solib_create_inferior_hook)
6737 (link_map_start): Update.
6738 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6739 * solib-svr4.c (elf_locate_base, enable_break): Update.
6740 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6741 (flush_ea_cache): Update.
6742 * stabsread.c (define_symbol, scan_file_globals): Update.
6743 * stack.c (find_frame_funname): Update.
6744 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6745 (debug_qf_find_pc_sect_symtab): Update.
6746 * symfile.c (simple_read_overlay_table)
6747 (simple_overlay_update): Update.
6748 * symfile.h (struct quick_symbol_functions)
6749 <find_pc_sect_symtab>: Change type of msymbol to
6750 bound_minimal_symbol.
6751 * symmisc.c (dump_msymbols): Update.
6752 * symtab.c (find_pc_sect_symtab_via_partial)
6753 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6754 (search_symbols, print_msymbol_info): Update.
6755 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6756 (MSYMBOL_VALUE_ADDRESS): Redefine.
6757 (BMSYMBOL_VALUE_ADDRESS): New macro.
6758 * tracepoint.c (scope_info): Update.
6759 * tui/tui-disasm.c (tui_find_disassembly_address)
6760 (tui_get_begin_asm_address): Update.
6761 * valops.c (find_function_in_inferior): Update.
6762 * value.c (value_static_field, value_fn_field): Update.
6763
3b7344d5
TT
67642014-02-26 Tom Tromey <tromey@redhat.com>
6765
6766 * ada-lang.c (ada_update_initial_language): Update.
6767 (ada_main_name, ada_has_this_exception_support): Update.
6768 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6769 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6770 * arm-tdep.c (arm_skip_stub): Update.
6771 * auxv.c (ld_so_xfer_auxv): Update.
6772 * avr-tdep.c (avr_scan_prologue): Update.
6773 * ax-gdb.c (gen_var_ref): Update.
6774 * breakpoint.c (struct breakpoint_objfile_data)
6775 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6776 type to bound_minimal_symbol.
6777 (create_overlay_event_breakpoint)
6778 (create_longjmp_master_breakpoint)
6779 (create_std_terminate_master_breakpoint)
6780 (create_exception_master_breakpoint): Update.
6781 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6782 * c-exp.y (classify_name): Update.
6783 * coffread.c (coff_symfile_read): Update.
6784 * common/agent.c (agent_look_up_symbols): Update.
6785 * d-lang.c (d_main_name): Update.
6786 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6787 * dec-thread.c (enable_dec_thread): Update.
6788 * dwarf2loc.c (call_site_to_target_addr): Update.
6789 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6790 * eval.c (evaluate_subexp_standard): Update.
6791 * findvar.c (struct minsym_lookup_data) <result>: Change type
6792 to bound_minimal_symbol.
6793 <objfile>: Remove.
6794 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6795 * frame.c (inside_main_func): Update.
6796 * frv-tdep.c (frv_frame_this_id): Update.
6797 * gcore.c (call_target_sbrk): Update.
6798 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6799 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6800 Update.
6801 * go-lang.c (go_main_name): Update.
6802 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6803 (hppa_hpux_find_import_stub_for_addr): Update.
6804 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6805 Update. Change return type.
6806 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6807 type.
6808 * jit.c (jit_breakpoint_re_set_internal): Update.
6809 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6810 Update.
6811 * linux-nat.c (get_signo): Update.
6812 * linux-thread-db.c (inferior_has_bug): Update
6813 * m32c-tdep.c (m32c_return_value)
6814 (m32c_m16c_address_to_pointer): Update.
6815 * m32r-tdep.c (m32r_frame_this_id): Update.
6816 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6817 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6818 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6819 lookup_minimal_symbol. Change return type.
6820 (lookup_minimal_symbol): Remove.
6821 (lookup_bound_minimal_symbol): Update.
6822 (lookup_minimal_symbol_text): Change return type.
6823 (lookup_minimal_symbol_solib_trampoline): Change return type.
6824 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6825 (lookup_minimal_symbol_solib_trampoline): Change return type.
6826 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6827 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6828 (value_nsstring, find_imps): Update.
6829 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6830 * p-lang.c (pascal_main_name): Update.
6831 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6832 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6833 * proc-service.c (ps_pglobal_lookup): Update.
6834 * ravenscar-thread.c (get_running_thread_msymbol): Change
6835 return type.
6836 (has_ravenscar_runtime, get_running_thread_id): Update.
6837 * remote.c (remote_check_symbols): Update.
6838 * sol-thread.c (ps_pglobal_lookup): Update.
6839 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6840 * solib-dsbt.c (lm_base): Update.
6841 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6842 Update.
6843 * solib-irix.c (locate_base): Update.
6844 * solib-som.c (som_solib_create_inferior_hook)
6845 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6846 Update.
6847 * solib-spu.c (spu_enable_break): Update.
6848 * solib-svr4.c (elf_locate_base, enable_break): Update.
6849 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6850 (flush_ea_cache): Update.
6851 * stabsread.c (define_symbol): Update.
6852 * symfile.c (simple_read_overlay_table): Update.
6853 * symtab.c (find_pc_sect_line): Update.
6854 * tracepoint.c (scope_info): Update.
6855 * tui-disasm.c (tui_get_begin_asm_address): Update.
6856 * value.c (value_static_field): Update.
6857
40c1a007
TT
68582014-02-26 Tom Tromey <tromey@redhat.com>
6859
6860 * minsyms.c (prim_record_minimal_symbol_full): Use
6861 SET_MSYMBOL_VALUE_ADDRESS.
6862 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6863 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6864 SET_MSYMBOL_VALUE_ADDRESS.
6865 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6866 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6867
efd66ac6
TT
68682014-02-26 Tom Tromey <tromey@redhat.com>
6869
6870 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6871 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6872 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6873 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6874 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6875 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6876 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6877 * ada-lang.c (ada_main_name): Update.
6878 (ada_lookup_simple_minsym): Update.
6879 (ada_make_symbol_completion_list): Update.
6880 (ada_add_standard_exceptions): Update.
6881 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6882 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6883 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6884 * arm-tdep.c (skip_prologue_function): Update.
6885 (arm_skip_stack_protector, arm_skip_stub): Update.
6886 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6887 (arm_wince_skip_main_prologue): Update.
6888 * auxv.c (ld_so_xfer_auxv): Update.
6889 * avr-tdep.c (avr_scan_prologue): Update.
6890 * ax-gdb.c (gen_var_ref): Update.
6891 * block.c (call_site_for_pc): Update.
6892 * blockframe.c (get_pc_function_start): Update.
6893 (find_pc_partial_function_gnu_ifunc): Update.
6894 * breakpoint.c (create_overlay_event_breakpoint): Update.
6895 (create_longjmp_master_breakpoint): Update.
6896 (create_std_terminate_master_breakpoint): Update.
6897 (create_exception_master_breakpoint): Update.
6898 (resolve_sal_pc): Update.
6899 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6900 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6901 Update.
6902 * c-valprint.c (c_val_print): Update.
6903 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6904 * coffread.c (coff_symfile_read): Update.
6905 * common/agent.c (agent_look_up_symbols): Update.
6906 * dbxread.c (find_stab_function_addr): Update.
6907 (end_psymtab): Update.
6908 * dwarf2loc.c (call_site_to_target_addr): Update.
6909 (func_verify_no_selftailcall): Update.
6910 (tailcall_dump): Update.
6911 (call_site_find_chain_1): Update.
6912 (dwarf_expr_reg_to_entry_parameter): Update.
6913 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6914 (elf_gnu_ifunc_resolve_by_got): Update.
6915 * f-valprint.c (info_common_command): Update.
6916 * findvar.c (read_var_value): Update.
6917 * frame.c (get_prev_frame_1): Update.
6918 (inside_main_func): Update.
6919 * frv-tdep.c (frv_skip_main_prologue): Update.
6920 (frv_frame_this_id): Update.
6921 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6922 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6923 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6924 (gnuv3_skip_trampoline): Update.
6925 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6926 (hppa64_hpux_in_solib_call_trampoline): Update.
6927 (hppa_hpux_skip_trampoline_code): Update.
6928 (hppa64_hpux_search_dummy_call_sequence): Update.
6929 (hppa_hpux_find_import_stub_for_addr): Update.
6930 (hppa_hpux_find_dummy_bpaddr): Update.
6931 * hppa-tdep.c (hppa_symbol_address)
6932 (hppa_lookup_stub_minimal_symbol): Update.
6933 * i386-tdep.c (i386_skip_main_prologue): Update.
6934 (i386_pe_skip_trampoline_code): Update.
6935 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6936 * infcall.c (get_function_name): Update.
6937 * infcmd.c (until_next_command): Update.
6938 * jit.c (jit_breakpoint_re_set_internal): Update.
6939 (jit_inferior_init): Update.
6940 * linespec.c (minsym_found): Update.
6941 (add_minsym): Update.
6942 * linux-fork.c (info_checkpoints_command): Update.
6943 * linux-nat.c (get_signo): Update.
6944 * linux-thread-db.c (inferior_has_bug): Update.
6945 * m32c-tdep.c (m32c_return_value): Update.
6946 (m32c_m16c_address_to_pointer): Update.
6947 (m32c_m16c_pointer_to_address): Update.
6948 * m32r-tdep.c (m32r_frame_this_id): Update.
6949 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6950 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6951 * maint.c (maintenance_translate_address): Update.
6952 * minsyms.c (add_minsym_to_hash_table): Update.
6953 (add_minsym_to_demangled_hash_table): Update.
6954 (msymbol_objfile): Update.
6955 (lookup_minimal_symbol): Update.
6956 (iterate_over_minimal_symbols): Update.
6957 (lookup_minimal_symbol_text): Update.
6958 (lookup_minimal_symbol_by_pc_name): Update.
6959 (lookup_minimal_symbol_solib_trampoline): Update.
6960 (lookup_minimal_symbol_by_pc_section_1): Update.
6961 (lookup_minimal_symbol_and_objfile): Update.
6962 (prim_record_minimal_symbol_full): Update.
6963 (compare_minimal_symbols): Update.
6964 (compact_minimal_symbols): Update.
6965 (build_minimal_symbol_hash_tables): Update.
6966 (install_minimal_symbols): Update.
6967 (terminate_minimal_symbol_table): Update.
6968 (find_solib_trampoline_target): Update.
6969 (minimal_symbol_upper_bound): Update.
6970 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6971 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6972 (mips_skip_pic_trampoline_code): Update.
6973 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6974 * objc-lang.c (selectors_info): Update.
6975 (classes_info): Update.
6976 (find_methods): Update.
6977 (find_imps): Update.
6978 (find_objc_msgsend): Update.
6979 * objfiles.c (objfile_relocate1): Update.
6980 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6981 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6982 * p-valprint.c (pascal_val_print): Update.
6983 * parse.c (write_exp_msymbol): Update.
6984 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6985 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6986 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6987 * printcmd.c (build_address_symbolic): Update.
6988 (sym_info): Update.
6989 (address_info): Update.
6990 * proc-service.c (ps_pglobal_lookup): Update.
6991 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6992 (find_pc_sect_psymtab): Update.
6993 * python/py-framefilter.c (py_print_frame): Update.
6994 * ravenscar-thread.c (get_running_thread_id): Update.
6995 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6996 Update.
6997 * remote.c (remote_check_symbols): Update.
6998 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6999 (rs6000_skip_trampoline_code): Update.
7000 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7001 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7002 * solib-dsbt.c (lm_base): Update.
7003 * solib-frv.c (lm_base): Update.
7004 (main_got): Update.
7005 * solib-irix.c (locate_base): Update.
7006 * solib-som.c (som_solib_create_inferior_hook): Update.
7007 (som_solib_desire_dynamic_linker_symbols): Update.
7008 (link_map_start): Update.
7009 * solib-spu.c (spu_enable_break): Update.
7010 (ocl_enable_break): Update.
7011 * solib-svr4.c (elf_locate_base): Update.
7012 (enable_break): Update.
7013 * spu-tdep.c (spu_get_overlay_table): Update.
7014 (spu_catch_start): Update.
7015 (flush_ea_cache): Update.
7016 * stabsread.c (define_symbol): Update.
7017 (scan_file_globals): Update.
7018 * stack.c (find_frame_funname): Update.
7019 (frame_info): Update.
7020 * symfile.c (simple_read_overlay_table): Update.
7021 (simple_overlay_update): Update.
7022 * symmisc.c (dump_msymbols): Update.
7023 * symtab.c (fixup_section): Update.
7024 (find_pc_sect_line): Update.
7025 (skip_prologue_sal): Update.
7026 (search_symbols): Update.
7027 (print_msymbol_info): Update.
7028 (rbreak_command): Update.
7029 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7030 (completion_list_objc_symbol): Update.
7031 (default_make_symbol_completion_list_break_on): Update.
7032 * tracepoint.c (scope_info): Update.
7033 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7034 (tui_get_begin_asm_address): Update.
7035 * valops.c (find_function_in_inferior): Update.
7036 * value.c (value_static_field): Update.
7037 (value_fn_field): Update.
7038
50e65b17
TT
70392014-02-26 Tom Tromey <tromey@redhat.com>
7040
7041 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7042 bound minimal symbols. Move code that knows about minsym
7043 table layout...
7044 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7045 function.
7046 * minsyms.h (minimal_symbol_upper_bound): Declare.
7047 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7048 minimal_symbol_upper_bound.
7049
1b588015
JB
70502014-02-27 Joel Brobecker <brobecker@adacore.com>
7051
7052 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7053 Use the type's name if its basic type does not have a tag.
7054
dbb9c2b1
JB
70552014-02-27 Joel Brobecker <brobecker@adacore.com>
7056
7057 * dwarf2read.c (read_subrange_type): Add comment.
7058
55426c9d
JB
70592014-02-27 Joel Brobecker <brobecker@adacore.com>
7060
7061 * dwarf2read.c (update_enumeration_type_from_children): New
7062 function, mostly extracted from process_structure_scope.
7063 (read_enumeration_type): Call update_enumeration_type_from_children.
7064 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7065 and flag_flag_enum fields.
7066
f2fce0ca
PA
70672014-02-26 Pedro Alves <palves@redhat.com>
7068
7069 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7070 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7071 to_xfer_partial method.
7072
7a44e40e
PA
70732014-02-26 Pedro Alves <palves@redhat.com>
7074
7075 * target.c (complete_target_initialization): Don't install
7076 default_xfer_partial as to_xfer_partial hook.
7077 (nomemory): Delete.
7078 (update_current_target): Don't INHERIT nor de_fault
7079 deprecated_xfer_memory. Delete de_fault macro.
7080 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7081 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7082 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7083 field.
7084
bd265cd0
PA
70852014-02-26 Pedro Alves <palves@redhat.com>
7086
7087 * go32-nat.c (my_write_child): New function.
7088 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7089 (go32_xfer_partial): New function.
7090 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7091 Instead install a to_xfer_partial hook.
7092
9d46c4e5
PA
70932014-02-26 Pedro Alves <palves@redhat.com>
7094
7095 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7096 to_xfer_partial helper. Rewrite.
7097 (procfs_xfer_partial): New function.
7098 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7099 Install a to_xfer_partial hook.
7100
a1583b1f
PA
71012014-02-26 Pedro Alves <palves@redhat.com>
7102
7103 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7104 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7105 (m32r_xfer_partial): New function.
7106 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7107 Install a to_xfer_partial hook.
7108
6df1b29f
PA
71092014-02-26 Pedro Alves <palves@redhat.com>
7110
7111 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7112 helper.
7113 (mips_xfer_partial): New function.
7114 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7115 hook. Install a to_xfer_partial hook.
7116
dc53a7ad
JB
71172014-02-26 Joel Brobecker <brobecker@adacore.com>
7118
7119 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7120 * gdbtypes.c (create_array_type_with_stride): New function,
7121 renaming create_array_type, but with an added parameter
7122 called "bit_stride".
7123 (create_array_type): Re-implement using
7124 create_array_type_with_stride.
7125 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7126 and DW_AT_bit_stride attributes.
7127
12ab52e9
PA
71282014-02-26 Pedro Alves <palves@redhat.com>
7129
7130 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7131 task-specific breakpoints.
7132
d16461ae
PA
71332014-02-25 Pedro Alves <palves@redhat.com>
7134
7135 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7136 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7137
a8b16220
SS
71382014-02-25 Stan Shebs <stan@codesourcery.com>
7139
7140 * defs.h: Annotate comments for Doxygen.
7141
b9e795ee
TT
71422014-02-25 Tom Tromey <tromey@redhat.com>
7143
7144 * target.h (target_ignore): Don't declare.
7145 * target.c (target_ignore): Remove.
7146
849c862e
JK
71472014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7148
7149 PR gdb/16626
7150 * auto-load.c (auto_load_objfile_script_1): Change filename to
7151 debugfile.
7152
475109d8
JB
71532014-02-25 Joel Brobecker <brobecker@adacore.com>
7154
7155 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7156 documentation. Adjust prototype to match the target_ops
7157 to_xfer_partial method. Adjust implementation accordingly.
7158
e186c3bd
HZ
71592014-02-25 Hui Zhu <hui@codesourcery.com>
7160
7161 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7162 to_traceframe_info.
7163
6d451942
KB
71642014-02-25 Kevin Buettner <kevinb@redhat.com>
7165
041ab8b4 7166 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7167 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7168 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7169 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7170 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7171 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7172 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7173 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7174 New constants.
7175 (rl78_register_type): Use a data pointer type for SP and
7176 new pseudo registers mentioned above. Use a 16 bit integer
7177 type for all other register pairs.
7178 (rl78_register_name, rl78_g10_register_name): Update for
7179 new pseudo registers.
7180 (rl78_pseudo_register_read): Likewise.
7181 (rl78_pseudo_register_write): Likewise.
7182 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7183 to the newly added pseudo registers.
7184
eddf0bae
DE
71852014-02-24 Doug Evans <dje@google.com>
7186
7187 * value.c (record_latest_value): Fix comment.
7188 * printcmd.c (print_command_1): Remove code to handle -1 return from
7189 record_latest_value.
7190
e96027e0
PA
71912014-02-24 Pedro Alves <palves@redhat.com>
7192
7193 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7194 deprecated_xfer_memory hook.
7195 (procfs_xfer_partial): Call procfs_xfer_memory instead
7196 of the deprecated_xfer_memory target hook.
7197 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7198 helper.
7199
0837c976
YZ
72002014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7201
7202 * windows-nat.c (windows_xfer_shared_libraries): Return
7203 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7204 requested object is TARGET_OBJECT_LIBRARIES.
7205
bc113b4e
YQ
72062014-02-24 Yao Qi <yao@codesourcery.com>
7207
7208 * target.h (enum target_xfer_status)
7209 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7210 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7211 explicitly. New.
7212 * corefile.c (memory_error_message): User updated.
7213 * exec.c (section_table_read_available_memory): Likewise.
7214 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7215 * target.c (target_xfer_status_to_string): Likewise.
7216 (raw_memory_xfer_partial): Likewise.
7217 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7218 * valops.c (read_value_memory): Likewise.
7219 * exec.h: Update comments.
7220
01cb8804
YQ
72212014-02-24 Yao Qi <yao@codesourcery.com>
7222
7223 * target.c (target_xfer_status_to_string): Rename argument err
7224 to status.
7225 * target.h (target_xfer_status_to_string): Update declaration.
7226 Replace target_xfer_error_to_string with
7227 target_xfer_status_to_string in comment.
7228
93063aa6
YQ
72292014-02-24 Yao Qi <yao@codesourcery.com>
7230
7231 * mips-linux-nat.c (super_close): Update its type.
7232 (mips_linux_close): Pass 'self' to super_close.
7233
5c328c05
YQ
72342014-02-24 Yao Qi <yao@codesourcery.com>
7235
7236 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7237 * corefile.c (read_memory): Adjusted.
7238 * target.c (target_write_with_progress): Adjusted.
7239
f73023dd
YQ
72402014-02-23 Yao Qi <yao@codesourcery.com>
7241
7242 Revert two patches:
7243
7244 2013-10-25 Yao Qi <yao@codesourcery.com>
7245
7246 * remote.c (remote_traceframe_info): Return early if
7247 traceframe is not selected.
7248
7249 2013-07-19 Yao Qi <yao@codesourcery.com>
7250
7251 * target.c (update_current_target): Change the default action
7252 of 'to_traceframe_info' from tcomplain to return_zero.
7253 * target.h (struct target_ops) <to_traceframe_info>: Add more
7254 comments.
7255
5a2eb0ef
YQ
72562014-02-23 Yao Qi <yao@codesourcery.com>
7257
7258 * valops.c (read_value_memory): Rewrite it. Call
7259 target_xfer_partial in a loop.
7260 * exec.h (section_table_available_memory): Remove declaration.
7261 Move comments to ...
7262 * exec.c (section_table_available_memory): ... here. Make it
7263 static.
7264
1ee79381
YQ
72652014-02-23 Yao Qi <yao@codesourcery.com>
7266
7267 * exec.c (section_table_read_available_memory): New function.
7268 * exec.h (section_table_read_available_memory): Declare.
7269 * ctf.c (ctf_xfer_partial): Call
7270 section_table_read_available_memory.
7271 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7272
1ca49d37
YQ
72732014-02-23 Yao Qi <yao@codesourcery.com>
7274
7275 * ctf.c (ctf_xfer_partial): Move code to ...
7276 * exec.c (exec_read_partial_read_only): ... it. New function.
7277 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7278 * tracefile.c: Include "exec.h".
7279 * exec.h (exec_read_partial_read_only): Declare.
7280
a283690e
YQ
72812014-02-23 Yao Qi <yao@codesourcery.com>
7282
7283 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7284 (tfile_has_memory): Remove.
7285 (init_tfile_ops): Don't set fields to_has_all_memory and
7286 to_has_memory of tfile_ops.
7287 * tracefile.c (tracefile_has_all_memory): New function.
7288 (tracefile_has_memory): New function.
7289 (init_tracefile_ops): Initialize fields to_has_all_memory and
7290 to_has_memory of 'ops'.
7291
12e03cd0
YQ
72922014-02-23 Yao Qi <yao@codesourcery.com>
7293
7294 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7295 (ctf_thread_alive, ctf_get_trace_status): Remove.
7296 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7297 init_tracefile_ops.
7298 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7299 (tfile_has_stack, tfile_has_registers): Remove.
7300 (tfile_thread_alive): Remove.
7301 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7302 init_tracefile_ops.
7303 * tracefile.c (tracefile_has_stack): New function.
7304 (tracefile_has_registers): New function.
7305 (tracefile_thread_alive): New function.
7306 (tracefile_get_trace_status): New function.
7307 (init_tracefile_ops): New function.
7308 * tracefile.h (init_tracefile_ops): Declare.
7309
11395323
YQ
73102014-02-23 Yao Qi <yao@codesourcery.com>
7311
7312 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7313 (O_LARGEFILE): Likewise.
7314 (tfile_ops): Likewise.
7315 (TRACE_HEADER_SIZE): Likewise.
7316 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7317 (cur_data_size): Likewise.
7318 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7319 (tfile_close, tfile_files_info): Likewise.
7320 (tfile_get_trace_status): Likewise.
7321 (tfile_get_tracepoint_status): Likewise.
7322 (tfile_get_traceframe_address): Likewise.
7323 (tfile_trace_find, match_blocktype): Likewise.
7324 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7325 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7326 (tfile_get_trace_state_variable_value): Likewise.
7327 (tfile_has_all_memory, tfile_has_memory): Likewise.
7328 (tfile_has_stack, tfile_has_registers): Likewise.
7329 (tfile_thread_alive, build_traceframe_info): Likewise.
7330 (tfile_traceframe_info, init_tfile_ops): Likewise.
7331 (_initialize_tracepoint): Don't call init_tfile_ops
7332 and add_target_with_completer.
7333 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7334 exec.h, completer.h and filenames.h.
7335 (_initialize_tracefile_tfile): New function.
7336
7951c4eb
YQ
73372014-02-23 Yao Qi <yao@codesourcery.com>
7338
7339 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7340 tracefile-tfile.o.
7341 (HFILES_NO_SRCDIR): Add tracefile.h.
7342 * ctf.c: Include "tracefile.h".
7343 * tracefile.h: New file.
7344 * tracefile.c: New file
7345 * tracefile-tfile.c: New file.
7346 * tracepoint.c: Include "tracefile.h".
7347 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7348 (stop_reason_names): Add const.
7349 (trace_file_writer_xfree): Move it to tracefile.c.
7350 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7351 (trace_save_ctf): Likewise.
7352 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7353 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7354 (tfile_write_header, tfile_write_regblock_type): Likewise.
7355 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7356 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7357 (tfile_write_raw_data, tfile_end): Likewise.
7358 (tfile_trace_file_writer_new): Likewise.
7359 (free_uploaded_tp): Make it extern.
7360 (free_uploaded_tsv): Make it extern.
7361 (_initialize_tracepoint): Move code to register command 'tsave'
7362 to tracefile.c.
7363 * tracepoint.h (stop_reason_names): Declare.
7364 (struct trace_frame_write_ops): Move it to tracefile.h.
7365 (struct trace_file_write_ops): Likewise.
7366 (struct trace_file_writer): Likewise.
7367 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7368
184cd072
JK
73692014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7370
7371 PR gdb/16594
7372 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7373 process name.
7374 (get_cores_used_by_process): New parameter num_cores, use it.
7375 (linux_xfer_osdata_processes): Pass num_cores to it.
7376 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7377 process name.
7378
c63528fc
AK
73792014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7380
7381 * target.c (memory_xfer_partial): Fix length arg in call to
7382 breakpoint_xfer_memory.
7383
d7b30f67
SDJ
73842014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7385
7386 PR tdep/16397
7387 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7388 number comes after the + or - signs. Adjust length of register
7389 name to be extracted.
7390
8838afaf
TT
73912014-02-20 Tom Tromey <tromey@redhat.com>
7392
7393 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7394 (ada_varobj_ops): Mark "extern".
7395
05227d14
TT
73962014-02-20 Tom Tromey <tromey@redhat.com>
7397
7398 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7399
1254eefc
DE
74002014-02-20 Doug Evans <xdje42@gmail.com>
7401
7402 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7403 All callers updated.
7404 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7405 All callers updated.
7406 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7407 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7408
adde2bff
DE
74092014-02-20 lin zuojian <manjian2006@gmail.com>
7410 Joel Brobecker <brobecker@adacore.com>
7411 Doug Evans <xdje42@gmail.com>
7412
7413 PR symtab/16581
7414 * dwarf2read.c (struct die_info): New member in_process.
7415 (reset_die_in_process): New function.
7416 (process_die): Set it at the start, reset when returning.
7417 (inherit_abstract_dies): Only call process_die if origin_child_die
7418 not already being processed.
7419
3be75f87
JB
74202014-02-20 Joel Brobecker <brobecker@adacore.com>
7421
7422 * windows-nat.c (handle_unload_dll): Add function documentation.
7423 (do_initial_windows_stuff): Add comment explaining why we wait
7424 until after inferior initialization has finished before
7425 processing all DLLs.
7426
47f7ffdb
JB
74272014-02-20 Joel Brobecker <brobecker@adacore.com>
7428
7429 * windows-nat.c (get_module_name): Delete.
7430 (windows_get_exec_module_filename): New function, mostly
7431 inspired from get_module_name.
7432 (windows_pid_to_exec_file): Replace call to get_module_name
7433 by call to windows_get_exec_module_filename.
7434
1cd9feab
JB
74352014-02-20 Joel Brobecker <brobecker@adacore.com>
7436
7437 * windows-nat.c (handle_load_dll): Rewrite this function's
7438 introductory comment. Remove code using get_module_name
7439 to get the DLL's name.
7440
ea39ad35
JB
74412014-02-20 Joel Brobecker <brobecker@adacore.com>
7442
7443 * windows-nat.c (get_windows_debug_event): Ignore
7444 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7445 if windows_initialization_done == 0.
7446 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7447 Adjust implementation to always load all DLLs.
7448 (do_initial_windows_stuff): Replace call to
7449 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7450
95060284
JB
74512014-02-20 Joel Brobecker <brobecker@adacore.com>
7452
7453 * windows-nat.c (_initialize_windows_nat): Deprecate the
7454 "dll-symbols" command. Turn the "add-shared-symbol-files"
7455 and "assf" aliases into commands, and deprecate them as well.
7456 * NEWS: Add entry explaining that "dll-symbols" and its two
7457 aliases are now deprecated.
7458
8d4fdb12
JB
74592014-02-20 Joel Brobecker <brobecker@adacore.com>
7460
7461 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7462 new-line in debug string. Remove trailing spaces.
7463
1b281443
SS
74642014-02-19 Stan Shebs <stan@codesourcery.com>
7465
7466 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7467
f7bd0f78
SC
74682014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7469
7470 * NEWS: Add entry for the new feature
7471 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7472 and class values.
7473
399ebc3d
SS
74742014-02-19 Stan Shebs <stan@codesourcery.com>
7475
7476 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7477
c658158d
PA
74782014-02-19 Pedro Alves <palves@redhat.com>
7479
7480 * common/ptid.h (struct ptid): Mention that process_stratum
7481 targets should prefer ptid.lwp.
7482
ba348170
PA
74832014-02-19 Pedro Alves <palves@redhat.com>
7484
7485 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7486 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7487 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7488 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7489 store remote thread ids rather than ptid.tid.
7490 (_initialize_remote): Adjust.
7491
ac01945b
TT
74922014-02-19 Tom Tromey <tromey@redhat.com>
7493
7494 * target.c (target_get_unwinder): Rewrite.
7495 (target_get_tailcall_unwinder): Rewrite.
7496 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7497 (record_btrace_to_get_tailcall_unwinder): New function.
7498 (init_record_btrace_ops): Update.
7499 * target.h (struct target_ops) <to_get_unwinder,
7500 to_get_tailcall_unwinder>: Now function pointers. Use
7501 TARGET_DEFAULT_RETURN.
7502
8476dc92
TT
75032014-02-19 Tom Tromey <tromey@redhat.com>
7504
7505 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7506 argument.
7507 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7508
c0eca49f
TT
75092014-02-19 Tom Tromey <tromey@redhat.com>
7510
7511 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7512 directly.
7513 * target-delegates.c: Rebuild.
7514 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7515 TARGET_DEFAULT_FUNC.
7516 * target.c (default_target_decr_pc_after_break): Rename from
7517 forward_target_decr_pc_after_break. Simplify.
7518 (target_decr_pc_after_break): Rely on delegation.
7519
596b6b39
TT
75202014-02-19 Tom Tromey <tromey@redhat.com>
7521
7522 * target.c (update_current_target): Do not INHERIT to_doc or
7523 to_magic. Do not de_fault to_open or to_close.
7524
b427c1bc
TT
75252014-02-19 Tom Tromey <tromey@redhat.com>
7526
7527 * gcore.h (objfile_find_memory_regions): Declare.
7528 * gcore.c (objfile_find_memory_regions): No longer static. Add
7529 "self" argument.
7530 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7531 * exec.c: Include gcore.h.
7532 (exec_set_find_memory_regions): Remove.
7533 (exec_find_memory_regions): Remove.
7534 (exec_do_find_memory_regions): Remove.
7535 (init_exec_ops): Update.
7536 * defs.h (exec_set_find_memory_regions): Remove.
7537
9b144037
TT
75382014-02-19 Tom Tromey <tromey@redhat.com>
7539
7540 * target-delegates.c: Rebuild.
7541 * target.h (struct target_ops) <to_extra_thread_info,
7542 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7543 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7544 not 0, in TARGET_DEFAULT_RETURN.
7545
555bbdeb
TT
75462014-02-19 Tom Tromey <tromey@redhat.com>
7547
7548 * target.c (complete_target_initialization): Remove casts. Use
7549 return_zero_has_execution.
7550 (return_zero): Add "ignore" argument.
7551 (return_zero_has_execution): New function.
7552 (init_dummy_target): Remove casts. Use
7553 return_zero_has_execution.
7554
be4ddd36
TT
75552014-02-19 Tom Tromey <tromey@redhat.com>
7556
7557 * target.c (update_current_target): Update comments. Do not
7558 INHERIT to_stratum.
7559
2117c711
TT
75602014-02-19 Tom Tromey <tromey@redhat.com>
7561
7562 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7563 needed.
7564 * corelow.c (core_read_description): Delegate when needed.
7565 * remote.c (remote_read_description): Delegate when needed.
7566 * target-delegates.c: Rebuild.
7567 * target.c (target_read_description): Rewrite.
7568 * target.h (struct target_ops) <to_read_description>: Update
7569 comment. Use TARGET_DEFAULT_RETURN.
7570
e88ef65c
TT
75712014-02-19 Tom Tromey <tromey@redhat.com>
7572
7573 * target-delegates.c: Rebuild.
7574 * target.c (update_current_target): Don't inherit or default
7575 to_can_run.
7576 (find_default_run_target): Check against delegate_can_run.
7577 * target.h (struct target_ops) <to_can_run>: Use
7578 TARGET_DEFAULT_RETURN.
7579
86a0854a
TT
75802014-02-19 Tom Tromey <tromey@redhat.com>
7581
7582 * target-delegates.c: Rebuild.
7583 * target.c (target_disconnect): Unconditionally delegate.
7584 * target.h (struct target_ops) <to_disconnect>: Use
7585 TARGET_DEFAULT_NORETURN.
7586
ee97f592
TT
75872014-02-19 Tom Tromey <tromey@redhat.com>
7588
7589 * record.c (record_stop): Unconditionally delegate.
7590 * target-delegates.c: Rebuild.
7591 * target.c (target_stop_recording): Unconditionally delegate.
7592 * target.h (struct target_ops) <to_stop_recording>: Use
7593 TARGET_DEFAULT_IGNORE.
7594
6dc7fcf4
TT
75952014-02-19 Tom Tromey <tromey@redhat.com>
7596
7597 * target-delegates.c: Rebuild.
7598 * target.c (target_enable_btrace): Unconditionally delegate.
7599 * target.h (struct target_ops) <to_enable_btrace>: Use
7600 TARGET_DEFAULT_NORETURN.
7601
eb5b20d4
TT
76022014-02-19 Tom Tromey <tromey@redhat.com>
7603
7604 * target-delegates.c: Rebuild.
7605 * target.c (target_read_btrace): Unconditionally delegate.
7606 * target.h (struct target_ops) <to_read_btrace>: Use
7607 TARGET_DEFAULT_NORETURN.
7608
9ace480d
TT
76092014-02-19 Tom Tromey <tromey@redhat.com>
7610
7611 * target-delegates.c: Rebuild.
7612 * target.c (target_teardown_btrace): Unconditionally delegate.
7613 * target.h (struct target_ops) <to_teardown_btrace>: Use
7614 TARGET_DEFAULT_NORETURN.
7615
8dc292d3
TT
76162014-02-19 Tom Tromey <tromey@redhat.com>
7617
7618 * target-delegates.c: Rebuild.
7619 * target.c (target_disable_btrace): Unconditionally delegate.
7620 * target.h (struct target_ops) <to_disable_btrace>: Use
7621 TARGET_DEFAULT_NORETURN.
7622
58a5184e
TT
76232014-02-19 Tom Tromey <tromey@redhat.com>
7624
7625 * target-delegates.c: Rebuild.
7626 * target.c (default_search_memory): New function.
7627 (simple_search_memory): Update comment.
7628 (target_search_memory): Unconditionally delegate.
7629 * target.h (struct target_ops) <to_search_memory>: Use
7630 TARGET_DEFAULT_FUNC.
7631
8de71aab
TT
76322014-02-19 Tom Tromey <tromey@redhat.com>
7633
7634 * auxv.c (default_auxv_parse): No longer static.
7635 (target_auxv_parse): Unconditionally delegate.
7636 * auxv.h (default_auxv_parse): Declare.
7637 * target-delegates.c: Rebuild.
7638 * target.c: Include auxv.h.
7639 * target.h (struct target_ops) <to_auxv_parse>: Use
7640 TARGET_DEFAULT_FUNC.
7641
6b2c5a57
TT
76422014-02-19 Tom Tromey <tromey@redhat.com>
7643
7644 * target-delegates.c: Rebuild.
7645 * target.c (target_memory_map): Unconditionally delegate.
7646 * target.h (struct target_ops) <to_memory_map>: Use
7647 TARGET_DEFAULT_RETURN.
7648
cbffc065
TT
76492014-02-19 Tom Tromey <tromey@redhat.com>
7650
7651 * target-delegates.c: Rebuild.
7652 * target.c (target_thread_alive): Unconditionally delegate.
7653 * target.h (struct target_ops) <to_thread_alive>: Use
7654 TARGET_DEFAULT_RETURN.
7655
f09e2107
TT
76562014-02-19 Tom Tromey <tromey@redhat.com>
7657
7658 * target-delegates.c: Rebuild.
7659 * target.c (target_save_record): Unconditionally delegate.
7660 * target.h (struct target_ops) <to_save_record>: Use
7661 TARGET_DEFAULT_NORETURN.
7662
07366925
TT
76632014-02-19 Tom Tromey <tromey@redhat.com>
7664
7665 * target-delegates.c: Rebuild.
7666 * target.c (target_delete_record): Unconditionally delegate.
7667 * target.h (struct target_ops) <to_delete_record>: Use
7668 TARGET_DEFAULT_NORETURN.
7669
dd2e9d25
TT
76702014-02-19 Tom Tromey <tromey@redhat.com>
7671
7672 * target-delegates.c: Rebuild.
7673 * target.c (target_record_is_replaying): Unconditionally
7674 delegate.
7675 * target.h (struct target_ops) <to_record_is_replaying>: Use
7676 TARGET_DEFAULT_RETURN.
7677
671e76cc
TT
76782014-02-19 Tom Tromey <tromey@redhat.com>
7679
7680 * target-delegates.c: Rebuild.
7681 * target.c (target_goto_record_begin): Unconditionally delegate.
7682 * target.h (struct target_ops) <to_goto_record_begin>: Use
7683 TARGET_DEFAULT_NORETURN.
7684
e9179bb3
TT
76852014-02-19 Tom Tromey <tromey@redhat.com>
7686
7687 * target-delegates.c: Rebuild.
7688 * target.c (target_goto_record_end): Unconditionally delegate.
7689 * target.h (struct target_ops) <to_goto_record_end>: Use
7690 TARGET_DEFAULT_NORETURN.
7691
05969c84
TT
76922014-02-19 Tom Tromey <tromey@redhat.com>
7693
7694 * target-delegates.c: Rebuild.
7695 * target.c (target_goto_record): Unconditionally delegate.
7696 * target.h (struct target_ops) <to_goto_record>: Use
7697 TARGET_DEFAULT_NORETURN.
7698
3679abfa
TT
76992014-02-19 Tom Tromey <tromey@redhat.com>
7700
7701 * target-delegates.c: Rebuild.
7702 * target.c (target_insn_history): Unconditionally delegate.
7703 * target.h (struct target_ops) <to_insn_history>: Use
7704 TARGET_DEFAULT_NORETURN.
7705
8444ab58
TT
77062014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target-delegates.c: Rebuild.
7709 * target.c (target_insn_history_from): Unconditionally delegate.
7710 * target.h (struct target_ops) <to_insn_history_from>: Use
7711 TARGET_DEFAULT_NORETURN.
7712
c29302cc
TT
77132014-02-19 Tom Tromey <tromey@redhat.com>
7714
7715 * target-delegates.c: Rebuild.
7716 * target.c (target_insn_history_range): Unconditionally delegate.
7717 * target.h (struct target_ops) <to_insn_history_range>: Use
7718 TARGET_DEFAULT_NORETURN.
7719
170049d4
TT
77202014-02-19 Tom Tromey <tromey@redhat.com>
7721
7722 * target-delegates.c: Rebuild.
7723 * target.c (target_call_history): Unconditionally delegate.
7724 * target.h (struct target_ops) <to_call_history>: Use
7725 TARGET_DEFAULT_NORETURN.
7726
16fc27d6
TT
77272014-02-19 Tom Tromey <tromey@redhat.com>
7728
7729 * target-delegates.c: Rebuild.
7730 * target.c (target_call_history_from): Unconditionally delegate.
7731 * target.h (struct target_ops) <to_call_history_from>: Use
7732 TARGET_DEFAULT_NORETURN.
7733
115d9817
TT
77342014-02-19 Tom Tromey <tromey@redhat.com>
7735
7736 * target-delegates.c: Rebuild.
7737 * target.c (target_call_history_range): Unconditionally delegate.
7738 * target.h (struct target_ops) <to_call_history_range>: Use
7739 TARGET_DEFAULT_NORETURN.
7740
eb276a6b
TT
77412014-02-19 Tom Tromey <tromey@redhat.com>
7742
7743 * target-delegates.c: Rebuild.
7744 * target.c (target_verify_memory): Unconditionally delegate.
7745 * target.h (struct target_ops) <to_verify_memory>: Use
7746 TARGET_DEFAULT_NORETURN.
7747
9e538d0d
TT
77482014-02-19 Tom Tromey <tromey@redhat.com>
7749
7750 * target-delegates.c: Rebuild.
7751 * target.c (target_core_of_thread): Unconditionally delegate.
7752 * target.h (struct target_ops) <to_core_of_thread>: Use
7753 TARGET_DEFAULT_RETURN.
7754
f6fb2925
TT
77552014-02-19 Tom Tromey <tromey@redhat.com>
7756
7757 * target-delegates.c: Rebuild.
7758 * target.c (target_flash_done): Unconditionally delegate.
7759 * target.h (struct target_ops) <to_flash_done>: Use
7760 TARGET_DEFAULT_NORETURN.
7761
e8a6c6ac
TT
77622014-02-19 Tom Tromey <tromey@redhat.com>
7763
7764 * target-delegates.c: Rebuild.
7765 * target.c (target_flash_erase): Unconditionally delegate.
7766 * target.h (struct target_ops) <to_flash_erase>: Use
7767 TARGET_DEFAULT_NORETURN.
7768
7e35c012
TT
77692014-02-19 Tom Tromey <tromey@redhat.com>
7770
7771 * target-delegates.c: Rebuild.
7772 * target.c (target_get_section_table): Unconditionally delegate.
7773 * target.h (struct target_ops) <to_get_section_table>: Use
7774 TARGET_DEFAULT_RETURN.
7775
770234d3
TT
77762014-02-19 Tom Tromey <tromey@redhat.com>
7777
7778 * target-delegates.c: Rebuild.
7779 * target.c (target_pid_to_str): Unconditionally delegate.
7780 (init_dummy_target): Don't initialize to_pid_to_str.
7781 (default_pid_to_str): Rename from dummy_pid_to_str.
7782 * target.h (struct target_ops) <to_pid_to_str>: Use
7783 TARGET_DEFAULT_FUNC.
7784
09b0dc2b
TT
77852014-02-19 Tom Tromey <tromey@redhat.com>
7786
7787 * target-delegates.c: Rebuild.
7788 * target.c (target_find_new_threads): Unconditionally delegate.
7789 * target.h (struct target_ops) <to_find_new_threads>: Use
7790 TARGET_DEFAULT_RETURN.
7791
7d4f8efa
TT
77922014-02-19 Tom Tromey <tromey@redhat.com>
7793
7794 * target-delegates.c: Rebuild.
7795 * target.c (target_program_signals): Unconditionally delegate.
7796 * target.h (struct target_ops) <to_program_signals>: Use
7797 TARGET_DEFAULT_IGNORE.
7798
035cad7f
TT
77992014-02-19 Tom Tromey <tromey@redhat.com>
7800
7801 * target-delegates.c: Rebuild.
7802 * target.c (target_pass_signals): Unconditionally delegate.
7803 * target.h (struct target_ops) <to_pass_signals>: Use
7804 TARGET_DEFAULT_IGNORE.
7805
8d657035
TT
78062014-02-19 Tom Tromey <tromey@redhat.com>
7807
7808 * target-delegates.c: Rebuild.
7809 * target.c (default_mourn_inferior): New function.
7810 (target_mourn_inferior): Unconditionally delegate.
7811 * target.h (struct target_ops) <to_mourn_inferior>: Use
7812 TARGET_DEFAULT_FUNC.
7813
098dba18
TT
78142014-02-19 Tom Tromey <tromey@redhat.com>
7815
7816 * target-delegates.c: Rebuild.
7817 * target.c (default_follow_fork): New function.
7818 (target_follow_fork): Unconditionally delegate.
7819 * target.h (struct target_ops) <to_follow_fork>: Use
7820 TARGET_DEFAULT_FUNC.
7821
423a4807
TT
78222014-02-19 Tom Tromey <tromey@redhat.com>
7823
7824 * target-delegates.c: Rebuild.
7825 * target.c (target_kill): Unconditionally delegate.
7826 * target.h (struct target_ops) <to_kill>: Use
7827 TARGET_DEFAULT_NORETURN.
7828
6c7e5e5c
TT
78292014-02-19 Tom Tromey <tromey@redhat.com>
7830
7831 * target-delegates.c: Rebuild.
7832 * target.c (target_masked_watch_num_registers): Unconditionally
7833 delegate.
7834 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7835 Use TARGET_DEFAULT_RETURN.
7836
8b1c364c
TT
78372014-02-19 Tom Tromey <tromey@redhat.com>
7838
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_remove_mask_watchpoint): Unconditionally
7841 delegate.
7842 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7843 TARGET_DEFAULT_RETURN.
7844
cd4ae029
TT
78452014-02-19 Tom Tromey <tromey@redhat.com>
7846
7847 * target-delegates.c: Rebuild.
7848 * target.c (target_insert_mask_watchpoint): Unconditionally
7849 delegate.
7850 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7851 TARGET_DEFAULT_RETURN.
7852
a134316b
TT
78532014-02-19 Tom Tromey <tromey@redhat.com>
7854
7855 * target-delegates.c: Rebuild.
7856 * target.c (target_ranged_break_num_registers): Unconditionally
7857 delegate.
7858 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7859 Use TARGET_DEFAULT_RETURN.
7860
ad5989bd
TT
78612014-02-19 Tom Tromey <tromey@redhat.com>
7862
7863 * target-delegates.c: Rebuild.
7864 * target.c (target_fetch_registers): Unconditionally delegate.
7865 * target.h (struct target_ops) <to_fetch_registers>: Use
7866 TARGET_DEFAULT_NORETURN.
7867
46ee7e8d
TT
78682014-02-19 Tom Tromey <tromey@redhat.com>
7869
7870 * target-delegates.c: Rebuild.
7871 * target.c (update_current_target): Don't inherit or default
7872 to_stop.
7873 * target.h (struct target_ops) <to_stop>: Use
7874 TARGET_DEFAULT_IGNORE.
7875
843f59ed
TT
78762014-02-19 Tom Tromey <tromey@redhat.com>
7877
7878 * target-delegates.c: Rebuild.
7879 * target.c (update_current_target): Don't inherit or default
7880 to_can_run_breakpoint_commands.
7881 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7882 Use TARGET_DEFAULT_RETURN.
7883
ccfde2a0
TT
78842014-02-19 Tom Tromey <tromey@redhat.com>
7885
7886 * target-delegates.c: Rebuild.
7887 * target.c (update_current_target): Don't inherit or default
7888 to_supports_evaluation_of_breakpoint_conditions.
7889 * target.h (struct target_ops)
7890 <to_supports_evaluation_of_breakpoint_conditions>: Use
7891 TARGET_DEFAULT_RETURN.
7892
0de91722
TT
78932014-02-19 Tom Tromey <tromey@redhat.com>
7894
7895 * target-delegates.c: Rebuild.
7896 * target.c (update_current_target): Don't inherit or default
7897 to_augmented_libraries_svr4_read.
7898 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7899 Use TARGET_DEFAULT_RETURN.
7900
9a7d8b48
TT
79012014-02-19 Tom Tromey <tromey@redhat.com>
7902
7903 * target-delegates.c: Rebuild.
7904 * target.c (update_current_target): Don't inherit or default
7905 to_can_use_agent.
7906 * target.h (struct target_ops) <to_can_use_agent>: Use
7907 TARGET_DEFAULT_RETURN.
7908
d9db5b21
TT
79092014-02-19 Tom Tromey <tromey@redhat.com>
7910
7911 * target-delegates.c: Rebuild.
7912 * target.c (update_current_target): Don't inherit or default
7913 to_use_agent.
7914 * target.h (struct target_ops) <to_use_agent>: Use
7915 TARGET_DEFAULT_NORETURN.
7916
92155eeb
TT
79172014-02-19 Tom Tromey <tromey@redhat.com>
7918
7919 * target-delegates.c: Rebuild.
7920 * target.c (update_current_target): Don't inherit or default
7921 to_traceframe_info.
7922 (return_null): Remove.
7923 * target.h (struct target_ops) <to_traceframe_info>: Use
7924 TARGET_DEFAULT_RETURN.
7925
d6522a22
TT
79262014-02-19 Tom Tromey <tromey@redhat.com>
7927
7928 * target-delegates.c: Rebuild.
7929 * target.c (update_current_target): Don't inherit or default
7930 to_static_tracepoint_markers_by_strid.
7931 * target.h (struct target_ops)
7932 <to_static_tracepoint_markers_by_strid>: Use
7933 TARGET_DEFAULT_NORETURN.
7934
4c3e4425
TT
79352014-02-19 Tom Tromey <tromey@redhat.com>
7936
7937 * target-delegates.c: Rebuild.
7938 * target.c (update_current_target): Don't inherit or default
7939 to_static_tracepoint_marker_at.
7940 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7941 Use TARGET_DEFAULT_RETURN.
7942
dcd6917f
TT
79432014-02-19 Tom Tromey <tromey@redhat.com>
7944
7945 * target-delegates.c: Rebuild.
7946 * target.c (update_current_target): Don't inherit or default
7947 to_set_permissions.
7948 * target.h (struct target_ops) <to_set_permissions>: Use
7949 TARGET_DEFAULT_IGNORE.
7950
22bcceee
TT
79512014-02-19 Tom Tromey <tromey@redhat.com>
7952
7953 * target-delegates.c: Rebuild.
7954 * target.c (update_current_target): Don't inherit or default
7955 to_get_tib_address.
7956 * target.h (struct target_ops) <to_get_tib_address>: Use
7957 TARGET_DEFAULT_NORETURN.
7958
8586ccaa
TT
79592014-02-19 Tom Tromey <tromey@redhat.com>
7960
7961 * target-delegates.c: Rebuild.
7962 * target.c (update_current_target): Don't inherit or default
7963 to_set_trace_notes.
7964 * target.h (struct target_ops) <to_set_trace_notes>: Use
7965 TARGET_DEFAULT_RETURN.
7966
91df8d1d
TT
79672014-02-19 Tom Tromey <tromey@redhat.com>
7968
7969 * target-delegates.c: Rebuild.
7970 * target.c (update_current_target): Don't initialize
7971 to_set_trace_buffer_size.
7972 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7973 TARGET_DEFAULT_IGNORE.
7974
8d526939
TT
79752014-02-19 Tom Tromey <tromey@redhat.com>
7976
7977 * target-delegates.c: Rebuild.
7978 * target.c (update_current_target): Don't inherit or default
7979 to_set_circular_trace_buffer.
7980 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7981 TARGET_DEFAULT_IGNORE.
7982
0bcfeddf
TT
79832014-02-19 Tom Tromey <tromey@redhat.com>
7984
7985 * target-delegates.c: Rebuild.
7986 * target.c (update_current_target): Don't inherit or default
7987 to_set_disconnected_tracing.
7988 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7989 TARGET_DEFAULT_IGNORE.
7990
9249843f
TT
79912014-02-19 Tom Tromey <tromey@redhat.com>
7992
7993 * target-delegates.c: Rebuild.
7994 * target.c (update_current_target): Don't inherit or default
7995 to_get_min_fast_tracepoint_insn_len.
7996 (return_minus_one): Remove.
7997 * target.h (struct target_ops)
7998 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7999
ace92e7d
TT
80002014-02-19 Tom Tromey <tromey@redhat.com>
8001
8002 * target-delegates.c: Rebuild.
8003 * target.c (update_current_target): Don't inherit or default
8004 to_get_raw_trace_data.
8005 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8006 TARGET_DEFAULT_NORETURN.
8007
08120467
TT
80082014-02-19 Tom Tromey <tromey@redhat.com>
8009
8010 * target-delegates.c: Rebuild.
8011 * target.c (update_current_target): Don't inherit or default
8012 to_upload_trace_state_variables.
8013 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8014 Use TARGET_DEFAULT_RETURN.
8015
1e949b00
TT
80162014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * target-delegates.c: Rebuild.
8019 * target.c (update_current_target): Don't inherit or default
8020 to_upload_tracepoints.
8021 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8022 TARGET_DEFAULT_RETURN.
8023
a2e6c147
TT
80242014-02-19 Tom Tromey <tromey@redhat.com>
8025
8026 * target-delegates.c: Rebuild.
8027 * target.c (update_current_target): Don't inherit or default
8028 to_save_trace_data.
8029 * target.h (struct target_ops) <to_save_trace_data>: Use
8030 TARGET_DEFAULT_NORETURN.
8031
959bcd0b
TT
80322014-02-19 Tom Tromey <tromey@redhat.com>
8033
8034 * target-delegates.c: Rebuild.
8035 * target.c (update_current_target): Don't inherit or default
8036 to_get_trace_state_variable_value.
8037 * target.h (struct target_ops)
8038 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8039
afc94e66
TT
80402014-02-19 Tom Tromey <tromey@redhat.com>
8041
8042 * target-delegates.c: Rebuild.
8043 * target.c (update_current_target): Don't inherit or default
8044 to_trace_find.
8045 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8046
e51c07ea
TT
80472014-02-19 Tom Tromey <tromey@redhat.com>
8048
8049 * target-delegates.c: Rebuild.
8050 * target.c (update_current_target): Don't inherit or default
8051 to_trace_stop.
8052 * target.h (struct target_ops) <to_trace_stop>: Use
8053 TARGET_DEFAULT_NORETURN.
8054
6fea14cd
TT
80552014-02-19 Tom Tromey <tromey@redhat.com>
8056
8057 * target-delegates.c: Rebuild.
8058 * target.c (update_current_target): Don't inherit or default
8059 to_get_tracepoint_status.
8060 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8061 TARGET_DEFAULT_NORETURN.
8062
4072d4ff
TT
80632014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * target-delegates.c: Rebuild.
8066 * target.c (update_current_target): Don't inherit or default
8067 to_get_trace_status.
8068 * target.h (struct target_ops) <to_get_trace_status>: Use
8069 TARGET_DEFAULT_RETURN.
8070
25da2e80
TT
80712014-02-19 Tom Tromey <tromey@redhat.com>
8072
8073 * target-delegates.c: Rebuild.
8074 * target.c (update_current_target): Don't inherit or default
8075 to_trace_start.
8076 * target.h (struct target_ops) <to_trace_start>: Use
8077 TARGET_DEFAULT_NORETURN.
8078
86dd181d
TT
80792014-02-19 Tom Tromey <tromey@redhat.com>
8080
8081 * target-delegates.c: Rebuild.
8082 * target.c (update_current_target): Don't inherit or default
8083 to_trace_set_readonly_regions.
8084 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8085 Use TARGET_DEFAULT_NORETURN.
8086
05c41993
TT
80872014-02-19 Tom Tromey <tromey@redhat.com>
8088
8089 * target-delegates.c: Rebuild.
8090 * target.c (update_current_target): Don't inherit or default
8091 to_disable_tracepoint.
8092 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8093 TARGET_DEFAULT_NORETURN.
8094
151f70f1
TT
80952014-02-19 Tom Tromey <tromey@redhat.com>
8096
8097 * target-delegates.c: Rebuild.
8098 * target.c (update_current_target): Don't inherit or default
8099 to_enable_tracepoint.
8100 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8101 TARGET_DEFAULT_NORETURN.
8102
94eb98b9
TT
81032014-02-19 Tom Tromey <tromey@redhat.com>
8104
8105 * target-delegates.c: Rebuild.
8106 * target.c (update_current_target): Don't inherit or default
8107 to_download_trace_state_variable.
8108 * target.h (struct target_ops) <to_download_trace_state_variable>:
8109 Use TARGET_DEFAULT_NORETURN.
8110
719acc4a
TT
81112014-02-19 Tom Tromey <tromey@redhat.com>
8112
8113 * target-delegates.c: Rebuild.
8114 * target.c (update_current_target): Don't inherit or default
8115 to_can_download_tracepoint.
8116 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8117 TARGET_DEFAULT_RETURN.
8118
9a980a22
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target-delegates.c: Rebuild.
8122 * target.c (update_current_target): Don't inherit or default
8123 to_download_tracepoint.
8124 * target.h (struct target_ops) <to_download_tracepoint>: Use
8125 TARGET_DEFAULT_NORETURN.
8126
5536135b
TT
81272014-02-19 Tom Tromey <tromey@redhat.com>
8128
8129 * target-delegates.c: Rebuild.
8130 * target.c (update_current_target): Don't inherit or default
8131 to_trace_init.
8132 * target.h (struct target_ops) <to_trace_init>: Use
8133 TARGET_DEFAULT_RETURN.
8134
9409d39e
TT
81352014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * target-delegates.c: Rebuild.
8138 * target.c (update_current_target): Don't inherit or default
8139 to_supports_string_tracing.
8140 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8141 TARGET_DEFAULT_RETURN.
8142
aab1b22d
TT
81432014-02-19 Tom Tromey <tromey@redhat.com>
8144
8145 * target-delegates.c: Rebuild.
8146 * target.c (update_current_target): Don't inherit or default
8147 to_supports_enable_disable_tracepoint.
8148 * target.h (struct target_ops)
8149 <to_supports_enable_disable_tracepoint>: Use
8150 TARGET_DEFAULT_RETURN.
8151
a7304748
TT
81522014-02-19 Tom Tromey <tromey@redhat.com>
8153
8154 * target-delegates.c: Rebuild.
8155 * target.c (update_current_target): Don't inherit or default
8156 to_supports_multi_process.
8157 * target.h (struct target_ops) <to_supports_multi_process>: Use
8158 TARGET_DEFAULT_RETURN.
8159
4229b31d
TT
81602014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target-delegates.c: Rebuild.
8163 * target.c (update_current_target): Don't inherit or default
8164 to_get_ada_task_ptid.
8165 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8166 TARGET_DEFAULT_FUNC.
8167
43eba180
TT
81682014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8172 to_thread_architecture.
8173 * target.h (struct target_ops) <to_thread_architecture>: Use
8174 TARGET_DEFAULT_FUNC.
8175
fe31bf5b
TT
81762014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (update_current_target): Don't inherit or default
8180 to_execution_direction.
8181 * target.h (struct target_ops) <to_execution_direction>: Use
8182 TARGET_DEFAULT_FUNC.
8183
53e1cfc7
TT
81842014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (update_current_target): Don't inherit or default
8188 to_can_execute_reverse.
8189 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8190 TARGET_DEFAULT_RETURN.
8191 (target_can_execute_reverse): Unconditionally delegate.
8192
9bb9d61d
TT
81932014-02-19 Tom Tromey <tromey@redhat.com>
8194
8195 * target-delegates.c: Rebuild.
8196 * target.c (update_current_target): Don't inherit or default
8197 to_goto_bookmark.
8198 (dummy_goto_bookmark): Remove.
8199 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8200 * target.h (struct target_ops) <to_goto_bookmark>: Use
8201 TARGET_DEFAULT_NORETURN.
8202
3dbafbbb
TT
82032014-02-19 Tom Tromey <tromey@redhat.com>
8204
8205 * target-delegates.c: Rebuild.
8206 * target.c (update_current_target): Don't inherit or default
8207 to_get_bookmark.
8208 (dummy_get_bookmark): Remove.
8209 (init_dummy_target): Don't inherit or default to_get_bookmark.
8210 * target.h (struct target_ops) <to_get_bookmark>: Use
8211 TARGET_DEFAULT_NORETURN
8212
16f796b1
TT
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target-delegates.c: Rebuild.
8216 * target.c (update_current_target): Don't inherit or default
8217 to_make_corefile_notes.
8218 (init_dummy_target): Don't initialize to_make_corefile_notes.
8219 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8220 TARGET_DEFAULT_FUNC.
8221
0b5a2719
TT
82222014-02-19 Tom Tromey <tromey@redhat.com>
8223
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8226 to_find_memory_regions.
8227 (init_dummy_target): Don't initialize to_find_memory_regions.
8228 * target.h (struct target_ops) <to_find_memory_regions>: Use
8229 TARGET_DEFAULT_FUNC.
8230
d9cb0195
TT
82312014-02-19 Tom Tromey <tromey@redhat.com>
8232
8233 * target-delegates.c: Rebuild.
8234 * target.c (update_current_target): Don't inherit or default
8235 to_log_command.
8236 * target.h (struct target_ops) <to_log_command>: Use
8237 TARGET_DEFAULT_IGNORE.
8238 (target_log_command): Unconditionally delegate.
8239
830ca330
TT
82402014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8244 to_pid_to_exec_file.
8245 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8246 TARGET_DEFAULT_RETURN.
8247
825828fc
TT
82482014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8252 to_thread_name.
8253 (target_thread_name): Unconditionally delegate.
8254 * target.h (struct target_ops) <to_thread_name>: Use
8255 TARGET_DEFAULT_RETURN.
8256
4a7e6dda
TT
82572014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target-delegates.c: Rebuild.
8260 * target.c (update_current_target): Don't inherit or default
8261 to_extra_thread_info.
8262 * target.h (struct target_ops) <to_extra_thread_info>: Use
8263 TARGET_DEFAULT_RETURN.
8264
0db88c1d
TT
82652014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * target-delegates.c: Rebuild.
8268 * target.c (update_current_target): Don't inherit or default
8269 to_has_exited.
8270 * target.h (struct target_ops) <to_has_exited>: Use
8271 TARGET_DEFAULT_RETURN..
8272
6a9fa051
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target-delegates.c: Rebuild.
8276 * target.c (update_current_target): Don't inherit or default
8277 to_set_syscall_catchpoint.
8278 (return_one): Remove.
8279 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8280 TARGET_DEFAULT_RETURN.
8281
62f64d7a
TT
82822014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't inherit or default
8286 to_insert_exec_catchpoint.
8287 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8288 TARGET_DEFAULT_RETURN.
8289
cda0f38c
TT
82902014-01-08 Tom Tromey <tromey@redhat.com>
8291
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8294 to_insert_exec_catchpoint.
8295 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8296 TARGET_DEFAULT_RETURN.
8297
95c3375e
TT
82982014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8302 to_remove_vfork_catchpoint.
8303 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8304 TARGET_DEFAULT_RETURN.
8305
7e18a8dc
TT
83062014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't inherit or default
8310 to_insert_vfork_catchpoint.
8311 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8312 TARGET_DEFAULT_RETURN.
8313
e1a21fb7
TT
83142014-02-19 Tom Tromey <tromey@redhat.com>
8315
8316 * target-delegates.c: Rebuild.
8317 * target.c (update_current_target): Don't inherit or default
8318 to_remove_fork_catchpoint.
8319 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8320 TARGET_DEFAULT_RETURN.
8321
5958ebeb
TT
83222014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_insert_fork_catchpoint.
8327 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8328 TARGET_DEFAULT_RETURN.
8329
340ba4bf
TT
83302014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8334 to_post_startup_inferior.
8335 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8336 TARGET_DEFAULT_IGNORE.
8337
7634da87
TT
83382014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * target-delegates.c: Rebuild.
8341 * target.c (update_current_target): Don't inherit or default
8342 to_load.
8343 * target.h (struct target_ops) <to_load>: Use
8344 TARGET_DEFAULT_NORETURN.
8345
e19e919f
TT
83462014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8350 to_terminal_info.
8351 * target.h (struct target_ops) <to_terminal_info>: Use
8352 TARGET_DEFAULT_FUNC.
8353
c6ea8f79
TT
83542014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target-delegates.c: Rebuild.
8357 * target.c (update_current_target): Don't inherit or default
8358 to_terminal_save_ours.
8359 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8360 TARGET_DEFAULT_IGNORE.
8361
e4a733f1
TT
83622014-02-19 Tom Tromey <tromey@redhat.com>
8363
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8366 to_terminal_ours.
8367 * target.h (struct target_ops) <to_terminal_ours>: Use
8368 TARGET_DEFAULT_IGNORE.
8369
74fcbef9
TT
83702014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8374 to_terminal_ours_for_output.
8375 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8376 TARGET_DEFAULT_IGNORE.
8377
ddeaacc9
TT
83782014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_terminal_inferior.
8383 * target.h (struct target_ops) <to_terminal_inferior>: Use
8384 TARGET_DEFAULT_IGNORE.
8385
0343661d
TT
83862014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8390 to_terminal_init.
8391 * target.h (struct target_ops) <to_terminal_init>: Use
8392 TARGET_DEFAULT_IGNORE.
8393
77cdffe9
TT
83942014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_can_accel_watchpoint_condition.
8399 * target.h (struct target_ops)
8400 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8401
d03655e4
TT
84022014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_region_ok_for_hw_watchpoint.
8407 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8408 Use TARGET_DEFAULT_FUNC.
8409
65f160a9
TT
84102014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_watchpoint_addr_within_range.
8415 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8416 Use TARGET_DEFAULT_FUNC.
8417
61dd109f
TT
84182014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_remove_watchpoint.
8423 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8424 TARGET_DEFAULT_NORETURN.
8425
016facd4
TT
84262014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_insert_watchpoint.
8431 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8432 TARGET_DEFAULT_RETURN.
8433
418dabac
TT
84342014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_remove_hw_breakpoint.
8439 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8440 TARGET_DEFAULT_RETURN.
8441
61b371f9
TT
84422014-02-19 Tom Tromey <tromey@redhat.com>
8443
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8446 to_insert_hw_breakpoint.
8447 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8448 TARGET_DEFAULT_RETURN.
8449
52b51d06
TT
84502014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_can_use_hw_breakpoint.
8455 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8456 TARGET_DEFAULT_RETURN.
8457
f86e59b2
TT
84582014-02-19 Tom Tromey <tromey@redhat.com>
8459
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8462 to_files_info.
8463 * target.h (struct target_ops) <to_files_info>: Use
8464 TARGET_DEFAULT_IGNORE.
8465
6c628163
TT
84662014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8470 to_store.
8471 * target.h (struct target_ops) <to_store>: Use
8472 TARGET_DEFAULT_NORETURN.
8473
bebd3233
TT
84742014-02-19 Tom Tromey <tromey@redhat.com>
8475
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_post_attach.
8479 * target.h (struct target_ops) <to_post_attach>: Use
8480 TARGET_DEFAULT_IGNORE.
8481
a53f3625
TT
84822014-02-19 Tom Tromey <tromey@redhat.com>
8483
8484 * target-delegates.c: Rebuild.
8485 * target.c (update_current_target): Don't inherit or default
8486 to_rcmd.
8487 (default_rcmd): New function.
8488 (do_monitor_command): Unconditionally delegate.
8489 * target.h (struct target_ops) <to_rmcd>: Use
8490 TARGET_DEFAULT_FUNC.
8491
e9a29200
TT
84922014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (init_dummy_target): Don't initialize to_attach.
8496 (target_attach): Unconditionally delegate.
8497 * target.h (struct target_ops) <to_attach>: Use
8498 TARGET_DEFAULT_FUNC.
8499
09da0d0a
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (target_detach): Unconditionally delegate.
8504 (init_dummy_target): Don't initialize to_detach.
8505 * target.h (struct target_ops) <to_detach>: Use
8506 TARGET_DEFAULT_IGNORE.
8507
5436ff03
TT
85082014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8511 Add argument.
8512 (target_augmented_libraries_svr4_read): Add argument.
8513 * target.c (update_current_target): Update.
8514 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8515 argument.
8516
f0d960ea
TT
85172014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * target.h (struct target_ops) <to_call_history_range>: Add
8520 argument.
8521 * target.c (target_call_history_range): Add argument.
8522 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8523 argument.
8524 (record_btrace_call_history_from): Update.
8525
ec0aea04
TT
85262014-02-19 Tom Tromey <tromey@redhat.com>
8527
8528 * target.h (struct target_ops) <to_call_history_from>: Add
8529 argument.
8530 * target.c (target_call_history_from): Add argument.
8531 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8532 argument.
8533
5df2fcba
TT
85342014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 * target.h (struct target_ops) <to_call_history>: Add argument.
8537 * target.c (target_call_history): Add argument.
8538 * record-btrace.c (record_btrace_call_history): Add 'self'
8539 argument.
8540
4e99c6b7
TT
85412014-02-19 Tom Tromey <tromey@redhat.com>
8542
8543 * target.h (struct target_ops) <to_insn_history_range>: Add
8544 argument.
8545 * target.c (target_insn_history_range): Add argument.
8546 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8547 argument.
8548 (record_btrace_insn_history_from): Update.
8549
9abc3ff3
TT
85502014-02-19 Tom Tromey <tromey@redhat.com>
8551
8552 * target.h (struct target_ops) <to_insn_history_from>: Add
8553 argument.
8554 * target.c (target_insn_history_from): Add argument.
8555 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8556 argument.
8557
7a6c5609
TT
85582014-02-19 Tom Tromey <tromey@redhat.com>
8559
8560 * target.h (struct target_ops) <to_insn_history>: Add argument.
8561 * target.c (target_insn_history): Add argument.
8562 * record-btrace.c (record_btrace_insn_history): Add 'self'
8563 argument.
8564
606183ac
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target.h (struct target_ops) <to_goto_record>: Add argument.
8568 * target.c (target_goto_record): Add argument.
8569 * record-full.c (record_full_goto): Add 'self' argument.
8570 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8571
307a1b91
TT
85722014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8575 * target.c (target_goto_record_end): Add argument.
8576 * record-full.c (record_full_goto_end): Add 'self' argument.
8577 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8578
08475817
TT
85792014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target.h (struct target_ops) <to_goto_record_begin>: Add
8582 argument.
8583 * target.c (target_goto_record_begin): Add argument.
8584 * record-full.c (record_full_goto_begin): Add 'self' argument.
8585 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8586 argument.
8587
1c63c994
TT
85882014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target.h (struct target_ops) <to_record_is_replaying>: Add
8591 argument.
8592 * target.c (target_record_is_replaying): Add argument.
8593 * record-full.c (record_full_is_replaying): Add 'self' argument.
8594 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8595 argument.
8596 (record_btrace_xfer_partial, record_btrace_store_registers)
8597 (record_btrace_prepare_to_store, record_btrace_resume)
8598 (record_btrace_wait, record_btrace_decr_pc_after_break)
8599 (record_btrace_find_new_threads, record_btrace_thread_alive):
8600 Update.
8601
d1b55219
TT
86022014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target.h (struct target_ops) <to_delete_record>: Add argument.
8605 * target.c (target_delete_record): Add argument.
8606 * record-full.c (record_full_delete): Add 'self' argument.
8607
1390f529
TT
86082014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target.h (struct target_ops) <to_save_record>: Add argument.
8611 * target.c (target_save_record): Add argument.
8612 * record-full.c (record_full_save): Add 'self' argument.
8613 (record_full_save): Add 'self' argument.
8614
630d6a4a
TT
86152014-02-19 Tom Tromey <tromey@redhat.com>
8616
8617 * target.h (struct target_ops) <to_info_record>: Add argument.
8618 * target.c (target_info_record): Add argument.
8619 * record.c (info_record_command): Add argument.
8620 * record-full.c (record_full_info): Add 'self' argument.
8621 * record-btrace.c (record_btrace_info): Add 'self' argument.
8622
c6cd7c02
TT
86232014-02-19 Tom Tromey <tromey@redhat.com>
8624
8625 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8626 * target.c (target_stop_recording): Add argument.
8627 * record.c (record_stop): Add argument.
8628 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8629 argument.
8630
39c49f83
TT
86312014-02-19 Tom Tromey <tromey@redhat.com>
8632
8633 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8634 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8635 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8636 argument.
8637 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8638 (_initialize_amd64_linux_nat): Use it.
8639 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8640 (_initialize_i386_linux_nat): Use it.
8641
1777056d
TT
86422014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8645 * target.c (target_teardown_btrace): Add argument.
8646 * remote.c (remote_teardown_btrace): Add 'self' argument.
8647 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8648 argument.
8649 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8650 argument.
8651
25e95349
TT
86522014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8655 * target.c (target_disable_btrace): Add argument.
8656 * remote.c (remote_disable_btrace): Add 'self' argument.
8657 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8658 argument.
8659 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8660 argument.
8661
e3c49f88
TT
86622014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8665 * target.c (target_enable_btrace): Add argument.
8666 * remote.c (remote_enable_btrace): Add 'self' argument.
8667 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8668 argument.
8669 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8670 argument.
8671
fe38f897
TT
86722014-02-19 Tom Tromey <tromey@redhat.com>
8673
8674 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8675 (target_can_use_agent): Add argument.
8676 * target.c (update_current_target): Update.
8677 * remote.c (remote_can_use_agent): Add 'self' argument.
8678 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8679
2c152180
TT
86802014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target.h (struct target_ops) <to_use_agent>: Add argument.
8683 (target_use_agent): Add argument.
8684 * target.c (update_current_target): Update.
8685 * remote.c (remote_use_agent): Add 'self' argument.
8686 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8687
a893e81f
TT
86882014-02-19 Tom Tromey <tromey@redhat.com>
8689
8690 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8691 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8692 (target_traceframe_info): Add argument.
8693 * target.c (update_current_target): Update.
8694 * remote.c (remote_traceframe_info): Add 'self' argument.
8695 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8696
c686c57f
TT
86972014-02-19 Tom Tromey <tromey@redhat.com>
8698
8699 * target.h (target_static_tracepoint_markers_by_strid): Add
8700 argument.
8701 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8702 'self' argument.
8703 * target.c (update_current_target): Update.
8704 * remote.c (struct target_ops)
8705 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8706 * linux-nat.c (struct target_ops)
8707 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8708
61fc905d
TT
87092014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8712 Add argument.
8713 (target_static_tracepoint_marker_at): Add argument.
8714 * target.c (update_current_target): Update.
8715 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8716 argument.
8717
c378d69d
TT
87182014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8721 (target_set_permissions): Add argument.
8722 * target.c (update_current_target): Update.
8723 * remote.c (remote_set_permissions): Add 'self' argument.
8724 (remote_start_remote): Update.
8725
bd7ae0f5
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8729 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8730 (target_get_tib_address): Add argument.
8731 * target.c (update_current_target): Update.
8732 * remote.c (remote_get_tib_address): Add 'self' argument.
8733
d9e68a2c
TT
87342014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8737 (target_set_trace_notes): Add argument.
8738 * target.c (update_current_target): Update.
8739 * remote.c (remote_set_trace_notes): Add 'self' argument.
8740
4da384be
TT
87412014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8744 argument.
8745 (target_set_trace_buffer_size): Add argument.
8746 * target.c (update_current_target): Update.
8747 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8748
736d5b1f
TT
87492014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8752 argument.
8753 (target_set_circular_trace_buffer): Add argument.
8754 * target.c (update_current_target): Update.
8755 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8756 argument.
8757
37b25738
TT
87582014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8761 argument.
8762 (target_set_disconnected_tracing): Add argument.
8763 * target.c (update_current_target): Update.
8764 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8765
0e67620a
TT
87662014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target.h (struct target_ops)
8769 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8770 (target_get_min_fast_tracepoint_insn_len): Add argument.
8771 * target.c (update_current_target): Update.
8772 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8773 argument.
8774
88ee6f45
TT
87752014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8778 argument.
8779 (target_get_raw_trace_data): Add argument.
8780 * target.c (update_current_target): Update.
8781 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8782
181e3713
TT
87832014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8786 Add argument.
8787 (target_upload_trace_state_variables): Add argument.
8788 * target.c (update_current_target): Update.
8789 * remote.c (remote_upload_trace_state_variables): Add 'self'
8790 argument.
8791 (remote_start_remote): Update.
8792
ab6617cc
TT
87932014-02-19 Tom Tromey <tromey@redhat.com>
8794
8795 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8796 argument.
8797 (target_upload_tracepoints): Add argument.
8798 * target.c (update_current_target): Update.
8799 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8800 (remote_start_remote): Update.
8801
dc3decaf
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8805 (target_save_trace_data): Add argument.
8806 * target.c (update_current_target): Update.
8807 * remote.c (remote_save_trace_data): Add 'self' argument.
8808
4011015b
TT
88092014-02-19 Tom Tromey <tromey@redhat.com>
8810
8811 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8812 argument.
8813 * target.h (struct target_ops)
8814 <to_get_trace_state_variable_value>: Add argument.
8815 (target_get_trace_state_variable_value): Add argument.
8816 * target.c (update_current_target): Update.
8817 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8818 argument.
8819 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8820
bd4c6793
TT
88212014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8824 * target.h (struct target_ops) <to_trace_find>: Add argument.
8825 (target_trace_find): Add argument.
8826 * target.c (update_current_target): Update.
8827 * remote.c (remote_trace_find): Add 'self' argument.
8828 * ctf.c (ctf_trace_find): Add 'self' argument.
8829
74499f1b
TT
88302014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8833 (target_trace_stop): Add argument.
8834 * target.c (update_current_target): Update.
8835 * remote.c (remote_trace_stop): Add 'self' argument.
8836
db90e85c
TT
88372014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8840 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8841 argument.
8842 (target_get_tracepoint_status): Add argument.
8843 * target.c (update_current_target): Update.
8844 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8845
8bd200f1
TT
88462014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8849 * target.h (struct target_ops) <to_get_trace_status>: Add
8850 argument.
8851 (target_get_trace_status): Add argument.
8852 * target.c (update_current_target): Update.
8853 * remote.c (remote_get_trace_status): Add 'self' argument.
8854 (remote_start_remote, remote_can_download_tracepoint): Update.
8855 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8856
e2d1aae3
TT
88572014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target.h (struct target_ops) <to_trace_start>: Add argument.
8860 (target_trace_start): Add argument.
8861 * target.c (update_current_target): Update.
8862 * remote.c (remote_trace_start): Add 'self' argument.
8863
583f9a86
TT
88642014-02-19 Tom Tromey <tromey@redhat.com>
8865
8866 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8867 Add argument.
8868 (target_trace_set_readonly_regions): Add argument.
8869 * target.c (update_current_target): Update.
8870 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8871 argument.
8872
780b049c
TT
88732014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8876 argument.
8877 (target_disable_tracepoint): Add argument.
8878 * target.c (update_current_target): Update.
8879 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8880
46670d57
TT
88812014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8884 argument.
8885 (target_enable_tracepoint): Add argument.
8886 * target.c (update_current_target): Update.
8887 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8888
559d2b81
TT
88892014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target.h (struct target_ops) <to_download_trace_state_variable>:
8892 Add argument.
8893 (target_download_trace_state_variable): Add argument.
8894 * target.c (update_current_target): Update.
8895 * remote.c (remote_download_trace_state_variable): Add 'self'
8896 argument.
8897
a52a8357
TT
88982014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8901 argument.
8902 (target_can_download_tracepoint): Add argument.
8903 * target.c (update_current_target): Update.
8904 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8905
548f7808
TT
89062014-02-19 Tom Tromey <tromey@redhat.com>
8907
8908 * target.h (struct target_ops) <to_download_tracepoint>: Add
8909 argument.
8910 (target_download_tracepoint): Add argument.
8911 * target.c (update_current_target): Update.
8912 * remote.c (remote_download_tracepoint): Add 'self' argument.
8913
ecae04e1
TT
89142014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * target.h (struct target_ops) <to_trace_init>: Add argument.
8917 (target_trace_init): Add argument.
8918 * target.c (update_current_target): Update.
8919 * remote.c (remote_trace_init): Add 'self' argument.
8920
fab5aa7c
TT
89212014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8924 * target.c (target_fileio_readlink): Add argument.
8925 * remote.c (remote_hostio_readlink): Add 'self' argument.
8926 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8927
dbbca37d
TT
89282014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8931 * target.c (target_fileio_unlink): Add argument.
8932 * remote.c (remote_hostio_unlink): Add 'self' argument.
8933 (remote_file_delete): Update.
8934 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8935
df39ea25
TT
89362014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8939 * target.c (target_fileio_close): Add argument.
8940 * remote.c (remote_hostio_close): Add 'self' argument.
8941 (remote_hostio_close_cleanup): Update.
8942 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8943 Update.
8944 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8945
a3be983c
TT
89462014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8949 * target.c (target_fileio_pread): Add argument.
8950 * remote.c (remote_hostio_pread): Add 'self' argument.
8951 (remote_bfd_iovec_pread, remote_file_get): Update.
8952 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8953
0d866f62
TT
89542014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8957 * target.c (target_fileio_pwrite): Add argument.
8958 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8959 (remote_file_put): Update.
8960 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8961
cd897586
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8965 * target.c (target_fileio_open): Add argument.
8966 * remote.c (remote_hostio_open): Add 'self' argument.
8967 (remote_bfd_iovec_open): Add 'self' argument.
8968 (remote_file_put): Add 'self' argument.
8969 (remote_file_get): Add 'self' argument.
8970 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8971
78eff0ec
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8975 Add argument.
8976 (target_can_run_breakpoint_commands): Add argument.
8977 * target.c (update_current_target): Update.
8978 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8979 argument.
8980 (remote_insert_breakpoint): Add 'self' argument.
8981 (remote_insert_hw_breakpoint): Add 'self' argument.
8982 (remote_can_run_breakpoint_commands): Add 'self' argument.
8983
efcc2da7
TT
89842014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * target.h (struct target_ops)
8987 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8988 (target_supports_evaluation_of_breakpoint_conditions): Add
8989 argument.
8990 * target.c (update_current_target): Update.
8991 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8992 argument.
8993 (remote_insert_breakpoint): Add 'self' argument.
8994 (remote_insert_hw_breakpoint): Add 'self' argument.
8995 (remote_supports_cond_breakpoints): Add 'self' argument.
8996
6de37a3a
TT
89972014-02-19 Tom Tromey <tromey@redhat.com>
8998
8999 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9000 argument.
9001 (target_supports_string_tracing): Add argument.
9002 * target.c (update_current_target): Update.
9003 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9004
2bfc0540
TT
90052014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target.h (struct target_ops)
9008 <to_supports_disable_randomization>: Add argument.
9009 * target.c (find_default_supports_disable_randomization): Add
9010 argument.
9011 (target_supports_disable_randomization): Add argument.
9012 (find_default_supports_disable_randomization): Add 'self'
9013 argument.
9014 * remote.c (extended_remote_supports_disable_randomization): Add
9015 'self' argument.
9016 (remote_supports_disable_randomization): Add 'self' argument.
9017 (extended_remote_create_inferior): Update.
9018 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9019 'self' argument.
9020
7d178d6a
TT
90212014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target.h (struct target_ops)
9024 <to_supports_enable_disable_tracepoint>: Add argument.
9025 (target_supports_enable_disable_tracepoint): Add argument.
9026 * target.c (update_current_target): Update.
9027 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9028 argument.
9029
86ce2668
TT
90302014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target.h (struct target_ops) <to_supports_multi_process>: Add
9033 argument.
9034 (target_supports_multi_process): Add argument.
9035 * target.c (update_current_target): Update.
9036 * remote.c (remote_supports_multi_process): Add 'self' argument.
9037 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9038 argument.
9039 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9040 argument.
9041
4c612759
TT
90422014-02-19 Tom Tromey <tromey@redhat.com>
9043
9044 * target.h (struct target_ops) <to_execution_direction>: Add
9045 argument.
9046 (target_execution_direction): Add argument.
9047 * target.c (default_execution_direction): Add 'self' argument.
9048 * record-full.c (record_full_execution_direction): Add 'self'
9049 argument.
9050
19db3e69
TT
90512014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9054 argument.
9055 (target_can_execute_reverse): Add argument.
9056 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9057 * record-full.c (record_full_can_execute_reverse): Add 'self'
9058 argument.
9059 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9060 argument.
9061
1e6b91a4
TT
90622014-02-19 Tom Tromey <tromey@redhat.com>
9063
9064 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9065 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9066 argument.
9067 (target_get_ada_task_ptid): Add argument.
9068 * target.c (update_current_target): Update.
9069 (default_get_ada_task_ptid): Add 'self' argument.
9070 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9071 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9072 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9073 argument.
9074 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9075 argument.
9076 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9077 argument.
9078 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9079 argument.
9080 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9081 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9082 argument.
9083
3c80fb48
TT
90842014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9087 (target_goto_bookmark): Add argument.
9088 * target.c (dummy_goto_bookmark): Add 'self' argument.
9089 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9090
dd0e2830
TT
90912014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9094 (target_get_bookmark): Add argument.
9095 * target.c (dummy_get_bookmark): Add 'self' argument.
9096 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9097
fc6691b2
TT
90982014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9101 argument.
9102 (target_make_corefile_notes): Add argument.
9103 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9104 * procfs.c (procfs_make_note_section): Add 'self' argument.
9105 (procfs_make_note_section): Add 'self' argument.
9106 (procfs_make_note_section): Add 'self' argument.
9107 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9108 argument.
9109 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9110 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9111 * exec.c (exec_make_note_section): Add 'self' argument.
9112 (exec_make_note_section): Add 'self' argument.
9113
2e73927c
TT
91142014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <to_find_memory_regions>: Add
9117 argument.
9118 (target_find_memory_regions): Add argument.
9119 * target.c (dummy_find_memory_regions): Add 'self' argument.
9120 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9121 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9122 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9123 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9124 * exec. (exec_do_find_memory_regions): New global.
9125 (exec_set_find_memory_regions): Rewrite.
9126 (exec_find_memory_regions): New function.
9127 (init_exec_ops): Use exec_find_memory_regions.
9128
2a9a2795
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target.h (struct target_ops) <to_supports_non_stop>: Add
9132 argument.
9133 * target.c (find_default_supports_non_stop): Add argument.
9134 (target_supports_non_stop): Add argument.
9135 (find_default_supports_non_stop): Add 'self' argument.
9136 * remote.c (remote_supports_non_stop): Add 'self' argument.
9137 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9138
4ab76ea3
TT
91392014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * target.h (struct target_ops) <to_log_command>: Add argument.
9142 (target_log_command): Add argument.
9143 * serial.h (serial_log_command): Add 'self' argument.
9144 * serial.c (serial_log_command): Add 'self' argument.
9145
8dd27370
TT
91462014-02-19 Tom Tromey <tromey@redhat.com>
9147
9148 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9149 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9150 argument.
9151 (target_pid_to_exec_file): Add argument.
9152 * target.c (debug_to_pid_to_exec_file): Add argument.
9153 (update_current_target): Update.
9154 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9155 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9156 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9157 (linux_handle_extended_wait): Update.
9158 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9159 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9160 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9161 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9162
1aac633b
TT
91632014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target.h (struct target_ops) <to_rcmd>: Add argument.
9166 (target_rcmd): Add argument.
9167 * target.c (debug_to_rcmd): Add argument.
9168 (update_current_target, do_monitor_command): Update.
9169 * remote.c (remote_rcmd): Add 'self' argument.
9170 * monitor.c (monitor_rcmd): Add 'self' argument.
9171
1eab8a48
TT
91722014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * windows-nat.c (windows_stop): Add 'self' argument.
9175 * target.h (struct target_ops) <to_stop>: Add argument.
9176 * target.c (target_stop): Add argument.
9177 (debug_to_stop): Add argument.
9178 (update_current_target): Update.
9179 * remote.c (remote_stop): Add 'self' argument.
9180 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9181 (gdbsim_cntrl_c): Update.
9182 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9183 * procfs.c (procfs_stop): Add 'self' argument.
9184 * nto-procfs.c (procfs_stop): Add 'self' argument.
9185 * monitor.c (monitor_stop): Add 'self' argument.
9186 (monitor_open): Update.
9187 * linux-nat.c (linux_nat_stop): Add argument.
9188 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9189 * gnu-nat.c (gnu_stop): Add 'self' argument.
9190 * darwin-nat.c (darwin_stop): Add 'self' argument.
9191
503a628d
TT
91922014-02-19 Tom Tromey <tromey@redhat.com>
9193
9194 * target.h (struct target_ops) <to_thread_name>: Add argument.
9195 * target.c (target_thread_name): Add argument.
9196 (update_current_target): Update.
9197 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9198
c15906d8
TT
91992014-02-19 Tom Tromey <tromey@redhat.com>
9200
9201 * target.h (struct target_ops) <to_extra_thread_info>: Add
9202 argument.
9203 (target_extra_thread_info): Add argument.
9204 * target.c (update_current_target): Update.
9205 * remote.c (remote_threads_extra_info): Add 'self' argument.
9206 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9207 argument.
9208 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9209 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9210 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9211 argument.
9212 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9213 argument.
9214 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9215 argument.
9216 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9217 argument.
9218
daf5e9b6
TT
92192014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_program_signals>: Add argument.
9222 * target.c (target_program_signals): Add argument.
9223 * remote.c (remote_program_signals): Add 'self' argument.
9224
94bedb42
TT
92252014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9228 * target.c (target_pass_signals): Add argument.
9229 * remote.c (remote_pass_signals): Add 'self' argument.
9230 (remote_start_remote): Update.
9231 * procfs.c (procfs_pass_signals): Add 'self' argument.
9232 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9233 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9234 (linux_nat_create_inferior, linux_nat_attach): Update.
9235
da82bd6b
TT
92362014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * windows-nat.c (windows_can_run): Add 'self' argument.
9239 * target.h (struct target_ops) <to_can_run>: Add argument.
9240 (target_can_run): Add argument.
9241 * target.c (debug_to_can_run): Add argument.
9242 (update_current_target): Update.
9243 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9244 * inf-child.c (inf_child_can_run): Add 'self' argument.
9245 * go32-nat.c (go32_can_run): Add 'self' argument.
9246
d796e1d6
TT
92472014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * target.h (struct target_ops) <to_has_exited>: Add argument.
9250 (target_has_exited): Add argument.
9251 * target.c (debug_to_has_exited): Add argument.
9252 (update_current_target): Update.
9253
ff214e67
TT
92542014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9257 argument.
9258 (target_set_syscall_catchpoint): Add argument.
9259 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9260 argument.
9261 * target.c (update_current_target): Update.
9262
758e29d2
TT
92632014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9266 argument.
9267 (target_remove_exec_catchpoint): Add argument.
9268 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9269 (update_current_target): Update.
9270 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9271 argument.
9272
ba025e51
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9276 argument.
9277 (target_insert_exec_catchpoint): Add argument.
9278 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9279 (update_current_target): Update.
9280 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9281 argument.
9282
e98cf0cd
TT
92832014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9286 argument.
9287 (target_remove_vfork_catchpoint): Add argument.
9288 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9289 (update_current_target): Update.
9290 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9291 argument.
9292
3ecc7da0
TT
92932014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9296 argument.
9297 (target_insert_vfork_catchpoint): Add argument.
9298 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9299 (update_current_target): Update.
9300 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9301 argument.
9302
973fc227
TT
93032014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9306 argument.
9307 (target_remove_fork_catchpoint): Add argument.
9308 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9309 (update_current_target): Update.
9310 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9311 argument.
9312
a863b201
TT
93132014-02-19 Tom Tromey <tromey@redhat.com>
9314
9315 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9316 argument.
9317 (target_insert_fork_catchpoint): Add argument.
9318 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9319 (update_current_target): Update.
9320 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9321 argument.
9322
2e97a79e
TT
93232014-02-19 Tom Tromey <tromey@redhat.com>
9324
9325 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9326 argument.
9327 (target_post_startup_inferior): Add argument.
9328 * target.c (debug_to_post_startup_inferior): Add argument.
9329 (update_current_target): Update.
9330 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9331 argument.
9332 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9333 argument.
9334 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9335 argument.
9336 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9337 argument.
9338 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9339 'self' argument.
9340 (super_post_startup_inferior): Likewise.
9341 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9342 'self' argument.
9343 (super_post_startup_inferior): Likewise.
9344 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9345 Add 'self' argument.
9346 (super_post_startup_inferior): Likewise.
9347
71a9f134
TT
93482014-02-19 Tom Tromey <tromey@redhat.com>
9349
9350 * target.h (struct target_ops) <to_load>: Add argument.
9351 * target.c (target_load): Add argument.
9352 (debug_to_load): Add argument.
9353 (update_current_target): Update.
9354 * remote.c (remote_load): Add 'self' argument.
9355 * remote-sim.c (gdbsim_load): Add 'self' argument.
9356 * remote-mips.c (mips_load): Add 'self' argument.
9357 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9358 * monitor.c (monitor_load): Add 'self' argument.
9359 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9360
0a4f40a2
TT
93612014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9364 (target_terminal_info): Add argument.
9365 * target.c (debug_to_terminal_info): Add argument.
9366 (default_terminal_info): Likewise.
9367 * inflow.c (child_terminal_info): Add 'self' argument.
9368 * inferior.h (child_terminal_info): Add 'self' argument.
9369 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9370
ae3bd431
TT
93712014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9374 argument.
9375 (target_terminal_save_ours): Add argument.
9376 * target.c (debug_to_terminal_save_ours): Add argument.
9377 (update_current_target): Update.
9378 * inflow.c (terminal_save_ours): Add 'self' argument.
9379 * inferior.h (terminal_save_ours): Add 'self' argument.
9380
e3594fd1
TT
93812014-02-19 Tom Tromey <tromey@redhat.com>
9382
9383 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9384 (target_terminal_ours): Add argument.
9385 * target.c (debug_to_terminal_ours): Add argument.
9386 (update_current_target): Update.
9387 * remote.c (remote_terminal_ours): Add 'self' argument.
9388 (remote_close): Update.
9389 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9390 * inflow.c (terminal_ours): Add 'self' argument.
9391 * inferior.h (terminal_ours): Add 'self' argument.
9392 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9393
2e1e1a19
TT
93942014-02-19 Pedro Alves <palves@redhat.com>
9395 Tom Tromey <tromey@redhat.com>
9396
9397 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9398 argument.
9399 (target_terminal_ours_for_output): Add argument.
9400 * target.c (debug_to_terminal_ours_for_output): Add argument.
9401 (update_current_target): Update.
9402 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9403 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9404 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9405
d2f640d4
TT
94062014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target.h (struct target_ops) <to_terminal_inferior>: Add
9409 argument.
9410 * target.c (target_terminal_inferior): Add argument.
9411 (update_current_target): Update.
9412 * remote.c (remote_terminal_inferior): Add 'self' argument.
9413 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9414 * inflow.c (terminal_inferior): Add 'self' argument.
9415 * inferior.h (terminal_inferior): Add 'self' argument.
9416 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9417 (go32_terminal_inferior): Add 'self' argument.
9418
c42bf286
TT
94192014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9422 (target_terminal_init): Add argument.
9423 * target.c (debug_to_terminal_init): Add argument.
9424 (update_current_target): Update.
9425 * inflow.c (terminal_init_inferior): Add 'self' argument.
9426 * inferior.h (terminal_init_inferior): Add 'self' argument.
9427 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9428 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9429
c3a5ff89
TT
94302014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target.h (struct target_ops)
9433 <to_can_accel_watchpoint_condition>: Add argument.
9434 (target_can_accel_watchpoint_condition): Add argument.
9435 * target.c (debug_to_can_accel_watchpoint_condition): Add
9436 argument.
9437 (update_current_target): Update.
9438 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9439 'self' argument.
9440
31568a15
TT
94412014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9444 Add argument.
9445 (target_region_ok_for_hw_watchpoint): Add argument.
9446 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9447 (default_region_ok_for_hw_watchpoint): Add argument.
9448 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9449 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9450 argument.
9451 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9452 argument.
9453 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9454 argument.
9455 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9456 'self' argument.
9457 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9458 'self' argument.
9459 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9460 'self' argument.
9461 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9462 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9463 'self' argument.
9464 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9465 Add 'self' argument.
9466
7bb99c53
TT
94672014-02-19 Tom Tromey <tromey@redhat.com>
9468
9469 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9470 argument.
9471 (target_insert_watchpoint): Add argument.
9472 * target.c (debug_to_insert_watchpoint): Add argument.
9473 (update_current_target): Update.
9474 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9475 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9476 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9477 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9478 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9479 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9480 argument.
9481 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9482 (procfs_insert_hw_watchpoint): Add 'self' argument.
9483 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9484 argument.
9485 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9486 argument.
9487 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9488 argument.
9489 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9490 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9491 argument.
9492 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9493 'self' argument.
9494
11b5219a
TT
94952014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9498 argument.
9499 (target_remove_watchpoint): Add argument.
9500 * target.c (debug_to_remove_watchpoint): Add argument.
9501 (update_current_target): Update.
9502 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9503 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9504 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9505 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9506 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9507 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9508 argument.
9509 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9510 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9511 argument.
9512 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9513 argument.
9514 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9515 argument.
9516 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9517 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9518 argument.
9519 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9520 'self' argument.
9521
a64dc96c
TT
95222014-02-19 Tom Tromey <tromey@redhat.com>
9523
9524 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9525 argument.
9526 (target_remove_hw_breakpoint): Add argument.
9527 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9528 (update_current_target): Update.
9529 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9530 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9531 argument.
9532 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9533 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9534 argument.
9535 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9536 'self' argument.
9537
23a26771
TT
95382014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9541 argument.
9542 (target_insert_hw_breakpoint): Add argument.
9543 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9544 (update_current_target): Update.
9545 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9546 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9547 argument.
9548 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9549 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9550 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9551 argument.
9552 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9553 'self' argument.
9554
5461485a
TT
95552014-02-19 Tom Tromey <tromey@redhat.com>
9556
9557 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9558 argument.
9559 (target_can_use_hardware_watchpoint): Add argument.
9560 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9561 (update_current_target): Update.
9562 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9563 argument.
9564 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9565 argument.
9566 * remote.c (remote_check_watch_resources): Add 'self' argument.
9567 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9568 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9569 argument.
9570 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9571 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9572 argument.
9573 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9574 argument.
9575 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9576 argument.
9577 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9578 argument.
9579 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9580 argument.
9581 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9582 argument.
9583 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9584 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9585 argument.
9586 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9587 'self' argument.
9588
f045800c
TT
95892014-02-19 Tom Tromey <tromey@redhat.com>
9590
9591 * target.h (struct target_ops) <to_post_attach>: Add argument.
9592 (target_post_attach): Add argument.
9593 * target.c (debug_to_post_attach): Add argument.
9594 (update_current_target): Update.
9595 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9596 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9597 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9598 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9599 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9600
de90e03d
TT
96012014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * windows-nat.c (windows_close): Add 'self' argument.
9604 * tracepoint.c (tfile_close): Add 'self' argument.
9605 * target.h (struct target_ops) <to_close>: Add argument.
9606 * target.c (target_close): Add argument.
9607 (update_current_target): Update.
9608 * remote.c (remote_close): Add 'self' argument.
9609 * remote-sim.c (gdbsim_close): Add 'self' argument.
9610 * remote-mips.c (mips_close): Add 'self' argument.
9611 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9612 * record-full.c (record_full_close): Add 'self' argument.
9613 * record-btrace.c (record_btrace_close): Add 'self' argument.
9614 * monitor.h (monitor_close): Add 'self' argument.
9615 * monitor.c (monitor_close): Add 'self' argument.
9616 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9617 * linux-nat.c (linux_nat_close): Add argument.
9618 * go32-nat.c (go32_close): Add 'self' argument.
9619 * exec.c (exec_close_1): Add 'self' argument.
9620 * ctf.c (ctf_close): Add 'self' argument.
9621 * corelow.c (core_close): Add 'self' argument.
9622 (core_close_cleanup): Update.
9623 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9624 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9625
9dd130a0
TT
96262014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * remote.c (remote_load): New function.
9629 (init_remote_ops): Use it.
9630
46917d26
TT
96312014-02-19 Tom Tromey <tromey@redhat.com>
9632
9633 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9634 argument.
9635 * common/linux-btrace.h (linux_supports_btrace): Update.
9636 * remote.c (remote_supports_btrace): Add "self" argument.
9637 * target-delegates.c: Rebuild.
9638 * target.c (target_supports_btrace): Remove.
9639 * target.h (struct target_ops) <to_supports_btrace>: Add
9640 target_ops argument.
9641 (target_supports_btrace): New define.
9642
6b84065d
TT
96432014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * record-full.c (record_full_beneath_to_resume_ops)
9646 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9647 (record_full_beneath_to_wait)
9648 (record_full_beneath_to_store_registers_ops)
9649 (record_full_beneath_to_store_registers)
9650 (record_full_beneath_to_xfer_partial_ops)
9651 (record_full_beneath_to_xfer_partial)
9652 (record_full_beneath_to_insert_breakpoint_ops)
9653 (record_full_beneath_to_insert_breakpoint)
9654 (record_full_beneath_to_remove_breakpoint_ops)
9655 (record_full_beneath_to_remove_breakpoint)
9656 (record_full_beneath_to_stopped_by_watchpoint)
9657 (record_full_beneath_to_stopped_data_address)
9658 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9659 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9660 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9661 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9662 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9663 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9664 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9665 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9666 (record_full_resume, record_full_wait_1)
9667 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9668 (record_full_store_registers, record_full_xfer_partial)
9669 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9670 (record_full_async, record_full_core_xfer_partial): Use target
9671 delegation.
9672 * target-delegates.c: Rebuild.
9673 * target.c (current_xfer_partial): Remove.
9674 (update_current_target): Do not INHERIT or de_fault
9675 to_insert_breakpoint, to_remove_breakpoint,
9676 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9677 to_is_async_p, to_async. Do not set to_xfer_partial field.
9678 (default_xfer_partial): Simplify.
9679 (current_xfer_partial): Remove.
9680 (target_wait, target_resume): Simplify.
9681 (find_default_can_async_p, find_default_is_async_p): Update.
9682 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9683 to_xfer_partial, to_stopped_by_watchpoint,
9684 to_stopped_data_address.
9685 (target_store_registers): Simplify.
9686 (forward_target_remove_breakpoint)
9687 (forward_target_insert_breakpoint): Remove.
9688 (target_remove_breakpoint, target_insert_breakpoint)
9689 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9690 * target.h (struct target_ops) <to_resume, to_wait,
9691 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9692 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9693 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9694 markup.
9695 (forward_target_remove_breakpoint)
9696 (forward_target_insert_breakpoint): Remove.
9697 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9698 directly.
9699 (record_btrace_insert_breakpoint): Delegate directly.
9700
1101cb7b
TT
97012014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 PR build/7701:
9704 * target-delegates.c: New file.
9705 * target.c: Include target-delegates.c.
9706 (init_dummy_target): Call install_dummy_methods.
9707 (complete_target_initialization): Call install_delegators.
9708 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9709 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9710 * make-target-delegates: New file.
9711
8b06beed
TT
97122014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * record.c (find_record_target): Use find_target_at.
9715 * target.c (find_target_at): New function.
9716 * target.h (find_target_at): Declare.
9717
6a109b6b
TT
97182014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9721 Add 'ops' argument.
9722 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9723 'ops' argument.
9724 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9725 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9726 'ops' argument.
9727 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9728 argument.
9729 * linux-nat.c (save_sigtrap): Update.
9730 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9731 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9732 (linux_nat_close): Update.
9733 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9734 argument.
9735 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9736 argument.
9737 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9738 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9739 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9740 (tmp_to_async): Add 'ops' argument.
9741 (record_full_stopped_by_watchpoint, record_full_async)
9742 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9743 argument.
9744 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9745 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9746 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9747 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9748 (remote_is_async_p, remote_async): Add 'ops' argument.
9749 (remote_stopped_data_address): Update.
9750 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9751 * target.c (update_current_target)
9752 (find_default_can_async_p, find_default_is_async_p): Update.
9753 (init_dummy_target): Update.
9754 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9755 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9756 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9757 (target_can_async_p, target_is_async_p, target_async)
9758 (target_stopped_by_watchpoint): Update.
9759
e095146b
YQ
97602014-02-19 Yao Qi <yao@codesourcery.com>
9761
9762 PR gdb/16220
9763 * gdbarch.sh: Remove startup_gdbarch.
9764 * gdbarch.c: Regenerated.
9765 * gdbarch.h: Likewise.
9766
bc3c6b36
KB
97672014-02-17 Kevin Buettner <kevinb@redhat.com>
9768
9769 * rl78-tdep.c (rl78_g10_register_name): New function.
9770 (rl78_return_value): Add g10 support.
9771 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9772 g10.
9773
98dc0167 97742014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9775
9776 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9777 (SUBDIR_GUILE_SRCS): Ditto.
9778 (scm-gsmob.o): Ditto.
9779
842c05cd
YQ
97802014-02-17 Yao Qi <yao@codesourcery.com>
9781
9782 * gnu-nat.c (ILL_RPC): Declare defined function.
9783
25c0bd04
YQ
97842014-02-17 Yao Qi <yao@codesourcery.com>
9785
9786 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9787 mach_msg_type_number_t.
9788 (gnu_write_inferior): Likewise.
9789
a9a758e3
YQ
97902014-02-17 Yao Qi <yao@codesourcery.com>
9791
9792 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9793 in format string.
9794 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9795 (inf_validate_procs, inf_signal): Likewise.
9796 (S_exception_raise_request): Likewise.
9797 (do_mach_notify_dead_name): Likewise.
9798 (steal_exc_port): Likewise.
9799 (gnu_read_inferior): Change 'copy_count''s type to
9800 mach_msg_type_number_t.
9801 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9802 format string.
9803
bae8023e
TS
98042014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9805
c82f56d9
TS
9806 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9807 flag. Adjust all users; in particular...
9808 (gnu_wait): ..., don't decrement its value in here...
9809 (gnu_create_inferior): ..., and instead set the flag in here,
9810 around the startup_inferior call, and call that one with
9811 START_INFERIOR_TRAPS_EXPECTED.
9812
3398af6a
TS
9813 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9814 (ILL_RPC): ... new macro.
9815 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9816 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9817 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9818 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9819 functions with ILL_RPC macro.
9820 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9821 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9822 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9823 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9824 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9825 (S_proc_getlogin_reply, S_proc_getsid_reply)
9826 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9827 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9828 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9829 (S_proc_getnports_reply, S_proc_is_important_reply)
9830 (S_proc_get_code_reply): New stub functions, generated with
9831 ILL_RPC macro.
9832
d47642c9
TS
9833 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9834 collected the type check structures.
9835
bae8023e
TS
9836 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9837
8a55ffb0
DE
98382014-02-14 Doug Evans <dje@google.com>
9839
9840 * target.c (target_write_partial): Fix result type.
9841
c2853f3d
JM
98422014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9843
9844 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9845 the proper offsets to access fpregset_t.
9846
ac61d2db
SA
98472014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9848
9849 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9850 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9851 * h8300-tdep.c (setmachinelist): Remove global.
9852 * hppa-tdep.c (hppa_sigtramp): Remove global.
9853 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9854 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9855 * ravenscar-thread.c (update_target_observer): Remove global.
9856 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9857
9d2d0b8b
TT
98582014-02-12 Tom Tromey <tromey@redhat.com>
9859
9860 * common/rsp-low.c: Update comments.
9861 * common/rsp-low.h: Update comments.
9862
a7191e8b
TT
98632014-02-12 Tom Tromey <tromey@redhat.com>
9864
9865 * common/rsp-low.c (convert_ascii_to_int): Remove.
9866 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9867
ff0e980e
TT
98682014-02-12 Tom Tromey <tromey@redhat.com>
9869
9870 * common/rsp-low.h (unhexify): Don't declare.
9871 * common/rsp-low.c (unhexify): Remove.
9872
e9371aff
TT
98732014-02-12 Tom Tromey <tromey@redhat.com>
9874
9875 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9876 * common/rsp-low.c (convert_int_to_ascii): Remove.
9877
971dc0b8
TT
98782014-02-12 Tom Tromey <tromey@redhat.com>
9879
9880 * common/rsp-low.h (hexify): Don't declare.
9881 * common/rsp-low.c (hexify): Remove.
9882
0a822afb
TT
98832014-02-12 Tom Tromey <tromey@redhat.com>
9884
9885 * common/rsp-low.c (hexify): Never take strlen of argument.
9886
9f1b45b0
TT
98872014-02-12 Tom Tromey <tromey@redhat.com>
9888
9889 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9890 * remote.c (extended_remote_run, remote_rcmd)
9891 (remote_download_trace_state_variable, remote_save_trace_data)
9892 (remote_set_trace_notes): Update.
9893 * tracepoint.c (encode_source_string, tfile_write_status)
9894 (tfile_write_uploaded_tsv): Update.
9895
9c3d6531
TT
98962014-02-12 Tom Tromey <tromey@redhat.com>
9897
9898 * tracepoint.c: Include rsp-low.h.
9899 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9900 * remote.c: Include rsp-low.h.
9901 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9902 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9903 (remote_unescape_input): Move to common/rsp-low.c.
9904 * common/rsp-low.h: New file.
9905 * common/rsp-low.c: New file.
9906 * Makefile.in (SFILES): Add common/rsp-low.c.
9907 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9908 (COMMON_OBS): Add rsp-low.o.
9909 (rsp-low.o): New target.
9910
01fd3ea5
TT
99112014-02-12 Tom Tromey <tromey@redhat.com>
9912
9913 * utils.h: Include print-utils.h.
9914 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9915 (int_string, core_addr_to_string, core_addr_to_string_nz)
9916 (hex_string, hex_string_custom): Don't declare.
9917 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9918 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9919 (hex_string_custom, int_string, core_addr_to_string)
9920 (core_addr_to_string_nz, host_address_to_string): Move to
9921 common/print-utils.c.
9922 * common/print-utils.h: New file.
9923 * common/print-utils.c: New file
9924 * Makefile.in (SFILES): Add common/print-utils.c.
9925 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9926 (COMMON_OBS): Add print-utils.o.
9927 (print-utils.o): New target.
9928
9fb50108
TT
99292014-02-12 Tom Tromey <tromey@redhat.com>
9930
9931 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9932
0548b5db
MK
99332014-02-12 Mark Kettenis <kettenis@gnu.org>
9934
9935 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9936
493443a4
MK
99372014-02-12 Mark Kettenis <kettenis@gnu.org>
9938
9939 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9940 if a PT_IO ptrace request returns sucessfully but indicates that 0
9941 bytes were transferred.
9942
706d0883
PA
99432014-02-12 Pedro Alves <palves@redhat.com>
9944 Kevin Buettner <kevinb@redhat.com>
9945
9946 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9947 TYPE_INSTANCE_FLAG_CODE_SPACE.
9948
5caa2f0b
PA
99492014-02-12 Pedro Alves <palves@redhat.com>
9950
9951 * h8300-tdep.c (pseudo_from_raw_register)
9952 (raw_from_pseudo_register): New functions.
9953 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9954 them.
9955
76fd5f74
PA
99562014-02-12 Pedro Alves <palves@redhat.com>
9957
9958 * h8300-tdep.c (h8300_register_sim_regno): New function.
9959 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9960 gdbarch_register_sim_regno hook.
9961
8f008406
SA
99622014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9963
9964 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9965
195abc10
SA
99662014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9967
9968 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9969
93ffa5b9
MK
99702014-02-12 Mark Kettenis <kettenis@gnu.org>
9971
9972 * obsd-tdep.h (obsd_init_abi): New prototype.
9973 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9974 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9975 (obsd_init_abi): New functions.
9976 * i386obsd-tdep.c: Include "obsd-tdep.h".
9977 (i386obsd_init_abi): Call obsd_init_abi.
9978 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9979 (amd64obsd_init_abi): Call obsd_init_abi.
9980 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9981 obsd-tdep.c to gdb_target_obs.
9982
49caec94
JM
99832014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9984
9985 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9986 double float arguments to 16-byte in the argument slots.
9987
e1402065
DE
99882014-02-11 Doug Evans <xdje42@gmail.com>
9989
9990 * configure.ac: Don't crash if pkg-config is not found and guile
9991 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9992 in guile checks.
9993 * configure: Regenerate.
9994
edcc890f
YQ
99952014-02-11 Yao Qi <yao@codesourcery.com>
9996
9997 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9998 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9999 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10000 * gnu-nat.c (gnu_xfer_memory): Likewise.
10001 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10002 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10003 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10004 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10005
9b409511
YQ
100062014-02-11 Yao Qi <yao@codesourcery.com>
10007
10008 * target.h (enum target_xfer_error): Rename to ...
10009 (enum target_xfer_status): ... it. New. All users updated.
10010 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10011 New.
10012 (TARGET_XFER_STATUS_ERROR_P): New macro.
10013 (target_xfer_error_to_string): Remove declaration.
10014 (target_xfer_status_to_string): Declare.
10015 (target_xfer_partial_ftype): Adjust it.
10016 (struct target_ops) <to_xfer_partial>: Return
10017 target_xfer_status. Add argument xfered_len. Update
10018 comments.
10019 * target.c (target_xfer_error_to_string): Rename to ...
10020 (target_xfer_status_to_string): ... it. New. All callers
10021 updated.
10022 (target_read_live_memory): Likewise. Call target_xfer_partial
10023 instead of target_read.
10024 (memory_xfer_live_readonly_partial): Return
10025 target_xfer_status. Add argument xfered_len.
10026 (raw_memory_xfer_partial): Likewise.
10027 (memory_xfer_partial_1): Likewise.
10028 (memory_xfer_partial): Likewise.
10029 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10030 properly. Update debug message.
10031 (default_xfer_partial, current_xfer_partial): Likewise.
10032 (target_write_partial): Likewise.
10033 (target_read_partial): Likewise. All callers updated.
10034 (read_whatever_is_readable): Likewise.
10035 (target_write_with_progress): Likewise.
10036 (target_read_alloc_1): Likewise.
10037
10038 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10039 * auxv.c (procfs_xfer_auxv): Likewise.
10040 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10041 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10042 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10043 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10044 * corefile.c (read_memory): Adjust.
10045 * corelow.c (core_xfer_partial): Likewise.
10046 * ctf.c (ctf_xfer_partial): Likewise.
10047 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10048 updated.
10049 (darwin_xfer_partial): Likewise.
10050 * exec.c (section_table_xfer_memory_partial): Likewise. All
10051 callers updated.
10052 (exec_xfer_partial): Likewise.
10053 * exec.h (section_table_xfer_memory_partial): Update
10054 declaration.
10055 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10056 negative.
10057 (gnu_xfer_partial): Likewise.
10058 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10059 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10060 (ia64_hpux_xfer_solib_got): Likewise.
10061 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10062 type of 'partial_len' to ULONGEST.
10063 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10064 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10065 (linux_nat_xfer_partial): Likewise.
10066 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10067 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10068 * monitor.c (monitor_xfer_memory): Likewise.
10069 (monitor_xfer_partial): Likewise.
10070 * procfs.c (procfs_xfer_partial): Likewise.
10071 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10072 * record-full.c (record_full_xfer_partial): Likewise.
10073 (record_full_core_xfer_partial): Likewise.
10074 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10075 (gdbsim_xfer_partial): Likewise.
10076 * remote.c (remote_write_bytes_aux): Likewise. All callers
10077 updated.
10078 (remote_write_bytes, remote_read_bytes): Likewise. All
10079 callers updated.
10080 (remote_flash_erase): Likewise. All callers updated.
10081 (remote_write_qxfer): Likewise. All callers updated.
10082 (remote_read_qxfer): Likewise. All callers updated.
10083 (remote_xfer_partial): Likewise.
10084 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10085 (rs6000_xfer_shared_libraries): Likewise.
10086 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10087 (sol_thread_xfer_partial): Likewise.
10088 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10089 (sparc_xfer_partial): Likewise.
10090 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10091 updated.
10092 (spu_xfer_partial): Likewise.
10093 * spu-multiarch.c (spu_xfer_partial): Likewise.
10094 * tracepoint.c (tfile_xfer_partial): Likewise.
10095 * windows-nat.c (windows_xfer_memory): Likewise.
10096 (windows_xfer_shared_libraries): Likewise.
10097 (windows_xfer_partial): Likewise.
10098 * valprint.c: Replace 'target_xfer_error' with
10099 'target_xfer_status' in comments.
10100
a8e63083
JB
101012014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10102
10103 Checked in by Joel Brobecker <brobecker@adacore.com>.
10104 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10105
e86b67d3
JB
101062014-02-11 Joel Brobecker <brobecker@adacore.com>
10107
10108 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10109 function parameters.
10110
4b7d1f7f
WN
101112014-02-10 Will Newton <will.newton@linaro.org>
10112
10113 * elfread.c (elf_rel_plt_read): Look for a .got section if
10114 looking up .got.plt fails.
10115 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10116 on address passed to elf_gnu_ifunc_record_cache.
10117 (elf_gnu_ifunc_resolve_addr): Likewise.
10118 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10119
961842b2
JM
101202014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10121
10122 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10123 (X_RETTURN): New macro.
10124 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10125
10126 * sparc64-tdep.c (sparc64_init_abi): Hook
10127 sparc_in_function_epilogue_p.
10128
3f03e7b1
GB
101292014-02-10 Gary Benson <gbenson@redhat.com>
10130
10131 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10132 Rename name_matcher to symbol_matcher.
10133
96f861ef
GB
101342014-02-10 Gary Benson <gbenson@redhat.com>
10135
10136 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10137 Use expand_symtabs_file_matcher_ftype and
10138 expand_symtabs_symbol_matcher_ftype.
10139
ee01b665
JB
101402014-02-10 Joel Brobecker <brobecker@adacore.com>
10141
10142 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10143 (struct ada_symbol_cache): New.
10144 (ada_free_symbol_cache): Forward declare.
10145 (struct ada_pspace_data): New.
10146 (ada_pspace_data_handle): New static global.
10147 (get_ada_pspace_data, ada_pspace_data_cleanup)
10148 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10149 (cache_space, cache): Delete, now folded inside struct
10150 ada_pspace_data.
10151 (ada_get_symbol_cache): New function.
10152 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10153 implementation.
10154 (_initialize_ada_language): Remove initialization of cache_space.
10155 Move call to observer_attach_inferior_exit up, grouping it
10156 with the other observer registrations inside this function.
10157 Rename command to be more general. Add call to
10158 register_program_space_data_with_cleanup.
10159
143adbbf
JB
101602014-02-10 Joel Brobecker <brobecker@adacore.com>
10161
10162 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10163 ada_new_objfile_observer.
10164 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10165 (_initialize_tasks): Update uses of ada_new_objfile_observer
10166 and ada_tasks_normal_stop_observer.
10167
aa4fb036
JB
101682014-02-10 Joel Brobecker <brobecker@adacore.com>
10169
10170 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10171 returned by the 'Length attribute to integer.
10172
9dee8cc6
JB
101732014-02-10 Joel Brobecker <brobecker@adacore.com>
10174
10175 * ada-lang.c (_initialize_ada_language): Initialize
10176 cache_space obstack.
10177
3d9434b5
JB
101782014-02-10 Joel Brobecker <brobecker@adacore.com>
10179
10180 * ada-lang.c (HASH_SIZE): New macro.
10181 (struct cache_entry): New type.
10182 (cache_space, cache): New static globals.
10183 (ada_clear_symbol_cache, find_entry): New functions.
10184 (lookup_cached_symbol, cache_symbol): Implement.
10185 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10186 (_initialize_ada_language): Attach ada_new_objfile_observer
10187 and ada_free_objfile_observer.
10188
f0c5f9b2
JB
101892014-02-10 Joel Brobecker <brobecker@adacore.com>
10190
10191 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10192 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10193 struct block * parameter.
10194 (ada_lookup_symbol_list_worker): Constify local variable "block".
10195 Remove cast which is no longer necessary.
10196
ed3ef339
DE
101972014-02-10 Doug Evans <xdje42@gmail.com>
10198
10199 Add Guile as an extension language.
10200 * NEWS: Mention Guile scripting.
10201 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10202 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10203 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10204 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10205 (CLIBS): Add GUILE_LIBS.
10206 (install-guile): New rule.
10207 (guile.o): New rule.
10208 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10209 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10210 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10211 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10212 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10213 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10214 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10215 * configure.ac: New option --with-guile.
10216 * configure: Regenerate.
10217 * config.in: Regenerate.
10218 * auto-load.c: Remove #include "python/python.h". Add #include
10219 "gdb/section-scripts.h".
10220 (source_section_scripts): Handle Guile scripts.
10221 (_initialize_auto_load): Add name of Guile objfile script to
10222 scripts-directory help text.
10223 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10224 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10225 (struct breakpoint): New member scm_bp_object.
10226 * defs.h (enum command_control_type): New value guile_control.
10227 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10228 "extension.h".
10229 (show_user): Update comment.
10230 (_initialize_cli_cmds): Update help text for "show user". Update help
10231 text for max-user-call-depth.
10232 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10233 "extension.h".
10234 (multi_line_command_p): Add guile_control.
10235 (print_command_lines): Handle guile_control.
10236 (execute_control_command, recurse_read_control_structure): Ditto.
10237 (process_next_line): Recognize "guile" commands.
10238 * disasm.c (gdb_disassemble_info): Make non-static.
10239 * disasm.h: #include "dis-asm.h".
10240 (struct gdbarch): Add forward decl.
10241 (gdb_disassemble_info): Declare.
10242 * extension.c: #include "guile/guile.h".
10243 (extension_languages): Add guile.
10244 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10245 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10246 * gdbtypes.c (get_unsigned_type_max): New function.
10247 (get_signed_type_minmax): New function.
10248 * gdbtypes.h (get_unsigned_type_max): Declare.
10249 (get_signed_type_minmax): Declare.
10250 * guile/README: New file.
10251 * guile/guile-internal.h: New file.
10252 * guile/guile.c: New file.
10253 * guile/guile.h: New file.
10254 * guile/scm-arch.c: New file.
10255 * guile/scm-auto-load.c: New file.
10256 * guile/scm-block.c: New file.
10257 * guile/scm-breakpoint.c: New file.
10258 * guile/scm-disasm.c: New file.
10259 * guile/scm-exception.c: New file.
10260 * guile/scm-frame.c: New file.
10261 * guile/scm-gsmob.c: New file.
10262 * guile/scm-iterator.c: New file.
10263 * guile/scm-lazy-string.c: New file.
10264 * guile/scm-math.c: New file.
10265 * guile/scm-objfile.c: New file.
10266 * guile/scm-ports.c: New file.
10267 * guile/scm-pretty-print.c: New file.
10268 * guile/scm-safe-call.c: New file.
10269 * guile/scm-string.c: New file.
10270 * guile/scm-symbol.c: New file.
10271 * guile/scm-symtab.c: New file.
10272 * guile/scm-type.c: New file.
10273 * guile/scm-utils.c: New file.
10274 * guile/scm-value.c: New file.
10275 * guile/lib/gdb.scm: New file.
10276 * guile/lib/gdb/boot.scm: New file.
10277 * guile/lib/gdb/experimental.scm: New file.
10278 * guile/lib/gdb/init.scm: New file.
10279 * guile/lib/gdb/iterator.scm: New file.
10280 * guile/lib/gdb/printing.scm: New file.
10281 * guile/lib/gdb/types.scm: New file.
10282 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10283 (VPATH): Add $(GUILE_SRCDIR).
10284 (GUILE_DIR): New variable.
10285 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10286 (all): Add stamp-guile dependency.
10287 (stamp-guile): New rule.
10288 (clean-guile, install-guile, uninstall-guile): New rules.
10289 (install-only): Add install-guile dependency.
10290 (uninstall): Add uninstall-guile dependency.
10291 (clean): Add clean-guile dependency.
10292
ac020ec5
DE
102932014-02-09 Doug Evans <xdje42@gmail.com>
10294
10295 Revert this patch (which I approved, mea culpa).
10296
10297 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10298
10299 * Makefile.in (all-lib): Remove.
10300 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10301
2a081c59
JK
103022014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10303
10304 Fix Python stack corruption.
10305 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10306 gdb_py_longest.
10307
0a6bd22d
MK
103082014-02-08 Mark Kettenis <kettenis@gnu.org>
10309
10310 * Makefile.in (all-lib): Remove.
10311 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10312
1a860409
DE
103132014-02-07 Doug Evans <dje@google.com>
10314
10315 * extension-priv.h (extension_language_script_ops): Add comment.
10316 (extension_language_ops): Add comment.
caf5a491 10317 (active_ext_lang_state): Fix typo in comment.
1a860409 10318
d137e6dc
PA
103192014-02-07 Pedro Alves <palves@redhat.com>
10320
0dcb32c3 10321 PR breakpoints/16292
d137e6dc
PA
10322 * infrun.c (handle_signal_stop) <signal arrives while stepping
10323 over a breakpoint>: Switch back to the stepping thread.
10324
ce6d0892
YQ
103252014-02-07 Yao Qi <yao@codesourcery.com>
10326
10327 * target.c (target_xfer_partial): Return zero if LEN is zero.
10328
2ed4b548
YQ
103292014-02-07 Yao Qi <yao@codesourcery.com>
10330
10331 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10332 (ld_so_xfer_auxv): Likewise.
10333 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10334 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10335 * corelow.c (core_xfer_partial): Likewise.
10336 * ctf.c (ctf_xfer_partial): Likewise.
10337 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10338 (darwin_xfer_partial): Likewise.
10339 * exec.c (exec_xfer_partial): Likewise.
10340 * gnu-nat.c (gnu_xfer_partial): Likewise.
10341 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10342 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10343 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10344 * linux-nat.c (linux_xfer_siginfo): Likewise.
10345 (linux_proc_xfer_spu): Likewise.
10346 * procfs.c (procfs_xfer_partial): Likewise.
10347 * record-full.c (record_full_xfer_partial): Likewise.
10348 (record_full_core_xfer_partial): Likewise.
10349 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10350 * remote.c (remote_write_qxfer): Likewise.
10351 (remote_write_qxfer, remote_read_qxfer): Likewise.
10352 (remote_xfer_partial): Likewise.
10353 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10354 (rs6000_xfer_shared_libraries): Likewise.
10355 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10356 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10357 (spu_xfer_partial): Likewise.
10358 * target.c (memory_xfer_partial_1): Likewise.
10359 * tracepoint.c (tfile_xfer_partial): Likewise.
10360 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10361 (windows_xfer_partial): Likewise.
10362
c09f20e4
YQ
103632014-02-07 Yao Qi <yao@codesourcery.com>
10364
10365 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10366 comments.
10367 (core_xfer_shared_libraries_aix): Likewise.
10368 * gdbarch.c, gdbarch.h: Regenerated.
10369 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10370 ULONGEST. Change 'len_avail' type to ULONGEST.
10371 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10372 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10373 declaration.
10374 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10375
8635b3bf
YQ
103762014-02-07 Yao Qi <yao@codesourcery.com>
10377
10378 * corefile.c (memory_error): Get 'exception' from ERR and pass
10379 'exception' to throw_error.
10380
6dddc817
DE
103812014-02-06 Doug Evans <xdje42@gmail.com>
10382
10383 * configure.ac (libpython checking): Remove all but python.o from
10384 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10385 * configure: Regenerate.
10386
10387 * Makefile.in (SFILES): Add extension.c.
10388 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10389 (COMMON_OBS): Add extension.o.
10390 * extension.h: New file.
10391 * extension-priv.h: New file.
10392 * extension.c: New file.
10393
10394 * python/python-internal.h: #include "extension.h".
10395 (gdbpy_auto_load_enabled): Declare.
10396 (gdbpy_apply_val_pretty_printer): Declare.
10397 (gdbpy_apply_frame_filter): Declare.
10398 (gdbpy_preserve_values): Declare.
10399 (gdbpy_breakpoint_cond_says_stop): Declare.
10400 (gdbpy_breakpoint_has_cond): Declare.
10401 (void source_python_script_for_objfile): Delete.
10402 * python/python.c: #include "extension-priv.h".
10403 Delete inclusion of "observer.h".
10404 (extension_language_python): Moved here and renamed from
10405 script_language_python in py-auto-load.c.
10406 Redefined to be of type extension_language_defn.
10407 (python_extension_script_ops): New global.
10408 (python_extension_ops): New global.
10409 (struct python_env): New member previous_active.
10410 (restore_python_env): Call restore_active_ext_lang.
10411 (ensure_python_env): Call set_active_ext_lang.
10412 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10413 New arg extlang.
10414 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10415 New arg extlang.
10416 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10417 New arg extlang.
10418 (gdbpy_eval_from_control_command): Renamed from
10419 eval_python_from_control_command, made static. New arg extlang.
10420 (gdbpy_source_script) Renamed from source_python_script, made static.
10421 New arg extlang.
10422 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10423 result to int. New arg extlang.
10424 (gdbpy_source_objfile_script): Renamed from
10425 source_python_script_for_objfile, made static. New arg extlang.
10426 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10427 static. New args extlang, extlang_printers. Change result type to
10428 "void".
10429 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10430 static. New arg extlang. Rename arg printers to extlang_printers
10431 and change type to ext_lang_type_printers *.
10432 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10433 static. Replace argument arg with extlang, extlang_printers.
10434 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10435 (!HAVE_PYTHON, source_python_script): Delete.
10436 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10437 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10438 (!HAVE_PYTHON, start_type_printers): Delete.
10439 (!HAVE_PYTHON, apply_type_printers): Delete.
10440 (!HAVE_PYTHON, free_type_printers): Delete.
10441 (_initialize_python): Delete call to observer_attach_before_prompt.
10442 (finalize_python): Set/restore active extension language.
10443 (gdbpy_finish_initialization) Renamed from
10444 finish_python_initialization, made static. New arg extlang.
10445 (gdbpy_initialized): New function.
10446 * python/python.h: #include "extension.h". Delete #include
10447 "value.h", "mi/mi-cmds.h".
10448 (extension_language_python): Declare.
10449 (GDBPY_AUTO_FILE_NAME): Delete.
10450 (enum py_bt_status): Moved to extension.h and renamed to
10451 ext_lang_bt_status.
10452 (enum frame_filter_flags): Moved to extension.h.
10453 (enum py_frame_args): Moved to extension.h and renamed to
10454 ext_lang_frame_args.
10455 (finish_python_initialization): Delete.
10456 (eval_python_from_control_command): Delete.
10457 (source_python_script): Delete.
10458 (apply_val_pretty_printer): Delete.
10459 (apply_frame_filter): Delete.
10460 (preserve_python_values): Delete.
10461 (gdbpy_script_language_defn): Delete.
10462 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10463 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10464
10465 * auto-load.c: #include "extension.h".
10466 (GDB_AUTO_FILE_NAME): Delete.
10467 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10468 (script_language_gdb): Delete, moved to extension.c and renamed to
10469 extension_language_gdb.
10470 (source_gdb_script_for_objfile): Delete.
10471 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10472 (loaded_script): Change type of language member to
10473 struct extension_language_defn *.
10474 (init_loaded_scripts_info): Initialize
10475 unsupported_script_warning_printed.
10476 (maybe_add_script): Make static. Change type of language arg to
10477 struct extension_language_defn *.
10478 (clear_section_scripts): Reset unsupported_script_warning_printed.
10479 (auto_load_objfile_script_1): Rewrite to use extension language API.
10480 (auto_load_objfile_script): Make public. Remove support-compiled-in
10481 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10482 (source_section_scripts): Rewrite to use extension language API.
10483 (load_auto_scripts_for_objfile): Rewrite to use
10484 auto_load_scripts_for_objfile.
10485 (collect_matching_scripts_data): Change type of language member to
10486 struct extension_language_defn *.
10487 (auto_load_info_scripts): Change type of language arg to
10488 struct extension_language_defn *.
10489 (unsupported_script_warning_print): New function.
10490 (script_not_found_warning_print): Make static.
10491 (_initialize_auto_load): Rewrite construction of scripts-directory
10492 help.
10493 * auto-load.h (struct objfile): Add forward decl.
10494 (struct script_language): Delete.
10495 (struct auto_load_pspace_info): Add forward decl.
10496 (struct extension_language_defn): Add forward decl.
10497 (maybe_add_script): Delete.
10498 (auto_load_objfile_script): Declare.
10499 (script_not_found_warning_print): Delete.
10500 (auto_load_info_scripts): Update prototype.
10501 (auto_load_gdb_scripts_enabled): Declare.
10502 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10503 auto_load_python_scripts_enabled and made public.
10504 (script_language_python): Delete, moved to python.c.
10505 (gdbpy_script_language_defn): Delete.
10506 (info_auto_load_python_scripts): Update to use
10507 extension_language_python.
10508
10509 * breakpoint.c (condition_command): Replace call to
10510 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10511 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10512 with call to breakpoint_ext_lang_cond_says_stop.
10513 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10514 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10515 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10516 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10517 New arg slang.
10518 (local_setattro): Print name of extension language with existing
10519 stop condition.
10520
10521 * valprint.c (val_print, value_print): Update to call
10522 apply_ext_lang_val_pretty_printer.
10523 * cp-valprint.c (cp_print_value): Update call to
10524 apply_ext_lang_val_pretty_printer.
10525 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10526 (gdbpy_apply_val_pretty_printer): Renamed from
10527 apply_val_pretty_printer. New arg extlang.
10528 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10529
10530 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10531 extension language API.
10532 * cli/cli-script.c (execute_control_command): Update to call
10533 eval_ext_lang_from_control_command.
10534
10535 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10536 enum ext_lang_bt_status values. Update call to
10537 apply_ext_lang_frame_filter.
10538 (mi_cmd_stack_list_locals): Ditto.
10539 (mi_cmd_stack_list_args): Ditto.
10540 (mi_cmd_stack_list_variables): Ditto.
10541 * mi/mi-main.c: Delete #include "python/python-internal.h".
10542 Add #include "extension.h".
10543 (mi_cmd_list_features): Replace reference to python internal variable
10544 gdb_python_initialized with call to ext_lang_initialized_p.
10545
10546 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10547 Update to use enum ext_lang_frame_args. Update to call
10548 apply_ext_lang_frame_filter.
10549 * python/py-framefilter.c (extract_sym): Update to use enum
10550 ext_lang_bt_status.
10551 (extract_value, py_print_type, py_print_value): Ditto.
10552 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10553 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10554 (py_print_frame): Ditto.
10555 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10556 New arg extlang. Update to use enum ext_lang_bt_status.
10557
10558 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10559 finish_python_initialization. Replace with call to
10560 finish_ext_lang_initialization.
10561
10562 * typeprint.c (do_free_global_table): Update to call
10563 free_ext_lang_type_printers.
10564 (create_global_typedef_table): Update to call
10565 start_ext_lang_type_printers.
10566 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10567 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10568 (type_print_options): Change type of global_printers from "void *"
10569 to "struct ext_lang_type_printers *".
10570
10571 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10572 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10573 (gdbpy_preserve_values): Renamed from preserve_python_values.
10574 New arg extlang.
10575 (!HAVE_PYTHON, preserve_python_values): Delete.
10576
10577 * utils.c (quit_flag): Delete, moved to extension.c.
10578 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10579 extension.c.
10580
10581 * eval.c: Delete #include "python/python.h".
10582 * main.c: Delete #include "python/python.h".
10583
10584 * defs.h: Update comment.
10585
6af79985
JB
105862014-02-06 Joel Brobecker <brobecker@adacore.com>
10587
10588 GDB 7.7 released.
10589
12c5175d
MK
105902014-02-05 Mark Kettenis <kettenis@gnu.org>
10591
10592 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10593 defined.
10594
8dc5b319
YQ
105952014-02-05 Yao Qi <yao@codesourcery.com>
10596
10597 * remote.c (remote_pass_signals): Remove local 'buf' and use
10598 rs->buf.
10599 (remote_program_signals): Likewise.
10600
de7b2893
YQ
106012014-02-05 Yao Qi <yao@codesourcery.com>
10602
10603 * ctf.c: Include "inferior.h" and "gdbthread.h".
10604 (CTF_PID): A new macro.
10605 (ctf_open): Call inferior_appeared and add_thread_silent.
10606 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10607 (ctf_thread_alive): New function.
10608 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10609
66d032ac
YQ
106102014-02-05 Yao Qi <yao@codesourcery.com>
10611
10612 Revert this patch:
10613
10614 2013-05-24 Yao Qi <yao@codesourcery.com>
10615
10616 * tracepoint.c (TFILE_PID): Remove.
10617 (tfile_open): Don't add thread and inferior.
10618 (tfile_close): Don't set 'inferior_ptid'. Don't call
10619 exit_inferior_silent.
10620 (tfile_thread_alive): Remove.
10621 (init_tfile_ops): Don't set field 'to_thread_alive' of
10622 tfile_ops.
10623
f4ccffad
CE
106242014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10625
10626 * remote.c (remote_start_remote): Call remote_check_symbols even
10627 if only symbol-file (not file) has been given.
10628
591a12a1
UW
106292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10630
10631 * gdbarch.sh (skip_entrypoint): New callback.
10632 * gdbarch.c, gdbarch.h: Regenerate.
10633 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10634 * infrun.c (fill_in_stop_func): Likewise.
10635 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10636 (ppc_elfv2_elf_make_msymbol_special): New function.
10637 (ppc_elfv2_skip_entrypoint): Likewise.
10638 (ppc_linux_init_abi): Install them for ELFv2.
10639
cc0e89c5
UW
106402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10641
10642 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10643 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10644 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10645 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10646 structures returned in GPRs.
10647
52f548e4
UW
106482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10649
10650 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10651 offset to the stack parameter list for the ELFv2 ABI.
10652
d4094b6a
UW
106532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10654
10655 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10656 set_gdbarch_convert_from_func_ptr_addr and
10657 set_gdbarch_elf_make_msymbol_special for ELFv1.
10658 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10659 function descriptors on ELFv1.
10660 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10661 set up r12 at function entry.
10662
cd453cd0
UW
106632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10664
10665 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10666 (struct gdbarch_tdep): New member elf_abi.
10667
10668 * rs6000-tdep.c: Include "elf/ppc64.h".
10669 (rs6000_gdbarch_init): Detect ELF ABI version.
10670
0ff3e01f
UW
106712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10672
10673 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10674 within a register pair holding a DFP 128-bit value on little-endian.
10675 (ppc64_sysv_abi_return_value_base): Likewise.
10676 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10677 (dfp_pseudo_register_write): Likewise.
10678
5b757e5d
UW
106792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10680
10681 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10682 offset on little-endian when passing _Decimal32.
10683 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10684
084ee545
UW
106852014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10686
10687 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10688 of the overlapped FP register within the VSX register on little-
10689 endian platforms.
10690 (efpr_pseudo_register_write): Likewise.
10691
d63167af
UW
106922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10693
10694 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10695 offset on little-endian when passing small structures.
10696
e765b44c
UW
106972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10698
10699 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10700 (struct ppc64_sysv_argpos): New data structure.
10701 (ppc64_sysv_abi_push_float): Remove.
10702 (ppc64_sysv_abi_push_val): New function.
10703 (ppc64_sysv_abi_push_integer): Likewise.
10704 (ppc64_sysv_abi_push_freg): Likewise.
10705 (ppc64_sysv_abi_push_vreg): Likewise.
10706 (ppc64_sysv_abi_push_param): Likewise.
10707 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10708 (ppc64_sysv_abi_return_value_base): New function.
10709 (ppc64_sysv_abi_return_value): Refactor to use it.
10710
36c24d95
UW
107112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10712
10713 * NEWS: Document new target powerpc64le-*-linux*.
10714
26fd9228
MK
107152014-02-04 Mark Kettenis <kettenis@gnu.org>
10716
10717 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10718 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10719 core dumps.
10720 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10721 register set used in ELF core dumps. Add floating-point register set.
10722
c5bb7362
KB
107232014-02-03 Kevin Buettner <kevinb@redhat.com>
10724
74228e77 10725 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10726 dwarf2_to_gdb[] table using symbolic constants. Adjust
10727 penultimate entry from number representing the PC register
10728 to symbolic constant representing the MDR register. Add
10729 constant for the PC register to the end of the table.
10730
af09351e
MK
107312014-02-03 Mark Kettenis <kettenis@gnu.org>
10732
10733 * bsd-kvm.c: Include <sys/param.h>
10734
8507e05d
MK
107352014-02-03 Mark Kettenis <kettenis@gnu.org>
10736
10737 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10738
ae56bfb8
JB
107392014-01-31 Joel Brobecker <brobecker@adacore.com>
10740
10741 * ada-lang.h (clear_ada_sym_cache): Delete.
10742
718ee4dc
UW
107432014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10744
10745 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10746
401e27fd
JM
107472014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10748
10749 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10750 the sigreturn register save area only if the syscall is
10751 sigreturn.
10752
a7c88acd
JB
107532014-01-29 Joel Brobecker <brobecker@adacore.com>
10754
10755 * valops.c (value_slice): Minor reformatting.
10756
fa0079ea
UW
107572014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10758
10759 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10760
c6044dd1
JB
107612014-01-28 Joel Brobecker <brobecker@adacore.com>
10762
10763 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10764 New static globals.
10765 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10766 (ada_ignore_descriptive_types_p): New static global.
10767 (find_parallel_type_by_descriptive_type): Return immediately
10768 if ada_ignore_descriptive_types_p is set.
10769 (_initialize_ada_language): Register new commands "maintenance
10770 set ada", "maintenance show ada", "maintenance set ada
10771 ignore-descriptive-types" and "maintenance show ada
10772 ignore-descriptive-types".
10773 * NEWS: Add entry for new "maint ada set/show
10774 ignore-descriptive-types" commands.
10775
568e808b
MM
107762014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10777
10778 * record-btrace.c (record_btrace_close): Call btrace_teardown
10779 for all threads.
10780
467d141b
JB
107812014-01-27 Joel Brobecker <brobecker@adacore.com>
10782
10783 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10784 "ui-out.h".
10785
fb151210
JB
107862014-01-27 Joel Brobecker <brobecker@adacore.com>
10787
10788 * ada-typeprint (type_is_full_subrange_of_target_type):
10789 New function.
10790 (print_range): Add parameter bounds_prefered_p. If not set,
10791 try printing range types using the name of their base type.
10792 (print_range_type): Add parameter bounds_prefered_p.
10793 Use it in call to print_range.
10794 (print_array_type, ada_print_type): Update calls to print_range
10795 and print_range_type.
10796
aba02109
JB
107972014-01-27 Joel Brobecker <brobecker@adacore.com>
10798
10799 * ada-typeprint.c (print_array_type, print_choices, print_range)
10800 (print_range_bound, print_dynamic_range_bound, print_range_type):
10801 Remove declaration.
10802
e62e21fd
JB
108032014-01-27 Joel Brobecker <brobecker@adacore.com>
10804
10805 * ada-typeprint.c (print_range): Add missing empty line
10806 after local declaration.
10807
859cf5d1
JB
108082014-01-27 Joel Brobecker <brobecker@adacore.com>
10809
10810 * ada-valprint.c (print_optional_low_bound): Get index_type's
10811 target type for as long as it is a TYPE_CODE_RANGE.
10812
25790f6f
JB
108132014-01-27 Joel Brobecker <brobecker@adacore.com>
10814
10815 * procfs.c (procfs_make_note_section): Remove assertion and
10816 associated comment.
10817
6b6aa828
YQ
108182014-01-24 Yao Qi <yao@codesourcery.com>
10819
10820 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10821 * corelow.c (get_core_siginfo): Likewise.
10822
5d6df423
YQ
108232014-01-24 Yao Qi <yao@codesourcery.com>
10824
10825 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10826 ULONGEST. Don't check 'len' is negative.
10827 (remote_write_bytes): Change type of 'len' to ULONGEST.
10828
83b645b8
TT
108292014-01-23 Tom Tromey <tromey@redhat.com>
10830
10831 PR python/16485:
10832 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10833 Handle exception from frame.block.
10834 (FrameVars.fetch_frame_locals): Likewise.
10835
0740f8d8
TT
108362014-01-23 Tom Tromey <tromey@redhat.com>
10837
10838 PR python/16487:
10839 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10840 on a NULL pointer. Move "goto error" to correct place.
10841
21909fa1
TT
108422014-01-23 Tom Tromey <tromey@redhat.com>
10843
10844 PR python/16491:
10845 * python/py-framefilter.c (apply_frame_filter): Call
10846 ensure_python_env after computing gdbarch.
10847
17fde6d0
YQ
108482014-01-23 Yao Qi <yao@codesourcery.com>
10849
10850 * target.c (raw_memory_xfer_partial): Change argument type
10851 from void * to gdb_byte *.
10852 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10853
87ce2a04
DE
108542014-01-22 Doug Evans <dje@google.com>
10855
10856 New gdbserver option --debug-format=timestamp.
10857 * NEWS: Mention it.
10858
237b092b
AA
108592014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10860
10861 * syscalls/s390x-linux.xml: New file.
10862 * syscalls/s390-linux.xml: New file.
10863 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10864 (XML_SYSCALL_FILENAME_S390X): Likewise.
10865 (op_svc): New enum value for SVC opcode.
10866 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10867 (s390_linux_get_syscall_number): New function.
10868 (s390_gdbarch_init): Register '*get_syscall_number' and the
10869 syscall xml file name.
10870 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10871 "s390-linux.xml" and "s390x-linux.xml".
10872 * NEWS: Announce new feature.
10873
54bff650
BS
108742014-01-22 Baruch Siach <baruch@tkos.co.il>
10875
10876 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10877
14e361d7
PA
108782014-01-22 Pedro Alves <palves@redhat.com>
10879
10880 * xtensa-config.c: Include defs.h.
10881
46bbb3ed
JB
108822014-01-22 Joel Brobecker <brobecker@adacore.com>
10883
10884 * common/common-utils.h: Add "ARI:" comment beside __func__
10885 reference.
10886
3a80edfc
JB
108872014-01-22 Joel Brobecker <brobecker@adacore.com>
10888
10889 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10890 documentation a bit.
10891
4869db5e
RM
108922014-01-21 Roland McGrath <mcgrathr@google.com>
10893
10894 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10895 * configure: Regenerate.
10896 * aclocal.m4: Regenerate.
10897 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10898 New substituted variables.
10899 (install-strip): New target.
10900 (INSTALL_SCRIPT): New substituted variable.
10901 (FLAGS_TO_PASS): Add it.
10902 (install-only): Use $(INSTALL_SCRIPT) rather than
10903 $(INSTALL_PROGRAM) for gcore.
10904
9ea4267d
TT
109052014-01-20 Tom Tromey <tromey@redhat.com>
10906
10907 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10908 together.
10909
1f2bdf09
TT
109102014-01-20 Tom Tromey <tromey@redhat.com>
10911
10912 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10913 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10914 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10915 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10916 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10917 (struct cmd_list_element) <flags>: Remove.
10918 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10919 doc_allocated>: New fields.
10920 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10921 bitfields.
10922 * maint.c (maintenance_do_deprecate): Update.
10923 * top.c (execute_command): Update.
10924
e671835b
BS
109252014-01-20 Baruch Siach <baruch@tkos.co.il>
10926
10927 * xtensa-linux-nat.c: Include asm/ptrace.h.
10928
50367cd2
IB
109292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10930
10931 * Makefile.in (SFILES): Add d-support.c.
10932 (COMMON_OBS): Add d-support.o.
10933 * d-lang.h (d_parse_symbol): Add comment, now defined in
10934 d-support.c.
10935 * d-lang.c (parse_call_convention)
10936 (parse_attributes, parse_function_types)
10937 (parse_function_args, parse_type, parse_identifier)
10938 (call_convention_p, d_parse_symbol): Move functions to ...
10939 * d-support.c: ... New file.
10940
ec9f644a
IB
109412014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10942
10943 * d-lang.h (d_parse_symbol): Add declaration.
10944 * d-lang.c (extract_identifiers)
10945 (extract_type_info): Remove functions.
10946 (parse_call_convention, parse_attributes)
10947 (parse_function_types, parse_function_args)
10948 (parse_type, parse_identifier, call_convention_p)
10949 (d_parse_symbol): New functions.
10950 (d_demangle): Use d_parse_symbol to demangle D symbols.
10951
94b1b47e
IB
109522014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10953
10954 * d-lang.h (struct builtin_d_type): New data type.
10955 (builtin_d_type): Add declaration.
10956 * d-lang.c (d_language_arch_info, build_d_types)
10957 (builtin_d_type): New functions.
10958 (enum d_primitive_types): New data type.
10959 (d_language_defn): Change c_language_arch_info to
10960 d_language_arch_info.
10961 (d_type_data): New static variable.
10962 (_initialize_d_language): Initialize d_type_data.
10963
63778547
IB
109642014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10965
10966 * d-lang.h (d_main_name): Add declaration.
10967 * d-lang.c (d_main_name): New function.
10968 * symtab.c (find_main_name): Add call to d_main_name.
10969
3271ba66
IB
109702014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10971
10972 * d-lang.c (d_language_defn): Change macro_expansion_c to
10973 macro_expansion_no.
10974
d36b3012
IB
109752014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10976
10977 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10978
c90a6fb7
SDJ
109792014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10980
10981 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10982 gdb_exception" declaration.
10983 * remote.c (getpkt_or_notif_sane): Likewise.
10984
749234e5
DE
109852014-01-17 Doug Evans <dje@google.com>
10986
10987 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10988 function, contents of dirnames_to_char_ptr_vec_append moved here.
10989 (delim_string_to_char_ptr_vec): New function.
10990 (dirnames_to_char_ptr_vec_append): Rewrite.
10991 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10992
df049a58
DE
109932014-01-17 Doug Evans <dje@google.com>
10994
10995 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10996 and moved here ...
10997 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10998 #include "common-utils.h".
10999 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11000 * common/vec.h (VEC_ASSERT_PASS): Update.
11001 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11002 (MACH_CHECK_ERROR): Update.
11003
69f97648
SM
110042014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11005
11006 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11007 comments.
11008 * gdbarch.h: Regenerate.
11009
98b1cfdc
TT
110102014-01-16 Tom Tromey <tromey@redhat.com>
11011
11012 * value.c (struct value) <regnum>: Move earlier.
11013
77a19445
TT
110142014-01-16 Tom Tromey <tromey@redhat.com>
11015
11016 * remote.c (extended_remote_create_inferior): Rename from
11017 extended_remote_create_inferior_1. Add "ops" argument. Remove
11018 old implementation.
11019
62261490
PA
110202014-01-16 Pedro Alves <palves@redhat.com>
11021
11022 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11023 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11024 the backchain.
11025
4d65956b
DE
110262014-01-16 Doug Evans <dje@google.com>
11027
11028 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11029
52834460
MM
110302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11031
11032 * btrace.h (btrace_thread_flag): New.
11033 (struct btrace_thread_info) <flags>: New.
11034 * record-btrace.c (record_btrace_resume_thread)
11035 (record_btrace_find_thread_to_move, btrace_step_no_history)
11036 (btrace_step_stopped, record_btrace_start_replaying)
11037 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11038 (record_btrace_find_resume_thread): New.
11039 (record_btrace_resume, record_btrace_wait): Extend.
11040 (record_btrace_can_execute_reverse): New.
11041 (record_btrace_open): Fail in non-stop mode.
11042 (record_btrace_set_replay): Split into this, ...
11043 (record_btrace_stop_replaying): ... this, ...
11044 (record_btrace_clear_histories): ... and this.
11045 (init_record_btrace_ops): Init to_can_execute_reverse.
11046 * NEWS: Announce it.
11047
118e6252
MM
110482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11049
11050 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11051 (forward_target_decr_pc_after_break)
11052 (target_decr_pc_after_break): New.
11053 * target.c (forward_target_decr_pc_after_break)
11054 (target_decr_pc_after_break): New.
11055 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11056 instead of gdbarch_decr_pc_after_break.
11057 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11058 instead of gdbarch_decr_pc_after_break.
11059 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11060 instead of gdbarch_decr_pc_after_break.
11061 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11062 instead of gdbarch_decr_pc_after_break.
11063 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11064 instead of gdbarch_decr_pc_after_break.
11065 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11066 instead of gdbarch_decr_pc_after_break.
11067
6e07b1d2
MM
110682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11069
11070 * btrace.c: Include regcache.h.
11071 (btrace_add_pc): New.
11072 (btrace_enable): Call btrace_add_pc.
11073 (btrace_is_empty): New.
11074 * btrace.h (btrace_is_empty): New.
11075 * record-btrace.c (require_btrace, record_btrace_info): Call
11076 btrace_is_empty.
11077
969c39fb
MM
110782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11079
11080 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11081 Support delta reads.
11082 (linux_disable_btrace): Change return type.
11083 * common/linux-btrace.h (linux_read_btrace): Change parameters
11084 and return type to allow error reporting. Update users.
11085 (linux_disable_btrace): Change return type. Update users.
11086 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11087 New.
11088 (btrace_error): New.
11089 (btrace_block) <begin>: Comment on BEGIN == 0.
11090 * btrace.c (btrace_compute_ftrace): Start from the end of
11091 the current trace.
11092 (btrace_stitch_trace, btrace_clear_history): New.
11093 (btrace_fetch): Read delta trace, return if replaying.
11094 (btrace_clear): Move clear history code to btrace_clear_history.
11095 (parse_xml_btrace): Throw an error if parsing failed.
11096 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11097 and return type to allow error reporting.
11098 (target_read_btrace): Change parameters and return type to allow
11099 error reporting.
11100 * target.c (target_read_btrace): Update.
11101 * remote.c (remote_read_btrace): Support delta reads. Pass
11102 errors on.
11103 * NEWS: Announce it.
11104
0b722aec
MM
111052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11106
11107 * record.h (record_btrace_frame_unwind)
11108 (record_btrace_tailcall_frame_unwind): New declarations.
11109 * dwarf2-frame: Include record.h
11110 (dwarf2_frame_cfa): Throw an error for btrace frames.
11111 * record-btrace.c: Include hashtab.h.
11112 (btrace_get_bfun_name): New.
11113 (btrace_call_history): Call btrace_get_bfun_name.
11114 (struct btrace_frame_cache): New.
11115 (bfcache): New.
11116 (bfcache_hash, bfcache_eq, bfcache_new): New.
11117 (btrace_get_frame_function): New.
11118 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11119 (record_btrace_frame_this_id): Compute own id.
11120 (record_btrace_frame_prev_register): Provide PC, throw_error
11121 for all other registers.
11122 (record_btrace_frame_sniffer): Detect btrace frames.
11123 (record_btrace_tailcall_frame_sniffer): New.
11124 (record_btrace_frame_dealloc_cache): New.
11125 (record_btrace_frame_unwind): Add new functions.
11126 (record_btrace_tailcall_frame_unwind): New.
11127 (_initialize_record_btrace): Allocate cache.
11128 * btrace.c (btrace_clear): Call reinit_frame_cache.
11129 * NEWS: Announce it.
11130
066ce621
MM
111312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11132
11133 * record-btrace.c (record_btrace_set_replay)
11134 (record_btrace_goto_begin, record_btrace_goto_end)
11135 (record_btrace_goto): New.
11136 (init_record_btrace_ops): Initialize them.
11137 * NEWS: Announce it.
11138
e2887aa3
MM
111392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11140
11141 * record-btrace.c (record_btrace_find_new_threads)
11142 (record_btrace_thread_alive): New.
11143 (init_record_btrace_ops): Initialize to_find_new_threads and
11144 to_thread_alive.
11145
b2f4cfde
MM
111462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11147
11148 * record-btrace.c (record_btrace_resume): New.
11149 (record_btrace_wait): New.
11150 (init_record_btrace_ops): Initialize to_wait and to_resume.
11151
633785ff
MM
111522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11153
11154 * record-btrace.c (record_btrace_xfer_partial)
11155 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11156 (record_btrace_allow_memory_access): New.
11157 (init_record_btrace_ops): Initialize new methods.
11158 * target.c (raw_memory_xfer_partial): Bail out if target reports
11159 that this memory is not available.
11160
3db08215
MM
111612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11162
11163 * target.h (target_ops) <to_insert_breakpoint>
11164 <to_remove_breakpoint>: Add target_ops parameter.
11165 (forward_target_insert_breakpoint): New.
11166 (forward_target_remove_breakpoint): New.
11167 (memory_remove_breakpoint, memory_insert_breakpoint):
11168 Add target_ops parameter.
11169 * target.c (target_insert_breakpoint): Split into this and ...
11170 (forward_target_insert_breakpoint): ... this.
11171 (target_remove_breakpoint): Split into this and ...
11172 (forward_target_remove_breakpoint): ... this.
11173 (debug_to_insert_breakpoint): Add target_ops parameter.
11174 Call forward_target_insert_breakpoint.
11175 (debug_to_remove_breakpoint): Add target_ops parameter.
11176 Call forward_target_remove_breakpoint.
11177 (update_current_target): Do not inherit or default to_insert_breakpoint
11178 and to_remove_breakpoint.
11179 * corelow.c (ignore): Add target_ops parameter.
11180 * exec.c (ignore): Add target_ops parameter.
11181 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11182 Add target_ops parameter.
11183 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11184 Add target_ops parameter.
11185 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11186 Add target_ops parameter.
11187 * record-full.c (record_full_beneath_to_insert_breakpoint)
11188 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11189 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11190 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11191 (record_full_core_remove_breakpoint): Add target_ops parameter.
11192 Update users.
11193 (record_full_beneath_to_insert_breakpoint_ops)
11194 (record_full_beneath_to_remove_breakpoint_ops)
11195 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11196 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11197 tmp_to_remove_breakpoint_ops,
11198 record_full_beneath_to_insert_breakpoint_ops, and
11199 record_full_beneath_to_remove_breakpoint_ops.
11200 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11201 (m32r_remove_breakpoint): Add target_ops parameter.
11202 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11203 Add target_ops parameter.
11204 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11205 Add target_ops parameter.
11206
cecac1ab
MM
112072014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11208 Markus Metzger <markus.t.metzger@intel.com>
11209
11210 * record-btrace.c: Include frame-unwind.h.
11211 (record_btrace_frame_unwind_stop_reason)
11212 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11213 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11214 New.
11215 (init_record_btrace_ops): Install it.
11216
824344ca
MM
112172014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11218
11219 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11220 get_prev_frame_1.
11221
32261e52
MM
112222014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11223
11224 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11225 earlier.
11226
ea001bdc
MM
112272014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11228
11229 * frame-unwind.c: Include target.h.
11230 (frame_unwind_try_unwinder): New function with code from ...
11231 (frame_unwind_find_by_frame): ... here. New variable
11232 unwinder_from_target, call also target_get_unwinder)
11233 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11234 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11235 * target.h (struct target_ops): New fields to_get_unwinder and
11236 to_get_tailcall_unwinder.
11237 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11238
1f3ef581
MM
112392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11240
11241 * record-btrace.c (record_btrace_fetch_registers)
11242 (record_btrace_store_registers)
11243 (record_btrace_to_prepare_to_store): New.
11244 (init_record_btrace_ops): Add the above.
11245
f32dbf8c
MM
112462014-01-16 Tom Tromey <tromey@redhat.com>
11247
11248 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11249 * target.h (struct target_ops) <to_prepare_to_store>: Add
11250 argument.
11251 (target_prepare_to_store): Add argument.
11252 * target.c (debug_to_prepare_to_store): Add argument.
11253 (update_current_target): Update.
11254 * remote.c (remote_prepare_to_store): Add 'self' argument.
11255 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11256 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11257 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11258 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11259 argument.
11260 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11261 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11262 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11263 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11264 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11265
07bbe694
MM
112662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11267
11268 * btrace.h (replay) <replay>: New.
11269 (btrace_is_replaying): New.
11270 * btrace.c (btrace_clear): Free replay iterator.
11271 (btrace_is_replaying): New.
11272 * record-btrace.c (record_btrace_is_replaying): New.
11273 (record_btrace_info): Print insn number if replaying.
11274 (record_btrace_insn_history): Start at replay position.
11275 (record_btrace_call_history): Start at replay position.
11276 (init_record_btrace_ops): Init to_record_is_replaying.
11277
0688d04e
MM
112782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11279
11280 * record-btrace.c (record_btrace_insn_history_range): Include
11281 end.
11282 (record_btrace_insn_history_from): Adjust range.
11283 (record_btrace_call_history_range): Include
11284 end.
11285 (record_btrace_call_history_from): Adjust range.
11286 * NEWS: Announce changes.
11287
8710b709
MM
112882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11289
11290 * record.h (enum record_print_flag)
11291 <record_print_indent_calls>: New.
11292 * record.c (get_call_history_modifiers): Recognize /c modifier.
11293 (_initialize_record): Document /c modifier.
11294 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11295 Reorder fields. Optionally indent the function name. Update
11296 all users.
11297 * NEWS: Announce changes.
11298
d0fa7535
MM
112992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11300
11301 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11302
5de9129b
MM
113032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11304
11305 * btrace.c (ftrace_new_function): Start counting at one.
11306 * record-btrace.c (record_btrace_info): Adjust number of calls
11307 and insns.
11308 * NEWS: Announce it.
11309
7acbe133
MM
113102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11311
11312 * record-btrace.c (btrace_call_history_insn_range): Print
11313 insn range as [begin, end].
11314
23a7fe75
MM
113152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11316
11317 * btrace.h (struct btrace_func_link): New.
11318 (enum btrace_function_flag): New.
11319 (struct btrace_inst): Rename to ...
11320 (struct btrace_insn): ...this. Update all users.
11321 (struct btrace_func) <ibegin, iend>: Remove.
11322 (struct btrace_func_link): New.
11323 (struct btrace_func): Rename to ...
11324 (struct btrace_function): ...this. Update all users.
11325 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11326 (number, level, flags>: New.
11327 (struct btrace_insn_iterator): Rename to ...
11328 (struct btrace_insn_history): ...this.
11329 Update all users.
11330 (struct btrace_insn_iterator, btrace_call_iterator): New.
11331 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11332 (struct btrace_target_info) <begin, end, level>
11333 <insn_history, call_history>: New.
11334 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11335 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11336 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11337 (btrace_call_number, btrace_call_begin, btrace_call_end)
11338 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11339 (btrace_find_function_by_number, btrace_set_insn_history)
11340 (btrace_set_call_history): New.
11341 * btrace.c (btrace_init_insn_iterator)
11342 (btrace_init_func_iterator, compute_itrace): Remove.
11343 (ftrace_print_function_name, ftrace_print_filename)
11344 (ftrace_skip_file): Change
11345 parameter to const.
11346 (ftrace_init_func): Remove.
11347 (ftrace_debug): Use new btrace_function fields.
11348 (ftrace_function_switched): Also consider gaining and
11349 losing symbol information).
11350 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11351 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11352 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11353 New.
11354 (ftrace_new_function): Move. Remove debug print.
11355 (ftrace_update_lines, ftrace_update_insns): New.
11356 (ftrace_update_function): Check for call, ret, and jump.
11357 (compute_ftrace): Renamed to ...
11358 (btrace_compute_ftrace): ...this. Rewritten to compute call
11359 stack.
11360 (btrace_fetch, btrace_clear): Updated.
11361 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11362 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11363 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11364 (btrace_call_number, btrace_call_begin, btrace_call_end)
11365 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11366 (btrace_find_function_by_number, btrace_set_insn_history)
11367 (btrace_set_call_history): New.
11368 * record-btrace.c (require_btrace): Use new btrace thread
11369 info fields.
11370 (record_btrace_info, btrace_insn_history)
11371 (record_btrace_insn_history, record_btrace_insn_history_range):
11372 Use new btrace thread info fields and new iterator.
11373 (btrace_func_history_src_line): Rename to ...
11374 (btrace_call_history_src_line): ...this. Use new btrace
11375 thread info fields.
11376 (btrace_func_history): Rename to ...
11377 (btrace_call_history): ...this. Use new btrace thread info
11378 fields and new iterator.
11379 (record_btrace_call_history, record_btrace_call_history_range):
11380 Use new btrace thread info fields and new iterator.
11381
8372a7cb
MM
113822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11383
11384 * frame.h (frame_id_build_unavailable_stack_special): New.
11385 * frame.c (frame_id_build_unavailable_stack_special): New.
11386
c2170eef
MM
113872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11388
11389 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11390 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11391 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11392 to gdbarch.
11393 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11394 (i386_insn_is_jump, i386_jmp_p): New.
11395 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11396 insn_is_jump to gdbarch.
11397 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11398 * gdbarch.h: Regenerated.
11399 * gdbarch.c: Regenerated.
11400 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11401 (default_insn_is_jump): New.
11402 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11403 (default_insn_is_jump): New.
11404
864089d2
MM
114052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11406
11407 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11408 Change to ...
11409 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11410 (btrace_read_type) <btrace_read_new>: Change to ...
11411 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11412
ed9edfb5
MM
114132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11414
11415 * common/linux-btrace.c (linux_read_btrace): Free trace from
11416 previous iteration.
11417
fbcbc3fd
DE
114182014-01-15 Doug Evans <dje@google.com>
11419
11420 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11421 uint32_t.
11422
3d548a53
TT
114232014-01-15 Tom Tromey <tromey@redhat.com>
11424
11425 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11426 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11427 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11428 (set_objfile_main_name): New function.
11429 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11430 language_of_main>: New fields.
11431 (set_objfile_main_name): Declare.
11432 * symtab.c (find_main_name): Loop over objfiles to find the main
11433 name and language.
11434 (set_main_name): Now static.
11435 (get_main_info): Add comment.
11436 * symtab.h (set_main_name): Don't declare.
11437
32ac0d11
TT
114382014-01-15 Tom Tromey <tromey@redhat.com>
11439
11440 * symtab.c (main_progspace_key): New global.
11441 (struct main_info): New.
11442 (name_of_main, language_of_main): Remove.
11443 (get_main_info, main_info_cleanup): New function.
11444 (set_main_name, main_name, main_language): Use get_main_info.
11445 (_initialize_symtab): Initialize main_progspace_key.
11446
9e6c82ad
TT
114472014-01-15 Tom Tromey <tromey@redhat.com>
11448
11449 * dbxread.c (process_one_symbol): Update.
11450 * dwarf2read.c (read_partial_die): Update.
11451 * symfile.c (set_initial_language): Call main_language.
11452 * symtab.c (language_of_main): Now static.
11453 (set_main_name): Add 'lang' parameter.
11454 (find_main_name): Update.
11455 (main_language): New function.
11456 (symtab_observer_executable_changed): Update.
11457 * symtab.h (set_main_name): Update.
11458 (language_of_main): Remove.
11459 (main_language): Declare.
11460
6ef55de7
TT
114612014-01-15 Tom Tromey <tromey@redhat.com>
11462
11463 * symfile.c (init_entry_point_info): Use new "initialized" field.
11464 Update.
11465 * objfiles.h (struct entry_point) <initialized>: New field.
11466 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11467 (struct objfile) <ei>: ...here. Remove.
11468 * objfiles.c (entry_point_address_query): Update.
11469
53eddfa6
TT
114702014-01-15 Tom Tromey <tromey@redhat.com>
11471
11472 * objfiles.c (entry_point_address_query): Relocate entry point
11473 address.
11474 (objfile_relocate1): Do not relocate entry point address.
11475 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11476 <the_bfd_section_index>: New field.
11477 * symfile.c (init_entry_point_info): Find the entry point's
11478 section.
11479
d56e56aa
TT
114802014-01-15 Tom Tromey <tromey@redhat.com>
11481
11482 * solib-frv.c (enable_break): Use entry_point_address_query.
11483
33a97bbe
OJ
114842014-01-15 Omair Javaid <omair.javaid@linaro.org>
11485
11486 * NEWS: Add note on improved process record-replay on
11487 arm*-linux* targets.
11488
c6ec2b30
OJ
114892014-01-15 Omair Javaid <omair.javaid@linaro.org>
11490
11491 * arm-tdep.c (enum arm_record_result): New enum.
11492 (arm_record_unsupported_insn): New function.
11493 (arm_record_coproc_data_proc): Removed.
11494 (thumb2_record_ld_st_multiple): New function.
11495 (thumb2_record_ld_st_dual_ex_tbb): New function.
11496 (thumb2_record_data_proc_sreg_mimm): New function.
11497 (thumb2_record_ps_dest_generic): New function.
11498 (thumb2_record_branch_misc_cntrl): New function.
11499 (thumb2_record_str_single_data): New function.
11500 (thumb2_record_ld_mem_hints): New function.
11501 (thumb2_record_ld_word): New function.
11502 (thumb2_record_lmul_lmla_div): New function.
11503 (thumb2_record_decode_insn_handler): New function.
11504 (decode_insn): Add thumb32 instruction handlers.
11505
97dfe206
OJ
115062014-01-15 Omair Javaid <omair.javaid@linaro.org>
11507
11508 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11509 (struct arm_linux_record_tdep): Declare.
11510 (arm_canonicalize_syscall): New function.
11511 (arm_all_but_pc_registers_record): New function.
11512 (arm_linux_syscall_record): New function.
11513 (arm_linux_init_abi): Add syscall recording constructs.
11514 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11515 decoding. (arm_record_coproc_data_proc): Update arm syscall
11516 decoding.
11517 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11518 <arm_syscall_record>: New field.
11519 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11520 gdb_target_obs.
11521
9904a494
OJ
115222014-01-15 Omair Javaid <omair.javaid@linaro.org>
11523
11524 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11525 register for push instruction recording.
11526
f969241e
OJ
115272014-01-15 Omair Javaid <omair.javaid@linaro.org>
11528
11529 * arm-tdep.c (thumb_record_misc): Update to correct logical
11530 error while recording ldm, ldmia and pop instructions.
11531
bfbbec00
OJ
115322014-01-15 Omair Javaid <omair.javaid@linaro.org>
11533
11534 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11535
e40adcc9
PA
115362014-01-15 Pedro Alves <palves@redhat.com>
11537
11538 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11539 (go32_resume, go32_fetch_registers, store_register)
11540 (go32_store_registers, go32_prepare_to_store)
11541 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11542 (go32_create_inferior, go32_can_run, go32_terminal_init)
11543 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11544 declarations.
11545
b0a16e66
TT
115462014-01-15 Tom Tromey <tromey@redhat.com>
11547
11548 * target.h (async_callback_ftype): New typedef.
11549 (struct target_ops) <to_async>: Use it.
11550
bf7105a4
JB
115512014-01-15 Joel Brobecker <brobecker@adacore.com>
11552
11553 * python/py-value.c (get_field_type): Remove unnecessary curly
11554 braces for single-statement if block.
11555
a8f35c2e
JB
115562014-01-15 Joel Brobecker <brobecker@adacore.com>
11557
11558 * python/py-type.c (convert_field): Add missing empty line
11559 after declarations.
11560
bb4142cf
DE
115612014-01-14 Doug Evans <dje@google.com>
11562
11563 * symfile.h (expand_symtabs_matching): Renamed from
11564 expand_partial_symbol_names. Update prototype.
11565 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11566 * symfile.c (expand_symtabs_matching): Renamed from
11567 expand_partial_symbol_names. New args file_matcher, kind.
11568 Rename arg fun to symbol_matcher.
11569 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11570 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11571 ada_expand_partial_symbol_name.
11572 (ada_make_symbol_completion_list): Update to call
11573 expand_symtabs_matching.
11574 (ada_add_global_exceptions): Call expand_symtabs_matching.
11575 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11576 call map_symbol_filenames.
11577 * symtab.c (sources_info): Update to call map_symbol_filenames.
11578 (search_symbols): Call expand_symtabs_matching.
11579 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11580 (default_make_symbol_completion_list_break_on): Update to call
11581 expand_symtabs_matching.
11582 (make_source_files_completion_list): Update to call
11583 map_symbol_filenames.
11584
206f2a57
DE
115852014-01-14 Doug Evans <dje@google.com>
11586
11587 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11588 (expand_symtabs_symbol_matcher_ftype): New typedef.
11589 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11590 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11591 * symfile.c (expand_partial_symbol_names): Update to use
11592 expand_symtabs_symbol_matcher_ftype.
11593 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11594 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11595 Arg name_matcher renamed to symbol_matcher.
11596 * psymtab.c (recursively_search_psymtabs): Update to use
11597 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11598 sym_matcher.
11599 (expand_symtabs_matching_via_partial): Update to use
11600 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11601 Arg name_matcher renamed to symbol_matcher.
11602
540c2971
DE
116032014-01-14 Doug Evans <dje@google.com>
11604
11605 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11606 (map_partial_symbol_filenames): Ditto.
11607 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11608 (map_partial_symbol_filenames): Ditto.
11609 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11610 (map_partial_symbol_filenames): Ditto.
11611 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11612 (map_partial_symbol_filenames): Ditto.
11613 * symtab.c: Delete #include "psymtab.h".
11614
8213266a
PA
116152014-01-14 Pedro Alves <palves@redhat.com>
11616 Tom Tromey <tromey@redhat.com>
11617
11618 * infrun.c (use_displaced_stepping): Use find_record_target
11619 instead of RECORD_IS_USED.
11620 (adjust_pc_after_break): Use record_full_is_used instead of
11621 RECORD_IS_USED.
11622 * record-btrace.c (record_btrace_open): Call record_preopen
11623 instead of checking RECORD_IS_USED.
11624 * record-full.c (record_full_shortname)
11625 (record_full_core_shortname): New globals.
11626 (record_full_is_used): New function.
11627 (find_full_open): Call record_preopen instead of checking
11628 RECORD_IS_USED.
11629 (init_record_full_ops): Set the target's shortname to
11630 record_full_shortname.
11631 (init_record_full_core_ops): Set the target's shortname to
11632 record_full_core_shortname.
11633 * record-full.h (record_full_is_used): Declare.
11634 * record.c (find_record_target): Make extern.
11635 (record_preopen): New function.
11636 * record.h (RECORD_IS_USED): Delete macro.
11637 (find_record_target, record_preopen): Declare functions.
11638
7ec1862d
YQ
116392014-01-14 Yao Qi <yao@codesourcery.com>
11640
11641 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11642 'len''s type to ULONGEST.
11643 (core_xfer_shared_libraries_aix): Likewise.
11644 * gdbarch.c, gdbarch.h: Regenerated.
11645 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11646 Change type of 'len' to ULONGEST.
11647 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11648 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11649
dea80a27
YQ
116502014-01-14 Yao Qi <yao@codesourcery.com>
11651
11652 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11653 type of 'len' to ULONGEST.
11654 (linux_xfer_osdata_processgroups): Likewise.
11655 (linux_xfer_osdata_threads): Likewise.
11656 (linux_xfer_osdata_fds): Likewise.
11657 (linux_xfer_osdata_isockets): Likewise.
11658 (linux_xfer_osdata_shm): Likewise.
11659 (linux_xfer_osdata_sem): Likewise.
11660 (linux_xfer_osdata_msg): Likewise.
11661 (linux_common_xfer_osdata): Likewise.
11662 (struct osdata_type) <getter>: Likewise.
11663 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11664 the declaration.
11665
b55e14c7
YQ
116662014-01-14 Yao Qi <yao@codesourcery.com>
11667
11668 * target.h (target_xfer_partial_ftype): Update.
11669 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11670 ULONGEST.
11671 * aix-thread.c (aix_thread_xfer_partial): Change type of
11672 argument 'len' to ULONGEST.
11673 * auxv.c (procfs_xfer_auxv): Likewise.
11674 (ld_so_xfer_auxv): Likewise.
11675 (memory_xfer_auxv): Likewise.
11676 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11677 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11678 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11679 * corelow.c (core_xfer_partial): Likewise.
11680 * ctf.c (ctf_xfer_partial): Likewise.
11681 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11682 '%u'.
11683 (darwin_read_dyld_info): Likewise.
11684 (darwin_xfer_partial): Likewise.
11685 * exec.c (section_table_xfer_memory_partial): Likewise.
11686 (exec_xfer_partial): Likewise.
11687 * exec.h (section_table_xfer_memory_partial): Update
11688 declaration.
11689 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11690 instead of plongest.
11691 (gnu_xfer_partial): Likewise.
11692 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11693 (ia64_hpux_xfer_solib_got): Likewise.
11694 (ia64_hpux_xfer_partial): Likewise.
11695 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11696 * inf-ptrace.c (inf_ptrace_xfer_partial):
11697 * inf-ttrace.c (inf_ttrace_xfer_partial):
11698 * linux-nat.c (linux_xfer_siginfo): Likewise.
11699 (linux_nat_xfer_partial): Likewise.
11700 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11701 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11702 * monitor.c (monitor_xfer_memory): Likewise.
11703 (monitor_xfer_partial): Likewise.
11704 * procfs.c (procfs_xfer_partial): Likewise.
11705 * record-full.c (record_full_xfer_partial): Likewise.
11706 (record_full_core_xfer_partial): Likewise.
11707 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11708 instead of plongest.
11709 (gdbsim_xfer_partial): Likewise.
11710 * remote.c (remote_xfer_partial): Likewise.
11711 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11712 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11713 declaration.
11714 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11715 (rs6000_xfer_shared_libraries): Likewise.
11716 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11717 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11718 (sparc_xfer_partial): Likewise.
11719 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11720 (spu_xfer_partial): Likewise.
11721 * spu-multiarch.c (spu_xfer_partial): Likewise.
11722 * target.c (target_read_live_memory): Likewise.
11723 (memory_xfer_live_readonly_partial): Likewise.
11724 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11725 (target_xfer_partial, default_xfer_partial): Likewise.
11726 (current_xfer_partial): Likewise.
11727 * tracepoint.c (tfile_xfer_partial): Likewise.
11728 * windows-nat.c (windows_xfer_memory): Likewise. Call
11729 pulongest instead of plongest.
11730 (windows_xfer_partial): Likewise.
11731 (windows_xfer_shared_libraries): Likewise.
11732
05804640
YQ
117332014-01-14 Yao Qi <yao@codesourcery.com>
11734
11735 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11736 target_xfer_partial_ftype.
11737
b5b08fb4
SC
117382014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11739
11740 PR python/15464
11741 PR python/16113
11742 * valops.c (value_struct_elt_bitpos): New function
11743 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11744 object to 'None' if the field name is an empty string ("").
11745 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11746 attribute to look for a field when 'name' is 'None'.
11747 (get_field_type): New function
11748
13aaf454
DE
117492014-01-13 Doug Evans <dje@google.com>
11750
11751 PR symtab/16426
11752 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11753 (try_open_dwop_file): Ditto.
11754 * gdb_bfd.c: #include "vec.h".
11755 (bfdp): New typedef.
11756 (struct gdb_bfd_data): New member included_bfds.
11757 (gdb_bfd_unref): Unref all included bfds.
11758 (gdb_bfd_record_inclusion): New function.
11759 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11760
c2cec97c
TT
117612014-01-13 Tom Tromey <tromey@redhat.com>
11762
11763 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11764
78e5999d
TT
117652014-01-13 Tom Tromey <tromey@redhat.com>
11766
11767 * defs.h (use_windows): Remove.
11768 * gdb.c (main): Update.
11769 * main.c (captured_main, gdb_main): Update.
11770 * main.h (struct captured_main_args) <use_windows>: Remove.
11771 * top.c (use_windows): Remove.
11772
f2052bbe
TT
117732014-01-13 Tom Tromey <tromey@redhat.com>
11774
11775 * defs.h (deprecated_flush_hook): Remove.
11776
fde4f8ed
JK
117772014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11778
11779 PR threads/16216
11780 * linux-thread-db.c (try_thread_db_load): Add parameter
11781 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11782 (try_thread_db_load_from_pdir_1): Move it there from here.
11783 (try_thread_db_load_from_sdir): Update caller.
11784 (try_thread_db_load_from_dir): Move it there from here.
11785
bdf61915
PP
117862014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11787
11788 * regformats/regdat.sh: Always rewrite the register file.
11789
f71e1a8d
PA
117902014-01-13 Pedro Alves <palves@redhat.com>
11791
11792 * Makefile.in (CHECK_HEADERS): New variable.
11793 (check-headers:): New rule.
11794
42c85435
TT
117952014-01-13 Tom Tromey <tromey@redhat.com>
11796
11797 * cli/cli-setshow.c (do_set_command): Update.
11798 * defs.h (deprecated_set_hook): Remove.
11799 * top.c (deprecated_set_hook): Remove.
11800
f8de5129
PA
118012014-01-13 Pedro Alves <palves@redhat.com>
11802
11803 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11804 the tracepoint if the PC is a pseudo-register.
11805
fc270c35
TT
118062014-01-13 Tom Tromey <tromey@redhat.com>
11807
11808 * defs.h (XCALLOC): Remove.
11809 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11810 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11811 * dwarf2loc.c (allocate_piece_closure): Likewise.
11812 * elfread.c (elf_symfile_segments): Likewise.
11813 (elf_symfile_segments): Likewise.
11814 * gdbtypes.c (copy_type_recursive): Likewise.
11815 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11816 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11817 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11818 XCALLOC.
11819 * mt-tdep.c (mt_gdbarch_init): Likewise.
11820 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11821 XCALLOC.
11822 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11823 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11824 * registry.c (registry_alloc_data): Likewise.
11825 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11826 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11827 * serial.c (serial_fdopen_ops): Likewise.
11828 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11829 XCALLOC.
11830 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11831 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11832 not XCALLOC.
11833
70ba0933
TT
118342014-01-13 Tom Tromey <tromey@redhat.com>
11835
11836 * defs.h (XMALLOC): Remove.
11837 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11838 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11839 * cli-out.c (struct ui_out *): Likewise.
11840 * cli/cli-dump.c (add_dump_command): Likewise.
11841 (add_dump_command): Likewise.
11842 * complaints.c (get_complaints): Likewise.
11843 (find_complaint): Likewise.
11844 * dwarf2-frame.c (execute_cfa_program): Likewise.
11845 * dwarf2read.c (abbrev_table_read_table): Likewise.
11846 * gdbarch.sh: Likewise.
11847 * gdbarch.c: Rebuild.
11848 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11849 * interps.c (interp_new): Likewise.
11850 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11851 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11852 * mi/mi-console.c (mi_console_file_new): Likewise.
11853 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11854 * mi/mi-out.c (mi_out_new): Likewise.
11855 * mi/mi-parse.c (mi_parse): Likewise.
11856 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11857 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11858 * observer.c (xalloc_observer_list_node): Likewise.
11859 * regcache.c (regcache_xmalloc_1): Likewise.
11860 * reggroups.c (reggroup_new): Likewise.
11861 (_initialize_reggroup): Likewise.
11862 * registry.c (register_data_with_cleanup): Likewise.
11863 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11864 * ser-base.c (serial_ttystate): Likewise.
11865 * ser-mingw.c (make_pipe_state): Likewise.
11866 * ser-pipe.c (pipe_open): Likewise.
11867 * serial.c (serial_open): Likewise.
11868 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11869 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11870 (tui_alloc_win_info): Likewise.
11871 (tui_add_content_elements): Likewise.
11872 * tui/tui-file.c (tui_file_new): Likewise.
11873 * tui/tui-out.c (tui_out_new): Likewise.
11874 * ui-file.c (mem_file_new): Likewise.
11875 * ui-out.c (push_level): Likewise.
11876 (make_cleanup_ui_out_end): Likewise.
11877 (append_header_to_list): Likewise.
11878 (ui_out_new): Likewise.
11879 * user-regs.c (user_reg_add_builtin): Likewise.
11880
41bf6aca
TT
118812014-01-13 Tom Tromey <tromey@redhat.com>
11882
11883 * defs.h (XZALLOC): Remove.
11884 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11885 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11886 (get_ada_tasks_inferior_data): Likewise.
11887 * auto-load.c (get_auto_load_pspace_data): Likewise.
11888 * auxv.c (get_auxv_inferior_data): Likewise.
11889 * bfd-target.c (target_bfd_reopen): Likewise.
11890 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11891 (deprecated_insert_raw_breakpoint): Likewise.
11892 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11893 * corelow.c (core_open): Likewise.
11894 * darwin-nat.c (darwin_check_new_threads): Likewise.
11895 (darwin_attach_pid): Likewise.
11896 * dummy-frame.c (dummy_frame_push): Likewise.
11897 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11898 * dwarf2loc.c (allocate_piece_closure): Likewise.
11899 * elfread.c (elf_symfile_segments): Likewise.
11900 * eval.c (ptrmath_type_p): Likewise.
11901 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11902 * gdbtypes.c (alloc_type_arch): Likewise.
11903 (alloc_type_instance): Likewise.
11904 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11905 * inf-child.c (inf_child_can_use_agent): Likewise.
11906 * inflow.c (get_inflow_inferior_data): Likewise.
11907 * infrun.c (save_infcall_suspend_state): Likewise.
11908 * jit.c (jit_reader_load): Likewise.
11909 (get_jit_objfile_data): Likewise.
11910 (get_jit_program_space_data): Likewise.
11911 (jit_object_open_impl): Likewise.
11912 (jit_symtab_open_impl): Likewise.
11913 (jit_block_open_impl): Likewise.
11914 (jit_frame_sniffer): Likewise.
11915 * linux-fork.c (add_fork): Likewise.
11916 * maint.c (make_command_stats_cleanup): Likewise.
11917 * objfiles.c (get_objfile_pspace_data): Likewise.
11918 * opencl-lang.c (struct lval_closure): Likewise.
11919 * osdata.c (osdata_start_osdata): Likewise.
11920 * progspace.c (new_address_space): Likewise.
11921 (add_program_space): Likewise.
11922 * remote-sim.c (get_sim_inferior_data): Likewise.
11923 * sh-tdep.c (sh_gdbarch_init): Likewise.
11924 * skip.c (Ignore): Likewise.
11925 (skip_delete_command): Likewise.
11926 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11927 (library_list_start_library): Likewise.
11928 (solib_aix_current_sos): Likewise.
11929 * solib-darwin.c (get_darwin_info): Likewise.
11930 (darwin_current_sos): Likewise.
11931 * solib-dsbt.c (get_dsbt_info): Likewise.
11932 * solib-ia64-hpux.c (new_so_list): Likewise.
11933 (ia64_hpux_get_solib_linkage_addr): Likewise.
11934 * solib-spu.c (append_ocl_sos): Likewise.
11935 (spu_current_sos): Likewise.
11936 * solib-svr4.c (get_svr4_info): Likewise.
11937 (svr4_keep_data_in_core): Likewise.
11938 (library_list_start_library): Likewise.
11939 (svr4_default_sos): Likewise.
11940 (svr4_read_so_list): Likewise.
11941 * solib-target.c (library_list_start_library): Likewise.
11942 (solib_target_current_sos): Likewise.
11943 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11944 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11945 * symfile.c (default_symfile_segments): Likewise.
11946 * target-descriptions.c (tdesc_data_init): Likewise.
11947 (tdesc_create_reg): Likewise.
11948 (struct tdesc_type *): Likewise.
11949 (tdesc_create_vector): Likewise.
11950 (tdesc_set_struct_size): Likewise.
11951 (struct tdesc_type *): Likewise.
11952 (tdesc_free_feature): Likewise.
11953 (tdesc_create_feature): Likewise.
11954 * windows-nat.c (windows_add_thread): Likewise.
11955 (windows_make_so): Likewise.
11956 * xml-support.c (gdb_xml_body_text): Likewise.
11957 (gdb_xml_create_parser_and_cleanup): Likewise.
11958 (xml_process_xincludes): Likewise.
11959 * xml-syscall.c (allocate_syscalls_info): Likewise.
11960 (syscall_create_syscall_desc): Likewise.
11961
5acfdbae
SDJ
119622014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11963
11964 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11965 function, with code from i386_stap_parse_special_token.
11966 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11967 (i386_stap_parse_special_token): Move code to the two functions
11968 above; simplify it.
11969
0000e5cc
PA
119702014-01-09 Pedro Alves <palves@redhat.com>
11971 Hui Zhu <hui@codesourcery.com>
11972
11973 PR gdb/16101
11974 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11975 bp_err_string. Don't mark the location shlib_disabled if the
11976 error thrown wasn't a generic or memory error. Catch errors
11977 thrown while inserting breakpoints in overlayed code. Output
11978 error message of software breakpoints.
11979 * remote.c (remote_insert_breakpoint): If this breakpoint has
11980 target-side commands but this stub doesn't support Z0 packets,
11981 throw NOT_SUPPORTED_ERROR error.
11982 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11983 * target.h (target_insert_breakpoint): Extend comment.
11984 (target_insert_hw_breakpoint): Add comment.
11985
b7ea362b
PA
119862014-01-08 Pedro Alves <palves@redhat.com>
11987
11988 * remote.c (remote_add_thread): Add threads silently if starting
11989 up.
11990 (remote_notice_new_inferior): If in all-stop, and starting up,
11991 don't call notice_new_inferior.
11992 (get_current_thread): New function, factored out from ...
11993 (add_current_inferior_and_thread): ... this. Adjust.
11994 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11995 found any thread, then select the remote's current thread as GDB's
11996 current thread too.
11997
b7bba001
JB
119982014-01-08 Joel Brobecker <brobecker@adacore.com>
11999
12000 * NEWS: Create a new section for the next release branch.
12001 Rename the section of the current branch, now that it has
12002 been cut.
12003
16dfbded
JB
120042014-01-08 Joel Brobecker <brobecker@adacore.com>
12005
12006 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12007 * version.in: Bump version to 7.7.50.DATE-cvs.
12008
22c90ac1
YQ
120092014-01-08 Yao Qi <yao@codesourcery.com>
12010
12011 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12012 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12013 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12014
d64ad97c
YQ
120152014-01-08 Yao Qi <yao@codesourcery.com>
12016
12017 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12018 return value of bfd_get_filename to symbol_file_add_from_bfd.
12019
f93ba80c
PM
120202014-01-08 Pierre Muller <muller@sourceware.org>
12021
12022 Fix PR16201.
12023 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12024 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12025 to prim_record_mininal_symbol_and_info.
12026 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12027 in call to prim_record_minimal_symbol_and_info.
12028 (read_pe_exported_syms): Set index field of section_data.
12029
a4d9ba85
AP
120302014-01-07 Andrew Pinski <apinski@cavium.com>
12031
12032 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12033 * features/aarch64.c: Regenerate.
12034
1b67eb02
AS
120352014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12036
12037 * target.c (return_null): Define.
12038 (update_current_target): Use it instead of return_zero for
12039 functions that return a pointer.
12040
5e3f4fab
EBM
120412014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12042
12043 * source.c (add_path): Fix check for duplicated paths in the previously
12044 included paths.
12045
e2616788
HK
120462014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12047
12048 * ada-lang.c: Remove duplicated include statements.
12049 * alphabsd-nat.c: Ditto.
12050 * amd64-darwin-tdep.c: Ditto.
12051 * amd64fbsd-nat.c: Ditto.
12052 * auto-load.c: Ditto.
12053 * ax-gdb.c: Ditto.
12054 * breakpoint.c: Ditto.
12055 * dbxread.c: Ditto.
12056 * fork-child.c: Ditto.
12057 * gdb_usleep.c: Ditto.
12058 * i386-darwin-tdep.c: Ditto.
12059 * i386fbsd-nat.c: Ditto.
12060 * infcmd.c: Ditto.
12061 * inferior.c: Ditto.
12062 * jv-lang.c: Ditto.
12063 * linux-nat.c: Ditto.
12064 * linux-tdep.c: Ditto.
12065 * m68kbsd-nat.c: Ditto.
12066 * m68klinux-nat.c: Ditto.
12067 * microblaze-tdep.c: Ditto.
12068 * mips-linux-tdep.c: Ditto.
12069 * mn10300-tdep.c: Ditto.
12070 * nto-tdep.c: Ditto.
12071 * opencl-lang.c: Ditto.
12072 * osdata.c: Ditto.
12073 * printcmd.c: Ditto.
12074 * regcache.c: Ditto.
12075 * remote-m32r-sdi.c: Ditto.
12076 * remote.c: Ditto.
12077 * symfile.c: Ditto.
12078 * symtab.c: Ditto.
12079 * tilegx-linux-nat.c: Ditto.
12080 * tilegx-tdep.c: Ditto.
12081 * tracepoint.c: Ditto.
12082 * valops.c: Ditto.
12083 * vaxbsd-nat.c: Ditto.
12084 * windows-nat.c: Ditto.
12085 * xtensa-tdep.c: Ditto.
12086
bd1f7788
YQ
120872014-01-07 Yao Qi <yao@codesourcery.com>
12088
12089 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12090
79301218
JB
120912014-01-07 Yao Qi <yao@codesourcery.com>
12092 Joel Brobecker <brobecker@adacore.com>
12093
12094 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12095 (pdc_write_regs): Likewise.
12096 (fetch_regs_kernel_thread): Likewise.
12097 (store_regs_kernel_thread): Likewise.
12098
120992014-01-07 Joel Brobecker <brobecker@adacore.com>
12100
12101 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12102 tagged type objects to their actual type.
12103
8e355c5d
JB
121042014-01-07 Joel Brobecker <brobecker@adacore.com>
12105
12106 * ada-valprint.c (print_field_values): Add "language" parameter.
12107 Update calls to print_field_values and print_variant_part.
12108 Pass new parameter "language" in call to val_print instead
12109 of "current_language". Replace call to ada_val_print by call
12110 to val_print.
12111 (print_variant_part): Add "language" parameter.
12112 (ada_val_print_struct_union): Update call to print_field_values.
12113
4fbf5aa5
JB
121142014-01-07 Joel Brobecker <brobecker@adacore.com>
12115
12116 * ada-valprint.c (ui_memcpy): Delete.
12117 (ada_print_floating): Update documentation. Add empty line
12118 between between function documentation and implementation.
12119 Delete variable "buffer". Use ui_file_xstrdup in place of
12120 ui_file_put. Minor adjustments following this change.
12121
71855601
JB
121222014-01-07 Joel Brobecker <brobecker@adacore.com>
12123
12124 * ada-valprint.c (ada_val_print_string): New function,
12125 extracted from ada_val_print_array.
12126 (ada_val_print_array): Replace extracted code by call
12127 to ada_val_print_string followed by a return. Move
12128 "else" branch to the function's top block.
12129
4eb27a30
JB
121302014-01-07 Joel Brobecker <brobecker@adacore.com>
12131
12132 * ada-valprint.c (ada_val_print_array): Move implementation
12133 down. Rename parameter "offset" and "val" into "offset_aligned"
12134 and "original_value" respectively. Add parameter "offset".
12135
34b27950
JB
121362014-01-07 Joel Brobecker <brobecker@adacore.com>
12137
12138 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12139 re-organizing the code. Change the "???" message printed
12140 when target type is a TYPE_CODE_UNDEF into
12141 "<ref to undefined type>".
12142
079e4591
JB
121432014-01-07 Joel Brobecker <brobecker@adacore.com>
12144
12145 * ada-valprint.c (print_record): Delete, implementation inlined...
12146 (ada_val_print_struct_union): ... here. Remove call to
12147 ada_check_typedef in inlined implementation.
12148
8004dfd1
JB
121492014-01-07 Joel Brobecker <brobecker@adacore.com>
12150
12151 * ada-valprint.c (ada_val_print_gnat_array): New function,
12152 extracted from ada_val_print_1;
12153 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12154 (ada_val_print_flt, ada_val_print_struct_union)
12155 (ada_val_print_ref): Likewise.
12156 (ada_val_print_1): Delete variables i and elttype.
12157 Replace extracted-out code by call to corresponding
12158 new functions.
12159
760a2db0
JB
121602014-01-07 Joel Brobecker <brobecker@adacore.com>
12161
12162 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12163
3a92c861
JB
121642014-01-07 Joel Brobecker <brobecker@adacore.com>
12165
12166 * ada-valprint.c (ada_val_print_1): Replace calls to
12167 ada_val_print_1 by calls to val_print.
12168
cd1630f9
JB
121692014-01-07 Joel Brobecker <brobecker@adacore.com>
12170
12171 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12172 Update calls to self accordingly. Replace calls to c_val_print
12173 by calls to val_print.
12174
bdf779a0
JB
121752014-01-07 Joel Brobecker <brobecker@adacore.com>
12176
12177 * ada-valprint.c (print_record): Delete declaration.
12178 (adjust_type_signedness, ada_val_print_1): Likewise.
12179 (ada_val_print): Move function implementation down.
12180 (print_variant_part, print_field_values, print_record):
12181 Move function implementation up.
12182
c0d48811
JB
121832014-01-07 Joel Brobecker <brobecker@adacore.com>
12184
12185 * python/py-type.c (typy_get_name): New function.
12186 (type_object_getset): Add entry for attribute "name".
12187 * NEWS: Add entry mentioning this new attribute.
12188
c26e9cbb
YQ
121892014-01-07 Yao Qi <yao@codesourcery.com>
12190
12191 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12192 statement.
12193
0cc6f43d
YQ
121942014-01-07 Yao Qi <yao@codesourcery.com>
12195
12196 * gnu-nat.c (info_port_rights): Add qualifier const to
12197 argument args.
12198
eec03155
YQ
121992014-01-07 Yao Qi <yao@codesourcery.com>
12200
12201 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12202
f04a82ef
YQ
122032014-01-07 Yao Qi <yao@codesourcery.com>
12204
12205 * gnu-nat.c (make_inf) Update declaration.
12206 (make_inf): Make it static.
12207 (inf_set_traced): Likewise.
12208 (inf_port_to_thread, inf_task_died_status): Likewise.
12209
d57dda0a
YQ
122102014-01-07 Yao Qi <yao@codesourcery.com>
12211
12212 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12213
3aa8c969
YQ
122142014-01-07 Yao Qi <yao@codesourcery.com>
12215
12216 * gnu-nat.c (_initialize_gnu_nat): Declare.
12217
94123b4f
YQ
122182014-01-07 Yao Qi <yao@codesourcery.com>
12219
12220 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12221 'enum bfd_endian'.
12222 (struct gdbarch_info) <byte_order>: Change type to
12223 'enum bfd_endian'.
12224 <byte_order_for_code>: Likewise.
12225 * gdbarch.c, gdbarch.h: Regenerated.
12226
dc81d70a
TT
122272014-01-06 Sasha Smundak <asmundak@google.com>
12228
12229 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12230
cc2f3c35
TT
122312014-01-06 Tom Tromey <tromey@redhat.com>
12232
12233 * doublest.c (convert_doublest_to_floatformat): Use const, not
12234 CONST.
12235 * somread.c (som_symtab_read): Likewise.
12236
adcf2eed
HZ
122372014-01-07 Hui Zhu <hui@codesourcery.com>
12238
12239 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12240 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12241 (gdb_bfd_fopen): Ditto.
12242 (gdb_bfd_openr): Ditto.
12243 (gdb_bfd_openw): Ditto.
12244 (gdb_bfd_openr_iovec): Ditto.
12245 (gdb_bfd_fdopenr): Ditto.
12246 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12247 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12248 with xstrdup.
12249 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12250 with xstrdup.
12251 * symfile-mem.c (symbol_file_add_from_memory): Removed
12252 gdb_bfd_stash_filename.
12253
50722198
DE
122542014-01-03 Doug Evans <dje@google.com>
12255
12256 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12257 output.
12258
2fa4b862
JB
122592014-01-01 Joel Brobecker <brobecker@adacore.com>
12260
12261 Update year range in copyright notice of all files.
12262
28498c42
JB
122632014-01-01 Joel Brobecker <brobecker@adacore.com>
12264
12265 * top.c (print_gdb_version): Set copyright year to 2014.
12266
7b6e1046
JB
122672014-01-01 Joel Brobecker <brobecker@adacore.com>
12268
12269 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12270
df96af55 12271For older changes see ChangeLog-2013.
c906108c
SS
12272\f
12273Local Variables:
12274mode: change-log
12275left-margin: 8
12276fill-column: 74
12277version-control: never
57da7796 12278coding: utf-8
c906108c 12279End:
This page took 2.602254 seconds and 4 git commands to generate.