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