Make gdb_continue_to_breakpoint fail quickly on internal errors.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a75fef0e
NC
12014-04-22 Nick Clifton <nickc@redhat.com>
2
3 * NEWS: Mention that ARM sim now supports tracing.
4
48b6e87e
YQ
52014-04-22 Yao Qi <yao@codesourcery.com>
6
7 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8 to ...
9 * tracefile.c (tracefile_fetch_registers): ... it. New
10 function.
11 * tracefile.h (tracefile_fetch_registers): Declare.
12 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
13 tracefile_fetch_registers.
14
17617f2d
EZ
152014-04-19 Eli Zaretskii <eliz@gnu.org>
16
17 PR gdb/14018
18 * windows-nat.c (thread_rec): Don't display a warning when
19 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
20 fails for any reason, set th->suspended to -1, so that we don't
21 try to resume such a thread. Also, don't return NULL in these
22 cases, to avoid completely ruin the session due to "PC register is
23 not available" error.
24 (do_windows_fetch_inferior_registers): Check errors in
25 GetThreadContext call.
26 (windows_continue): Accept an additional argument KILLED; if not
27 zero, ignore errors in the SetThreadContext call, since the
28 inferior was killed and is shutting down.
29 (windows_resume, get_windows_debug_event)
30 (windows_create_inferior, windows_mourn_inferior)
31 (windows_kill_inferior): All callers of windows_continue changed
32 to adjust to its new calling sequence.
33
5723a6fd
YQ
342014-04-19 Yao Qi <yao@codesourcery.com>
35
36 * ctf.c (ctf_open): Call post_create_inferior.
37
614d5099
YQ
382014-04-19 Yao Qi <yao@codesourcery.com>
39
40 * ctf.c (handle_id): New static variable.
41 (ctf_open_dir): Get handle_id from bt_context_add_trace return
42 value. Get the declaration of event "register" and get length
43 of field "contents".
44
dac3e710
YQ
452014-04-19 Yao Qi <yao@codesourcery.com>
46
47 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
48
2bca57ba
SC
492014-04-18 Siva Chandra Reddy <sivachandra@google.com>
50
51 * valops.c (oload_method_static): Remove unnecessary argument
52 METHOD. Update all callers.
53
51d48146
PA
542014-04-18 Pedro alves <palves@redhat.com>
55 Tom Tromey <tromey@redhat.com>
56
57 PR backtrace/15558
58 * frame.c (get_prev_frame_1): Rename to ...
59 (get_prev_frame_always): ... this, and make extern. Adjust.
60 (skip_artificial_frames): Use get_prev_frame_always.
61 (frame_unwind_caller_id, frame_pop, get_prev_frame)
62 (get_frame_unwind_stop_reason): Adjust to rename.
63 * frame.h (get_prev_frame_always): Declare.
64 * inline-frame.c: Include frame.h.
65 (inline_frame_this_id): Use get_prev_frame_always.
66
1bdad2e0
TG
672014-04-18 Tristan Gingold <gingold@adacore.com>
68
69 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
70 code by using bfd_mach_o_get_base_address.
71
7ce16bd4
UW
722014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
73
74 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
75 (spu_ax_pseudo_register_collect): New function.
76 (spu_ax_pseudo_register_push_stack): Likewise.
77 (spu_dwarf_reg_to_regnum): Likewise.
78 (spu_gdbarch_init): Install them. Append DWARF unwinders.
79
2ed3c037
UW
802014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
81
82 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
83 Replace FRAME argument with FRAME_ID.
84 * gdbarch.c, gdbarch.h: Regenerate.
85 * findvar.c (default_value_from_register): Add GDBARCH argument;
86 replace FRAME by FRAME_ID. No longer call get_frame_id.
87 (value_from_register): Update call to gdbarch_value_from_register.
88 * value.h (default_value_from_register): Update prototype.
89 * s390-linux-tdep.c (s390_value_from_register): Update interface
90 and call to default_value_from_register.
91 * spu-tdep.c (spu_value_from_register): Likewise.
92
93 * findvar.c (address_from_register): Remove TYPE argument.
94 Do not call value_from_register; use gdbarch_value_from_register
95 with null_frame_id instead.
96 * value.h (address_from_register): Update prototype.
97 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
98 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
99 address_from_register interface change.
100
71e50e83
YQ
1012014-04-17 Yao Qi <yao@codesourcery.com>
102
103 * gdbtypes.h: Update comments to link to types and macros'
104 definitions.
105
7a23c549
SC
1062014-04-16 Siva Chandra Reddy <sivachandra@google.com>
107
108 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
109
22869d73
KS
1102014-04-16 Keith Seitz <keiths@redhat.com>
111
112 PR gdb/15827
113 * dwarf2read.c (skip_one_die): Check that all relative-offset
114 sibling DIEs fall within range of the current reader's buffer.
115 (read_partial_die): Likewise.
116
c4f87ca6
KS
1172014-04-16 Keith Seitz <keiths@redhat.com>
118
119 PR c++/16597
120 * cp-namespace.c (lookup_symbol_file): If the type name of
121 `this' is NULL, return immediately.
122
b50c8614
KS
1232014-04-14 Keith Seitz <keiths@redhat.com>
124
125 PR c++/16253
126 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
127 from symbol_matches_domain in symtab.c. All local callers
128 of symbol_matches_domain updated.
129 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
130 search STRUCT_DOMAIN.
131 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
132 independently. standard_lookup will do that automatically.
133 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
134 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
135 (cp_lookup_symbol_in_namespace): Likewise.
136 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
137 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
138 may return a STRUCT_DOMAIN match.
139 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
140 * cp-support.c: Include language.h.
141 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
142 VAR_DOMAIN.
143 * psymtab.c (match_partial_symbol): Compare the requested
144 domain with the symbol's domain directly.
145 (lookup_partial_symbol): Likewise.
146 * symtab.c (lookup_symbol_in_language): Explain when/why
147 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
148 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
149 appropriate languages.
150 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
151 and moved to ada-lang.c
152 (lookup_block_symbol): Explain that this function only returns
153 symbol matching the requested DOMAIN.
154 Compare the requested domain with the symbol's domain directly.
155 (iterate_over_symbols): Compare the requested domain with the
156 symbol's domain directly.
157 * symtab.h (symbol_matches_domain): Remove.
158
3d567982
TT
1592014-04-14 Tom Tromey <tromey@redhat.com>
160
161 PR c++/15246:
162 * c-exp.y (type_aggregate_p): New function.
163 (qualified_name, classify_inner_name): Use it.
164 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
165 and TYPE_TARGET_TYPE of an enum type.
166 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
167 an enum type.
168 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
169 handle TYPE_DECLARED_CLASS.
170 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
171 types.
172 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
173 * valops.c (enum_constant_from_type): New function.
174 (value_aggregate_elt): Use it.
175 * cp-namespace.c (cp_lookup_nested_symbol): Handle
176 TYPE_CODE_ENUM.
177
c848d642
TT
1782014-04-14 Tom Tromey <tromey@redhat.com>
179
180 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
181 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
182 const.
183 * value.h (value_aggregate_elt): Update.
184
0626fc76
TT
1852014-04-14 Tom Tromey <tromey@redhat.com>
186
187 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
188
5ecaaa66
SA
1892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
190
191 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
192 (evaluate_subexp_standard): Pass noside argument.
193 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
194 if noside equals EVAL_NORMAL. If the subscript yields a vla type
195 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
196 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
197 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
198
1612e0c0
SA
1992014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
200
201 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
202 points to a constant blob.
203
c451ebe5
SA
2042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
205
206 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
207 property and store it as the high bound and flag the range accordingly.
208 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
209 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
210 * gdbtypes.h (enum range_flags): New enum.
211 (struct range_bounds): Add flags member.
212
1d42e4c4
SA
2132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
214
215 * c-typeprint.c (c_type_print_varspec_suffix): Added
216 check for not yet resolved high bound. If unresolved, print
217 "variable length" string to the console instead of random
218 length.
219
9f1f738a
SA
2202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
221
222 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
223 value.
224 (ada_template_to_fixed_record_type_1): Likewise.
225 (ada_to_fixed_type_1): Likewise.
226 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
227 (cp_print_value): Likewise.
228 * d-valprint.c (dynamic_array_type): Likewise.
229 * findvar.c (address_of_variable): Likewise.
230 * jv-valprint.c (java_value_print): Likewise.
231 * valops.c (value_ind): Likewise.
232 * value.c (coerce_ref): Likewise.
233
3c8452d4
SA
2342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
235
236 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
237 value and retrieve the dynamic type size.
238
4ad88275
SA
2392014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
240
241 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
242 passed to sizeof is dynamic evaluate the argument to compute the length.
243
80180f79
SA
2442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
245 Joel Brobecker <brobecker@adacore.com>
246
247 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
248 (dwarf2_evaluate_property): New function.
249 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
250 * dwarf2read.c (attr_to_dynamic_prop): New function.
251 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
252 attribute.
253 * gdbtypes.c: Include dwarf2loc.h.
254 (is_dynamic_type): New function.
255 (resolve_dynamic_type): New function.
256 (resolve_dynamic_bounds): New function.
257 (get_type_length): New function.
258 (check_typedef): Use get_type_length to compute type length.
259 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
260 (TYPE_LOW_BOUND_KIND): New macro.
261 (is_dynamic_type): New function prototype.
262 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
263 to resolve dynamic properties of the type. Update comment.
264 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
265
a1556843
RH
2662014-04-14 Richard Henderson <rth@redhat.com>
267
268 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
269
0be03e84
DE
2702014-04-12 Siva Chandra Reddy <sivachandra@google.com>
271 Doug Evans <xdje42@gmail.com>
272
273 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
274 dereference TYPE_CODE_REF values.
275
6b662e19
JB
2762014-04-11 Joel Brobecker <brobecker@adacore.com>
277
278 Revert the following changes due to regressions:
279
280 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
281 (dwarf2_evaluate_property): New function.
282 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
283 * dwarf2read.c (attr_to_dynamic_prop): New function.
284 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
285 attribute.
286 * gdbtypes.c: Include dwarf2loc.h.
287 (is_dynamic_type): New function.
288 (resolve_dynamic_type): New function.
289 (resolve_dynamic_bounds): New function.
290 (get_type_length): New function.
291 (check_typedef): Use get_type_length to compute type length.
292 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
293 (TYPE_LOW_BOUND_KIND): New macro.
294 (is_dynamic_type): New function prototype.
295 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
296 to resolve dynamic properties of the type. Update comment.
297 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
298
299 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
300 passed to sizeof is dynamic evaluate the argument to compute the length.
301
302 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
303 value and retrieve the dynamic type size.
304
305 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
306 (ada_template_to_fixed_record_type_1): Likewise.
307 (ada_to_fixed_type_1): Likewise.
308 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
309 (cp_print_value): Likewise.
310 * d-valprint.c (dynamic_array_type): Likewise.
311 * eval.c (evaluate_subexp_with_coercion): Likewise.
312 * findvar.c (address_of_variable): Likewise.
313 * jv-valprint.c (java_value_print): Likewise.
314 * valops.c (value_ind): Likewise.
315 * value.c (coerce_ref): Likewise.
316
317 * c-typeprint.c (c_type_print_varspec_suffix): Added
318 check for not yet resolved high bound. If unresolved, print
319 "variable length" string to the console instead of random
320 length.
321
322 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
323 property and store it as the high bound and flag the range accordingly.
324 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
325 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
326 * gdbtypes.h (enum range_flags): New enum.
327 (struct range_bounds): Add flags member.
328
329 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
330 points to a constant blob.
331
332 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
333 (evaluate_subexp_standard): Pass noside argument.
334 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
335 if noside equals EVAL_NORMAL. If the subscript yields a vla type
336 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
337 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
338 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
339
245a5f0b
KS
3402014-04-11 Keith Seitz <keiths@redhat.com>
341
342 PR c++/16675
343 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
344 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
345 reference types.
346
3bce8237
SA
3472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
348
349 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
350 (evaluate_subexp_standard): Pass noside argument.
351 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
352 if noside equals EVAL_NORMAL. If the subscript yields a vla type
353 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
354 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
355 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
356
92b09522
SA
3572014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
358
359 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
360 points to a constant blob.
361
e1969afb
SA
3622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
363
364 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
365 property and store it as the high bound and flag the range accordingly.
366 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
367 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
368 * gdbtypes.h (enum range_flags): New enum.
369 (struct range_bounds): Add flags member.
370
b86138fb
SA
3712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
372
373 * c-typeprint.c (c_type_print_varspec_suffix): Added
374 check for not yet resolved high bound. If unresolved, print
375 "variable length" string to the console instead of random
376 length.
377
bcd629a4
SA
3782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
379
380 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
381 (ada_template_to_fixed_record_type_1): Likewise.
382 (ada_to_fixed_type_1): Likewise.
383 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
384 (cp_print_value): Likewise.
385 * d-valprint.c (dynamic_array_type): Likewise.
386 * eval.c (evaluate_subexp_with_coercion): Likewise.
387 * findvar.c (address_of_variable): Likewise.
388 * jv-valprint.c (java_value_print): Likewise.
389 * valops.c (value_ind): Likewise.
390 * value.c (coerce_ref): Likewise.
391
04b19544
SA
3922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
393
394 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
395 value and retrieve the dynamic type size.
396
26cb189f
SA
3972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
398
399 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
400 passed to sizeof is dynamic evaluate the argument to compute the length.
401
37c1ab67
SA
4022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
403
404 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
405 (dwarf2_evaluate_property): New function.
406 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
407 * dwarf2read.c (attr_to_dynamic_prop): New function.
408 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
409 attribute.
410 * gdbtypes.c: Include dwarf2loc.h.
411 (is_dynamic_type): New function.
412 (resolve_dynamic_type): New function.
413 (resolve_dynamic_bounds): New function.
414 (get_type_length): New function.
415 (check_typedef): Use get_type_length to compute type length.
416 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
417 (TYPE_LOW_BOUND_KIND): New macro.
418 (is_dynamic_type): New function prototype.
419 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
420 to resolve dynamic properties of the type. Update comment.
421 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
422
729efb13
SA
4232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
424
425 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
426 declaring high/low bounds and change uses accordingly. Call
427 create_range_type instead of create_static_range_type.
428 * gdbtypes.c (create_range_type): New function.
429 (create_range_type): Convert bounds into struct bound_prop and pass
430 them to create_range_type.
431 * gdbtypes.h (struct bound_prop): New struct.
432 (create_range_type): New function prototype.
433 (struct range_bounds): Use struct bound_prop instead of LONGEST for
434 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
435 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
436 part of the bound.
437 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
438
0c9c3474
SA
4392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
440
441 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
442 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
443 * ada-lang.c: All uses of create_range_type updated.
444 * coffread.c: All uses of create_range_type updated.
445 * dwarf2read.c: All uses of create_range_type updated.
446 * f-exp.y: All uses of create_range_type updated.
447 * m2-valprint.c: All uses of create_range_type updated.
448 * mdebugread.c: All uses of create_range_type updated.
449 * stabsread.c: All uses of create_range_type updated.
450 * valops.c: All uses of create_range_type updated.
451 * valprint.c: All uses of create_range_type updated.
452
9d497a19
PA
4532014-04-10 Pedro Alves <palves@redhat.com>
454
455 * breakpoint.c (single_step_breakpoints)
456 (single_step_gdbarch): Move up in the file.
457 (one_breakpoint_xfer_memory): New function, factored out from ...
458 (breakpoint_xfer_memory): ... here. Also process single-step
459 breakpoints.
460
15a9128a
TG
4612014-04-09 Tristan Gingold <gingold@adacore.com>
462
463 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
464 comments.
465 (darwin_decode_exception_message): Free port only after use.
466
9c97a070
PL
4672014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
468
469 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
470 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
471 when setting the size of call_length.
472
7af389b8
SC
4732014-04-07 Siva Chandra Reddy <sivachandra@google.com>
474
475 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
476 dereference TYPE_CODE_REF values.
477
86ad98c3
JB
4782014-04-07 Joel Brobecker <brobecker@adacore.com>
479
480 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
481 end of warning message.
482
b0aeadb3
DE
4832014-04-03 Doug Evans <dje@google.com>
484
485 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
486 of stub_comp_unit_die, stub_comp_dir is non-NULL.
487
5979d6b6
AM
4882014-04-02 Alan Modra <amodra@gmail.com>
489
490 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
491 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
492 (struct symbol_file_add_from_memory_args): Add size field.
493 (find_vdso_size): New function.
494 (add_vsyscall_page): Attempt to find vdso size.
495
0d60c288
DE
4962014-04-01 Doug Evans <dje@google.com>
497
498 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
499
a41f2563
TG
5002014-04-01 Tristan Gingold <gingold@adacore.com>
501
502 * darwin-nat.c (darwin_encode_reply): Add prototype.
503 (darwin_decode_exception_message): Reply to unknown inferiors.
504 (darwin_decode_message): Handle message by id. Ignore message
505 to unknown inferior.
506 (darwin_wait): Discard unknown messages, add debug trace.
507
11a865c8
DE
5082014-03-31 Doug Evans <dje@google.com>
509
510 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
511 comp_dir_string.
512
770e7fc7
DE
5132014-03-31 Doug Evans <dje@google.com>
514
515 New option "set print symbol-loading".
516 * NEWS: Mention it.
517 * solib.c (solib_read_symbols): Only print symbol loading messages
518 if requested.
519 (solib_add): If symbol loading is in "brief" mode, notify user
520 symbols are being loaded.
521 (reload_shared_libraries_1): Ditto.
522 * symfile.c (print_symbol_loading_off): New static global.
523 (print_symbol_loading_brief): New static global.
524 (print_symbol_loading_full): New static global.
525 (print_symbol_loading_enums): New static global.
526 (print_symbol_loading): New static global.
527 (print_symbol_loading_p): New function.
528 (symbol_file_add_with_addrs): Only print symbol loading messages
529 if requested.
530 (_initialize_symfile): Register "print symbol-loading" set/show
531 command.
532 * symfile.h (print_symbol_loading_p): Declare.
533
c32c64b7
DE
5342014-03-30 Doug Evans <xdje42@gmail.com>
535
536 * infrun.c (set_last_target_status): New function.
537 (handle_inferior_event): Call it.
538
7c0bc051
DE
5392014-03-30 Doug Evans <xdje42@gmail.com>
540
541 * inferior.h (enum stop_kind): Improve comment.
542
8776cfe9
JB
5432014-03-28 Joel Brobecker <brobecker@adacore.com>
544
545 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
546 a reference, strip the reference layer before calling
547 the lang_ops value_has_mutated callback.
548
410a0ff2
SDJ
5492014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
550
551 Remove some globals from our parser.
552 * language.c (unk_lang_parser): Add "struct parser_state"
553 argument.
554 * language.h (struct language_defn) <la_parser>: Likewise.
555 * parse.c (expout, expout_size, expout_ptr): Remove variables.
556 (initialize_expout): Add "struct parser_state" argument.
557 Rewrite function to use the parser state.
558 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
559 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
560 write_exp_elt_longcst, write_exp_elt_dblcst,
561 write_exp_elt_decfloatcst, write_exp_elt_type,
562 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
563 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
564 write_dollar_variable): Likewise.
565 (parse_exp_in_context_1): Use parser state.
566 (insert_type_address_space): Add "struct parser_state" argument.
567 Use parser state.
568 (increase_expout_size): New function.
569 * parser-defs.h: Forward declare "struct language_defn" and
570 "struct parser_state".
571 (expout, expout_size, expout_ptr): Remove extern declarations.
572 (parse_gdbarch, parse_language): Rewrite macro declarations to
573 accept the parser state.
574 (struct parser_state): New struct.
575 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
576 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
577 write_exp_elt_decfloatcst, write_exp_elt_type,
578 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
579 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
580 write_exp_msymbol, write_dollar_variable,
581 mark_struct_expression, insert_type_address_space): Add "struct
582 parser_state" argument.
583 (increase_expout_size): New function.
584 * utils.c (do_clear_parser_state): New function.
585 (make_cleanup_clear_parser_state): Likewise.
586 * utils.h (make_cleanup_clear_parser_state): New function
587 prototype.
588 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
589 Update calls to write_exp* in order to pass the parser state.
590 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
591 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
592 (i386_stap_parse_special_token_three_arg_disp): Likewise.
593 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
594 * stap-probe.c (stap_parse_register_operand): Likewise.
595 (stap_parse_single_operand): Likewise.
596 (stap_parse_argument_1): Likewise.
597 (stap_parse_argument): Use parser state.
598 * stap-probe.h: Include "parser-defs.h".
599 (struct stap_parse_info) <pstate>: New field.
600 * c-exp.y (parse_type): Rewrite to use parser state.
601 (yyparse): Redefine to c_parse_internal.
602 (pstate): New global variable.
603 (parse_number): Add "struct parser_state" argument.
604 (write_destructor_name): Likewise.
605 (type_exp): Update calls to write_exp* and similars in order to
606 use parser state.
607 (exp1, exp, variable, qualified_name, space_identifier,
608 typename, typebase): Likewise.
609 (write_destructor_name, parse_number, lex_one_token,
610 classify_name, classify_inner_name, c_parse): Add "struct
611 parser_state" argument. Update function to use parser state.
612 * c-lang.h: Forward declare "struct parser_state".
613 (c_parse): Add "struct parser_state" argument.
614 * ada-exp.y (parse_type): Rewrite macro to use parser state.
615 (yyparse): Redefine macro to ada_parse_internal.
616 (pstate): New variable.
617 (write_int, write_object_renaming, write_var_or_type,
618 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
619 type_int, type_long, type_long_long, type_float, type_double,
620 type_long_double, type_char, type_boolean, type_system_address):
621 Add "struct parser_state" argument.
622 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
623 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
624 var_or_type, aggregate, aggregate_component_list,
625 positional_list, others, component_group,
626 component_associations): Update calls to write_exp* and similar
627 functions in order to use parser state.
628 (ada_parse, write_var_from_sym, write_int,
629 write_exp_op_with_string, write_object_renaming,
630 find_primitive_type, write_selectors, write_ambiguous_var,
631 write_var_or_type, write_name_assoc, type_int, type_long,
632 type_long_long, type_float, type_double, type_long_double,
633 type_char, type_boolean, type_system_address): Add "struct
634 parser_state" argument. Adjust function to use parser state.
635 * ada-lang.c (parse): Likewise.
636 * ada-lang.h: Forward declare "struct parser_state".
637 (ada_parse): Add "struct parser_state" argument.
638 * ada-lex.l (processInt, processReal): Likewise. Adjust all
639 calls to both functions.
640 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
641 parser state.
642 (yyparse): Redefine macro to f_parse_internal.
643 (pstate): New variable.
644 (parse_number): Add "struct parser_state" argument.
645 (type_exp, exp, subrange, typebase): Update calls to write_exp*
646 and similars in order to use parser state.
647 (parse_number): Adjust code to use parser state.
648 (yylex): Likewise.
649 (f_parse): New function.
650 * f-lang.h: Forward declare "struct parser_state".
651 (f_parse): Add "struct parser_state" argument.
652 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
653 parser state.
654 (yyparse): Redefine macro for java_parse_internal.
655 (pstate): New variable.
656 (push_expression_name, push_expression_name, insert_exp): Add
657 "struct parser_state" argument.
658 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
659 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
660 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
661 PostIncrementExpression, PostDecrementExpression,
662 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
663 UnaryExpressionNotPlusMinus, CastExpression,
664 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
665 RelationalExpression, EqualityExpression, AndExpression,
666 ExclusiveOrExpression, InclusiveOrExpression,
667 ConditionalAndExpression, ConditionalOrExpression,
668 ConditionalExpression, Assignment, LeftHandSide): Update
669 calls to write_exp* and similars in order to use parser state.
670 (parse_number): Ajust code to use parser state.
671 (yylex): Likewise.
672 (java_parse): New function.
673 (push_variable): Add "struct parser_state" argument. Adjust
674 code to user parser state.
675 (push_fieldnames, push_qualified_expression_name,
676 push_expression_name, insert_exp): Likewise.
677 * jv-lang.h: Forward declare "struct parser_state".
678 (java_parse): Add "struct parser_state" argument.
679 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
680 parser state.
681 (yyparse): Redefine macro to m2_parse_internal.
682 (pstate): New variable.
683 (type_exp, exp, fblock, variable, type): Update calls to
684 write_exp* and similars to use parser state.
685 (yylex): Likewise.
686 (m2_parse): New function.
687 * m2-lang.h: Forward declare "struct parser_state".
688 (m2_parse): Add "struct parser_state" argument.
689 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
690 * objc-lang.h: Forward declare "struct parser_state".
691 (end_msglist): Add "struct parser_state" argument.
692 * p-exp.y (parse_type): Rewrite macro to use parser state.
693 (yyparse): Redefine macro to pascal_parse_internal.
694 (pstate): New variable.
695 (parse_number): Add "struct parser_state" argument.
696 (type_exp, exp1, exp, qualified_name, variable): Update calls to
697 write_exp* and similars in order to use parser state.
698 (parse_number, yylex): Adjust code to use parser state.
699 (pascal_parse): New function.
700 * p-lang.h: Forward declare "struct parser_state".
701 (pascal_parse): Add "struct parser_state" argument.
702 * go-exp.y (parse_type): Rewrite macro to use parser state.
703 (yyparse): Redefine macro to go_parse_internal.
704 (pstate): New variable.
705 (parse_number): Add "struct parser_state" argument.
706 (type_exp, exp1, exp, variable, type): Update calls to
707 write_exp* and similars in order to use parser state.
708 (parse_number, lex_one_token, classify_name, yylex): Adjust code
709 to use parser state.
710 (go_parse): Likewise.
711 * go-lang.h: Forward declare "struct parser_state".
712 (go_parse): Add "struct parser_state" argument.
713
342587c4
DE
7142014-03-27 Doug Evans <dje@google.com>
715
716 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
717
33e80786
DE
7182014-03-27 Doug Evans <dje@google.com>
719
720 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
721 Remove argument abbrev_section. All callers updated.
722
1dbab08b
DE
7232014-03-27 Doug Evans <dje@google.com>
724
725 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
726 addr_base, ranges_base.
727
318d3177
KS
7282014-03-26 Keith Seitz <keiths@redhat.com>
729
730 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
731 types, not VAR_DOMAIN.
732
1e54db15
SL
7332014-03-25 Sandra Loosemore <sandra@codesourcery.com>
734
735 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
736 "ra" registers.
737 * features/nios2-linux.c: Regenerated.
738 * features/nios2.c: Regenerated.
739
d3839ede
PA
7402014-03-25 Pedro Alves <palves@redhat.com>
741
742 * cli/cli-script.c (script_from_file): Force the interpreter to
743 sync mode.
744
7588d2ec
PL
7452014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
746
747 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
748 small stack allocation.
749
a6290449
TG
7502014-03-24 Tristan Gingold <gingold@adacore.com>
751
752 * darwin-nat.c (exc_server): Remove unused prototype.
753 (darwin_dump_message): Correctly display data on x86_64.
754 (darwin_encode_reply): Fix style.
755 Add comments and fix indentation.
756
31ae9d24 7572014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
758
759 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
760
6339bfc4
DE
7612014-03-22 Doug Evans <xdje42@gmail.com>
762
763 * infcmd.c: Whitespace fixes.
764 (interrupt_command): Merge two function comments into one.
765
0a07590b
DE
7662014-03-22 Doug Evans <xdje42@gmail.com>
767
768 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
769 All uses updated.
770
b55fbac4
YQ
7712014-03-22 Yao Qi <yao@codesourcery.com>
772
773 * remote.c (target_read_live_memory): Remove.
774 (memory_xfer_live_readonly_partial): Rename it to
775 remote_xfer_live_readonly_partial. Remove argument 'object'.
776 All callers updated. Call remote_read_bytes_1
777 instead of target_read_live_memory.
778 * tracepoint.c (set_traceframe_number): Remove.
779 (make_cleanup_restore_traceframe_number): Likewise .
780 * tracepoint.h (set_traceframe_number): Remove declaration.
781 (make_cleanup_restore_traceframe_number): Likewise.
782
9217e74e
YQ
7832014-03-22 Yao Qi <yao@codesourcery.com>
784
785 * remote.c (remote_read_bytes): Move code on reading from the
786 remote stub to ...
787 (remote_read_bytes_1): ... here. New function.
788
8acf9577
YQ
7892014-03-22 Yao Qi <yao@codesourcery.com>
790
791 * ctf.c (ctf_xfer_partial): Check the return value of
792 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
793 return TARGET_XFER_UNAVAILABLE.
794 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
795 * target.c (target_read_live_memory): Move it to remote.c.
796 (memory_xfer_live_readonly_partial): Likewise.
797 (memory_xfer_partial_1): Move some code to remote_read_bytes.
798 * remote.c (target_read_live_memory): Moved from target.c.
799 (memory_xfer_live_readonly_partial): Likewise.
800 (remote_read_bytes): Factored out from
801 memory_xfer_partial_1.
802
feef67ab
DE
8032014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
804
805 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
806 NULL pointer.
807
b65dc60b
PA
8082014-03-21 Pedro Alves <palves@redhat.com>
809
810 * infrun.c (normal_stop): Extend comment.
811
b4ab256d
HZ
8122014-03-21 Hui Zhu <hui@codesourcery.com>
813 Pedro Alves <palves@redhat.com>
814
815 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
816 static buffer.
817 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
818 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
819 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
820
deba7593
MR
8212014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
822
823 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
824 `z' formatted output modifier.
825
1bff71c3
SDJ
8262014-03-20 Tom Tromey <tromey@redhat.com>
827 Sergio Durigan Junior <sergiodj@redhat.com>
828
829 * probe.c (parse_probes): Turn assert into an ordinary error.
830 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
831 exceptions when parsing probes. Rearrange the code for clarity.
832
90e28950
TT
8332014-03-20 Tom Tromey <tromey@redhat.com>
834
835 PR gdb/14135
836 * top.c (execute_command): Only dispatch events if the command
837 started the target.
838
beb460e8
PA
8392014-03-20 Tom Tromey <tromey@redhat.com>
840
841 PR cli/15718
842 * infcall.c: Include event-top.h.
843 (run_inferior_call): Call async_disable_stdin if needed.
844
99619bea
PA
8452014-03-20 Pedro Alves <palves@redhat.com>
846
847 * infrun.c (prepare_to_proceed): Delete.
848 (thread_still_needs_step_over): New function.
849 (find_thread_needs_step_over): New function.
850 (proceed): If the current thread needs a step-over, set its
851 steping_over_breakpoint flag. Adjust to use
852 find_thread_needs_step_over instead of prepare_to_proceed.
853 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
854 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
855 breakpoint.
856 (switch_back_to_stepped_thread): Step over breakpoints of all
857 threads not the stepping thread, before switching back to the
858 stepping thread.
859
2adfaa28
PA
8602014-03-20 Pedro Alves <palves@redhat.com>
861
862 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
863 extern.
864 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
865 * infrun.c (saved_singlestep_ptid)
866 (stepping_past_singlestep_breakpoint): Delete.
867 (resume): Remove stepping_past_singlestep_breakpoint handling.
868 (proceed): Store the prev_pc of the stepping thread too.
869 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
870 singlestep_pc.
871 (enum infwait_states): Delete infwait_thread_hop_state.
872 (struct execution_control_state) <hit_singlestep_breakpoint>: New
873 field.
874 (handle_inferior_event): Adjust.
875 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
876 handling and the thread-hop code. Before removing single-step
877 breakpoints, check whether the thread hit a single-step breakpoint
878 of another thread. If it did, the trap is not a random signal.
879 (switch_back_to_stepped_thread): If the event thread hit a
880 single-step breakpoint, unblock it before switching to the
881 stepping thread. Handle the case of the stepped thread having
882 advanced already.
883 (keep_going): Handle the case of the current thread moving past a
884 single-step breakpoint.
885
31e77af2
PA
8862014-03-20 Pedro Alves <palves@redhat.com>
887
888 PR breakpoints/7143
889 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
890 are being stepped over.
891 (breakpoint_address_match): Make extern.
892 * breakpoint.h (breakpoint_address_match): New declaration.
893 * inferior.h (stepping_past_instruction_at): New declaration.
894 * infrun.c (struct step_over_info): New type.
895 (step_over_info): New global.
896 (set_step_over_info, clear_step_over_info)
897 (stepping_past_instruction_at): New functions.
898 (handle_inferior_event): Clear the step-over info when
899 trap_expected is cleared.
900 (resume): Remove now stale comment.
901 (clear_proceed_status): Clear step-over info.
902 (proceed): Adjust step-over handling to set or clear the step-over
903 info instead of removing all breakpoints.
904 (handle_signal_stop): When setting up a thread-hop, don't remove
905 breakpoints here.
906 (stop_stepping): Clear step-over info.
907 (keep_going): Adjust step-over handling to set or clear step-over
908 info and then always inserting breakpoints, instead of removing
909 all breakpoints when stepping over one.
910
b9f437de
PA
9112014-03-20 Pedro Alves <palves@redhat.com>
912
913 * infrun.c (previous_inferior_ptid): Adjust comment.
914 (deferred_step_ptid): Delete.
915 (infrun_thread_ptid_changed, prepare_to_proceed)
916 (init_wait_for_inferior): Adjust.
917 (handle_signal_stop): Delete deferred_step_ptid handling.
918
06c868a8
JK
9192014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
920
921 PR gdb/15358
922 * defs.h (sync_quit_force_run): New declaration.
923 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
924 * event-top.c (async_sigterm_handler): New declaration.
925 (async_sigterm_token): New variable.
926 (async_init_signals): Create also async_sigterm_token.
927 (async_sigterm_handler): New function.
928 (sync_quit_force_run): New variable.
929 (handle_sigterm): Replace quit_force call by other calls.
930 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
931
dea80df0
MR
9322014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
933
934 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
935 offset into SPE pseudo registers.
936
0c7e1a46
PA
9372014-03-18 Pedro Alves <palves@redhat.com>
938
939 PR gdb/13860
940 * inferior.h (print_stop_event): Declare.
941 * infrun.c (print_stop_event): New, factored out from ...
942 (normal_stop): ... this.
943 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
944 of bpstat_print/print_stack_frame.
945
9c1fcd01
TT
9462014-03-17 Tom Tromey <tromey@redhat.com>
947
948 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
949
11aa919a
PMR
9502014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
951
952 * ada-lang.c (decode_constrained_packed_array): Perform a
953 minimal coercion for reference with coerce_ref instead of
954 ada_coerce_ref.
955
d4ccb5e0
TG
9562014-03-17 Tristan Gingold <gingold@adacore.com>
957
958 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
959 (darwin_solib_create_inferior_hook): Emit a warning if version
960 is unhandled.
961
49840f2a
UW
9622014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
963
964 * python/py-value.c (get_field_flag): Cast flag_name argument to
965 PyObject_GetAttrString to support Python 2.4.
966
ed4123e5
JK
9672014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
968
969 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
970 (Global Maintainers): Remove Jan Kratochvil.
971
d6b64346
PA
9722014-03-14 Pedro Alves <palves@redhat.com>
973
974 * inferior.h (terminal_ours_for_output): Rename to ...
975 (child_terminal_ours_for_output): ... this.
976 (terminal_save_ours): Rename to ...
977 (child_terminal_save_ours): ... this.
978 (terminal_ours): Rename to ...
979 (child_terminal_ours): ... this.
980 (terminal_inferior): Rename to ...
981 (child_terminal_inferior): ... this.
982 (terminal_init_inferior): Rename to ...
983 (child_terminal_init_inferior): ... this.
984 (terminal_init_inferior_with_pgrp): Rename to ...
985 (child_terminal_init_inferior_with_pgrp): ... this.
986 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
987 (child_terminal_init_with_pgrp): ... this.
988 (terminal_save_ours): Rename to ...
989 (child_terminal_save_ours): ... this.
990 (terminal_init_inferior): Rename to ...
991 (child_terminal_init): ... this. Adjust.
992 (terminal_inferior): Rename to ...
993 (child_terminal_inferior): ... this.
994 (terminal_ours_for_output): Rename to ...
995 (child_terminal_ours_for_output): ... this. Adjust.
996 (terminal_ours): Rename to ...
997 (child_terminal_ours): ... this.
998 (terminal_ours_1): Rename to ...
999 (child_terminal_ours_1): ... this. Adjust.
1000 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1001 * windows-nat.c (do_initial_windows_stuff): Adjust.
1002 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1003 (gnu_terminal_init): ... this. Adjust.
1004 (gnu_target): Adjust.
1005 * inf-child.c (inf_child_target): Adjust.
1006
5a1e8c7a
DE
10072014-03-13 Doug Evans <xdje42@gmail.com>
1008
1009 PR guile/16612
1010 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1011 new eq?-hashtab.
1012
350e1a76
DE
10132014-03-13 Doug Evans <xdje42@gmail.com>
1014
1015 * value.c (record_latest_value): Call release_value_or_incref
1016 instead of release_value.
1017
a69900ae
PA
10182014-03-13 Pedro Alves <palves@redhat.com>
1019
1020 * procfs.c (procfs_target): Don't override to_shortname,
1021 to_longname or to_doc.
1022
5db9f0bd
PA
10232014-03-13 Pedro Alves <palves@redhat.com>
1024
1025 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1026 Unix in user visible strings.
1027
5e3a2c38
SS
10282014-03-12 Stan Shebs <stan@codesourcery.com>
1029
1030 * gdbtypes.h: Annotate comments for Doxygen, add a page
1031 block comment with some general info.
1032
8bc2fe48
PA
10332014-03-12 Pedro Alves <palves@redhat.com>
1034
1035 * infcmd.c (prepare_execution_command): New function, factored out
1036 from several execution commands.
1037 (run_command_1, continue_command, step_1, jump_command)
1038 (signal_command, until_command, advance_command, finish_command)
1039 (attach_command): Use prepare_execution_command.
1040
638c5f49
OJ
10412014-03-12 Omair Javaid <omair.javaid@linaro.org>
1042
1043 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1044 (MAX_BPTS): Define.
1045 (MAX_WPTS): Define.
1046 (struct arm_linux_thread_points): Removed.
1047 (struct arm_linux_process_info): New.
1048 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1049 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1050 (arm_linux_find_breakpoints_by_tid): Removed.
1051 (struct arch_lwp_info): New.
1052 (arm_linux_find_process_pid): New functions.
1053 (arm_linux_add_process): New functions.
1054 (arm_linux_process_info_get): New functions.
1055 (arm_linux_forget_process): New function.
1056 (arm_linux_get_debug_reg_state): New function.
1057 (struct update_registers_data): New.
1058 (update_registers_callback): New function.
1059 (arm_linux_insert_hw_breakpoint1): Updated.
1060 (arm_linux_remove_hw_breakpoint1): Updated.
1061 (arm_linux_insert_hw_breakpoint): Updated.
1062 (arm_linux_remove_hw_breakpoint): Updated.
1063 (arm_linux_insert_watchpoint): Updated.
1064 (arm_linux_remove_watchpoint): Updated.
1065 (arm_linux_new_thread): Updated.
1066 (arm_linux_prepare_to_resume): New function.
1067 (arm_linux_new_fork): New function.
1068 (_initialize_arm_linux_nat): Updated.
1069
6d03af93
PA
10702014-03-12 Pedro Alves <palves@redhat.com>
1071
1072 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1073
b3ccfe11
TT
10742014-03-12 Tom Tromey <tromey@redhat.com>
1075
1076 * inf-child.c (return_zero): New function.
1077 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1078 * aix-thread.c (aix_thread_inferior_created): New function.
1079 (aix_thread_attach): Remove.
1080 (init_aix_thread_ops): Don't set to_attach.
1081 (_initialize_aix_thread): Register inferior_created observer.
1082 * corelow.c (init_core_ops): Don't set to_attach or
1083 to_create_inferior.
1084 * exec.c (init_exec_ops): Don't set to_attach or
1085 to_create_inferior.
1086 * infcmd.c (run_command_1): Use find_run_target. Make direct
1087 target calls.
1088 (attach_command): Use find_attach_target. Make direct target
1089 calls.
1090 * record-btrace.c (init_record_btrace_ops): Don't set
1091 to_create_inferior.
1092 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1093 Remove.
1094 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1095 set to_create_inferior.
1096 * target.c (complete_target_initialization): Add assertion.
1097 (target_create_inferior): Remove.
1098 (find_default_attach, find_default_create_inferior): Remove.
1099 (find_attach_target, find_run_target): New functions.
1100 (find_default_is_async_p, find_default_can_async_p)
1101 (target_supports_non_stop, target_attach): Remove.
1102 (init_dummy_target): Don't set to_create_inferior or
1103 to_supports_non_stop.
1104 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1105 TARGET_DEFAULT_FUNC.
1106 <to_create_inferior>: Add comment.
1107 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1108 TARGET_DEFAULT_RETURN.
1109 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1110 (find_attach_target, find_run_target): Declare.
1111 (target_create_inferior): Remove.
1112 (target_has_execution_1): Update comment.
1113 (target_supports_non_stop): Remove.
1114 * target-delegates.c: Rebuild.
1115
91f83b02
PA
11162014-03-12 Pedro Alves <palves@redhat.com>
1117
1118 * inf-child.h: Update comment to not mention Unix.
1119
f1aea813
PA
11202014-03-12 Pedro Alves <palves@redhat.com>
1121
1122 * inf-child.c: Update top comment to not mention Unix. Add
1123 generic comment describing how this target is meant to be used.
1124 (inf_child_post_attach, inf_child_post_startup_inferior)
1125 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1126 Unix in comment.
1127
ee8e9165
PA
11282014-03-12 Pedro Alves <palves@redhat.com>
1129
1130 * nto-procfs.c: Include inf-child.h.
1131 (procfs_ops): Delete global.
1132 (procfs_can_run): Delete method.
1133 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1134 target pointer instead of referencing procfs_ops.
1135 (procfs_prepare_to_store): Delete.
1136 (init_procfs_ops): Delete function.
1137 (procfs_target): New function, based on init_procfs_ops, but
1138 inherit inf_child_target.
1139 (_initialize_procfs): Use procfs_target.
1140
51a9c8c5
PA
11412014-03-12 Pedro Alves <palves@redhat.com>
1142
1143 * windows-nat.c: Include inf-child.h.
1144 (windows_ops): Delete global.
1145 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1146 methods.
1147 (init_windows_ops): Delete function.
1148 (windows_target): New function, based on init_windows_ops, but
1149 inherit inf_child_target.
1150 (_initialize_windows_nat): Use windows_target. Install x86
1151 specific target methods here.
1152
c1966e26
DE
11532014-03-10 Doug Evans <xdje42@gmail.com>
1154
1155 * guile/guile.c (call_initialize_gdb_module): New function.
1156 (initialize_guile): Replace call to scm_init_guile with call to
1157 scm_with_guile.
1158
023db19c
JB
11592014-03-10 Joel Brobecker <brobecker@adacore.com>
1160
1161 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1162 in call to TYPE_CODE macro.
1163
5ec18f2b
JG
11642014-03-10 Jerome Guitton <guitton@adacore.com>
1165
8668be63
JB
1166 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1167 Resolve tagged types to full view.
5ec18f2b 1168
7d03f2eb
HZ
11692014-03-10 Hui Zhu <hui@codesourcery.com>
1170
1171 * target.h (target_insert_breakpoint): Remove "hardware" from its
1172 comments.
1173
c5164cbc
DE
11742014-03-07 Doug Evans <dje@google.com>
1175
1176 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1177
c4a3fee2
DE
11782014-03-07 Doug Evans <dje@google.com>
1179
1180 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1181 Remove unused local comp_dir_attr. Assert exactly one of
1182 stub_comp_unit_die, stub_comp_dir is non-NULL.
1183
3156469c
JB
11842014-03-07 Joel Brobecker <brobecker@adacore.com>
1185
1186 * target.h (complete_target_initialization, add_target):
1187 Add comment.
1188
c1a7b7c6
PA
11892014-03-07 Pedro Alves <palves@redhat.com>
1190
1191 * go32-nat.c: Include inf-child.h.
1192 (go32_ops): Delete global.
1193 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1194 Delete methods.
1195 (go32_create_inferior): Push the passed in target pointer instead
1196 of referencing go32_ops.
1197 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1198 (go32_target): New function, based on init_go32_ops, but inherit
1199 inf_child_target.
1200 (_initialize_go32_nat): Use go32_target. Move parts of
1201 init_go32_ops here.
1202
d3c1a85f
JB
12032014-03-06 Joel Brobecker <brobecker@adacore.com>
1204
1205 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1206 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1207 SYMBOL_VALUE_ADDRESS.
1208 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1209
5fa1d40e
YQ
12102014-03-06 Yao Qi <yao@codesourcery.com>
1211
1212 * breakpoint.c (get_tracepoint_by_number): Remove argument
1213 optional_p. All callers updated. Adjust comments. Update
1214 output message.
1215 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1216
0c13193f
YQ
12172014-03-06 Yao Qi <yao@codesourcery.com>
1218
1219 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1220 early if get_number returns zero. Use 'p' instead of 'args'.
1221
2217da06
YQ
12222014-03-06 Yao Qi <yao@codesourcery.com>
1223
1224 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1225 message.
1226
cc3da688
YQ
12272014-03-06 Yao Qi <yao@codesourcery.com>
1228
1229 PR breakpoints/16508
1230 * tracepoint.c (check_trace_running): New function.
1231 (trace_find_command): Move code to check_trace_running and
1232 call check_trace_running.
1233 (trace_find_pc_command): Likewise.
1234 (trace_find_tracepoint_command): Likewise.
1235 (trace_find_line_command): Likewise.
1236 (trace_find_range_command): Likewise.
1237 * tracepoint.h (check_trace_running): Likewise.
1238 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1239
6a5f844b
YQ
12402014-03-06 Yao Qi <yao@codesourcery.com>
1241
1242 * target.h (struct target_ops) <to_traceframe_info>: Use
1243 TARGET_DEFAULT_NORETURN (tcomplain ()).
1244 * target-delegates.c: Regenerated.
1245
0f26cec1
PA
12462014-03-05 Pedro Alves <palves@redhat.com>
1247
1248 PR gdb/16575
1249 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1250 void. Update comment.
1251 (dcache_xfer_memory): Delete.
1252 (dcache_read_memory_partial): New, based on the read bits of
1253 dcache_xfer_memory.
1254 (dcache_update): Add status parameter. Use ULONGEST for len, and
1255 adjust. Discard cache lines if the reason for the update was
1256 error.
1257 * dcache.h (dcache_xfer_memory): Delete declaration.
1258 (dcache_read_memory_partial): New declaration.
1259 (dcache_update): Update prototype.
1260 * target.c (raw_memory_xfer_partial): Update the dcache here.
1261 (memory_xfer_partial_1): Don't handle dcache writes here.
1262
b2b255bd
MF
12632014-03-05 Mike Frysinger <vapier@gentoo.org>
1264
1265 * remote-sim.c (gdbsim_load): Add const to prog.
1266
5d9cf8a4
TT
12672014-03-03 Tom Tromey <tromey@redhat.com>
1268
1269 * elfread.c (probe_key): Change to bfd_data.
1270 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1271 now per-BFD, not per-objfile.
1272 * stap-probe.c (stap_probe_destroy): Update comment.
1273 (handle_stap_probe): Allocate on the per-BFD obstack.
1274
729662a5
TT
12752014-03-03 Tom Tromey <tromey@redhat.com>
1276
1277 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1278 * breakpoint.c (create_longjmp_master_breakpoint): Use
1279 get_probe_address.
1280 (add_location_to_breakpoint, bkpt_probe_insert_location)
1281 (bkpt_probe_remove_location): Update.
1282 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1283 * elfread.c (elf_symfile_relocate_probe): Remove.
1284 (elf_probe_fns): Update.
1285 (insert_exception_resume_breakpoint): Change type of "probe"
1286 parameter to bound_probe.
1287 (check_exception_resume): Update.
1288 * objfiles.c (objfile_relocate1): Don't relocate probes.
1289 * probe.c (bound_probe_s): New typedef.
1290 (parse_probes): Use get_probe_address. Set sal's objfile.
1291 (find_probe_by_pc): Return a bound_probe.
1292 (collect_probes): Return a VEC(bound_probe_s).
1293 (compare_probes): Update.
1294 (gen_ui_out_table_header_info): Change type of "probes"
1295 parameter. Update.
1296 (info_probes_for_ops): Update.
1297 (get_probe_address): New function.
1298 (probe_safe_evaluate_at_pc): Update.
1299 * probe.h (struct probe_ops) <get_probe_address>: New field.
1300 <set_semaphore, clear_semaphore>: Add objfile parameter.
1301 (struct probe) <objfile>: Remove field.
1302 <arch>: New field.
1303 <address>: Update comment.
1304 (struct bound_probe): New.
1305 (find_probe_by_pc): Return a bound_probe.
1306 (get_probe_address): Declare.
1307 * solib-svr4.c (struct probe_and_action) <address>: New field.
1308 (hash_probe_and_action, equal_probe_and_action): Update.
1309 (register_solib_event_probe): Add address parameter.
1310 (solib_event_probe_at): Update.
1311 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1312 get_probe_address.
1313 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1314 (stap_get_probe_address): New function.
1315 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1316 (compile_probe_arg): Update.
1317 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1318 address.
1319 (handle_stap_probe): Don't relocate the probe.
1320 (stap_relocate): Remove.
1321 (stap_gen_info_probes_table_values): Update.
1322 (stap_probe_ops): Remove stap_relocate.
1323 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1324 (debug_sym_probe_fns): Update.
1325 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1326 * symtab.c (init_sal): Use memset.
1327 * symtab.h (struct symtab_and_line) <objfile>: New field.
1328 * tracepoint.c (start_tracing, stop_tracing): Update.
1329
ff887920
TT
13302014-03-03 Tom Tromey <tromey@redhat.com>
1331
1332 * probe.h (parse_probes, find_probe_by_pc)
1333 (find_probes_in_objfile): Fix comments.
1334
f0407826
DE
13352014-03-02 Doug Evans <xdje42@gmail.com>
1336
1337 * infrun.c (handle_signal_stop): Replace test for
1338 TARGET_WAITKIND_STOPPED with an assert.
1339
35e6a711
DE
13402014-03-02 Doug Evans <xdje42@gmail.com>
1341
1342 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1343
667f9d0b
DE
13442014-03-02 Doug Evans <xdje42@gmail.com>
1345
1346 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1347
dc92ace0
MK
13482014-03-01 Mark Kettenis <kettenis@gnu.org>
1349
1350 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1351
a900370f
MK
13522014-03-01 Mark Kettenis <kettenis@gnu.org>
1353
1354 * i386obsd-nat.c: Include "obsd-nat.h".
1355 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1356 add_target.
1357 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1358
b72a7981
MK
13592014-03-01 Mark Kettenis <kettenis@gnu.org>
1360
1361 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1362
96c70aba
MK
13632014-03-01 Mark Kettenis <kettenis@gnu.org>
1364
1365 * mips64obsd-nat.c: Include "obsd-nath".
1366 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1367 add_target
1368 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1369
874a80af
MK
13702014-03-01 Mark Kettenis <kettenis@gnu.org>
1371
8fd408f1
MK
1372 * amd64obsd-nat.c: Include "obsd-nat,h.
1373 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1374 add_target.
874a80af
MK
1375 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1376
9cf95373
SC
13772014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1378
1379 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1380 (find_overload_match): Update call to find_oload_champ.
1381 (find_oload_champ_namespace_loop): Likewise
1382
863e4da4
MK
13832014-02-28 Mark Kettenis <kettenis@gnu.org>
1384
025cac40
MK
1385 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1386
1ed586ce
MK
1387 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1388 * config/sparc/obsd64.mh: New file.
1389 * sparc64obsd-nat.c: New file.
1390
863e4da4
MK
1391 * obsd-nat.h: New file.
1392 * obsd-nat.c: New file.
1393 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1394 (ALLDEPFILES): Add obsd-nat.c.
1395
89de4da4
TT
13962014-02-28 Tom Tromey <tromey@redhat.com>
1397
1398 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1399 * cli-out.h (cli_ui_out_impl): Now const.
1400 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1401 * ui-out.c (struct ui_out) <impl>: Now const.
1402 (default_ui_out_impl): Now const.
1403 (ui_out_new): Make 'impl' parameter const.
1404 * ui-out.h (ui_out_new): Update.
1405
c725e7b6
MK
14062014-02-27 Mark Kettenis <kettenis@gnu.org>
1407
1408 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1409
670b46b3
MK
14102014-02-27 Mark Kettenis <kettenis@gnu.org>
1411
1412 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1413
c91550fc
JK
14142014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 Additional PR 8882 fix.
1417 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1418
2fa0369e
PA
14192014-02-27 Pedro Alves <palves@redhat.com>
1420
1421 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1422 isn't set.
1423
d632a097
PA
14242014-02-27 Pedro Alves <palves@redhat.com>
1425
1426 PR 12702
1427 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1428 * nat/linux-waitpid.c: Include string.h.
1429 (status_to_str): Moved here and made extern.
1430 * nat/linux-waitpid.h (status_to_str): New declaration.
1431
2ebd5a35
HZ
14322014-02-27 Hui Zhu <hui@codesourcery.com>
1433
1434 PR 12702
1435 * infrun.c (ptid_match): Move ...
1436 * common/ptid.c (ptid_match): ... here.
1437 * inferior.h (ptid_match): Move ...
1438 * common/ptid.h (ptid_match): ... here.
1439
3cdd631f
MK
14402014-02-27 Mark Kettenis <kettenis@gnu.org>
1441
1442 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
1443 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
1444 gdb_target_obs.
1445
bee30a64
MK
14462014-02-27 Mark Kettenis <kettenis@gnu.org>
1447
1448 * obsd-tdep.c (obsd_auxv_parse): New function.
1449 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
1450
1451 * gdbarch.sh (auxv_parse): New.
1452 * gdbarch.h: Regenerated.
1453 * gdbarch.c: Regenerated.
1454 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
1455
7a5a839f
LC
14562014-02-26 Ludovic Courtès <ludo@gnu.org>
1457
1458 * guile/scm-value.c (gdbscm_history_append_x): New function.
1459 (value_functions): Add it.
1460
31aa7e4e
JB
14612014-02-27 Joel Brobecker <brobecker@adacore.com>
1462
1463 * dwarf2read.c (attr_value_as_address): New function.
1464 (dwarf2_find_base_address, read_call_site_scope): Use
1465 attr_value_as_address in place of DW_ADDR.
1466 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
1467 the low and high addresses. Slight rework of the handling
1468 of the high pc being a constant form, and limit it to
1469 DWARF verson 4 or higher.
1470 (dwarf2_record_block_ranges): Likewise.
1471 (read_partial_die): Likewise.
1472 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
1473
9b333ba3
TT
14742014-02-26 Tom Tromey <tromey@redhat.com>
1475
1476 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
1477
5f6cac40
TT
14782014-02-26 Tom Tromey <tromey@redhat.com>
1479
1480 * elfread.c (elf_read_minimal_symbols): Return early if
1481 minimal symbols have already been read. Add "ei" parameter.
1482 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
1483 * minsyms.c (prim_record_minimal_symbol_full): Update.
1484 * objfiles.h (struct objstats) <n_minsyms>: Move...
1485 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
1486 * symmisc.c (print_objfile_statistics): Update.
1487
2750ef27
TT
14882014-02-26 Tom Tromey <tromey@redhat.com>
1489
1490 * elfread.c (elf_read_minimal_symbols): New function, from
1491 elf_symfile_read.
1492 (elf_symfile_read): Call it.
1493
34643a32
TT
14942014-02-26 Tom Tromey <tromey@redhat.com>
1495
1496 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
1497 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1498 (lookup_minimal_symbol_solib_trampoline)
1499 (lookup_minimal_symbol_by_pc_section_1)
1500 (lookup_minimal_symbol_and_objfile): Update.
1501 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
1502 Don't allocate a minimal symbol if minsyms have already been read.
1503 (build_minimal_symbol_hash_tables): Update.
1504 (install_minimal_symbols): Do nothing if minsyms already read.
1505 Use the per-BFD obstack.
1506 (terminate_minimal_symbol_table): Use the per-BFD obstack.
1507 * objfiles.c (allocate_objfile): Call
1508 terminate_minimal_symbol_table later.
1509 (have_minimal_symbols): Update.
1510 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
1511 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
1512 Move from struct objfile.
1513 <minsyms_read>: New field.
1514 (struct objfile) <msymbols, minimal_symbol_count,
1515 msymbol_hash, msymbol_demangled_hash>: Move.
1516 (ALL_OBJFILE_MSYMBOLS): Update.
1517 * symfile.c (read_symbols): Set minsyms_read.
1518 (reread_symbols): Update.
1519 * symmisc.c (dump_objfile, dump_msymbols): Update.
1520
2273f0ac
TT
15212014-02-26 Tom Tromey <tromey@redhat.com>
1522
1523 * minsyms.c (msymbols_sort): Remove.
1524 * minsyms.h (msymbols_sort): Remove.
1525 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
1526 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
1527 * elfread.c (elf_symtab_read): Don't add section offsets.
1528 * xcoffread.c (record_minimal_symbol): Don't add section offset
1529 to minimal symbol address.
1530 * somread.c (text_offset, data_offset): Remove.
1531 (som_symtab_read): Don't add section offsets to minimal symbol
1532 addresses.
1533 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
1534 Don't add section offsets to minimal symbols.
1535 * coffread.c (coff_symtab_read): Don't add section offsets
1536 to minimal symbol addresses.
1537 * machoread.c (macho_symtab_add_minsym): Don't add section offset
1538 to minimal symbol addresses.
1539 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
1540 section offset to minimal symbol addresses.
1541 * mdebugread.c (parse_partial_symbols): Don't add section
1542 offset to minimal symbol addresses.
1543 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
1544 offset to minimal symbol addresses.
1545
77e371c0
TT
15462014-02-26 Tom Tromey <tromey@redhat.com>
1547
1548 * ada-lang.c (ada_main_name): Update.
1549 (ada_add_standard_exceptions): Update.
1550 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1551 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1552 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
1553 * auxv.c (ld_so_xfer_auxv): Update.
1554 * avr-tdep.c (avr_scan_prologue): Update.
1555 * ax-gdb.c (gen_var_ref): Update.
1556 * blockframe.c (get_pc_function_start)
1557 (find_pc_partial_function_gnu_ifunc): Update.
1558 * breakpoint.c (create_overlay_event_breakpoint)
1559 (create_longjmp_master_breakpoint)
1560 (create_std_terminate_master_breakpoint)
1561 (create_exception_master_breakpoint): Update.
1562 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1563 * c-valprint.c (c_val_print): Update.
1564 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1565 * common/agent.c (agent_look_up_symbols): Update.
1566 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1567 * dwarf2loc.c (call_site_to_target_addr): Update.
1568 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
1569 * elfread.c (elf_gnu_ifunc_record_cache)
1570 (elf_gnu_ifunc_resolve_by_got): Update.
1571 * findvar.c (default_read_var_value): Update.
1572 * frame.c (inside_main_func): Update.
1573 * frv-tdep.c (frv_frame_this_id): Update.
1574 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1575 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1576 Update.
1577 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
1578 (hppa_hpux_find_dummy_bpaddr): Update.
1579 * hppa-tdep.c (hppa_symbol_address): Update.
1580 * infcmd.c (until_next_command): Update.
1581 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
1582 Update.
1583 * linespec.c (minsym_found, add_minsym): Update.
1584 * linux-nat.c (get_signo): Update.
1585 * linux-thread-db.c (inferior_has_bug): Update.
1586 * m32c-tdep.c (m32c_return_value)
1587 (m32c_m16c_address_to_pointer): Update.
1588 * m32r-tdep.c (m32r_frame_this_id): Update.
1589 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1590 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1591 * maint.c (maintenance_translate_address): Update.
1592 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
1593 (frob_address): New function.
1594 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
1595 frob_address. Rename parameter to "pc_in".
1596 (compare_minimal_symbols, compact_minimal_symbols): Use raw
1597 addresses.
1598 (find_solib_trampoline_target, minimal_symbol_upper_bound):
1599 Update.
1600 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1601 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
1602 * objc-lang.c (find_objc_msgsend): Update.
1603 * objfiles.c (objfile_relocate1): Update.
1604 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1605 * p-valprint.c (pascal_val_print): Update.
1606 * parse.c (write_exp_msymbol): Update.
1607 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
1608 (ppc_elfv2_skip_entrypoint): Update.
1609 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1610 * printcmd.c (build_address_symbolic, msym_info)
1611 (address_info): Update.
1612 * proc-service.c (ps_pglobal_lookup): Update.
1613 * psymtab.c (find_pc_sect_psymtab_closer)
1614 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
1615 Change msymbol parameter to bound_minimal_symbol.
1616 * ravenscar-thread.c (get_running_thread_id): Update.
1617 * remote.c (remote_check_symbols): Update.
1618 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
1619 address.
1620 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1621 * solib-dsbt.c (lm_base): Update.
1622 * solib-frv.c (lm_base, main_got): Update.
1623 * solib-irix.c (locate_base): Update.
1624 * solib-som.c (som_solib_create_inferior_hook)
1625 (link_map_start): Update.
1626 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
1627 * solib-svr4.c (elf_locate_base, enable_break): Update.
1628 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1629 (flush_ea_cache): Update.
1630 * stabsread.c (define_symbol, scan_file_globals): Update.
1631 * stack.c (find_frame_funname): Update.
1632 * symfile-debug.c (debug_qf_expand_symtabs_matching)
1633 (debug_qf_find_pc_sect_symtab): Update.
1634 * symfile.c (simple_read_overlay_table)
1635 (simple_overlay_update): Update.
1636 * symfile.h (struct quick_symbol_functions)
1637 <find_pc_sect_symtab>: Change type of msymbol to
1638 bound_minimal_symbol.
1639 * symmisc.c (dump_msymbols): Update.
1640 * symtab.c (find_pc_sect_symtab_via_partial)
1641 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
1642 (search_symbols, print_msymbol_info): Update.
1643 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
1644 (MSYMBOL_VALUE_ADDRESS): Redefine.
1645 (BMSYMBOL_VALUE_ADDRESS): New macro.
1646 * tracepoint.c (scope_info): Update.
1647 * tui/tui-disasm.c (tui_find_disassembly_address)
1648 (tui_get_begin_asm_address): Update.
1649 * valops.c (find_function_in_inferior): Update.
1650 * value.c (value_static_field, value_fn_field): Update.
1651
3b7344d5
TT
16522014-02-26 Tom Tromey <tromey@redhat.com>
1653
1654 * ada-lang.c (ada_update_initial_language): Update.
1655 (ada_main_name, ada_has_this_exception_support): Update.
1656 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
1657 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1658 * arm-tdep.c (arm_skip_stub): Update.
1659 * auxv.c (ld_so_xfer_auxv): Update.
1660 * avr-tdep.c (avr_scan_prologue): Update.
1661 * ax-gdb.c (gen_var_ref): Update.
1662 * breakpoint.c (struct breakpoint_objfile_data)
1663 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
1664 type to bound_minimal_symbol.
1665 (create_overlay_event_breakpoint)
1666 (create_longjmp_master_breakpoint)
1667 (create_std_terminate_master_breakpoint)
1668 (create_exception_master_breakpoint): Update.
1669 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1670 * c-exp.y (classify_name): Update.
1671 * coffread.c (coff_symfile_read): Update.
1672 * common/agent.c (agent_look_up_symbols): Update.
1673 * d-lang.c (d_main_name): Update.
1674 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
1675 * dec-thread.c (enable_dec_thread): Update.
1676 * dwarf2loc.c (call_site_to_target_addr): Update.
1677 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
1678 * eval.c (evaluate_subexp_standard): Update.
1679 * findvar.c (struct minsym_lookup_data) <result>: Change type
1680 to bound_minimal_symbol.
1681 <objfile>: Remove.
1682 (minsym_lookup_iterator_cb, default_read_var_value): Update.
1683 * frame.c (inside_main_func): Update.
1684 * frv-tdep.c (frv_frame_this_id): Update.
1685 * gcore.c (call_target_sbrk): Update.
1686 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1687 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
1688 Update.
1689 * go-lang.c (go_main_name): Update.
1690 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1691 (hppa_hpux_find_import_stub_for_addr): Update.
1692 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
1693 Update. Change return type.
1694 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
1695 type.
1696 * jit.c (jit_breakpoint_re_set_internal): Update.
1697 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
1698 Update.
1699 * linux-nat.c (get_signo): Update.
1700 * linux-thread-db.c (inferior_has_bug): Update
1701 * m32c-tdep.c (m32c_return_value)
1702 (m32c_m16c_address_to_pointer): Update.
1703 * m32r-tdep.c (m32r_frame_this_id): Update.
1704 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1705 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1706 * minsyms.c (lookup_minimal_symbol_internal): Rename to
1707 lookup_minimal_symbol. Change return type.
1708 (lookup_minimal_symbol): Remove.
1709 (lookup_bound_minimal_symbol): Update.
1710 (lookup_minimal_symbol_text): Change return type.
1711 (lookup_minimal_symbol_solib_trampoline): Change return type.
1712 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
1713 (lookup_minimal_symbol_solib_trampoline): Change return type.
1714 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1715 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1716 (value_nsstring, find_imps): Update.
1717 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1718 * p-lang.c (pascal_main_name): Update.
1719 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
1720 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1721 * proc-service.c (ps_pglobal_lookup): Update.
1722 * ravenscar-thread.c (get_running_thread_msymbol): Change
1723 return type.
1724 (has_ravenscar_runtime, get_running_thread_id): Update.
1725 * remote.c (remote_check_symbols): Update.
1726 * sol-thread.c (ps_pglobal_lookup): Update.
1727 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1728 * solib-dsbt.c (lm_base): Update.
1729 * solib-frv.c (lm_base, frv_relocate_section_addresses):
1730 Update.
1731 * solib-irix.c (locate_base): Update.
1732 * solib-som.c (som_solib_create_inferior_hook)
1733 (som_solib_desire_dynamic_linker_symbols, link_map_start):
1734 Update.
1735 * solib-spu.c (spu_enable_break): Update.
1736 * solib-svr4.c (elf_locate_base, enable_break): Update.
1737 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
1738 (flush_ea_cache): Update.
1739 * stabsread.c (define_symbol): Update.
1740 * symfile.c (simple_read_overlay_table): Update.
1741 * symtab.c (find_pc_sect_line): Update.
1742 * tracepoint.c (scope_info): Update.
1743 * tui-disasm.c (tui_get_begin_asm_address): Update.
1744 * value.c (value_static_field): Update.
1745
40c1a007
TT
17462014-02-26 Tom Tromey <tromey@redhat.com>
1747
1748 * minsyms.c (prim_record_minimal_symbol_full): Use
1749 SET_MSYMBOL_VALUE_ADDRESS.
1750 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
1751 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
1752 SET_MSYMBOL_VALUE_ADDRESS.
1753 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1754 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
1755
efd66ac6
TT
17562014-02-26 Tom Tromey <tromey@redhat.com>
1757
1758 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
1759 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
1760 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
1761 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
1762 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
1763 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
1764 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
1765 * ada-lang.c (ada_main_name): Update.
1766 (ada_lookup_simple_minsym): Update.
1767 (ada_make_symbol_completion_list): Update.
1768 (ada_add_standard_exceptions): Update.
1769 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
1770 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
1771 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1772 * arm-tdep.c (skip_prologue_function): Update.
1773 (arm_skip_stack_protector, arm_skip_stub): Update.
1774 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1775 (arm_wince_skip_main_prologue): Update.
1776 * auxv.c (ld_so_xfer_auxv): Update.
1777 * avr-tdep.c (avr_scan_prologue): Update.
1778 * ax-gdb.c (gen_var_ref): Update.
1779 * block.c (call_site_for_pc): Update.
1780 * blockframe.c (get_pc_function_start): Update.
1781 (find_pc_partial_function_gnu_ifunc): Update.
1782 * breakpoint.c (create_overlay_event_breakpoint): Update.
1783 (create_longjmp_master_breakpoint): Update.
1784 (create_std_terminate_master_breakpoint): Update.
1785 (create_exception_master_breakpoint): Update.
1786 (resolve_sal_pc): Update.
1787 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
1788 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
1789 Update.
1790 * c-valprint.c (c_val_print): Update.
1791 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1792 * coffread.c (coff_symfile_read): Update.
1793 * common/agent.c (agent_look_up_symbols): Update.
1794 * dbxread.c (find_stab_function_addr): Update.
1795 (end_psymtab): Update.
1796 * dwarf2loc.c (call_site_to_target_addr): Update.
1797 (func_verify_no_selftailcall): Update.
1798 (tailcall_dump): Update.
1799 (call_site_find_chain_1): Update.
1800 (dwarf_expr_reg_to_entry_parameter): Update.
1801 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1802 (elf_gnu_ifunc_resolve_by_got): Update.
1803 * f-valprint.c (info_common_command): Update.
1804 * findvar.c (read_var_value): Update.
1805 * frame.c (get_prev_frame_1): Update.
1806 (inside_main_func): Update.
1807 * frv-tdep.c (frv_skip_main_prologue): Update.
1808 (frv_frame_this_id): Update.
1809 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
1810 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1811 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1812 (gnuv3_skip_trampoline): Update.
1813 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
1814 (hppa64_hpux_in_solib_call_trampoline): Update.
1815 (hppa_hpux_skip_trampoline_code): Update.
1816 (hppa64_hpux_search_dummy_call_sequence): Update.
1817 (hppa_hpux_find_import_stub_for_addr): Update.
1818 (hppa_hpux_find_dummy_bpaddr): Update.
1819 * hppa-tdep.c (hppa_symbol_address)
1820 (hppa_lookup_stub_minimal_symbol): Update.
1821 * i386-tdep.c (i386_skip_main_prologue): Update.
1822 (i386_pe_skip_trampoline_code): Update.
1823 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1824 * infcall.c (get_function_name): Update.
1825 * infcmd.c (until_next_command): Update.
1826 * jit.c (jit_breakpoint_re_set_internal): Update.
1827 (jit_inferior_init): Update.
1828 * linespec.c (minsym_found): Update.
1829 (add_minsym): Update.
1830 * linux-fork.c (info_checkpoints_command): Update.
1831 * linux-nat.c (get_signo): Update.
1832 * linux-thread-db.c (inferior_has_bug): Update.
1833 * m32c-tdep.c (m32c_return_value): Update.
1834 (m32c_m16c_address_to_pointer): Update.
1835 (m32c_m16c_pointer_to_address): Update.
1836 * m32r-tdep.c (m32r_frame_this_id): Update.
1837 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
1838 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
1839 * maint.c (maintenance_translate_address): Update.
1840 * minsyms.c (add_minsym_to_hash_table): Update.
1841 (add_minsym_to_demangled_hash_table): Update.
1842 (msymbol_objfile): Update.
1843 (lookup_minimal_symbol): Update.
1844 (iterate_over_minimal_symbols): Update.
1845 (lookup_minimal_symbol_text): Update.
1846 (lookup_minimal_symbol_by_pc_name): Update.
1847 (lookup_minimal_symbol_solib_trampoline): Update.
1848 (lookup_minimal_symbol_by_pc_section_1): Update.
1849 (lookup_minimal_symbol_and_objfile): Update.
1850 (prim_record_minimal_symbol_full): Update.
1851 (compare_minimal_symbols): Update.
1852 (compact_minimal_symbols): Update.
1853 (build_minimal_symbol_hash_tables): Update.
1854 (install_minimal_symbols): Update.
1855 (terminate_minimal_symbol_table): Update.
1856 (find_solib_trampoline_target): Update.
1857 (minimal_symbol_upper_bound): Update.
1858 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
1859 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1860 (mips_skip_pic_trampoline_code): Update.
1861 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1862 * objc-lang.c (selectors_info): Update.
1863 (classes_info): Update.
1864 (find_methods): Update.
1865 (find_imps): Update.
1866 (find_objc_msgsend): Update.
1867 * objfiles.c (objfile_relocate1): Update.
1868 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
1869 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
1870 * p-valprint.c (pascal_val_print): Update.
1871 * parse.c (write_exp_msymbol): Update.
1872 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
1873 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
1874 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1875 * printcmd.c (build_address_symbolic): Update.
1876 (sym_info): Update.
1877 (address_info): Update.
1878 * proc-service.c (ps_pglobal_lookup): Update.
1879 * psymtab.c (find_pc_sect_psymtab_closer): Update.
1880 (find_pc_sect_psymtab): Update.
1881 * python/py-framefilter.c (py_print_frame): Update.
1882 * ravenscar-thread.c (get_running_thread_id): Update.
1883 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
1884 Update.
1885 * remote.c (remote_check_symbols): Update.
1886 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1887 (rs6000_skip_trampoline_code): Update.
1888 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
1889 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
1890 * solib-dsbt.c (lm_base): Update.
1891 * solib-frv.c (lm_base): Update.
1892 (main_got): Update.
1893 * solib-irix.c (locate_base): Update.
1894 * solib-som.c (som_solib_create_inferior_hook): Update.
1895 (som_solib_desire_dynamic_linker_symbols): Update.
1896 (link_map_start): Update.
1897 * solib-spu.c (spu_enable_break): Update.
1898 (ocl_enable_break): Update.
1899 * solib-svr4.c (elf_locate_base): Update.
1900 (enable_break): Update.
1901 * spu-tdep.c (spu_get_overlay_table): Update.
1902 (spu_catch_start): Update.
1903 (flush_ea_cache): Update.
1904 * stabsread.c (define_symbol): Update.
1905 (scan_file_globals): Update.
1906 * stack.c (find_frame_funname): Update.
1907 (frame_info): Update.
1908 * symfile.c (simple_read_overlay_table): Update.
1909 (simple_overlay_update): Update.
1910 * symmisc.c (dump_msymbols): Update.
1911 * symtab.c (fixup_section): Update.
1912 (find_pc_sect_line): Update.
1913 (skip_prologue_sal): Update.
1914 (search_symbols): Update.
1915 (print_msymbol_info): Update.
1916 (rbreak_command): Update.
1917 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
1918 (completion_list_objc_symbol): Update.
1919 (default_make_symbol_completion_list_break_on): Update.
1920 * tracepoint.c (scope_info): Update.
1921 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
1922 (tui_get_begin_asm_address): Update.
1923 * valops.c (find_function_in_inferior): Update.
1924 * value.c (value_static_field): Update.
1925 (value_fn_field): Update.
1926
50e65b17
TT
19272014-02-26 Tom Tromey <tromey@redhat.com>
1928
1929 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
1930 bound minimal symbols. Move code that knows about minsym
1931 table layout...
1932 * minsyms.c (minimal_symbol_upper_bound): ... here. New
1933 function.
1934 * minsyms.h (minimal_symbol_upper_bound): Declare.
1935 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
1936 minimal_symbol_upper_bound.
1937
1b588015
JB
19382014-02-27 Joel Brobecker <brobecker@adacore.com>
1939
1940 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
1941 Use the type's name if its basic type does not have a tag.
1942
dbb9c2b1
JB
19432014-02-27 Joel Brobecker <brobecker@adacore.com>
1944
1945 * dwarf2read.c (read_subrange_type): Add comment.
1946
55426c9d
JB
19472014-02-27 Joel Brobecker <brobecker@adacore.com>
1948
1949 * dwarf2read.c (update_enumeration_type_from_children): New
1950 function, mostly extracted from process_structure_scope.
1951 (read_enumeration_type): Call update_enumeration_type_from_children.
1952 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
1953 and flag_flag_enum fields.
1954
f2fce0ca
PA
19552014-02-26 Pedro Alves <palves@redhat.com>
1956
1957 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
1958 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
1959 to_xfer_partial method.
1960
7a44e40e
PA
19612014-02-26 Pedro Alves <palves@redhat.com>
1962
1963 * target.c (complete_target_initialization): Don't install
1964 default_xfer_partial as to_xfer_partial hook.
1965 (nomemory): Delete.
1966 (update_current_target): Don't INHERIT nor de_fault
1967 deprecated_xfer_memory. Delete de_fault macro.
1968 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
1969 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
1970 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
1971 field.
1972
bd265cd0
PA
19732014-02-26 Pedro Alves <palves@redhat.com>
1974
1975 * go32-nat.c (my_write_child): New function.
1976 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
1977 (go32_xfer_partial): New function.
1978 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
1979 Instead install a to_xfer_partial hook.
1980
9d46c4e5
PA
19812014-02-26 Pedro Alves <palves@redhat.com>
1982
1983 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
1984 to_xfer_partial helper. Rewrite.
1985 (procfs_xfer_partial): New function.
1986 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
1987 Install a to_xfer_partial hook.
1988
a1583b1f
PA
19892014-02-26 Pedro Alves <palves@redhat.com>
1990
1991 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
1992 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
1993 (m32r_xfer_partial): New function.
1994 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
1995 Install a to_xfer_partial hook.
1996
6df1b29f
PA
19972014-02-26 Pedro Alves <palves@redhat.com>
1998
1999 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2000 helper.
2001 (mips_xfer_partial): New function.
2002 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2003 hook. Install a to_xfer_partial hook.
2004
dc53a7ad
JB
20052014-02-26 Joel Brobecker <brobecker@adacore.com>
2006
2007 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2008 * gdbtypes.c (create_array_type_with_stride): New function,
2009 renaming create_array_type, but with an added parameter
2010 called "bit_stride".
2011 (create_array_type): Re-implement using
2012 create_array_type_with_stride.
2013 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2014 and DW_AT_bit_stride attributes.
2015
12ab52e9
PA
20162014-02-26 Pedro Alves <palves@redhat.com>
2017
2018 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2019 task-specific breakpoints.
2020
d16461ae
PA
20212014-02-25 Pedro Alves <palves@redhat.com>
2022
2023 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2024 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2025
a8b16220
SS
20262014-02-25 Stan Shebs <stan@codesourcery.com>
2027
2028 * defs.h: Annotate comments for Doxygen.
2029
b9e795ee
TT
20302014-02-25 Tom Tromey <tromey@redhat.com>
2031
2032 * target.h (target_ignore): Don't declare.
2033 * target.c (target_ignore): Remove.
2034
849c862e
JK
20352014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2036
2037 PR gdb/16626
2038 * auto-load.c (auto_load_objfile_script_1): Change filename to
2039 debugfile.
2040
475109d8
JB
20412014-02-25 Joel Brobecker <brobecker@adacore.com>
2042
2043 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2044 documentation. Adjust prototype to match the target_ops
2045 to_xfer_partial method. Adjust implementation accordingly.
2046
e186c3bd
HZ
20472014-02-25 Hui Zhu <hui@codesourcery.com>
2048
2049 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2050 to_traceframe_info.
2051
6d451942
KB
20522014-02-25 Kevin Buettner <kevinb@redhat.com>
2053
041ab8b4 2054 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
2055 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2056 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2057 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2058 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2059 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2060 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2061 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2062 New constants.
2063 (rl78_register_type): Use a data pointer type for SP and
2064 new pseudo registers mentioned above. Use a 16 bit integer
2065 type for all other register pairs.
2066 (rl78_register_name, rl78_g10_register_name): Update for
2067 new pseudo registers.
2068 (rl78_pseudo_register_read): Likewise.
2069 (rl78_pseudo_register_write): Likewise.
2070 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2071 to the newly added pseudo registers.
2072
eddf0bae
DE
20732014-02-24 Doug Evans <dje@google.com>
2074
2075 * value.c (record_latest_value): Fix comment.
2076 * printcmd.c (print_command_1): Remove code to handle -1 return from
2077 record_latest_value.
2078
e96027e0
PA
20792014-02-24 Pedro Alves <palves@redhat.com>
2080
2081 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2082 deprecated_xfer_memory hook.
2083 (procfs_xfer_partial): Call procfs_xfer_memory instead
2084 of the deprecated_xfer_memory target hook.
2085 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2086 helper.
2087
0837c976
YZ
20882014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2089
2090 * windows-nat.c (windows_xfer_shared_libraries): Return
2091 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2092 requested object is TARGET_OBJECT_LIBRARIES.
2093
bc113b4e
YQ
20942014-02-24 Yao Qi <yao@codesourcery.com>
2095
2096 * target.h (enum target_xfer_status)
2097 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2098 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2099 explicitly. New.
2100 * corefile.c (memory_error_message): User updated.
2101 * exec.c (section_table_read_available_memory): Likewise.
2102 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2103 * target.c (target_xfer_status_to_string): Likewise.
2104 (raw_memory_xfer_partial): Likewise.
2105 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2106 * valops.c (read_value_memory): Likewise.
2107 * exec.h: Update comments.
2108
01cb8804
YQ
21092014-02-24 Yao Qi <yao@codesourcery.com>
2110
2111 * target.c (target_xfer_status_to_string): Rename argument err
2112 to status.
2113 * target.h (target_xfer_status_to_string): Update declaration.
2114 Replace target_xfer_error_to_string with
2115 target_xfer_status_to_string in comment.
2116
93063aa6
YQ
21172014-02-24 Yao Qi <yao@codesourcery.com>
2118
2119 * mips-linux-nat.c (super_close): Update its type.
2120 (mips_linux_close): Pass 'self' to super_close.
2121
5c328c05
YQ
21222014-02-24 Yao Qi <yao@codesourcery.com>
2123
2124 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2125 * corefile.c (read_memory): Adjusted.
2126 * target.c (target_write_with_progress): Adjusted.
2127
f73023dd
YQ
21282014-02-23 Yao Qi <yao@codesourcery.com>
2129
2130 Revert two patches:
2131
2132 2013-10-25 Yao Qi <yao@codesourcery.com>
2133
2134 * remote.c (remote_traceframe_info): Return early if
2135 traceframe is not selected.
2136
2137 2013-07-19 Yao Qi <yao@codesourcery.com>
2138
2139 * target.c (update_current_target): Change the default action
2140 of 'to_traceframe_info' from tcomplain to return_zero.
2141 * target.h (struct target_ops) <to_traceframe_info>: Add more
2142 comments.
2143
5a2eb0ef
YQ
21442014-02-23 Yao Qi <yao@codesourcery.com>
2145
2146 * valops.c (read_value_memory): Rewrite it. Call
2147 target_xfer_partial in a loop.
2148 * exec.h (section_table_available_memory): Remove declaration.
2149 Move comments to ...
2150 * exec.c (section_table_available_memory): ... here. Make it
2151 static.
2152
1ee79381
YQ
21532014-02-23 Yao Qi <yao@codesourcery.com>
2154
2155 * exec.c (section_table_read_available_memory): New function.
2156 * exec.h (section_table_read_available_memory): Declare.
2157 * ctf.c (ctf_xfer_partial): Call
2158 section_table_read_available_memory.
2159 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2160
1ca49d37
YQ
21612014-02-23 Yao Qi <yao@codesourcery.com>
2162
2163 * ctf.c (ctf_xfer_partial): Move code to ...
2164 * exec.c (exec_read_partial_read_only): ... it. New function.
2165 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2166 * tracefile.c: Include "exec.h".
2167 * exec.h (exec_read_partial_read_only): Declare.
2168
a283690e
YQ
21692014-02-23 Yao Qi <yao@codesourcery.com>
2170
2171 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2172 (tfile_has_memory): Remove.
2173 (init_tfile_ops): Don't set fields to_has_all_memory and
2174 to_has_memory of tfile_ops.
2175 * tracefile.c (tracefile_has_all_memory): New function.
2176 (tracefile_has_memory): New function.
2177 (init_tracefile_ops): Initialize fields to_has_all_memory and
2178 to_has_memory of 'ops'.
2179
12e03cd0
YQ
21802014-02-23 Yao Qi <yao@codesourcery.com>
2181
2182 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2183 (ctf_thread_alive, ctf_get_trace_status): Remove.
2184 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2185 init_tracefile_ops.
2186 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2187 (tfile_has_stack, tfile_has_registers): Remove.
2188 (tfile_thread_alive): Remove.
2189 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2190 init_tracefile_ops.
2191 * tracefile.c (tracefile_has_stack): New function.
2192 (tracefile_has_registers): New function.
2193 (tracefile_thread_alive): New function.
2194 (tracefile_get_trace_status): New function.
2195 (init_tracefile_ops): New function.
2196 * tracefile.h (init_tracefile_ops): Declare.
2197
11395323
YQ
21982014-02-23 Yao Qi <yao@codesourcery.com>
2199
2200 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2201 (O_LARGEFILE): Likewise.
2202 (tfile_ops): Likewise.
2203 (TRACE_HEADER_SIZE): Likewise.
2204 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2205 (cur_data_size): Likewise.
2206 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2207 (tfile_close, tfile_files_info): Likewise.
2208 (tfile_get_trace_status): Likewise.
2209 (tfile_get_tracepoint_status): Likewise.
2210 (tfile_get_traceframe_address): Likewise.
2211 (tfile_trace_find, match_blocktype): Likewise.
2212 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2213 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2214 (tfile_get_trace_state_variable_value): Likewise.
2215 (tfile_has_all_memory, tfile_has_memory): Likewise.
2216 (tfile_has_stack, tfile_has_registers): Likewise.
2217 (tfile_thread_alive, build_traceframe_info): Likewise.
2218 (tfile_traceframe_info, init_tfile_ops): Likewise.
2219 (_initialize_tracepoint): Don't call init_tfile_ops
2220 and add_target_with_completer.
2221 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2222 exec.h, completer.h and filenames.h.
2223 (_initialize_tracefile_tfile): New function.
2224
7951c4eb
YQ
22252014-02-23 Yao Qi <yao@codesourcery.com>
2226
2227 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2228 tracefile-tfile.o.
2229 (HFILES_NO_SRCDIR): Add tracefile.h.
2230 * ctf.c: Include "tracefile.h".
2231 * tracefile.h: New file.
2232 * tracefile.c: New file
2233 * tracefile-tfile.c: New file.
2234 * tracepoint.c: Include "tracefile.h".
2235 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2236 (stop_reason_names): Add const.
2237 (trace_file_writer_xfree): Move it to tracefile.c.
2238 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2239 (trace_save_ctf): Likewise.
2240 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2241 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2242 (tfile_write_header, tfile_write_regblock_type): Likewise.
2243 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2244 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2245 (tfile_write_raw_data, tfile_end): Likewise.
2246 (tfile_trace_file_writer_new): Likewise.
2247 (free_uploaded_tp): Make it extern.
2248 (free_uploaded_tsv): Make it extern.
2249 (_initialize_tracepoint): Move code to register command 'tsave'
2250 to tracefile.c.
2251 * tracepoint.h (stop_reason_names): Declare.
2252 (struct trace_frame_write_ops): Move it to tracefile.h.
2253 (struct trace_file_write_ops): Likewise.
2254 (struct trace_file_writer): Likewise.
2255 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2256
184cd072
JK
22572014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2258
2259 PR gdb/16594
2260 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2261 process name.
2262 (get_cores_used_by_process): New parameter num_cores, use it.
2263 (linux_xfer_osdata_processes): Pass num_cores to it.
2264 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2265 process name.
2266
c63528fc
AK
22672014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2268
2269 * target.c (memory_xfer_partial): Fix length arg in call to
2270 breakpoint_xfer_memory.
2271
d7b30f67
SDJ
22722014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2273
2274 PR tdep/16397
2275 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2276 number comes after the + or - signs. Adjust length of register
2277 name to be extracted.
2278
8838afaf
TT
22792014-02-20 Tom Tromey <tromey@redhat.com>
2280
2281 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2282 (ada_varobj_ops): Mark "extern".
2283
05227d14
TT
22842014-02-20 Tom Tromey <tromey@redhat.com>
2285
2286 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2287
1254eefc
DE
22882014-02-20 Doug Evans <xdje42@gmail.com>
2289
2290 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2291 All callers updated.
2292 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2293 All callers updated.
2294 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2295 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2296
adde2bff
DE
22972014-02-20 lin zuojian <manjian2006@gmail.com>
2298 Joel Brobecker <brobecker@adacore.com>
2299 Doug Evans <xdje42@gmail.com>
2300
2301 PR symtab/16581
2302 * dwarf2read.c (struct die_info): New member in_process.
2303 (reset_die_in_process): New function.
2304 (process_die): Set it at the start, reset when returning.
2305 (inherit_abstract_dies): Only call process_die if origin_child_die
2306 not already being processed.
2307
3be75f87
JB
23082014-02-20 Joel Brobecker <brobecker@adacore.com>
2309
2310 * windows-nat.c (handle_unload_dll): Add function documentation.
2311 (do_initial_windows_stuff): Add comment explaining why we wait
2312 until after inferior initialization has finished before
2313 processing all DLLs.
2314
47f7ffdb
JB
23152014-02-20 Joel Brobecker <brobecker@adacore.com>
2316
2317 * windows-nat.c (get_module_name): Delete.
2318 (windows_get_exec_module_filename): New function, mostly
2319 inspired from get_module_name.
2320 (windows_pid_to_exec_file): Replace call to get_module_name
2321 by call to windows_get_exec_module_filename.
2322
1cd9feab
JB
23232014-02-20 Joel Brobecker <brobecker@adacore.com>
2324
2325 * windows-nat.c (handle_load_dll): Rewrite this function's
2326 introductory comment. Remove code using get_module_name
2327 to get the DLL's name.
2328
ea39ad35
JB
23292014-02-20 Joel Brobecker <brobecker@adacore.com>
2330
2331 * windows-nat.c (get_windows_debug_event): Ignore
2332 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2333 if windows_initialization_done == 0.
2334 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2335 Adjust implementation to always load all DLLs.
2336 (do_initial_windows_stuff): Replace call to
2337 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2338
95060284
JB
23392014-02-20 Joel Brobecker <brobecker@adacore.com>
2340
2341 * windows-nat.c (_initialize_windows_nat): Deprecate the
2342 "dll-symbols" command. Turn the "add-shared-symbol-files"
2343 and "assf" aliases into commands, and deprecate them as well.
2344 * NEWS: Add entry explaining that "dll-symbols" and its two
2345 aliases are now deprecated.
2346
8d4fdb12
JB
23472014-02-20 Joel Brobecker <brobecker@adacore.com>
2348
2349 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2350 new-line in debug string. Remove trailing spaces.
2351
1b281443
SS
23522014-02-19 Stan Shebs <stan@codesourcery.com>
2353
2354 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2355
f7bd0f78
SC
23562014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2357
2358 * NEWS: Add entry for the new feature
2359 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2360 and class values.
2361
399ebc3d
SS
23622014-02-19 Stan Shebs <stan@codesourcery.com>
2363
2364 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2365
c658158d
PA
23662014-02-19 Pedro Alves <palves@redhat.com>
2367
2368 * common/ptid.h (struct ptid): Mention that process_stratum
2369 targets should prefer ptid.lwp.
2370
ba348170
PA
23712014-02-19 Pedro Alves <palves@redhat.com>
2372
2373 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2374 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2375 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2376 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2377 store remote thread ids rather than ptid.tid.
2378 (_initialize_remote): Adjust.
2379
ac01945b
TT
23802014-02-19 Tom Tromey <tromey@redhat.com>
2381
2382 * target.c (target_get_unwinder): Rewrite.
2383 (target_get_tailcall_unwinder): Rewrite.
2384 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2385 (record_btrace_to_get_tailcall_unwinder): New function.
2386 (init_record_btrace_ops): Update.
2387 * target.h (struct target_ops) <to_get_unwinder,
2388 to_get_tailcall_unwinder>: Now function pointers. Use
2389 TARGET_DEFAULT_RETURN.
2390
8476dc92
TT
23912014-02-19 Tom Tromey <tromey@redhat.com>
2392
2393 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2394 argument.
2395 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2396
c0eca49f
TT
23972014-02-19 Tom Tromey <tromey@redhat.com>
2398
2399 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2400 directly.
2401 * target-delegates.c: Rebuild.
2402 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2403 TARGET_DEFAULT_FUNC.
2404 * target.c (default_target_decr_pc_after_break): Rename from
2405 forward_target_decr_pc_after_break. Simplify.
2406 (target_decr_pc_after_break): Rely on delegation.
2407
596b6b39
TT
24082014-02-19 Tom Tromey <tromey@redhat.com>
2409
2410 * target.c (update_current_target): Do not INHERIT to_doc or
2411 to_magic. Do not de_fault to_open or to_close.
2412
b427c1bc
TT
24132014-02-19 Tom Tromey <tromey@redhat.com>
2414
2415 * gcore.h (objfile_find_memory_regions): Declare.
2416 * gcore.c (objfile_find_memory_regions): No longer static. Add
2417 "self" argument.
2418 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2419 * exec.c: Include gcore.h.
2420 (exec_set_find_memory_regions): Remove.
2421 (exec_find_memory_regions): Remove.
2422 (exec_do_find_memory_regions): Remove.
2423 (init_exec_ops): Update.
2424 * defs.h (exec_set_find_memory_regions): Remove.
2425
9b144037
TT
24262014-02-19 Tom Tromey <tromey@redhat.com>
2427
2428 * target-delegates.c: Rebuild.
2429 * target.h (struct target_ops) <to_extra_thread_info,
2430 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2431 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2432 not 0, in TARGET_DEFAULT_RETURN.
2433
555bbdeb
TT
24342014-02-19 Tom Tromey <tromey@redhat.com>
2435
2436 * target.c (complete_target_initialization): Remove casts. Use
2437 return_zero_has_execution.
2438 (return_zero): Add "ignore" argument.
2439 (return_zero_has_execution): New function.
2440 (init_dummy_target): Remove casts. Use
2441 return_zero_has_execution.
2442
be4ddd36
TT
24432014-02-19 Tom Tromey <tromey@redhat.com>
2444
2445 * target.c (update_current_target): Update comments. Do not
2446 INHERIT to_stratum.
2447
2117c711
TT
24482014-02-19 Tom Tromey <tromey@redhat.com>
2449
2450 * arm-linux-nat.c (arm_linux_read_description): Delegate when
2451 needed.
2452 * corelow.c (core_read_description): Delegate when needed.
2453 * remote.c (remote_read_description): Delegate when needed.
2454 * target-delegates.c: Rebuild.
2455 * target.c (target_read_description): Rewrite.
2456 * target.h (struct target_ops) <to_read_description>: Update
2457 comment. Use TARGET_DEFAULT_RETURN.
2458
e88ef65c
TT
24592014-02-19 Tom Tromey <tromey@redhat.com>
2460
2461 * target-delegates.c: Rebuild.
2462 * target.c (update_current_target): Don't inherit or default
2463 to_can_run.
2464 (find_default_run_target): Check against delegate_can_run.
2465 * target.h (struct target_ops) <to_can_run>: Use
2466 TARGET_DEFAULT_RETURN.
2467
86a0854a
TT
24682014-02-19 Tom Tromey <tromey@redhat.com>
2469
2470 * target-delegates.c: Rebuild.
2471 * target.c (target_disconnect): Unconditionally delegate.
2472 * target.h (struct target_ops) <to_disconnect>: Use
2473 TARGET_DEFAULT_NORETURN.
2474
ee97f592
TT
24752014-02-19 Tom Tromey <tromey@redhat.com>
2476
2477 * record.c (record_stop): Unconditionally delegate.
2478 * target-delegates.c: Rebuild.
2479 * target.c (target_stop_recording): Unconditionally delegate.
2480 * target.h (struct target_ops) <to_stop_recording>: Use
2481 TARGET_DEFAULT_IGNORE.
2482
6dc7fcf4
TT
24832014-02-19 Tom Tromey <tromey@redhat.com>
2484
2485 * target-delegates.c: Rebuild.
2486 * target.c (target_enable_btrace): Unconditionally delegate.
2487 * target.h (struct target_ops) <to_enable_btrace>: Use
2488 TARGET_DEFAULT_NORETURN.
2489
eb5b20d4
TT
24902014-02-19 Tom Tromey <tromey@redhat.com>
2491
2492 * target-delegates.c: Rebuild.
2493 * target.c (target_read_btrace): Unconditionally delegate.
2494 * target.h (struct target_ops) <to_read_btrace>: Use
2495 TARGET_DEFAULT_NORETURN.
2496
9ace480d
TT
24972014-02-19 Tom Tromey <tromey@redhat.com>
2498
2499 * target-delegates.c: Rebuild.
2500 * target.c (target_teardown_btrace): Unconditionally delegate.
2501 * target.h (struct target_ops) <to_teardown_btrace>: Use
2502 TARGET_DEFAULT_NORETURN.
2503
8dc292d3
TT
25042014-02-19 Tom Tromey <tromey@redhat.com>
2505
2506 * target-delegates.c: Rebuild.
2507 * target.c (target_disable_btrace): Unconditionally delegate.
2508 * target.h (struct target_ops) <to_disable_btrace>: Use
2509 TARGET_DEFAULT_NORETURN.
2510
58a5184e
TT
25112014-02-19 Tom Tromey <tromey@redhat.com>
2512
2513 * target-delegates.c: Rebuild.
2514 * target.c (default_search_memory): New function.
2515 (simple_search_memory): Update comment.
2516 (target_search_memory): Unconditionally delegate.
2517 * target.h (struct target_ops) <to_search_memory>: Use
2518 TARGET_DEFAULT_FUNC.
2519
8de71aab
TT
25202014-02-19 Tom Tromey <tromey@redhat.com>
2521
2522 * auxv.c (default_auxv_parse): No longer static.
2523 (target_auxv_parse): Unconditionally delegate.
2524 * auxv.h (default_auxv_parse): Declare.
2525 * target-delegates.c: Rebuild.
2526 * target.c: Include auxv.h.
2527 * target.h (struct target_ops) <to_auxv_parse>: Use
2528 TARGET_DEFAULT_FUNC.
2529
6b2c5a57
TT
25302014-02-19 Tom Tromey <tromey@redhat.com>
2531
2532 * target-delegates.c: Rebuild.
2533 * target.c (target_memory_map): Unconditionally delegate.
2534 * target.h (struct target_ops) <to_memory_map>: Use
2535 TARGET_DEFAULT_RETURN.
2536
cbffc065
TT
25372014-02-19 Tom Tromey <tromey@redhat.com>
2538
2539 * target-delegates.c: Rebuild.
2540 * target.c (target_thread_alive): Unconditionally delegate.
2541 * target.h (struct target_ops) <to_thread_alive>: Use
2542 TARGET_DEFAULT_RETURN.
2543
f09e2107
TT
25442014-02-19 Tom Tromey <tromey@redhat.com>
2545
2546 * target-delegates.c: Rebuild.
2547 * target.c (target_save_record): Unconditionally delegate.
2548 * target.h (struct target_ops) <to_save_record>: Use
2549 TARGET_DEFAULT_NORETURN.
2550
07366925
TT
25512014-02-19 Tom Tromey <tromey@redhat.com>
2552
2553 * target-delegates.c: Rebuild.
2554 * target.c (target_delete_record): Unconditionally delegate.
2555 * target.h (struct target_ops) <to_delete_record>: Use
2556 TARGET_DEFAULT_NORETURN.
2557
dd2e9d25
TT
25582014-02-19 Tom Tromey <tromey@redhat.com>
2559
2560 * target-delegates.c: Rebuild.
2561 * target.c (target_record_is_replaying): Unconditionally
2562 delegate.
2563 * target.h (struct target_ops) <to_record_is_replaying>: Use
2564 TARGET_DEFAULT_RETURN.
2565
671e76cc
TT
25662014-02-19 Tom Tromey <tromey@redhat.com>
2567
2568 * target-delegates.c: Rebuild.
2569 * target.c (target_goto_record_begin): Unconditionally delegate.
2570 * target.h (struct target_ops) <to_goto_record_begin>: Use
2571 TARGET_DEFAULT_NORETURN.
2572
e9179bb3
TT
25732014-02-19 Tom Tromey <tromey@redhat.com>
2574
2575 * target-delegates.c: Rebuild.
2576 * target.c (target_goto_record_end): Unconditionally delegate.
2577 * target.h (struct target_ops) <to_goto_record_end>: Use
2578 TARGET_DEFAULT_NORETURN.
2579
05969c84
TT
25802014-02-19 Tom Tromey <tromey@redhat.com>
2581
2582 * target-delegates.c: Rebuild.
2583 * target.c (target_goto_record): Unconditionally delegate.
2584 * target.h (struct target_ops) <to_goto_record>: Use
2585 TARGET_DEFAULT_NORETURN.
2586
3679abfa
TT
25872014-02-19 Tom Tromey <tromey@redhat.com>
2588
2589 * target-delegates.c: Rebuild.
2590 * target.c (target_insn_history): Unconditionally delegate.
2591 * target.h (struct target_ops) <to_insn_history>: Use
2592 TARGET_DEFAULT_NORETURN.
2593
8444ab58
TT
25942014-02-19 Tom Tromey <tromey@redhat.com>
2595
2596 * target-delegates.c: Rebuild.
2597 * target.c (target_insn_history_from): Unconditionally delegate.
2598 * target.h (struct target_ops) <to_insn_history_from>: Use
2599 TARGET_DEFAULT_NORETURN.
2600
c29302cc
TT
26012014-02-19 Tom Tromey <tromey@redhat.com>
2602
2603 * target-delegates.c: Rebuild.
2604 * target.c (target_insn_history_range): Unconditionally delegate.
2605 * target.h (struct target_ops) <to_insn_history_range>: Use
2606 TARGET_DEFAULT_NORETURN.
2607
170049d4
TT
26082014-02-19 Tom Tromey <tromey@redhat.com>
2609
2610 * target-delegates.c: Rebuild.
2611 * target.c (target_call_history): Unconditionally delegate.
2612 * target.h (struct target_ops) <to_call_history>: Use
2613 TARGET_DEFAULT_NORETURN.
2614
16fc27d6
TT
26152014-02-19 Tom Tromey <tromey@redhat.com>
2616
2617 * target-delegates.c: Rebuild.
2618 * target.c (target_call_history_from): Unconditionally delegate.
2619 * target.h (struct target_ops) <to_call_history_from>: Use
2620 TARGET_DEFAULT_NORETURN.
2621
115d9817
TT
26222014-02-19 Tom Tromey <tromey@redhat.com>
2623
2624 * target-delegates.c: Rebuild.
2625 * target.c (target_call_history_range): Unconditionally delegate.
2626 * target.h (struct target_ops) <to_call_history_range>: Use
2627 TARGET_DEFAULT_NORETURN.
2628
eb276a6b
TT
26292014-02-19 Tom Tromey <tromey@redhat.com>
2630
2631 * target-delegates.c: Rebuild.
2632 * target.c (target_verify_memory): Unconditionally delegate.
2633 * target.h (struct target_ops) <to_verify_memory>: Use
2634 TARGET_DEFAULT_NORETURN.
2635
9e538d0d
TT
26362014-02-19 Tom Tromey <tromey@redhat.com>
2637
2638 * target-delegates.c: Rebuild.
2639 * target.c (target_core_of_thread): Unconditionally delegate.
2640 * target.h (struct target_ops) <to_core_of_thread>: Use
2641 TARGET_DEFAULT_RETURN.
2642
f6fb2925
TT
26432014-02-19 Tom Tromey <tromey@redhat.com>
2644
2645 * target-delegates.c: Rebuild.
2646 * target.c (target_flash_done): Unconditionally delegate.
2647 * target.h (struct target_ops) <to_flash_done>: Use
2648 TARGET_DEFAULT_NORETURN.
2649
e8a6c6ac
TT
26502014-02-19 Tom Tromey <tromey@redhat.com>
2651
2652 * target-delegates.c: Rebuild.
2653 * target.c (target_flash_erase): Unconditionally delegate.
2654 * target.h (struct target_ops) <to_flash_erase>: Use
2655 TARGET_DEFAULT_NORETURN.
2656
7e35c012
TT
26572014-02-19 Tom Tromey <tromey@redhat.com>
2658
2659 * target-delegates.c: Rebuild.
2660 * target.c (target_get_section_table): Unconditionally delegate.
2661 * target.h (struct target_ops) <to_get_section_table>: Use
2662 TARGET_DEFAULT_RETURN.
2663
770234d3
TT
26642014-02-19 Tom Tromey <tromey@redhat.com>
2665
2666 * target-delegates.c: Rebuild.
2667 * target.c (target_pid_to_str): Unconditionally delegate.
2668 (init_dummy_target): Don't initialize to_pid_to_str.
2669 (default_pid_to_str): Rename from dummy_pid_to_str.
2670 * target.h (struct target_ops) <to_pid_to_str>: Use
2671 TARGET_DEFAULT_FUNC.
2672
09b0dc2b
TT
26732014-02-19 Tom Tromey <tromey@redhat.com>
2674
2675 * target-delegates.c: Rebuild.
2676 * target.c (target_find_new_threads): Unconditionally delegate.
2677 * target.h (struct target_ops) <to_find_new_threads>: Use
2678 TARGET_DEFAULT_RETURN.
2679
7d4f8efa
TT
26802014-02-19 Tom Tromey <tromey@redhat.com>
2681
2682 * target-delegates.c: Rebuild.
2683 * target.c (target_program_signals): Unconditionally delegate.
2684 * target.h (struct target_ops) <to_program_signals>: Use
2685 TARGET_DEFAULT_IGNORE.
2686
035cad7f
TT
26872014-02-19 Tom Tromey <tromey@redhat.com>
2688
2689 * target-delegates.c: Rebuild.
2690 * target.c (target_pass_signals): Unconditionally delegate.
2691 * target.h (struct target_ops) <to_pass_signals>: Use
2692 TARGET_DEFAULT_IGNORE.
2693
8d657035
TT
26942014-02-19 Tom Tromey <tromey@redhat.com>
2695
2696 * target-delegates.c: Rebuild.
2697 * target.c (default_mourn_inferior): New function.
2698 (target_mourn_inferior): Unconditionally delegate.
2699 * target.h (struct target_ops) <to_mourn_inferior>: Use
2700 TARGET_DEFAULT_FUNC.
2701
098dba18
TT
27022014-02-19 Tom Tromey <tromey@redhat.com>
2703
2704 * target-delegates.c: Rebuild.
2705 * target.c (default_follow_fork): New function.
2706 (target_follow_fork): Unconditionally delegate.
2707 * target.h (struct target_ops) <to_follow_fork>: Use
2708 TARGET_DEFAULT_FUNC.
2709
423a4807
TT
27102014-02-19 Tom Tromey <tromey@redhat.com>
2711
2712 * target-delegates.c: Rebuild.
2713 * target.c (target_kill): Unconditionally delegate.
2714 * target.h (struct target_ops) <to_kill>: Use
2715 TARGET_DEFAULT_NORETURN.
2716
6c7e5e5c
TT
27172014-02-19 Tom Tromey <tromey@redhat.com>
2718
2719 * target-delegates.c: Rebuild.
2720 * target.c (target_masked_watch_num_registers): Unconditionally
2721 delegate.
2722 * target.h (struct target_ops) <to_masked_watch_num_registers>:
2723 Use TARGET_DEFAULT_RETURN.
2724
8b1c364c
TT
27252014-02-19 Tom Tromey <tromey@redhat.com>
2726
2727 * target-delegates.c: Rebuild.
2728 * target.c (target_remove_mask_watchpoint): Unconditionally
2729 delegate.
2730 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
2731 TARGET_DEFAULT_RETURN.
2732
cd4ae029
TT
27332014-02-19 Tom Tromey <tromey@redhat.com>
2734
2735 * target-delegates.c: Rebuild.
2736 * target.c (target_insert_mask_watchpoint): Unconditionally
2737 delegate.
2738 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
2739 TARGET_DEFAULT_RETURN.
2740
a134316b
TT
27412014-02-19 Tom Tromey <tromey@redhat.com>
2742
2743 * target-delegates.c: Rebuild.
2744 * target.c (target_ranged_break_num_registers): Unconditionally
2745 delegate.
2746 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2747 Use TARGET_DEFAULT_RETURN.
2748
ad5989bd
TT
27492014-02-19 Tom Tromey <tromey@redhat.com>
2750
2751 * target-delegates.c: Rebuild.
2752 * target.c (target_fetch_registers): Unconditionally delegate.
2753 * target.h (struct target_ops) <to_fetch_registers>: Use
2754 TARGET_DEFAULT_NORETURN.
2755
46ee7e8d
TT
27562014-02-19 Tom Tromey <tromey@redhat.com>
2757
2758 * target-delegates.c: Rebuild.
2759 * target.c (update_current_target): Don't inherit or default
2760 to_stop.
2761 * target.h (struct target_ops) <to_stop>: Use
2762 TARGET_DEFAULT_IGNORE.
2763
843f59ed
TT
27642014-02-19 Tom Tromey <tromey@redhat.com>
2765
2766 * target-delegates.c: Rebuild.
2767 * target.c (update_current_target): Don't inherit or default
2768 to_can_run_breakpoint_commands.
2769 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
2770 Use TARGET_DEFAULT_RETURN.
2771
ccfde2a0
TT
27722014-02-19 Tom Tromey <tromey@redhat.com>
2773
2774 * target-delegates.c: Rebuild.
2775 * target.c (update_current_target): Don't inherit or default
2776 to_supports_evaluation_of_breakpoint_conditions.
2777 * target.h (struct target_ops)
2778 <to_supports_evaluation_of_breakpoint_conditions>: Use
2779 TARGET_DEFAULT_RETURN.
2780
0de91722
TT
27812014-02-19 Tom Tromey <tromey@redhat.com>
2782
2783 * target-delegates.c: Rebuild.
2784 * target.c (update_current_target): Don't inherit or default
2785 to_augmented_libraries_svr4_read.
2786 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
2787 Use TARGET_DEFAULT_RETURN.
2788
9a7d8b48
TT
27892014-02-19 Tom Tromey <tromey@redhat.com>
2790
2791 * target-delegates.c: Rebuild.
2792 * target.c (update_current_target): Don't inherit or default
2793 to_can_use_agent.
2794 * target.h (struct target_ops) <to_can_use_agent>: Use
2795 TARGET_DEFAULT_RETURN.
2796
d9db5b21
TT
27972014-02-19 Tom Tromey <tromey@redhat.com>
2798
2799 * target-delegates.c: Rebuild.
2800 * target.c (update_current_target): Don't inherit or default
2801 to_use_agent.
2802 * target.h (struct target_ops) <to_use_agent>: Use
2803 TARGET_DEFAULT_NORETURN.
2804
92155eeb
TT
28052014-02-19 Tom Tromey <tromey@redhat.com>
2806
2807 * target-delegates.c: Rebuild.
2808 * target.c (update_current_target): Don't inherit or default
2809 to_traceframe_info.
2810 (return_null): Remove.
2811 * target.h (struct target_ops) <to_traceframe_info>: Use
2812 TARGET_DEFAULT_RETURN.
2813
d6522a22
TT
28142014-02-19 Tom Tromey <tromey@redhat.com>
2815
2816 * target-delegates.c: Rebuild.
2817 * target.c (update_current_target): Don't inherit or default
2818 to_static_tracepoint_markers_by_strid.
2819 * target.h (struct target_ops)
2820 <to_static_tracepoint_markers_by_strid>: Use
2821 TARGET_DEFAULT_NORETURN.
2822
4c3e4425
TT
28232014-02-19 Tom Tromey <tromey@redhat.com>
2824
2825 * target-delegates.c: Rebuild.
2826 * target.c (update_current_target): Don't inherit or default
2827 to_static_tracepoint_marker_at.
2828 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
2829 Use TARGET_DEFAULT_RETURN.
2830
dcd6917f
TT
28312014-02-19 Tom Tromey <tromey@redhat.com>
2832
2833 * target-delegates.c: Rebuild.
2834 * target.c (update_current_target): Don't inherit or default
2835 to_set_permissions.
2836 * target.h (struct target_ops) <to_set_permissions>: Use
2837 TARGET_DEFAULT_IGNORE.
2838
22bcceee
TT
28392014-02-19 Tom Tromey <tromey@redhat.com>
2840
2841 * target-delegates.c: Rebuild.
2842 * target.c (update_current_target): Don't inherit or default
2843 to_get_tib_address.
2844 * target.h (struct target_ops) <to_get_tib_address>: Use
2845 TARGET_DEFAULT_NORETURN.
2846
8586ccaa
TT
28472014-02-19 Tom Tromey <tromey@redhat.com>
2848
2849 * target-delegates.c: Rebuild.
2850 * target.c (update_current_target): Don't inherit or default
2851 to_set_trace_notes.
2852 * target.h (struct target_ops) <to_set_trace_notes>: Use
2853 TARGET_DEFAULT_RETURN.
2854
91df8d1d
TT
28552014-02-19 Tom Tromey <tromey@redhat.com>
2856
2857 * target-delegates.c: Rebuild.
2858 * target.c (update_current_target): Don't initialize
2859 to_set_trace_buffer_size.
2860 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
2861 TARGET_DEFAULT_IGNORE.
2862
8d526939
TT
28632014-02-19 Tom Tromey <tromey@redhat.com>
2864
2865 * target-delegates.c: Rebuild.
2866 * target.c (update_current_target): Don't inherit or default
2867 to_set_circular_trace_buffer.
2868 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
2869 TARGET_DEFAULT_IGNORE.
2870
0bcfeddf
TT
28712014-02-19 Tom Tromey <tromey@redhat.com>
2872
2873 * target-delegates.c: Rebuild.
2874 * target.c (update_current_target): Don't inherit or default
2875 to_set_disconnected_tracing.
2876 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
2877 TARGET_DEFAULT_IGNORE.
2878
9249843f
TT
28792014-02-19 Tom Tromey <tromey@redhat.com>
2880
2881 * target-delegates.c: Rebuild.
2882 * target.c (update_current_target): Don't inherit or default
2883 to_get_min_fast_tracepoint_insn_len.
2884 (return_minus_one): Remove.
2885 * target.h (struct target_ops)
2886 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
2887
ace92e7d
TT
28882014-02-19 Tom Tromey <tromey@redhat.com>
2889
2890 * target-delegates.c: Rebuild.
2891 * target.c (update_current_target): Don't inherit or default
2892 to_get_raw_trace_data.
2893 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
2894 TARGET_DEFAULT_NORETURN.
2895
08120467
TT
28962014-02-19 Tom Tromey <tromey@redhat.com>
2897
2898 * target-delegates.c: Rebuild.
2899 * target.c (update_current_target): Don't inherit or default
2900 to_upload_trace_state_variables.
2901 * target.h (struct target_ops) <to_upload_trace_state_variables>:
2902 Use TARGET_DEFAULT_RETURN.
2903
1e949b00
TT
29042014-02-19 Tom Tromey <tromey@redhat.com>
2905
2906 * target-delegates.c: Rebuild.
2907 * target.c (update_current_target): Don't inherit or default
2908 to_upload_tracepoints.
2909 * target.h (struct target_ops) <to_upload_tracepoints>: Use
2910 TARGET_DEFAULT_RETURN.
2911
a2e6c147
TT
29122014-02-19 Tom Tromey <tromey@redhat.com>
2913
2914 * target-delegates.c: Rebuild.
2915 * target.c (update_current_target): Don't inherit or default
2916 to_save_trace_data.
2917 * target.h (struct target_ops) <to_save_trace_data>: Use
2918 TARGET_DEFAULT_NORETURN.
2919
959bcd0b
TT
29202014-02-19 Tom Tromey <tromey@redhat.com>
2921
2922 * target-delegates.c: Rebuild.
2923 * target.c (update_current_target): Don't inherit or default
2924 to_get_trace_state_variable_value.
2925 * target.h (struct target_ops)
2926 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
2927
afc94e66
TT
29282014-02-19 Tom Tromey <tromey@redhat.com>
2929
2930 * target-delegates.c: Rebuild.
2931 * target.c (update_current_target): Don't inherit or default
2932 to_trace_find.
2933 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
2934
e51c07ea
TT
29352014-02-19 Tom Tromey <tromey@redhat.com>
2936
2937 * target-delegates.c: Rebuild.
2938 * target.c (update_current_target): Don't inherit or default
2939 to_trace_stop.
2940 * target.h (struct target_ops) <to_trace_stop>: Use
2941 TARGET_DEFAULT_NORETURN.
2942
6fea14cd
TT
29432014-02-19 Tom Tromey <tromey@redhat.com>
2944
2945 * target-delegates.c: Rebuild.
2946 * target.c (update_current_target): Don't inherit or default
2947 to_get_tracepoint_status.
2948 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
2949 TARGET_DEFAULT_NORETURN.
2950
4072d4ff
TT
29512014-02-19 Tom Tromey <tromey@redhat.com>
2952
2953 * target-delegates.c: Rebuild.
2954 * target.c (update_current_target): Don't inherit or default
2955 to_get_trace_status.
2956 * target.h (struct target_ops) <to_get_trace_status>: Use
2957 TARGET_DEFAULT_RETURN.
2958
25da2e80
TT
29592014-02-19 Tom Tromey <tromey@redhat.com>
2960
2961 * target-delegates.c: Rebuild.
2962 * target.c (update_current_target): Don't inherit or default
2963 to_trace_start.
2964 * target.h (struct target_ops) <to_trace_start>: Use
2965 TARGET_DEFAULT_NORETURN.
2966
86dd181d
TT
29672014-02-19 Tom Tromey <tromey@redhat.com>
2968
2969 * target-delegates.c: Rebuild.
2970 * target.c (update_current_target): Don't inherit or default
2971 to_trace_set_readonly_regions.
2972 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
2973 Use TARGET_DEFAULT_NORETURN.
2974
05c41993
TT
29752014-02-19 Tom Tromey <tromey@redhat.com>
2976
2977 * target-delegates.c: Rebuild.
2978 * target.c (update_current_target): Don't inherit or default
2979 to_disable_tracepoint.
2980 * target.h (struct target_ops) <to_disable_tracepoint>: Use
2981 TARGET_DEFAULT_NORETURN.
2982
151f70f1
TT
29832014-02-19 Tom Tromey <tromey@redhat.com>
2984
2985 * target-delegates.c: Rebuild.
2986 * target.c (update_current_target): Don't inherit or default
2987 to_enable_tracepoint.
2988 * target.h (struct target_ops) <to_enable_tracepoint>: Use
2989 TARGET_DEFAULT_NORETURN.
2990
94eb98b9
TT
29912014-02-19 Tom Tromey <tromey@redhat.com>
2992
2993 * target-delegates.c: Rebuild.
2994 * target.c (update_current_target): Don't inherit or default
2995 to_download_trace_state_variable.
2996 * target.h (struct target_ops) <to_download_trace_state_variable>:
2997 Use TARGET_DEFAULT_NORETURN.
2998
719acc4a
TT
29992014-02-19 Tom Tromey <tromey@redhat.com>
3000
3001 * target-delegates.c: Rebuild.
3002 * target.c (update_current_target): Don't inherit or default
3003 to_can_download_tracepoint.
3004 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3005 TARGET_DEFAULT_RETURN.
3006
9a980a22
TT
30072014-02-19 Tom Tromey <tromey@redhat.com>
3008
3009 * target-delegates.c: Rebuild.
3010 * target.c (update_current_target): Don't inherit or default
3011 to_download_tracepoint.
3012 * target.h (struct target_ops) <to_download_tracepoint>: Use
3013 TARGET_DEFAULT_NORETURN.
3014
5536135b
TT
30152014-02-19 Tom Tromey <tromey@redhat.com>
3016
3017 * target-delegates.c: Rebuild.
3018 * target.c (update_current_target): Don't inherit or default
3019 to_trace_init.
3020 * target.h (struct target_ops) <to_trace_init>: Use
3021 TARGET_DEFAULT_RETURN.
3022
9409d39e
TT
30232014-02-19 Tom Tromey <tromey@redhat.com>
3024
3025 * target-delegates.c: Rebuild.
3026 * target.c (update_current_target): Don't inherit or default
3027 to_supports_string_tracing.
3028 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3029 TARGET_DEFAULT_RETURN.
3030
aab1b22d
TT
30312014-02-19 Tom Tromey <tromey@redhat.com>
3032
3033 * target-delegates.c: Rebuild.
3034 * target.c (update_current_target): Don't inherit or default
3035 to_supports_enable_disable_tracepoint.
3036 * target.h (struct target_ops)
3037 <to_supports_enable_disable_tracepoint>: Use
3038 TARGET_DEFAULT_RETURN.
3039
a7304748
TT
30402014-02-19 Tom Tromey <tromey@redhat.com>
3041
3042 * target-delegates.c: Rebuild.
3043 * target.c (update_current_target): Don't inherit or default
3044 to_supports_multi_process.
3045 * target.h (struct target_ops) <to_supports_multi_process>: Use
3046 TARGET_DEFAULT_RETURN.
3047
4229b31d
TT
30482014-02-19 Tom Tromey <tromey@redhat.com>
3049
3050 * target-delegates.c: Rebuild.
3051 * target.c (update_current_target): Don't inherit or default
3052 to_get_ada_task_ptid.
3053 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3054 TARGET_DEFAULT_FUNC.
3055
43eba180
TT
30562014-02-19 Tom Tromey <tromey@redhat.com>
3057
3058 * target-delegates.c: Rebuild.
3059 * target.c (update_current_target): Don't inherit or default
3060 to_thread_architecture.
3061 * target.h (struct target_ops) <to_thread_architecture>: Use
3062 TARGET_DEFAULT_FUNC.
3063
fe31bf5b
TT
30642014-02-19 Tom Tromey <tromey@redhat.com>
3065
3066 * target-delegates.c: Rebuild.
3067 * target.c (update_current_target): Don't inherit or default
3068 to_execution_direction.
3069 * target.h (struct target_ops) <to_execution_direction>: Use
3070 TARGET_DEFAULT_FUNC.
3071
53e1cfc7
TT
30722014-02-19 Tom Tromey <tromey@redhat.com>
3073
3074 * target-delegates.c: Rebuild.
3075 * target.c (update_current_target): Don't inherit or default
3076 to_can_execute_reverse.
3077 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3078 TARGET_DEFAULT_RETURN.
3079 (target_can_execute_reverse): Unconditionally delegate.
3080
9bb9d61d
TT
30812014-02-19 Tom Tromey <tromey@redhat.com>
3082
3083 * target-delegates.c: Rebuild.
3084 * target.c (update_current_target): Don't inherit or default
3085 to_goto_bookmark.
3086 (dummy_goto_bookmark): Remove.
3087 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3088 * target.h (struct target_ops) <to_goto_bookmark>: Use
3089 TARGET_DEFAULT_NORETURN.
3090
3dbafbbb
TT
30912014-02-19 Tom Tromey <tromey@redhat.com>
3092
3093 * target-delegates.c: Rebuild.
3094 * target.c (update_current_target): Don't inherit or default
3095 to_get_bookmark.
3096 (dummy_get_bookmark): Remove.
3097 (init_dummy_target): Don't inherit or default to_get_bookmark.
3098 * target.h (struct target_ops) <to_get_bookmark>: Use
3099 TARGET_DEFAULT_NORETURN
3100
16f796b1
TT
31012014-02-19 Tom Tromey <tromey@redhat.com>
3102
3103 * target-delegates.c: Rebuild.
3104 * target.c (update_current_target): Don't inherit or default
3105 to_make_corefile_notes.
3106 (init_dummy_target): Don't initialize to_make_corefile_notes.
3107 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3108 TARGET_DEFAULT_FUNC.
3109
0b5a2719
TT
31102014-02-19 Tom Tromey <tromey@redhat.com>
3111
3112 * target-delegates.c: Rebuild.
3113 * target.c (update_current_target): Don't inherit or default
3114 to_find_memory_regions.
3115 (init_dummy_target): Don't initialize to_find_memory_regions.
3116 * target.h (struct target_ops) <to_find_memory_regions>: Use
3117 TARGET_DEFAULT_FUNC.
3118
d9cb0195
TT
31192014-02-19 Tom Tromey <tromey@redhat.com>
3120
3121 * target-delegates.c: Rebuild.
3122 * target.c (update_current_target): Don't inherit or default
3123 to_log_command.
3124 * target.h (struct target_ops) <to_log_command>: Use
3125 TARGET_DEFAULT_IGNORE.
3126 (target_log_command): Unconditionally delegate.
3127
830ca330
TT
31282014-02-19 Tom Tromey <tromey@redhat.com>
3129
3130 * target-delegates.c: Rebuild.
3131 * target.c (update_current_target): Don't inherit or default
3132 to_pid_to_exec_file.
3133 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3134 TARGET_DEFAULT_RETURN.
3135
825828fc
TT
31362014-02-19 Tom Tromey <tromey@redhat.com>
3137
3138 * target-delegates.c: Rebuild.
3139 * target.c (update_current_target): Don't inherit or default
3140 to_thread_name.
3141 (target_thread_name): Unconditionally delegate.
3142 * target.h (struct target_ops) <to_thread_name>: Use
3143 TARGET_DEFAULT_RETURN.
3144
4a7e6dda
TT
31452014-02-19 Tom Tromey <tromey@redhat.com>
3146
3147 * target-delegates.c: Rebuild.
3148 * target.c (update_current_target): Don't inherit or default
3149 to_extra_thread_info.
3150 * target.h (struct target_ops) <to_extra_thread_info>: Use
3151 TARGET_DEFAULT_RETURN.
3152
0db88c1d
TT
31532014-02-19 Tom Tromey <tromey@redhat.com>
3154
3155 * target-delegates.c: Rebuild.
3156 * target.c (update_current_target): Don't inherit or default
3157 to_has_exited.
3158 * target.h (struct target_ops) <to_has_exited>: Use
3159 TARGET_DEFAULT_RETURN..
3160
6a9fa051
TT
31612014-02-19 Tom Tromey <tromey@redhat.com>
3162
3163 * target-delegates.c: Rebuild.
3164 * target.c (update_current_target): Don't inherit or default
3165 to_set_syscall_catchpoint.
3166 (return_one): Remove.
3167 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3168 TARGET_DEFAULT_RETURN.
3169
62f64d7a
TT
31702014-02-19 Tom Tromey <tromey@redhat.com>
3171
3172 * target-delegates.c: Rebuild.
3173 * target.c (update_current_target): Don't inherit or default
3174 to_insert_exec_catchpoint.
3175 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3176 TARGET_DEFAULT_RETURN.
3177
cda0f38c
TT
31782014-01-08 Tom Tromey <tromey@redhat.com>
3179
3180 * target-delegates.c: Rebuild.
3181 * target.c (update_current_target): Don't inherit or default
3182 to_insert_exec_catchpoint.
3183 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3184 TARGET_DEFAULT_RETURN.
3185
95c3375e
TT
31862014-02-19 Tom Tromey <tromey@redhat.com>
3187
3188 * target-delegates.c: Rebuild.
3189 * target.c (update_current_target): Don't inherit or default
3190 to_remove_vfork_catchpoint.
3191 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3192 TARGET_DEFAULT_RETURN.
3193
7e18a8dc
TT
31942014-02-19 Tom Tromey <tromey@redhat.com>
3195
3196 * target-delegates.c: Rebuild.
3197 * target.c (update_current_target): Don't inherit or default
3198 to_insert_vfork_catchpoint.
3199 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3200 TARGET_DEFAULT_RETURN.
3201
e1a21fb7
TT
32022014-02-19 Tom Tromey <tromey@redhat.com>
3203
3204 * target-delegates.c: Rebuild.
3205 * target.c (update_current_target): Don't inherit or default
3206 to_remove_fork_catchpoint.
3207 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3208 TARGET_DEFAULT_RETURN.
3209
5958ebeb
TT
32102014-02-19 Tom Tromey <tromey@redhat.com>
3211
3212 * target-delegates.c: Rebuild.
3213 * target.c (update_current_target): Don't inherit or default
3214 to_insert_fork_catchpoint.
3215 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3216 TARGET_DEFAULT_RETURN.
3217
340ba4bf
TT
32182014-02-19 Tom Tromey <tromey@redhat.com>
3219
3220 * target-delegates.c: Rebuild.
3221 * target.c (update_current_target): Don't inherit or default
3222 to_post_startup_inferior.
3223 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3224 TARGET_DEFAULT_IGNORE.
3225
7634da87
TT
32262014-02-19 Tom Tromey <tromey@redhat.com>
3227
3228 * target-delegates.c: Rebuild.
3229 * target.c (update_current_target): Don't inherit or default
3230 to_load.
3231 * target.h (struct target_ops) <to_load>: Use
3232 TARGET_DEFAULT_NORETURN.
3233
e19e919f
TT
32342014-02-19 Tom Tromey <tromey@redhat.com>
3235
3236 * target-delegates.c: Rebuild.
3237 * target.c (update_current_target): Don't inherit or default
3238 to_terminal_info.
3239 * target.h (struct target_ops) <to_terminal_info>: Use
3240 TARGET_DEFAULT_FUNC.
3241
c6ea8f79
TT
32422014-02-19 Tom Tromey <tromey@redhat.com>
3243
3244 * target-delegates.c: Rebuild.
3245 * target.c (update_current_target): Don't inherit or default
3246 to_terminal_save_ours.
3247 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3248 TARGET_DEFAULT_IGNORE.
3249
e4a733f1
TT
32502014-02-19 Tom Tromey <tromey@redhat.com>
3251
3252 * target-delegates.c: Rebuild.
3253 * target.c (update_current_target): Don't inherit or default
3254 to_terminal_ours.
3255 * target.h (struct target_ops) <to_terminal_ours>: Use
3256 TARGET_DEFAULT_IGNORE.
3257
74fcbef9
TT
32582014-02-19 Tom Tromey <tromey@redhat.com>
3259
3260 * target-delegates.c: Rebuild.
3261 * target.c (update_current_target): Don't inherit or default
3262 to_terminal_ours_for_output.
3263 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3264 TARGET_DEFAULT_IGNORE.
3265
ddeaacc9
TT
32662014-02-19 Tom Tromey <tromey@redhat.com>
3267
3268 * target-delegates.c: Rebuild.
3269 * target.c (update_current_target): Don't inherit or default
3270 to_terminal_inferior.
3271 * target.h (struct target_ops) <to_terminal_inferior>: Use
3272 TARGET_DEFAULT_IGNORE.
3273
0343661d
TT
32742014-02-19 Tom Tromey <tromey@redhat.com>
3275
3276 * target-delegates.c: Rebuild.
3277 * target.c (update_current_target): Don't inherit or default
3278 to_terminal_init.
3279 * target.h (struct target_ops) <to_terminal_init>: Use
3280 TARGET_DEFAULT_IGNORE.
3281
77cdffe9
TT
32822014-02-19 Tom Tromey <tromey@redhat.com>
3283
3284 * target-delegates.c: Rebuild.
3285 * target.c (update_current_target): Don't inherit or default
3286 to_can_accel_watchpoint_condition.
3287 * target.h (struct target_ops)
3288 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3289
d03655e4
TT
32902014-02-19 Tom Tromey <tromey@redhat.com>
3291
3292 * target-delegates.c: Rebuild.
3293 * target.c (update_current_target): Don't inherit or default
3294 to_region_ok_for_hw_watchpoint.
3295 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3296 Use TARGET_DEFAULT_FUNC.
3297
65f160a9
TT
32982014-02-19 Tom Tromey <tromey@redhat.com>
3299
3300 * target-delegates.c: Rebuild.
3301 * target.c (update_current_target): Don't inherit or default
3302 to_watchpoint_addr_within_range.
3303 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3304 Use TARGET_DEFAULT_FUNC.
3305
61dd109f
TT
33062014-02-19 Tom Tromey <tromey@redhat.com>
3307
3308 * target-delegates.c: Rebuild.
3309 * target.c (update_current_target): Don't inherit or default
3310 to_remove_watchpoint.
3311 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3312 TARGET_DEFAULT_NORETURN.
3313
016facd4
TT
33142014-02-19 Tom Tromey <tromey@redhat.com>
3315
3316 * target-delegates.c: Rebuild.
3317 * target.c (update_current_target): Don't inherit or default
3318 to_insert_watchpoint.
3319 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3320 TARGET_DEFAULT_RETURN.
3321
418dabac
TT
33222014-02-19 Tom Tromey <tromey@redhat.com>
3323
3324 * target-delegates.c: Rebuild.
3325 * target.c (update_current_target): Don't inherit or default
3326 to_remove_hw_breakpoint.
3327 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3328 TARGET_DEFAULT_RETURN.
3329
61b371f9
TT
33302014-02-19 Tom Tromey <tromey@redhat.com>
3331
3332 * target-delegates.c: Rebuild.
3333 * target.c (update_current_target): Don't inherit or default
3334 to_insert_hw_breakpoint.
3335 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3336 TARGET_DEFAULT_RETURN.
3337
52b51d06
TT
33382014-02-19 Tom Tromey <tromey@redhat.com>
3339
3340 * target-delegates.c: Rebuild.
3341 * target.c (update_current_target): Don't inherit or default
3342 to_can_use_hw_breakpoint.
3343 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3344 TARGET_DEFAULT_RETURN.
3345
f86e59b2
TT
33462014-02-19 Tom Tromey <tromey@redhat.com>
3347
3348 * target-delegates.c: Rebuild.
3349 * target.c (update_current_target): Don't inherit or default
3350 to_files_info.
3351 * target.h (struct target_ops) <to_files_info>: Use
3352 TARGET_DEFAULT_IGNORE.
3353
6c628163
TT
33542014-02-19 Tom Tromey <tromey@redhat.com>
3355
3356 * target-delegates.c: Rebuild.
3357 * target.c (update_current_target): Don't inherit or default
3358 to_store.
3359 * target.h (struct target_ops) <to_store>: Use
3360 TARGET_DEFAULT_NORETURN.
3361
bebd3233
TT
33622014-02-19 Tom Tromey <tromey@redhat.com>
3363
3364 * target-delegates.c: Rebuild.
3365 * target.c (update_current_target): Don't inherit or default
3366 to_post_attach.
3367 * target.h (struct target_ops) <to_post_attach>: Use
3368 TARGET_DEFAULT_IGNORE.
3369
a53f3625
TT
33702014-02-19 Tom Tromey <tromey@redhat.com>
3371
3372 * target-delegates.c: Rebuild.
3373 * target.c (update_current_target): Don't inherit or default
3374 to_rcmd.
3375 (default_rcmd): New function.
3376 (do_monitor_command): Unconditionally delegate.
3377 * target.h (struct target_ops) <to_rmcd>: Use
3378 TARGET_DEFAULT_FUNC.
3379
e9a29200
TT
33802014-02-19 Tom Tromey <tromey@redhat.com>
3381
3382 * target-delegates.c: Rebuild.
3383 * target.c (init_dummy_target): Don't initialize to_attach.
3384 (target_attach): Unconditionally delegate.
3385 * target.h (struct target_ops) <to_attach>: Use
3386 TARGET_DEFAULT_FUNC.
3387
09da0d0a
TT
33882014-02-19 Tom Tromey <tromey@redhat.com>
3389
3390 * target-delegates.c: Rebuild.
3391 * target.c (target_detach): Unconditionally delegate.
3392 (init_dummy_target): Don't initialize to_detach.
3393 * target.h (struct target_ops) <to_detach>: Use
3394 TARGET_DEFAULT_IGNORE.
3395
5436ff03
TT
33962014-02-19 Tom Tromey <tromey@redhat.com>
3397
3398 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3399 Add argument.
3400 (target_augmented_libraries_svr4_read): Add argument.
3401 * target.c (update_current_target): Update.
3402 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3403 argument.
3404
f0d960ea
TT
34052014-02-19 Tom Tromey <tromey@redhat.com>
3406
3407 * target.h (struct target_ops) <to_call_history_range>: Add
3408 argument.
3409 * target.c (target_call_history_range): Add argument.
3410 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3411 argument.
3412 (record_btrace_call_history_from): Update.
3413
ec0aea04
TT
34142014-02-19 Tom Tromey <tromey@redhat.com>
3415
3416 * target.h (struct target_ops) <to_call_history_from>: Add
3417 argument.
3418 * target.c (target_call_history_from): Add argument.
3419 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3420 argument.
3421
5df2fcba
TT
34222014-02-19 Tom Tromey <tromey@redhat.com>
3423
3424 * target.h (struct target_ops) <to_call_history>: Add argument.
3425 * target.c (target_call_history): Add argument.
3426 * record-btrace.c (record_btrace_call_history): Add 'self'
3427 argument.
3428
4e99c6b7
TT
34292014-02-19 Tom Tromey <tromey@redhat.com>
3430
3431 * target.h (struct target_ops) <to_insn_history_range>: Add
3432 argument.
3433 * target.c (target_insn_history_range): Add argument.
3434 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3435 argument.
3436 (record_btrace_insn_history_from): Update.
3437
9abc3ff3
TT
34382014-02-19 Tom Tromey <tromey@redhat.com>
3439
3440 * target.h (struct target_ops) <to_insn_history_from>: Add
3441 argument.
3442 * target.c (target_insn_history_from): Add argument.
3443 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
3444 argument.
3445
7a6c5609
TT
34462014-02-19 Tom Tromey <tromey@redhat.com>
3447
3448 * target.h (struct target_ops) <to_insn_history>: Add argument.
3449 * target.c (target_insn_history): Add argument.
3450 * record-btrace.c (record_btrace_insn_history): Add 'self'
3451 argument.
3452
606183ac
TT
34532014-02-19 Tom Tromey <tromey@redhat.com>
3454
3455 * target.h (struct target_ops) <to_goto_record>: Add argument.
3456 * target.c (target_goto_record): Add argument.
3457 * record-full.c (record_full_goto): Add 'self' argument.
3458 * record-btrace.c (record_btrace_goto): Add 'self' argument.
3459
307a1b91
TT
34602014-02-19 Tom Tromey <tromey@redhat.com>
3461
3462 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
3463 * target.c (target_goto_record_end): Add argument.
3464 * record-full.c (record_full_goto_end): Add 'self' argument.
3465 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
3466
08475817
TT
34672014-02-19 Tom Tromey <tromey@redhat.com>
3468
3469 * target.h (struct target_ops) <to_goto_record_begin>: Add
3470 argument.
3471 * target.c (target_goto_record_begin): Add argument.
3472 * record-full.c (record_full_goto_begin): Add 'self' argument.
3473 * record-btrace.c (record_btrace_goto_begin): Add 'self'
3474 argument.
3475
1c63c994
TT
34762014-02-19 Tom Tromey <tromey@redhat.com>
3477
3478 * target.h (struct target_ops) <to_record_is_replaying>: Add
3479 argument.
3480 * target.c (target_record_is_replaying): Add argument.
3481 * record-full.c (record_full_is_replaying): Add 'self' argument.
3482 * record-btrace.c (record_btrace_is_replaying): Add 'self'
3483 argument.
3484 (record_btrace_xfer_partial, record_btrace_store_registers)
3485 (record_btrace_prepare_to_store, record_btrace_resume)
3486 (record_btrace_wait, record_btrace_decr_pc_after_break)
3487 (record_btrace_find_new_threads, record_btrace_thread_alive):
3488 Update.
3489
d1b55219
TT
34902014-02-19 Tom Tromey <tromey@redhat.com>
3491
3492 * target.h (struct target_ops) <to_delete_record>: Add argument.
3493 * target.c (target_delete_record): Add argument.
3494 * record-full.c (record_full_delete): Add 'self' argument.
3495
1390f529
TT
34962014-02-19 Tom Tromey <tromey@redhat.com>
3497
3498 * target.h (struct target_ops) <to_save_record>: Add argument.
3499 * target.c (target_save_record): Add argument.
3500 * record-full.c (record_full_save): Add 'self' argument.
3501 (record_full_save): Add 'self' argument.
3502
630d6a4a
TT
35032014-02-19 Tom Tromey <tromey@redhat.com>
3504
3505 * target.h (struct target_ops) <to_info_record>: Add argument.
3506 * target.c (target_info_record): Add argument.
3507 * record.c (info_record_command): Add argument.
3508 * record-full.c (record_full_info): Add 'self' argument.
3509 * record-btrace.c (record_btrace_info): Add 'self' argument.
3510
c6cd7c02
TT
35112014-02-19 Tom Tromey <tromey@redhat.com>
3512
3513 * target.h (struct target_ops) <to_stop_recording>: Add argument.
3514 * target.c (target_stop_recording): Add argument.
3515 * record.c (record_stop): Add argument.
3516 * record-btrace.c (record_btrace_stop_recording): Add 'self'
3517 argument.
3518
39c49f83
TT
35192014-02-19 Tom Tromey <tromey@redhat.com>
3520
3521 * target.h (struct target_ops) <to_read_btrace>: Add argument.
3522 * target.c (struct target_ops) <to_read_btrace>: Add argument.
3523 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
3524 argument.
3525 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
3526 (_initialize_amd64_linux_nat): Use it.
3527 * i386-linux-nat.c (i386_linux_read_btrace): New function.
3528 (_initialize_i386_linux_nat): Use it.
3529
1777056d
TT
35302014-02-19 Tom Tromey <tromey@redhat.com>
3531
3532 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
3533 * target.c (target_teardown_btrace): Add argument.
3534 * remote.c (remote_teardown_btrace): Add 'self' argument.
3535 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
3536 argument.
3537 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
3538 argument.
3539
25e95349
TT
35402014-02-19 Tom Tromey <tromey@redhat.com>
3541
3542 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
3543 * target.c (target_disable_btrace): Add argument.
3544 * remote.c (remote_disable_btrace): Add 'self' argument.
3545 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
3546 argument.
3547 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
3548 argument.
3549
e3c49f88
TT
35502014-02-19 Tom Tromey <tromey@redhat.com>
3551
3552 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
3553 * target.c (target_enable_btrace): Add argument.
3554 * remote.c (remote_enable_btrace): Add 'self' argument.
3555 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
3556 argument.
3557 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
3558 argument.
3559
fe38f897
TT
35602014-02-19 Tom Tromey <tromey@redhat.com>
3561
3562 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
3563 (target_can_use_agent): Add argument.
3564 * target.c (update_current_target): Update.
3565 * remote.c (remote_can_use_agent): Add 'self' argument.
3566 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
3567
2c152180
TT
35682014-02-19 Tom Tromey <tromey@redhat.com>
3569
3570 * target.h (struct target_ops) <to_use_agent>: Add argument.
3571 (target_use_agent): Add argument.
3572 * target.c (update_current_target): Update.
3573 * remote.c (remote_use_agent): Add 'self' argument.
3574 * inf-child.c (inf_child_use_agent): Add 'self' argument.
3575
a893e81f
TT
35762014-02-19 Tom Tromey <tromey@redhat.com>
3577
3578 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
3579 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
3580 (target_traceframe_info): Add argument.
3581 * target.c (update_current_target): Update.
3582 * remote.c (remote_traceframe_info): Add 'self' argument.
3583 * ctf.c (ctf_traceframe_info): Add 'self' argument.
3584
c686c57f
TT
35852014-02-19 Tom Tromey <tromey@redhat.com>
3586
3587 * target.h (target_static_tracepoint_markers_by_strid): Add
3588 argument.
3589 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
3590 'self' argument.
3591 * target.c (update_current_target): Update.
3592 * remote.c (struct target_ops)
3593 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3594 * linux-nat.c (struct target_ops)
3595 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
3596
61fc905d
TT
35972014-02-19 Tom Tromey <tromey@redhat.com>
3598
3599 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3600 Add argument.
3601 (target_static_tracepoint_marker_at): Add argument.
3602 * target.c (update_current_target): Update.
3603 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
3604 argument.
3605
c378d69d
TT
36062014-02-19 Tom Tromey <tromey@redhat.com>
3607
3608 * target.h (struct target_ops) <to_set_permissions>: Add argument.
3609 (target_set_permissions): Add argument.
3610 * target.c (update_current_target): Update.
3611 * remote.c (remote_set_permissions): Add 'self' argument.
3612 (remote_start_remote): Update.
3613
bd7ae0f5
TT
36142014-02-19 Tom Tromey <tromey@redhat.com>
3615
3616 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
3617 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
3618 (target_get_tib_address): Add argument.
3619 * target.c (update_current_target): Update.
3620 * remote.c (remote_get_tib_address): Add 'self' argument.
3621
d9e68a2c
TT
36222014-02-19 Tom Tromey <tromey@redhat.com>
3623
3624 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
3625 (target_set_trace_notes): Add argument.
3626 * target.c (update_current_target): Update.
3627 * remote.c (remote_set_trace_notes): Add 'self' argument.
3628
4da384be
TT
36292014-02-19 Tom Tromey <tromey@redhat.com>
3630
3631 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
3632 argument.
3633 (target_set_trace_buffer_size): Add argument.
3634 * target.c (update_current_target): Update.
3635 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
3636
736d5b1f
TT
36372014-02-19 Tom Tromey <tromey@redhat.com>
3638
3639 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
3640 argument.
3641 (target_set_circular_trace_buffer): Add argument.
3642 * target.c (update_current_target): Update.
3643 * remote.c (remote_set_circular_trace_buffer): Add 'self'
3644 argument.
3645
37b25738
TT
36462014-02-19 Tom Tromey <tromey@redhat.com>
3647
3648 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
3649 argument.
3650 (target_set_disconnected_tracing): Add argument.
3651 * target.c (update_current_target): Update.
3652 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
3653
0e67620a
TT
36542014-02-19 Tom Tromey <tromey@redhat.com>
3655
3656 * target.h (struct target_ops)
3657 <to_get_min_fast_tracepoint_insn_len>: Add argument.
3658 (target_get_min_fast_tracepoint_insn_len): Add argument.
3659 * target.c (update_current_target): Update.
3660 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
3661 argument.
3662
88ee6f45
TT
36632014-02-19 Tom Tromey <tromey@redhat.com>
3664
3665 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
3666 argument.
3667 (target_get_raw_trace_data): Add argument.
3668 * target.c (update_current_target): Update.
3669 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
3670
181e3713
TT
36712014-02-19 Tom Tromey <tromey@redhat.com>
3672
3673 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3674 Add argument.
3675 (target_upload_trace_state_variables): Add argument.
3676 * target.c (update_current_target): Update.
3677 * remote.c (remote_upload_trace_state_variables): Add 'self'
3678 argument.
3679 (remote_start_remote): Update.
3680
ab6617cc
TT
36812014-02-19 Tom Tromey <tromey@redhat.com>
3682
3683 * target.h (struct target_ops) <to_upload_tracepoints>: Add
3684 argument.
3685 (target_upload_tracepoints): Add argument.
3686 * target.c (update_current_target): Update.
3687 * remote.c (remote_upload_tracepoints): Add 'self' argument.
3688 (remote_start_remote): Update.
3689
dc3decaf
TT
36902014-02-19 Tom Tromey <tromey@redhat.com>
3691
3692 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
3693 (target_save_trace_data): Add argument.
3694 * target.c (update_current_target): Update.
3695 * remote.c (remote_save_trace_data): Add 'self' argument.
3696
4011015b
TT
36972014-02-19 Tom Tromey <tromey@redhat.com>
3698
3699 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
3700 argument.
3701 * target.h (struct target_ops)
3702 <to_get_trace_state_variable_value>: Add argument.
3703 (target_get_trace_state_variable_value): Add argument.
3704 * target.c (update_current_target): Update.
3705 * remote.c (remote_get_trace_state_variable_value): Add 'self'
3706 argument.
3707 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
3708
bd4c6793
TT
37092014-02-19 Tom Tromey <tromey@redhat.com>
3710
3711 * tracepoint.c (tfile_trace_find): Add 'self' argument.
3712 * target.h (struct target_ops) <to_trace_find>: Add argument.
3713 (target_trace_find): Add argument.
3714 * target.c (update_current_target): Update.
3715 * remote.c (remote_trace_find): Add 'self' argument.
3716 * ctf.c (ctf_trace_find): Add 'self' argument.
3717
74499f1b
TT
37182014-02-19 Tom Tromey <tromey@redhat.com>
3719
3720 * target.h (struct target_ops) <to_trace_stop>: Add argument.
3721 (target_trace_stop): Add argument.
3722 * target.c (update_current_target): Update.
3723 * remote.c (remote_trace_stop): Add 'self' argument.
3724
db90e85c
TT
37252014-02-19 Tom Tromey <tromey@redhat.com>
3726
3727 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
3728 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
3729 argument.
3730 (target_get_tracepoint_status): Add argument.
3731 * target.c (update_current_target): Update.
3732 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
3733
8bd200f1
TT
37342014-02-19 Tom Tromey <tromey@redhat.com>
3735
3736 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
3737 * target.h (struct target_ops) <to_get_trace_status>: Add
3738 argument.
3739 (target_get_trace_status): Add argument.
3740 * target.c (update_current_target): Update.
3741 * remote.c (remote_get_trace_status): Add 'self' argument.
3742 (remote_start_remote, remote_can_download_tracepoint): Update.
3743 * ctf.c (ctf_get_trace_status): Add 'self' argument.
3744
e2d1aae3
TT
37452014-02-19 Tom Tromey <tromey@redhat.com>
3746
3747 * target.h (struct target_ops) <to_trace_start>: Add argument.
3748 (target_trace_start): Add argument.
3749 * target.c (update_current_target): Update.
3750 * remote.c (remote_trace_start): Add 'self' argument.
3751
583f9a86
TT
37522014-02-19 Tom Tromey <tromey@redhat.com>
3753
3754 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3755 Add argument.
3756 (target_trace_set_readonly_regions): Add argument.
3757 * target.c (update_current_target): Update.
3758 * remote.c (remote_trace_set_readonly_regions): Add 'self'
3759 argument.
3760
780b049c
TT
37612014-02-19 Tom Tromey <tromey@redhat.com>
3762
3763 * target.h (struct target_ops) <to_disable_tracepoint>: Add
3764 argument.
3765 (target_disable_tracepoint): Add argument.
3766 * target.c (update_current_target): Update.
3767 * remote.c (remote_disable_tracepoint): Add 'self' argument.
3768
46670d57
TT
37692014-02-19 Tom Tromey <tromey@redhat.com>
3770
3771 * target.h (struct target_ops) <to_enable_tracepoint>: Add
3772 argument.
3773 (target_enable_tracepoint): Add argument.
3774 * target.c (update_current_target): Update.
3775 * remote.c (remote_enable_tracepoint): Add 'self' argument.
3776
559d2b81
TT
37772014-02-19 Tom Tromey <tromey@redhat.com>
3778
3779 * target.h (struct target_ops) <to_download_trace_state_variable>:
3780 Add argument.
3781 (target_download_trace_state_variable): Add argument.
3782 * target.c (update_current_target): Update.
3783 * remote.c (remote_download_trace_state_variable): Add 'self'
3784 argument.
3785
a52a8357
TT
37862014-02-19 Tom Tromey <tromey@redhat.com>
3787
3788 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
3789 argument.
3790 (target_can_download_tracepoint): Add argument.
3791 * target.c (update_current_target): Update.
3792 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
3793
548f7808
TT
37942014-02-19 Tom Tromey <tromey@redhat.com>
3795
3796 * target.h (struct target_ops) <to_download_tracepoint>: Add
3797 argument.
3798 (target_download_tracepoint): Add argument.
3799 * target.c (update_current_target): Update.
3800 * remote.c (remote_download_tracepoint): Add 'self' argument.
3801
ecae04e1
TT
38022014-02-19 Tom Tromey <tromey@redhat.com>
3803
3804 * target.h (struct target_ops) <to_trace_init>: Add argument.
3805 (target_trace_init): Add argument.
3806 * target.c (update_current_target): Update.
3807 * remote.c (remote_trace_init): Add 'self' argument.
3808
fab5aa7c
TT
38092014-02-19 Tom Tromey <tromey@redhat.com>
3810
3811 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
3812 * target.c (target_fileio_readlink): Add argument.
3813 * remote.c (remote_hostio_readlink): Add 'self' argument.
3814 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
3815
dbbca37d
TT
38162014-02-19 Tom Tromey <tromey@redhat.com>
3817
3818 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
3819 * target.c (target_fileio_unlink): Add argument.
3820 * remote.c (remote_hostio_unlink): Add 'self' argument.
3821 (remote_file_delete): Update.
3822 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
3823
df39ea25
TT
38242014-02-19 Tom Tromey <tromey@redhat.com>
3825
3826 * target.h (struct target_ops) <to_fileio_close>: Add argument.
3827 * target.c (target_fileio_close): Add argument.
3828 * remote.c (remote_hostio_close): Add 'self' argument.
3829 (remote_hostio_close_cleanup): Update.
3830 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
3831 Update.
3832 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
3833
a3be983c
TT
38342014-02-19 Tom Tromey <tromey@redhat.com>
3835
3836 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
3837 * target.c (target_fileio_pread): Add argument.
3838 * remote.c (remote_hostio_pread): Add 'self' argument.
3839 (remote_bfd_iovec_pread, remote_file_get): Update.
3840 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
3841
0d866f62
TT
38422014-02-19 Tom Tromey <tromey@redhat.com>
3843
3844 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
3845 * target.c (target_fileio_pwrite): Add argument.
3846 * remote.c (remote_hostio_pwrite): Add 'self' argument.
3847 (remote_file_put): Update.
3848 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
3849
cd897586
TT
38502014-02-19 Tom Tromey <tromey@redhat.com>
3851
3852 * target.h (struct target_ops) <to_fileio_open>: Add argument.
3853 * target.c (target_fileio_open): Add argument.
3854 * remote.c (remote_hostio_open): Add 'self' argument.
3855 (remote_bfd_iovec_open): Add 'self' argument.
3856 (remote_file_put): Add 'self' argument.
3857 (remote_file_get): Add 'self' argument.
3858 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
3859
78eff0ec
TT
38602014-02-19 Tom Tromey <tromey@redhat.com>
3861
3862 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3863 Add argument.
3864 (target_can_run_breakpoint_commands): Add argument.
3865 * target.c (update_current_target): Update.
3866 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
3867 argument.
3868 (remote_insert_breakpoint): Add 'self' argument.
3869 (remote_insert_hw_breakpoint): Add 'self' argument.
3870 (remote_can_run_breakpoint_commands): Add 'self' argument.
3871
efcc2da7
TT
38722014-02-19 Tom Tromey <tromey@redhat.com>
3873
3874 * target.h (struct target_ops)
3875 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
3876 (target_supports_evaluation_of_breakpoint_conditions): Add
3877 argument.
3878 * target.c (update_current_target): Update.
3879 * remote.c (remote_supports_cond_breakpoints): Add 'self'
3880 argument.
3881 (remote_insert_breakpoint): Add 'self' argument.
3882 (remote_insert_hw_breakpoint): Add 'self' argument.
3883 (remote_supports_cond_breakpoints): Add 'self' argument.
3884
6de37a3a
TT
38852014-02-19 Tom Tromey <tromey@redhat.com>
3886
3887 * target.h (struct target_ops) <to_supports_string_tracing>: Add
3888 argument.
3889 (target_supports_string_tracing): Add argument.
3890 * target.c (update_current_target): Update.
3891 * remote.c (remote_supports_string_tracing): Add 'self' argument.
3892
2bfc0540
TT
38932014-02-19 Tom Tromey <tromey@redhat.com>
3894
3895 * target.h (struct target_ops)
3896 <to_supports_disable_randomization>: Add argument.
3897 * target.c (find_default_supports_disable_randomization): Add
3898 argument.
3899 (target_supports_disable_randomization): Add argument.
3900 (find_default_supports_disable_randomization): Add 'self'
3901 argument.
3902 * remote.c (extended_remote_supports_disable_randomization): Add
3903 'self' argument.
3904 (remote_supports_disable_randomization): Add 'self' argument.
3905 (extended_remote_create_inferior): Update.
3906 * linux-nat.c (linux_nat_supports_disable_randomization): Add
3907 'self' argument.
3908
7d178d6a
TT
39092014-02-19 Tom Tromey <tromey@redhat.com>
3910
3911 * target.h (struct target_ops)
3912 <to_supports_enable_disable_tracepoint>: Add argument.
3913 (target_supports_enable_disable_tracepoint): Add argument.
3914 * target.c (update_current_target): Update.
3915 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
3916 argument.
3917
86ce2668
TT
39182014-02-19 Tom Tromey <tromey@redhat.com>
3919
3920 * target.h (struct target_ops) <to_supports_multi_process>: Add
3921 argument.
3922 (target_supports_multi_process): Add argument.
3923 * target.c (update_current_target): Update.
3924 * remote.c (remote_supports_multi_process): Add 'self' argument.
3925 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
3926 argument.
3927 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
3928 argument.
3929
4c612759
TT
39302014-02-19 Tom Tromey <tromey@redhat.com>
3931
3932 * target.h (struct target_ops) <to_execution_direction>: Add
3933 argument.
3934 (target_execution_direction): Add argument.
3935 * target.c (default_execution_direction): Add 'self' argument.
3936 * record-full.c (record_full_execution_direction): Add 'self'
3937 argument.
3938
19db3e69
TT
39392014-02-19 Tom Tromey <tromey@redhat.com>
3940
3941 * target.h (struct target_ops) <to_can_execute_reverse>: Add
3942 argument.
3943 (target_can_execute_reverse): Add argument.
3944 * remote.c (remote_can_execute_reverse): Add 'self' argument.
3945 * record-full.c (record_full_can_execute_reverse): Add 'self'
3946 argument.
3947 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
3948 argument.
3949
1e6b91a4
TT
39502014-02-19 Tom Tromey <tromey@redhat.com>
3951
3952 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
3953 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
3954 argument.
3955 (target_get_ada_task_ptid): Add argument.
3956 * target.c (update_current_target): Update.
3957 (default_get_ada_task_ptid): Add 'self' argument.
3958 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
3959 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
3960 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
3961 argument.
3962 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
3963 argument.
3964 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
3965 argument.
3966 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
3967 argument.
3968 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
3969 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
3970 argument.
3971
3c80fb48
TT
39722014-02-19 Tom Tromey <tromey@redhat.com>
3973
3974 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
3975 (target_goto_bookmark): Add argument.
3976 * target.c (dummy_goto_bookmark): Add 'self' argument.
3977 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
3978
dd0e2830
TT
39792014-02-19 Tom Tromey <tromey@redhat.com>
3980
3981 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
3982 (target_get_bookmark): Add argument.
3983 * target.c (dummy_get_bookmark): Add 'self' argument.
3984 * record-full.c (record_full_get_bookmark): Add 'self' argument.
3985
fc6691b2
TT
39862014-02-19 Tom Tromey <tromey@redhat.com>
3987
3988 * target.h (struct target_ops) <to_make_corefile_notes>: Add
3989 argument.
3990 (target_make_corefile_notes): Add argument.
3991 * target.c (dummy_make_corefile_notes): Add 'self' argument.
3992 * procfs.c (procfs_make_note_section): Add 'self' argument.
3993 (procfs_make_note_section): Add 'self' argument.
3994 (procfs_make_note_section): Add 'self' argument.
3995 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
3996 argument.
3997 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
3998 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
3999 * exec.c (exec_make_note_section): Add 'self' argument.
4000 (exec_make_note_section): Add 'self' argument.
4001
2e73927c
TT
40022014-02-19 Tom Tromey <tromey@redhat.com>
4003
4004 * target.h (struct target_ops) <to_find_memory_regions>: Add
4005 argument.
4006 (target_find_memory_regions): Add argument.
4007 * target.c (dummy_find_memory_regions): Add 'self' argument.
4008 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4009 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4010 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4011 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4012 * exec. (exec_do_find_memory_regions): New global.
4013 (exec_set_find_memory_regions): Rewrite.
4014 (exec_find_memory_regions): New function.
4015 (init_exec_ops): Use exec_find_memory_regions.
4016
2a9a2795
TT
40172014-02-19 Tom Tromey <tromey@redhat.com>
4018
4019 * target.h (struct target_ops) <to_supports_non_stop>: Add
4020 argument.
4021 * target.c (find_default_supports_non_stop): Add argument.
4022 (target_supports_non_stop): Add argument.
4023 (find_default_supports_non_stop): Add 'self' argument.
4024 * remote.c (remote_supports_non_stop): Add 'self' argument.
4025 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4026
4ab76ea3
TT
40272014-02-19 Tom Tromey <tromey@redhat.com>
4028
4029 * target.h (struct target_ops) <to_log_command>: Add argument.
4030 (target_log_command): Add argument.
4031 * serial.h (serial_log_command): Add 'self' argument.
4032 * serial.c (serial_log_command): Add 'self' argument.
4033
8dd27370
TT
40342014-02-19 Tom Tromey <tromey@redhat.com>
4035
4036 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4037 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4038 argument.
4039 (target_pid_to_exec_file): Add argument.
4040 * target.c (debug_to_pid_to_exec_file): Add argument.
4041 (update_current_target): Update.
4042 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4043 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4044 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4045 (linux_handle_extended_wait): Update.
4046 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4047 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4048 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4049 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4050
1aac633b
TT
40512014-02-19 Tom Tromey <tromey@redhat.com>
4052
4053 * target.h (struct target_ops) <to_rcmd>: Add argument.
4054 (target_rcmd): Add argument.
4055 * target.c (debug_to_rcmd): Add argument.
4056 (update_current_target, do_monitor_command): Update.
4057 * remote.c (remote_rcmd): Add 'self' argument.
4058 * monitor.c (monitor_rcmd): Add 'self' argument.
4059
1eab8a48
TT
40602014-02-19 Tom Tromey <tromey@redhat.com>
4061
4062 * windows-nat.c (windows_stop): Add 'self' argument.
4063 * target.h (struct target_ops) <to_stop>: Add argument.
4064 * target.c (target_stop): Add argument.
4065 (debug_to_stop): Add argument.
4066 (update_current_target): Update.
4067 * remote.c (remote_stop): Add 'self' argument.
4068 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4069 (gdbsim_cntrl_c): Update.
4070 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4071 * procfs.c (procfs_stop): Add 'self' argument.
4072 * nto-procfs.c (procfs_stop): Add 'self' argument.
4073 * monitor.c (monitor_stop): Add 'self' argument.
4074 (monitor_open): Update.
4075 * linux-nat.c (linux_nat_stop): Add argument.
4076 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4077 * gnu-nat.c (gnu_stop): Add 'self' argument.
4078 * darwin-nat.c (darwin_stop): Add 'self' argument.
4079
503a628d
TT
40802014-02-19 Tom Tromey <tromey@redhat.com>
4081
4082 * target.h (struct target_ops) <to_thread_name>: Add argument.
4083 * target.c (target_thread_name): Add argument.
4084 (update_current_target): Update.
4085 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4086
c15906d8
TT
40872014-02-19 Tom Tromey <tromey@redhat.com>
4088
4089 * target.h (struct target_ops) <to_extra_thread_info>: Add
4090 argument.
4091 (target_extra_thread_info): Add argument.
4092 * target.c (update_current_target): Update.
4093 * remote.c (remote_threads_extra_info): Add 'self' argument.
4094 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4095 argument.
4096 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4097 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4098 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4099 argument.
4100 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4101 argument.
4102 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4103 argument.
4104 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4105 argument.
4106
daf5e9b6
TT
41072014-02-19 Tom Tromey <tromey@redhat.com>
4108
4109 * target.h (struct target_ops) <to_program_signals>: Add argument.
4110 * target.c (target_program_signals): Add argument.
4111 * remote.c (remote_program_signals): Add 'self' argument.
4112
94bedb42
TT
41132014-02-19 Tom Tromey <tromey@redhat.com>
4114
4115 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4116 * target.c (target_pass_signals): Add argument.
4117 * remote.c (remote_pass_signals): Add 'self' argument.
4118 (remote_start_remote): Update.
4119 * procfs.c (procfs_pass_signals): Add 'self' argument.
4120 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4121 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4122 (linux_nat_create_inferior, linux_nat_attach): Update.
4123
da82bd6b
TT
41242014-02-19 Tom Tromey <tromey@redhat.com>
4125
4126 * windows-nat.c (windows_can_run): Add 'self' argument.
4127 * target.h (struct target_ops) <to_can_run>: Add argument.
4128 (target_can_run): Add argument.
4129 * target.c (debug_to_can_run): Add argument.
4130 (update_current_target): Update.
4131 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4132 * inf-child.c (inf_child_can_run): Add 'self' argument.
4133 * go32-nat.c (go32_can_run): Add 'self' argument.
4134
d796e1d6
TT
41352014-02-19 Tom Tromey <tromey@redhat.com>
4136
4137 * target.h (struct target_ops) <to_has_exited>: Add argument.
4138 (target_has_exited): Add argument.
4139 * target.c (debug_to_has_exited): Add argument.
4140 (update_current_target): Update.
4141
ff214e67
TT
41422014-02-19 Tom Tromey <tromey@redhat.com>
4143
4144 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4145 argument.
4146 (target_set_syscall_catchpoint): Add argument.
4147 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4148 argument.
4149 * target.c (update_current_target): Update.
4150
758e29d2
TT
41512014-02-19 Tom Tromey <tromey@redhat.com>
4152
4153 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4154 argument.
4155 (target_remove_exec_catchpoint): Add argument.
4156 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4157 (update_current_target): Update.
4158 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4159 argument.
4160
ba025e51
TT
41612014-02-19 Tom Tromey <tromey@redhat.com>
4162
4163 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4164 argument.
4165 (target_insert_exec_catchpoint): Add argument.
4166 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4167 (update_current_target): Update.
4168 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4169 argument.
4170
e98cf0cd
TT
41712014-02-19 Tom Tromey <tromey@redhat.com>
4172
4173 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4174 argument.
4175 (target_remove_vfork_catchpoint): Add argument.
4176 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4177 (update_current_target): Update.
4178 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4179 argument.
4180
3ecc7da0
TT
41812014-02-19 Tom Tromey <tromey@redhat.com>
4182
4183 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4184 argument.
4185 (target_insert_vfork_catchpoint): Add argument.
4186 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4187 (update_current_target): Update.
4188 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4189 argument.
4190
973fc227
TT
41912014-02-19 Tom Tromey <tromey@redhat.com>
4192
4193 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4194 argument.
4195 (target_remove_fork_catchpoint): Add argument.
4196 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4197 (update_current_target): Update.
4198 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4199 argument.
4200
a863b201
TT
42012014-02-19 Tom Tromey <tromey@redhat.com>
4202
4203 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4204 argument.
4205 (target_insert_fork_catchpoint): Add argument.
4206 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4207 (update_current_target): Update.
4208 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4209 argument.
4210
2e97a79e
TT
42112014-02-19 Tom Tromey <tromey@redhat.com>
4212
4213 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4214 argument.
4215 (target_post_startup_inferior): Add argument.
4216 * target.c (debug_to_post_startup_inferior): Add argument.
4217 (update_current_target): Update.
4218 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4219 argument.
4220 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4221 argument.
4222 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4223 argument.
4224 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4225 argument.
4226 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4227 'self' argument.
4228 (super_post_startup_inferior): Likewise.
4229 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4230 'self' argument.
4231 (super_post_startup_inferior): Likewise.
4232 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4233 Add 'self' argument.
4234 (super_post_startup_inferior): Likewise.
4235
71a9f134
TT
42362014-02-19 Tom Tromey <tromey@redhat.com>
4237
4238 * target.h (struct target_ops) <to_load>: Add argument.
4239 * target.c (target_load): Add argument.
4240 (debug_to_load): Add argument.
4241 (update_current_target): Update.
4242 * remote.c (remote_load): Add 'self' argument.
4243 * remote-sim.c (gdbsim_load): Add 'self' argument.
4244 * remote-mips.c (mips_load): Add 'self' argument.
4245 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4246 * monitor.c (monitor_load): Add 'self' argument.
4247 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4248
0a4f40a2
TT
42492014-02-19 Tom Tromey <tromey@redhat.com>
4250
4251 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4252 (target_terminal_info): Add argument.
4253 * target.c (debug_to_terminal_info): Add argument.
4254 (default_terminal_info): Likewise.
4255 * inflow.c (child_terminal_info): Add 'self' argument.
4256 * inferior.h (child_terminal_info): Add 'self' argument.
4257 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4258
ae3bd431
TT
42592014-02-19 Tom Tromey <tromey@redhat.com>
4260
4261 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4262 argument.
4263 (target_terminal_save_ours): Add argument.
4264 * target.c (debug_to_terminal_save_ours): Add argument.
4265 (update_current_target): Update.
4266 * inflow.c (terminal_save_ours): Add 'self' argument.
4267 * inferior.h (terminal_save_ours): Add 'self' argument.
4268
e3594fd1
TT
42692014-02-19 Tom Tromey <tromey@redhat.com>
4270
4271 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4272 (target_terminal_ours): Add argument.
4273 * target.c (debug_to_terminal_ours): Add argument.
4274 (update_current_target): Update.
4275 * remote.c (remote_terminal_ours): Add 'self' argument.
4276 (remote_close): Update.
4277 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4278 * inflow.c (terminal_ours): Add 'self' argument.
4279 * inferior.h (terminal_ours): Add 'self' argument.
4280 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4281
2e1e1a19
TT
42822014-02-19 Pedro Alves <palves@redhat.com>
4283 Tom Tromey <tromey@redhat.com>
4284
4285 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4286 argument.
4287 (target_terminal_ours_for_output): Add argument.
4288 * target.c (debug_to_terminal_ours_for_output): Add argument.
4289 (update_current_target): Update.
4290 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4291 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4292 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4293
d2f640d4
TT
42942014-02-19 Tom Tromey <tromey@redhat.com>
4295
4296 * target.h (struct target_ops) <to_terminal_inferior>: Add
4297 argument.
4298 * target.c (target_terminal_inferior): Add argument.
4299 (update_current_target): Update.
4300 * remote.c (remote_terminal_inferior): Add 'self' argument.
4301 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4302 * inflow.c (terminal_inferior): Add 'self' argument.
4303 * inferior.h (terminal_inferior): Add 'self' argument.
4304 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4305 (go32_terminal_inferior): Add 'self' argument.
4306
c42bf286
TT
43072014-02-19 Tom Tromey <tromey@redhat.com>
4308
4309 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4310 (target_terminal_init): Add argument.
4311 * target.c (debug_to_terminal_init): Add argument.
4312 (update_current_target): Update.
4313 * inflow.c (terminal_init_inferior): Add 'self' argument.
4314 * inferior.h (terminal_init_inferior): Add 'self' argument.
4315 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4316 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4317
c3a5ff89
TT
43182014-02-19 Tom Tromey <tromey@redhat.com>
4319
4320 * target.h (struct target_ops)
4321 <to_can_accel_watchpoint_condition>: Add argument.
4322 (target_can_accel_watchpoint_condition): Add argument.
4323 * target.c (debug_to_can_accel_watchpoint_condition): Add
4324 argument.
4325 (update_current_target): Update.
4326 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4327 'self' argument.
4328
31568a15
TT
43292014-02-19 Tom Tromey <tromey@redhat.com>
4330
4331 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4332 Add argument.
4333 (target_region_ok_for_hw_watchpoint): Add argument.
4334 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4335 (default_region_ok_for_hw_watchpoint): Add argument.
4336 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4337 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4338 argument.
4339 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4340 argument.
4341 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4342 argument.
4343 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4344 'self' argument.
4345 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4346 'self' argument.
4347 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4348 'self' argument.
4349 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4350 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4351 'self' argument.
4352 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4353 Add 'self' argument.
4354
7bb99c53
TT
43552014-02-19 Tom Tromey <tromey@redhat.com>
4356
4357 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4358 argument.
4359 (target_insert_watchpoint): Add argument.
4360 * target.c (debug_to_insert_watchpoint): Add argument.
4361 (update_current_target): Update.
4362 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4363 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4364 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4365 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4366 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4367 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4368 argument.
4369 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4370 (procfs_insert_hw_watchpoint): Add 'self' argument.
4371 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4372 argument.
4373 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4374 argument.
4375 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4376 argument.
4377 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4378 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4379 argument.
4380 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4381 'self' argument.
4382
11b5219a
TT
43832014-02-19 Tom Tromey <tromey@redhat.com>
4384
4385 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4386 argument.
4387 (target_remove_watchpoint): Add argument.
4388 * target.c (debug_to_remove_watchpoint): Add argument.
4389 (update_current_target): Update.
4390 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4391 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4392 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4393 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4394 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4395 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4396 argument.
4397 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4398 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4399 argument.
4400 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4401 argument.
4402 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4403 argument.
4404 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4405 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4406 argument.
4407 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4408 'self' argument.
4409
a64dc96c
TT
44102014-02-19 Tom Tromey <tromey@redhat.com>
4411
4412 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4413 argument.
4414 (target_remove_hw_breakpoint): Add argument.
4415 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4416 (update_current_target): Update.
4417 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4418 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4419 argument.
4420 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4421 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4422 argument.
4423 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4424 'self' argument.
4425
23a26771
TT
44262014-02-19 Tom Tromey <tromey@redhat.com>
4427
4428 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4429 argument.
4430 (target_insert_hw_breakpoint): Add argument.
4431 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4432 (update_current_target): Update.
4433 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4434 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4435 argument.
4436 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4437 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4438 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
4439 argument.
4440 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
4441 'self' argument.
4442
5461485a
TT
44432014-02-19 Tom Tromey <tromey@redhat.com>
4444
4445 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
4446 argument.
4447 (target_can_use_hardware_watchpoint): Add argument.
4448 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
4449 (update_current_target): Update.
4450 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
4451 argument.
4452 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
4453 argument.
4454 * remote.c (remote_check_watch_resources): Add 'self' argument.
4455 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
4456 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
4457 argument.
4458 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
4459 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
4460 argument.
4461 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
4462 argument.
4463 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
4464 argument.
4465 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
4466 argument.
4467 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
4468 argument.
4469 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
4470 argument.
4471 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
4472 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
4473 argument.
4474 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
4475 'self' argument.
4476
f045800c
TT
44772014-02-19 Tom Tromey <tromey@redhat.com>
4478
4479 * target.h (struct target_ops) <to_post_attach>: Add argument.
4480 (target_post_attach): Add argument.
4481 * target.c (debug_to_post_attach): Add argument.
4482 (update_current_target): Update.
4483 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
4484 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
4485 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
4486 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
4487 * inf-child.c (inf_child_post_attach): Add 'self' argument.
4488
de90e03d
TT
44892014-02-19 Tom Tromey <tromey@redhat.com>
4490
4491 * windows-nat.c (windows_close): Add 'self' argument.
4492 * tracepoint.c (tfile_close): Add 'self' argument.
4493 * target.h (struct target_ops) <to_close>: Add argument.
4494 * target.c (target_close): Add argument.
4495 (update_current_target): Update.
4496 * remote.c (remote_close): Add 'self' argument.
4497 * remote-sim.c (gdbsim_close): Add 'self' argument.
4498 * remote-mips.c (mips_close): Add 'self' argument.
4499 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
4500 * record-full.c (record_full_close): Add 'self' argument.
4501 * record-btrace.c (record_btrace_close): Add 'self' argument.
4502 * monitor.h (monitor_close): Add 'self' argument.
4503 * monitor.c (monitor_close): Add 'self' argument.
4504 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
4505 * linux-nat.c (linux_nat_close): Add argument.
4506 * go32-nat.c (go32_close): Add 'self' argument.
4507 * exec.c (exec_close_1): Add 'self' argument.
4508 * ctf.c (ctf_close): Add 'self' argument.
4509 * corelow.c (core_close): Add 'self' argument.
4510 (core_close_cleanup): Update.
4511 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
4512 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
4513
9dd130a0
TT
45142014-02-19 Tom Tromey <tromey@redhat.com>
4515
4516 * remote.c (remote_load): New function.
4517 (init_remote_ops): Use it.
4518
46917d26
TT
45192014-02-19 Tom Tromey <tromey@redhat.com>
4520
4521 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
4522 argument.
4523 * common/linux-btrace.h (linux_supports_btrace): Update.
4524 * remote.c (remote_supports_btrace): Add "self" argument.
4525 * target-delegates.c: Rebuild.
4526 * target.c (target_supports_btrace): Remove.
4527 * target.h (struct target_ops) <to_supports_btrace>: Add
4528 target_ops argument.
4529 (target_supports_btrace): New define.
4530
6b84065d
TT
45312014-02-19 Tom Tromey <tromey@redhat.com>
4532
4533 * record-full.c (record_full_beneath_to_resume_ops)
4534 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
4535 (record_full_beneath_to_wait)
4536 (record_full_beneath_to_store_registers_ops)
4537 (record_full_beneath_to_store_registers)
4538 (record_full_beneath_to_xfer_partial_ops)
4539 (record_full_beneath_to_xfer_partial)
4540 (record_full_beneath_to_insert_breakpoint_ops)
4541 (record_full_beneath_to_insert_breakpoint)
4542 (record_full_beneath_to_remove_breakpoint_ops)
4543 (record_full_beneath_to_remove_breakpoint)
4544 (record_full_beneath_to_stopped_by_watchpoint)
4545 (record_full_beneath_to_stopped_data_address)
4546 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
4547 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
4548 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
4549 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
4550 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
4551 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
4552 (tmp_to_stopped_data_address, tmp_to_async): Remove.
4553 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
4554 (record_full_resume, record_full_wait_1)
4555 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
4556 (record_full_store_registers, record_full_xfer_partial)
4557 (record_full_insert_breakpoint, record_full_remove_breakpoint)
4558 (record_full_async, record_full_core_xfer_partial): Use target
4559 delegation.
4560 * target-delegates.c: Rebuild.
4561 * target.c (current_xfer_partial): Remove.
4562 (update_current_target): Do not INHERIT or de_fault
4563 to_insert_breakpoint, to_remove_breakpoint,
4564 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
4565 to_is_async_p, to_async. Do not set to_xfer_partial field.
4566 (default_xfer_partial): Simplify.
4567 (current_xfer_partial): Remove.
4568 (target_wait, target_resume): Simplify.
4569 (find_default_can_async_p, find_default_is_async_p): Update.
4570 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
4571 to_xfer_partial, to_stopped_by_watchpoint,
4572 to_stopped_data_address.
4573 (target_store_registers): Simplify.
4574 (forward_target_remove_breakpoint)
4575 (forward_target_insert_breakpoint): Remove.
4576 (target_remove_breakpoint, target_insert_breakpoint)
4577 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
4578 * target.h (struct target_ops) <to_resume, to_wait,
4579 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
4580 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
4581 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
4582 markup.
4583 (forward_target_remove_breakpoint)
4584 (forward_target_insert_breakpoint): Remove.
4585 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
4586 directly.
4587 (record_btrace_insert_breakpoint): Delegate directly.
4588
1101cb7b
TT
45892014-02-19 Tom Tromey <tromey@redhat.com>
4590
4591 PR build/7701:
4592 * target-delegates.c: New file.
4593 * target.c: Include target-delegates.c.
4594 (init_dummy_target): Call install_dummy_methods.
4595 (complete_target_initialization): Call install_delegators.
4596 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
4597 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
4598 * make-target-delegates: New file.
4599
8b06beed
TT
46002014-02-19 Tom Tromey <tromey@redhat.com>
4601
4602 * record.c (find_record_target): Use find_target_at.
4603 * target.c (find_target_at): New function.
4604 * target.h (find_target_at): Declare.
4605
6a109b6b
TT
46062014-02-19 Tom Tromey <tromey@redhat.com>
4607
4608 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
4609 Add 'ops' argument.
4610 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
4611 'ops' argument.
4612 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
4613 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
4614 'ops' argument.
4615 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
4616 argument.
4617 * linux-nat.c (save_sigtrap): Update.
4618 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
4619 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
4620 (linux_nat_close): Update.
4621 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
4622 argument.
4623 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
4624 argument.
4625 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
4626 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
4627 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
4628 (tmp_to_async): Add 'ops' argument.
4629 (record_full_stopped_by_watchpoint, record_full_async)
4630 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
4631 argument.
4632 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
4633 (m32r_stopped_by_watchpoint): Add 'ops' argument.
4634 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
4635 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
4636 (remote_is_async_p, remote_async): Add 'ops' argument.
4637 (remote_stopped_data_address): Update.
4638 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
4639 * target.c (update_current_target)
4640 (find_default_can_async_p, find_default_is_async_p): Update.
4641 (init_dummy_target): Update.
4642 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
4643 * target.h (struct target_ops) <to_stopped_by_watchpoint,
4644 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
4645 (target_can_async_p, target_is_async_p, target_async)
4646 (target_stopped_by_watchpoint): Update.
4647
e095146b
YQ
46482014-02-19 Yao Qi <yao@codesourcery.com>
4649
4650 PR gdb/16220
4651 * gdbarch.sh: Remove startup_gdbarch.
4652 * gdbarch.c: Regenerated.
4653 * gdbarch.h: Likewise.
4654
bc3c6b36
KB
46552014-02-17 Kevin Buettner <kevinb@redhat.com>
4656
4657 * rl78-tdep.c (rl78_g10_register_name): New function.
4658 (rl78_return_value): Add g10 support.
4659 (rl78_gdbarch_init): Register rl78_g10_register_name for the
4660 g10.
4661
98dc0167 46622014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
4663
4664 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
4665 (SUBDIR_GUILE_SRCS): Ditto.
4666 (scm-gsmob.o): Ditto.
4667
842c05cd
YQ
46682014-02-17 Yao Qi <yao@codesourcery.com>
4669
4670 * gnu-nat.c (ILL_RPC): Declare defined function.
4671
25c0bd04
YQ
46722014-02-17 Yao Qi <yao@codesourcery.com>
4673
4674 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
4675 mach_msg_type_number_t.
4676 (gnu_write_inferior): Likewise.
4677
a9a758e3
YQ
46782014-02-17 Yao Qi <yao@codesourcery.com>
4679
4680 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
4681 in format string.
4682 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
4683 (inf_validate_procs, inf_signal): Likewise.
4684 (S_exception_raise_request): Likewise.
4685 (do_mach_notify_dead_name): Likewise.
4686 (steal_exc_port): Likewise.
4687 (gnu_read_inferior): Change 'copy_count''s type to
4688 mach_msg_type_number_t.
4689 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
4690 format string.
4691
bae8023e
TS
46922014-02-16 Thomas Schwinge <thomas@codesourcery.com>
4693
c82f56d9
TS
4694 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
4695 flag. Adjust all users; in particular...
4696 (gnu_wait): ..., don't decrement its value in here...
4697 (gnu_create_inferior): ..., and instead set the flag in here,
4698 around the startup_inferior call, and call that one with
4699 START_INFERIOR_TRAPS_EXPECTED.
4700
3398af6a
TS
4701 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
4702 (ILL_RPC): ... new macro.
4703 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
4704 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
4705 (do_mach_notify_send_once, S_proc_setmsgport_reply)
4706 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
4707 functions with ILL_RPC macro.
4708 (S_proc_pid2task_reply, S_proc_task2pid_reply)
4709 (S_proc_task2proc_reply, S_proc_proc2task_reply)
4710 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
4711 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
4712 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
4713 (S_proc_getlogin_reply, S_proc_getsid_reply)
4714 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
4715 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
4716 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
4717 (S_proc_getnports_reply, S_proc_is_important_reply)
4718 (S_proc_get_code_reply): New stub functions, generated with
4719 ILL_RPC macro.
4720
d47642c9
TS
4721 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
4722 collected the type check structures.
4723
bae8023e
TS
4724 * reply_mig_hack.awk: Don't expect to see the auto keyword.
4725
8a55ffb0
DE
47262014-02-14 Doug Evans <dje@google.com>
4727
4728 * target.c (target_write_partial): Fix result type.
4729
c2853f3d
JM
47302014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
4731
4732 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
4733 the proper offsets to access fpregset_t.
4734
ac61d2db
SA
47352014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
4736
4737 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
4738 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
4739 * h8300-tdep.c (setmachinelist): Remove global.
4740 * hppa-tdep.c (hppa_sigtramp): Remove global.
4741 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
4742 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
4743 * ravenscar-thread.c (update_target_observer): Remove global.
4744 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
4745
9d2d0b8b
TT
47462014-02-12 Tom Tromey <tromey@redhat.com>
4747
4748 * common/rsp-low.c: Update comments.
4749 * common/rsp-low.h: Update comments.
4750
a7191e8b
TT
47512014-02-12 Tom Tromey <tromey@redhat.com>
4752
4753 * common/rsp-low.c (convert_ascii_to_int): Remove.
4754 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
4755
ff0e980e
TT
47562014-02-12 Tom Tromey <tromey@redhat.com>
4757
4758 * common/rsp-low.h (unhexify): Don't declare.
4759 * common/rsp-low.c (unhexify): Remove.
4760
e9371aff
TT
47612014-02-12 Tom Tromey <tromey@redhat.com>
4762
4763 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
4764 * common/rsp-low.c (convert_int_to_ascii): Remove.
4765
971dc0b8
TT
47662014-02-12 Tom Tromey <tromey@redhat.com>
4767
4768 * common/rsp-low.h (hexify): Don't declare.
4769 * common/rsp-low.c (hexify): Remove.
4770
0a822afb
TT
47712014-02-12 Tom Tromey <tromey@redhat.com>
4772
4773 * common/rsp-low.c (hexify): Never take strlen of argument.
4774
9f1b45b0
TT
47752014-02-12 Tom Tromey <tromey@redhat.com>
4776
4777 * common/rsp-low.c (bin2hex): Never take strlen of argument.
4778 * remote.c (extended_remote_run, remote_rcmd)
4779 (remote_download_trace_state_variable, remote_save_trace_data)
4780 (remote_set_trace_notes): Update.
4781 * tracepoint.c (encode_source_string, tfile_write_status)
4782 (tfile_write_uploaded_tsv): Update.
4783
9c3d6531
TT
47842014-02-12 Tom Tromey <tromey@redhat.com>
4785
4786 * tracepoint.c: Include rsp-low.h.
4787 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
4788 * remote.c: Include rsp-low.h.
4789 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
4790 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
4791 (remote_unescape_input): Move to common/rsp-low.c.
4792 * common/rsp-low.h: New file.
4793 * common/rsp-low.c: New file.
4794 * Makefile.in (SFILES): Add common/rsp-low.c.
4795 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
4796 (COMMON_OBS): Add rsp-low.o.
4797 (rsp-low.o): New target.
4798
01fd3ea5
TT
47992014-02-12 Tom Tromey <tromey@redhat.com>
4800
4801 * utils.h: Include print-utils.h.
4802 (host_address_to_string, plongest, pulongest, phex, phex_nz)
4803 (int_string, core_addr_to_string, core_addr_to_string_nz)
4804 (hex_string, hex_string_custom): Don't declare.
4805 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
4806 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
4807 (hex_string_custom, int_string, core_addr_to_string)
4808 (core_addr_to_string_nz, host_address_to_string): Move to
4809 common/print-utils.c.
4810 * common/print-utils.h: New file.
4811 * common/print-utils.c: New file
4812 * Makefile.in (SFILES): Add common/print-utils.c.
4813 (HFILES_NO_SRCDIR): Add common/print-utils.h.
4814 (COMMON_OBS): Add print-utils.o.
4815 (print-utils.o): New target.
4816
9fb50108
TT
48172014-02-12 Tom Tromey <tromey@redhat.com>
4818
4819 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
4820
0548b5db
MK
48212014-02-12 Mark Kettenis <kettenis@gnu.org>
4822
4823 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
4824
493443a4
MK
48252014-02-12 Mark Kettenis <kettenis@gnu.org>
4826
4827 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
4828 if a PT_IO ptrace request returns sucessfully but indicates that 0
4829 bytes were transferred.
4830
706d0883
PA
48312014-02-12 Pedro Alves <palves@redhat.com>
4832 Kevin Buettner <kevinb@redhat.com>
4833
4834 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
4835 TYPE_INSTANCE_FLAG_CODE_SPACE.
4836
5caa2f0b
PA
48372014-02-12 Pedro Alves <palves@redhat.com>
4838
4839 * h8300-tdep.c (pseudo_from_raw_register)
4840 (raw_from_pseudo_register): New functions.
4841 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
4842 them.
4843
76fd5f74
PA
48442014-02-12 Pedro Alves <palves@redhat.com>
4845
4846 * h8300-tdep.c (h8300_register_sim_regno): New function.
4847 (h8300_gdbarch_init): Install h8300_register_sim_regno as
4848 gdbarch_register_sim_regno hook.
4849
8f008406
SA
48502014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4851
4852 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
4853
195abc10
SA
48542014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
4855
4856 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
4857
93ffa5b9
MK
48582014-02-12 Mark Kettenis <kettenis@gnu.org>
4859
4860 * obsd-tdep.h (obsd_init_abi): New prototype.
4861 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
4862 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
4863 (obsd_init_abi): New functions.
4864 * i386obsd-tdep.c: Include "obsd-tdep.h".
4865 (i386obsd_init_abi): Call obsd_init_abi.
4866 * amd64obsd-tdep.c: Include "obsd-tdep.h".
4867 (amd64obsd_init_abi): Call obsd_init_abi.
4868 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
4869 obsd-tdep.c to gdb_target_obs.
4870
49caec94
JM
48712014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
4872
4873 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
4874 double float arguments to 16-byte in the argument slots.
4875
e1402065
DE
48762014-02-11 Doug Evans <xdje42@gmail.com>
4877
4878 * configure.ac: Don't crash if pkg-config is not found and guile
4879 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
4880 in guile checks.
4881 * configure: Regenerate.
4882
edcc890f
YQ
48832014-02-11 Yao Qi <yao@codesourcery.com>
4884
4885 * aix-thread.c (aix_thread_xfer_partial): Update comments.
4886 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
4887 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
4888 * gnu-nat.c (gnu_xfer_memory): Likewise.
4889 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
4890 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4891 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4892 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
4893
9b409511
YQ
48942014-02-11 Yao Qi <yao@codesourcery.com>
4895
4896 * target.h (enum target_xfer_error): Rename to ...
4897 (enum target_xfer_status): ... it. New. All users updated.
4898 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
4899 New.
4900 (TARGET_XFER_STATUS_ERROR_P): New macro.
4901 (target_xfer_error_to_string): Remove declaration.
4902 (target_xfer_status_to_string): Declare.
4903 (target_xfer_partial_ftype): Adjust it.
4904 (struct target_ops) <to_xfer_partial>: Return
4905 target_xfer_status. Add argument xfered_len. Update
4906 comments.
4907 * target.c (target_xfer_error_to_string): Rename to ...
4908 (target_xfer_status_to_string): ... it. New. All callers
4909 updated.
4910 (target_read_live_memory): Likewise. Call target_xfer_partial
4911 instead of target_read.
4912 (memory_xfer_live_readonly_partial): Return
4913 target_xfer_status. Add argument xfered_len.
4914 (raw_memory_xfer_partial): Likewise.
4915 (memory_xfer_partial_1): Likewise.
4916 (memory_xfer_partial): Likewise.
4917 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
4918 properly. Update debug message.
4919 (default_xfer_partial, current_xfer_partial): Likewise.
4920 (target_write_partial): Likewise.
4921 (target_read_partial): Likewise. All callers updated.
4922 (read_whatever_is_readable): Likewise.
4923 (target_write_with_progress): Likewise.
4924 (target_read_alloc_1): Likewise.
4925
4926 * aix-thread.c (aix_thread_xfer_partial): Likewise.
4927 * auxv.c (procfs_xfer_auxv): Likewise.
4928 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
4929 * bfd-target.c (target_bfd_xfer_partial): Likewise.
4930 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
4931 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
4932 * corefile.c (read_memory): Adjust.
4933 * corelow.c (core_xfer_partial): Likewise.
4934 * ctf.c (ctf_xfer_partial): Likewise.
4935 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
4936 updated.
4937 (darwin_xfer_partial): Likewise.
4938 * exec.c (section_table_xfer_memory_partial): Likewise. All
4939 callers updated.
4940 (exec_xfer_partial): Likewise.
4941 * exec.h (section_table_xfer_memory_partial): Update
4942 declaration.
4943 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
4944 negative.
4945 (gnu_xfer_partial): Likewise.
4946 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
4947 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
4948 (ia64_hpux_xfer_solib_got): Likewise.
4949 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
4950 type of 'partial_len' to ULONGEST.
4951 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
4952 * linux-nat.c (linux_xfer_siginfo ): Likewise.
4953 (linux_nat_xfer_partial): Likewise.
4954 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
4955 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
4956 * monitor.c (monitor_xfer_memory): Likewise.
4957 (monitor_xfer_partial): Likewise.
4958 * procfs.c (procfs_xfer_partial): Likewise.
4959 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4960 * record-full.c (record_full_xfer_partial): Likewise.
4961 (record_full_core_xfer_partial): Likewise.
4962 * remote-sim.c (gdbsim_xfer_memory): Likewise.
4963 (gdbsim_xfer_partial): Likewise.
4964 * remote.c (remote_write_bytes_aux): Likewise. All callers
4965 updated.
4966 (remote_write_bytes, remote_read_bytes): Likewise. All
4967 callers updated.
4968 (remote_flash_erase): Likewise. All callers updated.
4969 (remote_write_qxfer): Likewise. All callers updated.
4970 (remote_read_qxfer): Likewise. All callers updated.
4971 (remote_xfer_partial): Likewise.
4972 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
4973 (rs6000_xfer_shared_libraries): Likewise.
4974 * sol-thread.c (sol_thread_xfer_partial): Likewise.
4975 (sol_thread_xfer_partial): Likewise.
4976 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
4977 (sparc_xfer_partial): Likewise.
4978 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
4979 updated.
4980 (spu_xfer_partial): Likewise.
4981 * spu-multiarch.c (spu_xfer_partial): Likewise.
4982 * tracepoint.c (tfile_xfer_partial): Likewise.
4983 * windows-nat.c (windows_xfer_memory): Likewise.
4984 (windows_xfer_shared_libraries): Likewise.
4985 (windows_xfer_partial): Likewise.
4986 * valprint.c: Replace 'target_xfer_error' with
4987 'target_xfer_status' in comments.
4988
a8e63083
JB
49892014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
4990
4991 Checked in by Joel Brobecker <brobecker@adacore.com>.
4992 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
4993
e86b67d3
JB
49942014-02-11 Joel Brobecker <brobecker@adacore.com>
4995
4996 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
4997 function parameters.
4998
4b7d1f7f
WN
49992014-02-10 Will Newton <will.newton@linaro.org>
5000
5001 * elfread.c (elf_rel_plt_read): Look for a .got section if
5002 looking up .got.plt fails.
5003 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5004 on address passed to elf_gnu_ifunc_record_cache.
5005 (elf_gnu_ifunc_resolve_addr): Likewise.
5006 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5007
961842b2
JM
50082014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5009
5010 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5011 (X_RETTURN): New macro.
5012 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5013
5014 * sparc64-tdep.c (sparc64_init_abi): Hook
5015 sparc_in_function_epilogue_p.
5016
3f03e7b1
GB
50172014-02-10 Gary Benson <gbenson@redhat.com>
5018
5019 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5020 Rename name_matcher to symbol_matcher.
5021
96f861ef
GB
50222014-02-10 Gary Benson <gbenson@redhat.com>
5023
5024 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5025 Use expand_symtabs_file_matcher_ftype and
5026 expand_symtabs_symbol_matcher_ftype.
5027
ee01b665
JB
50282014-02-10 Joel Brobecker <brobecker@adacore.com>
5029
5030 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5031 (struct ada_symbol_cache): New.
5032 (ada_free_symbol_cache): Forward declare.
5033 (struct ada_pspace_data): New.
5034 (ada_pspace_data_handle): New static global.
5035 (get_ada_pspace_data, ada_pspace_data_cleanup)
5036 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5037 (cache_space, cache): Delete, now folded inside struct
5038 ada_pspace_data.
5039 (ada_get_symbol_cache): New function.
5040 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5041 implementation.
5042 (_initialize_ada_language): Remove initialization of cache_space.
5043 Move call to observer_attach_inferior_exit up, grouping it
5044 with the other observer registrations inside this function.
5045 Rename command to be more general. Add call to
5046 register_program_space_data_with_cleanup.
5047
143adbbf
JB
50482014-02-10 Joel Brobecker <brobecker@adacore.com>
5049
5050 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5051 ada_new_objfile_observer.
5052 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5053 (_initialize_tasks): Update uses of ada_new_objfile_observer
5054 and ada_tasks_normal_stop_observer.
5055
aa4fb036
JB
50562014-02-10 Joel Brobecker <brobecker@adacore.com>
5057
5058 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5059 returned by the 'Length attribute to integer.
5060
9dee8cc6
JB
50612014-02-10 Joel Brobecker <brobecker@adacore.com>
5062
5063 * ada-lang.c (_initialize_ada_language): Initialize
5064 cache_space obstack.
5065
3d9434b5
JB
50662014-02-10 Joel Brobecker <brobecker@adacore.com>
5067
5068 * ada-lang.c (HASH_SIZE): New macro.
5069 (struct cache_entry): New type.
5070 (cache_space, cache): New static globals.
5071 (ada_clear_symbol_cache, find_entry): New functions.
5072 (lookup_cached_symbol, cache_symbol): Implement.
5073 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5074 (_initialize_ada_language): Attach ada_new_objfile_observer
5075 and ada_free_objfile_observer.
5076
f0c5f9b2
JB
50772014-02-10 Joel Brobecker <brobecker@adacore.com>
5078
5079 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5080 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5081 struct block * parameter.
5082 (ada_lookup_symbol_list_worker): Constify local variable "block".
5083 Remove cast which is no longer necessary.
5084
ed3ef339
DE
50852014-02-10 Doug Evans <xdje42@gmail.com>
5086
5087 Add Guile as an extension language.
5088 * NEWS: Mention Guile scripting.
5089 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5090 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5091 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5092 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5093 (CLIBS): Add GUILE_LIBS.
5094 (install-guile): New rule.
5095 (guile.o): New rule.
5096 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5097 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5098 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5099 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5100 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5101 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5102 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5103 * configure.ac: New option --with-guile.
5104 * configure: Regenerate.
5105 * config.in: Regenerate.
5106 * auto-load.c: Remove #include "python/python.h". Add #include
5107 "gdb/section-scripts.h".
5108 (source_section_scripts): Handle Guile scripts.
5109 (_initialize_auto_load): Add name of Guile objfile script to
5110 scripts-directory help text.
5111 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5112 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5113 (struct breakpoint): New member scm_bp_object.
5114 * defs.h (enum command_control_type): New value guile_control.
5115 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5116 "extension.h".
5117 (show_user): Update comment.
5118 (_initialize_cli_cmds): Update help text for "show user". Update help
5119 text for max-user-call-depth.
5120 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5121 "extension.h".
5122 (multi_line_command_p): Add guile_control.
5123 (print_command_lines): Handle guile_control.
5124 (execute_control_command, recurse_read_control_structure): Ditto.
5125 (process_next_line): Recognize "guile" commands.
5126 * disasm.c (gdb_disassemble_info): Make non-static.
5127 * disasm.h: #include "dis-asm.h".
5128 (struct gdbarch): Add forward decl.
5129 (gdb_disassemble_info): Declare.
5130 * extension.c: #include "guile/guile.h".
5131 (extension_languages): Add guile.
5132 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5133 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5134 * gdbtypes.c (get_unsigned_type_max): New function.
5135 (get_signed_type_minmax): New function.
5136 * gdbtypes.h (get_unsigned_type_max): Declare.
5137 (get_signed_type_minmax): Declare.
5138 * guile/README: New file.
5139 * guile/guile-internal.h: New file.
5140 * guile/guile.c: New file.
5141 * guile/guile.h: New file.
5142 * guile/scm-arch.c: New file.
5143 * guile/scm-auto-load.c: New file.
5144 * guile/scm-block.c: New file.
5145 * guile/scm-breakpoint.c: New file.
5146 * guile/scm-disasm.c: New file.
5147 * guile/scm-exception.c: New file.
5148 * guile/scm-frame.c: New file.
5149 * guile/scm-gsmob.c: New file.
5150 * guile/scm-iterator.c: New file.
5151 * guile/scm-lazy-string.c: New file.
5152 * guile/scm-math.c: New file.
5153 * guile/scm-objfile.c: New file.
5154 * guile/scm-ports.c: New file.
5155 * guile/scm-pretty-print.c: New file.
5156 * guile/scm-safe-call.c: New file.
5157 * guile/scm-string.c: New file.
5158 * guile/scm-symbol.c: New file.
5159 * guile/scm-symtab.c: New file.
5160 * guile/scm-type.c: New file.
5161 * guile/scm-utils.c: New file.
5162 * guile/scm-value.c: New file.
5163 * guile/lib/gdb.scm: New file.
5164 * guile/lib/gdb/boot.scm: New file.
5165 * guile/lib/gdb/experimental.scm: New file.
5166 * guile/lib/gdb/init.scm: New file.
5167 * guile/lib/gdb/iterator.scm: New file.
5168 * guile/lib/gdb/printing.scm: New file.
5169 * guile/lib/gdb/types.scm: New file.
5170 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5171 (VPATH): Add $(GUILE_SRCDIR).
5172 (GUILE_DIR): New variable.
5173 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5174 (all): Add stamp-guile dependency.
5175 (stamp-guile): New rule.
5176 (clean-guile, install-guile, uninstall-guile): New rules.
5177 (install-only): Add install-guile dependency.
5178 (uninstall): Add uninstall-guile dependency.
5179 (clean): Add clean-guile dependency.
5180
ac020ec5
DE
51812014-02-09 Doug Evans <xdje42@gmail.com>
5182
5183 Revert this patch (which I approved, mea culpa).
5184
5185 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5186
5187 * Makefile.in (all-lib): Remove.
5188 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5189
2a081c59
JK
51902014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5191
5192 Fix Python stack corruption.
5193 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5194 gdb_py_longest.
5195
0a6bd22d
MK
51962014-02-08 Mark Kettenis <kettenis@gnu.org>
5197
5198 * Makefile.in (all-lib): Remove.
5199 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5200
1a860409
DE
52012014-02-07 Doug Evans <dje@google.com>
5202
5203 * extension-priv.h (extension_language_script_ops): Add comment.
5204 (extension_language_ops): Add comment.
caf5a491 5205 (active_ext_lang_state): Fix typo in comment.
1a860409 5206
d137e6dc
PA
52072014-02-07 Pedro Alves <palves@redhat.com>
5208
0dcb32c3 5209 PR breakpoints/16292
d137e6dc
PA
5210 * infrun.c (handle_signal_stop) <signal arrives while stepping
5211 over a breakpoint>: Switch back to the stepping thread.
5212
ce6d0892
YQ
52132014-02-07 Yao Qi <yao@codesourcery.com>
5214
5215 * target.c (target_xfer_partial): Return zero if LEN is zero.
5216
2ed4b548
YQ
52172014-02-07 Yao Qi <yao@codesourcery.com>
5218
5219 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5220 (ld_so_xfer_auxv): Likewise.
5221 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5222 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5223 * corelow.c (core_xfer_partial): Likewise.
5224 * ctf.c (ctf_xfer_partial): Likewise.
5225 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5226 (darwin_xfer_partial): Likewise.
5227 * exec.c (exec_xfer_partial): Likewise.
5228 * gnu-nat.c (gnu_xfer_partial): Likewise.
5229 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5230 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5231 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5232 * linux-nat.c (linux_xfer_siginfo): Likewise.
5233 (linux_proc_xfer_spu): Likewise.
5234 * procfs.c (procfs_xfer_partial): Likewise.
5235 * record-full.c (record_full_xfer_partial): Likewise.
5236 (record_full_core_xfer_partial): Likewise.
5237 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5238 * remote.c (remote_write_qxfer): Likewise.
5239 (remote_write_qxfer, remote_read_qxfer): Likewise.
5240 (remote_xfer_partial): Likewise.
5241 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5242 (rs6000_xfer_shared_libraries): Likewise.
5243 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5244 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5245 (spu_xfer_partial): Likewise.
5246 * target.c (memory_xfer_partial_1): Likewise.
5247 * tracepoint.c (tfile_xfer_partial): Likewise.
5248 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5249 (windows_xfer_partial): Likewise.
5250
c09f20e4
YQ
52512014-02-07 Yao Qi <yao@codesourcery.com>
5252
5253 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5254 comments.
5255 (core_xfer_shared_libraries_aix): Likewise.
5256 * gdbarch.c, gdbarch.h: Regenerated.
5257 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5258 ULONGEST. Change 'len_avail' type to ULONGEST.
5259 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5260 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5261 declaration.
5262 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5263
8635b3bf
YQ
52642014-02-07 Yao Qi <yao@codesourcery.com>
5265
5266 * corefile.c (memory_error): Get 'exception' from ERR and pass
5267 'exception' to throw_error.
5268
6dddc817
DE
52692014-02-06 Doug Evans <xdje42@gmail.com>
5270
5271 * configure.ac (libpython checking): Remove all but python.o from
5272 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5273 * configure: Regenerate.
5274
5275 * Makefile.in (SFILES): Add extension.c.
5276 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5277 (COMMON_OBS): Add extension.o.
5278 * extension.h: New file.
5279 * extension-priv.h: New file.
5280 * extension.c: New file.
5281
5282 * python/python-internal.h: #include "extension.h".
5283 (gdbpy_auto_load_enabled): Declare.
5284 (gdbpy_apply_val_pretty_printer): Declare.
5285 (gdbpy_apply_frame_filter): Declare.
5286 (gdbpy_preserve_values): Declare.
5287 (gdbpy_breakpoint_cond_says_stop): Declare.
5288 (gdbpy_breakpoint_has_cond): Declare.
5289 (void source_python_script_for_objfile): Delete.
5290 * python/python.c: #include "extension-priv.h".
5291 Delete inclusion of "observer.h".
5292 (extension_language_python): Moved here and renamed from
5293 script_language_python in py-auto-load.c.
5294 Redefined to be of type extension_language_defn.
5295 (python_extension_script_ops): New global.
5296 (python_extension_ops): New global.
5297 (struct python_env): New member previous_active.
5298 (restore_python_env): Call restore_active_ext_lang.
5299 (ensure_python_env): Call set_active_ext_lang.
5300 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5301 New arg extlang.
5302 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5303 New arg extlang.
5304 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5305 New arg extlang.
5306 (gdbpy_eval_from_control_command): Renamed from
5307 eval_python_from_control_command, made static. New arg extlang.
5308 (gdbpy_source_script) Renamed from source_python_script, made static.
5309 New arg extlang.
5310 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5311 result to int. New arg extlang.
5312 (gdbpy_source_objfile_script): Renamed from
5313 source_python_script_for_objfile, made static. New arg extlang.
5314 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5315 static. New args extlang, extlang_printers. Change result type to
5316 "void".
5317 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5318 static. New arg extlang. Rename arg printers to extlang_printers
5319 and change type to ext_lang_type_printers *.
5320 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5321 static. Replace argument arg with extlang, extlang_printers.
5322 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5323 (!HAVE_PYTHON, source_python_script): Delete.
5324 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5325 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5326 (!HAVE_PYTHON, start_type_printers): Delete.
5327 (!HAVE_PYTHON, apply_type_printers): Delete.
5328 (!HAVE_PYTHON, free_type_printers): Delete.
5329 (_initialize_python): Delete call to observer_attach_before_prompt.
5330 (finalize_python): Set/restore active extension language.
5331 (gdbpy_finish_initialization) Renamed from
5332 finish_python_initialization, made static. New arg extlang.
5333 (gdbpy_initialized): New function.
5334 * python/python.h: #include "extension.h". Delete #include
5335 "value.h", "mi/mi-cmds.h".
5336 (extension_language_python): Declare.
5337 (GDBPY_AUTO_FILE_NAME): Delete.
5338 (enum py_bt_status): Moved to extension.h and renamed to
5339 ext_lang_bt_status.
5340 (enum frame_filter_flags): Moved to extension.h.
5341 (enum py_frame_args): Moved to extension.h and renamed to
5342 ext_lang_frame_args.
5343 (finish_python_initialization): Delete.
5344 (eval_python_from_control_command): Delete.
5345 (source_python_script): Delete.
5346 (apply_val_pretty_printer): Delete.
5347 (apply_frame_filter): Delete.
5348 (preserve_python_values): Delete.
5349 (gdbpy_script_language_defn): Delete.
5350 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5351 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5352
5353 * auto-load.c: #include "extension.h".
5354 (GDB_AUTO_FILE_NAME): Delete.
5355 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5356 (script_language_gdb): Delete, moved to extension.c and renamed to
5357 extension_language_gdb.
5358 (source_gdb_script_for_objfile): Delete.
5359 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5360 (loaded_script): Change type of language member to
5361 struct extension_language_defn *.
5362 (init_loaded_scripts_info): Initialize
5363 unsupported_script_warning_printed.
5364 (maybe_add_script): Make static. Change type of language arg to
5365 struct extension_language_defn *.
5366 (clear_section_scripts): Reset unsupported_script_warning_printed.
5367 (auto_load_objfile_script_1): Rewrite to use extension language API.
5368 (auto_load_objfile_script): Make public. Remove support-compiled-in
5369 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5370 (source_section_scripts): Rewrite to use extension language API.
5371 (load_auto_scripts_for_objfile): Rewrite to use
5372 auto_load_scripts_for_objfile.
5373 (collect_matching_scripts_data): Change type of language member to
5374 struct extension_language_defn *.
5375 (auto_load_info_scripts): Change type of language arg to
5376 struct extension_language_defn *.
5377 (unsupported_script_warning_print): New function.
5378 (script_not_found_warning_print): Make static.
5379 (_initialize_auto_load): Rewrite construction of scripts-directory
5380 help.
5381 * auto-load.h (struct objfile): Add forward decl.
5382 (struct script_language): Delete.
5383 (struct auto_load_pspace_info): Add forward decl.
5384 (struct extension_language_defn): Add forward decl.
5385 (maybe_add_script): Delete.
5386 (auto_load_objfile_script): Declare.
5387 (script_not_found_warning_print): Delete.
5388 (auto_load_info_scripts): Update prototype.
5389 (auto_load_gdb_scripts_enabled): Declare.
5390 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5391 auto_load_python_scripts_enabled and made public.
5392 (script_language_python): Delete, moved to python.c.
5393 (gdbpy_script_language_defn): Delete.
5394 (info_auto_load_python_scripts): Update to use
5395 extension_language_python.
5396
5397 * breakpoint.c (condition_command): Replace call to
5398 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5399 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5400 with call to breakpoint_ext_lang_cond_says_stop.
5401 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5402 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5403 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5404 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5405 New arg slang.
5406 (local_setattro): Print name of extension language with existing
5407 stop condition.
5408
5409 * valprint.c (val_print, value_print): Update to call
5410 apply_ext_lang_val_pretty_printer.
5411 * cp-valprint.c (cp_print_value): Update call to
5412 apply_ext_lang_val_pretty_printer.
5413 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5414 (gdbpy_apply_val_pretty_printer): Renamed from
5415 apply_val_pretty_printer. New arg extlang.
5416 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5417
5418 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5419 extension language API.
5420 * cli/cli-script.c (execute_control_command): Update to call
5421 eval_ext_lang_from_control_command.
5422
5423 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5424 enum ext_lang_bt_status values. Update call to
5425 apply_ext_lang_frame_filter.
5426 (mi_cmd_stack_list_locals): Ditto.
5427 (mi_cmd_stack_list_args): Ditto.
5428 (mi_cmd_stack_list_variables): Ditto.
5429 * mi/mi-main.c: Delete #include "python/python-internal.h".
5430 Add #include "extension.h".
5431 (mi_cmd_list_features): Replace reference to python internal variable
5432 gdb_python_initialized with call to ext_lang_initialized_p.
5433
5434 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5435 Update to use enum ext_lang_frame_args. Update to call
5436 apply_ext_lang_frame_filter.
5437 * python/py-framefilter.c (extract_sym): Update to use enum
5438 ext_lang_bt_status.
5439 (extract_value, py_print_type, py_print_value): Ditto.
5440 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
5441 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
5442 (py_print_frame): Ditto.
5443 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
5444 New arg extlang. Update to use enum ext_lang_bt_status.
5445
5446 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
5447 finish_python_initialization. Replace with call to
5448 finish_ext_lang_initialization.
5449
5450 * typeprint.c (do_free_global_table): Update to call
5451 free_ext_lang_type_printers.
5452 (create_global_typedef_table): Update to call
5453 start_ext_lang_type_printers.
5454 (find_global_typedef): Update to call apply_ext_lang_type_printers.
5455 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
5456 (type_print_options): Change type of global_printers from "void *"
5457 to "struct ext_lang_type_printers *".
5458
5459 * value.c (preserve_values): Update to call preserve_ext_lang_values.
5460 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
5461 (gdbpy_preserve_values): Renamed from preserve_python_values.
5462 New arg extlang.
5463 (!HAVE_PYTHON, preserve_python_values): Delete.
5464
5465 * utils.c (quit_flag): Delete, moved to extension.c.
5466 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
5467 extension.c.
5468
5469 * eval.c: Delete #include "python/python.h".
5470 * main.c: Delete #include "python/python.h".
5471
5472 * defs.h: Update comment.
5473
6af79985
JB
54742014-02-06 Joel Brobecker <brobecker@adacore.com>
5475
5476 GDB 7.7 released.
5477
12c5175d
MK
54782014-02-05 Mark Kettenis <kettenis@gnu.org>
5479
5480 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
5481 defined.
5482
8dc5b319
YQ
54832014-02-05 Yao Qi <yao@codesourcery.com>
5484
5485 * remote.c (remote_pass_signals): Remove local 'buf' and use
5486 rs->buf.
5487 (remote_program_signals): Likewise.
5488
de7b2893
YQ
54892014-02-05 Yao Qi <yao@codesourcery.com>
5490
5491 * ctf.c: Include "inferior.h" and "gdbthread.h".
5492 (CTF_PID): A new macro.
5493 (ctf_open): Call inferior_appeared and add_thread_silent.
5494 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
5495 (ctf_thread_alive): New function.
5496 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
5497
66d032ac
YQ
54982014-02-05 Yao Qi <yao@codesourcery.com>
5499
5500 Revert this patch:
5501
5502 2013-05-24 Yao Qi <yao@codesourcery.com>
5503
5504 * tracepoint.c (TFILE_PID): Remove.
5505 (tfile_open): Don't add thread and inferior.
5506 (tfile_close): Don't set 'inferior_ptid'. Don't call
5507 exit_inferior_silent.
5508 (tfile_thread_alive): Remove.
5509 (init_tfile_ops): Don't set field 'to_thread_alive' of
5510 tfile_ops.
5511
f4ccffad
CE
55122014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
5513
5514 * remote.c (remote_start_remote): Call remote_check_symbols even
5515 if only symbol-file (not file) has been given.
5516
591a12a1
UW
55172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5518
5519 * gdbarch.sh (skip_entrypoint): New callback.
5520 * gdbarch.c, gdbarch.h: Regenerate.
5521 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
5522 * infrun.c (fill_in_stop_func): Likewise.
5523 * ppc-linux-tdep.c: Include "elf/ppc64.h".
5524 (ppc_elfv2_elf_make_msymbol_special): New function.
5525 (ppc_elfv2_skip_entrypoint): Likewise.
5526 (ppc_linux_init_abi): Install them for ELFv2.
5527
cc0e89c5
UW
55282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5529
5530 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
5531 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
5532 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
5533 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
5534 structures returned in GPRs.
5535
52f548e4
UW
55362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5537
5538 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
5539 offset to the stack parameter list for the ELFv2 ABI.
5540
d4094b6a
UW
55412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5542
5543 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
5544 set_gdbarch_convert_from_func_ptr_addr and
5545 set_gdbarch_elf_make_msymbol_special for ELFv1.
5546 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
5547 function descriptors on ELFv1.
5548 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
5549 set up r12 at function entry.
5550
cd453cd0
UW
55512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5552
5553 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
5554 (struct gdbarch_tdep): New member elf_abi.
5555
5556 * rs6000-tdep.c: Include "elf/ppc64.h".
5557 (rs6000_gdbarch_init): Detect ELF ABI version.
5558
0ff3e01f
UW
55592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5560
5561 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
5562 within a register pair holding a DFP 128-bit value on little-endian.
5563 (ppc64_sysv_abi_return_value_base): Likewise.
5564 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
5565 (dfp_pseudo_register_write): Likewise.
5566
5b757e5d
UW
55672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5568
5569 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
5570 offset on little-endian when passing _Decimal32.
5571 (ppc64_sysv_abi_return_value_base): Likewise for return values.
5572
084ee545
UW
55732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5574
5575 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
5576 of the overlapped FP register within the VSX register on little-
5577 endian platforms.
5578 (efpr_pseudo_register_write): Likewise.
5579
d63167af
UW
55802014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5581
5582 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
5583 offset on little-endian when passing small structures.
5584
e765b44c
UW
55852014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5586
5587 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
5588 (struct ppc64_sysv_argpos): New data structure.
5589 (ppc64_sysv_abi_push_float): Remove.
5590 (ppc64_sysv_abi_push_val): New function.
5591 (ppc64_sysv_abi_push_integer): Likewise.
5592 (ppc64_sysv_abi_push_freg): Likewise.
5593 (ppc64_sysv_abi_push_vreg): Likewise.
5594 (ppc64_sysv_abi_push_param): Likewise.
5595 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
5596 (ppc64_sysv_abi_return_value_base): New function.
5597 (ppc64_sysv_abi_return_value): Refactor to use it.
5598
36c24d95
UW
55992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
5600
5601 * NEWS: Document new target powerpc64le-*-linux*.
5602
26fd9228
MK
56032014-02-04 Mark Kettenis <kettenis@gnu.org>
5604
5605 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
5606 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
5607 core dumps.
5608 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
5609 register set used in ELF core dumps. Add floating-point register set.
5610
c5bb7362
KB
56112014-02-03 Kevin Buettner <kevinb@redhat.com>
5612
5613 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
5614 dwarf2_to_gdb[] table using symbolic constants. Adjust
5615 penultimate entry from number representing the PC register
5616 to symbolic constant representing the MDR register. Add
5617 constant for the PC register to the end of the table.
5618
af09351e
MK
56192014-02-03 Mark Kettenis <kettenis@gnu.org>
5620
5621 * bsd-kvm.c: Include <sys/param.h>
5622
8507e05d
MK
56232014-02-03 Mark Kettenis <kettenis@gnu.org>
5624
5625 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
5626
ae56bfb8
JB
56272014-01-31 Joel Brobecker <brobecker@adacore.com>
5628
5629 * ada-lang.h (clear_ada_sym_cache): Delete.
5630
718ee4dc
UW
56312014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
5632
5633 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
5634
401e27fd
JM
56352014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
5636
5637 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
5638 the sigreturn register save area only if the syscall is
5639 sigreturn.
5640
a7c88acd
JB
56412014-01-29 Joel Brobecker <brobecker@adacore.com>
5642
5643 * valops.c (value_slice): Minor reformatting.
5644
fa0079ea
UW
56452014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
5646
5647 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
5648
c6044dd1
JB
56492014-01-28 Joel Brobecker <brobecker@adacore.com>
5650
5651 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
5652 New static globals.
5653 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
5654 (ada_ignore_descriptive_types_p): New static global.
5655 (find_parallel_type_by_descriptive_type): Return immediately
5656 if ada_ignore_descriptive_types_p is set.
5657 (_initialize_ada_language): Register new commands "maintenance
5658 set ada", "maintenance show ada", "maintenance set ada
5659 ignore-descriptive-types" and "maintenance show ada
5660 ignore-descriptive-types".
5661 * NEWS: Add entry for new "maint ada set/show
5662 ignore-descriptive-types" commands.
5663
568e808b
MM
56642014-01-27 Markus Metzger <markus.t.metzger@intel.com>
5665
5666 * record-btrace.c (record_btrace_close): Call btrace_teardown
5667 for all threads.
5668
467d141b
JB
56692014-01-27 Joel Brobecker <brobecker@adacore.com>
5670
5671 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
5672 "ui-out.h".
5673
fb151210
JB
56742014-01-27 Joel Brobecker <brobecker@adacore.com>
5675
5676 * ada-typeprint (type_is_full_subrange_of_target_type):
5677 New function.
5678 (print_range): Add parameter bounds_prefered_p. If not set,
5679 try printing range types using the name of their base type.
5680 (print_range_type): Add parameter bounds_prefered_p.
5681 Use it in call to print_range.
5682 (print_array_type, ada_print_type): Update calls to print_range
5683 and print_range_type.
5684
aba02109
JB
56852014-01-27 Joel Brobecker <brobecker@adacore.com>
5686
5687 * ada-typeprint.c (print_array_type, print_choices, print_range)
5688 (print_range_bound, print_dynamic_range_bound, print_range_type):
5689 Remove declaration.
5690
e62e21fd
JB
56912014-01-27 Joel Brobecker <brobecker@adacore.com>
5692
5693 * ada-typeprint.c (print_range): Add missing empty line
5694 after local declaration.
5695
859cf5d1
JB
56962014-01-27 Joel Brobecker <brobecker@adacore.com>
5697
5698 * ada-valprint.c (print_optional_low_bound): Get index_type's
5699 target type for as long as it is a TYPE_CODE_RANGE.
5700
25790f6f
JB
57012014-01-27 Joel Brobecker <brobecker@adacore.com>
5702
5703 * procfs.c (procfs_make_note_section): Remove assertion and
5704 associated comment.
5705
6b6aa828
YQ
57062014-01-24 Yao Qi <yao@codesourcery.com>
5707
5708 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
5709 * corelow.c (get_core_siginfo): Likewise.
5710
5d6df423
YQ
57112014-01-24 Yao Qi <yao@codesourcery.com>
5712
5713 * remote.c (remote_write_bytes_aux): Change type of 'len' to
5714 ULONGEST. Don't check 'len' is negative.
5715 (remote_write_bytes): Change type of 'len' to ULONGEST.
5716
83b645b8
TT
57172014-01-23 Tom Tromey <tromey@redhat.com>
5718
5719 PR python/16485:
5720 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
5721 Handle exception from frame.block.
5722 (FrameVars.fetch_frame_locals): Likewise.
5723
0740f8d8
TT
57242014-01-23 Tom Tromey <tromey@redhat.com>
5725
5726 PR python/16487:
5727 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
5728 on a NULL pointer. Move "goto error" to correct place.
5729
21909fa1
TT
57302014-01-23 Tom Tromey <tromey@redhat.com>
5731
5732 PR python/16491:
5733 * python/py-framefilter.c (apply_frame_filter): Call
5734 ensure_python_env after computing gdbarch.
5735
17fde6d0
YQ
57362014-01-23 Yao Qi <yao@codesourcery.com>
5737
5738 * target.c (raw_memory_xfer_partial): Change argument type
5739 from void * to gdb_byte *.
5740 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
5741
87ce2a04
DE
57422014-01-22 Doug Evans <dje@google.com>
5743
5744 New gdbserver option --debug-format=timestamp.
5745 * NEWS: Mention it.
5746
237b092b
AA
57472014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
5748
5749 * syscalls/s390x-linux.xml: New file.
5750 * syscalls/s390-linux.xml: New file.
5751 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
5752 (XML_SYSCALL_FILENAME_S390X): Likewise.
5753 (op_svc): New enum value for SVC opcode.
5754 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
5755 (s390_linux_get_syscall_number): New function.
5756 (s390_gdbarch_init): Register '*get_syscall_number' and the
5757 syscall xml file name.
5758 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5759 "s390-linux.xml" and "s390x-linux.xml".
5760 * NEWS: Announce new feature.
5761
54bff650
BS
57622014-01-22 Baruch Siach <baruch@tkos.co.il>
5763
5764 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
5765
14e361d7
PA
57662014-01-22 Pedro Alves <palves@redhat.com>
5767
5768 * xtensa-config.c: Include defs.h.
5769
46bbb3ed
JB
57702014-01-22 Joel Brobecker <brobecker@adacore.com>
5771
5772 * common/common-utils.h: Add "ARI:" comment beside __func__
5773 reference.
5774
3a80edfc
JB
57752014-01-22 Joel Brobecker <brobecker@adacore.com>
5776
5777 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
5778 documentation a bit.
5779
4869db5e
RM
57802014-01-21 Roland McGrath <mcgrathr@google.com>
5781
5782 * configure.ac: Call AM_PROG_INSTALL_STRIP.
5783 * configure: Regenerate.
5784 * aclocal.m4: Regenerate.
5785 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
5786 New substituted variables.
5787 (install-strip): New target.
5788 (INSTALL_SCRIPT): New substituted variable.
5789 (FLAGS_TO_PASS): Add it.
5790 (install-only): Use $(INSTALL_SCRIPT) rather than
5791 $(INSTALL_PROGRAM) for gcore.
5792
9ea4267d
TT
57932014-01-20 Tom Tromey <tromey@redhat.com>
5794
5795 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
5796 together.
5797
1f2bdf09
TT
57982014-01-20 Tom Tromey <tromey@redhat.com>
5799
5800 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
5801 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
5802 (deprecated_cmd_warning, complete_on_cmdlist): Update.
5803 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
5804 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
5805 (struct cmd_list_element) <flags>: Remove.
5806 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
5807 doc_allocated>: New fields.
5808 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
5809 bitfields.
5810 * maint.c (maintenance_do_deprecate): Update.
5811 * top.c (execute_command): Update.
5812
e671835b
BS
58132014-01-20 Baruch Siach <baruch@tkos.co.il>
5814
5815 * xtensa-linux-nat.c: Include asm/ptrace.h.
5816
50367cd2
IB
58172014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5818
5819 * Makefile.in (SFILES): Add d-support.c.
5820 (COMMON_OBS): Add d-support.o.
5821 * d-lang.h (d_parse_symbol): Add comment, now defined in
5822 d-support.c.
5823 * d-lang.c (parse_call_convention)
5824 (parse_attributes, parse_function_types)
5825 (parse_function_args, parse_type, parse_identifier)
5826 (call_convention_p, d_parse_symbol): Move functions to ...
5827 * d-support.c: ... New file.
5828
ec9f644a
IB
58292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5830
5831 * d-lang.h (d_parse_symbol): Add declaration.
5832 * d-lang.c (extract_identifiers)
5833 (extract_type_info): Remove functions.
5834 (parse_call_convention, parse_attributes)
5835 (parse_function_types, parse_function_args)
5836 (parse_type, parse_identifier, call_convention_p)
5837 (d_parse_symbol): New functions.
5838 (d_demangle): Use d_parse_symbol to demangle D symbols.
5839
94b1b47e
IB
58402014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5841
5842 * d-lang.h (struct builtin_d_type): New data type.
5843 (builtin_d_type): Add declaration.
5844 * d-lang.c (d_language_arch_info, build_d_types)
5845 (builtin_d_type): New functions.
5846 (enum d_primitive_types): New data type.
5847 (d_language_defn): Change c_language_arch_info to
5848 d_language_arch_info.
5849 (d_type_data): New static variable.
5850 (_initialize_d_language): Initialize d_type_data.
5851
63778547
IB
58522014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5853
5854 * d-lang.h (d_main_name): Add declaration.
5855 * d-lang.c (d_main_name): New function.
5856 * symtab.c (find_main_name): Add call to d_main_name.
5857
3271ba66
IB
58582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5859
5860 * d-lang.c (d_language_defn): Change macro_expansion_c to
5861 macro_expansion_no.
5862
d36b3012
IB
58632014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
5864
5865 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5866
c90a6fb7
SDJ
58672014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
5868
5869 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
5870 gdb_exception" declaration.
5871 * remote.c (getpkt_or_notif_sane): Likewise.
5872
749234e5
DE
58732014-01-17 Doug Evans <dje@google.com>
5874
5875 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
5876 function, contents of dirnames_to_char_ptr_vec_append moved here.
5877 (delim_string_to_char_ptr_vec): New function.
5878 (dirnames_to_char_ptr_vec_append): Rewrite.
5879 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
5880
df049a58
DE
58812014-01-17 Doug Evans <dje@google.com>
5882
5883 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
5884 and moved here ...
5885 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
5886 #include "common-utils.h".
5887 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
5888 * common/vec.h (VEC_ASSERT_PASS): Update.
5889 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
5890 (MACH_CHECK_ERROR): Update.
5891
69f97648
SM
58922014-01-17 Simon Marchi <simon.marchi@ericsson.com>
5893
5894 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
5895 comments.
5896 * gdbarch.h: Regenerate.
5897
98b1cfdc
TT
58982014-01-16 Tom Tromey <tromey@redhat.com>
5899
5900 * value.c (struct value) <regnum>: Move earlier.
5901
77a19445
TT
59022014-01-16 Tom Tromey <tromey@redhat.com>
5903
5904 * remote.c (extended_remote_create_inferior): Rename from
5905 extended_remote_create_inferior_1. Add "ops" argument. Remove
5906 old implementation.
5907
62261490
PA
59082014-01-16 Pedro Alves <palves@redhat.com>
5909
5910 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
5911 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
5912 the backchain.
5913
4d65956b
DE
59142014-01-16 Doug Evans <dje@google.com>
5915
5916 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
5917
52834460
MM
59182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5919
5920 * btrace.h (btrace_thread_flag): New.
5921 (struct btrace_thread_info) <flags>: New.
5922 * record-btrace.c (record_btrace_resume_thread)
5923 (record_btrace_find_thread_to_move, btrace_step_no_history)
5924 (btrace_step_stopped, record_btrace_start_replaying)
5925 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
5926 (record_btrace_find_resume_thread): New.
5927 (record_btrace_resume, record_btrace_wait): Extend.
5928 (record_btrace_can_execute_reverse): New.
5929 (record_btrace_open): Fail in non-stop mode.
5930 (record_btrace_set_replay): Split into this, ...
5931 (record_btrace_stop_replaying): ... this, ...
5932 (record_btrace_clear_histories): ... and this.
5933 (init_record_btrace_ops): Init to_can_execute_reverse.
5934 * NEWS: Announce it.
5935
118e6252
MM
59362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5937
5938 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
5939 (forward_target_decr_pc_after_break)
5940 (target_decr_pc_after_break): New.
5941 * target.c (forward_target_decr_pc_after_break)
5942 (target_decr_pc_after_break): New.
5943 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
5944 instead of gdbarch_decr_pc_after_break.
5945 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5946 instead of gdbarch_decr_pc_after_break.
5947 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
5948 instead of gdbarch_decr_pc_after_break.
5949 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
5950 instead of gdbarch_decr_pc_after_break.
5951 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
5952 instead of gdbarch_decr_pc_after_break.
5953 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
5954 instead of gdbarch_decr_pc_after_break.
5955
6e07b1d2
MM
59562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5957
5958 * btrace.c: Include regcache.h.
5959 (btrace_add_pc): New.
5960 (btrace_enable): Call btrace_add_pc.
5961 (btrace_is_empty): New.
5962 * btrace.h (btrace_is_empty): New.
5963 * record-btrace.c (require_btrace, record_btrace_info): Call
5964 btrace_is_empty.
5965
969c39fb
MM
59662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5967
5968 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
5969 Support delta reads.
5970 (linux_disable_btrace): Change return type.
5971 * common/linux-btrace.h (linux_read_btrace): Change parameters
5972 and return type to allow error reporting. Update users.
5973 (linux_disable_btrace): Change return type. Update users.
5974 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
5975 New.
5976 (btrace_error): New.
5977 (btrace_block) <begin>: Comment on BEGIN == 0.
5978 * btrace.c (btrace_compute_ftrace): Start from the end of
5979 the current trace.
5980 (btrace_stitch_trace, btrace_clear_history): New.
5981 (btrace_fetch): Read delta trace, return if replaying.
5982 (btrace_clear): Move clear history code to btrace_clear_history.
5983 (parse_xml_btrace): Throw an error if parsing failed.
5984 * target.h (struct target_ops) <to_read_btrace>: Change parameters
5985 and return type to allow error reporting.
5986 (target_read_btrace): Change parameters and return type to allow
5987 error reporting.
5988 * target.c (target_read_btrace): Update.
5989 * remote.c (remote_read_btrace): Support delta reads. Pass
5990 errors on.
5991 * NEWS: Announce it.
5992
0b722aec
MM
59932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
5994
5995 * record.h (record_btrace_frame_unwind)
5996 (record_btrace_tailcall_frame_unwind): New declarations.
5997 * dwarf2-frame: Include record.h
5998 (dwarf2_frame_cfa): Throw an error for btrace frames.
5999 * record-btrace.c: Include hashtab.h.
6000 (btrace_get_bfun_name): New.
6001 (btrace_call_history): Call btrace_get_bfun_name.
6002 (struct btrace_frame_cache): New.
6003 (bfcache): New.
6004 (bfcache_hash, bfcache_eq, bfcache_new): New.
6005 (btrace_get_frame_function): New.
6006 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6007 (record_btrace_frame_this_id): Compute own id.
6008 (record_btrace_frame_prev_register): Provide PC, throw_error
6009 for all other registers.
6010 (record_btrace_frame_sniffer): Detect btrace frames.
6011 (record_btrace_tailcall_frame_sniffer): New.
6012 (record_btrace_frame_dealloc_cache): New.
6013 (record_btrace_frame_unwind): Add new functions.
6014 (record_btrace_tailcall_frame_unwind): New.
6015 (_initialize_record_btrace): Allocate cache.
6016 * btrace.c (btrace_clear): Call reinit_frame_cache.
6017 * NEWS: Announce it.
6018
066ce621
MM
60192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6020
6021 * record-btrace.c (record_btrace_set_replay)
6022 (record_btrace_goto_begin, record_btrace_goto_end)
6023 (record_btrace_goto): New.
6024 (init_record_btrace_ops): Initialize them.
6025 * NEWS: Announce it.
6026
e2887aa3
MM
60272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6028
6029 * record-btrace.c (record_btrace_find_new_threads)
6030 (record_btrace_thread_alive): New.
6031 (init_record_btrace_ops): Initialize to_find_new_threads and
6032 to_thread_alive.
6033
b2f4cfde
MM
60342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6035
6036 * record-btrace.c (record_btrace_resume): New.
6037 (record_btrace_wait): New.
6038 (init_record_btrace_ops): Initialize to_wait and to_resume.
6039
633785ff
MM
60402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6041
6042 * record-btrace.c (record_btrace_xfer_partial)
6043 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6044 (record_btrace_allow_memory_access): New.
6045 (init_record_btrace_ops): Initialize new methods.
6046 * target.c (raw_memory_xfer_partial): Bail out if target reports
6047 that this memory is not available.
6048
3db08215
MM
60492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6050
6051 * target.h (target_ops) <to_insert_breakpoint>
6052 <to_remove_breakpoint>: Add target_ops parameter.
6053 (forward_target_insert_breakpoint): New.
6054 (forward_target_remove_breakpoint): New.
6055 (memory_remove_breakpoint, memory_insert_breakpoint):
6056 Add target_ops parameter.
6057 * target.c (target_insert_breakpoint): Split into this and ...
6058 (forward_target_insert_breakpoint): ... this.
6059 (target_remove_breakpoint): Split into this and ...
6060 (forward_target_remove_breakpoint): ... this.
6061 (debug_to_insert_breakpoint): Add target_ops parameter.
6062 Call forward_target_insert_breakpoint.
6063 (debug_to_remove_breakpoint): Add target_ops parameter.
6064 Call forward_target_remove_breakpoint.
6065 (update_current_target): Do not inherit or default to_insert_breakpoint
6066 and to_remove_breakpoint.
6067 * corelow.c (ignore): Add target_ops parameter.
6068 * exec.c (ignore): Add target_ops parameter.
6069 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6070 Add target_ops parameter.
6071 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6072 Add target_ops parameter.
6073 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6074 Add target_ops parameter.
6075 * record-full.c (record_full_beneath_to_insert_breakpoint)
6076 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6077 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6078 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6079 (record_full_core_remove_breakpoint): Add target_ops parameter.
6080 Update users.
6081 (record_full_beneath_to_insert_breakpoint_ops)
6082 (record_full_beneath_to_remove_breakpoint_ops)
6083 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6084 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6085 tmp_to_remove_breakpoint_ops,
6086 record_full_beneath_to_insert_breakpoint_ops, and
6087 record_full_beneath_to_remove_breakpoint_ops.
6088 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6089 (m32r_remove_breakpoint): Add target_ops parameter.
6090 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6091 Add target_ops parameter.
6092 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6093 Add target_ops parameter.
6094
cecac1ab
MM
60952014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6096 Markus Metzger <markus.t.metzger@intel.com>
6097
6098 * record-btrace.c: Include frame-unwind.h.
6099 (record_btrace_frame_unwind_stop_reason)
6100 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6101 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6102 New.
6103 (init_record_btrace_ops): Install it.
6104
824344ca
MM
61052014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6108 get_prev_frame_1.
6109
32261e52
MM
61102014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6111
6112 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6113 earlier.
6114
ea001bdc
MM
61152014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6116
6117 * frame-unwind.c: Include target.h.
6118 (frame_unwind_try_unwinder): New function with code from ...
6119 (frame_unwind_find_by_frame): ... here. New variable
6120 unwinder_from_target, call also target_get_unwinder)
6121 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6122 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6123 * target.h (struct target_ops): New fields to_get_unwinder and
6124 to_get_tailcall_unwinder.
6125 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6126
1f3ef581
MM
61272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6128
6129 * record-btrace.c (record_btrace_fetch_registers)
6130 (record_btrace_store_registers)
6131 (record_btrace_to_prepare_to_store): New.
6132 (init_record_btrace_ops): Add the above.
6133
f32dbf8c
MM
61342014-01-16 Tom Tromey <tromey@redhat.com>
6135
6136 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6137 * target.h (struct target_ops) <to_prepare_to_store>: Add
6138 argument.
6139 (target_prepare_to_store): Add argument.
6140 * target.c (debug_to_prepare_to_store): Add argument.
6141 (update_current_target): Update.
6142 * remote.c (remote_prepare_to_store): Add 'self' argument.
6143 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6144 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6145 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6146 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6147 argument.
6148 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6149 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6150 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6151 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6152 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6153
07bbe694
MM
61542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6155
6156 * btrace.h (replay) <replay>: New.
6157 (btrace_is_replaying): New.
6158 * btrace.c (btrace_clear): Free replay iterator.
6159 (btrace_is_replaying): New.
6160 * record-btrace.c (record_btrace_is_replaying): New.
6161 (record_btrace_info): Print insn number if replaying.
6162 (record_btrace_insn_history): Start at replay position.
6163 (record_btrace_call_history): Start at replay position.
6164 (init_record_btrace_ops): Init to_record_is_replaying.
6165
0688d04e
MM
61662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6167
6168 * record-btrace.c (record_btrace_insn_history_range): Include
6169 end.
6170 (record_btrace_insn_history_from): Adjust range.
6171 (record_btrace_call_history_range): Include
6172 end.
6173 (record_btrace_call_history_from): Adjust range.
6174 * NEWS: Announce changes.
6175
8710b709
MM
61762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6177
6178 * record.h (enum record_print_flag)
6179 <record_print_indent_calls>: New.
6180 * record.c (get_call_history_modifiers): Recognize /c modifier.
6181 (_initialize_record): Document /c modifier.
6182 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6183 Reorder fields. Optionally indent the function name. Update
6184 all users.
6185 * NEWS: Announce changes.
6186
d0fa7535
MM
61872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6188
6189 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6190
5de9129b
MM
61912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6192
6193 * btrace.c (ftrace_new_function): Start counting at one.
6194 * record-btrace.c (record_btrace_info): Adjust number of calls
6195 and insns.
6196 * NEWS: Announce it.
6197
7acbe133
MM
61982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6199
6200 * record-btrace.c (btrace_call_history_insn_range): Print
6201 insn range as [begin, end].
6202
23a7fe75
MM
62032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6204
6205 * btrace.h (struct btrace_func_link): New.
6206 (enum btrace_function_flag): New.
6207 (struct btrace_inst): Rename to ...
6208 (struct btrace_insn): ...this. Update all users.
6209 (struct btrace_func) <ibegin, iend>: Remove.
6210 (struct btrace_func_link): New.
6211 (struct btrace_func): Rename to ...
6212 (struct btrace_function): ...this. Update all users.
6213 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6214 (number, level, flags>: New.
6215 (struct btrace_insn_iterator): Rename to ...
6216 (struct btrace_insn_history): ...this.
6217 Update all users.
6218 (struct btrace_insn_iterator, btrace_call_iterator): New.
6219 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6220 (struct btrace_target_info) <begin, end, level>
6221 <insn_history, call_history>: New.
6222 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6223 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6224 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6225 (btrace_call_number, btrace_call_begin, btrace_call_end)
6226 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6227 (btrace_find_function_by_number, btrace_set_insn_history)
6228 (btrace_set_call_history): New.
6229 * btrace.c (btrace_init_insn_iterator)
6230 (btrace_init_func_iterator, compute_itrace): Remove.
6231 (ftrace_print_function_name, ftrace_print_filename)
6232 (ftrace_skip_file): Change
6233 parameter to const.
6234 (ftrace_init_func): Remove.
6235 (ftrace_debug): Use new btrace_function fields.
6236 (ftrace_function_switched): Also consider gaining and
6237 losing symbol information).
6238 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6239 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6240 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6241 New.
6242 (ftrace_new_function): Move. Remove debug print.
6243 (ftrace_update_lines, ftrace_update_insns): New.
6244 (ftrace_update_function): Check for call, ret, and jump.
6245 (compute_ftrace): Renamed to ...
6246 (btrace_compute_ftrace): ...this. Rewritten to compute call
6247 stack.
6248 (btrace_fetch, btrace_clear): Updated.
6249 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6250 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6251 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6252 (btrace_call_number, btrace_call_begin, btrace_call_end)
6253 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6254 (btrace_find_function_by_number, btrace_set_insn_history)
6255 (btrace_set_call_history): New.
6256 * record-btrace.c (require_btrace): Use new btrace thread
6257 info fields.
6258 (record_btrace_info, btrace_insn_history)
6259 (record_btrace_insn_history, record_btrace_insn_history_range):
6260 Use new btrace thread info fields and new iterator.
6261 (btrace_func_history_src_line): Rename to ...
6262 (btrace_call_history_src_line): ...this. Use new btrace
6263 thread info fields.
6264 (btrace_func_history): Rename to ...
6265 (btrace_call_history): ...this. Use new btrace thread info
6266 fields and new iterator.
6267 (record_btrace_call_history, record_btrace_call_history_range):
6268 Use new btrace thread info fields and new iterator.
6269
8372a7cb
MM
62702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6271
6272 * frame.h (frame_id_build_unavailable_stack_special): New.
6273 * frame.c (frame_id_build_unavailable_stack_special): New.
6274
c2170eef
MM
62752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6276
6277 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6278 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6279 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6280 to gdbarch.
6281 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6282 (i386_insn_is_jump, i386_jmp_p): New.
6283 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6284 insn_is_jump to gdbarch.
6285 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6286 * gdbarch.h: Regenerated.
6287 * gdbarch.c: Regenerated.
6288 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6289 (default_insn_is_jump): New.
6290 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6291 (default_insn_is_jump): New.
6292
864089d2
MM
62932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6294
6295 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6296 Change to ...
6297 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6298 (btrace_read_type) <btrace_read_new>: Change to ...
6299 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6300
ed9edfb5
MM
63012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6302
6303 * common/linux-btrace.c (linux_read_btrace): Free trace from
6304 previous iteration.
6305
fbcbc3fd
DE
63062014-01-15 Doug Evans <dje@google.com>
6307
6308 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6309 uint32_t.
6310
3d548a53
TT
63112014-01-15 Tom Tromey <tromey@redhat.com>
6312
6313 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6314 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6315 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6316 (set_objfile_main_name): New function.
6317 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6318 language_of_main>: New fields.
6319 (set_objfile_main_name): Declare.
6320 * symtab.c (find_main_name): Loop over objfiles to find the main
6321 name and language.
6322 (set_main_name): Now static.
6323 (get_main_info): Add comment.
6324 * symtab.h (set_main_name): Don't declare.
6325
32ac0d11
TT
63262014-01-15 Tom Tromey <tromey@redhat.com>
6327
6328 * symtab.c (main_progspace_key): New global.
6329 (struct main_info): New.
6330 (name_of_main, language_of_main): Remove.
6331 (get_main_info, main_info_cleanup): New function.
6332 (set_main_name, main_name, main_language): Use get_main_info.
6333 (_initialize_symtab): Initialize main_progspace_key.
6334
9e6c82ad
TT
63352014-01-15 Tom Tromey <tromey@redhat.com>
6336
6337 * dbxread.c (process_one_symbol): Update.
6338 * dwarf2read.c (read_partial_die): Update.
6339 * symfile.c (set_initial_language): Call main_language.
6340 * symtab.c (language_of_main): Now static.
6341 (set_main_name): Add 'lang' parameter.
6342 (find_main_name): Update.
6343 (main_language): New function.
6344 (symtab_observer_executable_changed): Update.
6345 * symtab.h (set_main_name): Update.
6346 (language_of_main): Remove.
6347 (main_language): Declare.
6348
6ef55de7
TT
63492014-01-15 Tom Tromey <tromey@redhat.com>
6350
6351 * symfile.c (init_entry_point_info): Use new "initialized" field.
6352 Update.
6353 * objfiles.h (struct entry_point) <initialized>: New field.
6354 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6355 (struct objfile) <ei>: ...here. Remove.
6356 * objfiles.c (entry_point_address_query): Update.
6357
53eddfa6
TT
63582014-01-15 Tom Tromey <tromey@redhat.com>
6359
6360 * objfiles.c (entry_point_address_query): Relocate entry point
6361 address.
6362 (objfile_relocate1): Do not relocate entry point address.
6363 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6364 <the_bfd_section_index>: New field.
6365 * symfile.c (init_entry_point_info): Find the entry point's
6366 section.
6367
d56e56aa
TT
63682014-01-15 Tom Tromey <tromey@redhat.com>
6369
6370 * solib-frv.c (enable_break): Use entry_point_address_query.
6371
33a97bbe
OJ
63722014-01-15 Omair Javaid <omair.javaid@linaro.org>
6373
6374 * NEWS: Add note on improved process record-replay on
6375 arm*-linux* targets.
6376
c6ec2b30
OJ
63772014-01-15 Omair Javaid <omair.javaid@linaro.org>
6378
6379 * arm-tdep.c (enum arm_record_result): New enum.
6380 (arm_record_unsupported_insn): New function.
6381 (arm_record_coproc_data_proc): Removed.
6382 (thumb2_record_ld_st_multiple): New function.
6383 (thumb2_record_ld_st_dual_ex_tbb): New function.
6384 (thumb2_record_data_proc_sreg_mimm): New function.
6385 (thumb2_record_ps_dest_generic): New function.
6386 (thumb2_record_branch_misc_cntrl): New function.
6387 (thumb2_record_str_single_data): New function.
6388 (thumb2_record_ld_mem_hints): New function.
6389 (thumb2_record_ld_word): New function.
6390 (thumb2_record_lmul_lmla_div): New function.
6391 (thumb2_record_decode_insn_handler): New function.
6392 (decode_insn): Add thumb32 instruction handlers.
6393
97dfe206
OJ
63942014-01-15 Omair Javaid <omair.javaid@linaro.org>
6395
6396 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6397 (struct arm_linux_record_tdep): Declare.
6398 (arm_canonicalize_syscall): New function.
6399 (arm_all_but_pc_registers_record): New function.
6400 (arm_linux_syscall_record): New function.
6401 (arm_linux_init_abi): Add syscall recording constructs.
6402 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6403 decoding. (arm_record_coproc_data_proc): Update arm syscall
6404 decoding.
6405 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6406 <arm_syscall_record>: New field.
6407 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6408 gdb_target_obs.
6409
9904a494
OJ
64102014-01-15 Omair Javaid <omair.javaid@linaro.org>
6411
6412 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6413 register for push instruction recording.
6414
f969241e
OJ
64152014-01-15 Omair Javaid <omair.javaid@linaro.org>
6416
6417 * arm-tdep.c (thumb_record_misc): Update to correct logical
6418 error while recording ldm, ldmia and pop instructions.
6419
bfbbec00
OJ
64202014-01-15 Omair Javaid <omair.javaid@linaro.org>
6421
6422 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6423
e40adcc9
PA
64242014-01-15 Pedro Alves <palves@redhat.com>
6425
6426 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6427 (go32_resume, go32_fetch_registers, store_register)
6428 (go32_store_registers, go32_prepare_to_store)
6429 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6430 (go32_create_inferior, go32_can_run, go32_terminal_init)
6431 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6432 declarations.
6433
b0a16e66
TT
64342014-01-15 Tom Tromey <tromey@redhat.com>
6435
6436 * target.h (async_callback_ftype): New typedef.
6437 (struct target_ops) <to_async>: Use it.
6438
bf7105a4
JB
64392014-01-15 Joel Brobecker <brobecker@adacore.com>
6440
6441 * python/py-value.c (get_field_type): Remove unnecessary curly
6442 braces for single-statement if block.
6443
a8f35c2e
JB
64442014-01-15 Joel Brobecker <brobecker@adacore.com>
6445
6446 * python/py-type.c (convert_field): Add missing empty line
6447 after declarations.
6448
bb4142cf
DE
64492014-01-14 Doug Evans <dje@google.com>
6450
6451 * symfile.h (expand_symtabs_matching): Renamed from
6452 expand_partial_symbol_names. Update prototype.
6453 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6454 * symfile.c (expand_symtabs_matching): Renamed from
6455 expand_partial_symbol_names. New args file_matcher, kind.
6456 Rename arg fun to symbol_matcher.
6457 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
6458 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
6459 ada_expand_partial_symbol_name.
6460 (ada_make_symbol_completion_list): Update to call
6461 expand_symtabs_matching.
6462 (ada_add_global_exceptions): Call expand_symtabs_matching.
6463 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
6464 call map_symbol_filenames.
6465 * symtab.c (sources_info): Update to call map_symbol_filenames.
6466 (search_symbols): Call expand_symtabs_matching.
6467 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
6468 (default_make_symbol_completion_list_break_on): Update to call
6469 expand_symtabs_matching.
6470 (make_source_files_completion_list): Update to call
6471 map_symbol_filenames.
6472
206f2a57
DE
64732014-01-14 Doug Evans <dje@google.com>
6474
6475 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
6476 (expand_symtabs_symbol_matcher_ftype): New typedef.
6477 (quick_symbol_functions.expand_symtabs_matching): Update to use.
6478 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6479 * symfile.c (expand_partial_symbol_names): Update to use
6480 expand_symtabs_symbol_matcher_ftype.
6481 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
6482 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6483 Arg name_matcher renamed to symbol_matcher.
6484 * psymtab.c (recursively_search_psymtabs): Update to use
6485 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
6486 sym_matcher.
6487 (expand_symtabs_matching_via_partial): Update to use
6488 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
6489 Arg name_matcher renamed to symbol_matcher.
6490
540c2971
DE
64912014-01-14 Doug Evans <dje@google.com>
6492
6493 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
6494 (map_partial_symbol_filenames): Ditto.
6495 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
6496 (map_partial_symbol_filenames): Ditto.
6497 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
6498 (map_partial_symbol_filenames): Ditto.
6499 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
6500 (map_partial_symbol_filenames): Ditto.
6501 * symtab.c: Delete #include "psymtab.h".
6502
8213266a
PA
65032014-01-14 Pedro Alves <palves@redhat.com>
6504 Tom Tromey <tromey@redhat.com>
6505
6506 * infrun.c (use_displaced_stepping): Use find_record_target
6507 instead of RECORD_IS_USED.
6508 (adjust_pc_after_break): Use record_full_is_used instead of
6509 RECORD_IS_USED.
6510 * record-btrace.c (record_btrace_open): Call record_preopen
6511 instead of checking RECORD_IS_USED.
6512 * record-full.c (record_full_shortname)
6513 (record_full_core_shortname): New globals.
6514 (record_full_is_used): New function.
6515 (find_full_open): Call record_preopen instead of checking
6516 RECORD_IS_USED.
6517 (init_record_full_ops): Set the target's shortname to
6518 record_full_shortname.
6519 (init_record_full_core_ops): Set the target's shortname to
6520 record_full_core_shortname.
6521 * record-full.h (record_full_is_used): Declare.
6522 * record.c (find_record_target): Make extern.
6523 (record_preopen): New function.
6524 * record.h (RECORD_IS_USED): Delete macro.
6525 (find_record_target, record_preopen): Declare functions.
6526
7ec1862d
YQ
65272014-01-14 Yao Qi <yao@codesourcery.com>
6528
6529 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
6530 'len''s type to ULONGEST.
6531 (core_xfer_shared_libraries_aix): Likewise.
6532 * gdbarch.c, gdbarch.h: Regenerated.
6533 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
6534 Change type of 'len' to ULONGEST.
6535 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6536 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6537
dea80a27
YQ
65382014-01-14 Yao Qi <yao@codesourcery.com>
6539
6540 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
6541 type of 'len' to ULONGEST.
6542 (linux_xfer_osdata_processgroups): Likewise.
6543 (linux_xfer_osdata_threads): Likewise.
6544 (linux_xfer_osdata_fds): Likewise.
6545 (linux_xfer_osdata_isockets): Likewise.
6546 (linux_xfer_osdata_shm): Likewise.
6547 (linux_xfer_osdata_sem): Likewise.
6548 (linux_xfer_osdata_msg): Likewise.
6549 (linux_common_xfer_osdata): Likewise.
6550 (struct osdata_type) <getter>: Likewise.
6551 * common/linux-osdata.h (linux_common_xfer_osdata): Update
6552 the declaration.
6553
b55e14c7
YQ
65542014-01-14 Yao Qi <yao@codesourcery.com>
6555
6556 * target.h (target_xfer_partial_ftype): Update.
6557 (struct target_ops) <to_xfer_partial>: Change 'len' type to
6558 ULONGEST.
6559 * aix-thread.c (aix_thread_xfer_partial): Change type of
6560 argument 'len' to ULONGEST.
6561 * auxv.c (procfs_xfer_auxv): Likewise.
6562 (ld_so_xfer_auxv): Likewise.
6563 (memory_xfer_auxv): Likewise.
6564 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6565 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6566 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6567 * corelow.c (core_xfer_partial): Likewise.
6568 * ctf.c (ctf_xfer_partial): Likewise.
6569 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
6570 '%u'.
6571 (darwin_read_dyld_info): Likewise.
6572 (darwin_xfer_partial): Likewise.
6573 * exec.c (section_table_xfer_memory_partial): Likewise.
6574 (exec_xfer_partial): Likewise.
6575 * exec.h (section_table_xfer_memory_partial): Update
6576 declaration.
6577 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
6578 instead of plongest.
6579 (gnu_xfer_partial): Likewise.
6580 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
6581 (ia64_hpux_xfer_solib_got): Likewise.
6582 (ia64_hpux_xfer_partial): Likewise.
6583 * ia64-linux-nat.c (ia64_linux_xfer_partial):
6584 * inf-ptrace.c (inf_ptrace_xfer_partial):
6585 * inf-ttrace.c (inf_ttrace_xfer_partial):
6586 * linux-nat.c (linux_xfer_siginfo): Likewise.
6587 (linux_nat_xfer_partial): Likewise.
6588 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
6589 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
6590 * monitor.c (monitor_xfer_memory): Likewise.
6591 (monitor_xfer_partial): Likewise.
6592 * procfs.c (procfs_xfer_partial): Likewise.
6593 * record-full.c (record_full_xfer_partial): Likewise.
6594 (record_full_core_xfer_partial): Likewise.
6595 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
6596 instead of plongest.
6597 (gdbsim_xfer_partial): Likewise.
6598 * remote.c (remote_xfer_partial): Likewise.
6599 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6600 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6601 declaration.
6602 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6603 (rs6000_xfer_shared_libraries): Likewise.
6604 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6605 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6606 (sparc_xfer_partial): Likewise.
6607 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6608 (spu_xfer_partial): Likewise.
6609 * spu-multiarch.c (spu_xfer_partial): Likewise.
6610 * target.c (target_read_live_memory): Likewise.
6611 (memory_xfer_live_readonly_partial): Likewise.
6612 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
6613 (target_xfer_partial, default_xfer_partial): Likewise.
6614 (current_xfer_partial): Likewise.
6615 * tracepoint.c (tfile_xfer_partial): Likewise.
6616 * windows-nat.c (windows_xfer_memory): Likewise. Call
6617 pulongest instead of plongest.
6618 (windows_xfer_partial): Likewise.
6619 (windows_xfer_shared_libraries): Likewise.
6620
05804640
YQ
66212014-01-14 Yao Qi <yao@codesourcery.com>
6622
6623 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
6624 target_xfer_partial_ftype.
6625
b5b08fb4
SC
66262014-01-13 Siva Chandra Reddy <sivachandra@google.com>
6627
6628 PR python/15464
6629 PR python/16113
6630 * valops.c (value_struct_elt_bitpos): New function
6631 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
6632 object to 'None' if the field name is an empty string ("").
6633 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
6634 attribute to look for a field when 'name' is 'None'.
6635 (get_field_type): New function
6636
13aaf454
DE
66372014-01-13 Doug Evans <dje@google.com>
6638
6639 PR symtab/16426
6640 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
6641 (try_open_dwop_file): Ditto.
6642 * gdb_bfd.c: #include "vec.h".
6643 (bfdp): New typedef.
6644 (struct gdb_bfd_data): New member included_bfds.
6645 (gdb_bfd_unref): Unref all included bfds.
6646 (gdb_bfd_record_inclusion): New function.
6647 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
6648
c2cec97c
TT
66492014-01-13 Tom Tromey <tromey@redhat.com>
6650
6651 * gdbcore.h (deprecated_core_resize_section_table): Remove.
6652
78e5999d
TT
66532014-01-13 Tom Tromey <tromey@redhat.com>
6654
6655 * defs.h (use_windows): Remove.
6656 * gdb.c (main): Update.
6657 * main.c (captured_main, gdb_main): Update.
6658 * main.h (struct captured_main_args) <use_windows>: Remove.
6659 * top.c (use_windows): Remove.
6660
f2052bbe
TT
66612014-01-13 Tom Tromey <tromey@redhat.com>
6662
6663 * defs.h (deprecated_flush_hook): Remove.
6664
fde4f8ed
JK
66652014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6666
6667 PR threads/16216
6668 * linux-thread-db.c (try_thread_db_load): Add parameter
6669 check_auto_load_safe. Move here the file_is_auto_load_safe call.
6670 (try_thread_db_load_from_pdir_1): Move it there from here.
6671 (try_thread_db_load_from_sdir): Update caller.
6672 (try_thread_db_load_from_dir): Move it there from here.
6673
bdf61915
PP
66742014-01-13 Patrick Palka <patrick@parcs.ath.cx>
6675
6676 * regformats/regdat.sh: Always rewrite the register file.
6677
f71e1a8d
PA
66782014-01-13 Pedro Alves <palves@redhat.com>
6679
6680 * Makefile.in (CHECK_HEADERS): New variable.
6681 (check-headers:): New rule.
6682
42c85435
TT
66832014-01-13 Tom Tromey <tromey@redhat.com>
6684
6685 * cli/cli-setshow.c (do_set_command): Update.
6686 * defs.h (deprecated_set_hook): Remove.
6687 * top.c (deprecated_set_hook): Remove.
6688
f8de5129
PA
66892014-01-13 Pedro Alves <palves@redhat.com>
6690
6691 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
6692 the tracepoint if the PC is a pseudo-register.
6693
fc270c35
TT
66942014-01-13 Tom Tromey <tromey@redhat.com>
6695
6696 * defs.h (XCALLOC): Remove.
6697 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
6698 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
6699 * dwarf2loc.c (allocate_piece_closure): Likewise.
6700 * elfread.c (elf_symfile_segments): Likewise.
6701 (elf_symfile_segments): Likewise.
6702 * gdbtypes.c (copy_type_recursive): Likewise.
6703 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
6704 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
6705 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
6706 XCALLOC.
6707 * mt-tdep.c (mt_gdbarch_init): Likewise.
6708 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
6709 XCALLOC.
6710 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
6711 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
6712 * registry.c (registry_alloc_data): Likewise.
6713 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
6714 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6715 * serial.c (serial_fdopen_ops): Likewise.
6716 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
6717 XCALLOC.
6718 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
6719 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
6720 not XCALLOC.
6721
70ba0933
TT
67222014-01-13 Tom Tromey <tromey@redhat.com>
6723
6724 * defs.h (XMALLOC): Remove.
6725 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
6726 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6727 * cli-out.c (struct ui_out *): Likewise.
6728 * cli/cli-dump.c (add_dump_command): Likewise.
6729 (add_dump_command): Likewise.
6730 * complaints.c (get_complaints): Likewise.
6731 (find_complaint): Likewise.
6732 * dwarf2-frame.c (execute_cfa_program): Likewise.
6733 * dwarf2read.c (abbrev_table_read_table): Likewise.
6734 * gdbarch.sh: Likewise.
6735 * gdbarch.c: Rebuild.
6736 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
6737 * interps.c (interp_new): Likewise.
6738 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6739 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6740 * mi/mi-console.c (mi_console_file_new): Likewise.
6741 * mi/mi-interp.c (mi_interpreter_init): Likewise.
6742 * mi/mi-out.c (mi_out_new): Likewise.
6743 * mi/mi-parse.c (mi_parse): Likewise.
6744 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6745 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6746 * observer.c (xalloc_observer_list_node): Likewise.
6747 * regcache.c (regcache_xmalloc_1): Likewise.
6748 * reggroups.c (reggroup_new): Likewise.
6749 (_initialize_reggroup): Likewise.
6750 * registry.c (register_data_with_cleanup): Likewise.
6751 * remote.c (remote_notif_stop_alloc_reply): Likewise.
6752 * ser-base.c (serial_ttystate): Likewise.
6753 * ser-mingw.c (make_pipe_state): Likewise.
6754 * ser-pipe.c (pipe_open): Likewise.
6755 * serial.c (serial_open): Likewise.
6756 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6757 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
6758 (tui_alloc_win_info): Likewise.
6759 (tui_add_content_elements): Likewise.
6760 * tui/tui-file.c (tui_file_new): Likewise.
6761 * tui/tui-out.c (tui_out_new): Likewise.
6762 * ui-file.c (mem_file_new): Likewise.
6763 * ui-out.c (push_level): Likewise.
6764 (make_cleanup_ui_out_end): Likewise.
6765 (append_header_to_list): Likewise.
6766 (ui_out_new): Likewise.
6767 * user-regs.c (user_reg_add_builtin): Likewise.
6768
41bf6aca
TT
67692014-01-13 Tom Tromey <tromey@redhat.com>
6770
6771 * defs.h (XZALLOC): Remove.
6772 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
6773 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
6774 (get_ada_tasks_inferior_data): Likewise.
6775 * auto-load.c (get_auto_load_pspace_data): Likewise.
6776 * auxv.c (get_auxv_inferior_data): Likewise.
6777 * bfd-target.c (target_bfd_reopen): Likewise.
6778 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
6779 (deprecated_insert_raw_breakpoint): Likewise.
6780 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
6781 * corelow.c (core_open): Likewise.
6782 * darwin-nat.c (darwin_check_new_threads): Likewise.
6783 (darwin_attach_pid): Likewise.
6784 * dummy-frame.c (dummy_frame_push): Likewise.
6785 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6786 * dwarf2loc.c (allocate_piece_closure): Likewise.
6787 * elfread.c (elf_symfile_segments): Likewise.
6788 * eval.c (ptrmath_type_p): Likewise.
6789 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
6790 * gdbtypes.c (alloc_type_arch): Likewise.
6791 (alloc_type_instance): Likewise.
6792 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6793 * inf-child.c (inf_child_can_use_agent): Likewise.
6794 * inflow.c (get_inflow_inferior_data): Likewise.
6795 * infrun.c (save_infcall_suspend_state): Likewise.
6796 * jit.c (jit_reader_load): Likewise.
6797 (get_jit_objfile_data): Likewise.
6798 (get_jit_program_space_data): Likewise.
6799 (jit_object_open_impl): Likewise.
6800 (jit_symtab_open_impl): Likewise.
6801 (jit_block_open_impl): Likewise.
6802 (jit_frame_sniffer): Likewise.
6803 * linux-fork.c (add_fork): Likewise.
6804 * maint.c (make_command_stats_cleanup): Likewise.
6805 * objfiles.c (get_objfile_pspace_data): Likewise.
6806 * opencl-lang.c (struct lval_closure): Likewise.
6807 * osdata.c (osdata_start_osdata): Likewise.
6808 * progspace.c (new_address_space): Likewise.
6809 (add_program_space): Likewise.
6810 * remote-sim.c (get_sim_inferior_data): Likewise.
6811 * sh-tdep.c (sh_gdbarch_init): Likewise.
6812 * skip.c (Ignore): Likewise.
6813 (skip_delete_command): Likewise.
6814 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
6815 (library_list_start_library): Likewise.
6816 (solib_aix_current_sos): Likewise.
6817 * solib-darwin.c (get_darwin_info): Likewise.
6818 (darwin_current_sos): Likewise.
6819 * solib-dsbt.c (get_dsbt_info): Likewise.
6820 * solib-ia64-hpux.c (new_so_list): Likewise.
6821 (ia64_hpux_get_solib_linkage_addr): Likewise.
6822 * solib-spu.c (append_ocl_sos): Likewise.
6823 (spu_current_sos): Likewise.
6824 * solib-svr4.c (get_svr4_info): Likewise.
6825 (svr4_keep_data_in_core): Likewise.
6826 (library_list_start_library): Likewise.
6827 (svr4_default_sos): Likewise.
6828 (svr4_read_so_list): Likewise.
6829 * solib-target.c (library_list_start_library): Likewise.
6830 (solib_target_current_sos): Likewise.
6831 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6832 * symfile-debug.c (install_symfile_debug_logging): Likewise.
6833 * symfile.c (default_symfile_segments): Likewise.
6834 * target-descriptions.c (tdesc_data_init): Likewise.
6835 (tdesc_create_reg): Likewise.
6836 (struct tdesc_type *): Likewise.
6837 (tdesc_create_vector): Likewise.
6838 (tdesc_set_struct_size): Likewise.
6839 (struct tdesc_type *): Likewise.
6840 (tdesc_free_feature): Likewise.
6841 (tdesc_create_feature): Likewise.
6842 * windows-nat.c (windows_add_thread): Likewise.
6843 (windows_make_so): Likewise.
6844 * xml-support.c (gdb_xml_body_text): Likewise.
6845 (gdb_xml_create_parser_and_cleanup): Likewise.
6846 (xml_process_xincludes): Likewise.
6847 * xml-syscall.c (allocate_syscalls_info): Likewise.
6848 (syscall_create_syscall_desc): Likewise.
6849
5acfdbae
SDJ
68502014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
6851
6852 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
6853 function, with code from i386_stap_parse_special_token.
6854 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6855 (i386_stap_parse_special_token): Move code to the two functions
6856 above; simplify it.
6857
0000e5cc
PA
68582014-01-09 Pedro Alves <palves@redhat.com>
6859 Hui Zhu <hui@codesourcery.com>
6860
6861 PR gdb/16101
6862 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
6863 bp_err_string. Don't mark the location shlib_disabled if the
6864 error thrown wasn't a generic or memory error. Catch errors
6865 thrown while inserting breakpoints in overlayed code. Output
6866 error message of software breakpoints.
6867 * remote.c (remote_insert_breakpoint): If this breakpoint has
6868 target-side commands but this stub doesn't support Z0 packets,
6869 throw NOT_SUPPORTED_ERROR error.
6870 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
6871 * target.h (target_insert_breakpoint): Extend comment.
6872 (target_insert_hw_breakpoint): Add comment.
6873
b7ea362b
PA
68742014-01-08 Pedro Alves <palves@redhat.com>
6875
6876 * remote.c (remote_add_thread): Add threads silently if starting
6877 up.
6878 (remote_notice_new_inferior): If in all-stop, and starting up,
6879 don't call notice_new_inferior.
6880 (get_current_thread): New function, factored out from ...
6881 (add_current_inferior_and_thread): ... this. Adjust.
6882 (remote_start_remote) <all-stop>: Fetch the thread list. If we
6883 found any thread, then select the remote's current thread as GDB's
6884 current thread too.
6885
b7bba001
JB
68862014-01-08 Joel Brobecker <brobecker@adacore.com>
6887
6888 * NEWS: Create a new section for the next release branch.
6889 Rename the section of the current branch, now that it has
6890 been cut.
6891
16dfbded
JB
68922014-01-08 Joel Brobecker <brobecker@adacore.com>
6893
6894 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
6895 * version.in: Bump version to 7.7.50.DATE-cvs.
6896
22c90ac1
YQ
68972014-01-08 Yao Qi <yao@codesourcery.com>
6898
6899 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
6900 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
6901 (spu_xfer_partial): Cast 'buf' to 'const char *'.
6902
d64ad97c
YQ
69032014-01-08 Yao Qi <yao@codesourcery.com>
6904
6905 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
6906 return value of bfd_get_filename to symbol_file_add_from_bfd.
6907
f93ba80c
PM
69082014-01-08 Pierre Muller <muller@sourceware.org>
6909
6910 Fix PR16201.
6911 * coff-pe-read.c (struct read_pe_section_data): Add index field.
6912 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
6913 to prim_record_mininal_symbol_and_info.
6914 (add_pe_forwarded_sym): Use known section number of forwarded symbol
6915 in call to prim_record_minimal_symbol_and_info.
6916 (read_pe_exported_syms): Set index field of section_data.
6917
a4d9ba85
AP
69182014-01-07 Andrew Pinski <apinski@cavium.com>
6919
6920 * features/aarch64-core.xml (cpsr): Change to be 64bit.
6921 * features/aarch64.c: Regenerate.
6922
1b67eb02
AS
69232014-01-07 Andreas Schwab <schwab@linux-m68k.org>
6924
6925 * target.c (return_null): Define.
6926 (update_current_target): Use it instead of return_zero for
6927 functions that return a pointer.
6928
5e3f4fab
EBM
69292014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6930
6931 * source.c (add_path): Fix check for duplicated paths in the previously
6932 included paths.
6933
e2616788
HK
69342014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
6935
6936 * ada-lang.c: Remove duplicated include statements.
6937 * alphabsd-nat.c: Ditto.
6938 * amd64-darwin-tdep.c: Ditto.
6939 * amd64fbsd-nat.c: Ditto.
6940 * auto-load.c: Ditto.
6941 * ax-gdb.c: Ditto.
6942 * breakpoint.c: Ditto.
6943 * dbxread.c: Ditto.
6944 * fork-child.c: Ditto.
6945 * gdb_usleep.c: Ditto.
6946 * i386-darwin-tdep.c: Ditto.
6947 * i386fbsd-nat.c: Ditto.
6948 * infcmd.c: Ditto.
6949 * inferior.c: Ditto.
6950 * jv-lang.c: Ditto.
6951 * linux-nat.c: Ditto.
6952 * linux-tdep.c: Ditto.
6953 * m68kbsd-nat.c: Ditto.
6954 * m68klinux-nat.c: Ditto.
6955 * microblaze-tdep.c: Ditto.
6956 * mips-linux-tdep.c: Ditto.
6957 * mn10300-tdep.c: Ditto.
6958 * nto-tdep.c: Ditto.
6959 * opencl-lang.c: Ditto.
6960 * osdata.c: Ditto.
6961 * printcmd.c: Ditto.
6962 * regcache.c: Ditto.
6963 * remote-m32r-sdi.c: Ditto.
6964 * remote.c: Ditto.
6965 * symfile.c: Ditto.
6966 * symtab.c: Ditto.
6967 * tilegx-linux-nat.c: Ditto.
6968 * tilegx-tdep.c: Ditto.
6969 * tracepoint.c: Ditto.
6970 * valops.c: Ditto.
6971 * vaxbsd-nat.c: Ditto.
6972 * windows-nat.c: Ditto.
6973 * xtensa-tdep.c: Ditto.
6974
bd1f7788
YQ
69752014-01-07 Yao Qi <yao@codesourcery.com>
6976
6977 * spu-linux-nat.c (_initialize_spu_nat): Declare.
6978
79301218
JB
69792014-01-07 Yao Qi <yao@codesourcery.com>
6980 Joel Brobecker <brobecker@adacore.com>
6981
6982 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
6983 (pdc_write_regs): Likewise.
6984 (fetch_regs_kernel_thread): Likewise.
6985 (store_regs_kernel_thread): Likewise.
6986
69872014-01-07 Joel Brobecker <brobecker@adacore.com>
6988
6989 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
6990 tagged type objects to their actual type.
6991
8e355c5d
JB
69922014-01-07 Joel Brobecker <brobecker@adacore.com>
6993
6994 * ada-valprint.c (print_field_values): Add "language" parameter.
6995 Update calls to print_field_values and print_variant_part.
6996 Pass new parameter "language" in call to val_print instead
6997 of "current_language". Replace call to ada_val_print by call
6998 to val_print.
6999 (print_variant_part): Add "language" parameter.
7000 (ada_val_print_struct_union): Update call to print_field_values.
7001
4fbf5aa5
JB
70022014-01-07 Joel Brobecker <brobecker@adacore.com>
7003
7004 * ada-valprint.c (ui_memcpy): Delete.
7005 (ada_print_floating): Update documentation. Add empty line
7006 between between function documentation and implementation.
7007 Delete variable "buffer". Use ui_file_xstrdup in place of
7008 ui_file_put. Minor adjustments following this change.
7009
71855601
JB
70102014-01-07 Joel Brobecker <brobecker@adacore.com>
7011
7012 * ada-valprint.c (ada_val_print_string): New function,
7013 extracted from ada_val_print_array.
7014 (ada_val_print_array): Replace extracted code by call
7015 to ada_val_print_string followed by a return. Move
7016 "else" branch to the function's top block.
7017
4eb27a30
JB
70182014-01-07 Joel Brobecker <brobecker@adacore.com>
7019
7020 * ada-valprint.c (ada_val_print_array): Move implementation
7021 down. Rename parameter "offset" and "val" into "offset_aligned"
7022 and "original_value" respectively. Add parameter "offset".
7023
34b27950
JB
70242014-01-07 Joel Brobecker <brobecker@adacore.com>
7025
7026 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7027 re-organizing the code. Change the "???" message printed
7028 when target type is a TYPE_CODE_UNDEF into
7029 "<ref to undefined type>".
7030
079e4591
JB
70312014-01-07 Joel Brobecker <brobecker@adacore.com>
7032
7033 * ada-valprint.c (print_record): Delete, implementation inlined...
7034 (ada_val_print_struct_union): ... here. Remove call to
7035 ada_check_typedef in inlined implementation.
7036
8004dfd1
JB
70372014-01-07 Joel Brobecker <brobecker@adacore.com>
7038
7039 * ada-valprint.c (ada_val_print_gnat_array): New function,
7040 extracted from ada_val_print_1;
7041 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7042 (ada_val_print_flt, ada_val_print_struct_union)
7043 (ada_val_print_ref): Likewise.
7044 (ada_val_print_1): Delete variables i and elttype.
7045 Replace extracted-out code by call to corresponding
7046 new functions.
7047
760a2db0
JB
70482014-01-07 Joel Brobecker <brobecker@adacore.com>
7049
7050 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7051
3a92c861
JB
70522014-01-07 Joel Brobecker <brobecker@adacore.com>
7053
7054 * ada-valprint.c (ada_val_print_1): Replace calls to
7055 ada_val_print_1 by calls to val_print.
7056
cd1630f9
JB
70572014-01-07 Joel Brobecker <brobecker@adacore.com>
7058
7059 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7060 Update calls to self accordingly. Replace calls to c_val_print
7061 by calls to val_print.
7062
bdf779a0
JB
70632014-01-07 Joel Brobecker <brobecker@adacore.com>
7064
7065 * ada-valprint.c (print_record): Delete declaration.
7066 (adjust_type_signedness, ada_val_print_1): Likewise.
7067 (ada_val_print): Move function implementation down.
7068 (print_variant_part, print_field_values, print_record):
7069 Move function implementation up.
7070
c0d48811
JB
70712014-01-07 Joel Brobecker <brobecker@adacore.com>
7072
7073 * python/py-type.c (typy_get_name): New function.
7074 (type_object_getset): Add entry for attribute "name".
7075 * NEWS: Add entry mentioning this new attribute.
7076
c26e9cbb
YQ
70772014-01-07 Yao Qi <yao@codesourcery.com>
7078
7079 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7080 statement.
7081
0cc6f43d
YQ
70822014-01-07 Yao Qi <yao@codesourcery.com>
7083
7084 * gnu-nat.c (info_port_rights): Add qualifier const to
7085 argument args.
7086
eec03155
YQ
70872014-01-07 Yao Qi <yao@codesourcery.com>
7088
7089 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7090
f04a82ef
YQ
70912014-01-07 Yao Qi <yao@codesourcery.com>
7092
7093 * gnu-nat.c (make_inf) Update declaration.
7094 (make_inf): Make it static.
7095 (inf_set_traced): Likewise.
7096 (inf_port_to_thread, inf_task_died_status): Likewise.
7097
d57dda0a
YQ
70982014-01-07 Yao Qi <yao@codesourcery.com>
7099
7100 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7101
3aa8c969
YQ
71022014-01-07 Yao Qi <yao@codesourcery.com>
7103
7104 * gnu-nat.c (_initialize_gnu_nat): Declare.
7105
94123b4f
YQ
71062014-01-07 Yao Qi <yao@codesourcery.com>
7107
7108 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7109 'enum bfd_endian'.
7110 (struct gdbarch_info) <byte_order>: Change type to
7111 'enum bfd_endian'.
7112 <byte_order_for_code>: Likewise.
7113 * gdbarch.c, gdbarch.h: Regenerated.
7114
dc81d70a
TT
71152014-01-06 Sasha Smundak <asmundak@google.com>
7116
7117 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7118
cc2f3c35
TT
71192014-01-06 Tom Tromey <tromey@redhat.com>
7120
7121 * doublest.c (convert_doublest_to_floatformat): Use const, not
7122 CONST.
7123 * somread.c (som_symtab_read): Likewise.
7124
adcf2eed
HZ
71252014-01-07 Hui Zhu <hui@codesourcery.com>
7126
7127 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7128 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7129 (gdb_bfd_fopen): Ditto.
7130 (gdb_bfd_openr): Ditto.
7131 (gdb_bfd_openw): Ditto.
7132 (gdb_bfd_openr_iovec): Ditto.
7133 (gdb_bfd_fdopenr): Ditto.
7134 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7135 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7136 with xstrdup.
7137 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7138 with xstrdup.
7139 * symfile-mem.c (symbol_file_add_from_memory): Removed
7140 gdb_bfd_stash_filename.
7141
50722198
DE
71422014-01-03 Doug Evans <dje@google.com>
7143
7144 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7145 output.
7146
2fa4b862
JB
71472014-01-01 Joel Brobecker <brobecker@adacore.com>
7148
7149 Update year range in copyright notice of all files.
7150
28498c42
JB
71512014-01-01 Joel Brobecker <brobecker@adacore.com>
7152
7153 * top.c (print_gdb_version): Set copyright year to 2014.
7154
7b6e1046
JB
71552014-01-01 Joel Brobecker <brobecker@adacore.com>
7156
7157 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7158
df96af55 7159For older changes see ChangeLog-2013.
c906108c
SS
7160\f
7161Local Variables:
7162mode: change-log
7163left-margin: 8
7164fill-column: 74
7165version-control: never
57da7796 7166coding: utf-8
c906108c 7167End:
This page took 1.978021 seconds and 4 git commands to generate.