1 2014-05-20 Hui Zhu <hui@codesourcery.com>
2 Yao Qi <yao@codesourcery.com>
5 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6 and change address of sp and pc.
8 2014-05-19 Tom Tromey <tromey@redhat.com>
10 * gdbtypes.c (rank_function): Use XNEWVEC.
11 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
13 2014-05-19 Doug Evans <dje@google.com>
15 * dwarf2read.c (build_type_psymtabs_1): Renamed from
16 build_type_unit_groups and moved closer to only caller. Remove
17 arguments. All references updated. Remove outdated .gdb_index
19 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
20 build_type_psymtabs_1.
22 2014-05-19 Doug Evans <dje@google.com>
24 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
25 n_type_unit_groups, all_type_unit_groups. All uses removed.
26 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
27 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
28 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
29 (add_type_unit_group_to_table): Delete.
31 2014-05-19 Doug Evans <dje@google.com>
33 * eval.c (evaluate_subexp_standard): Add some comments.
35 2014-05-17 Doug Evans <xdje42@gmail.com>
37 * progspace.c (remove_program_space): Delete, unused.
38 * progspace.h (remove_program_space): Ditto.
40 2014-05-17 Doug Evans <xdje42@gmail.com>
42 * inferior.c (prune_inferiors): Fix comment.
43 (remove_inferior_command): Call prune_program_spaces.
45 2014-05-16 Doug Evans <dje@google.com>
47 New command line option -D.
49 * main.c (set_gdb_data_directory): New function.
50 (captured_main): Recognize -D. Flag error for --data-directory "".
51 Call set_gdb_data_directory.
52 (print_gdb_help): Print --data-directory, -D.
53 * main.h (set_gdb_data_directory): Declare.
54 * top.c (staged_gdb_datadir): New static global.
55 (set_gdb_datadir): Call set_gdb_data_directory
56 (show_gdb_datadir): New function.
57 (init_main): Update init of data-directory parameter.
59 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
61 Import the "dirfd" gnulib module.
62 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
63 * gnulib/aclocal.m4: Update.
64 * gnulib/config.in: Update.
65 * gnulib/configure: Update.
66 * gnulib/import/Makefile.am: Update.
67 * gnulib/import/Makefile.in: Update.
68 * gnulib/import/dirfd.c: New.
69 * gnulib/import/m4/dirfd.m4: New.
70 * gnulib/import/m4/gnulib-cache.m4: Update.
71 * gnulib/import/m4/gnulib-comp.m4: Update.
73 2014-05-16 Pierre Muller <muller@sourceware.org>
74 Yao Qi <yao@codesourcery.com>
76 * valprint.c (print_wchar): Move the code on checking whether
77 W is a printable wide char to the default branch of switch
78 statement below. Call wchar_printable instead of gdb_iswprint.
80 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
82 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
83 ldr.w and ldrd instructions.
85 2014-05-15 Doug Evans <dje@google.com>
87 * dwarf2read.c (read_structure_type): Delete outdated comments.
89 2014-05-14 Tom Tromey <tromey@redhat.com>
91 * macrocmd.c (print_macro_definition): Reindent.
93 2014-05-13 Doug Evans <xdje42@gmail.com>
95 * python/py-cmd.c (cmdpy_completer): Add comment.
96 (completers): Make const.
98 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
100 * infrun.c (resume): Remove should_resume (unused). Move up
101 declaration of resume_ptid.
103 2014-05-13 Tom Tromey <tromey@redhat.com>
105 * language.h (unop_type_check): Remove.
106 (binop_type_check): Don't declare.
108 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
110 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
111 call to regcache_raw_collect.
113 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
115 * mi/mi-console.c (mi_console_raw_packet): Use the value from
116 mi_console->quote as the quoting character.
118 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
120 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
122 2014-04-29 Tom Tromey <tromey@redhat.com>
124 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
127 2014-05-07 Kyle McMartin <kyle@redhat.com>
129 Pushed by Joel Brobecker <brobecker@adacore.com>.
130 * aarch64-tdep.c (aarch64_software_single_step): New function.
131 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
132 with aarch64_software_single_step.
134 2014-05-05 Joel Brobecker <brobecker@adacore.com>
138 2014-05-05 Keith Seitz <keiths@redhat.com>
140 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
141 variable or history value is successfully parsed.
143 2014-05-05 Yao Qi <yao@codesourcery.com>
144 Pedro Alves <palves@redhat.com>
146 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
147 address of blocks that intersects the requested range. Trim
148 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
150 * ctf.c (ctf_xfer_partial): Likewise.
152 2014-05-05 Yao Qi <yao@codesourcery.com>
154 * printcmd.c (display_command): Remove the check to
155 target_has_execution.
157 2014-05-03 Mark Kettenis <kettenis@gnu.org>
159 * ppcobsd-nat.c: Include "obsd-nat.h".
160 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
162 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
164 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
166 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
167 and 16-bit signed and unsigned arguments. Update comment.
168 (stap_parse_probe_arguments): Extend code to handle such
169 arguments. Use warning instead of complaint to notify about
170 unrecognized bitness.
172 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
175 * stap-probe.c (stap_parse_probe_arguments): Simplify
176 check for non-prefixed probes (i.e., probes whose
177 arguments do not start with "N@"). Always set the
178 argument type to a sane value.
180 2014-05-01 David Taylor <dtaylor@emc.com>
182 * remote.c (compare_sections_command): Add -r option to compare
183 all loadable read-only sections.
185 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
187 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
188 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
190 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
191 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
192 Remove unused CORE_ADDR argument. Update all callers.
194 2014-04-29 Pedro Alves <palves@redhat.com>
196 * remote.c (struct packet_config) <detect>: Extend comment.
197 (add_packet_config_cmd): Don't set the config's detect or support
199 (init_all_packet_configs): Also initialize the config's 'detect'
201 (reset_all_packet_configs_support): New function.
202 (remote_open_1): Call reset_all_packet_configs_support instead of
203 init_all_packet_configs.
204 (_initialize_remote): Initialize all packet configs. Assert that
205 all packets have an associated command, except a few known
208 2014-04-28 Joel Brobecker <brobecker@adacore.com>
210 * dwarf2read.c (read_subrange_type): Handle dynamic
211 DW_AT_lower_bound attributes.
213 2014-04-28 Joel Brobecker <brobecker@adacore.com>
215 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
216 dynamic bounds before computing its upper bound.
217 (ada_discrete_type_low_bound): Same as above with the lower bound.
219 2014-04-28 Joel Brobecker <brobecker@adacore.com>
221 * dwarf2read.c (is_dynamic_type): Return true for dynamic
222 range types. Adjust the array handling implementation to
223 take advantage of this change.
224 (resolve_dynamic_range): New function, mostly extracted from
225 resolve_dynamic_bounds.
226 (resolve_dynamic_array): New function, mostly extracted from
227 resolve_dynamic_bounds.
228 (resolve_dynamic_bounds): Delete.
229 (resolve_dynamic_type): Reimplement. Add handling of
230 TYPE_CODE_RANGE types.
232 2014-04-28 Joel Brobecker <brobecker@adacore.com>
234 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
235 handling of parallel ___XA types.
237 2014-04-28 Joel Brobecker <brobecker@adacore.com>
239 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
240 unnecessary second call to static_unwrap_type.
242 2014-04-27 Hui Zhu <hui@codesourcery.com>
244 * stack.c (print_frame_info): Call do_gdb_disassembly with
245 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
247 2014-04-26 Doug Evans <xdje42@gmail.com>
249 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
251 2014-04-25 Pedro Alves <palves@redhat.com>
254 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
255 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
256 and newline from built string.
257 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
258 (linux_ptrace_attach_fail_reason): ... this.
259 * linux-nat.c (linux_nat_attach): Adjust to use
260 linux_ptrace_attach_fail_reason.
262 2014-04-25 Pedro Alves <palves@redhat.com>
264 * remote.c (struct remote_state): Remove multi_process_aware,
265 non_stop_aware, cond_tracepoints, cond_breakpoints,
266 breakpoint_commands, fast_tracepoints, static_tracepoints,
267 install_in_trace, disconnected_tracing,
268 enable_disable_tracepoints, string_tracing, and
269 augmented_libraries_svr4_read fields.
270 (remote_multi_process_p): Move further below in the file.
271 (struct packet_config): Add comments.
272 (update_packet_config): Delete function.
273 (show_packet_config_cmd): Use packet_config_support.
274 (add_packet_config_cmd): Use NULL as set callback.
275 (packet_ok): "set remote foo-packet"-style commands no longer
276 change config->supported -- adjust.
277 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
278 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
279 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
280 (PACKET_QNonStop, PACKET_multiprocess_feature)
281 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
282 (PACKET_DisconnectedTracing_feature)
283 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
284 (set_remote_protocol_packet_cmd): Delete function.
285 (packet_config_support, packet_support): New functions.
286 (set_remote_protocol_Z_packet_cmd): Don't call
287 update_packet_config.
288 (remote_query_attached, remote_pass_signals)
289 (remote_program_signals, remote_threads_info)
290 (remote_threads_extra_info, remote_start_remote): Use
292 (remote_start_remote): Use packet_config_support and
294 (init_all_packet_configs): Set all packets to unknown support,
295 instead of calling update_packet_config.
296 (remote_check_symbols): Use packet_support.
297 (remote_supported_packet): Unconditionally set the packet config's
299 (remote_multi_process_feature, remote_non_stop_feature)
300 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
301 (remote_breakpoint_commands_feature)
302 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
303 (remote_install_in_trace_feature)
304 (remote_disconnected_tracing_feature)
305 (remote_enable_disable_tracepoint_feature)
306 (remote_string_tracing_feature)
307 (remote_augmented_libraries_svr4_read_feature): Delete functions.
308 (remote_protocol_features): Adjust to use remote_supported_packet
309 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
310 "ConditionalTracepoints", "ConditionalBreakpoints",
311 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
312 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
313 "EnableDisableTracepoints", and "tracenz".
314 (remote_query_supported): Use packet_support.
315 (remote_open_1): Adjust.
316 (extended_remote_attach_1): Use packet_support. Switch on the
317 result of packet_ok instead of checking whether the packet ended
319 (remote_vcont_resume): Use packet_support.
320 (remote_resume, remote_stop_ns, fetch_register_using_p)
321 (remote_prepare_to_store, store_register_using_P)
322 (check_binary_download, remote_write_bytes): Use packet_support.
323 (remote_vkill): Use packet_support. Switch on the result of
324 packet_ok instead of checking whether the packet ended up
326 (extended_remote_supports_disable_randomization): Use
328 (extended_remote_run): Switch on the result of packet_ok instead
329 of checking whether the packet ended up disabled.
330 (remote_insert_breakpoint, remote_remove_breakpoint)
331 (remote_insert_watchpoint, remote_remove_watchpoint)
332 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
334 (remote_search_memory): Use packet_config_support.
335 (remote_get_thread_local_address, remote_get_tib_address)
336 (remote_hostio_send_command, remote_can_execute_reverse): Use
338 (remote_supports_cond_tracepoints)
339 (remote_supports_cond_breakpoints)
340 (remote_supports_fast_tracepoints)
341 (remote_supports_static_tracepoints)
342 (remote_supports_install_in_trace)
343 (remote_supports_enable_disable_tracepoint)
344 (remote_supports_string_tracing)
345 (remote_can_run_breakpoint_commands): Rewrite, checking whether
346 the packet config says the feature is enabled or disabled.
347 (remote_download_tracepoint, remote_trace_set_readonly_regions)
348 (remote_get_trace_status): Use packet_support.
349 (remote_set_disconnected_tracing): Adjust to check whether the
350 feature is enabled with packet_support.
351 (remote_set_trace_buffer_size, remote_use_agent)
352 (remote_can_use_agent, remote_supports_btrace): Use
354 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
355 Use packet_config_support.
356 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
357 the packet config says the feature is enabled or disabled.
358 (set_range_stepping): Use packet_support.
360 2014-04-25 Tom Tromey <tromey@redhat.com>
362 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
365 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
367 * NEWS: Mention support for C99 variable length arrays.
369 2014-04-24 Joel Brobecker <brobecker@adacore.com>
371 * ada-lang.c (standard_exc): Expand introductory comment.
373 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
374 Walfred Tedeschi <walfred.tedeschi@intel.com>
376 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
378 (amd64_linux_read_description): Add code to handle AVX512 xstate
379 mask and return respective tdesc.
380 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
381 and features/i386/x32-avx512-linux.c.
382 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
383 (amd64_linux_core_read_description): Add code to handle AVX512
384 xstate mask and return respective tdesc.
385 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
386 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
388 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
389 (tdesc_amd64_avx512_linux): New prototype.
390 (tdesc_x32_avx512_linux): Likewise.
391 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
392 features/i386/x32-avx512.c.
393 (amd64_ymm_avx512_names): New register names for pseudo
395 (amd64_ymmh_avx512_names): New register names for raw registers
397 (amd64_k_names): New register names for K registers.
398 (amd64_zmmh_names): New register names for ZMM raw registers.
399 (amd64_zmm_names): New registers names for ZMM pseudo registers.
400 (amd64_xmm_avx512_names): New register names for XMM16-31
402 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
404 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
405 if feature is present.
406 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
407 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
408 (AMD64_NUM_REGS): Adjust to new number of registers.
409 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
410 registers supplied via XSTATE by AVX512 registers.
411 (i386_linux_read_description): Add case for AVX512.
412 * i386-linux-tdep.c: Include i386-avx512-linux.c.
413 (i386_linux_gregset_reg_offset): Add AVX512 registers.
414 (i386_linux_core_read_description): Add case for AVX512.
415 (i386_linux_init_abi): Install supported register note section
417 (_initialize_i386_linux_tdep): Add call to tdesc init function for
419 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
420 registers to be number of zmm7h + 1.
421 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
422 * i386-tdep.c: Include features/i386/i386-avx512.c.
423 (i386_zmm_names): Add ZMM pseudo register names array.
424 (i386_zmmh_names): Add ZMM raw register names array.
425 (i386_k_names): Add K raw register names array.
426 (num_lower_zmm_regs): Add constant for the number of lower ZMM
427 registers. AVX512 has 16 more ZMM registers than there are YMM
429 (i386_zmmh_regnum_p): Add function to look up register number of
431 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
432 (i386_k_regnum_p): Likewise for K raw registers.
433 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
434 registers added by AVX512.
435 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
436 registers added by AVX512.
437 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
439 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
440 (i386_pseudo_register_name): Add ZMM pseudo registers.
441 (i386_zmm_type): Construct and return vector registers type for ZMM
443 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
444 ZMM0-31 pseudo registers and K registers.
445 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
446 and YMM16-31 registers from register cache.
447 (i386_pseudo_register_write): Add code to write K, ZMM and
449 (i386_register_reggroup_p): Add code to include/exclude AVX512
450 registers in/from respective register groups.
451 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
452 registers if feature is present in xcr0.
453 (i386_gdbarch_init): Add code to initialize AVX512 feature
454 variables in tdep structure, wire in pseudo registers and call
455 initialize_tdesc_i386_avx512.
456 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
458 (i386_regnum): Add AVX512 registers.
459 (I386_SSE_NUM_REGS): New define for number of SSE registers.
460 (I386_AVX_NUM_REGS): Likewise for AVX registers.
461 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
462 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
464 (i386_xmm_avx512_regnum_p): New prototype for register look up.
465 (i386_ymm_avx512_regnum_p): Likewise.
466 (i386_k_regnum_p): Likewise.
467 (i386_zmm_regnum_p): Likewise.
468 (i386_zmmh_regnum_p): Likewise.
469 * i387-tdep.c : Update year in copyright notice.
470 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
472 (XSAVE_YMM_AVX512_ADDR): New macro.
473 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
475 (XSAVE_XMM_AVX512_ADDR): New macro.
476 (xsave_avx512_k_offset): New table for K register offsets in
478 (XSAVE_AVX512_K_ADDR): New macro.
479 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
481 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
482 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
484 (i387_collect_xsave): Add code to collect AVX512 registers from
486 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
487 of XMM16-31 registers.
488 (I387_NUM_K_REGS): New define for number of K registers.
489 (I387_K0_REGNUM): New define for K0 register number.
490 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
491 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
492 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
494 (I387_YMM16H_REGNUM): New define for YMM16H register number.
495 (I387_XMM16_REGNUM): New define for XMM16 register number.
496 (I387_YMM0_REGNUM): New define for YMM0 register number.
497 (I387_KEND_REGNUM): New define for last K register number.
498 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
499 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
501 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
503 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
505 * features/Makefile: Add AVX512 related files.
506 * features/i386/32bit-avx512.xml: New file.
507 * features/i386/64bit-avx512.xml: Likewise.
508 * features/i386/amd64-avx512-linux.c: Likewise.
509 * features/i386/amd64-avx512-linux.xml: Likewise.
510 * features/i386/amd64-avx512.c: Likewise.
511 * features/i386/amd64-avx512.xml: Likewise.
512 * features/i386/i386-avx512-linux.c: Likewise.
513 * features/i386/i386-avx512-linux.xml: Likewise.
514 * features/i386/i386-avx512.c: Likewise.
515 * features/i386/i386-avx512.xml: Likewise.
516 * features/i386/x32-avx512-linux.c: Likewise.
517 * features/i386/x32-avx512-linux.xml: Likewise.
518 * features/i386/x32-avx512.c: Likewise.
519 * features/i386/x32-avx512.xml: Likewise.
520 * regformats/i386/amd64-avx512-linux.dat: New file.
521 * regformats/i386/amd64-avx512.dat: Likewise.
522 * regformats/i386/i386-avx512-linux.dat: Likewise.
523 * regformats/i386/i386-avx512.dat: Likewise.
524 * regformats/i386/x32-avx512-linux.dat: Likewise.
525 * regformats/i386/x32-avx512.dat: Likewise.
526 * NEWS: Add note about new support for AVX512.
529 2014-04-23 Pedro Alves <palves@redhat.com>
531 * breakpoint.c (insert_bp_location): Tolerate errors if the
532 breakpoint is set in a user-loaded objfile.
533 (remove_breakpoint_1): Likewise. Also tolerate errors if the
534 location is marked shlib_disabled. If the breakpoint is set in a
535 user-loaded objfile is a GDB-side memory breakpoint, validate it
536 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
537 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
539 * mem-break.c (memory_validate_breakpoint): New function.
540 * objfiles.c (userloaded_objfile_contains_address_p): New
542 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
543 * target.h (memory_validate_breakpoint): New declaration.
545 2014-04-23 Pedro Alves <palves@redhat.com>
547 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
548 the breakpoint is set in a shared library, only suppress
549 errors for software breakpoints, not hardware breakpoints.
551 2014-04-22 Pedro Alves <palves@redhat.com>
553 * infrun.c (schedlock_applies): New function, factored out from
554 find_thread_needs_step_over.
555 (find_thread_needs_step_over): Use it.
556 (switch_back_to_stepped_thread): Always clear trap_expected if the
557 step over is finished. Return early if scheduler locking applies.
558 Look for the stepping thread and a potential step-over thread with
560 (currently_stepping_or_nexting_callback): Delete.
562 2014-04-22 Nick Clifton <nickc@redhat.com>
564 * NEWS: Mention that ARM sim now supports tracing.
566 2014-04-22 Yao Qi <yao@codesourcery.com>
568 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
570 * tracefile.c (tracefile_fetch_registers): ... it. New
572 * tracefile.h (tracefile_fetch_registers): Declare.
573 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
574 tracefile_fetch_registers.
576 2014-04-19 Eli Zaretskii <eliz@gnu.org>
579 * windows-nat.c (thread_rec): Don't display a warning when
580 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
581 fails for any reason, set th->suspended to -1, so that we don't
582 try to resume such a thread. Also, don't return NULL in these
583 cases, to avoid completely ruin the session due to "PC register is
584 not available" error.
585 (do_windows_fetch_inferior_registers): Check errors in
586 GetThreadContext call.
587 (windows_continue): Accept an additional argument KILLED; if not
588 zero, ignore errors in the SetThreadContext call, since the
589 inferior was killed and is shutting down.
590 (windows_resume, get_windows_debug_event)
591 (windows_create_inferior, windows_mourn_inferior)
592 (windows_kill_inferior): All callers of windows_continue changed
593 to adjust to its new calling sequence.
595 2014-04-19 Yao Qi <yao@codesourcery.com>
597 * ctf.c (ctf_open): Call post_create_inferior.
599 2014-04-19 Yao Qi <yao@codesourcery.com>
601 * ctf.c (handle_id): New static variable.
602 (ctf_open_dir): Get handle_id from bt_context_add_trace return
603 value. Get the declaration of event "register" and get length
606 2014-04-19 Yao Qi <yao@codesourcery.com>
608 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
610 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
612 * valops.c (oload_method_static): Remove unnecessary argument
613 METHOD. Update all callers.
615 2014-04-18 Pedro alves <palves@redhat.com>
616 Tom Tromey <tromey@redhat.com>
619 * frame.c (get_prev_frame_1): Rename to ...
620 (get_prev_frame_always): ... this, and make extern. Adjust.
621 (skip_artificial_frames): Use get_prev_frame_always.
622 (frame_unwind_caller_id, frame_pop, get_prev_frame)
623 (get_frame_unwind_stop_reason): Adjust to rename.
624 * frame.h (get_prev_frame_always): Declare.
625 * inline-frame.c: Include frame.h.
626 (inline_frame_this_id): Use get_prev_frame_always.
628 2014-04-18 Tristan Gingold <gingold@adacore.com>
630 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
631 code by using bfd_mach_o_get_base_address.
633 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
635 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
636 (spu_ax_pseudo_register_collect): New function.
637 (spu_ax_pseudo_register_push_stack): Likewise.
638 (spu_dwarf_reg_to_regnum): Likewise.
639 (spu_gdbarch_init): Install them. Append DWARF unwinders.
641 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
643 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
644 Replace FRAME argument with FRAME_ID.
645 * gdbarch.c, gdbarch.h: Regenerate.
646 * findvar.c (default_value_from_register): Add GDBARCH argument;
647 replace FRAME by FRAME_ID. No longer call get_frame_id.
648 (value_from_register): Update call to gdbarch_value_from_register.
649 * value.h (default_value_from_register): Update prototype.
650 * s390-linux-tdep.c (s390_value_from_register): Update interface
651 and call to default_value_from_register.
652 * spu-tdep.c (spu_value_from_register): Likewise.
654 * findvar.c (address_from_register): Remove TYPE argument.
655 Do not call value_from_register; use gdbarch_value_from_register
656 with null_frame_id instead.
657 * value.h (address_from_register): Update prototype.
658 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
659 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
660 address_from_register interface change.
662 2014-04-17 Yao Qi <yao@codesourcery.com>
664 * gdbtypes.h: Update comments to link to types and macros'
667 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
669 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
671 2014-04-16 Keith Seitz <keiths@redhat.com>
674 * dwarf2read.c (skip_one_die): Check that all relative-offset
675 sibling DIEs fall within range of the current reader's buffer.
676 (read_partial_die): Likewise.
678 2014-04-16 Keith Seitz <keiths@redhat.com>
681 * cp-namespace.c (lookup_symbol_file): If the type name of
682 `this' is NULL, return immediately.
684 2014-04-14 Keith Seitz <keiths@redhat.com>
687 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
688 from symbol_matches_domain in symtab.c. All local callers
689 of symbol_matches_domain updated.
690 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
691 search STRUCT_DOMAIN.
692 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
693 independently. standard_lookup will do that automatically.
694 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
695 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
696 (cp_lookup_symbol_in_namespace): Likewise.
697 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
698 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
699 may return a STRUCT_DOMAIN match.
700 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
701 * cp-support.c: Include language.h.
702 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
704 * psymtab.c (match_partial_symbol): Compare the requested
705 domain with the symbol's domain directly.
706 (lookup_partial_symbol): Likewise.
707 * symtab.c (lookup_symbol_in_language): Explain when/why
708 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
709 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
710 appropriate languages.
711 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
712 and moved to ada-lang.c
713 (lookup_block_symbol): Explain that this function only returns
714 symbol matching the requested DOMAIN.
715 Compare the requested domain with the symbol's domain directly.
716 (iterate_over_symbols): Compare the requested domain with the
717 symbol's domain directly.
718 * symtab.h (symbol_matches_domain): Remove.
720 2014-04-14 Tom Tromey <tromey@redhat.com>
723 * c-exp.y (type_aggregate_p): New function.
724 (qualified_name, classify_inner_name): Use it.
725 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
726 and TYPE_TARGET_TYPE of an enum type.
727 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
729 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
730 handle TYPE_DECLARED_CLASS.
731 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
733 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
734 * valops.c (enum_constant_from_type): New function.
735 (value_aggregate_elt): Use it.
736 * cp-namespace.c (cp_lookup_nested_symbol): Handle
739 2014-04-14 Tom Tromey <tromey@redhat.com>
741 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
742 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
744 * value.h (value_aggregate_elt): Update.
746 2014-04-14 Tom Tromey <tromey@redhat.com>
748 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
750 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
752 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
753 (evaluate_subexp_standard): Pass noside argument.
754 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
755 if noside equals EVAL_NORMAL. If the subscript yields a vla type
756 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
757 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
758 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
760 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
762 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
763 points to a constant blob.
765 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
767 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
768 property and store it as the high bound and flag the range accordingly.
769 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
770 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
771 * gdbtypes.h (enum range_flags): New enum.
772 (struct range_bounds): Add flags member.
774 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
776 * c-typeprint.c (c_type_print_varspec_suffix): Added
777 check for not yet resolved high bound. If unresolved, print
778 "variable length" string to the console instead of random
781 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
783 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
785 (ada_template_to_fixed_record_type_1): Likewise.
786 (ada_to_fixed_type_1): Likewise.
787 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
788 (cp_print_value): Likewise.
789 * d-valprint.c (dynamic_array_type): Likewise.
790 * findvar.c (address_of_variable): Likewise.
791 * jv-valprint.c (java_value_print): Likewise.
792 * valops.c (value_ind): Likewise.
793 * value.c (coerce_ref): Likewise.
795 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
797 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
798 value and retrieve the dynamic type size.
800 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
802 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
803 passed to sizeof is dynamic evaluate the argument to compute the length.
805 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
806 Joel Brobecker <brobecker@adacore.com>
808 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
809 (dwarf2_evaluate_property): New function.
810 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
811 * dwarf2read.c (attr_to_dynamic_prop): New function.
812 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
814 * gdbtypes.c: Include dwarf2loc.h.
815 (is_dynamic_type): New function.
816 (resolve_dynamic_type): New function.
817 (resolve_dynamic_bounds): New function.
818 (get_type_length): New function.
819 (check_typedef): Use get_type_length to compute type length.
820 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
821 (TYPE_LOW_BOUND_KIND): New macro.
822 (is_dynamic_type): New function prototype.
823 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
824 to resolve dynamic properties of the type. Update comment.
825 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
827 2014-04-14 Richard Henderson <rth@redhat.com>
829 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
831 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
832 Doug Evans <xdje42@gmail.com>
834 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
835 dereference TYPE_CODE_REF values.
837 2014-04-11 Joel Brobecker <brobecker@adacore.com>
839 Revert the following changes due to regressions:
841 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
842 (dwarf2_evaluate_property): New function.
843 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
844 * dwarf2read.c (attr_to_dynamic_prop): New function.
845 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
847 * gdbtypes.c: Include dwarf2loc.h.
848 (is_dynamic_type): New function.
849 (resolve_dynamic_type): New function.
850 (resolve_dynamic_bounds): New function.
851 (get_type_length): New function.
852 (check_typedef): Use get_type_length to compute type length.
853 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
854 (TYPE_LOW_BOUND_KIND): New macro.
855 (is_dynamic_type): New function prototype.
856 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
857 to resolve dynamic properties of the type. Update comment.
858 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
860 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
861 passed to sizeof is dynamic evaluate the argument to compute the length.
863 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
864 value and retrieve the dynamic type size.
866 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
867 (ada_template_to_fixed_record_type_1): Likewise.
868 (ada_to_fixed_type_1): Likewise.
869 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
870 (cp_print_value): Likewise.
871 * d-valprint.c (dynamic_array_type): Likewise.
872 * eval.c (evaluate_subexp_with_coercion): Likewise.
873 * findvar.c (address_of_variable): Likewise.
874 * jv-valprint.c (java_value_print): Likewise.
875 * valops.c (value_ind): Likewise.
876 * value.c (coerce_ref): Likewise.
878 * c-typeprint.c (c_type_print_varspec_suffix): Added
879 check for not yet resolved high bound. If unresolved, print
880 "variable length" string to the console instead of random
883 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
884 property and store it as the high bound and flag the range accordingly.
885 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
886 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
887 * gdbtypes.h (enum range_flags): New enum.
888 (struct range_bounds): Add flags member.
890 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
891 points to a constant blob.
893 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
894 (evaluate_subexp_standard): Pass noside argument.
895 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
896 if noside equals EVAL_NORMAL. If the subscript yields a vla type
897 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
898 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
899 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
901 2014-04-11 Keith Seitz <keiths@redhat.com>
904 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
905 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
908 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
910 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
911 (evaluate_subexp_standard): Pass noside argument.
912 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
913 if noside equals EVAL_NORMAL. If the subscript yields a vla type
914 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
915 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
916 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
918 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
920 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
921 points to a constant blob.
923 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
925 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
926 property and store it as the high bound and flag the range accordingly.
927 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
928 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
929 * gdbtypes.h (enum range_flags): New enum.
930 (struct range_bounds): Add flags member.
932 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
934 * c-typeprint.c (c_type_print_varspec_suffix): Added
935 check for not yet resolved high bound. If unresolved, print
936 "variable length" string to the console instead of random
939 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
941 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
942 (ada_template_to_fixed_record_type_1): Likewise.
943 (ada_to_fixed_type_1): Likewise.
944 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
945 (cp_print_value): Likewise.
946 * d-valprint.c (dynamic_array_type): Likewise.
947 * eval.c (evaluate_subexp_with_coercion): Likewise.
948 * findvar.c (address_of_variable): Likewise.
949 * jv-valprint.c (java_value_print): Likewise.
950 * valops.c (value_ind): Likewise.
951 * value.c (coerce_ref): Likewise.
953 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
955 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
956 value and retrieve the dynamic type size.
958 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
960 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
961 passed to sizeof is dynamic evaluate the argument to compute the length.
963 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
965 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
966 (dwarf2_evaluate_property): New function.
967 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
968 * dwarf2read.c (attr_to_dynamic_prop): New function.
969 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
971 * gdbtypes.c: Include dwarf2loc.h.
972 (is_dynamic_type): New function.
973 (resolve_dynamic_type): New function.
974 (resolve_dynamic_bounds): New function.
975 (get_type_length): New function.
976 (check_typedef): Use get_type_length to compute type length.
977 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
978 (TYPE_LOW_BOUND_KIND): New macro.
979 (is_dynamic_type): New function prototype.
980 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
981 to resolve dynamic properties of the type. Update comment.
982 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
984 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
986 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
987 declaring high/low bounds and change uses accordingly. Call
988 create_range_type instead of create_static_range_type.
989 * gdbtypes.c (create_range_type): New function.
990 (create_range_type): Convert bounds into struct bound_prop and pass
991 them to create_range_type.
992 * gdbtypes.h (struct bound_prop): New struct.
993 (create_range_type): New function prototype.
994 (struct range_bounds): Use struct bound_prop instead of LONGEST for
995 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
996 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
998 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1000 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1002 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1003 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1004 * ada-lang.c: All uses of create_range_type updated.
1005 * coffread.c: All uses of create_range_type updated.
1006 * dwarf2read.c: All uses of create_range_type updated.
1007 * f-exp.y: All uses of create_range_type updated.
1008 * m2-valprint.c: All uses of create_range_type updated.
1009 * mdebugread.c: All uses of create_range_type updated.
1010 * stabsread.c: All uses of create_range_type updated.
1011 * valops.c: All uses of create_range_type updated.
1012 * valprint.c: All uses of create_range_type updated.
1014 2014-04-10 Pedro Alves <palves@redhat.com>
1016 * breakpoint.c (single_step_breakpoints)
1017 (single_step_gdbarch): Move up in the file.
1018 (one_breakpoint_xfer_memory): New function, factored out from ...
1019 (breakpoint_xfer_memory): ... here. Also process single-step
1022 2014-04-09 Tristan Gingold <gingold@adacore.com>
1024 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1026 (darwin_decode_exception_message): Free port only after use.
1028 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1030 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1031 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1032 when setting the size of call_length.
1034 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1036 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1037 dereference TYPE_CODE_REF values.
1039 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1041 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1042 end of warning message.
1044 2014-04-03 Doug Evans <dje@google.com>
1046 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1047 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1049 2014-04-02 Alan Modra <amodra@gmail.com>
1051 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1052 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1053 (struct symbol_file_add_from_memory_args): Add size field.
1054 (find_vdso_size): New function.
1055 (add_vsyscall_page): Attempt to find vdso size.
1057 2014-04-01 Doug Evans <dje@google.com>
1059 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1061 2014-04-01 Tristan Gingold <gingold@adacore.com>
1063 * darwin-nat.c (darwin_encode_reply): Add prototype.
1064 (darwin_decode_exception_message): Reply to unknown inferiors.
1065 (darwin_decode_message): Handle message by id. Ignore message
1066 to unknown inferior.
1067 (darwin_wait): Discard unknown messages, add debug trace.
1069 2014-03-31 Doug Evans <dje@google.com>
1071 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1074 2014-03-31 Doug Evans <dje@google.com>
1076 New option "set print symbol-loading".
1078 * solib.c (solib_read_symbols): Only print symbol loading messages
1080 (solib_add): If symbol loading is in "brief" mode, notify user
1081 symbols are being loaded.
1082 (reload_shared_libraries_1): Ditto.
1083 * symfile.c (print_symbol_loading_off): New static global.
1084 (print_symbol_loading_brief): New static global.
1085 (print_symbol_loading_full): New static global.
1086 (print_symbol_loading_enums): New static global.
1087 (print_symbol_loading): New static global.
1088 (print_symbol_loading_p): New function.
1089 (symbol_file_add_with_addrs): Only print symbol loading messages
1091 (_initialize_symfile): Register "print symbol-loading" set/show
1093 * symfile.h (print_symbol_loading_p): Declare.
1095 2014-03-30 Doug Evans <xdje42@gmail.com>
1097 * infrun.c (set_last_target_status): New function.
1098 (handle_inferior_event): Call it.
1100 2014-03-30 Doug Evans <xdje42@gmail.com>
1102 * inferior.h (enum stop_kind): Improve comment.
1104 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1106 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1107 a reference, strip the reference layer before calling
1108 the lang_ops value_has_mutated callback.
1110 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1112 Remove some globals from our parser.
1113 * language.c (unk_lang_parser): Add "struct parser_state"
1115 * language.h (struct language_defn) <la_parser>: Likewise.
1116 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1117 (initialize_expout): Add "struct parser_state" argument.
1118 Rewrite function to use the parser state.
1119 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1120 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1121 write_exp_elt_longcst, write_exp_elt_dblcst,
1122 write_exp_elt_decfloatcst, write_exp_elt_type,
1123 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1124 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1125 write_dollar_variable): Likewise.
1126 (parse_exp_in_context_1): Use parser state.
1127 (insert_type_address_space): Add "struct parser_state" argument.
1129 (increase_expout_size): New function.
1130 * parser-defs.h: Forward declare "struct language_defn" and
1131 "struct parser_state".
1132 (expout, expout_size, expout_ptr): Remove extern declarations.
1133 (parse_gdbarch, parse_language): Rewrite macro declarations to
1134 accept the parser state.
1135 (struct parser_state): New struct.
1136 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1137 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1138 write_exp_elt_decfloatcst, write_exp_elt_type,
1139 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1140 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1141 write_exp_msymbol, write_dollar_variable,
1142 mark_struct_expression, insert_type_address_space): Add "struct
1143 parser_state" argument.
1144 (increase_expout_size): New function.
1145 * utils.c (do_clear_parser_state): New function.
1146 (make_cleanup_clear_parser_state): Likewise.
1147 * utils.h (make_cleanup_clear_parser_state): New function
1149 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1150 Update calls to write_exp* in order to pass the parser state.
1151 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1152 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1153 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1154 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1155 * stap-probe.c (stap_parse_register_operand): Likewise.
1156 (stap_parse_single_operand): Likewise.
1157 (stap_parse_argument_1): Likewise.
1158 (stap_parse_argument): Use parser state.
1159 * stap-probe.h: Include "parser-defs.h".
1160 (struct stap_parse_info) <pstate>: New field.
1161 * c-exp.y (parse_type): Rewrite to use parser state.
1162 (yyparse): Redefine to c_parse_internal.
1163 (pstate): New global variable.
1164 (parse_number): Add "struct parser_state" argument.
1165 (write_destructor_name): Likewise.
1166 (type_exp): Update calls to write_exp* and similars in order to
1168 (exp1, exp, variable, qualified_name, space_identifier,
1169 typename, typebase): Likewise.
1170 (write_destructor_name, parse_number, lex_one_token,
1171 classify_name, classify_inner_name, c_parse): Add "struct
1172 parser_state" argument. Update function to use parser state.
1173 * c-lang.h: Forward declare "struct parser_state".
1174 (c_parse): Add "struct parser_state" argument.
1175 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1176 (yyparse): Redefine macro to ada_parse_internal.
1177 (pstate): New variable.
1178 (write_int, write_object_renaming, write_var_or_type,
1179 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1180 type_int, type_long, type_long_long, type_float, type_double,
1181 type_long_double, type_char, type_boolean, type_system_address):
1182 Add "struct parser_state" argument.
1183 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1184 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1185 var_or_type, aggregate, aggregate_component_list,
1186 positional_list, others, component_group,
1187 component_associations): Update calls to write_exp* and similar
1188 functions in order to use parser state.
1189 (ada_parse, write_var_from_sym, write_int,
1190 write_exp_op_with_string, write_object_renaming,
1191 find_primitive_type, write_selectors, write_ambiguous_var,
1192 write_var_or_type, write_name_assoc, type_int, type_long,
1193 type_long_long, type_float, type_double, type_long_double,
1194 type_char, type_boolean, type_system_address): Add "struct
1195 parser_state" argument. Adjust function to use parser state.
1196 * ada-lang.c (parse): Likewise.
1197 * ada-lang.h: Forward declare "struct parser_state".
1198 (ada_parse): Add "struct parser_state" argument.
1199 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1200 calls to both functions.
1201 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1203 (yyparse): Redefine macro to f_parse_internal.
1204 (pstate): New variable.
1205 (parse_number): Add "struct parser_state" argument.
1206 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1207 and similars in order to use parser state.
1208 (parse_number): Adjust code to use parser state.
1210 (f_parse): New function.
1211 * f-lang.h: Forward declare "struct parser_state".
1212 (f_parse): Add "struct parser_state" argument.
1213 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1215 (yyparse): Redefine macro for java_parse_internal.
1216 (pstate): New variable.
1217 (push_expression_name, push_expression_name, insert_exp): Add
1218 "struct parser_state" argument.
1219 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1220 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1221 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1222 PostIncrementExpression, PostDecrementExpression,
1223 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1224 UnaryExpressionNotPlusMinus, CastExpression,
1225 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1226 RelationalExpression, EqualityExpression, AndExpression,
1227 ExclusiveOrExpression, InclusiveOrExpression,
1228 ConditionalAndExpression, ConditionalOrExpression,
1229 ConditionalExpression, Assignment, LeftHandSide): Update
1230 calls to write_exp* and similars in order to use parser state.
1231 (parse_number): Ajust code to use parser state.
1233 (java_parse): New function.
1234 (push_variable): Add "struct parser_state" argument. Adjust
1235 code to user parser state.
1236 (push_fieldnames, push_qualified_expression_name,
1237 push_expression_name, insert_exp): Likewise.
1238 * jv-lang.h: Forward declare "struct parser_state".
1239 (java_parse): Add "struct parser_state" argument.
1240 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1242 (yyparse): Redefine macro to m2_parse_internal.
1243 (pstate): New variable.
1244 (type_exp, exp, fblock, variable, type): Update calls to
1245 write_exp* and similars to use parser state.
1247 (m2_parse): New function.
1248 * m2-lang.h: Forward declare "struct parser_state".
1249 (m2_parse): Add "struct parser_state" argument.
1250 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1251 * objc-lang.h: Forward declare "struct parser_state".
1252 (end_msglist): Add "struct parser_state" argument.
1253 * p-exp.y (parse_type): Rewrite macro to use parser state.
1254 (yyparse): Redefine macro to pascal_parse_internal.
1255 (pstate): New variable.
1256 (parse_number): Add "struct parser_state" argument.
1257 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1258 write_exp* and similars in order to use parser state.
1259 (parse_number, yylex): Adjust code to use parser state.
1260 (pascal_parse): New function.
1261 * p-lang.h: Forward declare "struct parser_state".
1262 (pascal_parse): Add "struct parser_state" argument.
1263 * go-exp.y (parse_type): Rewrite macro to use parser state.
1264 (yyparse): Redefine macro to go_parse_internal.
1265 (pstate): New variable.
1266 (parse_number): Add "struct parser_state" argument.
1267 (type_exp, exp1, exp, variable, type): Update calls to
1268 write_exp* and similars in order to use parser state.
1269 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1270 to use parser state.
1271 (go_parse): Likewise.
1272 * go-lang.h: Forward declare "struct parser_state".
1273 (go_parse): Add "struct parser_state" argument.
1275 2014-03-27 Doug Evans <dje@google.com>
1277 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1279 2014-03-27 Doug Evans <dje@google.com>
1281 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1282 Remove argument abbrev_section. All callers updated.
1284 2014-03-27 Doug Evans <dje@google.com>
1286 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1287 addr_base, ranges_base.
1289 2014-03-26 Keith Seitz <keiths@redhat.com>
1291 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1292 types, not VAR_DOMAIN.
1294 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1296 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1298 * features/nios2-linux.c: Regenerated.
1299 * features/nios2.c: Regenerated.
1301 2014-03-25 Pedro Alves <palves@redhat.com>
1303 * cli/cli-script.c (script_from_file): Force the interpreter to
1306 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1308 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1309 small stack allocation.
1311 2014-03-24 Tristan Gingold <gingold@adacore.com>
1313 * darwin-nat.c (exc_server): Remove unused prototype.
1314 (darwin_dump_message): Correctly display data on x86_64.
1315 (darwin_encode_reply): Fix style.
1316 Add comments and fix indentation.
1318 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1320 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1322 2014-03-22 Doug Evans <xdje42@gmail.com>
1324 * infcmd.c: Whitespace fixes.
1325 (interrupt_command): Merge two function comments into one.
1327 2014-03-22 Doug Evans <xdje42@gmail.com>
1329 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1332 2014-03-22 Yao Qi <yao@codesourcery.com>
1334 * remote.c (target_read_live_memory): Remove.
1335 (memory_xfer_live_readonly_partial): Rename it to
1336 remote_xfer_live_readonly_partial. Remove argument 'object'.
1337 All callers updated. Call remote_read_bytes_1
1338 instead of target_read_live_memory.
1339 * tracepoint.c (set_traceframe_number): Remove.
1340 (make_cleanup_restore_traceframe_number): Likewise .
1341 * tracepoint.h (set_traceframe_number): Remove declaration.
1342 (make_cleanup_restore_traceframe_number): Likewise.
1344 2014-03-22 Yao Qi <yao@codesourcery.com>
1346 * remote.c (remote_read_bytes): Move code on reading from the
1348 (remote_read_bytes_1): ... here. New function.
1350 2014-03-22 Yao Qi <yao@codesourcery.com>
1352 * ctf.c (ctf_xfer_partial): Check the return value of
1353 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1354 return TARGET_XFER_UNAVAILABLE.
1355 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1356 * target.c (target_read_live_memory): Move it to remote.c.
1357 (memory_xfer_live_readonly_partial): Likewise.
1358 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1359 * remote.c (target_read_live_memory): Moved from target.c.
1360 (memory_xfer_live_readonly_partial): Likewise.
1361 (remote_read_bytes): Factored out from
1362 memory_xfer_partial_1.
1364 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1366 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1369 2014-03-21 Pedro Alves <palves@redhat.com>
1371 * infrun.c (normal_stop): Extend comment.
1373 2014-03-21 Hui Zhu <hui@codesourcery.com>
1374 Pedro Alves <palves@redhat.com>
1376 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1378 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1379 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1380 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1382 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1384 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1385 `z' formatted output modifier.
1387 2014-03-20 Tom Tromey <tromey@redhat.com>
1388 Sergio Durigan Junior <sergiodj@redhat.com>
1390 * probe.c (parse_probes): Turn assert into an ordinary error.
1391 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1392 exceptions when parsing probes. Rearrange the code for clarity.
1394 2014-03-20 Tom Tromey <tromey@redhat.com>
1397 * top.c (execute_command): Only dispatch events if the command
1400 2014-03-20 Tom Tromey <tromey@redhat.com>
1403 * infcall.c: Include event-top.h.
1404 (run_inferior_call): Call async_disable_stdin if needed.
1406 2014-03-20 Pedro Alves <palves@redhat.com>
1408 * infrun.c (prepare_to_proceed): Delete.
1409 (thread_still_needs_step_over): New function.
1410 (find_thread_needs_step_over): New function.
1411 (proceed): If the current thread needs a step-over, set its
1412 steping_over_breakpoint flag. Adjust to use
1413 find_thread_needs_step_over instead of prepare_to_proceed.
1414 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1415 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1417 (switch_back_to_stepped_thread): Step over breakpoints of all
1418 threads not the stepping thread, before switching back to the
1421 2014-03-20 Pedro Alves <palves@redhat.com>
1423 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1425 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1426 * infrun.c (saved_singlestep_ptid)
1427 (stepping_past_singlestep_breakpoint): Delete.
1428 (resume): Remove stepping_past_singlestep_breakpoint handling.
1429 (proceed): Store the prev_pc of the stepping thread too.
1430 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1432 (enum infwait_states): Delete infwait_thread_hop_state.
1433 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1435 (handle_inferior_event): Adjust.
1436 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1437 handling and the thread-hop code. Before removing single-step
1438 breakpoints, check whether the thread hit a single-step breakpoint
1439 of another thread. If it did, the trap is not a random signal.
1440 (switch_back_to_stepped_thread): If the event thread hit a
1441 single-step breakpoint, unblock it before switching to the
1442 stepping thread. Handle the case of the stepped thread having
1444 (keep_going): Handle the case of the current thread moving past a
1445 single-step breakpoint.
1447 2014-03-20 Pedro Alves <palves@redhat.com>
1450 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1451 are being stepped over.
1452 (breakpoint_address_match): Make extern.
1453 * breakpoint.h (breakpoint_address_match): New declaration.
1454 * inferior.h (stepping_past_instruction_at): New declaration.
1455 * infrun.c (struct step_over_info): New type.
1456 (step_over_info): New global.
1457 (set_step_over_info, clear_step_over_info)
1458 (stepping_past_instruction_at): New functions.
1459 (handle_inferior_event): Clear the step-over info when
1460 trap_expected is cleared.
1461 (resume): Remove now stale comment.
1462 (clear_proceed_status): Clear step-over info.
1463 (proceed): Adjust step-over handling to set or clear the step-over
1464 info instead of removing all breakpoints.
1465 (handle_signal_stop): When setting up a thread-hop, don't remove
1467 (stop_stepping): Clear step-over info.
1468 (keep_going): Adjust step-over handling to set or clear step-over
1469 info and then always inserting breakpoints, instead of removing
1470 all breakpoints when stepping over one.
1472 2014-03-20 Pedro Alves <palves@redhat.com>
1474 * infrun.c (previous_inferior_ptid): Adjust comment.
1475 (deferred_step_ptid): Delete.
1476 (infrun_thread_ptid_changed, prepare_to_proceed)
1477 (init_wait_for_inferior): Adjust.
1478 (handle_signal_stop): Delete deferred_step_ptid handling.
1480 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1483 * defs.h (sync_quit_force_run): New declaration.
1484 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1485 * event-top.c (async_sigterm_handler): New declaration.
1486 (async_sigterm_token): New variable.
1487 (async_init_signals): Create also async_sigterm_token.
1488 (async_sigterm_handler): New function.
1489 (sync_quit_force_run): New variable.
1490 (handle_sigterm): Replace quit_force call by other calls.
1491 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1493 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1495 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1496 offset into SPE pseudo registers.
1498 2014-03-18 Pedro Alves <palves@redhat.com>
1501 * inferior.h (print_stop_event): Declare.
1502 * infrun.c (print_stop_event): New, factored out from ...
1503 (normal_stop): ... this.
1504 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1505 of bpstat_print/print_stack_frame.
1507 2014-03-17 Tom Tromey <tromey@redhat.com>
1509 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1511 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1513 * ada-lang.c (decode_constrained_packed_array): Perform a
1514 minimal coercion for reference with coerce_ref instead of
1517 2014-03-17 Tristan Gingold <gingold@adacore.com>
1519 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1520 (darwin_solib_create_inferior_hook): Emit a warning if version
1523 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1525 * python/py-value.c (get_field_flag): Cast flag_name argument to
1526 PyObject_GetAttrString to support Python 2.4.
1528 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1530 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1531 (Global Maintainers): Remove Jan Kratochvil.
1533 2014-03-14 Pedro Alves <palves@redhat.com>
1535 * inferior.h (terminal_ours_for_output): Rename to ...
1536 (child_terminal_ours_for_output): ... this.
1537 (terminal_save_ours): Rename to ...
1538 (child_terminal_save_ours): ... this.
1539 (terminal_ours): Rename to ...
1540 (child_terminal_ours): ... this.
1541 (terminal_inferior): Rename to ...
1542 (child_terminal_inferior): ... this.
1543 (terminal_init_inferior): Rename to ...
1544 (child_terminal_init_inferior): ... this.
1545 (terminal_init_inferior_with_pgrp): Rename to ...
1546 (child_terminal_init_inferior_with_pgrp): ... this.
1547 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1548 (child_terminal_init_with_pgrp): ... this.
1549 (terminal_save_ours): Rename to ...
1550 (child_terminal_save_ours): ... this.
1551 (terminal_init_inferior): Rename to ...
1552 (child_terminal_init): ... this. Adjust.
1553 (terminal_inferior): Rename to ...
1554 (child_terminal_inferior): ... this.
1555 (terminal_ours_for_output): Rename to ...
1556 (child_terminal_ours_for_output): ... this. Adjust.
1557 (terminal_ours): Rename to ...
1558 (child_terminal_ours): ... this.
1559 (terminal_ours_1): Rename to ...
1560 (child_terminal_ours_1): ... this. Adjust.
1561 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1562 * windows-nat.c (do_initial_windows_stuff): Adjust.
1563 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1564 (gnu_terminal_init): ... this. Adjust.
1565 (gnu_target): Adjust.
1566 * inf-child.c (inf_child_target): Adjust.
1568 2014-03-13 Doug Evans <xdje42@gmail.com>
1571 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1574 2014-03-13 Doug Evans <xdje42@gmail.com>
1576 * value.c (record_latest_value): Call release_value_or_incref
1577 instead of release_value.
1579 2014-03-13 Pedro Alves <palves@redhat.com>
1581 * procfs.c (procfs_target): Don't override to_shortname,
1582 to_longname or to_doc.
1584 2014-03-13 Pedro Alves <palves@redhat.com>
1586 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1587 Unix in user visible strings.
1589 2014-03-12 Stan Shebs <stan@codesourcery.com>
1591 * gdbtypes.h: Annotate comments for Doxygen, add a page
1592 block comment with some general info.
1594 2014-03-12 Pedro Alves <palves@redhat.com>
1596 * infcmd.c (prepare_execution_command): New function, factored out
1597 from several execution commands.
1598 (run_command_1, continue_command, step_1, jump_command)
1599 (signal_command, until_command, advance_command, finish_command)
1600 (attach_command): Use prepare_execution_command.
1602 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1604 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1607 (struct arm_linux_thread_points): Removed.
1608 (struct arm_linux_process_info): New.
1609 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1610 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1611 (arm_linux_find_breakpoints_by_tid): Removed.
1612 (struct arch_lwp_info): New.
1613 (arm_linux_find_process_pid): New functions.
1614 (arm_linux_add_process): New functions.
1615 (arm_linux_process_info_get): New functions.
1616 (arm_linux_forget_process): New function.
1617 (arm_linux_get_debug_reg_state): New function.
1618 (struct update_registers_data): New.
1619 (update_registers_callback): New function.
1620 (arm_linux_insert_hw_breakpoint1): Updated.
1621 (arm_linux_remove_hw_breakpoint1): Updated.
1622 (arm_linux_insert_hw_breakpoint): Updated.
1623 (arm_linux_remove_hw_breakpoint): Updated.
1624 (arm_linux_insert_watchpoint): Updated.
1625 (arm_linux_remove_watchpoint): Updated.
1626 (arm_linux_new_thread): Updated.
1627 (arm_linux_prepare_to_resume): New function.
1628 (arm_linux_new_fork): New function.
1629 (_initialize_arm_linux_nat): Updated.
1631 2014-03-12 Pedro Alves <palves@redhat.com>
1633 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1635 2014-03-12 Tom Tromey <tromey@redhat.com>
1637 * inf-child.c (return_zero): New function.
1638 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1639 * aix-thread.c (aix_thread_inferior_created): New function.
1640 (aix_thread_attach): Remove.
1641 (init_aix_thread_ops): Don't set to_attach.
1642 (_initialize_aix_thread): Register inferior_created observer.
1643 * corelow.c (init_core_ops): Don't set to_attach or
1645 * exec.c (init_exec_ops): Don't set to_attach or
1647 * infcmd.c (run_command_1): Use find_run_target. Make direct
1649 (attach_command): Use find_attach_target. Make direct target
1651 * record-btrace.c (init_record_btrace_ops): Don't set
1653 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1655 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1656 set to_create_inferior.
1657 * target.c (complete_target_initialization): Add assertion.
1658 (target_create_inferior): Remove.
1659 (find_default_attach, find_default_create_inferior): Remove.
1660 (find_attach_target, find_run_target): New functions.
1661 (find_default_is_async_p, find_default_can_async_p)
1662 (target_supports_non_stop, target_attach): Remove.
1663 (init_dummy_target): Don't set to_create_inferior or
1664 to_supports_non_stop.
1665 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1666 TARGET_DEFAULT_FUNC.
1667 <to_create_inferior>: Add comment.
1668 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1669 TARGET_DEFAULT_RETURN.
1670 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1671 (find_attach_target, find_run_target): Declare.
1672 (target_create_inferior): Remove.
1673 (target_has_execution_1): Update comment.
1674 (target_supports_non_stop): Remove.
1675 * target-delegates.c: Rebuild.
1677 2014-03-12 Pedro Alves <palves@redhat.com>
1679 * inf-child.h: Update comment to not mention Unix.
1681 2014-03-12 Pedro Alves <palves@redhat.com>
1683 * inf-child.c: Update top comment to not mention Unix. Add
1684 generic comment describing how this target is meant to be used.
1685 (inf_child_post_attach, inf_child_post_startup_inferior)
1686 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1689 2014-03-12 Pedro Alves <palves@redhat.com>
1691 * nto-procfs.c: Include inf-child.h.
1692 (procfs_ops): Delete global.
1693 (procfs_can_run): Delete method.
1694 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1695 target pointer instead of referencing procfs_ops.
1696 (procfs_prepare_to_store): Delete.
1697 (init_procfs_ops): Delete function.
1698 (procfs_target): New function, based on init_procfs_ops, but
1699 inherit inf_child_target.
1700 (_initialize_procfs): Use procfs_target.
1702 2014-03-12 Pedro Alves <palves@redhat.com>
1704 * windows-nat.c: Include inf-child.h.
1705 (windows_ops): Delete global.
1706 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1708 (init_windows_ops): Delete function.
1709 (windows_target): New function, based on init_windows_ops, but
1710 inherit inf_child_target.
1711 (_initialize_windows_nat): Use windows_target. Install x86
1712 specific target methods here.
1714 2014-03-10 Doug Evans <xdje42@gmail.com>
1716 * guile/guile.c (call_initialize_gdb_module): New function.
1717 (initialize_guile): Replace call to scm_init_guile with call to
1720 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1722 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1723 in call to TYPE_CODE macro.
1725 2014-03-10 Jerome Guitton <guitton@adacore.com>
1727 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1728 Resolve tagged types to full view.
1730 2014-03-10 Hui Zhu <hui@codesourcery.com>
1732 * target.h (target_insert_breakpoint): Remove "hardware" from its
1735 2014-03-07 Doug Evans <dje@google.com>
1737 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1739 2014-03-07 Doug Evans <dje@google.com>
1741 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1742 Remove unused local comp_dir_attr. Assert exactly one of
1743 stub_comp_unit_die, stub_comp_dir is non-NULL.
1745 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1747 * target.h (complete_target_initialization, add_target):
1750 2014-03-07 Pedro Alves <palves@redhat.com>
1752 * go32-nat.c: Include inf-child.h.
1753 (go32_ops): Delete global.
1754 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1756 (go32_create_inferior): Push the passed in target pointer instead
1757 of referencing go32_ops.
1758 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1759 (go32_target): New function, based on init_go32_ops, but inherit
1761 (_initialize_go32_nat): Use go32_target. Move parts of
1764 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1766 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1767 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1768 SYMBOL_VALUE_ADDRESS.
1769 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1771 2014-03-06 Yao Qi <yao@codesourcery.com>
1773 * breakpoint.c (get_tracepoint_by_number): Remove argument
1774 optional_p. All callers updated. Adjust comments. Update
1776 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1778 2014-03-06 Yao Qi <yao@codesourcery.com>
1780 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1781 early if get_number returns zero. Use 'p' instead of 'args'.
1783 2014-03-06 Yao Qi <yao@codesourcery.com>
1785 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1788 2014-03-06 Yao Qi <yao@codesourcery.com>
1790 PR breakpoints/16508
1791 * tracepoint.c (check_trace_running): New function.
1792 (trace_find_command): Move code to check_trace_running and
1793 call check_trace_running.
1794 (trace_find_pc_command): Likewise.
1795 (trace_find_tracepoint_command): Likewise.
1796 (trace_find_line_command): Likewise.
1797 (trace_find_range_command): Likewise.
1798 * tracepoint.h (check_trace_running): Likewise.
1799 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1801 2014-03-06 Yao Qi <yao@codesourcery.com>
1803 * target.h (struct target_ops) <to_traceframe_info>: Use
1804 TARGET_DEFAULT_NORETURN (tcomplain ()).
1805 * target-delegates.c: Regenerated.
1807 2014-03-05 Pedro Alves <palves@redhat.com>
1810 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1811 void. Update comment.
1812 (dcache_xfer_memory): Delete.
1813 (dcache_read_memory_partial): New, based on the read bits of
1815 (dcache_update): Add status parameter. Use ULONGEST for len, and
1816 adjust. Discard cache lines if the reason for the update was
1818 * dcache.h (dcache_xfer_memory): Delete declaration.
1819 (dcache_read_memory_partial): New declaration.
1820 (dcache_update): Update prototype.
1821 * target.c (raw_memory_xfer_partial): Update the dcache here.
1822 (memory_xfer_partial_1): Don't handle dcache writes here.
1824 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1826 * remote-sim.c (gdbsim_load): Add const to prog.
1828 2014-03-03 Tom Tromey <tromey@redhat.com>
1830 * elfread.c (probe_key): Change to bfd_data.
1831 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1832 now per-BFD, not per-objfile.
1833 * stap-probe.c (stap_probe_destroy): Update comment.
1834 (handle_stap_probe): Allocate on the per-BFD obstack.
1836 2014-03-03 Tom Tromey <tromey@redhat.com>
1838 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1839 * breakpoint.c (create_longjmp_master_breakpoint): Use
1841 (add_location_to_breakpoint, bkpt_probe_insert_location)
1842 (bkpt_probe_remove_location): Update.
1843 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1844 * elfread.c (elf_symfile_relocate_probe): Remove.
1845 (elf_probe_fns): Update.
1846 (insert_exception_resume_breakpoint): Change type of "probe"
1847 parameter to bound_probe.
1848 (check_exception_resume): Update.
1849 * objfiles.c (objfile_relocate1): Don't relocate probes.
1850 * probe.c (bound_probe_s): New typedef.
1851 (parse_probes): Use get_probe_address. Set sal's objfile.
1852 (find_probe_by_pc): Return a bound_probe.
1853 (collect_probes): Return a VEC(bound_probe_s).
1854 (compare_probes): Update.
1855 (gen_ui_out_table_header_info): Change type of "probes"
1857 (info_probes_for_ops): Update.
1858 (get_probe_address): New function.
1859 (probe_safe_evaluate_at_pc): Update.
1860 * probe.h (struct probe_ops) <get_probe_address>: New field.
1861 <set_semaphore, clear_semaphore>: Add objfile parameter.
1862 (struct probe) <objfile>: Remove field.
1864 <address>: Update comment.
1865 (struct bound_probe): New.
1866 (find_probe_by_pc): Return a bound_probe.
1867 (get_probe_address): Declare.
1868 * solib-svr4.c (struct probe_and_action) <address>: New field.
1869 (hash_probe_and_action, equal_probe_and_action): Update.
1870 (register_solib_event_probe): Add address parameter.
1871 (solib_event_probe_at): Update.
1872 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1874 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1875 (stap_get_probe_address): New function.
1876 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1877 (compile_probe_arg): Update.
1878 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1880 (handle_stap_probe): Don't relocate the probe.
1881 (stap_relocate): Remove.
1882 (stap_gen_info_probes_table_values): Update.
1883 (stap_probe_ops): Remove stap_relocate.
1884 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1885 (debug_sym_probe_fns): Update.
1886 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1887 * symtab.c (init_sal): Use memset.
1888 * symtab.h (struct symtab_and_line) <objfile>: New field.
1889 * tracepoint.c (start_tracing, stop_tracing): Update.
1891 2014-03-03 Tom Tromey <tromey@redhat.com>
1893 * probe.h (parse_probes, find_probe_by_pc)
1894 (find_probes_in_objfile): Fix comments.
1896 2014-03-02 Doug Evans <xdje42@gmail.com>
1898 * infrun.c (handle_signal_stop): Replace test for
1899 TARGET_WAITKIND_STOPPED with an assert.
1901 2014-03-02 Doug Evans <xdje42@gmail.com>
1903 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1905 2014-03-02 Doug Evans <xdje42@gmail.com>
1907 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1909 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1911 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1913 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1915 * i386obsd-nat.c: Include "obsd-nat.h".
1916 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1918 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1920 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1922 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1924 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1926 * mips64obsd-nat.c: Include "obsd-nath".
1927 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
1929 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1931 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1933 * amd64obsd-nat.c: Include "obsd-nat,h.
1934 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
1936 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
1938 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
1940 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
1941 (find_overload_match): Update call to find_oload_champ.
1942 (find_oload_champ_namespace_loop): Likewise
1944 2014-02-28 Mark Kettenis <kettenis@gnu.org>
1946 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
1948 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
1949 * config/sparc/obsd64.mh: New file.
1950 * sparc64obsd-nat.c: New file.
1952 * obsd-nat.h: New file.
1953 * obsd-nat.c: New file.
1954 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
1955 (ALLDEPFILES): Add obsd-nat.c.
1957 2014-02-28 Tom Tromey <tromey@redhat.com>
1959 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
1960 * cli-out.h (cli_ui_out_impl): Now const.
1961 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
1962 * ui-out.c (struct ui_out) <impl>: Now const.
1963 (default_ui_out_impl): Now const.
1964 (ui_out_new): Make 'impl' parameter const.
1965 * ui-out.h (ui_out_new): Update.
1967 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1969 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
1971 2014-02-27 Mark Kettenis <kettenis@gnu.org>
1973 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
1975 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1977 Additional PR 8882 fix.
1978 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
1980 2014-02-27 Pedro Alves <palves@redhat.com>
1982 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
1985 2014-02-27 Pedro Alves <palves@redhat.com>
1988 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
1989 * nat/linux-waitpid.c: Include string.h.
1990 (status_to_str): Moved here and made extern.
1991 * nat/linux-waitpid.h (status_to_str): New declaration.
1993 2014-02-27 Hui Zhu <hui@codesourcery.com>
1996 * infrun.c (ptid_match): Move ...
1997 * common/ptid.c (ptid_match): ... here.
1998 * inferior.h (ptid_match): Move ...
1999 * common/ptid.h (ptid_match): ... here.
2001 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2003 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2004 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2007 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2009 * obsd-tdep.c (obsd_auxv_parse): New function.
2010 (obsd_init_abi): Set auxv_parse.
2012 * gdbarch.sh (auxv_parse): New.
2013 * gdbarch.h: Regenerated.
2014 * gdbarch.c: Regenerated.
2015 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2017 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2019 * guile/scm-value.c (gdbscm_history_append_x): New function.
2020 (value_functions): Add it.
2022 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2024 * dwarf2read.c (attr_value_as_address): New function.
2025 (dwarf2_find_base_address, read_call_site_scope): Use
2026 attr_value_as_address in place of DW_ADDR.
2027 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2028 the low and high addresses. Slight rework of the handling
2029 of the high pc being a constant form, and limit it to
2030 DWARF verson 4 or higher.
2031 (dwarf2_record_block_ranges): Likewise.
2032 (read_partial_die): Likewise.
2033 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2035 2014-02-26 Tom Tromey <tromey@redhat.com>
2037 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2039 2014-02-26 Tom Tromey <tromey@redhat.com>
2041 * elfread.c (elf_read_minimal_symbols): Return early if
2042 minimal symbols have already been read. Add "ei" parameter.
2043 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2044 * minsyms.c (prim_record_minimal_symbol_full): Update.
2045 * objfiles.h (struct objstats) <n_minsyms>: Move...
2046 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2047 * symmisc.c (print_objfile_statistics): Update.
2049 2014-02-26 Tom Tromey <tromey@redhat.com>
2051 * elfread.c (elf_read_minimal_symbols): New function, from
2053 (elf_symfile_read): Call it.
2055 2014-02-26 Tom Tromey <tromey@redhat.com>
2057 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2058 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2059 (lookup_minimal_symbol_solib_trampoline)
2060 (lookup_minimal_symbol_by_pc_section_1)
2061 (lookup_minimal_symbol_and_objfile): Update.
2062 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2063 Don't allocate a minimal symbol if minsyms have already been read.
2064 (build_minimal_symbol_hash_tables): Update.
2065 (install_minimal_symbols): Do nothing if minsyms already read.
2066 Use the per-BFD obstack.
2067 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2068 * objfiles.c (allocate_objfile): Call
2069 terminate_minimal_symbol_table later.
2070 (have_minimal_symbols): Update.
2071 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2072 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2073 Move from struct objfile.
2074 <minsyms_read>: New field.
2075 (struct objfile) <msymbols, minimal_symbol_count,
2076 msymbol_hash, msymbol_demangled_hash>: Move.
2077 (ALL_OBJFILE_MSYMBOLS): Update.
2078 * symfile.c (read_symbols): Set minsyms_read.
2079 (reread_symbols): Update.
2080 * symmisc.c (dump_objfile, dump_msymbols): Update.
2082 2014-02-26 Tom Tromey <tromey@redhat.com>
2084 * minsyms.c (msymbols_sort): Remove.
2085 * minsyms.h (msymbols_sort): Remove.
2086 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2087 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2088 * elfread.c (elf_symtab_read): Don't add section offsets.
2089 * xcoffread.c (record_minimal_symbol): Don't add section offset
2090 to minimal symbol address.
2091 * somread.c (text_offset, data_offset): Remove.
2092 (som_symtab_read): Don't add section offsets to minimal symbol
2094 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2095 Don't add section offsets to minimal symbols.
2096 * coffread.c (coff_symtab_read): Don't add section offsets
2097 to minimal symbol addresses.
2098 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2099 to minimal symbol addresses.
2100 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2101 section offset to minimal symbol addresses.
2102 * mdebugread.c (parse_partial_symbols): Don't add section
2103 offset to minimal symbol addresses.
2104 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2105 offset to minimal symbol addresses.
2107 2014-02-26 Tom Tromey <tromey@redhat.com>
2109 * ada-lang.c (ada_main_name): Update.
2110 (ada_add_standard_exceptions): Update.
2111 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2112 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2113 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2114 * auxv.c (ld_so_xfer_auxv): Update.
2115 * avr-tdep.c (avr_scan_prologue): Update.
2116 * ax-gdb.c (gen_var_ref): Update.
2117 * blockframe.c (get_pc_function_start)
2118 (find_pc_partial_function_gnu_ifunc): Update.
2119 * breakpoint.c (create_overlay_event_breakpoint)
2120 (create_longjmp_master_breakpoint)
2121 (create_std_terminate_master_breakpoint)
2122 (create_exception_master_breakpoint): Update.
2123 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2124 * c-valprint.c (c_val_print): Update.
2125 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2126 * common/agent.c (agent_look_up_symbols): Update.
2127 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2128 * dwarf2loc.c (call_site_to_target_addr): Update.
2129 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2130 * elfread.c (elf_gnu_ifunc_record_cache)
2131 (elf_gnu_ifunc_resolve_by_got): Update.
2132 * findvar.c (default_read_var_value): Update.
2133 * frame.c (inside_main_func): Update.
2134 * frv-tdep.c (frv_frame_this_id): Update.
2135 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2136 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2138 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2139 (hppa_hpux_find_dummy_bpaddr): Update.
2140 * hppa-tdep.c (hppa_symbol_address): Update.
2141 * infcmd.c (until_next_command): Update.
2142 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2144 * linespec.c (minsym_found, add_minsym): Update.
2145 * linux-nat.c (get_signo): Update.
2146 * linux-thread-db.c (inferior_has_bug): Update.
2147 * m32c-tdep.c (m32c_return_value)
2148 (m32c_m16c_address_to_pointer): Update.
2149 * m32r-tdep.c (m32r_frame_this_id): Update.
2150 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2151 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2152 * maint.c (maintenance_translate_address): Update.
2153 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2154 (frob_address): New function.
2155 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2156 frob_address. Rename parameter to "pc_in".
2157 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2159 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2161 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2162 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2163 * objc-lang.c (find_objc_msgsend): Update.
2164 * objfiles.c (objfile_relocate1): Update.
2165 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2166 * p-valprint.c (pascal_val_print): Update.
2167 * parse.c (write_exp_msymbol): Update.
2168 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2169 (ppc_elfv2_skip_entrypoint): Update.
2170 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2171 * printcmd.c (build_address_symbolic, msym_info)
2172 (address_info): Update.
2173 * proc-service.c (ps_pglobal_lookup): Update.
2174 * psymtab.c (find_pc_sect_psymtab_closer)
2175 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2176 Change msymbol parameter to bound_minimal_symbol.
2177 * ravenscar-thread.c (get_running_thread_id): Update.
2178 * remote.c (remote_check_symbols): Update.
2179 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2181 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2182 * solib-dsbt.c (lm_base): Update.
2183 * solib-frv.c (lm_base, main_got): Update.
2184 * solib-irix.c (locate_base): Update.
2185 * solib-som.c (som_solib_create_inferior_hook)
2186 (link_map_start): Update.
2187 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2188 * solib-svr4.c (elf_locate_base, enable_break): Update.
2189 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2190 (flush_ea_cache): Update.
2191 * stabsread.c (define_symbol, scan_file_globals): Update.
2192 * stack.c (find_frame_funname): Update.
2193 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2194 (debug_qf_find_pc_sect_symtab): Update.
2195 * symfile.c (simple_read_overlay_table)
2196 (simple_overlay_update): Update.
2197 * symfile.h (struct quick_symbol_functions)
2198 <find_pc_sect_symtab>: Change type of msymbol to
2199 bound_minimal_symbol.
2200 * symmisc.c (dump_msymbols): Update.
2201 * symtab.c (find_pc_sect_symtab_via_partial)
2202 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2203 (search_symbols, print_msymbol_info): Update.
2204 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2205 (MSYMBOL_VALUE_ADDRESS): Redefine.
2206 (BMSYMBOL_VALUE_ADDRESS): New macro.
2207 * tracepoint.c (scope_info): Update.
2208 * tui/tui-disasm.c (tui_find_disassembly_address)
2209 (tui_get_begin_asm_address): Update.
2210 * valops.c (find_function_in_inferior): Update.
2211 * value.c (value_static_field, value_fn_field): Update.
2213 2014-02-26 Tom Tromey <tromey@redhat.com>
2215 * ada-lang.c (ada_update_initial_language): Update.
2216 (ada_main_name, ada_has_this_exception_support): Update.
2217 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2218 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2219 * arm-tdep.c (arm_skip_stub): Update.
2220 * auxv.c (ld_so_xfer_auxv): Update.
2221 * avr-tdep.c (avr_scan_prologue): Update.
2222 * ax-gdb.c (gen_var_ref): Update.
2223 * breakpoint.c (struct breakpoint_objfile_data)
2224 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2225 type to bound_minimal_symbol.
2226 (create_overlay_event_breakpoint)
2227 (create_longjmp_master_breakpoint)
2228 (create_std_terminate_master_breakpoint)
2229 (create_exception_master_breakpoint): Update.
2230 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2231 * c-exp.y (classify_name): Update.
2232 * coffread.c (coff_symfile_read): Update.
2233 * common/agent.c (agent_look_up_symbols): Update.
2234 * d-lang.c (d_main_name): Update.
2235 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2236 * dec-thread.c (enable_dec_thread): Update.
2237 * dwarf2loc.c (call_site_to_target_addr): Update.
2238 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2239 * eval.c (evaluate_subexp_standard): Update.
2240 * findvar.c (struct minsym_lookup_data) <result>: Change type
2241 to bound_minimal_symbol.
2243 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2244 * frame.c (inside_main_func): Update.
2245 * frv-tdep.c (frv_frame_this_id): Update.
2246 * gcore.c (call_target_sbrk): Update.
2247 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2248 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2250 * go-lang.c (go_main_name): Update.
2251 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2252 (hppa_hpux_find_import_stub_for_addr): Update.
2253 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2254 Update. Change return type.
2255 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2257 * jit.c (jit_breakpoint_re_set_internal): Update.
2258 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2260 * linux-nat.c (get_signo): Update.
2261 * linux-thread-db.c (inferior_has_bug): Update
2262 * m32c-tdep.c (m32c_return_value)
2263 (m32c_m16c_address_to_pointer): Update.
2264 * m32r-tdep.c (m32r_frame_this_id): Update.
2265 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2266 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2267 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2268 lookup_minimal_symbol. Change return type.
2269 (lookup_minimal_symbol): Remove.
2270 (lookup_bound_minimal_symbol): Update.
2271 (lookup_minimal_symbol_text): Change return type.
2272 (lookup_minimal_symbol_solib_trampoline): Change return type.
2273 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2274 (lookup_minimal_symbol_solib_trampoline): Change return type.
2275 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2276 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2277 (value_nsstring, find_imps): Update.
2278 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2279 * p-lang.c (pascal_main_name): Update.
2280 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2281 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2282 * proc-service.c (ps_pglobal_lookup): Update.
2283 * ravenscar-thread.c (get_running_thread_msymbol): Change
2285 (has_ravenscar_runtime, get_running_thread_id): Update.
2286 * remote.c (remote_check_symbols): Update.
2287 * sol-thread.c (ps_pglobal_lookup): Update.
2288 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2289 * solib-dsbt.c (lm_base): Update.
2290 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2292 * solib-irix.c (locate_base): Update.
2293 * solib-som.c (som_solib_create_inferior_hook)
2294 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2296 * solib-spu.c (spu_enable_break): Update.
2297 * solib-svr4.c (elf_locate_base, enable_break): Update.
2298 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2299 (flush_ea_cache): Update.
2300 * stabsread.c (define_symbol): Update.
2301 * symfile.c (simple_read_overlay_table): Update.
2302 * symtab.c (find_pc_sect_line): Update.
2303 * tracepoint.c (scope_info): Update.
2304 * tui-disasm.c (tui_get_begin_asm_address): Update.
2305 * value.c (value_static_field): Update.
2307 2014-02-26 Tom Tromey <tromey@redhat.com>
2309 * minsyms.c (prim_record_minimal_symbol_full): Use
2310 SET_MSYMBOL_VALUE_ADDRESS.
2311 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2312 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2313 SET_MSYMBOL_VALUE_ADDRESS.
2314 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2315 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2317 2014-02-26 Tom Tromey <tromey@redhat.com>
2319 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2320 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2321 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2322 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2323 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2324 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2325 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2326 * ada-lang.c (ada_main_name): Update.
2327 (ada_lookup_simple_minsym): Update.
2328 (ada_make_symbol_completion_list): Update.
2329 (ada_add_standard_exceptions): Update.
2330 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2331 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2332 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2333 * arm-tdep.c (skip_prologue_function): Update.
2334 (arm_skip_stack_protector, arm_skip_stub): Update.
2335 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2336 (arm_wince_skip_main_prologue): Update.
2337 * auxv.c (ld_so_xfer_auxv): Update.
2338 * avr-tdep.c (avr_scan_prologue): Update.
2339 * ax-gdb.c (gen_var_ref): Update.
2340 * block.c (call_site_for_pc): Update.
2341 * blockframe.c (get_pc_function_start): Update.
2342 (find_pc_partial_function_gnu_ifunc): Update.
2343 * breakpoint.c (create_overlay_event_breakpoint): Update.
2344 (create_longjmp_master_breakpoint): Update.
2345 (create_std_terminate_master_breakpoint): Update.
2346 (create_exception_master_breakpoint): Update.
2347 (resolve_sal_pc): Update.
2348 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2349 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2351 * c-valprint.c (c_val_print): Update.
2352 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2353 * coffread.c (coff_symfile_read): Update.
2354 * common/agent.c (agent_look_up_symbols): Update.
2355 * dbxread.c (find_stab_function_addr): Update.
2356 (end_psymtab): Update.
2357 * dwarf2loc.c (call_site_to_target_addr): Update.
2358 (func_verify_no_selftailcall): Update.
2359 (tailcall_dump): Update.
2360 (call_site_find_chain_1): Update.
2361 (dwarf_expr_reg_to_entry_parameter): Update.
2362 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2363 (elf_gnu_ifunc_resolve_by_got): Update.
2364 * f-valprint.c (info_common_command): Update.
2365 * findvar.c (read_var_value): Update.
2366 * frame.c (get_prev_frame_1): Update.
2367 (inside_main_func): Update.
2368 * frv-tdep.c (frv_skip_main_prologue): Update.
2369 (frv_frame_this_id): Update.
2370 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2371 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2372 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2373 (gnuv3_skip_trampoline): Update.
2374 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2375 (hppa64_hpux_in_solib_call_trampoline): Update.
2376 (hppa_hpux_skip_trampoline_code): Update.
2377 (hppa64_hpux_search_dummy_call_sequence): Update.
2378 (hppa_hpux_find_import_stub_for_addr): Update.
2379 (hppa_hpux_find_dummy_bpaddr): Update.
2380 * hppa-tdep.c (hppa_symbol_address)
2381 (hppa_lookup_stub_minimal_symbol): Update.
2382 * i386-tdep.c (i386_skip_main_prologue): Update.
2383 (i386_pe_skip_trampoline_code): Update.
2384 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2385 * infcall.c (get_function_name): Update.
2386 * infcmd.c (until_next_command): Update.
2387 * jit.c (jit_breakpoint_re_set_internal): Update.
2388 (jit_inferior_init): Update.
2389 * linespec.c (minsym_found): Update.
2390 (add_minsym): Update.
2391 * linux-fork.c (info_checkpoints_command): Update.
2392 * linux-nat.c (get_signo): Update.
2393 * linux-thread-db.c (inferior_has_bug): Update.
2394 * m32c-tdep.c (m32c_return_value): Update.
2395 (m32c_m16c_address_to_pointer): Update.
2396 (m32c_m16c_pointer_to_address): Update.
2397 * m32r-tdep.c (m32r_frame_this_id): Update.
2398 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2399 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2400 * maint.c (maintenance_translate_address): Update.
2401 * minsyms.c (add_minsym_to_hash_table): Update.
2402 (add_minsym_to_demangled_hash_table): Update.
2403 (msymbol_objfile): Update.
2404 (lookup_minimal_symbol): Update.
2405 (iterate_over_minimal_symbols): Update.
2406 (lookup_minimal_symbol_text): Update.
2407 (lookup_minimal_symbol_by_pc_name): Update.
2408 (lookup_minimal_symbol_solib_trampoline): Update.
2409 (lookup_minimal_symbol_by_pc_section_1): Update.
2410 (lookup_minimal_symbol_and_objfile): Update.
2411 (prim_record_minimal_symbol_full): Update.
2412 (compare_minimal_symbols): Update.
2413 (compact_minimal_symbols): Update.
2414 (build_minimal_symbol_hash_tables): Update.
2415 (install_minimal_symbols): Update.
2416 (terminate_minimal_symbol_table): Update.
2417 (find_solib_trampoline_target): Update.
2418 (minimal_symbol_upper_bound): Update.
2419 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2420 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2421 (mips_skip_pic_trampoline_code): Update.
2422 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2423 * objc-lang.c (selectors_info): Update.
2424 (classes_info): Update.
2425 (find_methods): Update.
2426 (find_imps): Update.
2427 (find_objc_msgsend): Update.
2428 * objfiles.c (objfile_relocate1): Update.
2429 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2430 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2431 * p-valprint.c (pascal_val_print): Update.
2432 * parse.c (write_exp_msymbol): Update.
2433 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2434 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2435 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2436 * printcmd.c (build_address_symbolic): Update.
2438 (address_info): Update.
2439 * proc-service.c (ps_pglobal_lookup): Update.
2440 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2441 (find_pc_sect_psymtab): Update.
2442 * python/py-framefilter.c (py_print_frame): Update.
2443 * ravenscar-thread.c (get_running_thread_id): Update.
2444 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2446 * remote.c (remote_check_symbols): Update.
2447 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2448 (rs6000_skip_trampoline_code): Update.
2449 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2450 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2451 * solib-dsbt.c (lm_base): Update.
2452 * solib-frv.c (lm_base): Update.
2454 * solib-irix.c (locate_base): Update.
2455 * solib-som.c (som_solib_create_inferior_hook): Update.
2456 (som_solib_desire_dynamic_linker_symbols): Update.
2457 (link_map_start): Update.
2458 * solib-spu.c (spu_enable_break): Update.
2459 (ocl_enable_break): Update.
2460 * solib-svr4.c (elf_locate_base): Update.
2461 (enable_break): Update.
2462 * spu-tdep.c (spu_get_overlay_table): Update.
2463 (spu_catch_start): Update.
2464 (flush_ea_cache): Update.
2465 * stabsread.c (define_symbol): Update.
2466 (scan_file_globals): Update.
2467 * stack.c (find_frame_funname): Update.
2468 (frame_info): Update.
2469 * symfile.c (simple_read_overlay_table): Update.
2470 (simple_overlay_update): Update.
2471 * symmisc.c (dump_msymbols): Update.
2472 * symtab.c (fixup_section): Update.
2473 (find_pc_sect_line): Update.
2474 (skip_prologue_sal): Update.
2475 (search_symbols): Update.
2476 (print_msymbol_info): Update.
2477 (rbreak_command): Update.
2478 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2479 (completion_list_objc_symbol): Update.
2480 (default_make_symbol_completion_list_break_on): Update.
2481 * tracepoint.c (scope_info): Update.
2482 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2483 (tui_get_begin_asm_address): Update.
2484 * valops.c (find_function_in_inferior): Update.
2485 * value.c (value_static_field): Update.
2486 (value_fn_field): Update.
2488 2014-02-26 Tom Tromey <tromey@redhat.com>
2490 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2491 bound minimal symbols. Move code that knows about minsym
2493 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2495 * minsyms.h (minimal_symbol_upper_bound): Declare.
2496 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2497 minimal_symbol_upper_bound.
2499 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2501 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2502 Use the type's name if its basic type does not have a tag.
2504 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2506 * dwarf2read.c (read_subrange_type): Add comment.
2508 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2510 * dwarf2read.c (update_enumeration_type_from_children): New
2511 function, mostly extracted from process_structure_scope.
2512 (read_enumeration_type): Call update_enumeration_type_from_children.
2513 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2514 and flag_flag_enum fields.
2516 2014-02-26 Pedro Alves <palves@redhat.com>
2518 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2519 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2520 to_xfer_partial method.
2522 2014-02-26 Pedro Alves <palves@redhat.com>
2524 * target.c (complete_target_initialization): Don't install
2525 default_xfer_partial as to_xfer_partial hook.
2527 (update_current_target): Don't INHERIT nor de_fault
2528 deprecated_xfer_memory. Delete de_fault macro.
2529 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2530 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2531 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2534 2014-02-26 Pedro Alves <palves@redhat.com>
2536 * go32-nat.c (my_write_child): New function.
2537 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2538 (go32_xfer_partial): New function.
2539 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2540 Instead install a to_xfer_partial hook.
2542 2014-02-26 Pedro Alves <palves@redhat.com>
2544 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2545 to_xfer_partial helper. Rewrite.
2546 (procfs_xfer_partial): New function.
2547 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2548 Install a to_xfer_partial hook.
2550 2014-02-26 Pedro Alves <palves@redhat.com>
2552 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2553 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2554 (m32r_xfer_partial): New function.
2555 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2556 Install a to_xfer_partial hook.
2558 2014-02-26 Pedro Alves <palves@redhat.com>
2560 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2562 (mips_xfer_partial): New function.
2563 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2564 hook. Install a to_xfer_partial hook.
2566 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2568 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2569 * gdbtypes.c (create_array_type_with_stride): New function,
2570 renaming create_array_type, but with an added parameter
2571 called "bit_stride".
2572 (create_array_type): Re-implement using
2573 create_array_type_with_stride.
2574 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2575 and DW_AT_bit_stride attributes.
2577 2014-02-26 Pedro Alves <palves@redhat.com>
2579 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2580 task-specific breakpoints.
2582 2014-02-25 Pedro Alves <palves@redhat.com>
2584 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2585 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2587 2014-02-25 Stan Shebs <stan@codesourcery.com>
2589 * defs.h: Annotate comments for Doxygen.
2591 2014-02-25 Tom Tromey <tromey@redhat.com>
2593 * target.h (target_ignore): Don't declare.
2594 * target.c (target_ignore): Remove.
2596 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2599 * auto-load.c (auto_load_objfile_script_1): Change filename to
2602 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2604 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2605 documentation. Adjust prototype to match the target_ops
2606 to_xfer_partial method. Adjust implementation accordingly.
2608 2014-02-25 Hui Zhu <hui@codesourcery.com>
2610 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2613 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2615 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2616 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2617 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2618 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2619 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2620 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2621 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2622 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2624 (rl78_register_type): Use a data pointer type for SP and
2625 new pseudo registers mentioned above. Use a 16 bit integer
2626 type for all other register pairs.
2627 (rl78_register_name, rl78_g10_register_name): Update for
2628 new pseudo registers.
2629 (rl78_pseudo_register_read): Likewise.
2630 (rl78_pseudo_register_write): Likewise.
2631 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2632 to the newly added pseudo registers.
2634 2014-02-24 Doug Evans <dje@google.com>
2636 * value.c (record_latest_value): Fix comment.
2637 * printcmd.c (print_command_1): Remove code to handle -1 return from
2638 record_latest_value.
2640 2014-02-24 Pedro Alves <palves@redhat.com>
2642 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2643 deprecated_xfer_memory hook.
2644 (procfs_xfer_partial): Call procfs_xfer_memory instead
2645 of the deprecated_xfer_memory target hook.
2646 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2649 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2651 * windows-nat.c (windows_xfer_shared_libraries): Return
2652 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2653 requested object is TARGET_OBJECT_LIBRARIES.
2655 2014-02-24 Yao Qi <yao@codesourcery.com>
2657 * target.h (enum target_xfer_status)
2658 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2659 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2661 * corefile.c (memory_error_message): User updated.
2662 * exec.c (section_table_read_available_memory): Likewise.
2663 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2664 * target.c (target_xfer_status_to_string): Likewise.
2665 (raw_memory_xfer_partial): Likewise.
2666 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2667 * valops.c (read_value_memory): Likewise.
2668 * exec.h: Update comments.
2670 2014-02-24 Yao Qi <yao@codesourcery.com>
2672 * target.c (target_xfer_status_to_string): Rename argument err
2674 * target.h (target_xfer_status_to_string): Update declaration.
2675 Replace target_xfer_error_to_string with
2676 target_xfer_status_to_string in comment.
2678 2014-02-24 Yao Qi <yao@codesourcery.com>
2680 * mips-linux-nat.c (super_close): Update its type.
2681 (mips_linux_close): Pass 'self' to super_close.
2683 2014-02-24 Yao Qi <yao@codesourcery.com>
2685 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2686 * corefile.c (read_memory): Adjusted.
2687 * target.c (target_write_with_progress): Adjusted.
2689 2014-02-23 Yao Qi <yao@codesourcery.com>
2693 2013-10-25 Yao Qi <yao@codesourcery.com>
2695 * remote.c (remote_traceframe_info): Return early if
2696 traceframe is not selected.
2698 2013-07-19 Yao Qi <yao@codesourcery.com>
2700 * target.c (update_current_target): Change the default action
2701 of 'to_traceframe_info' from tcomplain to return_zero.
2702 * target.h (struct target_ops) <to_traceframe_info>: Add more
2705 2014-02-23 Yao Qi <yao@codesourcery.com>
2707 * valops.c (read_value_memory): Rewrite it. Call
2708 target_xfer_partial in a loop.
2709 * exec.h (section_table_available_memory): Remove declaration.
2710 Move comments to ...
2711 * exec.c (section_table_available_memory): ... here. Make it
2714 2014-02-23 Yao Qi <yao@codesourcery.com>
2716 * exec.c (section_table_read_available_memory): New function.
2717 * exec.h (section_table_read_available_memory): Declare.
2718 * ctf.c (ctf_xfer_partial): Call
2719 section_table_read_available_memory.
2720 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2722 2014-02-23 Yao Qi <yao@codesourcery.com>
2724 * ctf.c (ctf_xfer_partial): Move code to ...
2725 * exec.c (exec_read_partial_read_only): ... it. New function.
2726 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2727 * tracefile.c: Include "exec.h".
2728 * exec.h (exec_read_partial_read_only): Declare.
2730 2014-02-23 Yao Qi <yao@codesourcery.com>
2732 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2733 (tfile_has_memory): Remove.
2734 (init_tfile_ops): Don't set fields to_has_all_memory and
2735 to_has_memory of tfile_ops.
2736 * tracefile.c (tracefile_has_all_memory): New function.
2737 (tracefile_has_memory): New function.
2738 (init_tracefile_ops): Initialize fields to_has_all_memory and
2739 to_has_memory of 'ops'.
2741 2014-02-23 Yao Qi <yao@codesourcery.com>
2743 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2744 (ctf_thread_alive, ctf_get_trace_status): Remove.
2745 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2747 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2748 (tfile_has_stack, tfile_has_registers): Remove.
2749 (tfile_thread_alive): Remove.
2750 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2752 * tracefile.c (tracefile_has_stack): New function.
2753 (tracefile_has_registers): New function.
2754 (tracefile_thread_alive): New function.
2755 (tracefile_get_trace_status): New function.
2756 (init_tracefile_ops): New function.
2757 * tracefile.h (init_tracefile_ops): Declare.
2759 2014-02-23 Yao Qi <yao@codesourcery.com>
2761 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2762 (O_LARGEFILE): Likewise.
2763 (tfile_ops): Likewise.
2764 (TRACE_HEADER_SIZE): Likewise.
2765 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2766 (cur_data_size): Likewise.
2767 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2768 (tfile_close, tfile_files_info): Likewise.
2769 (tfile_get_trace_status): Likewise.
2770 (tfile_get_tracepoint_status): Likewise.
2771 (tfile_get_traceframe_address): Likewise.
2772 (tfile_trace_find, match_blocktype): Likewise.
2773 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2774 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2775 (tfile_get_trace_state_variable_value): Likewise.
2776 (tfile_has_all_memory, tfile_has_memory): Likewise.
2777 (tfile_has_stack, tfile_has_registers): Likewise.
2778 (tfile_thread_alive, build_traceframe_info): Likewise.
2779 (tfile_traceframe_info, init_tfile_ops): Likewise.
2780 (_initialize_tracepoint): Don't call init_tfile_ops
2781 and add_target_with_completer.
2782 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2783 exec.h, completer.h and filenames.h.
2784 (_initialize_tracefile_tfile): New function.
2786 2014-02-23 Yao Qi <yao@codesourcery.com>
2788 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2790 (HFILES_NO_SRCDIR): Add tracefile.h.
2791 * ctf.c: Include "tracefile.h".
2792 * tracefile.h: New file.
2793 * tracefile.c: New file
2794 * tracefile-tfile.c: New file.
2795 * tracepoint.c: Include "tracefile.h".
2796 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2797 (stop_reason_names): Add const.
2798 (trace_file_writer_xfree): Move it to tracefile.c.
2799 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2800 (trace_save_ctf): Likewise.
2801 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2802 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2803 (tfile_write_header, tfile_write_regblock_type): Likewise.
2804 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2805 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2806 (tfile_write_raw_data, tfile_end): Likewise.
2807 (tfile_trace_file_writer_new): Likewise.
2808 (free_uploaded_tp): Make it extern.
2809 (free_uploaded_tsv): Make it extern.
2810 (_initialize_tracepoint): Move code to register command 'tsave'
2812 * tracepoint.h (stop_reason_names): Declare.
2813 (struct trace_frame_write_ops): Move it to tracefile.h.
2814 (struct trace_file_write_ops): Likewise.
2815 (struct trace_file_writer): Likewise.
2816 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2818 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2821 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2823 (get_cores_used_by_process): New parameter num_cores, use it.
2824 (linux_xfer_osdata_processes): Pass num_cores to it.
2825 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2828 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2830 * target.c (memory_xfer_partial): Fix length arg in call to
2831 breakpoint_xfer_memory.
2833 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2836 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2837 number comes after the + or - signs. Adjust length of register
2838 name to be extracted.
2840 2014-02-20 Tom Tromey <tromey@redhat.com>
2842 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2843 (ada_varobj_ops): Mark "extern".
2845 2014-02-20 Tom Tromey <tromey@redhat.com>
2847 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2849 2014-02-20 Doug Evans <xdje42@gmail.com>
2851 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2852 All callers updated.
2853 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2854 All callers updated.
2855 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2856 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2858 2014-02-20 lin zuojian <manjian2006@gmail.com>
2859 Joel Brobecker <brobecker@adacore.com>
2860 Doug Evans <xdje42@gmail.com>
2863 * dwarf2read.c (struct die_info): New member in_process.
2864 (reset_die_in_process): New function.
2865 (process_die): Set it at the start, reset when returning.
2866 (inherit_abstract_dies): Only call process_die if origin_child_die
2867 not already being processed.
2869 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2871 * windows-nat.c (handle_unload_dll): Add function documentation.
2872 (do_initial_windows_stuff): Add comment explaining why we wait
2873 until after inferior initialization has finished before
2874 processing all DLLs.
2876 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2878 * windows-nat.c (get_module_name): Delete.
2879 (windows_get_exec_module_filename): New function, mostly
2880 inspired from get_module_name.
2881 (windows_pid_to_exec_file): Replace call to get_module_name
2882 by call to windows_get_exec_module_filename.
2884 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2886 * windows-nat.c (handle_load_dll): Rewrite this function's
2887 introductory comment. Remove code using get_module_name
2888 to get the DLL's name.
2890 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2892 * windows-nat.c (get_windows_debug_event): Ignore
2893 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2894 if windows_initialization_done == 0.
2895 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2896 Adjust implementation to always load all DLLs.
2897 (do_initial_windows_stuff): Replace call to
2898 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2900 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2902 * windows-nat.c (_initialize_windows_nat): Deprecate the
2903 "dll-symbols" command. Turn the "add-shared-symbol-files"
2904 and "assf" aliases into commands, and deprecate them as well.
2905 * NEWS: Add entry explaining that "dll-symbols" and its two
2906 aliases are now deprecated.
2908 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2910 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2911 new-line in debug string. Remove trailing spaces.
2913 2014-02-19 Stan Shebs <stan@codesourcery.com>
2915 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2917 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2919 * NEWS: Add entry for the new feature
2920 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2923 2014-02-19 Stan Shebs <stan@codesourcery.com>
2925 * MAINTAINERS: List Yao Qi as nios2 maintainer.
2927 2014-02-19 Pedro Alves <palves@redhat.com>
2929 * common/ptid.h (struct ptid): Mention that process_stratum
2930 targets should prefer ptid.lwp.
2932 2014-02-19 Pedro Alves <palves@redhat.com>
2934 * remote.c (remote_thread_alive, write_ptid, read_ptid)
2935 (read_ptid, remote_newthread_step, remote_threads_extra_info)
2936 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
2937 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
2938 store remote thread ids rather than ptid.tid.
2939 (_initialize_remote): Adjust.
2941 2014-02-19 Tom Tromey <tromey@redhat.com>
2943 * target.c (target_get_unwinder): Rewrite.
2944 (target_get_tailcall_unwinder): Rewrite.
2945 * record-btrace.c (record_btrace_to_get_unwinder): New function.
2946 (record_btrace_to_get_tailcall_unwinder): New function.
2947 (init_record_btrace_ops): Update.
2948 * target.h (struct target_ops) <to_get_unwinder,
2949 to_get_tailcall_unwinder>: Now function pointers. Use
2950 TARGET_DEFAULT_RETURN.
2952 2014-02-19 Tom Tromey <tromey@redhat.com>
2954 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
2956 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
2958 2014-02-19 Tom Tromey <tromey@redhat.com>
2960 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
2962 * target-delegates.c: Rebuild.
2963 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
2964 TARGET_DEFAULT_FUNC.
2965 * target.c (default_target_decr_pc_after_break): Rename from
2966 forward_target_decr_pc_after_break. Simplify.
2967 (target_decr_pc_after_break): Rely on delegation.
2969 2014-02-19 Tom Tromey <tromey@redhat.com>
2971 * target.c (update_current_target): Do not INHERIT to_doc or
2972 to_magic. Do not de_fault to_open or to_close.
2974 2014-02-19 Tom Tromey <tromey@redhat.com>
2976 * gcore.h (objfile_find_memory_regions): Declare.
2977 * gcore.c (objfile_find_memory_regions): No longer static. Add
2979 (_initialize_gcore): Don't call exec_set_find_memory_regions.
2980 * exec.c: Include gcore.h.
2981 (exec_set_find_memory_regions): Remove.
2982 (exec_find_memory_regions): Remove.
2983 (exec_do_find_memory_regions): Remove.
2984 (init_exec_ops): Update.
2985 * defs.h (exec_set_find_memory_regions): Remove.
2987 2014-02-19 Tom Tromey <tromey@redhat.com>
2989 * target-delegates.c: Rebuild.
2990 * target.h (struct target_ops) <to_extra_thread_info,
2991 to_thread_name, to_pid_to_exec_file, to_get_section_table,
2992 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
2993 not 0, in TARGET_DEFAULT_RETURN.
2995 2014-02-19 Tom Tromey <tromey@redhat.com>
2997 * target.c (complete_target_initialization): Remove casts. Use
2998 return_zero_has_execution.
2999 (return_zero): Add "ignore" argument.
3000 (return_zero_has_execution): New function.
3001 (init_dummy_target): Remove casts. Use
3002 return_zero_has_execution.
3004 2014-02-19 Tom Tromey <tromey@redhat.com>
3006 * target.c (update_current_target): Update comments. Do not
3009 2014-02-19 Tom Tromey <tromey@redhat.com>
3011 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3013 * corelow.c (core_read_description): Delegate when needed.
3014 * remote.c (remote_read_description): Delegate when needed.
3015 * target-delegates.c: Rebuild.
3016 * target.c (target_read_description): Rewrite.
3017 * target.h (struct target_ops) <to_read_description>: Update
3018 comment. Use TARGET_DEFAULT_RETURN.
3020 2014-02-19 Tom Tromey <tromey@redhat.com>
3022 * target-delegates.c: Rebuild.
3023 * target.c (update_current_target): Don't inherit or default
3025 (find_default_run_target): Check against delegate_can_run.
3026 * target.h (struct target_ops) <to_can_run>: Use
3027 TARGET_DEFAULT_RETURN.
3029 2014-02-19 Tom Tromey <tromey@redhat.com>
3031 * target-delegates.c: Rebuild.
3032 * target.c (target_disconnect): Unconditionally delegate.
3033 * target.h (struct target_ops) <to_disconnect>: Use
3034 TARGET_DEFAULT_NORETURN.
3036 2014-02-19 Tom Tromey <tromey@redhat.com>
3038 * record.c (record_stop): Unconditionally delegate.
3039 * target-delegates.c: Rebuild.
3040 * target.c (target_stop_recording): Unconditionally delegate.
3041 * target.h (struct target_ops) <to_stop_recording>: Use
3042 TARGET_DEFAULT_IGNORE.
3044 2014-02-19 Tom Tromey <tromey@redhat.com>
3046 * target-delegates.c: Rebuild.
3047 * target.c (target_enable_btrace): Unconditionally delegate.
3048 * target.h (struct target_ops) <to_enable_btrace>: Use
3049 TARGET_DEFAULT_NORETURN.
3051 2014-02-19 Tom Tromey <tromey@redhat.com>
3053 * target-delegates.c: Rebuild.
3054 * target.c (target_read_btrace): Unconditionally delegate.
3055 * target.h (struct target_ops) <to_read_btrace>: Use
3056 TARGET_DEFAULT_NORETURN.
3058 2014-02-19 Tom Tromey <tromey@redhat.com>
3060 * target-delegates.c: Rebuild.
3061 * target.c (target_teardown_btrace): Unconditionally delegate.
3062 * target.h (struct target_ops) <to_teardown_btrace>: Use
3063 TARGET_DEFAULT_NORETURN.
3065 2014-02-19 Tom Tromey <tromey@redhat.com>
3067 * target-delegates.c: Rebuild.
3068 * target.c (target_disable_btrace): Unconditionally delegate.
3069 * target.h (struct target_ops) <to_disable_btrace>: Use
3070 TARGET_DEFAULT_NORETURN.
3072 2014-02-19 Tom Tromey <tromey@redhat.com>
3074 * target-delegates.c: Rebuild.
3075 * target.c (default_search_memory): New function.
3076 (simple_search_memory): Update comment.
3077 (target_search_memory): Unconditionally delegate.
3078 * target.h (struct target_ops) <to_search_memory>: Use
3079 TARGET_DEFAULT_FUNC.
3081 2014-02-19 Tom Tromey <tromey@redhat.com>
3083 * auxv.c (default_auxv_parse): No longer static.
3084 (target_auxv_parse): Unconditionally delegate.
3085 * auxv.h (default_auxv_parse): Declare.
3086 * target-delegates.c: Rebuild.
3087 * target.c: Include auxv.h.
3088 * target.h (struct target_ops) <to_auxv_parse>: Use
3089 TARGET_DEFAULT_FUNC.
3091 2014-02-19 Tom Tromey <tromey@redhat.com>
3093 * target-delegates.c: Rebuild.
3094 * target.c (target_memory_map): Unconditionally delegate.
3095 * target.h (struct target_ops) <to_memory_map>: Use
3096 TARGET_DEFAULT_RETURN.
3098 2014-02-19 Tom Tromey <tromey@redhat.com>
3100 * target-delegates.c: Rebuild.
3101 * target.c (target_thread_alive): Unconditionally delegate.
3102 * target.h (struct target_ops) <to_thread_alive>: Use
3103 TARGET_DEFAULT_RETURN.
3105 2014-02-19 Tom Tromey <tromey@redhat.com>
3107 * target-delegates.c: Rebuild.
3108 * target.c (target_save_record): Unconditionally delegate.
3109 * target.h (struct target_ops) <to_save_record>: Use
3110 TARGET_DEFAULT_NORETURN.
3112 2014-02-19 Tom Tromey <tromey@redhat.com>
3114 * target-delegates.c: Rebuild.
3115 * target.c (target_delete_record): Unconditionally delegate.
3116 * target.h (struct target_ops) <to_delete_record>: Use
3117 TARGET_DEFAULT_NORETURN.
3119 2014-02-19 Tom Tromey <tromey@redhat.com>
3121 * target-delegates.c: Rebuild.
3122 * target.c (target_record_is_replaying): Unconditionally
3124 * target.h (struct target_ops) <to_record_is_replaying>: Use
3125 TARGET_DEFAULT_RETURN.
3127 2014-02-19 Tom Tromey <tromey@redhat.com>
3129 * target-delegates.c: Rebuild.
3130 * target.c (target_goto_record_begin): Unconditionally delegate.
3131 * target.h (struct target_ops) <to_goto_record_begin>: Use
3132 TARGET_DEFAULT_NORETURN.
3134 2014-02-19 Tom Tromey <tromey@redhat.com>
3136 * target-delegates.c: Rebuild.
3137 * target.c (target_goto_record_end): Unconditionally delegate.
3138 * target.h (struct target_ops) <to_goto_record_end>: Use
3139 TARGET_DEFAULT_NORETURN.
3141 2014-02-19 Tom Tromey <tromey@redhat.com>
3143 * target-delegates.c: Rebuild.
3144 * target.c (target_goto_record): Unconditionally delegate.
3145 * target.h (struct target_ops) <to_goto_record>: Use
3146 TARGET_DEFAULT_NORETURN.
3148 2014-02-19 Tom Tromey <tromey@redhat.com>
3150 * target-delegates.c: Rebuild.
3151 * target.c (target_insn_history): Unconditionally delegate.
3152 * target.h (struct target_ops) <to_insn_history>: Use
3153 TARGET_DEFAULT_NORETURN.
3155 2014-02-19 Tom Tromey <tromey@redhat.com>
3157 * target-delegates.c: Rebuild.
3158 * target.c (target_insn_history_from): Unconditionally delegate.
3159 * target.h (struct target_ops) <to_insn_history_from>: Use
3160 TARGET_DEFAULT_NORETURN.
3162 2014-02-19 Tom Tromey <tromey@redhat.com>
3164 * target-delegates.c: Rebuild.
3165 * target.c (target_insn_history_range): Unconditionally delegate.
3166 * target.h (struct target_ops) <to_insn_history_range>: Use
3167 TARGET_DEFAULT_NORETURN.
3169 2014-02-19 Tom Tromey <tromey@redhat.com>
3171 * target-delegates.c: Rebuild.
3172 * target.c (target_call_history): Unconditionally delegate.
3173 * target.h (struct target_ops) <to_call_history>: Use
3174 TARGET_DEFAULT_NORETURN.
3176 2014-02-19 Tom Tromey <tromey@redhat.com>
3178 * target-delegates.c: Rebuild.
3179 * target.c (target_call_history_from): Unconditionally delegate.
3180 * target.h (struct target_ops) <to_call_history_from>: Use
3181 TARGET_DEFAULT_NORETURN.
3183 2014-02-19 Tom Tromey <tromey@redhat.com>
3185 * target-delegates.c: Rebuild.
3186 * target.c (target_call_history_range): Unconditionally delegate.
3187 * target.h (struct target_ops) <to_call_history_range>: Use
3188 TARGET_DEFAULT_NORETURN.
3190 2014-02-19 Tom Tromey <tromey@redhat.com>
3192 * target-delegates.c: Rebuild.
3193 * target.c (target_verify_memory): Unconditionally delegate.
3194 * target.h (struct target_ops) <to_verify_memory>: Use
3195 TARGET_DEFAULT_NORETURN.
3197 2014-02-19 Tom Tromey <tromey@redhat.com>
3199 * target-delegates.c: Rebuild.
3200 * target.c (target_core_of_thread): Unconditionally delegate.
3201 * target.h (struct target_ops) <to_core_of_thread>: Use
3202 TARGET_DEFAULT_RETURN.
3204 2014-02-19 Tom Tromey <tromey@redhat.com>
3206 * target-delegates.c: Rebuild.
3207 * target.c (target_flash_done): Unconditionally delegate.
3208 * target.h (struct target_ops) <to_flash_done>: Use
3209 TARGET_DEFAULT_NORETURN.
3211 2014-02-19 Tom Tromey <tromey@redhat.com>
3213 * target-delegates.c: Rebuild.
3214 * target.c (target_flash_erase): Unconditionally delegate.
3215 * target.h (struct target_ops) <to_flash_erase>: Use
3216 TARGET_DEFAULT_NORETURN.
3218 2014-02-19 Tom Tromey <tromey@redhat.com>
3220 * target-delegates.c: Rebuild.
3221 * target.c (target_get_section_table): Unconditionally delegate.
3222 * target.h (struct target_ops) <to_get_section_table>: Use
3223 TARGET_DEFAULT_RETURN.
3225 2014-02-19 Tom Tromey <tromey@redhat.com>
3227 * target-delegates.c: Rebuild.
3228 * target.c (target_pid_to_str): Unconditionally delegate.
3229 (init_dummy_target): Don't initialize to_pid_to_str.
3230 (default_pid_to_str): Rename from dummy_pid_to_str.
3231 * target.h (struct target_ops) <to_pid_to_str>: Use
3232 TARGET_DEFAULT_FUNC.
3234 2014-02-19 Tom Tromey <tromey@redhat.com>
3236 * target-delegates.c: Rebuild.
3237 * target.c (target_find_new_threads): Unconditionally delegate.
3238 * target.h (struct target_ops) <to_find_new_threads>: Use
3239 TARGET_DEFAULT_RETURN.
3241 2014-02-19 Tom Tromey <tromey@redhat.com>
3243 * target-delegates.c: Rebuild.
3244 * target.c (target_program_signals): Unconditionally delegate.
3245 * target.h (struct target_ops) <to_program_signals>: Use
3246 TARGET_DEFAULT_IGNORE.
3248 2014-02-19 Tom Tromey <tromey@redhat.com>
3250 * target-delegates.c: Rebuild.
3251 * target.c (target_pass_signals): Unconditionally delegate.
3252 * target.h (struct target_ops) <to_pass_signals>: Use
3253 TARGET_DEFAULT_IGNORE.
3255 2014-02-19 Tom Tromey <tromey@redhat.com>
3257 * target-delegates.c: Rebuild.
3258 * target.c (default_mourn_inferior): New function.
3259 (target_mourn_inferior): Unconditionally delegate.
3260 * target.h (struct target_ops) <to_mourn_inferior>: Use
3261 TARGET_DEFAULT_FUNC.
3263 2014-02-19 Tom Tromey <tromey@redhat.com>
3265 * target-delegates.c: Rebuild.
3266 * target.c (default_follow_fork): New function.
3267 (target_follow_fork): Unconditionally delegate.
3268 * target.h (struct target_ops) <to_follow_fork>: Use
3269 TARGET_DEFAULT_FUNC.
3271 2014-02-19 Tom Tromey <tromey@redhat.com>
3273 * target-delegates.c: Rebuild.
3274 * target.c (target_kill): Unconditionally delegate.
3275 * target.h (struct target_ops) <to_kill>: Use
3276 TARGET_DEFAULT_NORETURN.
3278 2014-02-19 Tom Tromey <tromey@redhat.com>
3280 * target-delegates.c: Rebuild.
3281 * target.c (target_masked_watch_num_registers): Unconditionally
3283 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3284 Use TARGET_DEFAULT_RETURN.
3286 2014-02-19 Tom Tromey <tromey@redhat.com>
3288 * target-delegates.c: Rebuild.
3289 * target.c (target_remove_mask_watchpoint): Unconditionally
3291 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3292 TARGET_DEFAULT_RETURN.
3294 2014-02-19 Tom Tromey <tromey@redhat.com>
3296 * target-delegates.c: Rebuild.
3297 * target.c (target_insert_mask_watchpoint): Unconditionally
3299 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3300 TARGET_DEFAULT_RETURN.
3302 2014-02-19 Tom Tromey <tromey@redhat.com>
3304 * target-delegates.c: Rebuild.
3305 * target.c (target_ranged_break_num_registers): Unconditionally
3307 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3308 Use TARGET_DEFAULT_RETURN.
3310 2014-02-19 Tom Tromey <tromey@redhat.com>
3312 * target-delegates.c: Rebuild.
3313 * target.c (target_fetch_registers): Unconditionally delegate.
3314 * target.h (struct target_ops) <to_fetch_registers>: Use
3315 TARGET_DEFAULT_NORETURN.
3317 2014-02-19 Tom Tromey <tromey@redhat.com>
3319 * target-delegates.c: Rebuild.
3320 * target.c (update_current_target): Don't inherit or default
3322 * target.h (struct target_ops) <to_stop>: Use
3323 TARGET_DEFAULT_IGNORE.
3325 2014-02-19 Tom Tromey <tromey@redhat.com>
3327 * target-delegates.c: Rebuild.
3328 * target.c (update_current_target): Don't inherit or default
3329 to_can_run_breakpoint_commands.
3330 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3331 Use TARGET_DEFAULT_RETURN.
3333 2014-02-19 Tom Tromey <tromey@redhat.com>
3335 * target-delegates.c: Rebuild.
3336 * target.c (update_current_target): Don't inherit or default
3337 to_supports_evaluation_of_breakpoint_conditions.
3338 * target.h (struct target_ops)
3339 <to_supports_evaluation_of_breakpoint_conditions>: Use
3340 TARGET_DEFAULT_RETURN.
3342 2014-02-19 Tom Tromey <tromey@redhat.com>
3344 * target-delegates.c: Rebuild.
3345 * target.c (update_current_target): Don't inherit or default
3346 to_augmented_libraries_svr4_read.
3347 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3348 Use TARGET_DEFAULT_RETURN.
3350 2014-02-19 Tom Tromey <tromey@redhat.com>
3352 * target-delegates.c: Rebuild.
3353 * target.c (update_current_target): Don't inherit or default
3355 * target.h (struct target_ops) <to_can_use_agent>: Use
3356 TARGET_DEFAULT_RETURN.
3358 2014-02-19 Tom Tromey <tromey@redhat.com>
3360 * target-delegates.c: Rebuild.
3361 * target.c (update_current_target): Don't inherit or default
3363 * target.h (struct target_ops) <to_use_agent>: Use
3364 TARGET_DEFAULT_NORETURN.
3366 2014-02-19 Tom Tromey <tromey@redhat.com>
3368 * target-delegates.c: Rebuild.
3369 * target.c (update_current_target): Don't inherit or default
3371 (return_null): Remove.
3372 * target.h (struct target_ops) <to_traceframe_info>: Use
3373 TARGET_DEFAULT_RETURN.
3375 2014-02-19 Tom Tromey <tromey@redhat.com>
3377 * target-delegates.c: Rebuild.
3378 * target.c (update_current_target): Don't inherit or default
3379 to_static_tracepoint_markers_by_strid.
3380 * target.h (struct target_ops)
3381 <to_static_tracepoint_markers_by_strid>: 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_static_tracepoint_marker_at.
3389 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3390 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) <to_set_permissions>: Use
3398 TARGET_DEFAULT_IGNORE.
3400 2014-02-19 Tom Tromey <tromey@redhat.com>
3402 * target-delegates.c: Rebuild.
3403 * target.c (update_current_target): Don't inherit or default
3405 * target.h (struct target_ops) <to_get_tib_address>: Use
3406 TARGET_DEFAULT_NORETURN.
3408 2014-02-19 Tom Tromey <tromey@redhat.com>
3410 * target-delegates.c: Rebuild.
3411 * target.c (update_current_target): Don't inherit or default
3413 * target.h (struct target_ops) <to_set_trace_notes>: Use
3414 TARGET_DEFAULT_RETURN.
3416 2014-02-19 Tom Tromey <tromey@redhat.com>
3418 * target-delegates.c: Rebuild.
3419 * target.c (update_current_target): Don't initialize
3420 to_set_trace_buffer_size.
3421 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3422 TARGET_DEFAULT_IGNORE.
3424 2014-02-19 Tom Tromey <tromey@redhat.com>
3426 * target-delegates.c: Rebuild.
3427 * target.c (update_current_target): Don't inherit or default
3428 to_set_circular_trace_buffer.
3429 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3430 TARGET_DEFAULT_IGNORE.
3432 2014-02-19 Tom Tromey <tromey@redhat.com>
3434 * target-delegates.c: Rebuild.
3435 * target.c (update_current_target): Don't inherit or default
3436 to_set_disconnected_tracing.
3437 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3438 TARGET_DEFAULT_IGNORE.
3440 2014-02-19 Tom Tromey <tromey@redhat.com>
3442 * target-delegates.c: Rebuild.
3443 * target.c (update_current_target): Don't inherit or default
3444 to_get_min_fast_tracepoint_insn_len.
3445 (return_minus_one): Remove.
3446 * target.h (struct target_ops)
3447 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3449 2014-02-19 Tom Tromey <tromey@redhat.com>
3451 * target-delegates.c: Rebuild.
3452 * target.c (update_current_target): Don't inherit or default
3453 to_get_raw_trace_data.
3454 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3455 TARGET_DEFAULT_NORETURN.
3457 2014-02-19 Tom Tromey <tromey@redhat.com>
3459 * target-delegates.c: Rebuild.
3460 * target.c (update_current_target): Don't inherit or default
3461 to_upload_trace_state_variables.
3462 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3463 Use TARGET_DEFAULT_RETURN.
3465 2014-02-19 Tom Tromey <tromey@redhat.com>
3467 * target-delegates.c: Rebuild.
3468 * target.c (update_current_target): Don't inherit or default
3469 to_upload_tracepoints.
3470 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3471 TARGET_DEFAULT_RETURN.
3473 2014-02-19 Tom Tromey <tromey@redhat.com>
3475 * target-delegates.c: Rebuild.
3476 * target.c (update_current_target): Don't inherit or default
3478 * target.h (struct target_ops) <to_save_trace_data>: Use
3479 TARGET_DEFAULT_NORETURN.
3481 2014-02-19 Tom Tromey <tromey@redhat.com>
3483 * target-delegates.c: Rebuild.
3484 * target.c (update_current_target): Don't inherit or default
3485 to_get_trace_state_variable_value.
3486 * target.h (struct target_ops)
3487 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3489 2014-02-19 Tom Tromey <tromey@redhat.com>
3491 * target-delegates.c: Rebuild.
3492 * target.c (update_current_target): Don't inherit or default
3494 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3496 2014-02-19 Tom Tromey <tromey@redhat.com>
3498 * target-delegates.c: Rebuild.
3499 * target.c (update_current_target): Don't inherit or default
3501 * target.h (struct target_ops) <to_trace_stop>: Use
3502 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
3509 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3510 TARGET_DEFAULT_NORETURN.
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_trace_status.
3517 * target.h (struct target_ops) <to_get_trace_status>: Use
3518 TARGET_DEFAULT_RETURN.
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
3525 * target.h (struct target_ops) <to_trace_start>: Use
3526 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
3533 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3534 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
3541 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3542 TARGET_DEFAULT_NORETURN.
3544 2014-02-19 Tom Tromey <tromey@redhat.com>
3546 * target-delegates.c: Rebuild.
3547 * target.c (update_current_target): Don't inherit or default
3548 to_enable_tracepoint.
3549 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3550 TARGET_DEFAULT_NORETURN.
3552 2014-02-19 Tom Tromey <tromey@redhat.com>
3554 * target-delegates.c: Rebuild.
3555 * target.c (update_current_target): Don't inherit or default
3556 to_download_trace_state_variable.
3557 * target.h (struct target_ops) <to_download_trace_state_variable>:
3558 Use TARGET_DEFAULT_NORETURN.
3560 2014-02-19 Tom Tromey <tromey@redhat.com>
3562 * target-delegates.c: Rebuild.
3563 * target.c (update_current_target): Don't inherit or default
3564 to_can_download_tracepoint.
3565 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3566 TARGET_DEFAULT_RETURN.
3568 2014-02-19 Tom Tromey <tromey@redhat.com>
3570 * target-delegates.c: Rebuild.
3571 * target.c (update_current_target): Don't inherit or default
3572 to_download_tracepoint.
3573 * target.h (struct target_ops) <to_download_tracepoint>: Use
3574 TARGET_DEFAULT_NORETURN.
3576 2014-02-19 Tom Tromey <tromey@redhat.com>
3578 * target-delegates.c: Rebuild.
3579 * target.c (update_current_target): Don't inherit or default
3581 * target.h (struct target_ops) <to_trace_init>: Use
3582 TARGET_DEFAULT_RETURN.
3584 2014-02-19 Tom Tromey <tromey@redhat.com>
3586 * target-delegates.c: Rebuild.
3587 * target.c (update_current_target): Don't inherit or default
3588 to_supports_string_tracing.
3589 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3590 TARGET_DEFAULT_RETURN.
3592 2014-02-19 Tom Tromey <tromey@redhat.com>
3594 * target-delegates.c: Rebuild.
3595 * target.c (update_current_target): Don't inherit or default
3596 to_supports_enable_disable_tracepoint.
3597 * target.h (struct target_ops)
3598 <to_supports_enable_disable_tracepoint>: Use
3599 TARGET_DEFAULT_RETURN.
3601 2014-02-19 Tom Tromey <tromey@redhat.com>
3603 * target-delegates.c: Rebuild.
3604 * target.c (update_current_target): Don't inherit or default
3605 to_supports_multi_process.
3606 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
3614 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3615 TARGET_DEFAULT_FUNC.
3617 2014-02-19 Tom Tromey <tromey@redhat.com>
3619 * target-delegates.c: Rebuild.
3620 * target.c (update_current_target): Don't inherit or default
3621 to_thread_architecture.
3622 * target.h (struct target_ops) <to_thread_architecture>: Use
3623 TARGET_DEFAULT_FUNC.
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_execution_direction.
3630 * target.h (struct target_ops) <to_execution_direction>: Use
3631 TARGET_DEFAULT_FUNC.
3633 2014-02-19 Tom Tromey <tromey@redhat.com>
3635 * target-delegates.c: Rebuild.
3636 * target.c (update_current_target): Don't inherit or default
3637 to_can_execute_reverse.
3638 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3639 TARGET_DEFAULT_RETURN.
3640 (target_can_execute_reverse): Unconditionally delegate.
3642 2014-02-19 Tom Tromey <tromey@redhat.com>
3644 * target-delegates.c: Rebuild.
3645 * target.c (update_current_target): Don't inherit or default
3647 (dummy_goto_bookmark): Remove.
3648 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3649 * target.h (struct target_ops) <to_goto_bookmark>: Use
3650 TARGET_DEFAULT_NORETURN.
3652 2014-02-19 Tom Tromey <tromey@redhat.com>
3654 * target-delegates.c: Rebuild.
3655 * target.c (update_current_target): Don't inherit or default
3657 (dummy_get_bookmark): Remove.
3658 (init_dummy_target): Don't inherit or default to_get_bookmark.
3659 * target.h (struct target_ops) <to_get_bookmark>: Use
3660 TARGET_DEFAULT_NORETURN
3662 2014-02-19 Tom Tromey <tromey@redhat.com>
3664 * target-delegates.c: Rebuild.
3665 * target.c (update_current_target): Don't inherit or default
3666 to_make_corefile_notes.
3667 (init_dummy_target): Don't initialize to_make_corefile_notes.
3668 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3669 TARGET_DEFAULT_FUNC.
3671 2014-02-19 Tom Tromey <tromey@redhat.com>
3673 * target-delegates.c: Rebuild.
3674 * target.c (update_current_target): Don't inherit or default
3675 to_find_memory_regions.
3676 (init_dummy_target): Don't initialize to_find_memory_regions.
3677 * target.h (struct target_ops) <to_find_memory_regions>: Use
3678 TARGET_DEFAULT_FUNC.
3680 2014-02-19 Tom Tromey <tromey@redhat.com>
3682 * target-delegates.c: Rebuild.
3683 * target.c (update_current_target): Don't inherit or default
3685 * target.h (struct target_ops) <to_log_command>: Use
3686 TARGET_DEFAULT_IGNORE.
3687 (target_log_command): Unconditionally delegate.
3689 2014-02-19 Tom Tromey <tromey@redhat.com>
3691 * target-delegates.c: Rebuild.
3692 * target.c (update_current_target): Don't inherit or default
3693 to_pid_to_exec_file.
3694 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3695 TARGET_DEFAULT_RETURN.
3697 2014-02-19 Tom Tromey <tromey@redhat.com>
3699 * target-delegates.c: Rebuild.
3700 * target.c (update_current_target): Don't inherit or default
3702 (target_thread_name): Unconditionally delegate.
3703 * target.h (struct target_ops) <to_thread_name>: Use
3704 TARGET_DEFAULT_RETURN.
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_extra_thread_info.
3711 * target.h (struct target_ops) <to_extra_thread_info>: Use
3712 TARGET_DEFAULT_RETURN.
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_has_exited>: Use
3720 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
3727 (return_one): Remove.
3728 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3729 TARGET_DEFAULT_RETURN.
3731 2014-02-19 Tom Tromey <tromey@redhat.com>
3733 * target-delegates.c: Rebuild.
3734 * target.c (update_current_target): Don't inherit or default
3735 to_insert_exec_catchpoint.
3736 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3737 TARGET_DEFAULT_RETURN.
3739 2014-01-08 Tom Tromey <tromey@redhat.com>
3741 * target-delegates.c: Rebuild.
3742 * target.c (update_current_target): Don't inherit or default
3743 to_insert_exec_catchpoint.
3744 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3745 TARGET_DEFAULT_RETURN.
3747 2014-02-19 Tom Tromey <tromey@redhat.com>
3749 * target-delegates.c: Rebuild.
3750 * target.c (update_current_target): Don't inherit or default
3751 to_remove_vfork_catchpoint.
3752 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3753 TARGET_DEFAULT_RETURN.
3755 2014-02-19 Tom Tromey <tromey@redhat.com>
3757 * target-delegates.c: Rebuild.
3758 * target.c (update_current_target): Don't inherit or default
3759 to_insert_vfork_catchpoint.
3760 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3761 TARGET_DEFAULT_RETURN.
3763 2014-02-19 Tom Tromey <tromey@redhat.com>
3765 * target-delegates.c: Rebuild.
3766 * target.c (update_current_target): Don't inherit or default
3767 to_remove_fork_catchpoint.
3768 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3769 TARGET_DEFAULT_RETURN.
3771 2014-02-19 Tom Tromey <tromey@redhat.com>
3773 * target-delegates.c: Rebuild.
3774 * target.c (update_current_target): Don't inherit or default
3775 to_insert_fork_catchpoint.
3776 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3777 TARGET_DEFAULT_RETURN.
3779 2014-02-19 Tom Tromey <tromey@redhat.com>
3781 * target-delegates.c: Rebuild.
3782 * target.c (update_current_target): Don't inherit or default
3783 to_post_startup_inferior.
3784 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3785 TARGET_DEFAULT_IGNORE.
3787 2014-02-19 Tom Tromey <tromey@redhat.com>
3789 * target-delegates.c: Rebuild.
3790 * target.c (update_current_target): Don't inherit or default
3792 * target.h (struct target_ops) <to_load>: Use
3793 TARGET_DEFAULT_NORETURN.
3795 2014-02-19 Tom Tromey <tromey@redhat.com>
3797 * target-delegates.c: Rebuild.
3798 * target.c (update_current_target): Don't inherit or default
3800 * target.h (struct target_ops) <to_terminal_info>: Use
3801 TARGET_DEFAULT_FUNC.
3803 2014-02-19 Tom Tromey <tromey@redhat.com>
3805 * target-delegates.c: Rebuild.
3806 * target.c (update_current_target): Don't inherit or default
3807 to_terminal_save_ours.
3808 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3809 TARGET_DEFAULT_IGNORE.
3811 2014-02-19 Tom Tromey <tromey@redhat.com>
3813 * target-delegates.c: Rebuild.
3814 * target.c (update_current_target): Don't inherit or default
3816 * target.h (struct target_ops) <to_terminal_ours>: Use
3817 TARGET_DEFAULT_IGNORE.
3819 2014-02-19 Tom Tromey <tromey@redhat.com>
3821 * target-delegates.c: Rebuild.
3822 * target.c (update_current_target): Don't inherit or default
3823 to_terminal_ours_for_output.
3824 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3825 TARGET_DEFAULT_IGNORE.
3827 2014-02-19 Tom Tromey <tromey@redhat.com>
3829 * target-delegates.c: Rebuild.
3830 * target.c (update_current_target): Don't inherit or default
3831 to_terminal_inferior.
3832 * target.h (struct target_ops) <to_terminal_inferior>: Use
3833 TARGET_DEFAULT_IGNORE.
3835 2014-02-19 Tom Tromey <tromey@redhat.com>
3837 * target-delegates.c: Rebuild.
3838 * target.c (update_current_target): Don't inherit or default
3840 * target.h (struct target_ops) <to_terminal_init>: Use
3841 TARGET_DEFAULT_IGNORE.
3843 2014-02-19 Tom Tromey <tromey@redhat.com>
3845 * target-delegates.c: Rebuild.
3846 * target.c (update_current_target): Don't inherit or default
3847 to_can_accel_watchpoint_condition.
3848 * target.h (struct target_ops)
3849 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3851 2014-02-19 Tom Tromey <tromey@redhat.com>
3853 * target-delegates.c: Rebuild.
3854 * target.c (update_current_target): Don't inherit or default
3855 to_region_ok_for_hw_watchpoint.
3856 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3857 Use TARGET_DEFAULT_FUNC.
3859 2014-02-19 Tom Tromey <tromey@redhat.com>
3861 * target-delegates.c: Rebuild.
3862 * target.c (update_current_target): Don't inherit or default
3863 to_watchpoint_addr_within_range.
3864 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3865 Use TARGET_DEFAULT_FUNC.
3867 2014-02-19 Tom Tromey <tromey@redhat.com>
3869 * target-delegates.c: Rebuild.
3870 * target.c (update_current_target): Don't inherit or default
3871 to_remove_watchpoint.
3872 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3873 TARGET_DEFAULT_NORETURN.
3875 2014-02-19 Tom Tromey <tromey@redhat.com>
3877 * target-delegates.c: Rebuild.
3878 * target.c (update_current_target): Don't inherit or default
3879 to_insert_watchpoint.
3880 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3881 TARGET_DEFAULT_RETURN.
3883 2014-02-19 Tom Tromey <tromey@redhat.com>
3885 * target-delegates.c: Rebuild.
3886 * target.c (update_current_target): Don't inherit or default
3887 to_remove_hw_breakpoint.
3888 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3889 TARGET_DEFAULT_RETURN.
3891 2014-02-19 Tom Tromey <tromey@redhat.com>
3893 * target-delegates.c: Rebuild.
3894 * target.c (update_current_target): Don't inherit or default
3895 to_insert_hw_breakpoint.
3896 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3897 TARGET_DEFAULT_RETURN.
3899 2014-02-19 Tom Tromey <tromey@redhat.com>
3901 * target-delegates.c: Rebuild.
3902 * target.c (update_current_target): Don't inherit or default
3903 to_can_use_hw_breakpoint.
3904 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3905 TARGET_DEFAULT_RETURN.
3907 2014-02-19 Tom Tromey <tromey@redhat.com>
3909 * target-delegates.c: Rebuild.
3910 * target.c (update_current_target): Don't inherit or default
3912 * target.h (struct target_ops) <to_files_info>: Use
3913 TARGET_DEFAULT_IGNORE.
3915 2014-02-19 Tom Tromey <tromey@redhat.com>
3917 * target-delegates.c: Rebuild.
3918 * target.c (update_current_target): Don't inherit or default
3920 * target.h (struct target_ops) <to_store>: Use
3921 TARGET_DEFAULT_NORETURN.
3923 2014-02-19 Tom Tromey <tromey@redhat.com>
3925 * target-delegates.c: Rebuild.
3926 * target.c (update_current_target): Don't inherit or default
3928 * target.h (struct target_ops) <to_post_attach>: Use
3929 TARGET_DEFAULT_IGNORE.
3931 2014-02-19 Tom Tromey <tromey@redhat.com>
3933 * target-delegates.c: Rebuild.
3934 * target.c (update_current_target): Don't inherit or default
3936 (default_rcmd): New function.
3937 (do_monitor_command): Unconditionally delegate.
3938 * target.h (struct target_ops) <to_rmcd>: Use
3939 TARGET_DEFAULT_FUNC.
3941 2014-02-19 Tom Tromey <tromey@redhat.com>
3943 * target-delegates.c: Rebuild.
3944 * target.c (init_dummy_target): Don't initialize to_attach.
3945 (target_attach): Unconditionally delegate.
3946 * target.h (struct target_ops) <to_attach>: Use
3947 TARGET_DEFAULT_FUNC.
3949 2014-02-19 Tom Tromey <tromey@redhat.com>
3951 * target-delegates.c: Rebuild.
3952 * target.c (target_detach): Unconditionally delegate.
3953 (init_dummy_target): Don't initialize to_detach.
3954 * target.h (struct target_ops) <to_detach>: Use
3955 TARGET_DEFAULT_IGNORE.
3957 2014-02-19 Tom Tromey <tromey@redhat.com>
3959 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3961 (target_augmented_libraries_svr4_read): Add argument.
3962 * target.c (update_current_target): Update.
3963 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
3966 2014-02-19 Tom Tromey <tromey@redhat.com>
3968 * target.h (struct target_ops) <to_call_history_range>: Add
3970 * target.c (target_call_history_range): Add argument.
3971 * record-btrace.c (record_btrace_call_history_range): Add 'self'
3973 (record_btrace_call_history_from): Update.
3975 2014-02-19 Tom Tromey <tromey@redhat.com>
3977 * target.h (struct target_ops) <to_call_history_from>: Add
3979 * target.c (target_call_history_from): Add argument.
3980 * record-btrace.c (record_btrace_call_history_from): Add 'self'
3983 2014-02-19 Tom Tromey <tromey@redhat.com>
3985 * target.h (struct target_ops) <to_call_history>: Add argument.
3986 * target.c (target_call_history): Add argument.
3987 * record-btrace.c (record_btrace_call_history): Add 'self'
3990 2014-02-19 Tom Tromey <tromey@redhat.com>
3992 * target.h (struct target_ops) <to_insn_history_range>: Add
3994 * target.c (target_insn_history_range): Add argument.
3995 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
3997 (record_btrace_insn_history_from): Update.
3999 2014-02-19 Tom Tromey <tromey@redhat.com>
4001 * target.h (struct target_ops) <to_insn_history_from>: Add
4003 * target.c (target_insn_history_from): Add argument.
4004 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4007 2014-02-19 Tom Tromey <tromey@redhat.com>
4009 * target.h (struct target_ops) <to_insn_history>: Add argument.
4010 * target.c (target_insn_history): Add argument.
4011 * record-btrace.c (record_btrace_insn_history): Add 'self'
4014 2014-02-19 Tom Tromey <tromey@redhat.com>
4016 * target.h (struct target_ops) <to_goto_record>: Add argument.
4017 * target.c (target_goto_record): Add argument.
4018 * record-full.c (record_full_goto): Add 'self' argument.
4019 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4021 2014-02-19 Tom Tromey <tromey@redhat.com>
4023 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4024 * target.c (target_goto_record_end): Add argument.
4025 * record-full.c (record_full_goto_end): Add 'self' argument.
4026 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4028 2014-02-19 Tom Tromey <tromey@redhat.com>
4030 * target.h (struct target_ops) <to_goto_record_begin>: Add
4032 * target.c (target_goto_record_begin): Add argument.
4033 * record-full.c (record_full_goto_begin): Add 'self' argument.
4034 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4037 2014-02-19 Tom Tromey <tromey@redhat.com>
4039 * target.h (struct target_ops) <to_record_is_replaying>: Add
4041 * target.c (target_record_is_replaying): Add argument.
4042 * record-full.c (record_full_is_replaying): Add 'self' argument.
4043 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4045 (record_btrace_xfer_partial, record_btrace_store_registers)
4046 (record_btrace_prepare_to_store, record_btrace_resume)
4047 (record_btrace_wait, record_btrace_decr_pc_after_break)
4048 (record_btrace_find_new_threads, record_btrace_thread_alive):
4051 2014-02-19 Tom Tromey <tromey@redhat.com>
4053 * target.h (struct target_ops) <to_delete_record>: Add argument.
4054 * target.c (target_delete_record): Add argument.
4055 * record-full.c (record_full_delete): Add 'self' argument.
4057 2014-02-19 Tom Tromey <tromey@redhat.com>
4059 * target.h (struct target_ops) <to_save_record>: Add argument.
4060 * target.c (target_save_record): Add argument.
4061 * record-full.c (record_full_save): Add 'self' argument.
4062 (record_full_save): Add 'self' argument.
4064 2014-02-19 Tom Tromey <tromey@redhat.com>
4066 * target.h (struct target_ops) <to_info_record>: Add argument.
4067 * target.c (target_info_record): Add argument.
4068 * record.c (info_record_command): Add argument.
4069 * record-full.c (record_full_info): Add 'self' argument.
4070 * record-btrace.c (record_btrace_info): Add 'self' argument.
4072 2014-02-19 Tom Tromey <tromey@redhat.com>
4074 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4075 * target.c (target_stop_recording): Add argument.
4076 * record.c (record_stop): Add argument.
4077 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4080 2014-02-19 Tom Tromey <tromey@redhat.com>
4082 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4083 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4084 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4086 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4087 (_initialize_amd64_linux_nat): Use it.
4088 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4089 (_initialize_i386_linux_nat): Use it.
4091 2014-02-19 Tom Tromey <tromey@redhat.com>
4093 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4094 * target.c (target_teardown_btrace): Add argument.
4095 * remote.c (remote_teardown_btrace): Add 'self' argument.
4096 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4098 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4101 2014-02-19 Tom Tromey <tromey@redhat.com>
4103 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4104 * target.c (target_disable_btrace): Add argument.
4105 * remote.c (remote_disable_btrace): Add 'self' argument.
4106 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4108 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4111 2014-02-19 Tom Tromey <tromey@redhat.com>
4113 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4114 * target.c (target_enable_btrace): Add argument.
4115 * remote.c (remote_enable_btrace): Add 'self' argument.
4116 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4118 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4121 2014-02-19 Tom Tromey <tromey@redhat.com>
4123 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4124 (target_can_use_agent): Add argument.
4125 * target.c (update_current_target): Update.
4126 * remote.c (remote_can_use_agent): Add 'self' argument.
4127 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4129 2014-02-19 Tom Tromey <tromey@redhat.com>
4131 * target.h (struct target_ops) <to_use_agent>: Add argument.
4132 (target_use_agent): Add argument.
4133 * target.c (update_current_target): Update.
4134 * remote.c (remote_use_agent): Add 'self' argument.
4135 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4137 2014-02-19 Tom Tromey <tromey@redhat.com>
4139 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4140 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4141 (target_traceframe_info): Add argument.
4142 * target.c (update_current_target): Update.
4143 * remote.c (remote_traceframe_info): Add 'self' argument.
4144 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4146 2014-02-19 Tom Tromey <tromey@redhat.com>
4148 * target.h (target_static_tracepoint_markers_by_strid): Add
4150 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4152 * target.c (update_current_target): Update.
4153 * remote.c (struct target_ops)
4154 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4155 * linux-nat.c (struct target_ops)
4156 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4158 2014-02-19 Tom Tromey <tromey@redhat.com>
4160 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4162 (target_static_tracepoint_marker_at): Add argument.
4163 * target.c (update_current_target): Update.
4164 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4167 2014-02-19 Tom Tromey <tromey@redhat.com>
4169 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4170 (target_set_permissions): Add argument.
4171 * target.c (update_current_target): Update.
4172 * remote.c (remote_set_permissions): Add 'self' argument.
4173 (remote_start_remote): Update.
4175 2014-02-19 Tom Tromey <tromey@redhat.com>
4177 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4178 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4179 (target_get_tib_address): Add argument.
4180 * target.c (update_current_target): Update.
4181 * remote.c (remote_get_tib_address): Add 'self' argument.
4183 2014-02-19 Tom Tromey <tromey@redhat.com>
4185 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4186 (target_set_trace_notes): Add argument.
4187 * target.c (update_current_target): Update.
4188 * remote.c (remote_set_trace_notes): Add 'self' argument.
4190 2014-02-19 Tom Tromey <tromey@redhat.com>
4192 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4194 (target_set_trace_buffer_size): Add argument.
4195 * target.c (update_current_target): Update.
4196 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4198 2014-02-19 Tom Tromey <tromey@redhat.com>
4200 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4202 (target_set_circular_trace_buffer): Add argument.
4203 * target.c (update_current_target): Update.
4204 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4207 2014-02-19 Tom Tromey <tromey@redhat.com>
4209 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4211 (target_set_disconnected_tracing): Add argument.
4212 * target.c (update_current_target): Update.
4213 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4215 2014-02-19 Tom Tromey <tromey@redhat.com>
4217 * target.h (struct target_ops)
4218 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4219 (target_get_min_fast_tracepoint_insn_len): Add argument.
4220 * target.c (update_current_target): Update.
4221 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4224 2014-02-19 Tom Tromey <tromey@redhat.com>
4226 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4228 (target_get_raw_trace_data): Add argument.
4229 * target.c (update_current_target): Update.
4230 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4232 2014-02-19 Tom Tromey <tromey@redhat.com>
4234 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4236 (target_upload_trace_state_variables): Add argument.
4237 * target.c (update_current_target): Update.
4238 * remote.c (remote_upload_trace_state_variables): Add 'self'
4240 (remote_start_remote): Update.
4242 2014-02-19 Tom Tromey <tromey@redhat.com>
4244 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4246 (target_upload_tracepoints): Add argument.
4247 * target.c (update_current_target): Update.
4248 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4249 (remote_start_remote): Update.
4251 2014-02-19 Tom Tromey <tromey@redhat.com>
4253 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4254 (target_save_trace_data): Add argument.
4255 * target.c (update_current_target): Update.
4256 * remote.c (remote_save_trace_data): Add 'self' argument.
4258 2014-02-19 Tom Tromey <tromey@redhat.com>
4260 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4262 * target.h (struct target_ops)
4263 <to_get_trace_state_variable_value>: Add argument.
4264 (target_get_trace_state_variable_value): Add argument.
4265 * target.c (update_current_target): Update.
4266 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4268 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4273 * target.h (struct target_ops) <to_trace_find>: Add argument.
4274 (target_trace_find): Add argument.
4275 * target.c (update_current_target): Update.
4276 * remote.c (remote_trace_find): Add 'self' argument.
4277 * ctf.c (ctf_trace_find): Add 'self' argument.
4279 2014-02-19 Tom Tromey <tromey@redhat.com>
4281 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4282 (target_trace_stop): Add argument.
4283 * target.c (update_current_target): Update.
4284 * remote.c (remote_trace_stop): Add 'self' argument.
4286 2014-02-19 Tom Tromey <tromey@redhat.com>
4288 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4289 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4291 (target_get_tracepoint_status): Add argument.
4292 * target.c (update_current_target): Update.
4293 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4295 2014-02-19 Tom Tromey <tromey@redhat.com>
4297 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4298 * target.h (struct target_ops) <to_get_trace_status>: Add
4300 (target_get_trace_status): Add argument.
4301 * target.c (update_current_target): Update.
4302 * remote.c (remote_get_trace_status): Add 'self' argument.
4303 (remote_start_remote, remote_can_download_tracepoint): Update.
4304 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4306 2014-02-19 Tom Tromey <tromey@redhat.com>
4308 * target.h (struct target_ops) <to_trace_start>: Add argument.
4309 (target_trace_start): Add argument.
4310 * target.c (update_current_target): Update.
4311 * remote.c (remote_trace_start): Add 'self' argument.
4313 2014-02-19 Tom Tromey <tromey@redhat.com>
4315 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4317 (target_trace_set_readonly_regions): Add argument.
4318 * target.c (update_current_target): Update.
4319 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4322 2014-02-19 Tom Tromey <tromey@redhat.com>
4324 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4326 (target_disable_tracepoint): Add argument.
4327 * target.c (update_current_target): Update.
4328 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4330 2014-02-19 Tom Tromey <tromey@redhat.com>
4332 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4334 (target_enable_tracepoint): Add argument.
4335 * target.c (update_current_target): Update.
4336 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4338 2014-02-19 Tom Tromey <tromey@redhat.com>
4340 * target.h (struct target_ops) <to_download_trace_state_variable>:
4342 (target_download_trace_state_variable): Add argument.
4343 * target.c (update_current_target): Update.
4344 * remote.c (remote_download_trace_state_variable): Add 'self'
4347 2014-02-19 Tom Tromey <tromey@redhat.com>
4349 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4351 (target_can_download_tracepoint): Add argument.
4352 * target.c (update_current_target): Update.
4353 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4355 2014-02-19 Tom Tromey <tromey@redhat.com>
4357 * target.h (struct target_ops) <to_download_tracepoint>: Add
4359 (target_download_tracepoint): Add argument.
4360 * target.c (update_current_target): Update.
4361 * remote.c (remote_download_tracepoint): Add 'self' argument.
4363 2014-02-19 Tom Tromey <tromey@redhat.com>
4365 * target.h (struct target_ops) <to_trace_init>: Add argument.
4366 (target_trace_init): Add argument.
4367 * target.c (update_current_target): Update.
4368 * remote.c (remote_trace_init): Add 'self' argument.
4370 2014-02-19 Tom Tromey <tromey@redhat.com>
4372 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4373 * target.c (target_fileio_readlink): Add argument.
4374 * remote.c (remote_hostio_readlink): Add 'self' argument.
4375 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4377 2014-02-19 Tom Tromey <tromey@redhat.com>
4379 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4380 * target.c (target_fileio_unlink): Add argument.
4381 * remote.c (remote_hostio_unlink): Add 'self' argument.
4382 (remote_file_delete): Update.
4383 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4385 2014-02-19 Tom Tromey <tromey@redhat.com>
4387 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4388 * target.c (target_fileio_close): Add argument.
4389 * remote.c (remote_hostio_close): Add 'self' argument.
4390 (remote_hostio_close_cleanup): Update.
4391 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4393 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4395 2014-02-19 Tom Tromey <tromey@redhat.com>
4397 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4398 * target.c (target_fileio_pread): Add argument.
4399 * remote.c (remote_hostio_pread): Add 'self' argument.
4400 (remote_bfd_iovec_pread, remote_file_get): Update.
4401 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4403 2014-02-19 Tom Tromey <tromey@redhat.com>
4405 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4406 * target.c (target_fileio_pwrite): Add argument.
4407 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4408 (remote_file_put): Update.
4409 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4411 2014-02-19 Tom Tromey <tromey@redhat.com>
4413 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4414 * target.c (target_fileio_open): Add argument.
4415 * remote.c (remote_hostio_open): Add 'self' argument.
4416 (remote_bfd_iovec_open): Add 'self' argument.
4417 (remote_file_put): Add 'self' argument.
4418 (remote_file_get): Add 'self' argument.
4419 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4421 2014-02-19 Tom Tromey <tromey@redhat.com>
4423 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4425 (target_can_run_breakpoint_commands): Add argument.
4426 * target.c (update_current_target): Update.
4427 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4429 (remote_insert_breakpoint): Add 'self' argument.
4430 (remote_insert_hw_breakpoint): Add 'self' argument.
4431 (remote_can_run_breakpoint_commands): Add 'self' argument.
4433 2014-02-19 Tom Tromey <tromey@redhat.com>
4435 * target.h (struct target_ops)
4436 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4437 (target_supports_evaluation_of_breakpoint_conditions): Add
4439 * target.c (update_current_target): Update.
4440 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4442 (remote_insert_breakpoint): Add 'self' argument.
4443 (remote_insert_hw_breakpoint): Add 'self' argument.
4444 (remote_supports_cond_breakpoints): Add 'self' argument.
4446 2014-02-19 Tom Tromey <tromey@redhat.com>
4448 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4450 (target_supports_string_tracing): Add argument.
4451 * target.c (update_current_target): Update.
4452 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4454 2014-02-19 Tom Tromey <tromey@redhat.com>
4456 * target.h (struct target_ops)
4457 <to_supports_disable_randomization>: Add argument.
4458 * target.c (find_default_supports_disable_randomization): Add
4460 (target_supports_disable_randomization): Add argument.
4461 (find_default_supports_disable_randomization): Add 'self'
4463 * remote.c (extended_remote_supports_disable_randomization): Add
4465 (remote_supports_disable_randomization): Add 'self' argument.
4466 (extended_remote_create_inferior): Update.
4467 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4470 2014-02-19 Tom Tromey <tromey@redhat.com>
4472 * target.h (struct target_ops)
4473 <to_supports_enable_disable_tracepoint>: Add argument.
4474 (target_supports_enable_disable_tracepoint): Add argument.
4475 * target.c (update_current_target): Update.
4476 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4479 2014-02-19 Tom Tromey <tromey@redhat.com>
4481 * target.h (struct target_ops) <to_supports_multi_process>: Add
4483 (target_supports_multi_process): Add argument.
4484 * target.c (update_current_target): Update.
4485 * remote.c (remote_supports_multi_process): Add 'self' argument.
4486 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4488 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4491 2014-02-19 Tom Tromey <tromey@redhat.com>
4493 * target.h (struct target_ops) <to_execution_direction>: Add
4495 (target_execution_direction): Add argument.
4496 * target.c (default_execution_direction): Add 'self' argument.
4497 * record-full.c (record_full_execution_direction): Add 'self'
4500 2014-02-19 Tom Tromey <tromey@redhat.com>
4502 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4504 (target_can_execute_reverse): Add argument.
4505 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4506 * record-full.c (record_full_can_execute_reverse): Add 'self'
4508 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4511 2014-02-19 Tom Tromey <tromey@redhat.com>
4513 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4514 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4516 (target_get_ada_task_ptid): Add argument.
4517 * target.c (update_current_target): Update.
4518 (default_get_ada_task_ptid): Add 'self' argument.
4519 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4520 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4521 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4523 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4525 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4527 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4529 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4530 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4533 2014-02-19 Tom Tromey <tromey@redhat.com>
4535 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4536 (target_goto_bookmark): Add argument.
4537 * target.c (dummy_goto_bookmark): Add 'self' argument.
4538 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4540 2014-02-19 Tom Tromey <tromey@redhat.com>
4542 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4543 (target_get_bookmark): Add argument.
4544 * target.c (dummy_get_bookmark): Add 'self' argument.
4545 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4547 2014-02-19 Tom Tromey <tromey@redhat.com>
4549 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4551 (target_make_corefile_notes): Add argument.
4552 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4553 * procfs.c (procfs_make_note_section): Add 'self' argument.
4554 (procfs_make_note_section): Add 'self' argument.
4555 (procfs_make_note_section): Add 'self' argument.
4556 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4558 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4559 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4560 * exec.c (exec_make_note_section): Add 'self' argument.
4561 (exec_make_note_section): Add 'self' argument.
4563 2014-02-19 Tom Tromey <tromey@redhat.com>
4565 * target.h (struct target_ops) <to_find_memory_regions>: Add
4567 (target_find_memory_regions): Add argument.
4568 * target.c (dummy_find_memory_regions): Add 'self' argument.
4569 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4570 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4571 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4572 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4573 * exec. (exec_do_find_memory_regions): New global.
4574 (exec_set_find_memory_regions): Rewrite.
4575 (exec_find_memory_regions): New function.
4576 (init_exec_ops): Use exec_find_memory_regions.
4578 2014-02-19 Tom Tromey <tromey@redhat.com>
4580 * target.h (struct target_ops) <to_supports_non_stop>: Add
4582 * target.c (find_default_supports_non_stop): Add argument.
4583 (target_supports_non_stop): Add argument.
4584 (find_default_supports_non_stop): Add 'self' argument.
4585 * remote.c (remote_supports_non_stop): Add 'self' argument.
4586 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4588 2014-02-19 Tom Tromey <tromey@redhat.com>
4590 * target.h (struct target_ops) <to_log_command>: Add argument.
4591 (target_log_command): Add argument.
4592 * serial.h (serial_log_command): Add 'self' argument.
4593 * serial.c (serial_log_command): Add 'self' argument.
4595 2014-02-19 Tom Tromey <tromey@redhat.com>
4597 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4598 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4600 (target_pid_to_exec_file): Add argument.
4601 * target.c (debug_to_pid_to_exec_file): Add argument.
4602 (update_current_target): Update.
4603 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4604 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4605 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4606 (linux_handle_extended_wait): Update.
4607 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4608 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4609 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4610 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4612 2014-02-19 Tom Tromey <tromey@redhat.com>
4614 * target.h (struct target_ops) <to_rcmd>: Add argument.
4615 (target_rcmd): Add argument.
4616 * target.c (debug_to_rcmd): Add argument.
4617 (update_current_target, do_monitor_command): Update.
4618 * remote.c (remote_rcmd): Add 'self' argument.
4619 * monitor.c (monitor_rcmd): Add 'self' argument.
4621 2014-02-19 Tom Tromey <tromey@redhat.com>
4623 * windows-nat.c (windows_stop): Add 'self' argument.
4624 * target.h (struct target_ops) <to_stop>: Add argument.
4625 * target.c (target_stop): Add argument.
4626 (debug_to_stop): Add argument.
4627 (update_current_target): Update.
4628 * remote.c (remote_stop): Add 'self' argument.
4629 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4630 (gdbsim_cntrl_c): Update.
4631 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4632 * procfs.c (procfs_stop): Add 'self' argument.
4633 * nto-procfs.c (procfs_stop): Add 'self' argument.
4634 * monitor.c (monitor_stop): Add 'self' argument.
4635 (monitor_open): Update.
4636 * linux-nat.c (linux_nat_stop): Add argument.
4637 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4638 * gnu-nat.c (gnu_stop): Add 'self' argument.
4639 * darwin-nat.c (darwin_stop): Add 'self' argument.
4641 2014-02-19 Tom Tromey <tromey@redhat.com>
4643 * target.h (struct target_ops) <to_thread_name>: Add argument.
4644 * target.c (target_thread_name): Add argument.
4645 (update_current_target): Update.
4646 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4648 2014-02-19 Tom Tromey <tromey@redhat.com>
4650 * target.h (struct target_ops) <to_extra_thread_info>: Add
4652 (target_extra_thread_info): Add argument.
4653 * target.c (update_current_target): Update.
4654 * remote.c (remote_threads_extra_info): Add 'self' argument.
4655 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4657 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4658 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4659 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4661 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4663 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4665 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4668 2014-02-19 Tom Tromey <tromey@redhat.com>
4670 * target.h (struct target_ops) <to_program_signals>: Add argument.
4671 * target.c (target_program_signals): Add argument.
4672 * remote.c (remote_program_signals): Add 'self' argument.
4674 2014-02-19 Tom Tromey <tromey@redhat.com>
4676 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4677 * target.c (target_pass_signals): Add argument.
4678 * remote.c (remote_pass_signals): Add 'self' argument.
4679 (remote_start_remote): Update.
4680 * procfs.c (procfs_pass_signals): Add 'self' argument.
4681 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4682 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4683 (linux_nat_create_inferior, linux_nat_attach): Update.
4685 2014-02-19 Tom Tromey <tromey@redhat.com>
4687 * windows-nat.c (windows_can_run): Add 'self' argument.
4688 * target.h (struct target_ops) <to_can_run>: Add argument.
4689 (target_can_run): Add argument.
4690 * target.c (debug_to_can_run): Add argument.
4691 (update_current_target): Update.
4692 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4693 * inf-child.c (inf_child_can_run): Add 'self' argument.
4694 * go32-nat.c (go32_can_run): Add 'self' argument.
4696 2014-02-19 Tom Tromey <tromey@redhat.com>
4698 * target.h (struct target_ops) <to_has_exited>: Add argument.
4699 (target_has_exited): Add argument.
4700 * target.c (debug_to_has_exited): Add argument.
4701 (update_current_target): Update.
4703 2014-02-19 Tom Tromey <tromey@redhat.com>
4705 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4707 (target_set_syscall_catchpoint): Add argument.
4708 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4710 * target.c (update_current_target): Update.
4712 2014-02-19 Tom Tromey <tromey@redhat.com>
4714 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4716 (target_remove_exec_catchpoint): Add argument.
4717 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4718 (update_current_target): Update.
4719 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4722 2014-02-19 Tom Tromey <tromey@redhat.com>
4724 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4726 (target_insert_exec_catchpoint): Add argument.
4727 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4728 (update_current_target): Update.
4729 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4736 (target_remove_vfork_catchpoint): Add argument.
4737 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4738 (update_current_target): Update.
4739 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4742 2014-02-19 Tom Tromey <tromey@redhat.com>
4744 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4746 (target_insert_vfork_catchpoint): Add argument.
4747 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4748 (update_current_target): Update.
4749 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4752 2014-02-19 Tom Tromey <tromey@redhat.com>
4754 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4756 (target_remove_fork_catchpoint): Add argument.
4757 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4758 (update_current_target): Update.
4759 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4762 2014-02-19 Tom Tromey <tromey@redhat.com>
4764 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4766 (target_insert_fork_catchpoint): Add argument.
4767 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4768 (update_current_target): Update.
4769 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4772 2014-02-19 Tom Tromey <tromey@redhat.com>
4774 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4776 (target_post_startup_inferior): Add argument.
4777 * target.c (debug_to_post_startup_inferior): Add argument.
4778 (update_current_target): Update.
4779 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4781 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4783 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4785 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4787 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4789 (super_post_startup_inferior): Likewise.
4790 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4792 (super_post_startup_inferior): Likewise.
4793 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4794 Add 'self' argument.
4795 (super_post_startup_inferior): Likewise.
4797 2014-02-19 Tom Tromey <tromey@redhat.com>
4799 * target.h (struct target_ops) <to_load>: Add argument.
4800 * target.c (target_load): Add argument.
4801 (debug_to_load): Add argument.
4802 (update_current_target): Update.
4803 * remote.c (remote_load): Add 'self' argument.
4804 * remote-sim.c (gdbsim_load): Add 'self' argument.
4805 * remote-mips.c (mips_load): Add 'self' argument.
4806 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4807 * monitor.c (monitor_load): Add 'self' argument.
4808 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4810 2014-02-19 Tom Tromey <tromey@redhat.com>
4812 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4813 (target_terminal_info): Add argument.
4814 * target.c (debug_to_terminal_info): Add argument.
4815 (default_terminal_info): Likewise.
4816 * inflow.c (child_terminal_info): Add 'self' argument.
4817 * inferior.h (child_terminal_info): Add 'self' argument.
4818 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4824 (target_terminal_save_ours): Add argument.
4825 * target.c (debug_to_terminal_save_ours): Add argument.
4826 (update_current_target): Update.
4827 * inflow.c (terminal_save_ours): Add 'self' argument.
4828 * inferior.h (terminal_save_ours): Add 'self' argument.
4830 2014-02-19 Tom Tromey <tromey@redhat.com>
4832 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4833 (target_terminal_ours): Add argument.
4834 * target.c (debug_to_terminal_ours): Add argument.
4835 (update_current_target): Update.
4836 * remote.c (remote_terminal_ours): Add 'self' argument.
4837 (remote_close): Update.
4838 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4839 * inflow.c (terminal_ours): Add 'self' argument.
4840 * inferior.h (terminal_ours): Add 'self' argument.
4841 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4843 2014-02-19 Pedro Alves <palves@redhat.com>
4844 Tom Tromey <tromey@redhat.com>
4846 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4848 (target_terminal_ours_for_output): Add argument.
4849 * target.c (debug_to_terminal_ours_for_output): Add argument.
4850 (update_current_target): Update.
4851 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4852 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4853 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4855 2014-02-19 Tom Tromey <tromey@redhat.com>
4857 * target.h (struct target_ops) <to_terminal_inferior>: Add
4859 * target.c (target_terminal_inferior): Add argument.
4860 (update_current_target): Update.
4861 * remote.c (remote_terminal_inferior): Add 'self' argument.
4862 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4863 * inflow.c (terminal_inferior): Add 'self' argument.
4864 * inferior.h (terminal_inferior): Add 'self' argument.
4865 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4866 (go32_terminal_inferior): Add 'self' argument.
4868 2014-02-19 Tom Tromey <tromey@redhat.com>
4870 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4871 (target_terminal_init): Add argument.
4872 * target.c (debug_to_terminal_init): Add argument.
4873 (update_current_target): Update.
4874 * inflow.c (terminal_init_inferior): Add 'self' argument.
4875 * inferior.h (terminal_init_inferior): Add 'self' argument.
4876 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4877 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4879 2014-02-19 Tom Tromey <tromey@redhat.com>
4881 * target.h (struct target_ops)
4882 <to_can_accel_watchpoint_condition>: Add argument.
4883 (target_can_accel_watchpoint_condition): Add argument.
4884 * target.c (debug_to_can_accel_watchpoint_condition): Add
4886 (update_current_target): Update.
4887 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4890 2014-02-19 Tom Tromey <tromey@redhat.com>
4892 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4894 (target_region_ok_for_hw_watchpoint): Add argument.
4895 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4896 (default_region_ok_for_hw_watchpoint): Add argument.
4897 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4898 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4900 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4902 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4904 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4906 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4908 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4910 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4911 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4913 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4914 Add 'self' argument.
4916 2014-02-19 Tom Tromey <tromey@redhat.com>
4918 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4920 (target_insert_watchpoint): Add argument.
4921 * target.c (debug_to_insert_watchpoint): Add argument.
4922 (update_current_target): Update.
4923 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4924 * remote.c (remote_insert_watchpoint): Add 'self' argument.
4925 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
4926 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
4927 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
4928 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
4930 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
4931 (procfs_insert_hw_watchpoint): Add 'self' argument.
4932 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
4934 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
4936 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
4938 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
4939 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
4941 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
4944 2014-02-19 Tom Tromey <tromey@redhat.com>
4946 * target.h (struct target_ops) <to_remove_watchpoint>: Add
4948 (target_remove_watchpoint): Add argument.
4949 * target.c (debug_to_remove_watchpoint): Add argument.
4950 (update_current_target): Update.
4951 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
4952 * remote.c (remote_remove_watchpoint): Add 'self' argument.
4953 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
4954 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
4955 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
4956 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
4958 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
4959 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
4961 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
4963 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
4965 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
4966 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
4968 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
4971 2014-02-19 Tom Tromey <tromey@redhat.com>
4973 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
4975 (target_remove_hw_breakpoint): Add argument.
4976 * target.c (debug_to_remove_hw_breakpoint): Add argument.
4977 (update_current_target): Update.
4978 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
4979 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
4981 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
4982 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
4984 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4989 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
4991 (target_insert_hw_breakpoint): Add argument.
4992 * target.c (debug_to_insert_hw_breakpoint): Add argument.
4993 (update_current_target): Update.
4994 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
4995 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
4997 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
4998 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
4999 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5001 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5004 2014-02-19 Tom Tromey <tromey@redhat.com>
5006 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5008 (target_can_use_hardware_watchpoint): Add argument.
5009 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5010 (update_current_target): Update.
5011 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5013 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5015 * remote.c (remote_check_watch_resources): Add 'self' argument.
5016 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5017 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5019 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5020 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5022 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5024 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5026 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5028 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5030 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5032 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5033 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5035 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target.h (struct target_ops) <to_post_attach>: Add argument.
5041 (target_post_attach): Add argument.
5042 * target.c (debug_to_post_attach): Add argument.
5043 (update_current_target): Update.
5044 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5045 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5046 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5047 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5048 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5050 2014-02-19 Tom Tromey <tromey@redhat.com>
5052 * windows-nat.c (windows_close): Add 'self' argument.
5053 * tracepoint.c (tfile_close): Add 'self' argument.
5054 * target.h (struct target_ops) <to_close>: Add argument.
5055 * target.c (target_close): Add argument.
5056 (update_current_target): Update.
5057 * remote.c (remote_close): Add 'self' argument.
5058 * remote-sim.c (gdbsim_close): Add 'self' argument.
5059 * remote-mips.c (mips_close): Add 'self' argument.
5060 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5061 * record-full.c (record_full_close): Add 'self' argument.
5062 * record-btrace.c (record_btrace_close): Add 'self' argument.
5063 * monitor.h (monitor_close): Add 'self' argument.
5064 * monitor.c (monitor_close): Add 'self' argument.
5065 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5066 * linux-nat.c (linux_nat_close): Add argument.
5067 * go32-nat.c (go32_close): Add 'self' argument.
5068 * exec.c (exec_close_1): Add 'self' argument.
5069 * ctf.c (ctf_close): Add 'self' argument.
5070 * corelow.c (core_close): Add 'self' argument.
5071 (core_close_cleanup): Update.
5072 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5073 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5075 2014-02-19 Tom Tromey <tromey@redhat.com>
5077 * remote.c (remote_load): New function.
5078 (init_remote_ops): Use it.
5080 2014-02-19 Tom Tromey <tromey@redhat.com>
5082 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5084 * common/linux-btrace.h (linux_supports_btrace): Update.
5085 * remote.c (remote_supports_btrace): Add "self" argument.
5086 * target-delegates.c: Rebuild.
5087 * target.c (target_supports_btrace): Remove.
5088 * target.h (struct target_ops) <to_supports_btrace>: Add
5089 target_ops argument.
5090 (target_supports_btrace): New define.
5092 2014-02-19 Tom Tromey <tromey@redhat.com>
5094 * record-full.c (record_full_beneath_to_resume_ops)
5095 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5096 (record_full_beneath_to_wait)
5097 (record_full_beneath_to_store_registers_ops)
5098 (record_full_beneath_to_store_registers)
5099 (record_full_beneath_to_xfer_partial_ops)
5100 (record_full_beneath_to_xfer_partial)
5101 (record_full_beneath_to_insert_breakpoint_ops)
5102 (record_full_beneath_to_insert_breakpoint)
5103 (record_full_beneath_to_remove_breakpoint_ops)
5104 (record_full_beneath_to_remove_breakpoint)
5105 (record_full_beneath_to_stopped_by_watchpoint)
5106 (record_full_beneath_to_stopped_data_address)
5107 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5108 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5109 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5110 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5111 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5112 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5113 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5114 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5115 (record_full_resume, record_full_wait_1)
5116 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5117 (record_full_store_registers, record_full_xfer_partial)
5118 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5119 (record_full_async, record_full_core_xfer_partial): Use target
5121 * target-delegates.c: Rebuild.
5122 * target.c (current_xfer_partial): Remove.
5123 (update_current_target): Do not INHERIT or de_fault
5124 to_insert_breakpoint, to_remove_breakpoint,
5125 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5126 to_is_async_p, to_async. Do not set to_xfer_partial field.
5127 (default_xfer_partial): Simplify.
5128 (current_xfer_partial): Remove.
5129 (target_wait, target_resume): Simplify.
5130 (find_default_can_async_p, find_default_is_async_p): Update.
5131 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5132 to_xfer_partial, to_stopped_by_watchpoint,
5133 to_stopped_data_address.
5134 (target_store_registers): Simplify.
5135 (forward_target_remove_breakpoint)
5136 (forward_target_insert_breakpoint): Remove.
5137 (target_remove_breakpoint, target_insert_breakpoint)
5138 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5139 * target.h (struct target_ops) <to_resume, to_wait,
5140 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5141 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5142 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5144 (forward_target_remove_breakpoint)
5145 (forward_target_insert_breakpoint): Remove.
5146 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5148 (record_btrace_insert_breakpoint): Delegate directly.
5150 2014-02-19 Tom Tromey <tromey@redhat.com>
5153 * target-delegates.c: New file.
5154 * target.c: Include target-delegates.c.
5155 (init_dummy_target): Call install_dummy_methods.
5156 (complete_target_initialization): Call install_delegators.
5157 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5158 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5159 * make-target-delegates: New file.
5161 2014-02-19 Tom Tromey <tromey@redhat.com>
5163 * record.c (find_record_target): Use find_target_at.
5164 * target.c (find_target_at): New function.
5165 * target.h (find_target_at): Declare.
5167 2014-02-19 Tom Tromey <tromey@redhat.com>
5169 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5171 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5173 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5174 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5176 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5178 * linux-nat.c (save_sigtrap): Update.
5179 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5180 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5181 (linux_nat_close): Update.
5182 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5184 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5186 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5187 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5188 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5189 (tmp_to_async): Add 'ops' argument.
5190 (record_full_stopped_by_watchpoint, record_full_async)
5191 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5193 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5194 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5195 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5196 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5197 (remote_is_async_p, remote_async): Add 'ops' argument.
5198 (remote_stopped_data_address): Update.
5199 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5200 * target.c (update_current_target)
5201 (find_default_can_async_p, find_default_is_async_p): Update.
5202 (init_dummy_target): Update.
5203 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5204 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5205 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5206 (target_can_async_p, target_is_async_p, target_async)
5207 (target_stopped_by_watchpoint): Update.
5209 2014-02-19 Yao Qi <yao@codesourcery.com>
5212 * gdbarch.sh: Remove startup_gdbarch.
5213 * gdbarch.c: Regenerated.
5214 * gdbarch.h: Likewise.
5216 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5218 * rl78-tdep.c (rl78_g10_register_name): New function.
5219 (rl78_return_value): Add g10 support.
5220 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5223 2014-02-17 Doug Evans <xdje42@gmail.com>
5225 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5226 (SUBDIR_GUILE_SRCS): Ditto.
5227 (scm-gsmob.o): Ditto.
5229 2014-02-17 Yao Qi <yao@codesourcery.com>
5231 * gnu-nat.c (ILL_RPC): Declare defined function.
5233 2014-02-17 Yao Qi <yao@codesourcery.com>
5235 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5236 mach_msg_type_number_t.
5237 (gnu_write_inferior): Likewise.
5239 2014-02-17 Yao Qi <yao@codesourcery.com>
5241 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5243 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5244 (inf_validate_procs, inf_signal): Likewise.
5245 (S_exception_raise_request): Likewise.
5246 (do_mach_notify_dead_name): Likewise.
5247 (steal_exc_port): Likewise.
5248 (gnu_read_inferior): Change 'copy_count''s type to
5249 mach_msg_type_number_t.
5250 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5253 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5255 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5256 flag. Adjust all users; in particular...
5257 (gnu_wait): ..., don't decrement its value in here...
5258 (gnu_create_inferior): ..., and instead set the flag in here,
5259 around the startup_inferior call, and call that one with
5260 START_INFERIOR_TRAPS_EXPECTED.
5262 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5263 (ILL_RPC): ... new macro.
5264 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5265 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5266 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5267 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5268 functions with ILL_RPC macro.
5269 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5270 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5271 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5272 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5273 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5274 (S_proc_getlogin_reply, S_proc_getsid_reply)
5275 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5276 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5277 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5278 (S_proc_getnports_reply, S_proc_is_important_reply)
5279 (S_proc_get_code_reply): New stub functions, generated with
5282 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5283 collected the type check structures.
5285 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5287 2014-02-14 Doug Evans <dje@google.com>
5289 * target.c (target_write_partial): Fix result type.
5291 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5293 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5294 the proper offsets to access fpregset_t.
5296 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5298 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5299 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5300 * h8300-tdep.c (setmachinelist): Remove global.
5301 * hppa-tdep.c (hppa_sigtramp): Remove global.
5302 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5303 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5304 * ravenscar-thread.c (update_target_observer): Remove global.
5305 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5307 2014-02-12 Tom Tromey <tromey@redhat.com>
5309 * common/rsp-low.c: Update comments.
5310 * common/rsp-low.h: Update comments.
5312 2014-02-12 Tom Tromey <tromey@redhat.com>
5314 * common/rsp-low.c (convert_ascii_to_int): Remove.
5315 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5317 2014-02-12 Tom Tromey <tromey@redhat.com>
5319 * common/rsp-low.h (unhexify): Don't declare.
5320 * common/rsp-low.c (unhexify): Remove.
5322 2014-02-12 Tom Tromey <tromey@redhat.com>
5324 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5325 * common/rsp-low.c (convert_int_to_ascii): Remove.
5327 2014-02-12 Tom Tromey <tromey@redhat.com>
5329 * common/rsp-low.h (hexify): Don't declare.
5330 * common/rsp-low.c (hexify): Remove.
5332 2014-02-12 Tom Tromey <tromey@redhat.com>
5334 * common/rsp-low.c (hexify): Never take strlen of argument.
5336 2014-02-12 Tom Tromey <tromey@redhat.com>
5338 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5339 * remote.c (extended_remote_run, remote_rcmd)
5340 (remote_download_trace_state_variable, remote_save_trace_data)
5341 (remote_set_trace_notes): Update.
5342 * tracepoint.c (encode_source_string, tfile_write_status)
5343 (tfile_write_uploaded_tsv): Update.
5345 2014-02-12 Tom Tromey <tromey@redhat.com>
5347 * tracepoint.c: Include rsp-low.h.
5348 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5349 * remote.c: Include rsp-low.h.
5350 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5351 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5352 (remote_unescape_input): Move to common/rsp-low.c.
5353 * common/rsp-low.h: New file.
5354 * common/rsp-low.c: New file.
5355 * Makefile.in (SFILES): Add common/rsp-low.c.
5356 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5357 (COMMON_OBS): Add rsp-low.o.
5358 (rsp-low.o): New target.
5360 2014-02-12 Tom Tromey <tromey@redhat.com>
5362 * utils.h: Include print-utils.h.
5363 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5364 (int_string, core_addr_to_string, core_addr_to_string_nz)
5365 (hex_string, hex_string_custom): Don't declare.
5366 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5367 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5368 (hex_string_custom, int_string, core_addr_to_string)
5369 (core_addr_to_string_nz, host_address_to_string): Move to
5370 common/print-utils.c.
5371 * common/print-utils.h: New file.
5372 * common/print-utils.c: New file
5373 * Makefile.in (SFILES): Add common/print-utils.c.
5374 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5375 (COMMON_OBS): Add print-utils.o.
5376 (print-utils.o): New target.
5378 2014-02-12 Tom Tromey <tromey@redhat.com>
5380 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5382 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5384 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5386 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5388 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5389 if a PT_IO ptrace request returns sucessfully but indicates that 0
5390 bytes were transferred.
5392 2014-02-12 Pedro Alves <palves@redhat.com>
5393 Kevin Buettner <kevinb@redhat.com>
5395 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5396 TYPE_INSTANCE_FLAG_CODE_SPACE.
5398 2014-02-12 Pedro Alves <palves@redhat.com>
5400 * h8300-tdep.c (pseudo_from_raw_register)
5401 (raw_from_pseudo_register): New functions.
5402 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5405 2014-02-12 Pedro Alves <palves@redhat.com>
5407 * h8300-tdep.c (h8300_register_sim_regno): New function.
5408 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5409 gdbarch_register_sim_regno hook.
5411 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5413 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5415 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5417 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5419 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5421 * obsd-tdep.h (obsd_init_abi): New prototype.
5422 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5423 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5424 (obsd_init_abi): New functions.
5425 * i386obsd-tdep.c: Include "obsd-tdep.h".
5426 (i386obsd_init_abi): Call obsd_init_abi.
5427 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5428 (amd64obsd_init_abi): Call obsd_init_abi.
5429 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5430 obsd-tdep.c to gdb_target_obs.
5432 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5434 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5435 double float arguments to 16-byte in the argument slots.
5437 2014-02-11 Doug Evans <xdje42@gmail.com>
5439 * configure.ac: Don't crash if pkg-config is not found and guile
5440 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5442 * configure: Regenerate.
5444 2014-02-11 Yao Qi <yao@codesourcery.com>
5446 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5447 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5448 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5449 * gnu-nat.c (gnu_xfer_memory): Likewise.
5450 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5451 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5452 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5453 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5455 2014-02-11 Yao Qi <yao@codesourcery.com>
5457 * target.h (enum target_xfer_error): Rename to ...
5458 (enum target_xfer_status): ... it. New. All users updated.
5459 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5461 (TARGET_XFER_STATUS_ERROR_P): New macro.
5462 (target_xfer_error_to_string): Remove declaration.
5463 (target_xfer_status_to_string): Declare.
5464 (target_xfer_partial_ftype): Adjust it.
5465 (struct target_ops) <to_xfer_partial>: Return
5466 target_xfer_status. Add argument xfered_len. Update
5468 * target.c (target_xfer_error_to_string): Rename to ...
5469 (target_xfer_status_to_string): ... it. New. All callers
5471 (target_read_live_memory): Likewise. Call target_xfer_partial
5472 instead of target_read.
5473 (memory_xfer_live_readonly_partial): Return
5474 target_xfer_status. Add argument xfered_len.
5475 (raw_memory_xfer_partial): Likewise.
5476 (memory_xfer_partial_1): Likewise.
5477 (memory_xfer_partial): Likewise.
5478 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5479 properly. Update debug message.
5480 (default_xfer_partial, current_xfer_partial): Likewise.
5481 (target_write_partial): Likewise.
5482 (target_read_partial): Likewise. All callers updated.
5483 (read_whatever_is_readable): Likewise.
5484 (target_write_with_progress): Likewise.
5485 (target_read_alloc_1): Likewise.
5487 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5488 * auxv.c (procfs_xfer_auxv): Likewise.
5489 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5490 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5491 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5492 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5493 * corefile.c (read_memory): Adjust.
5494 * corelow.c (core_xfer_partial): Likewise.
5495 * ctf.c (ctf_xfer_partial): Likewise.
5496 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5498 (darwin_xfer_partial): Likewise.
5499 * exec.c (section_table_xfer_memory_partial): Likewise. All
5501 (exec_xfer_partial): Likewise.
5502 * exec.h (section_table_xfer_memory_partial): Update
5504 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5506 (gnu_xfer_partial): Likewise.
5507 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5508 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5509 (ia64_hpux_xfer_solib_got): Likewise.
5510 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5511 type of 'partial_len' to ULONGEST.
5512 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5513 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5514 (linux_nat_xfer_partial): Likewise.
5515 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5516 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5517 * monitor.c (monitor_xfer_memory): Likewise.
5518 (monitor_xfer_partial): Likewise.
5519 * procfs.c (procfs_xfer_partial): Likewise.
5520 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5521 * record-full.c (record_full_xfer_partial): Likewise.
5522 (record_full_core_xfer_partial): Likewise.
5523 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5524 (gdbsim_xfer_partial): Likewise.
5525 * remote.c (remote_write_bytes_aux): Likewise. All callers
5527 (remote_write_bytes, remote_read_bytes): Likewise. All
5529 (remote_flash_erase): Likewise. All callers updated.
5530 (remote_write_qxfer): Likewise. All callers updated.
5531 (remote_read_qxfer): Likewise. All callers updated.
5532 (remote_xfer_partial): Likewise.
5533 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5534 (rs6000_xfer_shared_libraries): Likewise.
5535 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5536 (sol_thread_xfer_partial): Likewise.
5537 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5538 (sparc_xfer_partial): Likewise.
5539 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5541 (spu_xfer_partial): Likewise.
5542 * spu-multiarch.c (spu_xfer_partial): Likewise.
5543 * tracepoint.c (tfile_xfer_partial): Likewise.
5544 * windows-nat.c (windows_xfer_memory): Likewise.
5545 (windows_xfer_shared_libraries): Likewise.
5546 (windows_xfer_partial): Likewise.
5547 * valprint.c: Replace 'target_xfer_error' with
5548 'target_xfer_status' in comments.
5550 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5552 Checked in by Joel Brobecker <brobecker@adacore.com>.
5553 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5555 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5557 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5558 function parameters.
5560 2014-02-10 Will Newton <will.newton@linaro.org>
5562 * elfread.c (elf_rel_plt_read): Look for a .got section if
5563 looking up .got.plt fails.
5564 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5565 on address passed to elf_gnu_ifunc_record_cache.
5566 (elf_gnu_ifunc_resolve_addr): Likewise.
5567 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5569 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5571 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5572 (X_RETTURN): New macro.
5573 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5575 * sparc64-tdep.c (sparc64_init_abi): Hook
5576 sparc_in_function_epilogue_p.
5578 2014-02-10 Gary Benson <gbenson@redhat.com>
5580 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5581 Rename name_matcher to symbol_matcher.
5583 2014-02-10 Gary Benson <gbenson@redhat.com>
5585 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5586 Use expand_symtabs_file_matcher_ftype and
5587 expand_symtabs_symbol_matcher_ftype.
5589 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5591 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5592 (struct ada_symbol_cache): New.
5593 (ada_free_symbol_cache): Forward declare.
5594 (struct ada_pspace_data): New.
5595 (ada_pspace_data_handle): New static global.
5596 (get_ada_pspace_data, ada_pspace_data_cleanup)
5597 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5598 (cache_space, cache): Delete, now folded inside struct
5600 (ada_get_symbol_cache): New function.
5601 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5603 (_initialize_ada_language): Remove initialization of cache_space.
5604 Move call to observer_attach_inferior_exit up, grouping it
5605 with the other observer registrations inside this function.
5606 Rename command to be more general. Add call to
5607 register_program_space_data_with_cleanup.
5609 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5611 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5612 ada_new_objfile_observer.
5613 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5614 (_initialize_tasks): Update uses of ada_new_objfile_observer
5615 and ada_tasks_normal_stop_observer.
5617 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5619 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5620 returned by the 'Length attribute to integer.
5622 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5624 * ada-lang.c (_initialize_ada_language): Initialize
5625 cache_space obstack.
5627 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5629 * ada-lang.c (HASH_SIZE): New macro.
5630 (struct cache_entry): New type.
5631 (cache_space, cache): New static globals.
5632 (ada_clear_symbol_cache, find_entry): New functions.
5633 (lookup_cached_symbol, cache_symbol): Implement.
5634 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5635 (_initialize_ada_language): Attach ada_new_objfile_observer
5636 and ada_free_objfile_observer.
5638 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5640 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5641 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5642 struct block * parameter.
5643 (ada_lookup_symbol_list_worker): Constify local variable "block".
5644 Remove cast which is no longer necessary.
5646 2014-02-10 Doug Evans <xdje42@gmail.com>
5648 Add Guile as an extension language.
5649 * NEWS: Mention Guile scripting.
5650 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5651 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5652 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5653 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5654 (CLIBS): Add GUILE_LIBS.
5655 (install-guile): New rule.
5656 (guile.o): New rule.
5657 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5658 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5659 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5660 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5661 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5662 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5663 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5664 * configure.ac: New option --with-guile.
5665 * configure: Regenerate.
5666 * config.in: Regenerate.
5667 * auto-load.c: Remove #include "python/python.h". Add #include
5668 "gdb/section-scripts.h".
5669 (source_section_scripts): Handle Guile scripts.
5670 (_initialize_auto_load): Add name of Guile objfile script to
5671 scripts-directory help text.
5672 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5673 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5674 (struct breakpoint): New member scm_bp_object.
5675 * defs.h (enum command_control_type): New value guile_control.
5676 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5678 (show_user): Update comment.
5679 (_initialize_cli_cmds): Update help text for "show user". Update help
5680 text for max-user-call-depth.
5681 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5683 (multi_line_command_p): Add guile_control.
5684 (print_command_lines): Handle guile_control.
5685 (execute_control_command, recurse_read_control_structure): Ditto.
5686 (process_next_line): Recognize "guile" commands.
5687 * disasm.c (gdb_disassemble_info): Make non-static.
5688 * disasm.h: #include "dis-asm.h".
5689 (struct gdbarch): Add forward decl.
5690 (gdb_disassemble_info): Declare.
5691 * extension.c: #include "guile/guile.h".
5692 (extension_languages): Add guile.
5693 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5694 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5695 * gdbtypes.c (get_unsigned_type_max): New function.
5696 (get_signed_type_minmax): New function.
5697 * gdbtypes.h (get_unsigned_type_max): Declare.
5698 (get_signed_type_minmax): Declare.
5699 * guile/README: New file.
5700 * guile/guile-internal.h: New file.
5701 * guile/guile.c: New file.
5702 * guile/guile.h: New file.
5703 * guile/scm-arch.c: New file.
5704 * guile/scm-auto-load.c: New file.
5705 * guile/scm-block.c: New file.
5706 * guile/scm-breakpoint.c: New file.
5707 * guile/scm-disasm.c: New file.
5708 * guile/scm-exception.c: New file.
5709 * guile/scm-frame.c: New file.
5710 * guile/scm-gsmob.c: New file.
5711 * guile/scm-iterator.c: New file.
5712 * guile/scm-lazy-string.c: New file.
5713 * guile/scm-math.c: New file.
5714 * guile/scm-objfile.c: New file.
5715 * guile/scm-ports.c: New file.
5716 * guile/scm-pretty-print.c: New file.
5717 * guile/scm-safe-call.c: New file.
5718 * guile/scm-string.c: New file.
5719 * guile/scm-symbol.c: New file.
5720 * guile/scm-symtab.c: New file.
5721 * guile/scm-type.c: New file.
5722 * guile/scm-utils.c: New file.
5723 * guile/scm-value.c: New file.
5724 * guile/lib/gdb.scm: New file.
5725 * guile/lib/gdb/boot.scm: New file.
5726 * guile/lib/gdb/experimental.scm: New file.
5727 * guile/lib/gdb/init.scm: New file.
5728 * guile/lib/gdb/iterator.scm: New file.
5729 * guile/lib/gdb/printing.scm: New file.
5730 * guile/lib/gdb/types.scm: New file.
5731 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5732 (VPATH): Add $(GUILE_SRCDIR).
5733 (GUILE_DIR): New variable.
5734 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5735 (all): Add stamp-guile dependency.
5736 (stamp-guile): New rule.
5737 (clean-guile, install-guile, uninstall-guile): New rules.
5738 (install-only): Add install-guile dependency.
5739 (uninstall): Add uninstall-guile dependency.
5740 (clean): Add clean-guile dependency.
5742 2014-02-09 Doug Evans <xdje42@gmail.com>
5744 Revert this patch (which I approved, mea culpa).
5746 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5748 * Makefile.in (all-lib): Remove.
5749 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5751 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5753 Fix Python stack corruption.
5754 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5757 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5759 * Makefile.in (all-lib): Remove.
5760 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5762 2014-02-07 Doug Evans <dje@google.com>
5764 * extension-priv.h (extension_language_script_ops): Add comment.
5765 (extension_language_ops): Add comment.
5766 (active_ext_lang_state): Fix typo in comment.
5768 2014-02-07 Pedro Alves <palves@redhat.com>
5770 PR breakpoints/16292
5771 * infrun.c (handle_signal_stop) <signal arrives while stepping
5772 over a breakpoint>: Switch back to the stepping thread.
5774 2014-02-07 Yao Qi <yao@codesourcery.com>
5776 * target.c (target_xfer_partial): Return zero if LEN is zero.
5778 2014-02-07 Yao Qi <yao@codesourcery.com>
5780 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5781 (ld_so_xfer_auxv): Likewise.
5782 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5783 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5784 * corelow.c (core_xfer_partial): Likewise.
5785 * ctf.c (ctf_xfer_partial): Likewise.
5786 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5787 (darwin_xfer_partial): Likewise.
5788 * exec.c (exec_xfer_partial): Likewise.
5789 * gnu-nat.c (gnu_xfer_partial): Likewise.
5790 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5791 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5792 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5793 * linux-nat.c (linux_xfer_siginfo): Likewise.
5794 (linux_proc_xfer_spu): Likewise.
5795 * procfs.c (procfs_xfer_partial): Likewise.
5796 * record-full.c (record_full_xfer_partial): Likewise.
5797 (record_full_core_xfer_partial): Likewise.
5798 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5799 * remote.c (remote_write_qxfer): Likewise.
5800 (remote_write_qxfer, remote_read_qxfer): Likewise.
5801 (remote_xfer_partial): Likewise.
5802 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5803 (rs6000_xfer_shared_libraries): Likewise.
5804 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5805 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5806 (spu_xfer_partial): Likewise.
5807 * target.c (memory_xfer_partial_1): Likewise.
5808 * tracepoint.c (tfile_xfer_partial): Likewise.
5809 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5810 (windows_xfer_partial): Likewise.
5812 2014-02-07 Yao Qi <yao@codesourcery.com>
5814 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5816 (core_xfer_shared_libraries_aix): Likewise.
5817 * gdbarch.c, gdbarch.h: Regenerated.
5818 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5819 ULONGEST. Change 'len_avail' type to ULONGEST.
5820 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5821 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5823 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5825 2014-02-07 Yao Qi <yao@codesourcery.com>
5827 * corefile.c (memory_error): Get 'exception' from ERR and pass
5828 'exception' to throw_error.
5830 2014-02-06 Doug Evans <xdje42@gmail.com>
5832 * configure.ac (libpython checking): Remove all but python.o from
5833 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5834 * configure: Regenerate.
5836 * Makefile.in (SFILES): Add extension.c.
5837 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5838 (COMMON_OBS): Add extension.o.
5839 * extension.h: New file.
5840 * extension-priv.h: New file.
5841 * extension.c: New file.
5843 * python/python-internal.h: #include "extension.h".
5844 (gdbpy_auto_load_enabled): Declare.
5845 (gdbpy_apply_val_pretty_printer): Declare.
5846 (gdbpy_apply_frame_filter): Declare.
5847 (gdbpy_preserve_values): Declare.
5848 (gdbpy_breakpoint_cond_says_stop): Declare.
5849 (gdbpy_breakpoint_has_cond): Declare.
5850 (void source_python_script_for_objfile): Delete.
5851 * python/python.c: #include "extension-priv.h".
5852 Delete inclusion of "observer.h".
5853 (extension_language_python): Moved here and renamed from
5854 script_language_python in py-auto-load.c.
5855 Redefined to be of type extension_language_defn.
5856 (python_extension_script_ops): New global.
5857 (python_extension_ops): New global.
5858 (struct python_env): New member previous_active.
5859 (restore_python_env): Call restore_active_ext_lang.
5860 (ensure_python_env): Call set_active_ext_lang.
5861 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5863 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5865 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5867 (gdbpy_eval_from_control_command): Renamed from
5868 eval_python_from_control_command, made static. New arg extlang.
5869 (gdbpy_source_script) Renamed from source_python_script, made static.
5871 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5872 result to int. New arg extlang.
5873 (gdbpy_source_objfile_script): Renamed from
5874 source_python_script_for_objfile, made static. New arg extlang.
5875 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5876 static. New args extlang, extlang_printers. Change result type to
5878 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5879 static. New arg extlang. Rename arg printers to extlang_printers
5880 and change type to ext_lang_type_printers *.
5881 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5882 static. Replace argument arg with extlang, extlang_printers.
5883 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5884 (!HAVE_PYTHON, source_python_script): Delete.
5885 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5886 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5887 (!HAVE_PYTHON, start_type_printers): Delete.
5888 (!HAVE_PYTHON, apply_type_printers): Delete.
5889 (!HAVE_PYTHON, free_type_printers): Delete.
5890 (_initialize_python): Delete call to observer_attach_before_prompt.
5891 (finalize_python): Set/restore active extension language.
5892 (gdbpy_finish_initialization) Renamed from
5893 finish_python_initialization, made static. New arg extlang.
5894 (gdbpy_initialized): New function.
5895 * python/python.h: #include "extension.h". Delete #include
5896 "value.h", "mi/mi-cmds.h".
5897 (extension_language_python): Declare.
5898 (GDBPY_AUTO_FILE_NAME): Delete.
5899 (enum py_bt_status): Moved to extension.h and renamed to
5901 (enum frame_filter_flags): Moved to extension.h.
5902 (enum py_frame_args): Moved to extension.h and renamed to
5903 ext_lang_frame_args.
5904 (finish_python_initialization): Delete.
5905 (eval_python_from_control_command): Delete.
5906 (source_python_script): Delete.
5907 (apply_val_pretty_printer): Delete.
5908 (apply_frame_filter): Delete.
5909 (preserve_python_values): Delete.
5910 (gdbpy_script_language_defn): Delete.
5911 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5912 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5914 * auto-load.c: #include "extension.h".
5915 (GDB_AUTO_FILE_NAME): Delete.
5916 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5917 (script_language_gdb): Delete, moved to extension.c and renamed to
5918 extension_language_gdb.
5919 (source_gdb_script_for_objfile): Delete.
5920 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5921 (loaded_script): Change type of language member to
5922 struct extension_language_defn *.
5923 (init_loaded_scripts_info): Initialize
5924 unsupported_script_warning_printed.
5925 (maybe_add_script): Make static. Change type of language arg to
5926 struct extension_language_defn *.
5927 (clear_section_scripts): Reset unsupported_script_warning_printed.
5928 (auto_load_objfile_script_1): Rewrite to use extension language API.
5929 (auto_load_objfile_script): Make public. Remove support-compiled-in
5930 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
5931 (source_section_scripts): Rewrite to use extension language API.
5932 (load_auto_scripts_for_objfile): Rewrite to use
5933 auto_load_scripts_for_objfile.
5934 (collect_matching_scripts_data): Change type of language member to
5935 struct extension_language_defn *.
5936 (auto_load_info_scripts): Change type of language arg to
5937 struct extension_language_defn *.
5938 (unsupported_script_warning_print): New function.
5939 (script_not_found_warning_print): Make static.
5940 (_initialize_auto_load): Rewrite construction of scripts-directory
5942 * auto-load.h (struct objfile): Add forward decl.
5943 (struct script_language): Delete.
5944 (struct auto_load_pspace_info): Add forward decl.
5945 (struct extension_language_defn): Add forward decl.
5946 (maybe_add_script): Delete.
5947 (auto_load_objfile_script): Declare.
5948 (script_not_found_warning_print): Delete.
5949 (auto_load_info_scripts): Update prototype.
5950 (auto_load_gdb_scripts_enabled): Declare.
5951 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
5952 auto_load_python_scripts_enabled and made public.
5953 (script_language_python): Delete, moved to python.c.
5954 (gdbpy_script_language_defn): Delete.
5955 (info_auto_load_python_scripts): Update to use
5956 extension_language_python.
5958 * breakpoint.c (condition_command): Replace call to
5959 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
5960 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
5961 with call to breakpoint_ext_lang_cond_says_stop.
5962 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
5963 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
5964 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
5965 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
5967 (local_setattro): Print name of extension language with existing
5970 * valprint.c (val_print, value_print): Update to call
5971 apply_ext_lang_val_pretty_printer.
5972 * cp-valprint.c (cp_print_value): Update call to
5973 apply_ext_lang_val_pretty_printer.
5974 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
5975 (gdbpy_apply_val_pretty_printer): Renamed from
5976 apply_val_pretty_printer. New arg extlang.
5977 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
5979 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
5980 extension language API.
5981 * cli/cli-script.c (execute_control_command): Update to call
5982 eval_ext_lang_from_control_command.
5984 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
5985 enum ext_lang_bt_status values. Update call to
5986 apply_ext_lang_frame_filter.
5987 (mi_cmd_stack_list_locals): Ditto.
5988 (mi_cmd_stack_list_args): Ditto.
5989 (mi_cmd_stack_list_variables): Ditto.
5990 * mi/mi-main.c: Delete #include "python/python-internal.h".
5991 Add #include "extension.h".
5992 (mi_cmd_list_features): Replace reference to python internal variable
5993 gdb_python_initialized with call to ext_lang_initialized_p.
5995 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
5996 Update to use enum ext_lang_frame_args. Update to call
5997 apply_ext_lang_frame_filter.
5998 * python/py-framefilter.c (extract_sym): Update to use enum
6000 (extract_value, py_print_type, py_print_value): Ditto.
6001 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6002 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6003 (py_print_frame): Ditto.
6004 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6005 New arg extlang. Update to use enum ext_lang_bt_status.
6007 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6008 finish_python_initialization. Replace with call to
6009 finish_ext_lang_initialization.
6011 * typeprint.c (do_free_global_table): Update to call
6012 free_ext_lang_type_printers.
6013 (create_global_typedef_table): Update to call
6014 start_ext_lang_type_printers.
6015 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6016 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6017 (type_print_options): Change type of global_printers from "void *"
6018 to "struct ext_lang_type_printers *".
6020 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6021 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6022 (gdbpy_preserve_values): Renamed from preserve_python_values.
6024 (!HAVE_PYTHON, preserve_python_values): Delete.
6026 * utils.c (quit_flag): Delete, moved to extension.c.
6027 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6030 * eval.c: Delete #include "python/python.h".
6031 * main.c: Delete #include "python/python.h".
6033 * defs.h: Update comment.
6035 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6039 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6041 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6044 2014-02-05 Yao Qi <yao@codesourcery.com>
6046 * remote.c (remote_pass_signals): Remove local 'buf' and use
6048 (remote_program_signals): Likewise.
6050 2014-02-05 Yao Qi <yao@codesourcery.com>
6052 * ctf.c: Include "inferior.h" and "gdbthread.h".
6053 (CTF_PID): A new macro.
6054 (ctf_open): Call inferior_appeared and add_thread_silent.
6055 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6056 (ctf_thread_alive): New function.
6057 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6059 2014-02-05 Yao Qi <yao@codesourcery.com>
6063 2013-05-24 Yao Qi <yao@codesourcery.com>
6065 * tracepoint.c (TFILE_PID): Remove.
6066 (tfile_open): Don't add thread and inferior.
6067 (tfile_close): Don't set 'inferior_ptid'. Don't call
6068 exit_inferior_silent.
6069 (tfile_thread_alive): Remove.
6070 (init_tfile_ops): Don't set field 'to_thread_alive' of
6073 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6075 * remote.c (remote_start_remote): Call remote_check_symbols even
6076 if only symbol-file (not file) has been given.
6078 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6080 * gdbarch.sh (skip_entrypoint): New callback.
6081 * gdbarch.c, gdbarch.h: Regenerate.
6082 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6083 * infrun.c (fill_in_stop_func): Likewise.
6084 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6085 (ppc_elfv2_elf_make_msymbol_special): New function.
6086 (ppc_elfv2_skip_entrypoint): Likewise.
6087 (ppc_linux_init_abi): Install them for ELFv2.
6089 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6091 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6092 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6093 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6094 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6095 structures returned in GPRs.
6097 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6099 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6100 offset to the stack parameter list for the ELFv2 ABI.
6102 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6104 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6105 set_gdbarch_convert_from_func_ptr_addr and
6106 set_gdbarch_elf_make_msymbol_special for ELFv1.
6107 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6108 function descriptors on ELFv1.
6109 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6110 set up r12 at function entry.
6112 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6114 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6115 (struct gdbarch_tdep): New member elf_abi.
6117 * rs6000-tdep.c: Include "elf/ppc64.h".
6118 (rs6000_gdbarch_init): Detect ELF ABI version.
6120 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6122 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6123 within a register pair holding a DFP 128-bit value on little-endian.
6124 (ppc64_sysv_abi_return_value_base): Likewise.
6125 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6126 (dfp_pseudo_register_write): Likewise.
6128 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6130 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6131 offset on little-endian when passing _Decimal32.
6132 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6134 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6136 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6137 of the overlapped FP register within the VSX register on little-
6139 (efpr_pseudo_register_write): Likewise.
6141 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6144 offset on little-endian when passing small structures.
6146 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6148 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6149 (struct ppc64_sysv_argpos): New data structure.
6150 (ppc64_sysv_abi_push_float): Remove.
6151 (ppc64_sysv_abi_push_val): New function.
6152 (ppc64_sysv_abi_push_integer): Likewise.
6153 (ppc64_sysv_abi_push_freg): Likewise.
6154 (ppc64_sysv_abi_push_vreg): Likewise.
6155 (ppc64_sysv_abi_push_param): Likewise.
6156 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6157 (ppc64_sysv_abi_return_value_base): New function.
6158 (ppc64_sysv_abi_return_value): Refactor to use it.
6160 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6162 * NEWS: Document new target powerpc64le-*-linux*.
6164 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6166 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6167 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6169 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6170 register set used in ELF core dumps. Add floating-point register set.
6172 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6174 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6175 dwarf2_to_gdb[] table using symbolic constants. Adjust
6176 penultimate entry from number representing the PC register
6177 to symbolic constant representing the MDR register. Add
6178 constant for the PC register to the end of the table.
6180 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6182 * bsd-kvm.c: Include <sys/param.h>
6184 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6186 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6188 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6190 * ada-lang.h (clear_ada_sym_cache): Delete.
6192 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6194 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6196 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6198 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6199 the sigreturn register save area only if the syscall is
6202 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6204 * valops.c (value_slice): Minor reformatting.
6206 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6208 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6210 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6212 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6214 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6215 (ada_ignore_descriptive_types_p): New static global.
6216 (find_parallel_type_by_descriptive_type): Return immediately
6217 if ada_ignore_descriptive_types_p is set.
6218 (_initialize_ada_language): Register new commands "maintenance
6219 set ada", "maintenance show ada", "maintenance set ada
6220 ignore-descriptive-types" and "maintenance show ada
6221 ignore-descriptive-types".
6222 * NEWS: Add entry for new "maint ada set/show
6223 ignore-descriptive-types" commands.
6225 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6227 * record-btrace.c (record_btrace_close): Call btrace_teardown
6230 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6232 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6235 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6237 * ada-typeprint (type_is_full_subrange_of_target_type):
6239 (print_range): Add parameter bounds_prefered_p. If not set,
6240 try printing range types using the name of their base type.
6241 (print_range_type): Add parameter bounds_prefered_p.
6242 Use it in call to print_range.
6243 (print_array_type, ada_print_type): Update calls to print_range
6244 and print_range_type.
6246 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6248 * ada-typeprint.c (print_array_type, print_choices, print_range)
6249 (print_range_bound, print_dynamic_range_bound, print_range_type):
6252 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6254 * ada-typeprint.c (print_range): Add missing empty line
6255 after local declaration.
6257 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6259 * ada-valprint.c (print_optional_low_bound): Get index_type's
6260 target type for as long as it is a TYPE_CODE_RANGE.
6262 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6264 * procfs.c (procfs_make_note_section): Remove assertion and
6267 2014-01-24 Yao Qi <yao@codesourcery.com>
6269 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6270 * corelow.c (get_core_siginfo): Likewise.
6272 2014-01-24 Yao Qi <yao@codesourcery.com>
6274 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6275 ULONGEST. Don't check 'len' is negative.
6276 (remote_write_bytes): Change type of 'len' to ULONGEST.
6278 2014-01-23 Tom Tromey <tromey@redhat.com>
6281 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6282 Handle exception from frame.block.
6283 (FrameVars.fetch_frame_locals): Likewise.
6285 2014-01-23 Tom Tromey <tromey@redhat.com>
6288 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6289 on a NULL pointer. Move "goto error" to correct place.
6291 2014-01-23 Tom Tromey <tromey@redhat.com>
6294 * python/py-framefilter.c (apply_frame_filter): Call
6295 ensure_python_env after computing gdbarch.
6297 2014-01-23 Yao Qi <yao@codesourcery.com>
6299 * target.c (raw_memory_xfer_partial): Change argument type
6300 from void * to gdb_byte *.
6301 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6303 2014-01-22 Doug Evans <dje@google.com>
6305 New gdbserver option --debug-format=timestamp.
6308 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6310 * syscalls/s390x-linux.xml: New file.
6311 * syscalls/s390-linux.xml: New file.
6312 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6313 (XML_SYSCALL_FILENAME_S390X): Likewise.
6314 (op_svc): New enum value for SVC opcode.
6315 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6316 (s390_linux_get_syscall_number): New function.
6317 (s390_gdbarch_init): Register '*get_syscall_number' and the
6318 syscall xml file name.
6319 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6320 "s390-linux.xml" and "s390x-linux.xml".
6321 * NEWS: Announce new feature.
6323 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6325 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6327 2014-01-22 Pedro Alves <palves@redhat.com>
6329 * xtensa-config.c: Include defs.h.
6331 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6333 * common/common-utils.h: Add "ARI:" comment beside __func__
6336 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6338 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6339 documentation a bit.
6341 2014-01-21 Roland McGrath <mcgrathr@google.com>
6343 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6344 * configure: Regenerate.
6345 * aclocal.m4: Regenerate.
6346 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6347 New substituted variables.
6348 (install-strip): New target.
6349 (INSTALL_SCRIPT): New substituted variable.
6350 (FLAGS_TO_PASS): Add it.
6351 (install-only): Use $(INSTALL_SCRIPT) rather than
6352 $(INSTALL_PROGRAM) for gcore.
6354 2014-01-20 Tom Tromey <tromey@redhat.com>
6356 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6359 2014-01-20 Tom Tromey <tromey@redhat.com>
6361 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6362 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6363 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6364 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6365 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6366 (struct cmd_list_element) <flags>: Remove.
6367 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6368 doc_allocated>: New fields.
6369 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6371 * maint.c (maintenance_do_deprecate): Update.
6372 * top.c (execute_command): Update.
6374 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6376 * xtensa-linux-nat.c: Include asm/ptrace.h.
6378 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6380 * Makefile.in (SFILES): Add d-support.c.
6381 (COMMON_OBS): Add d-support.o.
6382 * d-lang.h (d_parse_symbol): Add comment, now defined in
6384 * d-lang.c (parse_call_convention)
6385 (parse_attributes, parse_function_types)
6386 (parse_function_args, parse_type, parse_identifier)
6387 (call_convention_p, d_parse_symbol): Move functions to ...
6388 * d-support.c: ... New file.
6390 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6392 * d-lang.h (d_parse_symbol): Add declaration.
6393 * d-lang.c (extract_identifiers)
6394 (extract_type_info): Remove functions.
6395 (parse_call_convention, parse_attributes)
6396 (parse_function_types, parse_function_args)
6397 (parse_type, parse_identifier, call_convention_p)
6398 (d_parse_symbol): New functions.
6399 (d_demangle): Use d_parse_symbol to demangle D symbols.
6401 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6403 * d-lang.h (struct builtin_d_type): New data type.
6404 (builtin_d_type): Add declaration.
6405 * d-lang.c (d_language_arch_info, build_d_types)
6406 (builtin_d_type): New functions.
6407 (enum d_primitive_types): New data type.
6408 (d_language_defn): Change c_language_arch_info to
6409 d_language_arch_info.
6410 (d_type_data): New static variable.
6411 (_initialize_d_language): Initialize d_type_data.
6413 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6415 * d-lang.h (d_main_name): Add declaration.
6416 * d-lang.c (d_main_name): New function.
6417 * symtab.c (find_main_name): Add call to d_main_name.
6419 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6421 * d-lang.c (d_language_defn): Change macro_expansion_c to
6424 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6426 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6428 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6430 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6431 gdb_exception" declaration.
6432 * remote.c (getpkt_or_notif_sane): Likewise.
6434 2014-01-17 Doug Evans <dje@google.com>
6436 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6437 function, contents of dirnames_to_char_ptr_vec_append moved here.
6438 (delim_string_to_char_ptr_vec): New function.
6439 (dirnames_to_char_ptr_vec_append): Rewrite.
6440 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6442 2014-01-17 Doug Evans <dje@google.com>
6444 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6446 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6447 #include "common-utils.h".
6448 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6449 * common/vec.h (VEC_ASSERT_PASS): Update.
6450 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6451 (MACH_CHECK_ERROR): Update.
6453 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6455 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6457 * gdbarch.h: Regenerate.
6459 2014-01-16 Tom Tromey <tromey@redhat.com>
6461 * value.c (struct value) <regnum>: Move earlier.
6463 2014-01-16 Tom Tromey <tromey@redhat.com>
6465 * remote.c (extended_remote_create_inferior): Rename from
6466 extended_remote_create_inferior_1. Add "ops" argument. Remove
6469 2014-01-16 Pedro Alves <palves@redhat.com>
6471 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6472 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6475 2014-01-16 Doug Evans <dje@google.com>
6477 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6481 * btrace.h (btrace_thread_flag): New.
6482 (struct btrace_thread_info) <flags>: New.
6483 * record-btrace.c (record_btrace_resume_thread)
6484 (record_btrace_find_thread_to_move, btrace_step_no_history)
6485 (btrace_step_stopped, record_btrace_start_replaying)
6486 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6487 (record_btrace_find_resume_thread): New.
6488 (record_btrace_resume, record_btrace_wait): Extend.
6489 (record_btrace_can_execute_reverse): New.
6490 (record_btrace_open): Fail in non-stop mode.
6491 (record_btrace_set_replay): Split into this, ...
6492 (record_btrace_stop_replaying): ... this, ...
6493 (record_btrace_clear_histories): ... and this.
6494 (init_record_btrace_ops): Init to_can_execute_reverse.
6495 * NEWS: Announce it.
6497 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6499 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6500 (forward_target_decr_pc_after_break)
6501 (target_decr_pc_after_break): New.
6502 * target.c (forward_target_decr_pc_after_break)
6503 (target_decr_pc_after_break): New.
6504 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6505 instead of gdbarch_decr_pc_after_break.
6506 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6507 instead of gdbarch_decr_pc_after_break.
6508 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6509 instead of gdbarch_decr_pc_after_break.
6510 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6511 instead of gdbarch_decr_pc_after_break.
6512 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6513 instead of gdbarch_decr_pc_after_break.
6514 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6515 instead of gdbarch_decr_pc_after_break.
6517 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6519 * btrace.c: Include regcache.h.
6520 (btrace_add_pc): New.
6521 (btrace_enable): Call btrace_add_pc.
6522 (btrace_is_empty): New.
6523 * btrace.h (btrace_is_empty): New.
6524 * record-btrace.c (require_btrace, record_btrace_info): Call
6527 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6529 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6530 Support delta reads.
6531 (linux_disable_btrace): Change return type.
6532 * common/linux-btrace.h (linux_read_btrace): Change parameters
6533 and return type to allow error reporting. Update users.
6534 (linux_disable_btrace): Change return type. Update users.
6535 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6537 (btrace_error): New.
6538 (btrace_block) <begin>: Comment on BEGIN == 0.
6539 * btrace.c (btrace_compute_ftrace): Start from the end of
6541 (btrace_stitch_trace, btrace_clear_history): New.
6542 (btrace_fetch): Read delta trace, return if replaying.
6543 (btrace_clear): Move clear history code to btrace_clear_history.
6544 (parse_xml_btrace): Throw an error if parsing failed.
6545 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6546 and return type to allow error reporting.
6547 (target_read_btrace): Change parameters and return type to allow
6549 * target.c (target_read_btrace): Update.
6550 * remote.c (remote_read_btrace): Support delta reads. Pass
6552 * NEWS: Announce it.
6554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6556 * record.h (record_btrace_frame_unwind)
6557 (record_btrace_tailcall_frame_unwind): New declarations.
6558 * dwarf2-frame: Include record.h
6559 (dwarf2_frame_cfa): Throw an error for btrace frames.
6560 * record-btrace.c: Include hashtab.h.
6561 (btrace_get_bfun_name): New.
6562 (btrace_call_history): Call btrace_get_bfun_name.
6563 (struct btrace_frame_cache): New.
6565 (bfcache_hash, bfcache_eq, bfcache_new): New.
6566 (btrace_get_frame_function): New.
6567 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6568 (record_btrace_frame_this_id): Compute own id.
6569 (record_btrace_frame_prev_register): Provide PC, throw_error
6570 for all other registers.
6571 (record_btrace_frame_sniffer): Detect btrace frames.
6572 (record_btrace_tailcall_frame_sniffer): New.
6573 (record_btrace_frame_dealloc_cache): New.
6574 (record_btrace_frame_unwind): Add new functions.
6575 (record_btrace_tailcall_frame_unwind): New.
6576 (_initialize_record_btrace): Allocate cache.
6577 * btrace.c (btrace_clear): Call reinit_frame_cache.
6578 * NEWS: Announce it.
6580 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6582 * record-btrace.c (record_btrace_set_replay)
6583 (record_btrace_goto_begin, record_btrace_goto_end)
6584 (record_btrace_goto): New.
6585 (init_record_btrace_ops): Initialize them.
6586 * NEWS: Announce it.
6588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6590 * record-btrace.c (record_btrace_find_new_threads)
6591 (record_btrace_thread_alive): New.
6592 (init_record_btrace_ops): Initialize to_find_new_threads and
6595 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6597 * record-btrace.c (record_btrace_resume): New.
6598 (record_btrace_wait): New.
6599 (init_record_btrace_ops): Initialize to_wait and to_resume.
6601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6603 * record-btrace.c (record_btrace_xfer_partial)
6604 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6605 (record_btrace_allow_memory_access): New.
6606 (init_record_btrace_ops): Initialize new methods.
6607 * target.c (raw_memory_xfer_partial): Bail out if target reports
6608 that this memory is not available.
6610 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6612 * target.h (target_ops) <to_insert_breakpoint>
6613 <to_remove_breakpoint>: Add target_ops parameter.
6614 (forward_target_insert_breakpoint): New.
6615 (forward_target_remove_breakpoint): New.
6616 (memory_remove_breakpoint, memory_insert_breakpoint):
6617 Add target_ops parameter.
6618 * target.c (target_insert_breakpoint): Split into this and ...
6619 (forward_target_insert_breakpoint): ... this.
6620 (target_remove_breakpoint): Split into this and ...
6621 (forward_target_remove_breakpoint): ... this.
6622 (debug_to_insert_breakpoint): Add target_ops parameter.
6623 Call forward_target_insert_breakpoint.
6624 (debug_to_remove_breakpoint): Add target_ops parameter.
6625 Call forward_target_remove_breakpoint.
6626 (update_current_target): Do not inherit or default to_insert_breakpoint
6627 and to_remove_breakpoint.
6628 * corelow.c (ignore): Add target_ops parameter.
6629 * exec.c (ignore): Add target_ops parameter.
6630 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6631 Add target_ops parameter.
6632 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6633 Add target_ops parameter.
6634 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6635 Add target_ops parameter.
6636 * record-full.c (record_full_beneath_to_insert_breakpoint)
6637 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6638 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6639 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6640 (record_full_core_remove_breakpoint): Add target_ops parameter.
6642 (record_full_beneath_to_insert_breakpoint_ops)
6643 (record_full_beneath_to_remove_breakpoint_ops)
6644 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6645 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6646 tmp_to_remove_breakpoint_ops,
6647 record_full_beneath_to_insert_breakpoint_ops, and
6648 record_full_beneath_to_remove_breakpoint_ops.
6649 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6650 (m32r_remove_breakpoint): Add target_ops parameter.
6651 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6652 Add target_ops parameter.
6653 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6654 Add target_ops parameter.
6656 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6657 Markus Metzger <markus.t.metzger@intel.com>
6659 * record-btrace.c: Include frame-unwind.h.
6660 (record_btrace_frame_unwind_stop_reason)
6661 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6662 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6664 (init_record_btrace_ops): Install it.
6666 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6668 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6671 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6673 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6676 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6678 * frame-unwind.c: Include target.h.
6679 (frame_unwind_try_unwinder): New function with code from ...
6680 (frame_unwind_find_by_frame): ... here. New variable
6681 unwinder_from_target, call also target_get_unwinder)
6682 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6683 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6684 * target.h (struct target_ops): New fields to_get_unwinder and
6685 to_get_tailcall_unwinder.
6686 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6690 * record-btrace.c (record_btrace_fetch_registers)
6691 (record_btrace_store_registers)
6692 (record_btrace_to_prepare_to_store): New.
6693 (init_record_btrace_ops): Add the above.
6695 2014-01-16 Tom Tromey <tromey@redhat.com>
6697 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6698 * target.h (struct target_ops) <to_prepare_to_store>: Add
6700 (target_prepare_to_store): Add argument.
6701 * target.c (debug_to_prepare_to_store): Add argument.
6702 (update_current_target): Update.
6703 * remote.c (remote_prepare_to_store): Add 'self' argument.
6704 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6705 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6706 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6707 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6709 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6710 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6711 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6712 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6713 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6715 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6717 * btrace.h (replay) <replay>: New.
6718 (btrace_is_replaying): New.
6719 * btrace.c (btrace_clear): Free replay iterator.
6720 (btrace_is_replaying): New.
6721 * record-btrace.c (record_btrace_is_replaying): New.
6722 (record_btrace_info): Print insn number if replaying.
6723 (record_btrace_insn_history): Start at replay position.
6724 (record_btrace_call_history): Start at replay position.
6725 (init_record_btrace_ops): Init to_record_is_replaying.
6727 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6729 * record-btrace.c (record_btrace_insn_history_range): Include
6731 (record_btrace_insn_history_from): Adjust range.
6732 (record_btrace_call_history_range): Include
6734 (record_btrace_call_history_from): Adjust range.
6735 * NEWS: Announce changes.
6737 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6739 * record.h (enum record_print_flag)
6740 <record_print_indent_calls>: New.
6741 * record.c (get_call_history_modifiers): Recognize /c modifier.
6742 (_initialize_record): Document /c modifier.
6743 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6744 Reorder fields. Optionally indent the function name. Update
6746 * NEWS: Announce changes.
6748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6750 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6754 * btrace.c (ftrace_new_function): Start counting at one.
6755 * record-btrace.c (record_btrace_info): Adjust number of calls
6757 * NEWS: Announce it.
6759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6761 * record-btrace.c (btrace_call_history_insn_range): Print
6762 insn range as [begin, end].
6764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6766 * btrace.h (struct btrace_func_link): New.
6767 (enum btrace_function_flag): New.
6768 (struct btrace_inst): Rename to ...
6769 (struct btrace_insn): ...this. Update all users.
6770 (struct btrace_func) <ibegin, iend>: Remove.
6771 (struct btrace_func_link): New.
6772 (struct btrace_func): Rename to ...
6773 (struct btrace_function): ...this. Update all users.
6774 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6775 (number, level, flags>: New.
6776 (struct btrace_insn_iterator): Rename to ...
6777 (struct btrace_insn_history): ...this.
6779 (struct btrace_insn_iterator, btrace_call_iterator): New.
6780 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6781 (struct btrace_target_info) <begin, end, level>
6782 <insn_history, call_history>: New.
6783 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6784 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6785 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6786 (btrace_call_number, btrace_call_begin, btrace_call_end)
6787 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6788 (btrace_find_function_by_number, btrace_set_insn_history)
6789 (btrace_set_call_history): New.
6790 * btrace.c (btrace_init_insn_iterator)
6791 (btrace_init_func_iterator, compute_itrace): Remove.
6792 (ftrace_print_function_name, ftrace_print_filename)
6793 (ftrace_skip_file): Change
6795 (ftrace_init_func): Remove.
6796 (ftrace_debug): Use new btrace_function fields.
6797 (ftrace_function_switched): Also consider gaining and
6798 losing symbol information).
6799 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6800 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6801 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6803 (ftrace_new_function): Move. Remove debug print.
6804 (ftrace_update_lines, ftrace_update_insns): New.
6805 (ftrace_update_function): Check for call, ret, and jump.
6806 (compute_ftrace): Renamed to ...
6807 (btrace_compute_ftrace): ...this. Rewritten to compute call
6809 (btrace_fetch, btrace_clear): Updated.
6810 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6811 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6812 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6813 (btrace_call_number, btrace_call_begin, btrace_call_end)
6814 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6815 (btrace_find_function_by_number, btrace_set_insn_history)
6816 (btrace_set_call_history): New.
6817 * record-btrace.c (require_btrace): Use new btrace thread
6819 (record_btrace_info, btrace_insn_history)
6820 (record_btrace_insn_history, record_btrace_insn_history_range):
6821 Use new btrace thread info fields and new iterator.
6822 (btrace_func_history_src_line): Rename to ...
6823 (btrace_call_history_src_line): ...this. Use new btrace
6825 (btrace_func_history): Rename to ...
6826 (btrace_call_history): ...this. Use new btrace thread info
6827 fields and new iterator.
6828 (record_btrace_call_history, record_btrace_call_history_range):
6829 Use new btrace thread info fields and new iterator.
6831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6833 * frame.h (frame_id_build_unavailable_stack_special): New.
6834 * frame.c (frame_id_build_unavailable_stack_special): New.
6836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6838 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6839 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6840 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6842 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6843 (i386_insn_is_jump, i386_jmp_p): New.
6844 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6845 insn_is_jump to gdbarch.
6846 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6847 * gdbarch.h: Regenerated.
6848 * gdbarch.c: Regenerated.
6849 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6850 (default_insn_is_jump): New.
6851 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6852 (default_insn_is_jump): New.
6854 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6856 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6858 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6859 (btrace_read_type) <btrace_read_new>: Change to ...
6860 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6862 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6864 * common/linux-btrace.c (linux_read_btrace): Free trace from
6867 2014-01-15 Doug Evans <dje@google.com>
6869 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6872 2014-01-15 Tom Tromey <tromey@redhat.com>
6874 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6875 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6876 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6877 (set_objfile_main_name): New function.
6878 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6879 language_of_main>: New fields.
6880 (set_objfile_main_name): Declare.
6881 * symtab.c (find_main_name): Loop over objfiles to find the main
6883 (set_main_name): Now static.
6884 (get_main_info): Add comment.
6885 * symtab.h (set_main_name): Don't declare.
6887 2014-01-15 Tom Tromey <tromey@redhat.com>
6889 * symtab.c (main_progspace_key): New global.
6890 (struct main_info): New.
6891 (name_of_main, language_of_main): Remove.
6892 (get_main_info, main_info_cleanup): New function.
6893 (set_main_name, main_name, main_language): Use get_main_info.
6894 (_initialize_symtab): Initialize main_progspace_key.
6896 2014-01-15 Tom Tromey <tromey@redhat.com>
6898 * dbxread.c (process_one_symbol): Update.
6899 * dwarf2read.c (read_partial_die): Update.
6900 * symfile.c (set_initial_language): Call main_language.
6901 * symtab.c (language_of_main): Now static.
6902 (set_main_name): Add 'lang' parameter.
6903 (find_main_name): Update.
6904 (main_language): New function.
6905 (symtab_observer_executable_changed): Update.
6906 * symtab.h (set_main_name): Update.
6907 (language_of_main): Remove.
6908 (main_language): Declare.
6910 2014-01-15 Tom Tromey <tromey@redhat.com>
6912 * symfile.c (init_entry_point_info): Use new "initialized" field.
6914 * objfiles.h (struct entry_point) <initialized>: New field.
6915 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6916 (struct objfile) <ei>: ...here. Remove.
6917 * objfiles.c (entry_point_address_query): Update.
6919 2014-01-15 Tom Tromey <tromey@redhat.com>
6921 * objfiles.c (entry_point_address_query): Relocate entry point
6923 (objfile_relocate1): Do not relocate entry point address.
6924 * objfiles.h (struct entry_info) <entry_point>: Update comment.
6925 <the_bfd_section_index>: New field.
6926 * symfile.c (init_entry_point_info): Find the entry point's
6929 2014-01-15 Tom Tromey <tromey@redhat.com>
6931 * solib-frv.c (enable_break): Use entry_point_address_query.
6933 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6935 * NEWS: Add note on improved process record-replay on
6936 arm*-linux* targets.
6938 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6940 * arm-tdep.c (enum arm_record_result): New enum.
6941 (arm_record_unsupported_insn): New function.
6942 (arm_record_coproc_data_proc): Removed.
6943 (thumb2_record_ld_st_multiple): New function.
6944 (thumb2_record_ld_st_dual_ex_tbb): New function.
6945 (thumb2_record_data_proc_sreg_mimm): New function.
6946 (thumb2_record_ps_dest_generic): New function.
6947 (thumb2_record_branch_misc_cntrl): New function.
6948 (thumb2_record_str_single_data): New function.
6949 (thumb2_record_ld_mem_hints): New function.
6950 (thumb2_record_ld_word): New function.
6951 (thumb2_record_lmul_lmla_div): New function.
6952 (thumb2_record_decode_insn_handler): New function.
6953 (decode_insn): Add thumb32 instruction handlers.
6955 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6957 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
6958 (struct arm_linux_record_tdep): Declare.
6959 (arm_canonicalize_syscall): New function.
6960 (arm_all_but_pc_registers_record): New function.
6961 (arm_linux_syscall_record): New function.
6962 (arm_linux_init_abi): Add syscall recording constructs.
6963 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
6964 decoding. (arm_record_coproc_data_proc): Update arm syscall
6966 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
6967 <arm_syscall_record>: New field.
6968 * configure.tgt (arm*-*-linux*): Add linux-record.o to
6971 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6973 * arm-tdep.c (thumb_record_misc): Update to use sp as base
6974 register for push instruction recording.
6976 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6978 * arm-tdep.c (thumb_record_misc): Update to correct logical
6979 error while recording ldm, ldmia and pop instructions.
6981 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
6983 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
6985 2014-01-15 Pedro Alves <palves@redhat.com>
6987 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
6988 (go32_resume, go32_fetch_registers, store_register)
6989 (go32_store_registers, go32_prepare_to_store)
6990 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
6991 (go32_create_inferior, go32_can_run, go32_terminal_init)
6992 (go32_terminal_inferior, go32_terminal_ours): Delete forward
6995 2014-01-15 Tom Tromey <tromey@redhat.com>
6997 * target.h (async_callback_ftype): New typedef.
6998 (struct target_ops) <to_async>: Use it.
7000 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7002 * python/py-value.c (get_field_type): Remove unnecessary curly
7003 braces for single-statement if block.
7005 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7007 * python/py-type.c (convert_field): Add missing empty line
7010 2014-01-14 Doug Evans <dje@google.com>
7012 * symfile.h (expand_symtabs_matching): Renamed from
7013 expand_partial_symbol_names. Update prototype.
7014 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7015 * symfile.c (expand_symtabs_matching): Renamed from
7016 expand_partial_symbol_names. New args file_matcher, kind.
7017 Rename arg fun to symbol_matcher.
7018 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7019 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7020 ada_expand_partial_symbol_name.
7021 (ada_make_symbol_completion_list): Update to call
7022 expand_symtabs_matching.
7023 (ada_add_global_exceptions): Call expand_symtabs_matching.
7024 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7025 call map_symbol_filenames.
7026 * symtab.c (sources_info): Update to call map_symbol_filenames.
7027 (search_symbols): Call expand_symtabs_matching.
7028 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7029 (default_make_symbol_completion_list_break_on): Update to call
7030 expand_symtabs_matching.
7031 (make_source_files_completion_list): Update to call
7032 map_symbol_filenames.
7034 2014-01-14 Doug Evans <dje@google.com>
7036 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7037 (expand_symtabs_symbol_matcher_ftype): New typedef.
7038 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7039 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7040 * symfile.c (expand_partial_symbol_names): Update to use
7041 expand_symtabs_symbol_matcher_ftype.
7042 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7043 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7044 Arg name_matcher renamed to symbol_matcher.
7045 * psymtab.c (recursively_search_psymtabs): Update to use
7046 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7048 (expand_symtabs_matching_via_partial): Update to use
7049 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7050 Arg name_matcher renamed to symbol_matcher.
7052 2014-01-14 Doug Evans <dje@google.com>
7054 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7055 (map_partial_symbol_filenames): Ditto.
7056 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7057 (map_partial_symbol_filenames): Ditto.
7058 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7059 (map_partial_symbol_filenames): Ditto.
7060 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7061 (map_partial_symbol_filenames): Ditto.
7062 * symtab.c: Delete #include "psymtab.h".
7064 2014-01-14 Pedro Alves <palves@redhat.com>
7065 Tom Tromey <tromey@redhat.com>
7067 * infrun.c (use_displaced_stepping): Use find_record_target
7068 instead of RECORD_IS_USED.
7069 (adjust_pc_after_break): Use record_full_is_used instead of
7071 * record-btrace.c (record_btrace_open): Call record_preopen
7072 instead of checking RECORD_IS_USED.
7073 * record-full.c (record_full_shortname)
7074 (record_full_core_shortname): New globals.
7075 (record_full_is_used): New function.
7076 (find_full_open): Call record_preopen instead of checking
7078 (init_record_full_ops): Set the target's shortname to
7079 record_full_shortname.
7080 (init_record_full_core_ops): Set the target's shortname to
7081 record_full_core_shortname.
7082 * record-full.h (record_full_is_used): Declare.
7083 * record.c (find_record_target): Make extern.
7084 (record_preopen): New function.
7085 * record.h (RECORD_IS_USED): Delete macro.
7086 (find_record_target, record_preopen): Declare functions.
7088 2014-01-14 Yao Qi <yao@codesourcery.com>
7090 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7091 'len''s type to ULONGEST.
7092 (core_xfer_shared_libraries_aix): Likewise.
7093 * gdbarch.c, gdbarch.h: Regenerated.
7094 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7095 Change type of 'len' to ULONGEST.
7096 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7097 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7099 2014-01-14 Yao Qi <yao@codesourcery.com>
7101 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7102 type of 'len' to ULONGEST.
7103 (linux_xfer_osdata_processgroups): Likewise.
7104 (linux_xfer_osdata_threads): Likewise.
7105 (linux_xfer_osdata_fds): Likewise.
7106 (linux_xfer_osdata_isockets): Likewise.
7107 (linux_xfer_osdata_shm): Likewise.
7108 (linux_xfer_osdata_sem): Likewise.
7109 (linux_xfer_osdata_msg): Likewise.
7110 (linux_common_xfer_osdata): Likewise.
7111 (struct osdata_type) <getter>: Likewise.
7112 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7115 2014-01-14 Yao Qi <yao@codesourcery.com>
7117 * target.h (target_xfer_partial_ftype): Update.
7118 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7120 * aix-thread.c (aix_thread_xfer_partial): Change type of
7121 argument 'len' to ULONGEST.
7122 * auxv.c (procfs_xfer_auxv): Likewise.
7123 (ld_so_xfer_auxv): Likewise.
7124 (memory_xfer_auxv): Likewise.
7125 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7126 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7127 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7128 * corelow.c (core_xfer_partial): Likewise.
7129 * ctf.c (ctf_xfer_partial): Likewise.
7130 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7132 (darwin_read_dyld_info): Likewise.
7133 (darwin_xfer_partial): Likewise.
7134 * exec.c (section_table_xfer_memory_partial): Likewise.
7135 (exec_xfer_partial): Likewise.
7136 * exec.h (section_table_xfer_memory_partial): Update
7138 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7139 instead of plongest.
7140 (gnu_xfer_partial): Likewise.
7141 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7142 (ia64_hpux_xfer_solib_got): Likewise.
7143 (ia64_hpux_xfer_partial): Likewise.
7144 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7145 * inf-ptrace.c (inf_ptrace_xfer_partial):
7146 * inf-ttrace.c (inf_ttrace_xfer_partial):
7147 * linux-nat.c (linux_xfer_siginfo): Likewise.
7148 (linux_nat_xfer_partial): Likewise.
7149 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7150 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7151 * monitor.c (monitor_xfer_memory): Likewise.
7152 (monitor_xfer_partial): Likewise.
7153 * procfs.c (procfs_xfer_partial): Likewise.
7154 * record-full.c (record_full_xfer_partial): Likewise.
7155 (record_full_core_xfer_partial): Likewise.
7156 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7157 instead of plongest.
7158 (gdbsim_xfer_partial): Likewise.
7159 * remote.c (remote_xfer_partial): Likewise.
7160 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7161 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7163 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7164 (rs6000_xfer_shared_libraries): Likewise.
7165 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7166 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7167 (sparc_xfer_partial): Likewise.
7168 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7169 (spu_xfer_partial): Likewise.
7170 * spu-multiarch.c (spu_xfer_partial): Likewise.
7171 * target.c (target_read_live_memory): Likewise.
7172 (memory_xfer_live_readonly_partial): Likewise.
7173 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7174 (target_xfer_partial, default_xfer_partial): Likewise.
7175 (current_xfer_partial): Likewise.
7176 * tracepoint.c (tfile_xfer_partial): Likewise.
7177 * windows-nat.c (windows_xfer_memory): Likewise. Call
7178 pulongest instead of plongest.
7179 (windows_xfer_partial): Likewise.
7180 (windows_xfer_shared_libraries): Likewise.
7182 2014-01-14 Yao Qi <yao@codesourcery.com>
7184 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7185 target_xfer_partial_ftype.
7187 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7191 * valops.c (value_struct_elt_bitpos): New function
7192 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7193 object to 'None' if the field name is an empty string ("").
7194 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7195 attribute to look for a field when 'name' is 'None'.
7196 (get_field_type): New function
7198 2014-01-13 Doug Evans <dje@google.com>
7201 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7202 (try_open_dwop_file): Ditto.
7203 * gdb_bfd.c: #include "vec.h".
7204 (bfdp): New typedef.
7205 (struct gdb_bfd_data): New member included_bfds.
7206 (gdb_bfd_unref): Unref all included bfds.
7207 (gdb_bfd_record_inclusion): New function.
7208 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7210 2014-01-13 Tom Tromey <tromey@redhat.com>
7212 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7214 2014-01-13 Tom Tromey <tromey@redhat.com>
7216 * defs.h (use_windows): Remove.
7217 * gdb.c (main): Update.
7218 * main.c (captured_main, gdb_main): Update.
7219 * main.h (struct captured_main_args) <use_windows>: Remove.
7220 * top.c (use_windows): Remove.
7222 2014-01-13 Tom Tromey <tromey@redhat.com>
7224 * defs.h (deprecated_flush_hook): Remove.
7226 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7229 * linux-thread-db.c (try_thread_db_load): Add parameter
7230 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7231 (try_thread_db_load_from_pdir_1): Move it there from here.
7232 (try_thread_db_load_from_sdir): Update caller.
7233 (try_thread_db_load_from_dir): Move it there from here.
7235 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7237 * regformats/regdat.sh: Always rewrite the register file.
7239 2014-01-13 Pedro Alves <palves@redhat.com>
7241 * Makefile.in (CHECK_HEADERS): New variable.
7242 (check-headers:): New rule.
7244 2014-01-13 Tom Tromey <tromey@redhat.com>
7246 * cli/cli-setshow.c (do_set_command): Update.
7247 * defs.h (deprecated_set_hook): Remove.
7248 * top.c (deprecated_set_hook): Remove.
7250 2014-01-13 Pedro Alves <palves@redhat.com>
7252 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7253 the tracepoint if the PC is a pseudo-register.
7255 2014-01-13 Tom Tromey <tromey@redhat.com>
7257 * defs.h (XCALLOC): Remove.
7258 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7259 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7260 * dwarf2loc.c (allocate_piece_closure): Likewise.
7261 * elfread.c (elf_symfile_segments): Likewise.
7262 (elf_symfile_segments): Likewise.
7263 * gdbtypes.c (copy_type_recursive): Likewise.
7264 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7265 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7266 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7268 * mt-tdep.c (mt_gdbarch_init): Likewise.
7269 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7271 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7272 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7273 * registry.c (registry_alloc_data): Likewise.
7274 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7275 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7276 * serial.c (serial_fdopen_ops): Likewise.
7277 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7279 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7280 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7283 2014-01-13 Tom Tromey <tromey@redhat.com>
7285 * defs.h (XMALLOC): Remove.
7286 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7287 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7288 * cli-out.c (struct ui_out *): Likewise.
7289 * cli/cli-dump.c (add_dump_command): Likewise.
7290 (add_dump_command): Likewise.
7291 * complaints.c (get_complaints): Likewise.
7292 (find_complaint): Likewise.
7293 * dwarf2-frame.c (execute_cfa_program): Likewise.
7294 * dwarf2read.c (abbrev_table_read_table): Likewise.
7295 * gdbarch.sh: Likewise.
7296 * gdbarch.c: Rebuild.
7297 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7298 * interps.c (interp_new): Likewise.
7299 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7300 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7301 * mi/mi-console.c (mi_console_file_new): Likewise.
7302 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7303 * mi/mi-out.c (mi_out_new): Likewise.
7304 * mi/mi-parse.c (mi_parse): Likewise.
7305 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7306 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7307 * observer.c (xalloc_observer_list_node): Likewise.
7308 * regcache.c (regcache_xmalloc_1): Likewise.
7309 * reggroups.c (reggroup_new): Likewise.
7310 (_initialize_reggroup): Likewise.
7311 * registry.c (register_data_with_cleanup): Likewise.
7312 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7313 * ser-base.c (serial_ttystate): Likewise.
7314 * ser-mingw.c (make_pipe_state): Likewise.
7315 * ser-pipe.c (pipe_open): Likewise.
7316 * serial.c (serial_open): Likewise.
7317 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7318 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7319 (tui_alloc_win_info): Likewise.
7320 (tui_add_content_elements): Likewise.
7321 * tui/tui-file.c (tui_file_new): Likewise.
7322 * tui/tui-out.c (tui_out_new): Likewise.
7323 * ui-file.c (mem_file_new): Likewise.
7324 * ui-out.c (push_level): Likewise.
7325 (make_cleanup_ui_out_end): Likewise.
7326 (append_header_to_list): Likewise.
7327 (ui_out_new): Likewise.
7328 * user-regs.c (user_reg_add_builtin): Likewise.
7330 2014-01-13 Tom Tromey <tromey@redhat.com>
7332 * defs.h (XZALLOC): Remove.
7333 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7334 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7335 (get_ada_tasks_inferior_data): Likewise.
7336 * auto-load.c (get_auto_load_pspace_data): Likewise.
7337 * auxv.c (get_auxv_inferior_data): Likewise.
7338 * bfd-target.c (target_bfd_reopen): Likewise.
7339 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7340 (deprecated_insert_raw_breakpoint): Likewise.
7341 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7342 * corelow.c (core_open): Likewise.
7343 * darwin-nat.c (darwin_check_new_threads): Likewise.
7344 (darwin_attach_pid): Likewise.
7345 * dummy-frame.c (dummy_frame_push): Likewise.
7346 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7347 * dwarf2loc.c (allocate_piece_closure): Likewise.
7348 * elfread.c (elf_symfile_segments): Likewise.
7349 * eval.c (ptrmath_type_p): Likewise.
7350 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7351 * gdbtypes.c (alloc_type_arch): Likewise.
7352 (alloc_type_instance): Likewise.
7353 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7354 * inf-child.c (inf_child_can_use_agent): Likewise.
7355 * inflow.c (get_inflow_inferior_data): Likewise.
7356 * infrun.c (save_infcall_suspend_state): Likewise.
7357 * jit.c (jit_reader_load): Likewise.
7358 (get_jit_objfile_data): Likewise.
7359 (get_jit_program_space_data): Likewise.
7360 (jit_object_open_impl): Likewise.
7361 (jit_symtab_open_impl): Likewise.
7362 (jit_block_open_impl): Likewise.
7363 (jit_frame_sniffer): Likewise.
7364 * linux-fork.c (add_fork): Likewise.
7365 * maint.c (make_command_stats_cleanup): Likewise.
7366 * objfiles.c (get_objfile_pspace_data): Likewise.
7367 * opencl-lang.c (struct lval_closure): Likewise.
7368 * osdata.c (osdata_start_osdata): Likewise.
7369 * progspace.c (new_address_space): Likewise.
7370 (add_program_space): Likewise.
7371 * remote-sim.c (get_sim_inferior_data): Likewise.
7372 * sh-tdep.c (sh_gdbarch_init): Likewise.
7373 * skip.c (Ignore): Likewise.
7374 (skip_delete_command): Likewise.
7375 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7376 (library_list_start_library): Likewise.
7377 (solib_aix_current_sos): Likewise.
7378 * solib-darwin.c (get_darwin_info): Likewise.
7379 (darwin_current_sos): Likewise.
7380 * solib-dsbt.c (get_dsbt_info): Likewise.
7381 * solib-ia64-hpux.c (new_so_list): Likewise.
7382 (ia64_hpux_get_solib_linkage_addr): Likewise.
7383 * solib-spu.c (append_ocl_sos): Likewise.
7384 (spu_current_sos): Likewise.
7385 * solib-svr4.c (get_svr4_info): Likewise.
7386 (svr4_keep_data_in_core): Likewise.
7387 (library_list_start_library): Likewise.
7388 (svr4_default_sos): Likewise.
7389 (svr4_read_so_list): Likewise.
7390 * solib-target.c (library_list_start_library): Likewise.
7391 (solib_target_current_sos): Likewise.
7392 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7393 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7394 * symfile.c (default_symfile_segments): Likewise.
7395 * target-descriptions.c (tdesc_data_init): Likewise.
7396 (tdesc_create_reg): Likewise.
7397 (struct tdesc_type *): Likewise.
7398 (tdesc_create_vector): Likewise.
7399 (tdesc_set_struct_size): Likewise.
7400 (struct tdesc_type *): Likewise.
7401 (tdesc_free_feature): Likewise.
7402 (tdesc_create_feature): Likewise.
7403 * windows-nat.c (windows_add_thread): Likewise.
7404 (windows_make_so): Likewise.
7405 * xml-support.c (gdb_xml_body_text): Likewise.
7406 (gdb_xml_create_parser_and_cleanup): Likewise.
7407 (xml_process_xincludes): Likewise.
7408 * xml-syscall.c (allocate_syscalls_info): Likewise.
7409 (syscall_create_syscall_desc): Likewise.
7411 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7413 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7414 function, with code from i386_stap_parse_special_token.
7415 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7416 (i386_stap_parse_special_token): Move code to the two functions
7419 2014-01-09 Pedro Alves <palves@redhat.com>
7420 Hui Zhu <hui@codesourcery.com>
7423 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7424 bp_err_string. Don't mark the location shlib_disabled if the
7425 error thrown wasn't a generic or memory error. Catch errors
7426 thrown while inserting breakpoints in overlayed code. Output
7427 error message of software breakpoints.
7428 * remote.c (remote_insert_breakpoint): If this breakpoint has
7429 target-side commands but this stub doesn't support Z0 packets,
7430 throw NOT_SUPPORTED_ERROR error.
7431 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7432 * target.h (target_insert_breakpoint): Extend comment.
7433 (target_insert_hw_breakpoint): Add comment.
7435 2014-01-08 Pedro Alves <palves@redhat.com>
7437 * remote.c (remote_add_thread): Add threads silently if starting
7439 (remote_notice_new_inferior): If in all-stop, and starting up,
7440 don't call notice_new_inferior.
7441 (get_current_thread): New function, factored out from ...
7442 (add_current_inferior_and_thread): ... this. Adjust.
7443 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7444 found any thread, then select the remote's current thread as GDB's
7447 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7449 * NEWS: Create a new section for the next release branch.
7450 Rename the section of the current branch, now that it has
7453 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7455 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7456 * version.in: Bump version to 7.7.50.DATE-cvs.
7458 2014-01-08 Yao Qi <yao@codesourcery.com>
7460 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7461 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7462 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7464 2014-01-08 Yao Qi <yao@codesourcery.com>
7466 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7467 return value of bfd_get_filename to symbol_file_add_from_bfd.
7469 2014-01-08 Pierre Muller <muller@sourceware.org>
7472 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7473 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7474 to prim_record_mininal_symbol_and_info.
7475 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7476 in call to prim_record_minimal_symbol_and_info.
7477 (read_pe_exported_syms): Set index field of section_data.
7479 2014-01-07 Andrew Pinski <apinski@cavium.com>
7481 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7482 * features/aarch64.c: Regenerate.
7484 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7486 * target.c (return_null): Define.
7487 (update_current_target): Use it instead of return_zero for
7488 functions that return a pointer.
7490 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7492 * source.c (add_path): Fix check for duplicated paths in the previously
7495 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7497 * ada-lang.c: Remove duplicated include statements.
7498 * alphabsd-nat.c: Ditto.
7499 * amd64-darwin-tdep.c: Ditto.
7500 * amd64fbsd-nat.c: Ditto.
7501 * auto-load.c: Ditto.
7503 * breakpoint.c: Ditto.
7505 * fork-child.c: Ditto.
7506 * gdb_usleep.c: Ditto.
7507 * i386-darwin-tdep.c: Ditto.
7508 * i386fbsd-nat.c: Ditto.
7510 * inferior.c: Ditto.
7512 * linux-nat.c: Ditto.
7513 * linux-tdep.c: Ditto.
7514 * m68kbsd-nat.c: Ditto.
7515 * m68klinux-nat.c: Ditto.
7516 * microblaze-tdep.c: Ditto.
7517 * mips-linux-tdep.c: Ditto.
7518 * mn10300-tdep.c: Ditto.
7519 * nto-tdep.c: Ditto.
7520 * opencl-lang.c: Ditto.
7522 * printcmd.c: Ditto.
7523 * regcache.c: Ditto.
7524 * remote-m32r-sdi.c: Ditto.
7528 * tilegx-linux-nat.c: Ditto.
7529 * tilegx-tdep.c: Ditto.
7530 * tracepoint.c: Ditto.
7532 * vaxbsd-nat.c: Ditto.
7533 * windows-nat.c: Ditto.
7534 * xtensa-tdep.c: Ditto.
7536 2014-01-07 Yao Qi <yao@codesourcery.com>
7538 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7540 2014-01-07 Yao Qi <yao@codesourcery.com>
7541 Joel Brobecker <brobecker@adacore.com>
7543 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7544 (pdc_write_regs): Likewise.
7545 (fetch_regs_kernel_thread): Likewise.
7546 (store_regs_kernel_thread): Likewise.
7548 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7550 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7551 tagged type objects to their actual type.
7553 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7555 * ada-valprint.c (print_field_values): Add "language" parameter.
7556 Update calls to print_field_values and print_variant_part.
7557 Pass new parameter "language" in call to val_print instead
7558 of "current_language". Replace call to ada_val_print by call
7560 (print_variant_part): Add "language" parameter.
7561 (ada_val_print_struct_union): Update call to print_field_values.
7563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7565 * ada-valprint.c (ui_memcpy): Delete.
7566 (ada_print_floating): Update documentation. Add empty line
7567 between between function documentation and implementation.
7568 Delete variable "buffer". Use ui_file_xstrdup in place of
7569 ui_file_put. Minor adjustments following this change.
7571 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7573 * ada-valprint.c (ada_val_print_string): New function,
7574 extracted from ada_val_print_array.
7575 (ada_val_print_array): Replace extracted code by call
7576 to ada_val_print_string followed by a return. Move
7577 "else" branch to the function's top block.
7579 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7581 * ada-valprint.c (ada_val_print_array): Move implementation
7582 down. Rename parameter "offset" and "val" into "offset_aligned"
7583 and "original_value" respectively. Add parameter "offset".
7585 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7587 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7588 re-organizing the code. Change the "???" message printed
7589 when target type is a TYPE_CODE_UNDEF into
7590 "<ref to undefined type>".
7592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7594 * ada-valprint.c (print_record): Delete, implementation inlined...
7595 (ada_val_print_struct_union): ... here. Remove call to
7596 ada_check_typedef in inlined implementation.
7598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7600 * ada-valprint.c (ada_val_print_gnat_array): New function,
7601 extracted from ada_val_print_1;
7602 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7603 (ada_val_print_flt, ada_val_print_struct_union)
7604 (ada_val_print_ref): Likewise.
7605 (ada_val_print_1): Delete variables i and elttype.
7606 Replace extracted-out code by call to corresponding
7609 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7611 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7613 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7615 * ada-valprint.c (ada_val_print_1): Replace calls to
7616 ada_val_print_1 by calls to val_print.
7618 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7620 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7621 Update calls to self accordingly. Replace calls to c_val_print
7622 by calls to val_print.
7624 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7626 * ada-valprint.c (print_record): Delete declaration.
7627 (adjust_type_signedness, ada_val_print_1): Likewise.
7628 (ada_val_print): Move function implementation down.
7629 (print_variant_part, print_field_values, print_record):
7630 Move function implementation up.
7632 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7634 * python/py-type.c (typy_get_name): New function.
7635 (type_object_getset): Add entry for attribute "name".
7636 * NEWS: Add entry mentioning this new attribute.
7638 2014-01-07 Yao Qi <yao@codesourcery.com>
7640 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7643 2014-01-07 Yao Qi <yao@codesourcery.com>
7645 * gnu-nat.c (info_port_rights): Add qualifier const to
7648 2014-01-07 Yao Qi <yao@codesourcery.com>
7650 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7652 2014-01-07 Yao Qi <yao@codesourcery.com>
7654 * gnu-nat.c (make_inf) Update declaration.
7655 (make_inf): Make it static.
7656 (inf_set_traced): Likewise.
7657 (inf_port_to_thread, inf_task_died_status): Likewise.
7659 2014-01-07 Yao Qi <yao@codesourcery.com>
7661 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7663 2014-01-07 Yao Qi <yao@codesourcery.com>
7665 * gnu-nat.c (_initialize_gnu_nat): Declare.
7667 2014-01-07 Yao Qi <yao@codesourcery.com>
7669 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7671 (struct gdbarch_info) <byte_order>: Change type to
7673 <byte_order_for_code>: Likewise.
7674 * gdbarch.c, gdbarch.h: Regenerated.
7676 2014-01-06 Sasha Smundak <asmundak@google.com>
7678 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7680 2014-01-06 Tom Tromey <tromey@redhat.com>
7682 * doublest.c (convert_doublest_to_floatformat): Use const, not
7684 * somread.c (som_symtab_read): Likewise.
7686 2014-01-07 Hui Zhu <hui@codesourcery.com>
7688 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7689 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7690 (gdb_bfd_fopen): Ditto.
7691 (gdb_bfd_openr): Ditto.
7692 (gdb_bfd_openw): Ditto.
7693 (gdb_bfd_openr_iovec): Ditto.
7694 (gdb_bfd_fdopenr): Ditto.
7695 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7696 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7698 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7700 * symfile-mem.c (symbol_file_add_from_memory): Removed
7701 gdb_bfd_stash_filename.
7703 2014-01-03 Doug Evans <dje@google.com>
7705 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7708 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7710 Update year range in copyright notice of all files.
7712 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7714 * top.c (print_gdb_version): Set copyright year to 2014.
7716 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7718 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7720 For older changes see ChangeLog-2013.
7726 version-control: never