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