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