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