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