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