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