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