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