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