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