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