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