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