constify parse_cli_boolean_value
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5bc98e52
TT
12014-06-18 Tom Tromey <tromey@redhat.com>
2
3 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5
8236def8
TT
62014-06-18 Tom Tromey <tromey@redhat.com>
7
8 * probe.c (info_probes_for_ops): Make "arg" const.
9 * probe.h (info_probes_for_ops): Update.
10
3977b71f
TT
112014-06-18 Tom Tromey <tromey@redhat.com>
12
13 * varobj.c (varobj_create): Update.
14 * valops.c (value_of_this): Update.
15 * tracepoint.c (add_local_symbols, scope_info): Update.
16 * symtab.h (struct general_symbol_info) <block>: Now const.
17 * symtab.c (skip_prologue_sal)
18 (default_make_symbol_completion_list_break_on)
19 (skip_prologue_using_sal): Update.
20 * stack.h (iterate_over_block_locals)
21 (iterate_over_block_local_vars): Update.
22 * stack.c (print_frame_args): Update.
23 (iterate_over_block_locals, iterate_over_block_local_vars): Make
24 parameter const.
25 (get_selected_block): Make return type const.
26 * python/py-frame.c (frapy_block): Update.
27 * python/py-block.c (gdbpy_block_for_pc): Update.
28 * p-exp.y (%union) <bval>: Now const.
29 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
30 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
31 * m2-exp.y (%union) <bval>: Now const.
32 * linespec.c (get_current_search_block): Make return type const.
33 (create_sals_line_offset, find_label_symbols): Update.
34 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
35 Update.
36 (block_starting_point_at): Make "block" const.
37 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
38 (check_exception_resume): Update.
39 * guile/scm-frame.c (gdbscm_frame_block): Update.
40 * guile/scm-block.c (gdbscm_lookup_block): Update.
41 * frame.h (get_frame_block): Update.
42 (get_selected_block): Make return type const.
43 * frame.c (frame_id_inner): Update.
44 * f-valprint.c (info_common_command_for_block)
45 (info_common_command): Update.
46 * dwarf2loc.c (dwarf2_find_location_expression)
47 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
48 (locexpr_describe_location_piece): Update.
49 * c-exp.y (%union) <bval>: Now const.
50 * breakpoint.c (resolve_sal_pc): Update.
51 * blockframe.c (get_frame_block):Make return type const.
52 (get_pc_function_start, get_frame_function, find_pc_sect_function)
53 (block_innermost_frame): Update.
54 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
55 (block_for_pc, block_for_pc_sect): Update.
56 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
57 'pblock' const.
58 (block_for_pc_sect, block_for_pc): Make return type const.
59 * ax-gdb.c (gen_expr): Update.
60 * alpha-mdebug-tdep.c (find_proc_desc): Update.
61 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
62 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
63 (ada_read_var_value): Update.
64 * ada-exp.y (struct name_info) <block>: Now const.
65 (%union): Likewise.
66 (block_lookup): Constify.
67
b9228891
GB
682014-06-18 Gary Benson <gbenson@redhat.com>
69
70 * nat/i386-dregs.h: New file.
71 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
72 * i386-nat.h (i386-dregs.h): New include.
73 (DR_FIRSTADDR): Now in i386-dregs.h.
74 (DR_LASTADDR): Likewise.
75 (DR_NADDR): Likewise.
76 (DR_STATUS): Likewise.
77 (DR_CONTROL): Likewise.
78 (i386_debug_reg_state): Likewise.
79 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
80
a1aa2221
LM
812014-06-18 Don Breazeal <donb@codesourcery.com>
82
83 * breakpoint.c (set_longjmp_breakpoint): Call
84 momentary_breakpoint_from_master with additional argument.
85 (set_longjmp_breakpoint_for_call_dummy): Call
86 momentary_breakpoint_from_master with additional argument.
87 (set_std_terminate_breakpoint): Call
88 momentary_breakpoint_from_master with additional argument.
89 (momentary_breakpoint_from_master): Add argument to function
90 definition and use it to initialize structure member flag.
91 (clone_momentary_breakpoint): Call
92 momentary_breakpoint_from_master with additional argument.
93 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
94 member flags set in momentary_breakpoint_from_master.
95
4be83cc2
GB
962014-06-18 Gary Benson <gbenson@redhat.com>
97
98 * i386-nat.c (i386_show_dr): Renamed to
99 i386_dr_show and made nonstatic. All uses updated.
100 (i386_length_and_rw_bits): Renamed to
101 i386_dr_length_and_rw_bits and made nonstatic.
102 All uses updated.
103 (i386_insert_aligned_watchpoint): Renamed to
104 i386_dr_insert_aligned_watchpoint and made nonstatic.
105 All uses updated.
106 (i386_remove_aligned_watchpoint): Renamed to
107 i386_dr_remove_aligned_watchpoint and made nonstatic.
108 All uses updated.
109 (i386_update_inferior_debug_regs): Renamed to
110 i386_dr_update_inferior_debug_regs and made nonstatic.
111 All uses updated.
112
131aa0d4
GB
1132014-06-18 Gary Benson <gbenson@redhat.com>
114
115 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
116 (i386_dr_low_can_set_control): Likewise.
117 (i386_dr_low_set_addr): Likewise.
118 (i386_dr_low_set_control): Likewise.
119 (i386_dr_low_get_addr): Likewise.
120 (i386_dr_low_get_status): Likewise.
121 (i386_dr_low_get_control): Likewise.
122 (i386_insert_aligned_watchpoint): Use new macros.
123 (i386_update_inferior_debug_regs): Likewise.
124 (i386_stopped_data_address): Likewise.
125
d9305f7f
GB
1262014-06-18 Gary Benson <gbenson@redhat.com>
127
128 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
129 New parameter. All uses updated.
130
ea008da4
GB
1312014-06-18 Gary Benson <gbenson@redhat.com>
132
133 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
134 All uses updated.
135
1b6d4134
GB
1362014-06-18 Gary Benson <gbenson@redhat.com>
137
138 * i386-nat.c (debug_printf): New macro.
139 (i386_get_debug_register_length): Likewise.
140 (TARGET_HAS_DR_LEN_8): Use above macro.
141 (i386_show_dr): Use debug_printf instead of puts_unfiltered
142 and printf_unfiltered. Use phex to format values.
143
9b4550ef
GB
1442014-06-18 Gary Benson <gbenson@redhat.com>
145
146 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
147 Make const.
148
6e62758f
GB
1492014-06-18 Gary Benson <gbenson@redhat.com>
150
151 * i386-nat.c: Comment changes.
152
51c79e94
GB
1532014-06-18 Gary Benson <gbenson@redhat.com>
154
155 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
156
3e11889a
GB
1572014-06-18 Gary Benson <gbenson@redhat.com>
158
159 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
160 (i386_insert_aligned_watchpoint): Likewise.
161 (i386_remove_aligned_watchpoint): Likewise.
162 (i386_handle_nonaligned_watchpoint): Likewise.
163
fc6e2f03
GB
1642014-06-18 Gary Benson <gbenson@redhat.com>
165
166 * i386-nat.c: Whitespace changes.
167
2afe7d50
SB
1682014-06-17 Samuel Bronson <naesten@gmail.com>
169
170 * MAINTAINERS: Update Roland McGrath's email address.
171 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 172 Red Hat a while ago, and giving me a current address.
2afe7d50 173
3bca49ee
TT
1742014-06-17 Tom Tromey <tromey@redhat.com>
175
176 * utils.h (savestring): Remove declaration.
177
6e366df1
TT
1782014-06-17 Tom Tromey <tromey@redhat.com>
179
180 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
181
6be47f0c
KS
1822014-06-16 Keith Seitz <keiths@redhat.com>
183
184 PR mi/15863
185 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
186 to update the varobj if inferior_ptid is null_ptid.
187
7bc112c1
TT
1882014-06-16 Tom Tromey <tromey@redhat.com>
189
190 * target.h (struct target_ops) <to_info_proc>: Make parameter
191 const.
192 (target_info_proc): Update.
193 * target.c (target_info_proc): Make "args" const.
194 * procfs.c (procfs_info_proc): Update.
195 * linux-tdep.c (linux_info_proc): Update.
196 (linux_core_info_proc_mappings): Make "args" const.
197 (linux_core_info_proc): Update.
198 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
199 * gdbarch.c: Rebuild.
200 * gdbarch.h: Rebuild.
201 * corelow.c (core_info_proc): Update.
202
fee354ee
TT
2032014-06-16 Tom Tromey <tromey@redhat.com>
204
205 * target.h (struct target_ops) <to_disconnect>: Make parameter
206 const.
207 (target_disconnect): Update.
208 * target.c (target_disconnect): Make "args" const.
209 * target-delegates.c: Rebuild.
210 * remote.c (remote_disconnect): Update.
211 * record.h (record_disconnect): Update.
212 * record.c (record_disconnect): Update.
213 * inf-child.c (inf_child_disconnect): Update.
214
a30bf1f1
TT
2152014-06-16 Tom Tromey <tromey@redhat.com>
216
217 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
218 * target.c (debug_to_rcmd, default_rcmd): Update.
219 * target-delegates.c: Rebuild.
220 * remote.c (remote_rcmd): Update.
221 * monitor.c (monitor_rcmd): Update.
222
d03de421
PA
2232014-06-16 Pedro Alves <palves@redhat.com>
224
225 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
226 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
227 have OBJF_SHARED set.
228 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
229 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
230 instead of OBJF_USERLOADED.
231 * objfiles.h (OBJF_SHARED): Update comment.
232 (userloaded_objfile_contains_address_p): Rename to ...
233 (shared_objfile_contains_address_p): ... this, and update
234 comments.
235 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
236 new objfile.
237 (remove_symbol_file_command): Skip objfiles that don't have
238 OBJF_SHARED set.
239
99f4262f
TT
2402014-06-16 Tom Tromey <tromey@redhat.com>
241
242 * minsyms.h (prim_record_minimal_symbol)
243 (prim_record_minimal_symbol_and_info): Update comments.
244
97d66cc6
EZ
2452014-06-14 Eli Zaretskii <eliz@gnu.org>
246
247 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
248 or --without-guile, according to how GDB was built.
249
635c7e8a
TT
2502014-06-13 Tom Tromey <tromey@redhat.com>
251
252 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
253 to help_list.
254 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
255 to help_list.
256 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
257 help_list.
258 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
259 help_list.Pass all_commands, not -1, to help_list.
260 * cli/cli-dump.c (dump_command, append_command)
261 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
262 (binary_dump_command, binary_append_command): Pass all_commands,
263 not -1, to help_list.
264 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
265 -1, to help_list.
266 * valprint.c (set_print, set_print_raw): Pass all_commands, not
267 -1, to help_list.
268 * typeprint.c (set_print_type): Pass all_commands, not -1, to
269 help_list.
270 * top.c (set_history): Pass all_commands, not -1, to help_list.
271 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
272 all_commands, not -1, to help_list.
273 * symfile.c (overlay_command): Pass all_commands, not -1, to
274 help_list.
275 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
276 help_list.
277 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
278 help_list.
279 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
280 -1, to help_list.
281 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
282 not -1, to help_list.
283 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
284 not -1, to help_list.
285 * maint.c (maintenance_command, maintenance_info_command)
286 (maintenance_print_command, maintenance_set_cmd): Pass
287 all_commands, not -1, to help_list.
288 * macrocmd.c (macro_command): Pass all_commands, not -1, to
289 help_list.
290 * language.c (set_check): Pass all_commands, not -1, to help_list.
291 * infcmd.c (unset_command): Pass all_commands, not -1, to
292 help_list.
293 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
294 help_list.
295 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
296 help_list.
297 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
298 help_list.
299 * breakpoint.c (save_command): Pass all_commands, not -1, to
300 help_list.
301 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
302 all_commands, not -1, to help_list.
303
b94ade42
PL
3042014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
305
306 * regcache.c (struct register_to_invalidate): New structure.
307 (do_register_invalidate, make_cleanup_regcache_invalidate): New
308 functions.
309 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
310
31f628ae
YQ
3112014-06-12 Yao Qi <yao@codesourcery.com>
312
313 * varobj.c (varobj_get_num_children): Call
314 varobj_is_dynamic_p.
315 (varobj_list_children): Likewise.
316 (varobj_update): Likewise. Update comments.
317
cde5ef40
YQ
3182014-06-12 Yao Qi <yao@codesourcery.com>
319
320 * varobj.c (varobj_pretty_printed_p): Rename to ...
321 (varobj_is_dynamic_p): ... this. New function.
322 * varobj.h (varobj_pretty_printed_p): Remove declaration.
323 (varobj_is_dynamic_p): Declare.
324 * mi/mi-cmd-var.c (print_varobj): All callers updated.
325 (mi_print_value_p, varobj_update_one): Likewise.
326
576ea091
YQ
3272014-06-12 Pedro Alves <pedro@codesourcery.com>
328 Yao Qi <yao@codesourcery.com>
329
330 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
331 (varobj_get_iterator): Wrap up code for pretty-printer by
332 "#if HAVE_PYTHON" and "#endif".
333 (update_dynamic_varobj_children): Likewise.
334
827f100c
YQ
3352014-06-12 Pedro Alves <pedro@codesourcery.com>
336 Yao Qi <yao@codesourcery.com>
337
338 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
339 gdb_python_initialized is false. Move some code from varobj.c.
340 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
341 * varobj.c: Move "varobj-iter.h" inclusion earlier.
342 (struct varobj_item): Moved to varobj-iter.h".
343 (varobj_clear_saved_item): New function.
344 (update_dynamic_varobj_children): Move python-related code to
345 py-varobj.c.
346 (free_variable): Call varobj_clear_saved_item and
347 varobj_iter_delete.
348
e5250216
YQ
3492014-06-12 Pedro Alves <pedro@codesourcery.com>
350 Yao Qi <yao@codesourcery.com>
351
352 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
353 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
354 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
355 (py-varobj.o): New rule.
356 * python/py-varobj.c: New file.
357 * python/python-internal.h (py_varobj_get_iterator): Declare.
358 * varobj-iter.h: New file.
359 * varobj.c: Include "varobj-iter.h"
360 (struct varobj) <child_iter>: Change its type from "PyObject *"
361 to "struct varobj_iter *".
362 <saved_item>: Likewise.
363 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
364 [HAVE_PYTHON] (varobj_get_iterator): New function.
365 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
366 python-specific code to python/py-varobj.c.
367 (install_visualizer): Call varobj_iter_delete instead of
368 Py_XDECREF.
369 * varobj.h (varobj_ensure_python_env): Declare.
370
5a2e0d6e
YQ
3712014-06-12 Yao Qi <yao@codesourcery.com>
372
373 * varobj.c (struct varobj_item): New structure.
374 (create_child_with_value): Update declaration.
375 (varobj_add_child): Replace arguments 'name' and 'value' with
376 'item'. All callers updated.
377 (install_dynamic_child): Likewise.
378 (update_dynamic_varobj_children): Likewise.
379 (varobj_add_child): Likewise.
380 (create_child_with_value): Likewise.
381
919b9a93
JB
3822014-06-11 Joel Brobecker <brobecker@adacore.com>
383
384 * NEWS: Create a new section for the next release branch.
385 Rename the section of the current branch, now that it has
386 been cut.
387
71a55bdf
JB
3882014-06-11 Joel Brobecker <brobecker@adacore.com>
389
390 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
391 * version.in: Bump version to 7.8.50.DATE-cvs.
392
364fe1f7
PA
3932014-06-11 Pedro Alves <palves@redhat.com>
394
395 PR remote/17028
396 * ser-mingw.c (net_windows_socket_check_pending): New function.
397 (net_windows_select_thread): Ignore spurious wakeups. Use
398 net_windows_socket_check_pending.
399 (net_windows_wait_handle): Check for pending events with
400 ioctlsocket, through net_windows_socket_check_pending, instead of
401 checking the socket's event.
402
5a6c7709
SC
4032014-06-10 Siva Chandra Reddy <sivachandra@google.com>
404
405 * python/python-internal.h (gdb_PyObject_GetAttrString)
406 (gdb_PyObject_HasAttrString): New inline function definitions.
407 * py-value.c (get_field_flag): Remove the now unnecessary cast to
408 char * of the second argument to PyObject_GetAttrString.
409
0e58ee40
JB
4102014-06-10 Joel Brobecker <brobecker@adacore.com>
411
412 * serial.c (serial_write): Fix index of character to be printed
413 in call to serial_logchar when serial debug traces are enabled.
414
d190df30
JB
4152014-06-10 Joel Brobecker <brobecker@adacore.com>
416
417 * gdbtypes (resolve_dynamic_range): Add function description.
418
b4b01d36
PA
4192014-06-09 Pedro Alves <palves@redhat.com>
420
421 * linux-nat.c (linux_child_follow_fork): Initialize status with
422 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
423 inner block. Only pass the signal to PTRACE_DETACH if in pass
424 state.
425
3657956b
GB
4262014-06-09 Gary Benson <gbenson@redhat.com>
427
428 * common/signals.c (gdb_signal_from_host): Reorder to separate
429 the always-available ANSI-standard signals from the signals that
430 require checking.
431 (do_gdb_signal_to_host): Likewise.
432 * proc-events.c (signal_table): Likewise.
433
c077881a
HZ
4342014-06-08 Hui Zhu <hui@codesourcery.com>
435
436 * common/linux-ptrace.c (linux_disable_event_reporting): New
437 function.
438 * common/linux-ptrace.h (linux_disable_event_reporting): New
439 declaration.
440 * linux-nat.c (linux_child_follow_fork): Do a single step before
441 detach.
442
4186eb54
KS
4432014-06-07 Keith Seitz <keiths@redhat.com>
444
445 Revert:
446 PR c++/16253
447 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
448 from symbol_matches_domain in symtab.c. All local callers
449 of symbol_matches_domain updated.
450 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
451 search STRUCT_DOMAIN.
452 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
453 independently. standard_lookup will do that automatically.
454 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
455 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
456 (cp_lookup_symbol_in_namespace): Likewise.
457 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
458 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
459 may return a STRUCT_DOMAIN match.
460 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
461 * cp-support.c: Include language.h.
462 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
463 VAR_DOMAIN.
464 * psymtab.c (match_partial_symbol): Compare the requested
465 domain with the symbol's domain directly.
466 (lookup_partial_symbol): Likewise.
467 * symtab.c (lookup_symbol_in_language): Explain when/why
468 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
469 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
470 appropriate languages.
471 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
472 and moved to ada-lang.c
473 (lookup_block_symbol): Explain that this function only returns
474 symbol matching the requested DOMAIN.
475 Compare the requested domain with the symbol's domain directly.
476 (iterate_over_symbols): Compare the requested domain with the
477 symbol's domain directly.
478 * symtab.h (symbol_matches_domain): Remove.
479
25326a28 4802014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
481
482 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
483 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
484 (gdbscm_guile_version_is_at_least): Declare.
485 (gdbscm_scm_string_to_int): Declare.
486 * guile/guile.c (gdbscm_guile_major_version): New global.
487 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
488 (guile_datadir): New static global.
489 (gdbscm_guile_data_directory): New function.
490 (initialize_scheme_side): Update.
491 (misc_guile_functions): Add guile-data-directory.
492 (initialize_gdb_module): Fetch guile version number.
493 * guile/lib/gdb.scm: Remove call to add-to-load-path.
494 * guile/lib/gdb/init.scm (%initialize!): Ditto.
495 * guile/lib/gdb/boot.scm: Use guile-data-directory.
496 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
497 comments.
498 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
499 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
500 * guile/scm-value.c (gdbscm_value_to_string): Only call
501 scm_port_conversion_strategy if Guile version >= 2.0.6.
502
0a770bb2 5032014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
504
505 * main.c (print_gdb_help): Add -q and --silent.
506
73ba372c
GB
5072014-06-06 Gary Benson <gbenson@redhat.com>
508
509 * common/signals.c: Remove preprocessor conditionals for
510 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
511 SIGSEGV and SIGTERM.
512 * proc-events.c: Likewise.
513
c33b2f12
MM
5142014-06-06 Markus Metzger <markus.t.metzger@intel.com>
515
516 * symfile.c (symfile_free_objfile): Remove restriction to
517 OBJF_USERLOADED.
518 * symfile-mem.c (symbol_file_add_from_memory): Call
519 add_target_sections_of_objfile.
520
fb934770
LC
5212014-06-05 Ludovic Courtès <ludo@gnu.org>
522
523 * guile/scm-value.c (gdbscm_history_append_x): Use
524 'vlscm_get_value_smob_arg_unsafe' instead of
525 'vlscm_scm_to_value'.
526
6ef284bd
SM
5272014-06-05 Simon Marchi <simon.marchi@ericsson.com>
528
529 PR mi/15806
530 * utils.c (printchar): Don't escape at all if quoter is NUL.
531 Update function documentation to clarify effect of parameter
532 QUOTER.
533 * remote.c (escape_buffer): Pass '\\' as the quoter to
534 fputstrn_unfiltered.
535 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
536 generate the output.
537 (mi_solib_unloaded): Same.
538
270c9937
JB
5392014-06-05 Joel Brobecker <brobecker@adacore.com>
540
541 * development.sh: Delete.
542 * Makefile.in (config.status): Adjust dependency on development.sh.
543 * configure.ac: Adjust development.sh source call.
544 * configure: Regenerate.
545
16f691fb
DE
5462014-06-04 Doug Evans <xdje42@gmail.com>
547
548 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
549 is_scheme_bkpt, spec.
550 (bpscm_make_breakpoint_smob): Initialize new members.
551 (gdbscm_create_breakpoint_x): Split into two ...
552 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
553 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
554 (scheme_function breakpoint_functions): Update.
555 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
556 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
557 register-breakpoint!.
558
ef7cab6b
JB
5592014-06-04 Joel Brobecker <brobecker@adacorer.com>
560
561 PR server/17023
562 * mem-break.c (z_type_supported): Return zero if
563 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
564
012370f6
TT
5652014-06-04 Tom Tromey <tromey@redhat.com>
566
567 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
568 value_from_contents_and_address_unresolved.
569 (ada_template_to_fixed_record_type_1): Likewise.
570 (ada_which_variant_applies): Likewise.
571 * value.h (value_from_contents_and_address_unresolved): Declare.
572 * value.c (value_from_contents_and_address_unresolved): New
573 function.
574 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
575 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
576 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
577
92e2a17f
TT
5782014-06-04 Tom Tromey <tromey@redhat.com>
579
580 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
581
c0939df1
TT
5822014-06-04 Tom Tromey <tromey@redhat.com>
583
584 * procfs.c (procfs_attach): Make "args" const.
585 * windows-nat.c (windows_attach): Make "args" const.
586 * nto-procfs.c (procfs_attach): Make "args" const.
587 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
588 * go32-nat.c (go32_attach): Make "args" const.
589 * gnu-nat.c (gnu_attach): Make "args" const.
590 * darwin-nat.c (darwin_attach): Make "args" const.
591 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
592 * linux-nat.c (linux_nat_attach): Make "args" const.
593 * remote.c (extended_remote_attach_1, extended_remote_attach):
594 Make "args" const.
595 * target.h (struct target_ops) <to_attach>: Make "args" const.
596 (find_default_attach): Likewise.
597 * utils.c (parse_pid_to_attach): Make "args" const.
598 * utils.h (parse_pid_to_attach): Update.
599
8eaff7cd
TT
6002014-06-04 Tom Tromey <tromey@redhat.com>
601
602 * target-delegates.c: Rebuild.
603 * target.c (default_thread_address_space): New function.
604 (target_thread_address_space): Simplify.
605 * target.h (struct target_ops) <to_thread_address_space>: Add
606 TARGET_DEFAULT_FUNC.
607
1913f160
DE
6082014-06-04 Doug Evans <xdje42@gmail.com>
609
610 * guile/scm-type.c (type_smob): Remove duplicate typedef.
611
70ad5bff
MM
6122014-06-04 Markus Metzger <markus.t.metzger@intel.com>
613
614 * record-btrace.c: Include event-loop.h and inf-loop.h.
615 (record_btrace_resume_exec_dir)
616 (record_btrace_async_inferior_event_handler)
617 (record_btrace_handle_async_inferior_event): New.
618 (record_btrace_open): Create async event handler.
619 (record_btrace_close): Delete async event handler.
620 (record_btrace_resume): Set record_btrace_resume_exec_dir,
621 Mark async event handler.
622 (record_btrace_execution_direction): New.
623 (init_record_btrace_ops): Initialize to_execution_direction.
624
b6210538
DE
6252014-06-03 Doug Evans <xdje42@gmail.com>
626
627 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
628 (gdbscm_make_parameter): Ditto.
629
a5b1fd27
DE
6302014-06-03 Doug Evans <dje@google.com>
631
632 * exec.c (exec_close_1): Call clear_section_table instead of
633 resize_section_table.
634 (clear_section_table): New function.
635 (resize_section_table): Make static. Rename arg num_added to
636 adjustment.
637 * exec.h (clear_section_table): Declare.
638 (resize_section_table): Delete.
639 * progspace.c (release_program_space): Call clear_section_table
640 instead of resize_section_table.
641
0c6e92a5
SC
6422014-06-03 Siva Chandra Reddy <sivachandra@google.com>
643
644 * NEWS (Python Scripting): Add entry about the new xmethods
645 feature.
646
883964a7
SC
6472014-06-03 Siva Chandra Reddy <sivachandra@google.com>
648
649 * python/py-xmethods.c: New file.
650 * python/py-objfile.c (objfile_object): New field 'xmethods'.
651 (objfpy_dealloc): XDECREF on the new xmethods field.
652 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
653 field.
654 (objfpy_get_xmethods): New function.
655 (objfile_getset): New entry 'xmethods'.
656 * python/py-progspace.c (pspace_object): New field 'xmethods'.
657 (pspy_dealloc): XDECREF on the new xmethods field.
658 (pspy_new, pspace_to_pspace_object): Initialize xmethods
659 field.
660 (pspy_get_xmethods): New function.
661 (pspace_getset): New entry 'xmethods'.
662 * python/python-internal.h: Add declarations for new functions.
663 * python/python.c (_initialize_python): Invoke
664 gdbpy_initialize_xmethods.
665 * python/lib/gdb/__init__.py (xmethods): New
666 attribute.
667 * python/lib/gdb/xmethod.py: New file.
668 * python/lib/gdb/command/xmethods.py: New file.
669
58992dc5
SC
6702014-06-03 Siva Chandra Reddy <sivachandra@google.com>
671
672 * eval.c (evaluate_subexp_standard): Call the xmethod if the
673 best match method returned by find_overload_match is an xmethod.
674 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
675 the best matching operator returned by find_overload_match is an
676 xmethod.
677 * valops.c: #include "extension.h".
678 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
679 Return void. The list of matching source methods is returned in
680 "fn_list" and a vector of matching debug method workers is
681 returned in "xm_worker_vec". Update all callers.
682 (value_find_oload_method_list): Likewise.
683 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
684 non-NULL, then the index of the best matching method in this
685 vector is returned. Update all callers.
686 (find_overload_match): Include xmethods while performing overload
687 resolution.
688
e81e7f5e
SC
6892014-06-03 Siva Chandra Reddy <sivachandra@google.com>
690
691 * defs.h (enum lval_type): New enumerator "lval_xcallable".
692 * extension-priv.h (struct extension_language_ops): Add the
693 xmethod interface.
694 * extension.c (new_xmethod_worker, clone_xmethod_worker,
695 get_matching_xmethod_workers, get_xmethod_argtypes,
696 invoke_xmethod, free_xmethod_worker,
697 free_xmethod_worker_vec): New functions.
698 * extension.h: #include "common/vec.h".
699 New function declarations.
700 (struct xmethod_worker): New struct.
701 (VEC (xmethod_worker_ptr)): New vector type.
702 (xmethod_worker_ptr): New typedef.
703 (xmethod_worker_vec): Likewise.
704 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
705 builtin_type.
706 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
707 (struct builtin_type): New field "xmethod".
708 * valarith.c (value_ptradd): Assert that the value argument is not
709 lval_xcallable.
710 * valops.c (value_must_coerce_to_target): Return 0 for
711 lval_xcallable values.
712 * value.c (struct value): New field XM_WORKER in the field
713 LOCATION.
714 (value_address, value_raw_address): Return 0 for lval_xcallable
715 values.
716 (set_value_address): Assert that the value is not an
717 lval_xcallable.
718 (value_free): Free the associated xmethod worker when freeing
719 lval_xcallable values.
720 (set_value_component_location): Assert that the WHOLE value is not
721 lval_xcallable.
722 (value_of_xmethod, call_xmethod): New functions.
723 * value.h: Declare "struct xmethod_worker".
724 Declare new functions value_of_xmethod, call_xmethod.
725
ef370185
JB
7262014-06-03 Joel Brobecker <brobecker@adacore.com>
727 Pedro Alves <palves@redhat.com>
728
729 PR breakpoints/17000
730 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
731 New function, extracted from software_breakpoint_inserted_here_p.
732 (software_breakpoint_inserted_here_p): Replace factored out code
733 by call to find_non_raw_software_breakpoint_inserted_here.
734 (bp_target_info_copy_insertion_state): New function.
735 (bkpt_insert_location): Handle the case of a single-step
736 breakpoint already inserted at the same address.
737 (bkpt_remove_location): Handle the case of a single-step
738 breakpoint still inserted at the same address.
739 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
740 breakpoint already inserted at the same address.
741 (deprecated_remove_raw_breakpoint): Handle the case of a
742 non-raw breakpoint still inserted at the same address.
743 (find_single_step_breakpoint): New function, extracted from
744 single_step_breakpoint_inserted_here_p.
745 (find_single_step_breakpoint): New function,
746 factored out from single_step_breakpoint_inserted_here_p.
747 (single_step_breakpoint_inserted_here_p): Reimplement.
748
1e2ccb61
BM
7492014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
750
751 Pushed by Joel Brobecker <brobecker@adacore.com>
752 * source.c (show_substitute_path_command): Fix display of matching
753 substitution rules.
754
d3448d85
GB
7552014-06-03 Gary Benson <gbenson@redhat.com>
756
757 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
758
06eb1586
DE
7592014-06-02 Doug Evans <xdje42@gmail.com>
760
761 Add parameter support for Guile.
762 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
763 (SUBDIR_GUILE_SRCS): Add scm-param.c.
764 (scm-param.o): New rule.
765 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
766 (gdbscm_misc_error): Declare.
767 (gdbscm_canonicalize_command_name): Declare.
768 (gdbscm_scm_to_host_string): Declare.
769 (gdbscm_scm_from_host_string): Declare.
770 (gdbscm_initialize_parameters): Declare.
771 * guile/guile.c (initialize_gdb_module): Call
772 gdbscm_initialize_parameters.
773 * guile/lib/gdb.scm: Export parameter symbols.
774 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
775 cmdscm_canonicalize_name and made public. All callers updated.
776 * guile/scm-exception.c (gdbscm_misc_error): New function.
777 * guile/scm-param.c: New file.
778 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
779 (gdbscm_scm_to_host_string): New function.
780 (gdbscm_scm_from_host_string): New function.
781 * scm-utils.c (gdbscm_gc_dup_argv): New function.
782
e698b8c4
DE
7832014-06-02 Doug Evans <xdje42@gmail.com>
784
785 Add command support for Guile.
786 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
787 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
788 (scm-cmd.o): New rule.
789 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
790 (gdbscm_user_error_p): Declare.
791 (gdbscm_parse_command_name): Declare.
792 (gdbscm_valid_command_class_p): Declare.
793 (gdbscm_initialize_commands): Declare.
794 * guile/guile.c (initialize_gdb_module): Call
795 gdbscm_initialize_commands.
796 * guile/lib/gdb.scm: Export command symbols.
797 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
798 (throw-user-error): New function.
799 * guile/scm-cmd.c: New file.
800 * guile/scm-exception.c (user_error_symbol): New static global.
801 (gdbscm_user_error_p): New function.
802 (gdbscm_initialize_exceptions): Set user_error_symbol.
803 * scm-utils.c (gdbscm_gc_xstrdup): New function.
804
fb1f94b0
PM
8052014-06-02 Phil Muldoon <pmuldoon@redhat.com>
806
807 * top.c (command_loop): Handle comments here...
808 (command_line_input): ... not here.
809
ded03782
DE
8102014-06-02 Doug Evans <xdje42@gmail.com>
811
812 Add progspace support for Guile.
813 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
814 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
815 (scm-progspace.o): New rule.
816 * guile/guile-internal.h (pspace_smob): New typedef.
817 (psscm_pspace_smob_pretty_printers): Declare.
818 (psscm_pspace_smob_from_pspace): Declare.
819 (psscm_scm_from_pspace): Declare.
820 * guile/guile.c (initialize_gdb_module): Call
821 gdbscm_initialize_pspaces.
822 * guile/lib/gdb.scm: Export progspace symbols.
823 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
824 support.
825 (append-pretty-printer!): Ditto.
826 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
827 Implement.
828 * guile/scm-progspace.c: New file.
829
397998fc
AM
8302014-06-03 Alan Modra <amodra@gmail.com>
831
832 * ppc64-tdep.c (ppc64_standard_linkage8): New.
833 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
834
6aa5f3a6
DE
8352014-06-02 Doug Evans <dje@google.com>
836
837 Add support for skeletonless type units.
838 * dwarf2read.c (struct dwarf2_per_objfile): New member
839 n_allocated_type_units.
840 (struct dwarf2_per_objfile) <tu_stats>: New member
841 nr_all_type_units_reallocs.
842 (create_signatured_type_table_from_index): Initialize
843 n_allocated_type_units
844 (create_all_type_units): Ditto.
845 (add_type_unit): Move up in file. New arg slot.
846 All callers updated. Increase space for all_type_units more
847 efficiently.
848 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
849 (lookup_dwo_signatured_type): Handle skeletonless TUs.
850 (lookup_dwp_signatured_type): Ditto.
851 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
852 All callers updated.
853 (build_type_psymtabs_1): Leave type_unit_groups as
854 NULL if no TUs present.
855 (print_tu_stats): New function.
856 (process_skeletonless_type_unit): New function.
857 (process_dwo_file_for_skeletonless_type_units): New
858 function.
859 (process_skeletonless_type_units): New function.
860 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
861 Call print tu_stats if debugging enabled.
862
41fac0cf
PA
8632014-06-02 Pedro Alves <palves@redhat.com>
864
865 * breakpoint.c (build_target_command_list): Don't build a command
866 list if we have any duplicate location that isn't a dprintf.
867
cd1608cc
PA
8682014-06-02 Pedro Alves <palves@redhat.com>
869
870 * breakpoint.c (dprintf_breakpoint_hit): New function.
871 (initialize_breakpoint_ops): Install it as dprintf's
872 breakpoint_hit method.
873
486ef3b9
JB
8742014-06-02 Joel Brobecker <brobecker@adacore.com>
875
876 * source.c (substitute_path_rule_matches): Simplify using
877 filename_ncmp instead of FILENAME_CMP.
878
230cd560
JB
8792014-06-02 Joel Brobecker <brobecker@adacore.com>
880
881 * source.c (substitute_path_rule_matches): Remove trailing spaces.
882
16954d5d
LC
8832014-06-01 Ludovic Courtès <ludo@gnu.org>
884
885 * configure.ac: When Guile is available, check for the
886 availability of 'scm_new_smob'.
887 * configure, config.h.in: Regenerate.
888 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
889 function.
890
53e8a631
AB
8912014-05-30 Andrew Burgess <aburgess@broadcom.com>
892
893 * frame.c (struct frame_info): Add stop_string field.
894 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
895 (get_prev_frame_always): Old content moved into
896 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
897 TRY_CATCH, handle MEMORY_ERROR exceptions.
898 (frame_stop_reason_string): New function definition.
899 * frame.h (unwind_stop_reason_to_string): Extend comment to
900 mention frame_stop_reason_string.
901 (frame_stop_reason_string): New function declaration.
902 * stack.c (frame_info): Switch to frame_stop_reason_string.
903 (backtrace_command_1): Switch to frame_stop_reason_string.
904 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
905 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
906 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
907
70e38b8e
AB
9082014-05-30 Andrew Burgess <aburgess@broadcom.com>
909
910 * frame.c (frame_stop_reason_string): Rename to ...
911 (unwind_stop_reason_to_string): this.
912 * frame.h (frame_stop_reason_string): Rename to ...
913 (unwind_stop_reason_to_string): this.
914 * stack.c (frame_info): Update call to frame_stop_reason_string.
915 (backtrace_command_1): Likewise.
916 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
917 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
918
938f0e2f
AB
9192014-05-30 Andrew Burgess <aburgess@broadcom.com>
920
921 * frame.c (remove_prev_frame): New function.
922 (get_prev_frame_if_no_cycle): Create / discard cleanup using
923 remove_prev_frame.
924
a09dd441
PA
9252014-05-29 Pedro Alves <palves@redhat.com>
926
927 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
928 and make it const. When a single-step decays to a continue,
929 clear 'step', not 'hw_step'. Pass whether the caller wanted
930 to step to user_visible_resume_ptid, not what we ask the
931 target to do.
932
bdc36728
PA
9332014-05-29 Pedro Alves <palves@redhat.com>
934
935 * infrun.c (process_event_stop_test, handle_step_into_function)
936 (handle_step_into_function_backward): Adjust.
937 Don't set the even thread's stop_step and call stop_waiting before
938 calling end_stepping_range. Instead do that ...
939 (end_stepping_range): ... here. Take an ecs pointer parameter.
940
22bcd14b
PA
9412014-05-29 Pedro Alves <palves@redhat.com>
942
943 * infrun.c (stop_stepping): Rename to ...
944 (stop_waiting): ... this.
945 (proceed): Update comment.
946 (process_event_stop_test, handle_inferior_event)
947 (handle_signal_stop, handle_step_into_function)
948 (handle_step_into_function_backward): Update.
949
4ae57c05
PA
9502014-05-29 Pedro Alves <palves@redhat.com>
951
952 * infcall.c (run_inferior_call): Don't check whether the current
953 thread is running after the proceed call.
954
329ea579
PA
9552014-05-29 Pedro Alves <palves@redhat.com>
956 Tom Tromey <tromey@redhat.com>
957
958 * NEWS: Mention "maint set target-async", "set mi-async", and that
959 background execution commands are now always available.
960 * target.h (target_async_permitted): Update comment.
961 * target.c (target_async_permitted, target_async_permitted_1):
962 Default to 1.
963 (set_target_async_command): Rename to ...
964 (maint_set_target_async_command): ... this.
965 (show_target_async_command): Rename to ...
966 (maint_show_target_async_command): ... this.
967 (_initialize_target): Adjust.
968 * infcmd.c (prepare_execution_command): Make extern.
969 * inferior.h (prepare_execution_command): Declare.
970 * infrun.c (set_observer_mode): Leave target async alone.
971 * mi/mi-interp.c (mi_interpreter_init): Install
972 mi_on_sync_execution_done as sync_execution_done observer.
973 (mi_on_sync_execution_done): New function.
974 (mi_execute_command_input_handler): Don't print the prompt if we
975 just started a synchronous command with an async target.
976 (mi_on_resume): Check sync_execution before printing prompt.
977 * mi/mi-main.h (mi_async_p): Declare.
978 * mi/mi-main.c: Include gdbcmd.h.
979 (mi_async_p): New function.
980 (mi_async, mi_async_1): New globals.
981 (set_mi_async_command, show_mi_async_command, mi_async): New
982 functions.
983 (exec_continue): Call prepare_execution_command.
984 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
985 (mi_execute_async_cli_command): Use mi_async_p.
986 (_initialize_mi_main): Install "set mi-async". Make
987 "target-async" a deprecated alias.
988
92bcb5f9
PA
9892014-05-29 Pedro Alves <palves@redhat.com>
990
991 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
992 (_initialize_cli_interp): Adjust.
993 * event-loop.c: Include "observer.h".
994 (start_event_loop): Notify 'command_error' observers instead of
995 calling display_gdb_prompt. Remove FIXME comment.
996 * event-top.c (display_gdb_prompt): Remove call into the
997 interpreters.
998 * inf-loop.c: Include "observer.h".
999 (inferior_event_handler): Notify 'command_error' observers instead
1000 of calling display_gdb_prompt.
1001 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1002 observers instead of calling display_gdb_prompt.
1003 * interps.c (interp_set): Don't call display_gdb_prompt.
1004 (current_interp_display_prompt_p): Delete.
1005 * interps.h (interp_prompt_p): Delete declaration.
1006 (interp_prompt_p_ftype): Delete.
1007 (struct interp_procs) <prompt_proc_p>: Delete field.
1008 (current_interp_display_prompt_p): Delete declaration.
1009 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1010 (_initialize_mi_interp): Adjust.
1011 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1012 'command_error' observers.
1013 (tui_on_sync_execution_done, tui_on_command_error): New
1014 functions.
1015 (tui_display_prompt_p): Delete.
1016 (_initialize_tui_interp): Adjust.
1017
fd664c91
PA
10182014-05-29 Pedro Alves <palves@redhat.com>
1019
1020 PR gdb/13860
1021 * cli/cli-interp.c: Include infrun.h and observer.h.
1022 (cli_uiout, cli_interp): New globals.
1023 (cli_on_signal_received, cli_on_end_stepping_range)
1024 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1025 functions.
1026 (cli_interpreter_init): Install them as 'end_stepping_range',
1027 'signal_received' 'signal_exited', 'exited' and 'no_history'
1028 observers.
1029 (_initialize_cli_interp): Remove cli_interp local.
1030 * infrun.c (handle_inferior_event): Call the several stop reason
1031 observers instead of printing the stop reason directly.
1032 (end_stepping_range): New function.
1033 (print_end_stepping_range_reason, print_signal_exited_reason)
1034 (print_exited_reason, print_signal_received_reason)
1035 (print_no_history_reason): Make static, and add an uiout
1036 parameter. Print to that instead of to CURRENT_UIOUT.
1037 * infrun.h (print_end_stepping_range_reason)
1038 (print_signal_exited_reason, print_exited_reason)
1039 (print_signal_received_reason print_no_history_reason): New
1040 declarations.
1041 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1042 'mi_uiout'.
1043 <cli_uiout>: New field.
1044 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1045 uiout for CLI output. Install 'signal_received',
1046 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1047 observers.
1048 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1049 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1050 (mi_on_no_history): New functions.
1051 (ui_out_free_cleanup): Delete function.
1052 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1053 instead use the one already stored in the MI interpreter data.
1054 (mi_ui_out): Adjust.
1055 * tui/tui-interp.c: Include infrun.h and observer.h.
1056 (tui_interp): New global.
1057 (tui_on_signal_received, tui_on_end_stepping_range)
1058 (tui_on_signal_exited, tui_on_exited)
1059 (tui_on_no_history): New functions.
1060 (tui_init): Install them as 'end_stepping_range',
1061 'signal_received' 'signal_exited', 'exited' and 'no_history'
1062 observers.
1063 (_initialize_tui_interp): Delete tui_interp local.
1064
8817a6f2
PA
10652014-05-29 Pedro Alves <palves@redhat.com>
1066
1067 PR gdb/15713
1068 * linux-nat.c (linux_nat_resume_callback): Rename the second
1069 parameter to 'except'. Skip LP if it points to EXCEPT.
1070 (linux_nat_resume): Don't mark the event lwp as not stopped
1071 before resuming sibling lwps. Instead ask
1072 linux_nat_resume_callback to skip the event lwp. Mark it as not
1073 stopped after actually resuming it.
1074 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1075 resuming it.
1076 (wait_lwp): Mark the lwp as stopped here.
1077 (stop_wait_callback): Mark the lwp as not stopped right after
1078 resuming it. Don't mark lwps as stopped here.
1079 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1080 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1081
251bde03
PA
10822014-05-29 Pedro Alves <palves@redhat.com>
1083
1084 PR PR15693
1085 * infrun.c (resume): Determine how much to resume depending on
1086 whether the caller wanted a step, not whether we can hardware step
1087 the target. Mark all threads that we intend to run as running,
1088 unless we're calling an inferior function.
1089 (normal_stop): If the thread is running an infcall, don't finish
1090 thread state.
1091 * target.c (target_resume): Don't mark threads as running here.
1092
7f3c0343
JB
10932014-05-28 Joel Brobecker <brobecker@adacore.com>
1094
1095 * serial.c (_initialize_serial): Remove support for
1096 the "set remotebaud" and "show remotebaud" commands.
1097 * NEWS: Add entry documenting the removal of that command.
1098
ee34b3f9
YQ
10992014-05-28 Yao Qi <yao@codesourcery.com>
1100
1101 * charset.c: Fix typo in comments.
1102
add6c04d
GB
11032014-05-27 Gary Benson <gbenson@redhat.com>
1104
1105 * utils.c (internal_vproblem): Prompt for a bug report.
1106
92c48fc5
AW
11072014-05-26 Andy Wingo <wingo@igalia.com>
1108
1109 * guile/scm-arch.c (arscm_mark_arch_smob):
1110 * guile/scm-block.c (bkscm_mark_block_smob)
1111 (bkscm_mark_block_syms_progress_smob):
1112 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1113 * guile/scm-exception.c (exscm_mark_exception_smob):
1114 * guile/scm-frame.c (frscm_mark_frame_smob):
1115 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1116 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1117 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1118 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1119 (ppscm_mark_pretty_printer_worker_smob):
1120 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1121 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1122 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1123 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1124 mark functions.
1125 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1126 function.
1127
b2715b27
AW
11282014-05-26 Andy Wingo <wingo@igalia.com>
1129 Doug Evans <xdje42@gmail.com>
1130
1131 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1132 empty_base_class. All uses updated.
1133 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1134 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1135 Adapt all callers.
1136 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1137 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1138 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1139 (gdbscm_gsmob_has_property_p, add_property_name)
1140 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1141 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1142 (gdb-object-has-property?, gdb-object-properties): Remove.
1143 (gdb-object-kind): Renamed from gsmob-kind.
1144
214ab2da
AW
11452014-05-26 Andy Wingo <wingo@igalia.com>
1146
1147 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1148 * configure: Regenerate.
1149
589fdceb
MM
11502014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1151
1152 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1153
67b5c0c1
MM
11542014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1155
1156 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1157 (replay_memory_access_read_only, replay_memory_access_read_write)
1158 (replay_memory_access_types, replay_memory_access)
1159 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1160 (cmd_set_record_btrace, cmd_show_record_btrace)
1161 (cmd_show_replay_memory_access): New.
1162 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1163 (record_btrace_remove_breakpoint): Replace
1164 record_btrace_allow_memory_access with replay_memory_access.
1165 (_initialize_record_btrace): Add commands.
1166 * NEWS: Announce it.
1167
036cd381
RR
11682014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1169
1170 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1171
c77c1e42
RR
11722014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1173
1174 * MAINTAINERS (Write After Approval): Move self back from
1175 paper trail.
1176
45741a9c
PA
11772014-05-22 Pedro Alves <palves@redhat.com>
1178
1179 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1180 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1181 (disable_randomization, enum exec_direction_kind)
1182 (execution_direction, stop_registers, start_remote)
1183 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1184 (wait_for_inferior, normal_stop, get_last_target_status)
1185 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1186 (insert_step_resume_breakpoint_at_sal)
1187 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1188 (set_step_info, print_stop_event, signal_stop_state)
1189 (signal_print_state, signal_pass_state, signal_stop_update)
1190 (signal_print_update, signal_pass_update)
1191 (update_signals_program_target, clear_exit_convenience_vars)
1192 (displaced_step_dump_bytes, update_observer_mode)
1193 (signal_catch_update, gdb_signal_from_command): Move
1194 declarations ...
1195 * infrun.h: ... to this new file.
1196 * amd64-tdep.c: Include infrun.h.
1197 * annotate.c: Include infrun.h.
1198 * arch-utils.c: Include infrun.h.
1199 * arm-linux-tdep.c: Include infrun.h.
1200 * arm-tdep.c: Include infrun.h.
1201 * break-catch-sig.c: Include infrun.h.
1202 * breakpoint.c: Include infrun.h.
1203 * common/agent.c: Include infrun.h instead of inferior.h.
1204 * corelow.c: Include infrun.h.
1205 * event-top.c: Include infrun.h.
1206 * go32-nat.c: Include infrun.h.
1207 * i386-tdep.c: Include infrun.h.
1208 * inf-loop.c: Include infrun.h.
1209 * infcall.c: Include infrun.h.
1210 * infcmd.c: Include infrun.h.
1211 * infrun.c: Include infrun.h.
1212 * linux-fork.c: Include infrun.h.
1213 * linux-nat.c: Include infrun.h.
1214 * linux-thread-db.c: Include infrun.h.
1215 * monitor.c: Include infrun.h.
1216 * nto-tdep.c: Include infrun.h.
1217 * procfs.c: Include infrun.h.
1218 * record-btrace.c: Include infrun.h.
1219 * record-full.c: Include infrun.h.
1220 * remote-m32r-sdi.c: Include infrun.h.
1221 * remote-mips.c: Include infrun.h.
1222 * remote-notif.c: Include infrun.h.
1223 * remote-sim.c: Include infrun.h.
1224 * remote.c: Include infrun.h.
1225 * reverse.c: Include infrun.h.
1226 * rs6000-tdep.c: Include infrun.h.
1227 * s390-linux-tdep.c: Include infrun.h.
1228 * solib-irix.c: Include infrun.h.
1229 * solib-osf.c: Include infrun.h.
1230 * solib-svr4.c: Include infrun.h.
1231 * target.c: Include infrun.h.
1232 * top.c: Include infrun.h.
1233 * windows-nat.c: Include infrun.h.
1234 * mi/mi-interp.c: Include infrun.h.
1235 * mi/mi-main.c: Include infrun.h.
1236 * python/py-threadevent.c: Include infrun.h.
1237
98eb56a4
PA
12382014-05-22 Pedro Alves <palves@redhat.com>
1239
1240 * infrun.c (handle_inferior_event): Store the exit code for
1241 --return-child-result here, instead of ...
1242 (print_exited_reason): ... here.
1243
17b2616c
PA
12442014-05-21 Pedro Alves <palves@redhat.com>
1245
1246 PR gdb/13860
1247 * gdbthread.h (struct thread_control_state): New field
1248 `command_interp'.
1249 * infrun.c (follow_fork): Copy the new thread control field to the
1250 child fork thread.
1251 (clear_proceed_status_thread): Clear the new thread control field.
1252 (proceed): Set the new thread control field.
1253 * interps.h (command_interp): Declare.
1254 * interps.c (command_interpreter): New global.
1255 (command_interp): New function.
1256 (interp_exec): Set `command_interpreter' while here.
1257 * cli-out.c (cli_uiout_dtor): New function.
1258 (cli_ui_out_impl): Install it.
1259 * mi/mi-interp.c: Include cli-out.h.
1260 (mi_cmd_interpreter_exec): Add comment.
1261 (restore_current_uiout_cleanup): New function.
1262 (ui_out_free_cleanup): New function.
1263 (mi_on_normal_stop): If finishing an execution command started by
1264 a CLI command, or any kind of breakpoint-like event triggered,
1265 print the stop event to the output (CLI) stream.
1266 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1267
5166082f
PA
12682014-05-21 Pedro Alves <palves@redhat.com>
1269
1270 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1271 current source line having changed.
1272 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1273 * infrun.c (normal_stop): Adjust call to
1274 set_current_sal_from_frame.
1275 * source.c (clear_lines_listed_range): New function.
1276 (set_current_source_symtab_and_line, identify_source_line): Clear
1277 the lines listed range.
1278 (line_info): Handle the first "info line" after the current source
1279 line having changed.
1280 * stack.c (print_stack_frame): Remove center handling.
1281 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1282 center sal.line.
1283
c1ee2fb3
PA
12842014-05-21 Pedro Alves <palves@redhat.com>
1285
1286 * inf-child.c (inf_child_mourn_inferior): New function.
1287 * inf-child.h (inf_child_mourn_inferior): New declaration.
1288 * darwin-nat.c (darwin_mourn_inferior): Use
1289 inf_child_mourn_inferior.
1290 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1291 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1292 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1293 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1294 * windows-nat.c (windows_mourn_inferior): Likewise.
1295
5c6d4fb2
DE
12962014-05-21 Doug Evans <xdje42@gmail.com>
1297
250748cb 1298 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 1299
4a2722c5
DE
13002014-05-21 Doug Evans <xdje42@gmail.com>
1301
17292b30 1302 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
1303 (gdbscm_out_of_range_error): Ditto.
1304 (gdbscm_memory_error): Ditto.
250748cb
DE
1305 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1306 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
1307 (gdbscm_out_of_range_error): Update.
1308 (gdbscm_memory_error): Update.
1309 (gdbscm_scm_to_target_string_unsafe): Delete.
1310
6a3cb8e8
PA
13112014-05-21 Pedro Alves <palves@redhat.com>
1312
1313 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1314 globals.
1315 (inf_child_open_target): New function.
1316 (inf_child_open): Use inf_child_open_target to push the target
1317 instead of erroring out.
1318 (inf_child_disconnect, inf_child_close)
1319 (inf_child_maybe_unpush_target): New functions.
1320 (inf_child_target): Install inf_child_disconnect and
1321 inf_child_close. Store a pointer to the returned object.
1322 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1323 declarations.
1324 * target.c (auto_connect_native_target): New global.
1325 (show_default_run_target): New function.
1326 (find_default_run_target): Return NULL if automatically connecting
1327 to the native target is disabled.
1328 (_initialize_target): Install set/show auto-connect-native-target.
1329 * NEWS: Mention "set auto-connect-native-target", and "target
1330 native".
1331 * linux-nat.c (super_close): New global.
1332 (linux_nat_close): Call super_close.
1333 (linux_nat_add_target): Store a pointer to the base class's
1334 to_close method.
1335 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1336 inf_child_maybe_unpush.
1337 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1338 already pushed.
1339 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1340 the inferior. Use inf_child_maybe_unpush_target.
1341 (inf_ttrace_attach): Don't push the target if it is already
1342 pushed.
1343 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1344 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1345 after mourning the inferior. Use inf_child_maybe_unpush_target.
1346 (darwin_attach_pid): Don't push the target if it is already
1347 pushed.
1348 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1349 mourning the inferior. Use inf_child_maybe_unpush_target.
1350 (gnu_detach): Use inf_child_maybe_unpush_target.
1351 * go32-nat.c (go32_create_inferior): Don't push the target if it
1352 is already pushed.
1353 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1354 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1355 (procfs_open): Rename to ...
1356 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1357 comments. Can target_preopen before changing node. Call
1358 inf_child_open_target to push the target explicitly.
1359 (procfs_attach): Don't push the target if it is already pushed.
1360 (procfs_detach): Use inf_child_maybe_unpush_target.
1361 (procfs_create_inferior): Don't push the target if it is already
1362 pushed.
1363 (nto_native_ops): New global.
1364 (procfs_open): Reimplement.
1365 (procfs_native_open): New function.
1366 (init_procfs_targets): Install procfs_native_open as to_open of
1367 "target native". Store a pointer to the "native" target in
1368 nto_native_ops.
1369 * procfs.c (procfs_attach): Don't push the target if it is already
1370 pushed.
1371 (procfs_detach): Use inf_child_maybe_unpush_target.
1372 (procfs_mourn_inferior): Only unpush the target after mourning the
1373 inferior. Use inf_child_maybe_unpush_target.
1374 (procfs_init_inferior): Don't push the target if it is already
1375 pushed.
1376 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1377 if it is already pushed.
1378
930ee1b1
PA
13792014-05-21 Pedro Alves <palves@redhat.com>
1380
1381 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1382 and "procfs" targets are now called "native" instead.
1383
1f5d1b13
PA
13842014-05-21 Pedro Alves <palves@redhat.com>
1385
1386 * go32-nat.c (go32_open): Delete.
1387 (go32_target): Don't override the to_open method.
1388
132f8e03
PA
13892014-05-21 Pedro Alves <palves@redhat.com>
1390
1391 * nto-procfs.c (procfs_can_run): New function.
1392 (nto_procfs_ops): New global.
1393 (init_procfs_targets): New, based on procfs_target. Install
1394 "target native" in addition to "target procfs".
1395 (_initialize_procfs): Call init_procfs_targets instead of adding
1396 the target here.
1397
03c136c3
PA
13982014-05-21 Pedro Alves <palves@redhat.com>
1399
1400 * windows-nat.c (windows_target): Don't override to_shortname,
1401 to_longname or to_doc.
1402
a635d0f3
PA
14032014-05-21 Pedro Alves <palves@redhat.com>
1404
1405 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1406 to_doc.
1407
4f9b5133
PA
14082014-05-21 Pedro Alves <palves@redhat.com>
1409
1410 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1411 to_shortname, to_longname or to_doc.
1412
bc85afde
PA
14132014-05-21 Pedro Alves <palves@redhat.com>
1414
1415 * go32-nat.c (go32_target): Don't override to_shortname,
1416 to_longname or to_doc.
1417
4ebfc96e
PA
14182014-05-21 Pedro Alves <palves@redhat.com>
1419
1420 * inf-child.c (inf_child_open): Remove mention of "child".
1421 (inf_child_target): Rename target to "native" instead of "child".
1422
2648dfed
AA
14232014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1424
1425 * Makefile.in (SFILES): Delete "regset.c".
1426 (COMMON_OBS): Delete "regset.o".
1427 * regset.c: Remove.
1428 * regset.h (regset_alloc): Delete prototype.
1429
b13feb94
AA
14302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1431
1432 * sparc-linux-tdep.c (sparc32_linux_gregset)
1433 (sparc32_linux_fpregset): New static regset structures.
1434 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1435 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1436 'fpregset' fields.
1437 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1438 (sparc64_linux_fpregset): New static regset structures.
1439 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1440 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1441 New static regset structures.
1442 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1443 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1444 New static regset structures.
1445 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1446 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1447 New static regset structures.
1448 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1449 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1450 New static regset structures.
1451 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1452
b4fd25c9
AA
14532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1454
1455 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1456 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1457 register maps ("regmaps") from "*regset" to "*regmap". Do this
1458 for all regmap types and variables.
1459 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1460 (sparc32_linux_supply_core_gregset)
1461 (sparc32_linux_collect_core_gregset)
1462 (sparc32_linux_supply_core_fpregset)
1463 (sparc32_linux_collect_core_fpregset): Likewise.
1464 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1465 (sparc_gregmap, sparc_fpregmap): ... these.
1466 (sparc_supply_gregset, sparc_collect_gregset)
1467 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1468 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1469 (_initialize_sparc_nat): Rename regmaps.
1470 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1471 (sparc_gregmap, sparc_fpregmap): ... these.
1472 (sparc_supply_gregset, sparc_collect_gregset)
1473 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1474 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1475 Rename macros to...
1476 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1477 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1478 Likewise.
1479 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1480 Rename to...
1481 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1482 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1483 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1484 regmaps.
1485 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1486 (sparc32_bsd_fpregset): Rename to...
1487 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1488 (sparc32_bsd_fpregmap): ... these.
1489 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1490 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1491 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1492 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1493 (struct sparc_gregmap, struct sparc_fpregmap)
1494 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1495 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1496 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1497 (sparc32_supply_regset, sparc32_collect_gregset)
1498 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1499 prototypes.
1500 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1501 (sparc64_linux_ptrace_gregmap): ... this.
1502 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1503 (_initialize_sparc64_linux_nat): Rename regmaps.
1504 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1505 (sparc64_linux_core_gregmap): ... this.
1506 (sparc64_linux_supply_core_gregset)
1507 (sparc64_linux_collect_core_gregset)
1508 (sparc64_linux_supply_core_fpregset)
1509 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1510 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1511 (sparc64_sol2_fpregset): Rename to...
1512 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1513 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1514 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1515 regmaps.
1516 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1517 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1518 (sparc64_bsd_fpregset): Rename to...
1519 (struct sparc_gregmap, sparc64_sol2_gregmap)
1520 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1521 (sparc64_bsd_fpregmap): ... these.
1522 (sparc64_supply_gregset, sparc64_collect_gregset)
1523 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1524 prototypes.
1525 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1526 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1527 (sparc64fbsd_gregmap): ... this.
1528 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1529 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1530 Rename regmaps.
1531 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1532 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1533 (sparc64nbsd_collect_fpregset): Likewise.
1534 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1535 (sparc64nbsd_gregmap): ... this.
1536 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1537 regmaps.
1538 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1539 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1540 (sparc64obsd_gregmap): ... this.
1541 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1542 regmaps.
1543 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1544 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1545 (sparc32nbsd_gregmap): ... this.
1546 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1547 regmaps.
1548
8fea3224
AA
15492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550
1551 * score-tdep.c (score7_linux_gregset): New static regset
1552 structure.
1553 (score7_linux_regset_from_core_section): Remove dynamic regset
1554 allocation.
1555 (score_gdbarch_init): Drop allocation of tdep structure.
1556 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1557
24534243
AA
15582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1559
1560 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1561 regset structures.
1562 (am33_regset_from_core_section): Remove dynamic regset
1563 allocations.
1564
b7195f27
AA
15652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1566
1567 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1568 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1569 structures.
1570 (mips_linux_regset_from_core_section): Remove dynamic regset
1571 allocations.
1572 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1573 'gregset64', 'fpregset', and 'fpregset64'.
1574 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1575 deleted tdep fields.
1576
ecc37a5a
AA
15772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1578
1579 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1580 regset structures.
1581 (amd64_regset_from_core_section): Remove dynamic regset
1582 allocations.
1583 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1584 structure.
1585 (amd64obsd_regset_from_core_section): Remove dynamic regset
1586 allocation.
1587 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1588 Likewise.
1589 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1590 x86-common regset supply function.
1591 * i386-tdep.c (i386_collect_gregset): Make static.
1592 (i386_gregset): New global regset structure.
1593 (i386_fpregset, i386_xstateregset): New static regset structures.
1594 (i386_regset_from_core_section): Remove dynamic regset
1595 allocations.
1596 (i386_gdbarch_init): Remove initialization of tdep fields
1597 'gregset', 'fpregset', and 'xstateregset'.
1598 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1599 'fpregset', and 'xstateregset'.
1600 (i386_collect_gregset): Remove prototype.
1601 (i386_gregset): New declaration.
1602 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1603 structure.
1604 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1605 allocation.
1606
b7611c43
AA
16072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1608
1609 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1610 (arm_linux_vfpregset): New static regset structures.
1611 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1612 regset structures.
1613 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1614 and 'vfpregset' fields.
1615
a069a2bd
AA
16162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1617
1618 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1619 (aarch64_linux_fpregset): New static regset structures.
1620 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1621 of regset structures.
1622 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1623 'fpregset' fields.
1624
09424cff
AA
16252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1626
1627 * regset.h (struct regset): Remove gdbarch field.
1628 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1629 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1630 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1631 Likewise.
1632 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1633 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1634 (ppc32_linux_vsxregset): Likewise.
1635 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1636 via the regcache instead of the regset.
1637 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1638 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1639 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1640 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1641 Likewise.
1642
3ca7dae4
AA
16432014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1644
1645 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1646 Constify structures.
1647 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1648 (alphanbsd_aout_gregset): Likewise.
1649 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1650 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1651 Likewise.
1652 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1653 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1654 Likewise.
1655 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1656 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1657 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1658 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1659 * m88k-tdep.c (m88k_gregset): Likewise.
1660 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1661 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1662 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1663 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1664 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1665 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1666 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1667 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1668 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1669 Likewise.
1670 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1671 * sh-tdep.h (sh_corefile_gregset): Likewise.
1672 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1673 * vax-tdep.c (vax_gregset): Likewise.
1674
5876f503
JK
16752014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1676
1677 Fix TLS access for -static -pthread.
1678 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1679 (try_thread_db_load_1): Initialize it.
1680 (thread_db_get_thread_local_address): Call it if LM is zero.
1681 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1682 * target.h (struct target_ops) (to_get_thread_local_address): Add
1683 load_module_addr comment.
1684
0256a6ac
PA
16852014-05-21 Pedro Alves <palves@redhat.com>
1686
1687 * dcache.c (dcache_read_memory_partial): If reading the cache line
1688 fails, fallback to reading just the memory the caller wanted.
1689
227533ac
DE
16902014-05-20 Doug Evans <dje@google.com>
1691
1692 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1693 instead of get_current_arch.
1694
936d2992
PA
16952014-05-20 Pedro Alves <palves@redhat.com>
1696
1697 * NEWS: Mention that compare-sections now works with all targets.
1698
1699 * remote.c (PACKET_qCRC): New enum value.
1700 (remote_verify_memory): Don't send qCRC if the target has no
1701 execution. Use packet_support/packet_ok. If the target doesn't
1702 support the qCRC packet, fallback to a deep memory copy.
1703 (compare_sections_command): Say "target image" instead of "remote
1704 executable".
1705 (_initialize_remote): Add PACKET_qCRC to the list of config
1706 packets that have no associated command. Extend comment.
1707 * target.c (simple_verify_memory, default_verify_memory): New
1708 function.
1709 * target.h (struct target_ops) <to_verify_memory>: Default to
1710 default_verify_memory.
1711 (simple_verify_memory): New declaration.
1712 * target-delegates.c: Regenerate.
1713
e59fa00f
MM
17142014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1715
1716 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1717
f2205de0
HZ
17182014-05-20 Hui Zhu <hui@codesourcery.com>
1719 Yao Qi <yao@codesourcery.com>
1720
1721 PR backtrace/16558
1722 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1723 and change address of sp and pc.
1724
c4e54771
TT
17252014-05-19 Tom Tromey <tromey@redhat.com>
1726
1727 * gdbtypes.c (rank_function): Use XNEWVEC.
1728 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1729
73051182
DE
17302014-05-19 Doug Evans <dje@google.com>
1731
1732 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1733 build_type_unit_groups and moved closer to only caller. Remove
1734 arguments. All references updated. Remove outdated .gdb_index
1735 comment.
1736 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1737 build_type_psymtabs_1.
1738
8832e7e3
DE
17392014-05-19 Doug Evans <dje@google.com>
1740
1741 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1742 n_type_unit_groups, all_type_unit_groups. All uses removed.
1743 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1744 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1745 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1746 (add_type_unit_group_to_table): Delete.
1747
cd8ae15e
DE
17482014-05-19 Doug Evans <dje@google.com>
1749
1750 * eval.c (evaluate_subexp_standard): Add some comments.
1751
08f4850b
DE
17522014-05-17 Doug Evans <xdje42@gmail.com>
1753
1754 * progspace.c (remove_program_space): Delete, unused.
1755 * progspace.h (remove_program_space): Ditto.
1756
bed8455c
DE
17572014-05-17 Doug Evans <xdje42@gmail.com>
1758
1759 * inferior.c (prune_inferiors): Fix comment.
1760 (remove_inferior_command): Call prune_program_spaces.
1761
8d551b02
DE
17622014-05-16 Doug Evans <dje@google.com>
1763
1764 New command line option -D.
1765 * NEWS: Mention it.
1766 * main.c (set_gdb_data_directory): New function.
1767 (captured_main): Recognize -D. Flag error for --data-directory "".
1768 Call set_gdb_data_directory.
1769 (print_gdb_help): Print --data-directory, -D.
1770 * main.h (set_gdb_data_directory): Declare.
1771 * top.c (staged_gdb_datadir): New static global.
1772 (set_gdb_datadir): Call set_gdb_data_directory
1773 (show_gdb_datadir): New function.
1774 (init_main): Update init of data-directory parameter.
1775
18848e28
GF
17762014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1777
1778 Import the "dirfd" gnulib module.
1779 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1780 * gnulib/aclocal.m4: Update.
1781 * gnulib/config.in: Update.
1782 * gnulib/configure: Update.
1783 * gnulib/import/Makefile.am: Update.
1784 * gnulib/import/Makefile.in: Update.
1785 * gnulib/import/dirfd.c: New.
1786 * gnulib/import/m4/dirfd.m4: New.
1787 * gnulib/import/m4/gnulib-cache.m4: Update.
1788 * gnulib/import/m4/gnulib-comp.m4: Update.
1789
95c64f92
YQ
17902014-05-16 Pierre Muller <muller@sourceware.org>
1791 Yao Qi <yao@codesourcery.com>
1792
1793 * valprint.c (print_wchar): Move the code on checking whether
1794 W is a printable wide char to the default branch of switch
1795 statement below. Call wchar_printable instead of gdb_iswprint.
1796
cac395ea
TM
17972014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1798
19679eca 1799 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
1800 ldr.w and ldrd instructions.
1801
83655187
DE
18022014-05-15 Doug Evans <dje@google.com>
1803
1804 * dwarf2read.c (read_structure_type): Delete outdated comments.
1805
dd756689
TT
18062014-05-14 Tom Tromey <tromey@redhat.com>
1807
1808 * macrocmd.c (print_macro_definition): Reindent.
1809
75ddda77
DE
18102014-05-13 Doug Evans <xdje42@gmail.com>
1811
1812 * python/py-cmd.c (cmdpy_completer): Add comment.
1813 (completers): Make const.
1814
b0f16a3e
SM
18152014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1816
1817 * infrun.c (resume): Remove should_resume (unused). Move up
1818 declaration of resume_ptid.
1819
033c3379
TT
18202014-05-13 Tom Tromey <tromey@redhat.com>
1821
1822 * language.h (unop_type_check): Remove.
1823 (binop_type_check): Don't declare.
1824
9b44a3a5
AA
18252014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1826
1827 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1828 call to regcache_raw_collect.
1829
303a33fa
SM
18302014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1831
1832 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1833 mi_console->quote as the quoting character.
1834
196100a0
SM
18352014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1836
1837 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1838
f989a1c8
TT
18392014-04-29 Tom Tromey <tromey@redhat.com>
1840
1841 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1842 "show debug varobj".
1843
9404b58f
KM
18442014-05-07 Kyle McMartin <kyle@redhat.com>
1845
1846 Pushed by Joel Brobecker <brobecker@adacore.com>.
1847 * aarch64-tdep.c (aarch64_software_single_step): New function.
1848 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1849 with aarch64_software_single_step.
1850
5e49ba57
JB
18512014-05-05 Joel Brobecker <brobecker@adacore.com>
1852
1853 GDB 7.7.1 released.
1854
c888a17d
KS
18552014-05-05 Keith Seitz <keiths@redhat.com>
1856
1857 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1858 variable or history value is successfully parsed.
1859
290a839c
YQ
18602014-05-05 Yao Qi <yao@codesourcery.com>
1861 Pedro Alves <palves@redhat.com>
1862
1863 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1864 address of blocks that intersects the requested range. Trim
1865 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1866 sections.
1867 * ctf.c (ctf_xfer_partial): Likewise.
1868
91256dc2
YQ
18692014-05-05 Yao Qi <yao@codesourcery.com>
1870
1871 * printcmd.c (display_command): Remove the check to
1872 target_has_execution.
1873
07284463
MK
18742014-05-03 Mark Kettenis <kettenis@gnu.org>
1875
1876 * ppcobsd-nat.c: Include "obsd-nat.h".
1877 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1878 add_target.
1879 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1880
30a1e6cc
SDJ
18812014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1882
1883 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1884 and 16-bit signed and unsigned arguments. Update comment.
1885 (stap_parse_probe_arguments): Extend code to handle such
1886 arguments. Use warning instead of complaint to notify about
1887 unrecognized bitness.
1888
f33da99a
SDJ
18892014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1890
1891 PR breakpoints/16889
1892 * stap-probe.c (stap_parse_probe_arguments): Simplify
1893 check for non-prefixed probes (i.e., probes whose
1894 arguments do not start with "N@"). Always set the
1895 argument type to a sane value.
1896
95cf3b38
DT
18972014-05-01 David Taylor <dtaylor@emc.com>
1898
1899 * remote.c (compare_sections_command): Add -r option to compare
1900 all loadable read-only sections.
1901
1cfdf534
SC
19022014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1903
1904 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1905 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1906 Update all callers.
1907 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1908 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1909 Remove unused CORE_ADDR argument. Update all callers.
1910
ca4f7f8b
PA
19112014-04-29 Pedro Alves <palves@redhat.com>
1912
1913 * remote.c (struct packet_config) <detect>: Extend comment.
1914 (add_packet_config_cmd): Don't set the config's detect or support
1915 fields here.
1916 (init_all_packet_configs): Also initialize the config's 'detect'
1917 field.
1918 (reset_all_packet_configs_support): New function.
1919 (remote_open_1): Call reset_all_packet_configs_support instead of
1920 init_all_packet_configs.
1921 (_initialize_remote): Initialize all packet configs. Assert that
1922 all packets have an associated command, except a few known
1923 outliers.
1924
11c1ba78
JB
19252014-04-28 Joel Brobecker <brobecker@adacore.com>
1926
1927 * dwarf2read.c (read_subrange_type): Handle dynamic
1928 DW_AT_lower_bound attributes.
1929
8739bc53
JB
19302014-04-28 Joel Brobecker <brobecker@adacore.com>
1931
1932 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1933 dynamic bounds before computing its upper bound.
1934 (ada_discrete_type_low_bound): Same as above with the lower bound.
1935
6f8a3220
JB
19362014-04-28 Joel Brobecker <brobecker@adacore.com>
1937
1938 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1939 range types. Adjust the array handling implementation to
1940 take advantage of this change.
1941 (resolve_dynamic_range): New function, mostly extracted from
1942 resolve_dynamic_bounds.
1943 (resolve_dynamic_array): New function, mostly extracted from
1944 resolve_dynamic_bounds.
1945 (resolve_dynamic_bounds): Delete.
1946 (resolve_dynamic_type): Reimplement. Add handling of
1947 TYPE_CODE_RANGE types.
1948
4d072ce4
JB
19492014-04-28 Joel Brobecker <brobecker@adacore.com>
1950
1951 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1952 handling of parallel ___XA types.
1953
52865325
JB
19542014-04-28 Joel Brobecker <brobecker@adacore.com>
1955
1956 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1957 unnecessary second call to static_unwrap_type.
1958
433e77fa
HZ
19592014-04-27 Hui Zhu <hui@codesourcery.com>
1960
1961 * stack.c (print_frame_info): Call do_gdb_disassembly with
1962 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1963
b51a69ee
DE
19642014-04-26 Doug Evans <xdje42@gmail.com>
1965
1966 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1967
7ae1a6a6
PA
19682014-04-25 Pedro Alves <palves@redhat.com>
1969
1970 PR server/16255
1971 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1972 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1973 and newline from built string.
1974 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1975 (linux_ptrace_attach_fail_reason): ... this.
1976 * linux-nat.c (linux_nat_attach): Adjust to use
1977 linux_ptrace_attach_fail_reason.
1978
4082afcc
PA
19792014-04-25 Pedro Alves <palves@redhat.com>
1980
1981 * remote.c (struct remote_state): Remove multi_process_aware,
1982 non_stop_aware, cond_tracepoints, cond_breakpoints,
1983 breakpoint_commands, fast_tracepoints, static_tracepoints,
1984 install_in_trace, disconnected_tracing,
1985 enable_disable_tracepoints, string_tracing, and
1986 augmented_libraries_svr4_read fields.
1987 (remote_multi_process_p): Move further below in the file.
1988 (struct packet_config): Add comments.
1989 (update_packet_config): Delete function.
1990 (show_packet_config_cmd): Use packet_config_support.
1991 (add_packet_config_cmd): Use NULL as set callback.
1992 (packet_ok): "set remote foo-packet"-style commands no longer
1993 change config->supported -- adjust.
1994 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1995 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1996 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1997 (PACKET_QNonStop, PACKET_multiprocess_feature)
1998 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1999 (PACKET_DisconnectedTracing_feature)
2000 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2001 (set_remote_protocol_packet_cmd): Delete function.
2002 (packet_config_support, packet_support): New functions.
2003 (set_remote_protocol_Z_packet_cmd): Don't call
2004 update_packet_config.
2005 (remote_query_attached, remote_pass_signals)
2006 (remote_program_signals, remote_threads_info)
2007 (remote_threads_extra_info, remote_start_remote): Use
2008 packet_support.
2009 (remote_start_remote): Use packet_config_support and
2010 packet_support.
2011 (init_all_packet_configs): Set all packets to unknown support,
2012 instead of calling update_packet_config.
2013 (remote_check_symbols): Use packet_support.
2014 (remote_supported_packet): Unconditionally set the packet config's
2015 support status.
2016 (remote_multi_process_feature, remote_non_stop_feature)
2017 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2018 (remote_breakpoint_commands_feature)
2019 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2020 (remote_install_in_trace_feature)
2021 (remote_disconnected_tracing_feature)
2022 (remote_enable_disable_tracepoint_feature)
2023 (remote_string_tracing_feature)
2024 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2025 (remote_protocol_features): Adjust to use remote_supported_packet
2026 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2027 "ConditionalTracepoints", "ConditionalBreakpoints",
2028 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2029 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2030 "EnableDisableTracepoints", and "tracenz".
2031 (remote_query_supported): Use packet_support.
2032 (remote_open_1): Adjust.
2033 (extended_remote_attach_1): Use packet_support. Switch on the
2034 result of packet_ok instead of checking whether the packet ended
2035 up disabled.
2036 (remote_vcont_resume): Use packet_support.
2037 (remote_resume, remote_stop_ns, fetch_register_using_p)
2038 (remote_prepare_to_store, store_register_using_P)
2039 (check_binary_download, remote_write_bytes): Use packet_support.
2040 (remote_vkill): Use packet_support. Switch on the result of
2041 packet_ok instead of checking whether the packet ended up
2042 disabled.
2043 (extended_remote_supports_disable_randomization): Use
2044 packet_support.
2045 (extended_remote_run): Switch on the result of packet_ok instead
2046 of checking whether the packet ended up disabled.
2047 (remote_insert_breakpoint, remote_remove_breakpoint)
2048 (remote_insert_watchpoint, remote_remove_watchpoint)
2049 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2050 packet_support.
2051 (remote_search_memory): Use packet_config_support.
2052 (remote_get_thread_local_address, remote_get_tib_address)
2053 (remote_hostio_send_command, remote_can_execute_reverse): Use
2054 packet_support.
2055 (remote_supports_cond_tracepoints)
2056 (remote_supports_cond_breakpoints)
2057 (remote_supports_fast_tracepoints)
2058 (remote_supports_static_tracepoints)
2059 (remote_supports_install_in_trace)
2060 (remote_supports_enable_disable_tracepoint)
2061 (remote_supports_string_tracing)
2062 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2063 the packet config says the feature is enabled or disabled.
2064 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2065 (remote_get_trace_status): Use packet_support.
2066 (remote_set_disconnected_tracing): Adjust to check whether the
2067 feature is enabled with packet_support.
2068 (remote_set_trace_buffer_size, remote_use_agent)
2069 (remote_can_use_agent, remote_supports_btrace): Use
2070 packet_support.
2071 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2072 Use packet_config_support.
2073 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2074 the packet config says the feature is enabled or disabled.
2075 (set_range_stepping): Use packet_support.
2076
bdb52a22
TT
20772014-04-25 Tom Tromey <tromey@redhat.com>
2078
2079 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2080 argument.
2081
e9475ead
SA
20822014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2083
2084 * NEWS: Mention support for C99 variable length arrays.
2085
82eacd52
JB
20862014-04-24 Joel Brobecker <brobecker@adacore.com>
2087
2088 * ada-lang.c (standard_exc): Expand introductory comment.
2089
01f9f808
MS
20902014-04-24 Michael Sturm <michael.sturm@mintel.com>
2091 Walfred Tedeschi <walfred.tedeschi@intel.com>
2092
2093 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2094 AVX512 registers.
2095 (amd64_linux_read_description): Add code to handle AVX512 xstate
2096 mask and return respective tdesc.
2097 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2098 and features/i386/x32-avx512-linux.c.
2099 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2100 (amd64_linux_core_read_description): Add code to handle AVX512
2101 xstate mask and return respective tdesc.
2102 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2103 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2104 calculation.
2105 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2106 (tdesc_amd64_avx512_linux): New prototype.
2107 (tdesc_x32_avx512_linux): Likewise.
2108 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2109 features/i386/x32-avx512.c.
2110 (amd64_ymm_avx512_names): New register names for pseudo
2111 registers YMM16-31.
2112 (amd64_ymmh_avx512_names): New register names for raw registers
2113 YMMH16-31.
2114 (amd64_k_names): New register names for K registers.
2115 (amd64_zmmh_names): New register names for ZMM raw registers.
2116 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2117 (amd64_xmm_avx512_names): New register names for XMM16-31
2118 registers.
2119 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2120 registers.
2121 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2122 if feature is present.
2123 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2124 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2125 (AMD64_NUM_REGS): Adjust to new number of registers.
2126 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2127 registers supplied via XSTATE by AVX512 registers.
2128 (i386_linux_read_description): Add case for AVX512.
2129 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2130 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2131 (i386_linux_core_read_description): Add case for AVX512.
2132 (i386_linux_init_abi): Install supported register note section
2133 for AVX512.
2134 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2135 AVX512.
2136 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2137 registers to be number of zmm7h + 1.
2138 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2139 * i386-tdep.c: Include features/i386/i386-avx512.c.
2140 (i386_zmm_names): Add ZMM pseudo register names array.
2141 (i386_zmmh_names): Add ZMM raw register names array.
2142 (i386_k_names): Add K raw register names array.
2143 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2144 registers. AVX512 has 16 more ZMM registers than there are YMM
2145 registers.
2146 (i386_zmmh_regnum_p): Add function to look up register number of
2147 ZMM raw registers.
2148 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2149 (i386_k_regnum_p): Likewise for K raw registers.
2150 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2151 registers added by AVX512.
2152 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2153 registers added by AVX512.
2154 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2155 added by AVX512.
2156 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2157 (i386_pseudo_register_name): Add ZMM pseudo registers.
2158 (i386_zmm_type): Construct and return vector registers type for ZMM
2159 registers.
2160 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2161 ZMM0-31 pseudo registers and K registers.
2162 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2163 and YMM16-31 registers from register cache.
2164 (i386_pseudo_register_write): Add code to write K, ZMM and
2165 YMM16-31 registers.
2166 (i386_register_reggroup_p): Add code to include/exclude AVX512
2167 registers in/from respective register groups.
2168 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2169 registers if feature is present in xcr0.
2170 (i386_gdbarch_init): Add code to initialize AVX512 feature
2171 variables in tdep structure, wire in pseudo registers and call
2172 initialize_tdesc_i386_avx512.
2173 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2174 variables.
2175 (i386_regnum): Add AVX512 registers.
2176 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2177 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2178 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2179 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2180 512 bits wide.
2181 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2182 (i386_ymm_avx512_regnum_p): Likewise.
2183 (i386_k_regnum_p): Likewise.
2184 (i386_zmm_regnum_p): Likewise.
2185 (i386_zmmh_regnum_p): Likewise.
2186 * i387-tdep.c : Update year in copyright notice.
2187 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2188 XSAVE buffer.
2189 (XSAVE_YMM_AVX512_ADDR): New macro.
2190 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2191 XSAVE buffer.
2192 (XSAVE_XMM_AVX512_ADDR): New macro.
2193 (xsave_avx512_k_offset): New table for K register offsets in
2194 XSAVE buffer.
2195 (XSAVE_AVX512_K_ADDR): New macro.
2196 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2197 in XSAVE buffer.
2198 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2199 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2200 buffer.
2201 (i387_collect_xsave): Add code to collect AVX512 registers from
2202 XSAVE buffer.
2203 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2204 of XMM16-31 registers.
2205 (I387_NUM_K_REGS): New define for number of K registers.
2206 (I387_K0_REGNUM): New define for K0 register number.
2207 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2208 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2209 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2210 registers.
2211 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2212 (I387_XMM16_REGNUM): New define for XMM16 register number.
2213 (I387_YMM0_REGNUM): New define for YMM0 register number.
2214 (I387_KEND_REGNUM): New define for last K register number.
2215 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2216 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2217 number.
2218 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2219 number.
2220 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2221 size.
2222 * features/Makefile: Add AVX512 related files.
2223 * features/i386/32bit-avx512.xml: New file.
2224 * features/i386/64bit-avx512.xml: Likewise.
2225 * features/i386/amd64-avx512-linux.c: Likewise.
2226 * features/i386/amd64-avx512-linux.xml: Likewise.
2227 * features/i386/amd64-avx512.c: Likewise.
2228 * features/i386/amd64-avx512.xml: Likewise.
2229 * features/i386/i386-avx512-linux.c: Likewise.
2230 * features/i386/i386-avx512-linux.xml: Likewise.
2231 * features/i386/i386-avx512.c: Likewise.
2232 * features/i386/i386-avx512.xml: Likewise.
2233 * features/i386/x32-avx512-linux.c: Likewise.
2234 * features/i386/x32-avx512-linux.xml: Likewise.
2235 * features/i386/x32-avx512.c: Likewise.
2236 * features/i386/x32-avx512.xml: Likewise.
2237 * regformats/i386/amd64-avx512-linux.dat: New file.
2238 * regformats/i386/amd64-avx512.dat: Likewise.
2239 * regformats/i386/i386-avx512-linux.dat: Likewise.
2240 * regformats/i386/i386-avx512.dat: Likewise.
2241 * regformats/i386/x32-avx512-linux.dat: Likewise.
2242 * regformats/i386/x32-avx512.dat: Likewise.
2243 * NEWS: Add note about new support for AVX512.
2244
2245
08351840
PA
22462014-04-23 Pedro Alves <palves@redhat.com>
2247
2248 * breakpoint.c (insert_bp_location): Tolerate errors if the
2249 breakpoint is set in a user-loaded objfile.
2250 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2251 location is marked shlib_disabled. If the breakpoint is set in a
2252 user-loaded objfile is a GDB-side memory breakpoint, validate it
2253 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2254 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2255 flag.
2256 * mem-break.c (memory_validate_breakpoint): New function.
2257 * objfiles.c (userloaded_objfile_contains_address_p): New
2258 function.
2259 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2260 * target.h (memory_validate_breakpoint): New declaration.
2261
076855f9
PA
22622014-04-23 Pedro Alves <palves@redhat.com>
2263
2264 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2265 the breakpoint is set in a shared library, only suppress
2266 errors for software breakpoints, not hardware breakpoints.
2267
483805cf
PA
22682014-04-22 Pedro Alves <palves@redhat.com>
2269
2270 * infrun.c (schedlock_applies): New function, factored out from
2271 find_thread_needs_step_over.
2272 (find_thread_needs_step_over): Use it.
2273 (switch_back_to_stepped_thread): Always clear trap_expected if the
2274 step over is finished. Return early if scheduler locking applies.
2275 Look for the stepping thread and a potential step-over thread with
2276 a single loop.
2277 (currently_stepping_or_nexting_callback): Delete.
2278
a75fef0e
NC
22792014-04-22 Nick Clifton <nickc@redhat.com>
2280
2281 * NEWS: Mention that ARM sim now supports tracing.
2282
48b6e87e
YQ
22832014-04-22 Yao Qi <yao@codesourcery.com>
2284
2285 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2286 to ...
2287 * tracefile.c (tracefile_fetch_registers): ... it. New
2288 function.
2289 * tracefile.h (tracefile_fetch_registers): Declare.
2290 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2291 tracefile_fetch_registers.
2292
17617f2d
EZ
22932014-04-19 Eli Zaretskii <eliz@gnu.org>
2294
2295 PR gdb/14018
2296 * windows-nat.c (thread_rec): Don't display a warning when
2297 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2298 fails for any reason, set th->suspended to -1, so that we don't
2299 try to resume such a thread. Also, don't return NULL in these
2300 cases, to avoid completely ruin the session due to "PC register is
2301 not available" error.
2302 (do_windows_fetch_inferior_registers): Check errors in
2303 GetThreadContext call.
2304 (windows_continue): Accept an additional argument KILLED; if not
2305 zero, ignore errors in the SetThreadContext call, since the
2306 inferior was killed and is shutting down.
2307 (windows_resume, get_windows_debug_event)
2308 (windows_create_inferior, windows_mourn_inferior)
2309 (windows_kill_inferior): All callers of windows_continue changed
2310 to adjust to its new calling sequence.
2311
5723a6fd
YQ
23122014-04-19 Yao Qi <yao@codesourcery.com>
2313
2314 * ctf.c (ctf_open): Call post_create_inferior.
2315
614d5099
YQ
23162014-04-19 Yao Qi <yao@codesourcery.com>
2317
2318 * ctf.c (handle_id): New static variable.
2319 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2320 value. Get the declaration of event "register" and get length
2321 of field "contents".
2322
dac3e710
YQ
23232014-04-19 Yao Qi <yao@codesourcery.com>
2324
2325 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2326
2bca57ba
SC
23272014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2328
2329 * valops.c (oload_method_static): Remove unnecessary argument
2330 METHOD. Update all callers.
2331
51d48146
PA
23322014-04-18 Pedro alves <palves@redhat.com>
2333 Tom Tromey <tromey@redhat.com>
2334
2335 PR backtrace/15558
2336 * frame.c (get_prev_frame_1): Rename to ...
2337 (get_prev_frame_always): ... this, and make extern. Adjust.
2338 (skip_artificial_frames): Use get_prev_frame_always.
2339 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2340 (get_frame_unwind_stop_reason): Adjust to rename.
2341 * frame.h (get_prev_frame_always): Declare.
2342 * inline-frame.c: Include frame.h.
2343 (inline_frame_this_id): Use get_prev_frame_always.
2344
1bdad2e0
TG
23452014-04-18 Tristan Gingold <gingold@adacore.com>
2346
2347 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2348 code by using bfd_mach_o_get_base_address.
2349
7ce16bd4
UW
23502014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
2351
2352 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2353 (spu_ax_pseudo_register_collect): New function.
2354 (spu_ax_pseudo_register_push_stack): Likewise.
2355 (spu_dwarf_reg_to_regnum): Likewise.
2356 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2357
2ed3c037
UW
23582014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
2359
2360 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2361 Replace FRAME argument with FRAME_ID.
2362 * gdbarch.c, gdbarch.h: Regenerate.
2363 * findvar.c (default_value_from_register): Add GDBARCH argument;
2364 replace FRAME by FRAME_ID. No longer call get_frame_id.
2365 (value_from_register): Update call to gdbarch_value_from_register.
2366 * value.h (default_value_from_register): Update prototype.
2367 * s390-linux-tdep.c (s390_value_from_register): Update interface
2368 and call to default_value_from_register.
2369 * spu-tdep.c (spu_value_from_register): Likewise.
2370
2371 * findvar.c (address_from_register): Remove TYPE argument.
2372 Do not call value_from_register; use gdbarch_value_from_register
2373 with null_frame_id instead.
2374 * value.h (address_from_register): Update prototype.
2375 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2376 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2377 address_from_register interface change.
2378
71e50e83
YQ
23792014-04-17 Yao Qi <yao@codesourcery.com>
2380
2381 * gdbtypes.h: Update comments to link to types and macros'
2382 definitions.
2383
7a23c549
SC
23842014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2385
2386 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2387
22869d73
KS
23882014-04-16 Keith Seitz <keiths@redhat.com>
2389
2390 PR gdb/15827
2391 * dwarf2read.c (skip_one_die): Check that all relative-offset
2392 sibling DIEs fall within range of the current reader's buffer.
2393 (read_partial_die): Likewise.
2394
c4f87ca6
KS
23952014-04-16 Keith Seitz <keiths@redhat.com>
2396
2397 PR c++/16597
2398 * cp-namespace.c (lookup_symbol_file): If the type name of
2399 `this' is NULL, return immediately.
2400
b50c8614
KS
24012014-04-14 Keith Seitz <keiths@redhat.com>
2402
2403 PR c++/16253
2404 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2405 from symbol_matches_domain in symtab.c. All local callers
2406 of symbol_matches_domain updated.
2407 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2408 search STRUCT_DOMAIN.
2409 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2410 independently. standard_lookup will do that automatically.
2411 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2412 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2413 (cp_lookup_symbol_in_namespace): Likewise.
2414 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2415 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2416 may return a STRUCT_DOMAIN match.
2417 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2418 * cp-support.c: Include language.h.
2419 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2420 VAR_DOMAIN.
2421 * psymtab.c (match_partial_symbol): Compare the requested
2422 domain with the symbol's domain directly.
2423 (lookup_partial_symbol): Likewise.
2424 * symtab.c (lookup_symbol_in_language): Explain when/why
2425 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2426 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2427 appropriate languages.
2428 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2429 and moved to ada-lang.c
2430 (lookup_block_symbol): Explain that this function only returns
2431 symbol matching the requested DOMAIN.
2432 Compare the requested domain with the symbol's domain directly.
2433 (iterate_over_symbols): Compare the requested domain with the
2434 symbol's domain directly.
2435 * symtab.h (symbol_matches_domain): Remove.
2436
3d567982
TT
24372014-04-14 Tom Tromey <tromey@redhat.com>
2438
2439 PR c++/15246:
2440 * c-exp.y (type_aggregate_p): New function.
2441 (qualified_name, classify_inner_name): Use it.
2442 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2443 and TYPE_TARGET_TYPE of an enum type.
2444 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2445 an enum type.
2446 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2447 handle TYPE_DECLARED_CLASS.
2448 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2449 types.
2450 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2451 * valops.c (enum_constant_from_type): New function.
2452 (value_aggregate_elt): Use it.
2453 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2454 TYPE_CODE_ENUM.
2455
c848d642
TT
24562014-04-14 Tom Tromey <tromey@redhat.com>
2457
2458 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2459 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2460 const.
2461 * value.h (value_aggregate_elt): Update.
2462
0626fc76
TT
24632014-04-14 Tom Tromey <tromey@redhat.com>
2464
2465 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2466
5ecaaa66
SA
24672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2468
2469 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2470 (evaluate_subexp_standard): Pass noside argument.
2471 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2472 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2473 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2474 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2475 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2476
1612e0c0
SA
24772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2478
2479 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2480 points to a constant blob.
2481
c451ebe5
SA
24822014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2483
2484 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2485 property and store it as the high bound and flag the range accordingly.
2486 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2487 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2488 * gdbtypes.h (enum range_flags): New enum.
2489 (struct range_bounds): Add flags member.
2490
1d42e4c4
SA
24912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2492
2493 * c-typeprint.c (c_type_print_varspec_suffix): Added
2494 check for not yet resolved high bound. If unresolved, print
2495 "variable length" string to the console instead of random
2496 length.
2497
9f1f738a
SA
24982014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2499
2500 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2501 value.
2502 (ada_template_to_fixed_record_type_1): Likewise.
2503 (ada_to_fixed_type_1): Likewise.
2504 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2505 (cp_print_value): Likewise.
2506 * d-valprint.c (dynamic_array_type): Likewise.
2507 * findvar.c (address_of_variable): Likewise.
2508 * jv-valprint.c (java_value_print): Likewise.
2509 * valops.c (value_ind): Likewise.
2510 * value.c (coerce_ref): Likewise.
2511
3c8452d4
SA
25122014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2513
2514 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2515 value and retrieve the dynamic type size.
2516
4ad88275
SA
25172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2518
2519 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2520 passed to sizeof is dynamic evaluate the argument to compute the length.
2521
80180f79
SA
25222014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2523 Joel Brobecker <brobecker@adacore.com>
2524
2525 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2526 (dwarf2_evaluate_property): New function.
2527 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2528 * dwarf2read.c (attr_to_dynamic_prop): New function.
2529 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2530 attribute.
2531 * gdbtypes.c: Include dwarf2loc.h.
2532 (is_dynamic_type): New function.
2533 (resolve_dynamic_type): New function.
2534 (resolve_dynamic_bounds): New function.
2535 (get_type_length): New function.
2536 (check_typedef): Use get_type_length to compute type length.
2537 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2538 (TYPE_LOW_BOUND_KIND): New macro.
2539 (is_dynamic_type): New function prototype.
2540 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2541 to resolve dynamic properties of the type. Update comment.
2542 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2543
a1556843
RH
25442014-04-14 Richard Henderson <rth@redhat.com>
2545
2546 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2547
0be03e84
DE
25482014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2549 Doug Evans <xdje42@gmail.com>
2550
2551 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2552 dereference TYPE_CODE_REF values.
2553
6b662e19
JB
25542014-04-11 Joel Brobecker <brobecker@adacore.com>
2555
2556 Revert the following changes due to regressions:
2557
2558 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2559 (dwarf2_evaluate_property): New function.
2560 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2561 * dwarf2read.c (attr_to_dynamic_prop): New function.
2562 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2563 attribute.
2564 * gdbtypes.c: Include dwarf2loc.h.
2565 (is_dynamic_type): New function.
2566 (resolve_dynamic_type): New function.
2567 (resolve_dynamic_bounds): New function.
2568 (get_type_length): New function.
2569 (check_typedef): Use get_type_length to compute type length.
2570 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2571 (TYPE_LOW_BOUND_KIND): New macro.
2572 (is_dynamic_type): New function prototype.
2573 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2574 to resolve dynamic properties of the type. Update comment.
2575 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2576
2577 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2578 passed to sizeof is dynamic evaluate the argument to compute the length.
2579
2580 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2581 value and retrieve the dynamic type size.
2582
2583 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2584 (ada_template_to_fixed_record_type_1): Likewise.
2585 (ada_to_fixed_type_1): Likewise.
2586 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2587 (cp_print_value): Likewise.
2588 * d-valprint.c (dynamic_array_type): Likewise.
2589 * eval.c (evaluate_subexp_with_coercion): Likewise.
2590 * findvar.c (address_of_variable): Likewise.
2591 * jv-valprint.c (java_value_print): Likewise.
2592 * valops.c (value_ind): Likewise.
2593 * value.c (coerce_ref): Likewise.
2594
2595 * c-typeprint.c (c_type_print_varspec_suffix): Added
2596 check for not yet resolved high bound. If unresolved, print
2597 "variable length" string to the console instead of random
2598 length.
2599
2600 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2601 property and store it as the high bound and flag the range accordingly.
2602 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2603 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2604 * gdbtypes.h (enum range_flags): New enum.
2605 (struct range_bounds): Add flags member.
2606
2607 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2608 points to a constant blob.
2609
2610 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2611 (evaluate_subexp_standard): Pass noside argument.
2612 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2613 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2614 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2615 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2616 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2617
245a5f0b
KS
26182014-04-11 Keith Seitz <keiths@redhat.com>
2619
2620 PR c++/16675
2621 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2622 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2623 reference types.
2624
3bce8237
SA
26252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2626
2627 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2628 (evaluate_subexp_standard): Pass noside argument.
2629 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2630 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2631 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2632 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2633 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2634
92b09522
SA
26352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2636
2637 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2638 points to a constant blob.
2639
e1969afb
SA
26402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2641
2642 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2643 property and store it as the high bound and flag the range accordingly.
2644 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2645 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2646 * gdbtypes.h (enum range_flags): New enum.
2647 (struct range_bounds): Add flags member.
2648
b86138fb
SA
26492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2650
2651 * c-typeprint.c (c_type_print_varspec_suffix): Added
2652 check for not yet resolved high bound. If unresolved, print
2653 "variable length" string to the console instead of random
2654 length.
2655
bcd629a4
SA
26562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2657
2658 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2659 (ada_template_to_fixed_record_type_1): Likewise.
2660 (ada_to_fixed_type_1): Likewise.
2661 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2662 (cp_print_value): Likewise.
2663 * d-valprint.c (dynamic_array_type): Likewise.
2664 * eval.c (evaluate_subexp_with_coercion): Likewise.
2665 * findvar.c (address_of_variable): Likewise.
2666 * jv-valprint.c (java_value_print): Likewise.
2667 * valops.c (value_ind): Likewise.
2668 * value.c (coerce_ref): Likewise.
2669
04b19544
SA
26702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2671
2672 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2673 value and retrieve the dynamic type size.
2674
26cb189f
SA
26752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2676
2677 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2678 passed to sizeof is dynamic evaluate the argument to compute the length.
2679
37c1ab67
SA
26802014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2681
2682 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2683 (dwarf2_evaluate_property): New function.
2684 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2685 * dwarf2read.c (attr_to_dynamic_prop): New function.
2686 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2687 attribute.
2688 * gdbtypes.c: Include dwarf2loc.h.
2689 (is_dynamic_type): New function.
2690 (resolve_dynamic_type): New function.
2691 (resolve_dynamic_bounds): New function.
2692 (get_type_length): New function.
2693 (check_typedef): Use get_type_length to compute type length.
2694 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2695 (TYPE_LOW_BOUND_KIND): New macro.
2696 (is_dynamic_type): New function prototype.
2697 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2698 to resolve dynamic properties of the type. Update comment.
2699 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2700
729efb13
SA
27012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2702
2703 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2704 declaring high/low bounds and change uses accordingly. Call
2705 create_range_type instead of create_static_range_type.
2706 * gdbtypes.c (create_range_type): New function.
2707 (create_range_type): Convert bounds into struct bound_prop and pass
2708 them to create_range_type.
2709 * gdbtypes.h (struct bound_prop): New struct.
2710 (create_range_type): New function prototype.
2711 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2712 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2713 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2714 part of the bound.
2715 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2716
0c9c3474
SA
27172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2718
2719 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2720 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2721 * ada-lang.c: All uses of create_range_type updated.
2722 * coffread.c: All uses of create_range_type updated.
2723 * dwarf2read.c: All uses of create_range_type updated.
2724 * f-exp.y: All uses of create_range_type updated.
2725 * m2-valprint.c: All uses of create_range_type updated.
2726 * mdebugread.c: All uses of create_range_type updated.
2727 * stabsread.c: All uses of create_range_type updated.
2728 * valops.c: All uses of create_range_type updated.
2729 * valprint.c: All uses of create_range_type updated.
2730
9d497a19
PA
27312014-04-10 Pedro Alves <palves@redhat.com>
2732
2733 * breakpoint.c (single_step_breakpoints)
2734 (single_step_gdbarch): Move up in the file.
2735 (one_breakpoint_xfer_memory): New function, factored out from ...
2736 (breakpoint_xfer_memory): ... here. Also process single-step
2737 breakpoints.
2738
15a9128a
TG
27392014-04-09 Tristan Gingold <gingold@adacore.com>
2740
2741 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2742 comments.
2743 (darwin_decode_exception_message): Free port only after use.
2744
9c97a070
PL
27452014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2746
2747 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2748 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2749 when setting the size of call_length.
2750
7af389b8
SC
27512014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2752
2753 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2754 dereference TYPE_CODE_REF values.
2755
86ad98c3
JB
27562014-04-07 Joel Brobecker <brobecker@adacore.com>
2757
2758 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2759 end of warning message.
2760
b0aeadb3
DE
27612014-04-03 Doug Evans <dje@google.com>
2762
2763 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2764 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2765
5979d6b6
AM
27662014-04-02 Alan Modra <amodra@gmail.com>
2767
2768 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2769 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2770 (struct symbol_file_add_from_memory_args): Add size field.
2771 (find_vdso_size): New function.
2772 (add_vsyscall_page): Attempt to find vdso size.
2773
0d60c288
DE
27742014-04-01 Doug Evans <dje@google.com>
2775
2776 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2777
a41f2563
TG
27782014-04-01 Tristan Gingold <gingold@adacore.com>
2779
2780 * darwin-nat.c (darwin_encode_reply): Add prototype.
2781 (darwin_decode_exception_message): Reply to unknown inferiors.
2782 (darwin_decode_message): Handle message by id. Ignore message
2783 to unknown inferior.
2784 (darwin_wait): Discard unknown messages, add debug trace.
2785
11a865c8
DE
27862014-03-31 Doug Evans <dje@google.com>
2787
2788 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2789 comp_dir_string.
2790
770e7fc7
DE
27912014-03-31 Doug Evans <dje@google.com>
2792
2793 New option "set print symbol-loading".
2794 * NEWS: Mention it.
2795 * solib.c (solib_read_symbols): Only print symbol loading messages
2796 if requested.
2797 (solib_add): If symbol loading is in "brief" mode, notify user
2798 symbols are being loaded.
2799 (reload_shared_libraries_1): Ditto.
2800 * symfile.c (print_symbol_loading_off): New static global.
2801 (print_symbol_loading_brief): New static global.
2802 (print_symbol_loading_full): New static global.
2803 (print_symbol_loading_enums): New static global.
2804 (print_symbol_loading): New static global.
2805 (print_symbol_loading_p): New function.
2806 (symbol_file_add_with_addrs): Only print symbol loading messages
2807 if requested.
2808 (_initialize_symfile): Register "print symbol-loading" set/show
2809 command.
2810 * symfile.h (print_symbol_loading_p): Declare.
2811
c32c64b7
DE
28122014-03-30 Doug Evans <xdje42@gmail.com>
2813
2814 * infrun.c (set_last_target_status): New function.
2815 (handle_inferior_event): Call it.
2816
7c0bc051
DE
28172014-03-30 Doug Evans <xdje42@gmail.com>
2818
2819 * inferior.h (enum stop_kind): Improve comment.
2820
8776cfe9
JB
28212014-03-28 Joel Brobecker <brobecker@adacore.com>
2822
2823 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2824 a reference, strip the reference layer before calling
2825 the lang_ops value_has_mutated callback.
2826
410a0ff2
SDJ
28272014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2828
2829 Remove some globals from our parser.
2830 * language.c (unk_lang_parser): Add "struct parser_state"
2831 argument.
2832 * language.h (struct language_defn) <la_parser>: Likewise.
2833 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2834 (initialize_expout): Add "struct parser_state" argument.
2835 Rewrite function to use the parser state.
2836 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2837 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2838 write_exp_elt_longcst, write_exp_elt_dblcst,
2839 write_exp_elt_decfloatcst, write_exp_elt_type,
2840 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2841 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2842 write_dollar_variable): Likewise.
2843 (parse_exp_in_context_1): Use parser state.
2844 (insert_type_address_space): Add "struct parser_state" argument.
2845 Use parser state.
2846 (increase_expout_size): New function.
2847 * parser-defs.h: Forward declare "struct language_defn" and
2848 "struct parser_state".
2849 (expout, expout_size, expout_ptr): Remove extern declarations.
2850 (parse_gdbarch, parse_language): Rewrite macro declarations to
2851 accept the parser state.
2852 (struct parser_state): New struct.
2853 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2854 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2855 write_exp_elt_decfloatcst, write_exp_elt_type,
2856 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2857 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2858 write_exp_msymbol, write_dollar_variable,
2859 mark_struct_expression, insert_type_address_space): Add "struct
2860 parser_state" argument.
2861 (increase_expout_size): New function.
2862 * utils.c (do_clear_parser_state): New function.
2863 (make_cleanup_clear_parser_state): Likewise.
2864 * utils.h (make_cleanup_clear_parser_state): New function
2865 prototype.
2866 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2867 Update calls to write_exp* in order to pass the parser state.
2868 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2869 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2870 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2871 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2872 * stap-probe.c (stap_parse_register_operand): Likewise.
2873 (stap_parse_single_operand): Likewise.
2874 (stap_parse_argument_1): Likewise.
2875 (stap_parse_argument): Use parser state.
2876 * stap-probe.h: Include "parser-defs.h".
2877 (struct stap_parse_info) <pstate>: New field.
2878 * c-exp.y (parse_type): Rewrite to use parser state.
2879 (yyparse): Redefine to c_parse_internal.
2880 (pstate): New global variable.
2881 (parse_number): Add "struct parser_state" argument.
2882 (write_destructor_name): Likewise.
2883 (type_exp): Update calls to write_exp* and similars in order to
2884 use parser state.
2885 (exp1, exp, variable, qualified_name, space_identifier,
2886 typename, typebase): Likewise.
2887 (write_destructor_name, parse_number, lex_one_token,
2888 classify_name, classify_inner_name, c_parse): Add "struct
2889 parser_state" argument. Update function to use parser state.
2890 * c-lang.h: Forward declare "struct parser_state".
2891 (c_parse): Add "struct parser_state" argument.
2892 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2893 (yyparse): Redefine macro to ada_parse_internal.
2894 (pstate): New variable.
2895 (write_int, write_object_renaming, write_var_or_type,
2896 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2897 type_int, type_long, type_long_long, type_float, type_double,
2898 type_long_double, type_char, type_boolean, type_system_address):
2899 Add "struct parser_state" argument.
2900 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2901 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2902 var_or_type, aggregate, aggregate_component_list,
2903 positional_list, others, component_group,
2904 component_associations): Update calls to write_exp* and similar
2905 functions in order to use parser state.
2906 (ada_parse, write_var_from_sym, write_int,
2907 write_exp_op_with_string, write_object_renaming,
2908 find_primitive_type, write_selectors, write_ambiguous_var,
2909 write_var_or_type, write_name_assoc, type_int, type_long,
2910 type_long_long, type_float, type_double, type_long_double,
2911 type_char, type_boolean, type_system_address): Add "struct
2912 parser_state" argument. Adjust function to use parser state.
2913 * ada-lang.c (parse): Likewise.
2914 * ada-lang.h: Forward declare "struct parser_state".
2915 (ada_parse): Add "struct parser_state" argument.
2916 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2917 calls to both functions.
2918 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2919 parser state.
2920 (yyparse): Redefine macro to f_parse_internal.
2921 (pstate): New variable.
2922 (parse_number): Add "struct parser_state" argument.
2923 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2924 and similars in order to use parser state.
2925 (parse_number): Adjust code to use parser state.
2926 (yylex): Likewise.
2927 (f_parse): New function.
2928 * f-lang.h: Forward declare "struct parser_state".
2929 (f_parse): Add "struct parser_state" argument.
2930 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2931 parser state.
2932 (yyparse): Redefine macro for java_parse_internal.
2933 (pstate): New variable.
2934 (push_expression_name, push_expression_name, insert_exp): Add
2935 "struct parser_state" argument.
2936 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2937 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2938 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2939 PostIncrementExpression, PostDecrementExpression,
2940 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2941 UnaryExpressionNotPlusMinus, CastExpression,
2942 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2943 RelationalExpression, EqualityExpression, AndExpression,
2944 ExclusiveOrExpression, InclusiveOrExpression,
2945 ConditionalAndExpression, ConditionalOrExpression,
2946 ConditionalExpression, Assignment, LeftHandSide): Update
2947 calls to write_exp* and similars in order to use parser state.
2948 (parse_number): Ajust code to use parser state.
2949 (yylex): Likewise.
2950 (java_parse): New function.
2951 (push_variable): Add "struct parser_state" argument. Adjust
2952 code to user parser state.
2953 (push_fieldnames, push_qualified_expression_name,
2954 push_expression_name, insert_exp): Likewise.
2955 * jv-lang.h: Forward declare "struct parser_state".
2956 (java_parse): Add "struct parser_state" argument.
2957 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2958 parser state.
2959 (yyparse): Redefine macro to m2_parse_internal.
2960 (pstate): New variable.
2961 (type_exp, exp, fblock, variable, type): Update calls to
2962 write_exp* and similars to use parser state.
2963 (yylex): Likewise.
2964 (m2_parse): New function.
2965 * m2-lang.h: Forward declare "struct parser_state".
2966 (m2_parse): Add "struct parser_state" argument.
2967 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2968 * objc-lang.h: Forward declare "struct parser_state".
2969 (end_msglist): Add "struct parser_state" argument.
2970 * p-exp.y (parse_type): Rewrite macro to use parser state.
2971 (yyparse): Redefine macro to pascal_parse_internal.
2972 (pstate): New variable.
2973 (parse_number): Add "struct parser_state" argument.
2974 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2975 write_exp* and similars in order to use parser state.
2976 (parse_number, yylex): Adjust code to use parser state.
2977 (pascal_parse): New function.
2978 * p-lang.h: Forward declare "struct parser_state".
2979 (pascal_parse): Add "struct parser_state" argument.
2980 * go-exp.y (parse_type): Rewrite macro to use parser state.
2981 (yyparse): Redefine macro to go_parse_internal.
2982 (pstate): New variable.
2983 (parse_number): Add "struct parser_state" argument.
2984 (type_exp, exp1, exp, variable, type): Update calls to
2985 write_exp* and similars in order to use parser state.
2986 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2987 to use parser state.
2988 (go_parse): Likewise.
2989 * go-lang.h: Forward declare "struct parser_state".
2990 (go_parse): Add "struct parser_state" argument.
2991
342587c4
DE
29922014-03-27 Doug Evans <dje@google.com>
2993
2994 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2995
33e80786
DE
29962014-03-27 Doug Evans <dje@google.com>
2997
2998 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2999 Remove argument abbrev_section. All callers updated.
3000
1dbab08b
DE
30012014-03-27 Doug Evans <dje@google.com>
3002
3003 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3004 addr_base, ranges_base.
3005
318d3177
KS
30062014-03-26 Keith Seitz <keiths@redhat.com>
3007
3008 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3009 types, not VAR_DOMAIN.
3010
1e54db15
SL
30112014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3012
3013 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3014 "ra" registers.
3015 * features/nios2-linux.c: Regenerated.
3016 * features/nios2.c: Regenerated.
3017
d3839ede
PA
30182014-03-25 Pedro Alves <palves@redhat.com>
3019
3020 * cli/cli-script.c (script_from_file): Force the interpreter to
3021 sync mode.
3022
7588d2ec
PL
30232014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3024
3025 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3026 small stack allocation.
3027
a6290449
TG
30282014-03-24 Tristan Gingold <gingold@adacore.com>
3029
3030 * darwin-nat.c (exc_server): Remove unused prototype.
3031 (darwin_dump_message): Correctly display data on x86_64.
3032 (darwin_encode_reply): Fix style.
3033 Add comments and fix indentation.
3034
31ae9d24 30352014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
3036
3037 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3038
6339bfc4
DE
30392014-03-22 Doug Evans <xdje42@gmail.com>
3040
3041 * infcmd.c: Whitespace fixes.
3042 (interrupt_command): Merge two function comments into one.
3043
0a07590b
DE
30442014-03-22 Doug Evans <xdje42@gmail.com>
3045
3046 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3047 All uses updated.
3048
b55fbac4
YQ
30492014-03-22 Yao Qi <yao@codesourcery.com>
3050
3051 * remote.c (target_read_live_memory): Remove.
3052 (memory_xfer_live_readonly_partial): Rename it to
3053 remote_xfer_live_readonly_partial. Remove argument 'object'.
3054 All callers updated. Call remote_read_bytes_1
3055 instead of target_read_live_memory.
3056 * tracepoint.c (set_traceframe_number): Remove.
3057 (make_cleanup_restore_traceframe_number): Likewise .
3058 * tracepoint.h (set_traceframe_number): Remove declaration.
3059 (make_cleanup_restore_traceframe_number): Likewise.
3060
9217e74e
YQ
30612014-03-22 Yao Qi <yao@codesourcery.com>
3062
3063 * remote.c (remote_read_bytes): Move code on reading from the
3064 remote stub to ...
3065 (remote_read_bytes_1): ... here. New function.
3066
8acf9577
YQ
30672014-03-22 Yao Qi <yao@codesourcery.com>
3068
3069 * ctf.c (ctf_xfer_partial): Check the return value of
3070 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3071 return TARGET_XFER_UNAVAILABLE.
3072 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3073 * target.c (target_read_live_memory): Move it to remote.c.
3074 (memory_xfer_live_readonly_partial): Likewise.
3075 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3076 * remote.c (target_read_live_memory): Moved from target.c.
3077 (memory_xfer_live_readonly_partial): Likewise.
3078 (remote_read_bytes): Factored out from
3079 memory_xfer_partial_1.
3080
feef67ab
DE
30812014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3082
3083 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3084 NULL pointer.
3085
b65dc60b
PA
30862014-03-21 Pedro Alves <palves@redhat.com>
3087
3088 * infrun.c (normal_stop): Extend comment.
3089
b4ab256d
HZ
30902014-03-21 Hui Zhu <hui@codesourcery.com>
3091 Pedro Alves <palves@redhat.com>
3092
3093 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3094 static buffer.
3095 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3096 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3097 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3098
deba7593
MR
30992014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3100
3101 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3102 `z' formatted output modifier.
3103
1bff71c3
SDJ
31042014-03-20 Tom Tromey <tromey@redhat.com>
3105 Sergio Durigan Junior <sergiodj@redhat.com>
3106
3107 * probe.c (parse_probes): Turn assert into an ordinary error.
3108 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3109 exceptions when parsing probes. Rearrange the code for clarity.
3110
90e28950
TT
31112014-03-20 Tom Tromey <tromey@redhat.com>
3112
3113 PR gdb/14135
3114 * top.c (execute_command): Only dispatch events if the command
3115 started the target.
3116
beb460e8
PA
31172014-03-20 Tom Tromey <tromey@redhat.com>
3118
3119 PR cli/15718
3120 * infcall.c: Include event-top.h.
3121 (run_inferior_call): Call async_disable_stdin if needed.
3122
99619bea
PA
31232014-03-20 Pedro Alves <palves@redhat.com>
3124
3125 * infrun.c (prepare_to_proceed): Delete.
3126 (thread_still_needs_step_over): New function.
3127 (find_thread_needs_step_over): New function.
3128 (proceed): If the current thread needs a step-over, set its
3129 steping_over_breakpoint flag. Adjust to use
3130 find_thread_needs_step_over instead of prepare_to_proceed.
3131 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3132 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3133 breakpoint.
3134 (switch_back_to_stepped_thread): Step over breakpoints of all
3135 threads not the stepping thread, before switching back to the
3136 stepping thread.
3137
2adfaa28
PA
31382014-03-20 Pedro Alves <palves@redhat.com>
3139
3140 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3141 extern.
3142 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3143 * infrun.c (saved_singlestep_ptid)
3144 (stepping_past_singlestep_breakpoint): Delete.
3145 (resume): Remove stepping_past_singlestep_breakpoint handling.
3146 (proceed): Store the prev_pc of the stepping thread too.
3147 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3148 singlestep_pc.
3149 (enum infwait_states): Delete infwait_thread_hop_state.
3150 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3151 field.
3152 (handle_inferior_event): Adjust.
3153 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3154 handling and the thread-hop code. Before removing single-step
3155 breakpoints, check whether the thread hit a single-step breakpoint
3156 of another thread. If it did, the trap is not a random signal.
3157 (switch_back_to_stepped_thread): If the event thread hit a
3158 single-step breakpoint, unblock it before switching to the
3159 stepping thread. Handle the case of the stepped thread having
3160 advanced already.
3161 (keep_going): Handle the case of the current thread moving past a
3162 single-step breakpoint.
3163
31e77af2
PA
31642014-03-20 Pedro Alves <palves@redhat.com>
3165
3166 PR breakpoints/7143
3167 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3168 are being stepped over.
3169 (breakpoint_address_match): Make extern.
3170 * breakpoint.h (breakpoint_address_match): New declaration.
3171 * inferior.h (stepping_past_instruction_at): New declaration.
3172 * infrun.c (struct step_over_info): New type.
3173 (step_over_info): New global.
3174 (set_step_over_info, clear_step_over_info)
3175 (stepping_past_instruction_at): New functions.
3176 (handle_inferior_event): Clear the step-over info when
3177 trap_expected is cleared.
3178 (resume): Remove now stale comment.
3179 (clear_proceed_status): Clear step-over info.
3180 (proceed): Adjust step-over handling to set or clear the step-over
3181 info instead of removing all breakpoints.
3182 (handle_signal_stop): When setting up a thread-hop, don't remove
3183 breakpoints here.
3184 (stop_stepping): Clear step-over info.
3185 (keep_going): Adjust step-over handling to set or clear step-over
3186 info and then always inserting breakpoints, instead of removing
3187 all breakpoints when stepping over one.
3188
b9f437de
PA
31892014-03-20 Pedro Alves <palves@redhat.com>
3190
3191 * infrun.c (previous_inferior_ptid): Adjust comment.
3192 (deferred_step_ptid): Delete.
3193 (infrun_thread_ptid_changed, prepare_to_proceed)
3194 (init_wait_for_inferior): Adjust.
3195 (handle_signal_stop): Delete deferred_step_ptid handling.
3196
06c868a8
JK
31972014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3198
3199 PR gdb/15358
3200 * defs.h (sync_quit_force_run): New declaration.
3201 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3202 * event-top.c (async_sigterm_handler): New declaration.
3203 (async_sigterm_token): New variable.
3204 (async_init_signals): Create also async_sigterm_token.
3205 (async_sigterm_handler): New function.
3206 (sync_quit_force_run): New variable.
3207 (handle_sigterm): Replace quit_force call by other calls.
3208 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3209
dea80df0
MR
32102014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3211
3212 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3213 offset into SPE pseudo registers.
3214
0c7e1a46
PA
32152014-03-18 Pedro Alves <palves@redhat.com>
3216
3217 PR gdb/13860
3218 * inferior.h (print_stop_event): Declare.
3219 * infrun.c (print_stop_event): New, factored out from ...
3220 (normal_stop): ... this.
3221 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3222 of bpstat_print/print_stack_frame.
3223
9c1fcd01
TT
32242014-03-17 Tom Tromey <tromey@redhat.com>
3225
3226 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3227
11aa919a
PMR
32282014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3229
3230 * ada-lang.c (decode_constrained_packed_array): Perform a
3231 minimal coercion for reference with coerce_ref instead of
3232 ada_coerce_ref.
3233
d4ccb5e0
TG
32342014-03-17 Tristan Gingold <gingold@adacore.com>
3235
3236 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3237 (darwin_solib_create_inferior_hook): Emit a warning if version
3238 is unhandled.
3239
49840f2a
UW
32402014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
3241
3242 * python/py-value.c (get_field_flag): Cast flag_name argument to
3243 PyObject_GetAttrString to support Python 2.4.
3244
ed4123e5
JK
32452014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3246
3247 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3248 (Global Maintainers): Remove Jan Kratochvil.
3249
d6b64346
PA
32502014-03-14 Pedro Alves <palves@redhat.com>
3251
3252 * inferior.h (terminal_ours_for_output): Rename to ...
3253 (child_terminal_ours_for_output): ... this.
3254 (terminal_save_ours): Rename to ...
3255 (child_terminal_save_ours): ... this.
3256 (terminal_ours): Rename to ...
3257 (child_terminal_ours): ... this.
3258 (terminal_inferior): Rename to ...
3259 (child_terminal_inferior): ... this.
3260 (terminal_init_inferior): Rename to ...
3261 (child_terminal_init_inferior): ... this.
3262 (terminal_init_inferior_with_pgrp): Rename to ...
3263 (child_terminal_init_inferior_with_pgrp): ... this.
3264 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3265 (child_terminal_init_with_pgrp): ... this.
3266 (terminal_save_ours): Rename to ...
3267 (child_terminal_save_ours): ... this.
3268 (terminal_init_inferior): Rename to ...
3269 (child_terminal_init): ... this. Adjust.
3270 (terminal_inferior): Rename to ...
3271 (child_terminal_inferior): ... this.
3272 (terminal_ours_for_output): Rename to ...
3273 (child_terminal_ours_for_output): ... this. Adjust.
3274 (terminal_ours): Rename to ...
3275 (child_terminal_ours): ... this.
3276 (terminal_ours_1): Rename to ...
3277 (child_terminal_ours_1): ... this. Adjust.
3278 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3279 * windows-nat.c (do_initial_windows_stuff): Adjust.
3280 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3281 (gnu_terminal_init): ... this. Adjust.
3282 (gnu_target): Adjust.
3283 * inf-child.c (inf_child_target): Adjust.
3284
5a1e8c7a
DE
32852014-03-13 Doug Evans <xdje42@gmail.com>
3286
3287 PR guile/16612
3288 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3289 new eq?-hashtab.
3290
350e1a76
DE
32912014-03-13 Doug Evans <xdje42@gmail.com>
3292
3293 * value.c (record_latest_value): Call release_value_or_incref
3294 instead of release_value.
3295
a69900ae
PA
32962014-03-13 Pedro Alves <palves@redhat.com>
3297
3298 * procfs.c (procfs_target): Don't override to_shortname,
3299 to_longname or to_doc.
3300
5db9f0bd
PA
33012014-03-13 Pedro Alves <palves@redhat.com>
3302
3303 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3304 Unix in user visible strings.
3305
5e3a2c38
SS
33062014-03-12 Stan Shebs <stan@codesourcery.com>
3307
3308 * gdbtypes.h: Annotate comments for Doxygen, add a page
3309 block comment with some general info.
3310
8bc2fe48
PA
33112014-03-12 Pedro Alves <palves@redhat.com>
3312
3313 * infcmd.c (prepare_execution_command): New function, factored out
3314 from several execution commands.
3315 (run_command_1, continue_command, step_1, jump_command)
3316 (signal_command, until_command, advance_command, finish_command)
3317 (attach_command): Use prepare_execution_command.
3318
638c5f49
OJ
33192014-03-12 Omair Javaid <omair.javaid@linaro.org>
3320
3321 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3322 (MAX_BPTS): Define.
3323 (MAX_WPTS): Define.
3324 (struct arm_linux_thread_points): Removed.
3325 (struct arm_linux_process_info): New.
3326 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3327 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3328 (arm_linux_find_breakpoints_by_tid): Removed.
3329 (struct arch_lwp_info): New.
3330 (arm_linux_find_process_pid): New functions.
3331 (arm_linux_add_process): New functions.
3332 (arm_linux_process_info_get): New functions.
3333 (arm_linux_forget_process): New function.
3334 (arm_linux_get_debug_reg_state): New function.
3335 (struct update_registers_data): New.
3336 (update_registers_callback): New function.
3337 (arm_linux_insert_hw_breakpoint1): Updated.
3338 (arm_linux_remove_hw_breakpoint1): Updated.
3339 (arm_linux_insert_hw_breakpoint): Updated.
3340 (arm_linux_remove_hw_breakpoint): Updated.
3341 (arm_linux_insert_watchpoint): Updated.
3342 (arm_linux_remove_watchpoint): Updated.
3343 (arm_linux_new_thread): Updated.
3344 (arm_linux_prepare_to_resume): New function.
3345 (arm_linux_new_fork): New function.
3346 (_initialize_arm_linux_nat): Updated.
3347
6d03af93
PA
33482014-03-12 Pedro Alves <palves@redhat.com>
3349
3350 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3351
b3ccfe11
TT
33522014-03-12 Tom Tromey <tromey@redhat.com>
3353
3354 * inf-child.c (return_zero): New function.
3355 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3356 * aix-thread.c (aix_thread_inferior_created): New function.
3357 (aix_thread_attach): Remove.
3358 (init_aix_thread_ops): Don't set to_attach.
3359 (_initialize_aix_thread): Register inferior_created observer.
3360 * corelow.c (init_core_ops): Don't set to_attach or
3361 to_create_inferior.
3362 * exec.c (init_exec_ops): Don't set to_attach or
3363 to_create_inferior.
3364 * infcmd.c (run_command_1): Use find_run_target. Make direct
3365 target calls.
3366 (attach_command): Use find_attach_target. Make direct target
3367 calls.
3368 * record-btrace.c (init_record_btrace_ops): Don't set
3369 to_create_inferior.
3370 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3371 Remove.
3372 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3373 set to_create_inferior.
3374 * target.c (complete_target_initialization): Add assertion.
3375 (target_create_inferior): Remove.
3376 (find_default_attach, find_default_create_inferior): Remove.
3377 (find_attach_target, find_run_target): New functions.
3378 (find_default_is_async_p, find_default_can_async_p)
3379 (target_supports_non_stop, target_attach): Remove.
3380 (init_dummy_target): Don't set to_create_inferior or
3381 to_supports_non_stop.
3382 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3383 TARGET_DEFAULT_FUNC.
3384 <to_create_inferior>: Add comment.
3385 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3386 TARGET_DEFAULT_RETURN.
3387 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3388 (find_attach_target, find_run_target): Declare.
3389 (target_create_inferior): Remove.
3390 (target_has_execution_1): Update comment.
3391 (target_supports_non_stop): Remove.
3392 * target-delegates.c: Rebuild.
3393
91f83b02
PA
33942014-03-12 Pedro Alves <palves@redhat.com>
3395
3396 * inf-child.h: Update comment to not mention Unix.
3397
f1aea813
PA
33982014-03-12 Pedro Alves <palves@redhat.com>
3399
3400 * inf-child.c: Update top comment to not mention Unix. Add
3401 generic comment describing how this target is meant to be used.
3402 (inf_child_post_attach, inf_child_post_startup_inferior)
3403 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3404 Unix in comment.
3405
ee8e9165
PA
34062014-03-12 Pedro Alves <palves@redhat.com>
3407
3408 * nto-procfs.c: Include inf-child.h.
3409 (procfs_ops): Delete global.
3410 (procfs_can_run): Delete method.
3411 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3412 target pointer instead of referencing procfs_ops.
3413 (procfs_prepare_to_store): Delete.
3414 (init_procfs_ops): Delete function.
3415 (procfs_target): New function, based on init_procfs_ops, but
3416 inherit inf_child_target.
3417 (_initialize_procfs): Use procfs_target.
3418
51a9c8c5
PA
34192014-03-12 Pedro Alves <palves@redhat.com>
3420
3421 * windows-nat.c: Include inf-child.h.
3422 (windows_ops): Delete global.
3423 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3424 methods.
3425 (init_windows_ops): Delete function.
3426 (windows_target): New function, based on init_windows_ops, but
3427 inherit inf_child_target.
3428 (_initialize_windows_nat): Use windows_target. Install x86
3429 specific target methods here.
3430
c1966e26
DE
34312014-03-10 Doug Evans <xdje42@gmail.com>
3432
3433 * guile/guile.c (call_initialize_gdb_module): New function.
3434 (initialize_guile): Replace call to scm_init_guile with call to
3435 scm_with_guile.
3436
023db19c
JB
34372014-03-10 Joel Brobecker <brobecker@adacore.com>
3438
3439 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3440 in call to TYPE_CODE macro.
3441
5ec18f2b
JG
34422014-03-10 Jerome Guitton <guitton@adacore.com>
3443
8668be63
JB
3444 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3445 Resolve tagged types to full view.
5ec18f2b 3446
7d03f2eb
HZ
34472014-03-10 Hui Zhu <hui@codesourcery.com>
3448
3449 * target.h (target_insert_breakpoint): Remove "hardware" from its
3450 comments.
3451
c5164cbc
DE
34522014-03-07 Doug Evans <dje@google.com>
3453
3454 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3455
c4a3fee2
DE
34562014-03-07 Doug Evans <dje@google.com>
3457
3458 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3459 Remove unused local comp_dir_attr. Assert exactly one of
3460 stub_comp_unit_die, stub_comp_dir is non-NULL.
3461
3156469c
JB
34622014-03-07 Joel Brobecker <brobecker@adacore.com>
3463
3464 * target.h (complete_target_initialization, add_target):
3465 Add comment.
3466
c1a7b7c6
PA
34672014-03-07 Pedro Alves <palves@redhat.com>
3468
3469 * go32-nat.c: Include inf-child.h.
3470 (go32_ops): Delete global.
3471 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3472 Delete methods.
3473 (go32_create_inferior): Push the passed in target pointer instead
3474 of referencing go32_ops.
3475 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3476 (go32_target): New function, based on init_go32_ops, but inherit
3477 inf_child_target.
3478 (_initialize_go32_nat): Use go32_target. Move parts of
3479 init_go32_ops here.
3480
d3c1a85f
JB
34812014-03-06 Joel Brobecker <brobecker@adacore.com>
3482
3483 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3484 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3485 SYMBOL_VALUE_ADDRESS.
3486 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3487
5fa1d40e
YQ
34882014-03-06 Yao Qi <yao@codesourcery.com>
3489
3490 * breakpoint.c (get_tracepoint_by_number): Remove argument
3491 optional_p. All callers updated. Adjust comments. Update
3492 output message.
3493 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3494
0c13193f
YQ
34952014-03-06 Yao Qi <yao@codesourcery.com>
3496
3497 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3498 early if get_number returns zero. Use 'p' instead of 'args'.
3499
2217da06
YQ
35002014-03-06 Yao Qi <yao@codesourcery.com>
3501
3502 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3503 message.
3504
cc3da688
YQ
35052014-03-06 Yao Qi <yao@codesourcery.com>
3506
3507 PR breakpoints/16508
3508 * tracepoint.c (check_trace_running): New function.
3509 (trace_find_command): Move code to check_trace_running and
3510 call check_trace_running.
3511 (trace_find_pc_command): Likewise.
3512 (trace_find_tracepoint_command): Likewise.
3513 (trace_find_line_command): Likewise.
3514 (trace_find_range_command): Likewise.
3515 * tracepoint.h (check_trace_running): Likewise.
3516 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3517
6a5f844b
YQ
35182014-03-06 Yao Qi <yao@codesourcery.com>
3519
3520 * target.h (struct target_ops) <to_traceframe_info>: Use
3521 TARGET_DEFAULT_NORETURN (tcomplain ()).
3522 * target-delegates.c: Regenerated.
3523
0f26cec1
PA
35242014-03-05 Pedro Alves <palves@redhat.com>
3525
3526 PR gdb/16575
3527 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3528 void. Update comment.
3529 (dcache_xfer_memory): Delete.
3530 (dcache_read_memory_partial): New, based on the read bits of
3531 dcache_xfer_memory.
3532 (dcache_update): Add status parameter. Use ULONGEST for len, and
3533 adjust. Discard cache lines if the reason for the update was
3534 error.
3535 * dcache.h (dcache_xfer_memory): Delete declaration.
3536 (dcache_read_memory_partial): New declaration.
3537 (dcache_update): Update prototype.
3538 * target.c (raw_memory_xfer_partial): Update the dcache here.
3539 (memory_xfer_partial_1): Don't handle dcache writes here.
3540
b2b255bd
MF
35412014-03-05 Mike Frysinger <vapier@gentoo.org>
3542
3543 * remote-sim.c (gdbsim_load): Add const to prog.
3544
5d9cf8a4
TT
35452014-03-03 Tom Tromey <tromey@redhat.com>
3546
3547 * elfread.c (probe_key): Change to bfd_data.
3548 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3549 now per-BFD, not per-objfile.
3550 * stap-probe.c (stap_probe_destroy): Update comment.
3551 (handle_stap_probe): Allocate on the per-BFD obstack.
3552
729662a5
TT
35532014-03-03 Tom Tromey <tromey@redhat.com>
3554
3555 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3556 * breakpoint.c (create_longjmp_master_breakpoint): Use
3557 get_probe_address.
3558 (add_location_to_breakpoint, bkpt_probe_insert_location)
3559 (bkpt_probe_remove_location): Update.
3560 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3561 * elfread.c (elf_symfile_relocate_probe): Remove.
3562 (elf_probe_fns): Update.
3563 (insert_exception_resume_breakpoint): Change type of "probe"
3564 parameter to bound_probe.
3565 (check_exception_resume): Update.
3566 * objfiles.c (objfile_relocate1): Don't relocate probes.
3567 * probe.c (bound_probe_s): New typedef.
3568 (parse_probes): Use get_probe_address. Set sal's objfile.
3569 (find_probe_by_pc): Return a bound_probe.
3570 (collect_probes): Return a VEC(bound_probe_s).
3571 (compare_probes): Update.
3572 (gen_ui_out_table_header_info): Change type of "probes"
3573 parameter. Update.
3574 (info_probes_for_ops): Update.
3575 (get_probe_address): New function.
3576 (probe_safe_evaluate_at_pc): Update.
3577 * probe.h (struct probe_ops) <get_probe_address>: New field.
3578 <set_semaphore, clear_semaphore>: Add objfile parameter.
3579 (struct probe) <objfile>: Remove field.
3580 <arch>: New field.
3581 <address>: Update comment.
3582 (struct bound_probe): New.
3583 (find_probe_by_pc): Return a bound_probe.
3584 (get_probe_address): Declare.
3585 * solib-svr4.c (struct probe_and_action) <address>: New field.
3586 (hash_probe_and_action, equal_probe_and_action): Update.
3587 (register_solib_event_probe): Add address parameter.
3588 (solib_event_probe_at): Update.
3589 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3590 get_probe_address.
3591 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3592 (stap_get_probe_address): New function.
3593 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3594 (compile_probe_arg): Update.
3595 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3596 address.
3597 (handle_stap_probe): Don't relocate the probe.
3598 (stap_relocate): Remove.
3599 (stap_gen_info_probes_table_values): Update.
3600 (stap_probe_ops): Remove stap_relocate.
3601 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3602 (debug_sym_probe_fns): Update.
3603 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3604 * symtab.c (init_sal): Use memset.
3605 * symtab.h (struct symtab_and_line) <objfile>: New field.
3606 * tracepoint.c (start_tracing, stop_tracing): Update.
3607
ff887920
TT
36082014-03-03 Tom Tromey <tromey@redhat.com>
3609
3610 * probe.h (parse_probes, find_probe_by_pc)
3611 (find_probes_in_objfile): Fix comments.
3612
f0407826
DE
36132014-03-02 Doug Evans <xdje42@gmail.com>
3614
3615 * infrun.c (handle_signal_stop): Replace test for
3616 TARGET_WAITKIND_STOPPED with an assert.
3617
35e6a711
DE
36182014-03-02 Doug Evans <xdje42@gmail.com>
3619
3620 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3621
667f9d0b
DE
36222014-03-02 Doug Evans <xdje42@gmail.com>
3623
3624 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3625
dc92ace0
MK
36262014-03-01 Mark Kettenis <kettenis@gnu.org>
3627
3628 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3629
a900370f
MK
36302014-03-01 Mark Kettenis <kettenis@gnu.org>
3631
3632 * i386obsd-nat.c: Include "obsd-nat.h".
3633 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3634 add_target.
3635 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3636
b72a7981
MK
36372014-03-01 Mark Kettenis <kettenis@gnu.org>
3638
3639 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3640
96c70aba
MK
36412014-03-01 Mark Kettenis <kettenis@gnu.org>
3642
3643 * mips64obsd-nat.c: Include "obsd-nath".
3644 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3645 add_target
3646 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3647
874a80af
MK
36482014-03-01 Mark Kettenis <kettenis@gnu.org>
3649
8fd408f1
MK
3650 * amd64obsd-nat.c: Include "obsd-nat,h.
3651 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3652 add_target.
874a80af
MK
3653 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3654
9cf95373
SC
36552014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3656
3657 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3658 (find_overload_match): Update call to find_oload_champ.
3659 (find_oload_champ_namespace_loop): Likewise
3660
863e4da4
MK
36612014-02-28 Mark Kettenis <kettenis@gnu.org>
3662
025cac40
MK
3663 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3664
1ed586ce
MK
3665 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3666 * config/sparc/obsd64.mh: New file.
3667 * sparc64obsd-nat.c: New file.
3668
863e4da4
MK
3669 * obsd-nat.h: New file.
3670 * obsd-nat.c: New file.
3671 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3672 (ALLDEPFILES): Add obsd-nat.c.
3673
89de4da4
TT
36742014-02-28 Tom Tromey <tromey@redhat.com>
3675
3676 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3677 * cli-out.h (cli_ui_out_impl): Now const.
3678 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3679 * ui-out.c (struct ui_out) <impl>: Now const.
3680 (default_ui_out_impl): Now const.
3681 (ui_out_new): Make 'impl' parameter const.
3682 * ui-out.h (ui_out_new): Update.
3683
c725e7b6
MK
36842014-02-27 Mark Kettenis <kettenis@gnu.org>
3685
3686 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3687
670b46b3
MK
36882014-02-27 Mark Kettenis <kettenis@gnu.org>
3689
3690 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3691
c91550fc
JK
36922014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3693
3694 Additional PR 8882 fix.
3695 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3696
2fa0369e
PA
36972014-02-27 Pedro Alves <palves@redhat.com>
3698
3699 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3700 isn't set.
3701
d632a097
PA
37022014-02-27 Pedro Alves <palves@redhat.com>
3703
3704 PR 12702
3705 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3706 * nat/linux-waitpid.c: Include string.h.
3707 (status_to_str): Moved here and made extern.
3708 * nat/linux-waitpid.h (status_to_str): New declaration.
3709
2ebd5a35
HZ
37102014-02-27 Hui Zhu <hui@codesourcery.com>
3711
3712 PR 12702
3713 * infrun.c (ptid_match): Move ...
3714 * common/ptid.c (ptid_match): ... here.
3715 * inferior.h (ptid_match): Move ...
3716 * common/ptid.h (ptid_match): ... here.
3717
3cdd631f
MK
37182014-02-27 Mark Kettenis <kettenis@gnu.org>
3719
3720 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3721 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3722 gdb_target_obs.
3723
bee30a64
MK
37242014-02-27 Mark Kettenis <kettenis@gnu.org>
3725
3726 * obsd-tdep.c (obsd_auxv_parse): New function.
3727 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
3728
3729 * gdbarch.sh (auxv_parse): New.
3730 * gdbarch.h: Regenerated.
3731 * gdbarch.c: Regenerated.
3732 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3733
7a5a839f
LC
37342014-02-26 Ludovic Courtès <ludo@gnu.org>
3735
3736 * guile/scm-value.c (gdbscm_history_append_x): New function.
3737 (value_functions): Add it.
3738
31aa7e4e
JB
37392014-02-27 Joel Brobecker <brobecker@adacore.com>
3740
3741 * dwarf2read.c (attr_value_as_address): New function.
3742 (dwarf2_find_base_address, read_call_site_scope): Use
3743 attr_value_as_address in place of DW_ADDR.
3744 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3745 the low and high addresses. Slight rework of the handling
3746 of the high pc being a constant form, and limit it to
3747 DWARF verson 4 or higher.
3748 (dwarf2_record_block_ranges): Likewise.
3749 (read_partial_die): Likewise.
3750 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3751
9b333ba3
TT
37522014-02-26 Tom Tromey <tromey@redhat.com>
3753
3754 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3755
5f6cac40
TT
37562014-02-26 Tom Tromey <tromey@redhat.com>
3757
3758 * elfread.c (elf_read_minimal_symbols): Return early if
3759 minimal symbols have already been read. Add "ei" parameter.
3760 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3761 * minsyms.c (prim_record_minimal_symbol_full): Update.
3762 * objfiles.h (struct objstats) <n_minsyms>: Move...
3763 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3764 * symmisc.c (print_objfile_statistics): Update.
3765
2750ef27
TT
37662014-02-26 Tom Tromey <tromey@redhat.com>
3767
3768 * elfread.c (elf_read_minimal_symbols): New function, from
3769 elf_symfile_read.
3770 (elf_symfile_read): Call it.
3771
34643a32
TT
37722014-02-26 Tom Tromey <tromey@redhat.com>
3773
3774 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3775 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3776 (lookup_minimal_symbol_solib_trampoline)
3777 (lookup_minimal_symbol_by_pc_section_1)
3778 (lookup_minimal_symbol_and_objfile): Update.
3779 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3780 Don't allocate a minimal symbol if minsyms have already been read.
3781 (build_minimal_symbol_hash_tables): Update.
3782 (install_minimal_symbols): Do nothing if minsyms already read.
3783 Use the per-BFD obstack.
3784 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3785 * objfiles.c (allocate_objfile): Call
3786 terminate_minimal_symbol_table later.
3787 (have_minimal_symbols): Update.
3788 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3789 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3790 Move from struct objfile.
3791 <minsyms_read>: New field.
3792 (struct objfile) <msymbols, minimal_symbol_count,
3793 msymbol_hash, msymbol_demangled_hash>: Move.
3794 (ALL_OBJFILE_MSYMBOLS): Update.
3795 * symfile.c (read_symbols): Set minsyms_read.
3796 (reread_symbols): Update.
3797 * symmisc.c (dump_objfile, dump_msymbols): Update.
3798
2273f0ac
TT
37992014-02-26 Tom Tromey <tromey@redhat.com>
3800
3801 * minsyms.c (msymbols_sort): Remove.
3802 * minsyms.h (msymbols_sort): Remove.
3803 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3804 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3805 * elfread.c (elf_symtab_read): Don't add section offsets.
3806 * xcoffread.c (record_minimal_symbol): Don't add section offset
3807 to minimal symbol address.
3808 * somread.c (text_offset, data_offset): Remove.
3809 (som_symtab_read): Don't add section offsets to minimal symbol
3810 addresses.
3811 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3812 Don't add section offsets to minimal symbols.
3813 * coffread.c (coff_symtab_read): Don't add section offsets
3814 to minimal symbol addresses.
3815 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3816 to minimal symbol addresses.
3817 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3818 section offset to minimal symbol addresses.
3819 * mdebugread.c (parse_partial_symbols): Don't add section
3820 offset to minimal symbol addresses.
3821 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3822 offset to minimal symbol addresses.
3823
77e371c0
TT
38242014-02-26 Tom Tromey <tromey@redhat.com>
3825
3826 * ada-lang.c (ada_main_name): Update.
3827 (ada_add_standard_exceptions): Update.
3828 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3829 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3830 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3831 * auxv.c (ld_so_xfer_auxv): Update.
3832 * avr-tdep.c (avr_scan_prologue): Update.
3833 * ax-gdb.c (gen_var_ref): Update.
3834 * blockframe.c (get_pc_function_start)
3835 (find_pc_partial_function_gnu_ifunc): Update.
3836 * breakpoint.c (create_overlay_event_breakpoint)
3837 (create_longjmp_master_breakpoint)
3838 (create_std_terminate_master_breakpoint)
3839 (create_exception_master_breakpoint): Update.
3840 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3841 * c-valprint.c (c_val_print): Update.
3842 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3843 * common/agent.c (agent_look_up_symbols): Update.
3844 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3845 * dwarf2loc.c (call_site_to_target_addr): Update.
3846 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3847 * elfread.c (elf_gnu_ifunc_record_cache)
3848 (elf_gnu_ifunc_resolve_by_got): Update.
3849 * findvar.c (default_read_var_value): Update.
3850 * frame.c (inside_main_func): Update.
3851 * frv-tdep.c (frv_frame_this_id): Update.
3852 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3853 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3854 Update.
3855 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3856 (hppa_hpux_find_dummy_bpaddr): Update.
3857 * hppa-tdep.c (hppa_symbol_address): Update.
3858 * infcmd.c (until_next_command): Update.
3859 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3860 Update.
3861 * linespec.c (minsym_found, add_minsym): Update.
3862 * linux-nat.c (get_signo): Update.
3863 * linux-thread-db.c (inferior_has_bug): Update.
3864 * m32c-tdep.c (m32c_return_value)
3865 (m32c_m16c_address_to_pointer): Update.
3866 * m32r-tdep.c (m32r_frame_this_id): Update.
3867 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3868 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3869 * maint.c (maintenance_translate_address): Update.
3870 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3871 (frob_address): New function.
3872 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3873 frob_address. Rename parameter to "pc_in".
3874 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3875 addresses.
3876 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3877 Update.
3878 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3879 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3880 * objc-lang.c (find_objc_msgsend): Update.
3881 * objfiles.c (objfile_relocate1): Update.
3882 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3883 * p-valprint.c (pascal_val_print): Update.
3884 * parse.c (write_exp_msymbol): Update.
3885 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3886 (ppc_elfv2_skip_entrypoint): Update.
3887 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3888 * printcmd.c (build_address_symbolic, msym_info)
3889 (address_info): Update.
3890 * proc-service.c (ps_pglobal_lookup): Update.
3891 * psymtab.c (find_pc_sect_psymtab_closer)
3892 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3893 Change msymbol parameter to bound_minimal_symbol.
3894 * ravenscar-thread.c (get_running_thread_id): Update.
3895 * remote.c (remote_check_symbols): Update.
3896 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3897 address.
3898 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3899 * solib-dsbt.c (lm_base): Update.
3900 * solib-frv.c (lm_base, main_got): Update.
3901 * solib-irix.c (locate_base): Update.
3902 * solib-som.c (som_solib_create_inferior_hook)
3903 (link_map_start): Update.
3904 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3905 * solib-svr4.c (elf_locate_base, enable_break): Update.
3906 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3907 (flush_ea_cache): Update.
3908 * stabsread.c (define_symbol, scan_file_globals): Update.
3909 * stack.c (find_frame_funname): Update.
3910 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3911 (debug_qf_find_pc_sect_symtab): Update.
3912 * symfile.c (simple_read_overlay_table)
3913 (simple_overlay_update): Update.
3914 * symfile.h (struct quick_symbol_functions)
3915 <find_pc_sect_symtab>: Change type of msymbol to
3916 bound_minimal_symbol.
3917 * symmisc.c (dump_msymbols): Update.
3918 * symtab.c (find_pc_sect_symtab_via_partial)
3919 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3920 (search_symbols, print_msymbol_info): Update.
3921 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3922 (MSYMBOL_VALUE_ADDRESS): Redefine.
3923 (BMSYMBOL_VALUE_ADDRESS): New macro.
3924 * tracepoint.c (scope_info): Update.
3925 * tui/tui-disasm.c (tui_find_disassembly_address)
3926 (tui_get_begin_asm_address): Update.
3927 * valops.c (find_function_in_inferior): Update.
3928 * value.c (value_static_field, value_fn_field): Update.
3929
3b7344d5
TT
39302014-02-26 Tom Tromey <tromey@redhat.com>
3931
3932 * ada-lang.c (ada_update_initial_language): Update.
3933 (ada_main_name, ada_has_this_exception_support): Update.
3934 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3935 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3936 * arm-tdep.c (arm_skip_stub): Update.
3937 * auxv.c (ld_so_xfer_auxv): Update.
3938 * avr-tdep.c (avr_scan_prologue): Update.
3939 * ax-gdb.c (gen_var_ref): Update.
3940 * breakpoint.c (struct breakpoint_objfile_data)
3941 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3942 type to bound_minimal_symbol.
3943 (create_overlay_event_breakpoint)
3944 (create_longjmp_master_breakpoint)
3945 (create_std_terminate_master_breakpoint)
3946 (create_exception_master_breakpoint): Update.
3947 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3948 * c-exp.y (classify_name): Update.
3949 * coffread.c (coff_symfile_read): Update.
3950 * common/agent.c (agent_look_up_symbols): Update.
3951 * d-lang.c (d_main_name): Update.
3952 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3953 * dec-thread.c (enable_dec_thread): Update.
3954 * dwarf2loc.c (call_site_to_target_addr): Update.
3955 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3956 * eval.c (evaluate_subexp_standard): Update.
3957 * findvar.c (struct minsym_lookup_data) <result>: Change type
3958 to bound_minimal_symbol.
3959 <objfile>: Remove.
3960 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3961 * frame.c (inside_main_func): Update.
3962 * frv-tdep.c (frv_frame_this_id): Update.
3963 * gcore.c (call_target_sbrk): Update.
3964 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3965 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3966 Update.
3967 * go-lang.c (go_main_name): Update.
3968 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3969 (hppa_hpux_find_import_stub_for_addr): Update.
3970 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3971 Update. Change return type.
3972 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3973 type.
3974 * jit.c (jit_breakpoint_re_set_internal): Update.
3975 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3976 Update.
3977 * linux-nat.c (get_signo): Update.
3978 * linux-thread-db.c (inferior_has_bug): Update
3979 * m32c-tdep.c (m32c_return_value)
3980 (m32c_m16c_address_to_pointer): Update.
3981 * m32r-tdep.c (m32r_frame_this_id): Update.
3982 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3983 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3984 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3985 lookup_minimal_symbol. Change return type.
3986 (lookup_minimal_symbol): Remove.
3987 (lookup_bound_minimal_symbol): Update.
3988 (lookup_minimal_symbol_text): Change return type.
3989 (lookup_minimal_symbol_solib_trampoline): Change return type.
3990 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3991 (lookup_minimal_symbol_solib_trampoline): Change return type.
3992 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3993 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3994 (value_nsstring, find_imps): Update.
3995 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3996 * p-lang.c (pascal_main_name): Update.
3997 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3998 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3999 * proc-service.c (ps_pglobal_lookup): Update.
4000 * ravenscar-thread.c (get_running_thread_msymbol): Change
4001 return type.
4002 (has_ravenscar_runtime, get_running_thread_id): Update.
4003 * remote.c (remote_check_symbols): Update.
4004 * sol-thread.c (ps_pglobal_lookup): Update.
4005 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4006 * solib-dsbt.c (lm_base): Update.
4007 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4008 Update.
4009 * solib-irix.c (locate_base): Update.
4010 * solib-som.c (som_solib_create_inferior_hook)
4011 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4012 Update.
4013 * solib-spu.c (spu_enable_break): Update.
4014 * solib-svr4.c (elf_locate_base, enable_break): Update.
4015 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4016 (flush_ea_cache): Update.
4017 * stabsread.c (define_symbol): Update.
4018 * symfile.c (simple_read_overlay_table): Update.
4019 * symtab.c (find_pc_sect_line): Update.
4020 * tracepoint.c (scope_info): Update.
4021 * tui-disasm.c (tui_get_begin_asm_address): Update.
4022 * value.c (value_static_field): Update.
4023
40c1a007
TT
40242014-02-26 Tom Tromey <tromey@redhat.com>
4025
4026 * minsyms.c (prim_record_minimal_symbol_full): Use
4027 SET_MSYMBOL_VALUE_ADDRESS.
4028 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4029 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4030 SET_MSYMBOL_VALUE_ADDRESS.
4031 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4032 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4033
efd66ac6
TT
40342014-02-26 Tom Tromey <tromey@redhat.com>
4035
4036 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4037 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4038 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4039 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4040 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4041 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4042 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4043 * ada-lang.c (ada_main_name): Update.
4044 (ada_lookup_simple_minsym): Update.
4045 (ada_make_symbol_completion_list): Update.
4046 (ada_add_standard_exceptions): Update.
4047 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4048 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4049 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4050 * arm-tdep.c (skip_prologue_function): Update.
4051 (arm_skip_stack_protector, arm_skip_stub): Update.
4052 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4053 (arm_wince_skip_main_prologue): Update.
4054 * auxv.c (ld_so_xfer_auxv): Update.
4055 * avr-tdep.c (avr_scan_prologue): Update.
4056 * ax-gdb.c (gen_var_ref): Update.
4057 * block.c (call_site_for_pc): Update.
4058 * blockframe.c (get_pc_function_start): Update.
4059 (find_pc_partial_function_gnu_ifunc): Update.
4060 * breakpoint.c (create_overlay_event_breakpoint): Update.
4061 (create_longjmp_master_breakpoint): Update.
4062 (create_std_terminate_master_breakpoint): Update.
4063 (create_exception_master_breakpoint): Update.
4064 (resolve_sal_pc): Update.
4065 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4066 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4067 Update.
4068 * c-valprint.c (c_val_print): Update.
4069 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4070 * coffread.c (coff_symfile_read): Update.
4071 * common/agent.c (agent_look_up_symbols): Update.
4072 * dbxread.c (find_stab_function_addr): Update.
4073 (end_psymtab): Update.
4074 * dwarf2loc.c (call_site_to_target_addr): Update.
4075 (func_verify_no_selftailcall): Update.
4076 (tailcall_dump): Update.
4077 (call_site_find_chain_1): Update.
4078 (dwarf_expr_reg_to_entry_parameter): Update.
4079 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4080 (elf_gnu_ifunc_resolve_by_got): Update.
4081 * f-valprint.c (info_common_command): Update.
4082 * findvar.c (read_var_value): Update.
4083 * frame.c (get_prev_frame_1): Update.
4084 (inside_main_func): Update.
4085 * frv-tdep.c (frv_skip_main_prologue): Update.
4086 (frv_frame_this_id): Update.
4087 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4088 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4089 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4090 (gnuv3_skip_trampoline): Update.
4091 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4092 (hppa64_hpux_in_solib_call_trampoline): Update.
4093 (hppa_hpux_skip_trampoline_code): Update.
4094 (hppa64_hpux_search_dummy_call_sequence): Update.
4095 (hppa_hpux_find_import_stub_for_addr): Update.
4096 (hppa_hpux_find_dummy_bpaddr): Update.
4097 * hppa-tdep.c (hppa_symbol_address)
4098 (hppa_lookup_stub_minimal_symbol): Update.
4099 * i386-tdep.c (i386_skip_main_prologue): Update.
4100 (i386_pe_skip_trampoline_code): Update.
4101 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4102 * infcall.c (get_function_name): Update.
4103 * infcmd.c (until_next_command): Update.
4104 * jit.c (jit_breakpoint_re_set_internal): Update.
4105 (jit_inferior_init): Update.
4106 * linespec.c (minsym_found): Update.
4107 (add_minsym): Update.
4108 * linux-fork.c (info_checkpoints_command): Update.
4109 * linux-nat.c (get_signo): Update.
4110 * linux-thread-db.c (inferior_has_bug): Update.
4111 * m32c-tdep.c (m32c_return_value): Update.
4112 (m32c_m16c_address_to_pointer): Update.
4113 (m32c_m16c_pointer_to_address): Update.
4114 * m32r-tdep.c (m32r_frame_this_id): Update.
4115 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4116 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4117 * maint.c (maintenance_translate_address): Update.
4118 * minsyms.c (add_minsym_to_hash_table): Update.
4119 (add_minsym_to_demangled_hash_table): Update.
4120 (msymbol_objfile): Update.
4121 (lookup_minimal_symbol): Update.
4122 (iterate_over_minimal_symbols): Update.
4123 (lookup_minimal_symbol_text): Update.
4124 (lookup_minimal_symbol_by_pc_name): Update.
4125 (lookup_minimal_symbol_solib_trampoline): Update.
4126 (lookup_minimal_symbol_by_pc_section_1): Update.
4127 (lookup_minimal_symbol_and_objfile): Update.
4128 (prim_record_minimal_symbol_full): Update.
4129 (compare_minimal_symbols): Update.
4130 (compact_minimal_symbols): Update.
4131 (build_minimal_symbol_hash_tables): Update.
4132 (install_minimal_symbols): Update.
4133 (terminate_minimal_symbol_table): Update.
4134 (find_solib_trampoline_target): Update.
4135 (minimal_symbol_upper_bound): Update.
4136 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4137 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4138 (mips_skip_pic_trampoline_code): Update.
4139 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4140 * objc-lang.c (selectors_info): Update.
4141 (classes_info): Update.
4142 (find_methods): Update.
4143 (find_imps): Update.
4144 (find_objc_msgsend): Update.
4145 * objfiles.c (objfile_relocate1): Update.
4146 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4147 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4148 * p-valprint.c (pascal_val_print): Update.
4149 * parse.c (write_exp_msymbol): Update.
4150 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4151 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4152 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4153 * printcmd.c (build_address_symbolic): Update.
4154 (sym_info): Update.
4155 (address_info): Update.
4156 * proc-service.c (ps_pglobal_lookup): Update.
4157 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4158 (find_pc_sect_psymtab): Update.
4159 * python/py-framefilter.c (py_print_frame): Update.
4160 * ravenscar-thread.c (get_running_thread_id): Update.
4161 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4162 Update.
4163 * remote.c (remote_check_symbols): Update.
4164 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4165 (rs6000_skip_trampoline_code): Update.
4166 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4167 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4168 * solib-dsbt.c (lm_base): Update.
4169 * solib-frv.c (lm_base): Update.
4170 (main_got): Update.
4171 * solib-irix.c (locate_base): Update.
4172 * solib-som.c (som_solib_create_inferior_hook): Update.
4173 (som_solib_desire_dynamic_linker_symbols): Update.
4174 (link_map_start): Update.
4175 * solib-spu.c (spu_enable_break): Update.
4176 (ocl_enable_break): Update.
4177 * solib-svr4.c (elf_locate_base): Update.
4178 (enable_break): Update.
4179 * spu-tdep.c (spu_get_overlay_table): Update.
4180 (spu_catch_start): Update.
4181 (flush_ea_cache): Update.
4182 * stabsread.c (define_symbol): Update.
4183 (scan_file_globals): Update.
4184 * stack.c (find_frame_funname): Update.
4185 (frame_info): Update.
4186 * symfile.c (simple_read_overlay_table): Update.
4187 (simple_overlay_update): Update.
4188 * symmisc.c (dump_msymbols): Update.
4189 * symtab.c (fixup_section): Update.
4190 (find_pc_sect_line): Update.
4191 (skip_prologue_sal): Update.
4192 (search_symbols): Update.
4193 (print_msymbol_info): Update.
4194 (rbreak_command): Update.
4195 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4196 (completion_list_objc_symbol): Update.
4197 (default_make_symbol_completion_list_break_on): Update.
4198 * tracepoint.c (scope_info): Update.
4199 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4200 (tui_get_begin_asm_address): Update.
4201 * valops.c (find_function_in_inferior): Update.
4202 * value.c (value_static_field): Update.
4203 (value_fn_field): Update.
4204
50e65b17
TT
42052014-02-26 Tom Tromey <tromey@redhat.com>
4206
4207 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4208 bound minimal symbols. Move code that knows about minsym
4209 table layout...
4210 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4211 function.
4212 * minsyms.h (minimal_symbol_upper_bound): Declare.
4213 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4214 minimal_symbol_upper_bound.
4215
1b588015
JB
42162014-02-27 Joel Brobecker <brobecker@adacore.com>
4217
4218 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4219 Use the type's name if its basic type does not have a tag.
4220
dbb9c2b1
JB
42212014-02-27 Joel Brobecker <brobecker@adacore.com>
4222
4223 * dwarf2read.c (read_subrange_type): Add comment.
4224
55426c9d
JB
42252014-02-27 Joel Brobecker <brobecker@adacore.com>
4226
4227 * dwarf2read.c (update_enumeration_type_from_children): New
4228 function, mostly extracted from process_structure_scope.
4229 (read_enumeration_type): Call update_enumeration_type_from_children.
4230 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4231 and flag_flag_enum fields.
4232
f2fce0ca
PA
42332014-02-26 Pedro Alves <palves@redhat.com>
4234
4235 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4236 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4237 to_xfer_partial method.
4238
7a44e40e
PA
42392014-02-26 Pedro Alves <palves@redhat.com>
4240
4241 * target.c (complete_target_initialization): Don't install
4242 default_xfer_partial as to_xfer_partial hook.
4243 (nomemory): Delete.
4244 (update_current_target): Don't INHERIT nor de_fault
4245 deprecated_xfer_memory. Delete de_fault macro.
4246 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4247 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4248 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4249 field.
4250
bd265cd0
PA
42512014-02-26 Pedro Alves <palves@redhat.com>
4252
4253 * go32-nat.c (my_write_child): New function.
4254 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4255 (go32_xfer_partial): New function.
4256 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4257 Instead install a to_xfer_partial hook.
4258
9d46c4e5
PA
42592014-02-26 Pedro Alves <palves@redhat.com>
4260
4261 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4262 to_xfer_partial helper. Rewrite.
4263 (procfs_xfer_partial): New function.
4264 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4265 Install a to_xfer_partial hook.
4266
a1583b1f
PA
42672014-02-26 Pedro Alves <palves@redhat.com>
4268
4269 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4270 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4271 (m32r_xfer_partial): New function.
4272 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4273 Install a to_xfer_partial hook.
4274
6df1b29f
PA
42752014-02-26 Pedro Alves <palves@redhat.com>
4276
4277 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4278 helper.
4279 (mips_xfer_partial): New function.
4280 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4281 hook. Install a to_xfer_partial hook.
4282
dc53a7ad
JB
42832014-02-26 Joel Brobecker <brobecker@adacore.com>
4284
4285 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4286 * gdbtypes.c (create_array_type_with_stride): New function,
4287 renaming create_array_type, but with an added parameter
4288 called "bit_stride".
4289 (create_array_type): Re-implement using
4290 create_array_type_with_stride.
4291 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4292 and DW_AT_bit_stride attributes.
4293
12ab52e9
PA
42942014-02-26 Pedro Alves <palves@redhat.com>
4295
4296 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4297 task-specific breakpoints.
4298
d16461ae
PA
42992014-02-25 Pedro Alves <palves@redhat.com>
4300
4301 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4302 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4303
a8b16220
SS
43042014-02-25 Stan Shebs <stan@codesourcery.com>
4305
4306 * defs.h: Annotate comments for Doxygen.
4307
b9e795ee
TT
43082014-02-25 Tom Tromey <tromey@redhat.com>
4309
4310 * target.h (target_ignore): Don't declare.
4311 * target.c (target_ignore): Remove.
4312
849c862e
JK
43132014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4314
4315 PR gdb/16626
4316 * auto-load.c (auto_load_objfile_script_1): Change filename to
4317 debugfile.
4318
475109d8
JB
43192014-02-25 Joel Brobecker <brobecker@adacore.com>
4320
4321 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4322 documentation. Adjust prototype to match the target_ops
4323 to_xfer_partial method. Adjust implementation accordingly.
4324
e186c3bd
HZ
43252014-02-25 Hui Zhu <hui@codesourcery.com>
4326
4327 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4328 to_traceframe_info.
4329
6d451942
KB
43302014-02-25 Kevin Buettner <kevinb@redhat.com>
4331
041ab8b4 4332 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
4333 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4334 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4335 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4336 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4337 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4338 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4339 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4340 New constants.
4341 (rl78_register_type): Use a data pointer type for SP and
4342 new pseudo registers mentioned above. Use a 16 bit integer
4343 type for all other register pairs.
4344 (rl78_register_name, rl78_g10_register_name): Update for
4345 new pseudo registers.
4346 (rl78_pseudo_register_read): Likewise.
4347 (rl78_pseudo_register_write): Likewise.
4348 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4349 to the newly added pseudo registers.
4350
eddf0bae
DE
43512014-02-24 Doug Evans <dje@google.com>
4352
4353 * value.c (record_latest_value): Fix comment.
4354 * printcmd.c (print_command_1): Remove code to handle -1 return from
4355 record_latest_value.
4356
e96027e0
PA
43572014-02-24 Pedro Alves <palves@redhat.com>
4358
4359 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4360 deprecated_xfer_memory hook.
4361 (procfs_xfer_partial): Call procfs_xfer_memory instead
4362 of the deprecated_xfer_memory target hook.
4363 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4364 helper.
4365
0837c976
YZ
43662014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4367
4368 * windows-nat.c (windows_xfer_shared_libraries): Return
4369 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4370 requested object is TARGET_OBJECT_LIBRARIES.
4371
bc113b4e
YQ
43722014-02-24 Yao Qi <yao@codesourcery.com>
4373
4374 * target.h (enum target_xfer_status)
4375 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4376 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4377 explicitly. New.
4378 * corefile.c (memory_error_message): User updated.
4379 * exec.c (section_table_read_available_memory): Likewise.
4380 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4381 * target.c (target_xfer_status_to_string): Likewise.
4382 (raw_memory_xfer_partial): Likewise.
4383 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4384 * valops.c (read_value_memory): Likewise.
4385 * exec.h: Update comments.
4386
01cb8804
YQ
43872014-02-24 Yao Qi <yao@codesourcery.com>
4388
4389 * target.c (target_xfer_status_to_string): Rename argument err
4390 to status.
4391 * target.h (target_xfer_status_to_string): Update declaration.
4392 Replace target_xfer_error_to_string with
4393 target_xfer_status_to_string in comment.
4394
93063aa6
YQ
43952014-02-24 Yao Qi <yao@codesourcery.com>
4396
4397 * mips-linux-nat.c (super_close): Update its type.
4398 (mips_linux_close): Pass 'self' to super_close.
4399
5c328c05
YQ
44002014-02-24 Yao Qi <yao@codesourcery.com>
4401
4402 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4403 * corefile.c (read_memory): Adjusted.
4404 * target.c (target_write_with_progress): Adjusted.
4405
f73023dd
YQ
44062014-02-23 Yao Qi <yao@codesourcery.com>
4407
4408 Revert two patches:
4409
4410 2013-10-25 Yao Qi <yao@codesourcery.com>
4411
4412 * remote.c (remote_traceframe_info): Return early if
4413 traceframe is not selected.
4414
4415 2013-07-19 Yao Qi <yao@codesourcery.com>
4416
4417 * target.c (update_current_target): Change the default action
4418 of 'to_traceframe_info' from tcomplain to return_zero.
4419 * target.h (struct target_ops) <to_traceframe_info>: Add more
4420 comments.
4421
5a2eb0ef
YQ
44222014-02-23 Yao Qi <yao@codesourcery.com>
4423
4424 * valops.c (read_value_memory): Rewrite it. Call
4425 target_xfer_partial in a loop.
4426 * exec.h (section_table_available_memory): Remove declaration.
4427 Move comments to ...
4428 * exec.c (section_table_available_memory): ... here. Make it
4429 static.
4430
1ee79381
YQ
44312014-02-23 Yao Qi <yao@codesourcery.com>
4432
4433 * exec.c (section_table_read_available_memory): New function.
4434 * exec.h (section_table_read_available_memory): Declare.
4435 * ctf.c (ctf_xfer_partial): Call
4436 section_table_read_available_memory.
4437 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4438
1ca49d37
YQ
44392014-02-23 Yao Qi <yao@codesourcery.com>
4440
4441 * ctf.c (ctf_xfer_partial): Move code to ...
4442 * exec.c (exec_read_partial_read_only): ... it. New function.
4443 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4444 * tracefile.c: Include "exec.h".
4445 * exec.h (exec_read_partial_read_only): Declare.
4446
a283690e
YQ
44472014-02-23 Yao Qi <yao@codesourcery.com>
4448
4449 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4450 (tfile_has_memory): Remove.
4451 (init_tfile_ops): Don't set fields to_has_all_memory and
4452 to_has_memory of tfile_ops.
4453 * tracefile.c (tracefile_has_all_memory): New function.
4454 (tracefile_has_memory): New function.
4455 (init_tracefile_ops): Initialize fields to_has_all_memory and
4456 to_has_memory of 'ops'.
4457
12e03cd0
YQ
44582014-02-23 Yao Qi <yao@codesourcery.com>
4459
4460 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4461 (ctf_thread_alive, ctf_get_trace_status): Remove.
4462 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4463 init_tracefile_ops.
4464 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4465 (tfile_has_stack, tfile_has_registers): Remove.
4466 (tfile_thread_alive): Remove.
4467 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4468 init_tracefile_ops.
4469 * tracefile.c (tracefile_has_stack): New function.
4470 (tracefile_has_registers): New function.
4471 (tracefile_thread_alive): New function.
4472 (tracefile_get_trace_status): New function.
4473 (init_tracefile_ops): New function.
4474 * tracefile.h (init_tracefile_ops): Declare.
4475
11395323
YQ
44762014-02-23 Yao Qi <yao@codesourcery.com>
4477
4478 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4479 (O_LARGEFILE): Likewise.
4480 (tfile_ops): Likewise.
4481 (TRACE_HEADER_SIZE): Likewise.
4482 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4483 (cur_data_size): Likewise.
4484 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4485 (tfile_close, tfile_files_info): Likewise.
4486 (tfile_get_trace_status): Likewise.
4487 (tfile_get_tracepoint_status): Likewise.
4488 (tfile_get_traceframe_address): Likewise.
4489 (tfile_trace_find, match_blocktype): Likewise.
4490 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4491 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4492 (tfile_get_trace_state_variable_value): Likewise.
4493 (tfile_has_all_memory, tfile_has_memory): Likewise.
4494 (tfile_has_stack, tfile_has_registers): Likewise.
4495 (tfile_thread_alive, build_traceframe_info): Likewise.
4496 (tfile_traceframe_info, init_tfile_ops): Likewise.
4497 (_initialize_tracepoint): Don't call init_tfile_ops
4498 and add_target_with_completer.
4499 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4500 exec.h, completer.h and filenames.h.
4501 (_initialize_tracefile_tfile): New function.
4502
7951c4eb
YQ
45032014-02-23 Yao Qi <yao@codesourcery.com>
4504
4505 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4506 tracefile-tfile.o.
4507 (HFILES_NO_SRCDIR): Add tracefile.h.
4508 * ctf.c: Include "tracefile.h".
4509 * tracefile.h: New file.
4510 * tracefile.c: New file
4511 * tracefile-tfile.c: New file.
4512 * tracepoint.c: Include "tracefile.h".
4513 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4514 (stop_reason_names): Add const.
4515 (trace_file_writer_xfree): Move it to tracefile.c.
4516 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4517 (trace_save_ctf): Likewise.
4518 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4519 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4520 (tfile_write_header, tfile_write_regblock_type): Likewise.
4521 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4522 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4523 (tfile_write_raw_data, tfile_end): Likewise.
4524 (tfile_trace_file_writer_new): Likewise.
4525 (free_uploaded_tp): Make it extern.
4526 (free_uploaded_tsv): Make it extern.
4527 (_initialize_tracepoint): Move code to register command 'tsave'
4528 to tracefile.c.
4529 * tracepoint.h (stop_reason_names): Declare.
4530 (struct trace_frame_write_ops): Move it to tracefile.h.
4531 (struct trace_file_write_ops): Likewise.
4532 (struct trace_file_writer): Likewise.
4533 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4534
184cd072
JK
45352014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4536
4537 PR gdb/16594
4538 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4539 process name.
4540 (get_cores_used_by_process): New parameter num_cores, use it.
4541 (linux_xfer_osdata_processes): Pass num_cores to it.
4542 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4543 process name.
4544
c63528fc
AK
45452014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4546
4547 * target.c (memory_xfer_partial): Fix length arg in call to
4548 breakpoint_xfer_memory.
4549
d7b30f67
SDJ
45502014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4551
4552 PR tdep/16397
4553 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4554 number comes after the + or - signs. Adjust length of register
4555 name to be extracted.
4556
8838afaf
TT
45572014-02-20 Tom Tromey <tromey@redhat.com>
4558
4559 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4560 (ada_varobj_ops): Mark "extern".
4561
05227d14
TT
45622014-02-20 Tom Tromey <tromey@redhat.com>
4563
4564 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4565
1254eefc
DE
45662014-02-20 Doug Evans <xdje42@gmail.com>
4567
4568 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4569 All callers updated.
4570 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4571 All callers updated.
4572 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4573 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4574
adde2bff
DE
45752014-02-20 lin zuojian <manjian2006@gmail.com>
4576 Joel Brobecker <brobecker@adacore.com>
4577 Doug Evans <xdje42@gmail.com>
4578
4579 PR symtab/16581
4580 * dwarf2read.c (struct die_info): New member in_process.
4581 (reset_die_in_process): New function.
4582 (process_die): Set it at the start, reset when returning.
4583 (inherit_abstract_dies): Only call process_die if origin_child_die
4584 not already being processed.
4585
3be75f87
JB
45862014-02-20 Joel Brobecker <brobecker@adacore.com>
4587
4588 * windows-nat.c (handle_unload_dll): Add function documentation.
4589 (do_initial_windows_stuff): Add comment explaining why we wait
4590 until after inferior initialization has finished before
4591 processing all DLLs.
4592
47f7ffdb
JB
45932014-02-20 Joel Brobecker <brobecker@adacore.com>
4594
4595 * windows-nat.c (get_module_name): Delete.
4596 (windows_get_exec_module_filename): New function, mostly
4597 inspired from get_module_name.
4598 (windows_pid_to_exec_file): Replace call to get_module_name
4599 by call to windows_get_exec_module_filename.
4600
1cd9feab
JB
46012014-02-20 Joel Brobecker <brobecker@adacore.com>
4602
4603 * windows-nat.c (handle_load_dll): Rewrite this function's
4604 introductory comment. Remove code using get_module_name
4605 to get the DLL's name.
4606
ea39ad35
JB
46072014-02-20 Joel Brobecker <brobecker@adacore.com>
4608
4609 * windows-nat.c (get_windows_debug_event): Ignore
4610 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4611 if windows_initialization_done == 0.
4612 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4613 Adjust implementation to always load all DLLs.
4614 (do_initial_windows_stuff): Replace call to
4615 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4616
95060284
JB
46172014-02-20 Joel Brobecker <brobecker@adacore.com>
4618
4619 * windows-nat.c (_initialize_windows_nat): Deprecate the
4620 "dll-symbols" command. Turn the "add-shared-symbol-files"
4621 and "assf" aliases into commands, and deprecate them as well.
4622 * NEWS: Add entry explaining that "dll-symbols" and its two
4623 aliases are now deprecated.
4624
8d4fdb12
JB
46252014-02-20 Joel Brobecker <brobecker@adacore.com>
4626
4627 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4628 new-line in debug string. Remove trailing spaces.
4629
1b281443
SS
46302014-02-19 Stan Shebs <stan@codesourcery.com>
4631
4632 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4633
f7bd0f78
SC
46342014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4635
4636 * NEWS: Add entry for the new feature
4637 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4638 and class values.
4639
399ebc3d
SS
46402014-02-19 Stan Shebs <stan@codesourcery.com>
4641
4642 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4643
c658158d
PA
46442014-02-19 Pedro Alves <palves@redhat.com>
4645
4646 * common/ptid.h (struct ptid): Mention that process_stratum
4647 targets should prefer ptid.lwp.
4648
ba348170
PA
46492014-02-19 Pedro Alves <palves@redhat.com>
4650
4651 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4652 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4653 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4654 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4655 store remote thread ids rather than ptid.tid.
4656 (_initialize_remote): Adjust.
4657
ac01945b
TT
46582014-02-19 Tom Tromey <tromey@redhat.com>
4659
4660 * target.c (target_get_unwinder): Rewrite.
4661 (target_get_tailcall_unwinder): Rewrite.
4662 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4663 (record_btrace_to_get_tailcall_unwinder): New function.
4664 (init_record_btrace_ops): Update.
4665 * target.h (struct target_ops) <to_get_unwinder,
4666 to_get_tailcall_unwinder>: Now function pointers. Use
4667 TARGET_DEFAULT_RETURN.
4668
8476dc92
TT
46692014-02-19 Tom Tromey <tromey@redhat.com>
4670
4671 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4672 argument.
4673 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4674
c0eca49f
TT
46752014-02-19 Tom Tromey <tromey@redhat.com>
4676
4677 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4678 directly.
4679 * target-delegates.c: Rebuild.
4680 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4681 TARGET_DEFAULT_FUNC.
4682 * target.c (default_target_decr_pc_after_break): Rename from
4683 forward_target_decr_pc_after_break. Simplify.
4684 (target_decr_pc_after_break): Rely on delegation.
4685
596b6b39
TT
46862014-02-19 Tom Tromey <tromey@redhat.com>
4687
4688 * target.c (update_current_target): Do not INHERIT to_doc or
4689 to_magic. Do not de_fault to_open or to_close.
4690
b427c1bc
TT
46912014-02-19 Tom Tromey <tromey@redhat.com>
4692
4693 * gcore.h (objfile_find_memory_regions): Declare.
4694 * gcore.c (objfile_find_memory_regions): No longer static. Add
4695 "self" argument.
4696 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4697 * exec.c: Include gcore.h.
4698 (exec_set_find_memory_regions): Remove.
4699 (exec_find_memory_regions): Remove.
4700 (exec_do_find_memory_regions): Remove.
4701 (init_exec_ops): Update.
4702 * defs.h (exec_set_find_memory_regions): Remove.
4703
9b144037
TT
47042014-02-19 Tom Tromey <tromey@redhat.com>
4705
4706 * target-delegates.c: Rebuild.
4707 * target.h (struct target_ops) <to_extra_thread_info,
4708 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4709 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4710 not 0, in TARGET_DEFAULT_RETURN.
4711
555bbdeb
TT
47122014-02-19 Tom Tromey <tromey@redhat.com>
4713
4714 * target.c (complete_target_initialization): Remove casts. Use
4715 return_zero_has_execution.
4716 (return_zero): Add "ignore" argument.
4717 (return_zero_has_execution): New function.
4718 (init_dummy_target): Remove casts. Use
4719 return_zero_has_execution.
4720
be4ddd36
TT
47212014-02-19 Tom Tromey <tromey@redhat.com>
4722
4723 * target.c (update_current_target): Update comments. Do not
4724 INHERIT to_stratum.
4725
2117c711
TT
47262014-02-19 Tom Tromey <tromey@redhat.com>
4727
4728 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4729 needed.
4730 * corelow.c (core_read_description): Delegate when needed.
4731 * remote.c (remote_read_description): Delegate when needed.
4732 * target-delegates.c: Rebuild.
4733 * target.c (target_read_description): Rewrite.
4734 * target.h (struct target_ops) <to_read_description>: Update
4735 comment. Use TARGET_DEFAULT_RETURN.
4736
e88ef65c
TT
47372014-02-19 Tom Tromey <tromey@redhat.com>
4738
4739 * target-delegates.c: Rebuild.
4740 * target.c (update_current_target): Don't inherit or default
4741 to_can_run.
4742 (find_default_run_target): Check against delegate_can_run.
4743 * target.h (struct target_ops) <to_can_run>: Use
4744 TARGET_DEFAULT_RETURN.
4745
86a0854a
TT
47462014-02-19 Tom Tromey <tromey@redhat.com>
4747
4748 * target-delegates.c: Rebuild.
4749 * target.c (target_disconnect): Unconditionally delegate.
4750 * target.h (struct target_ops) <to_disconnect>: Use
4751 TARGET_DEFAULT_NORETURN.
4752
ee97f592
TT
47532014-02-19 Tom Tromey <tromey@redhat.com>
4754
4755 * record.c (record_stop): Unconditionally delegate.
4756 * target-delegates.c: Rebuild.
4757 * target.c (target_stop_recording): Unconditionally delegate.
4758 * target.h (struct target_ops) <to_stop_recording>: Use
4759 TARGET_DEFAULT_IGNORE.
4760
6dc7fcf4
TT
47612014-02-19 Tom Tromey <tromey@redhat.com>
4762
4763 * target-delegates.c: Rebuild.
4764 * target.c (target_enable_btrace): Unconditionally delegate.
4765 * target.h (struct target_ops) <to_enable_btrace>: Use
4766 TARGET_DEFAULT_NORETURN.
4767
eb5b20d4
TT
47682014-02-19 Tom Tromey <tromey@redhat.com>
4769
4770 * target-delegates.c: Rebuild.
4771 * target.c (target_read_btrace): Unconditionally delegate.
4772 * target.h (struct target_ops) <to_read_btrace>: Use
4773 TARGET_DEFAULT_NORETURN.
4774
9ace480d
TT
47752014-02-19 Tom Tromey <tromey@redhat.com>
4776
4777 * target-delegates.c: Rebuild.
4778 * target.c (target_teardown_btrace): Unconditionally delegate.
4779 * target.h (struct target_ops) <to_teardown_btrace>: Use
4780 TARGET_DEFAULT_NORETURN.
4781
8dc292d3
TT
47822014-02-19 Tom Tromey <tromey@redhat.com>
4783
4784 * target-delegates.c: Rebuild.
4785 * target.c (target_disable_btrace): Unconditionally delegate.
4786 * target.h (struct target_ops) <to_disable_btrace>: Use
4787 TARGET_DEFAULT_NORETURN.
4788
58a5184e
TT
47892014-02-19 Tom Tromey <tromey@redhat.com>
4790
4791 * target-delegates.c: Rebuild.
4792 * target.c (default_search_memory): New function.
4793 (simple_search_memory): Update comment.
4794 (target_search_memory): Unconditionally delegate.
4795 * target.h (struct target_ops) <to_search_memory>: Use
4796 TARGET_DEFAULT_FUNC.
4797
8de71aab
TT
47982014-02-19 Tom Tromey <tromey@redhat.com>
4799
4800 * auxv.c (default_auxv_parse): No longer static.
4801 (target_auxv_parse): Unconditionally delegate.
4802 * auxv.h (default_auxv_parse): Declare.
4803 * target-delegates.c: Rebuild.
4804 * target.c: Include auxv.h.
4805 * target.h (struct target_ops) <to_auxv_parse>: Use
4806 TARGET_DEFAULT_FUNC.
4807
6b2c5a57
TT
48082014-02-19 Tom Tromey <tromey@redhat.com>
4809
4810 * target-delegates.c: Rebuild.
4811 * target.c (target_memory_map): Unconditionally delegate.
4812 * target.h (struct target_ops) <to_memory_map>: Use
4813 TARGET_DEFAULT_RETURN.
4814
cbffc065
TT
48152014-02-19 Tom Tromey <tromey@redhat.com>
4816
4817 * target-delegates.c: Rebuild.
4818 * target.c (target_thread_alive): Unconditionally delegate.
4819 * target.h (struct target_ops) <to_thread_alive>: Use
4820 TARGET_DEFAULT_RETURN.
4821
f09e2107
TT
48222014-02-19 Tom Tromey <tromey@redhat.com>
4823
4824 * target-delegates.c: Rebuild.
4825 * target.c (target_save_record): Unconditionally delegate.
4826 * target.h (struct target_ops) <to_save_record>: Use
4827 TARGET_DEFAULT_NORETURN.
4828
07366925
TT
48292014-02-19 Tom Tromey <tromey@redhat.com>
4830
4831 * target-delegates.c: Rebuild.
4832 * target.c (target_delete_record): Unconditionally delegate.
4833 * target.h (struct target_ops) <to_delete_record>: Use
4834 TARGET_DEFAULT_NORETURN.
4835
dd2e9d25
TT
48362014-02-19 Tom Tromey <tromey@redhat.com>
4837
4838 * target-delegates.c: Rebuild.
4839 * target.c (target_record_is_replaying): Unconditionally
4840 delegate.
4841 * target.h (struct target_ops) <to_record_is_replaying>: Use
4842 TARGET_DEFAULT_RETURN.
4843
671e76cc
TT
48442014-02-19 Tom Tromey <tromey@redhat.com>
4845
4846 * target-delegates.c: Rebuild.
4847 * target.c (target_goto_record_begin): Unconditionally delegate.
4848 * target.h (struct target_ops) <to_goto_record_begin>: Use
4849 TARGET_DEFAULT_NORETURN.
4850
e9179bb3
TT
48512014-02-19 Tom Tromey <tromey@redhat.com>
4852
4853 * target-delegates.c: Rebuild.
4854 * target.c (target_goto_record_end): Unconditionally delegate.
4855 * target.h (struct target_ops) <to_goto_record_end>: Use
4856 TARGET_DEFAULT_NORETURN.
4857
05969c84
TT
48582014-02-19 Tom Tromey <tromey@redhat.com>
4859
4860 * target-delegates.c: Rebuild.
4861 * target.c (target_goto_record): Unconditionally delegate.
4862 * target.h (struct target_ops) <to_goto_record>: Use
4863 TARGET_DEFAULT_NORETURN.
4864
3679abfa
TT
48652014-02-19 Tom Tromey <tromey@redhat.com>
4866
4867 * target-delegates.c: Rebuild.
4868 * target.c (target_insn_history): Unconditionally delegate.
4869 * target.h (struct target_ops) <to_insn_history>: Use
4870 TARGET_DEFAULT_NORETURN.
4871
8444ab58
TT
48722014-02-19 Tom Tromey <tromey@redhat.com>
4873
4874 * target-delegates.c: Rebuild.
4875 * target.c (target_insn_history_from): Unconditionally delegate.
4876 * target.h (struct target_ops) <to_insn_history_from>: Use
4877 TARGET_DEFAULT_NORETURN.
4878
c29302cc
TT
48792014-02-19 Tom Tromey <tromey@redhat.com>
4880
4881 * target-delegates.c: Rebuild.
4882 * target.c (target_insn_history_range): Unconditionally delegate.
4883 * target.h (struct target_ops) <to_insn_history_range>: Use
4884 TARGET_DEFAULT_NORETURN.
4885
170049d4
TT
48862014-02-19 Tom Tromey <tromey@redhat.com>
4887
4888 * target-delegates.c: Rebuild.
4889 * target.c (target_call_history): Unconditionally delegate.
4890 * target.h (struct target_ops) <to_call_history>: Use
4891 TARGET_DEFAULT_NORETURN.
4892
16fc27d6
TT
48932014-02-19 Tom Tromey <tromey@redhat.com>
4894
4895 * target-delegates.c: Rebuild.
4896 * target.c (target_call_history_from): Unconditionally delegate.
4897 * target.h (struct target_ops) <to_call_history_from>: Use
4898 TARGET_DEFAULT_NORETURN.
4899
115d9817
TT
49002014-02-19 Tom Tromey <tromey@redhat.com>
4901
4902 * target-delegates.c: Rebuild.
4903 * target.c (target_call_history_range): Unconditionally delegate.
4904 * target.h (struct target_ops) <to_call_history_range>: Use
4905 TARGET_DEFAULT_NORETURN.
4906
eb276a6b
TT
49072014-02-19 Tom Tromey <tromey@redhat.com>
4908
4909 * target-delegates.c: Rebuild.
4910 * target.c (target_verify_memory): Unconditionally delegate.
4911 * target.h (struct target_ops) <to_verify_memory>: Use
4912 TARGET_DEFAULT_NORETURN.
4913
9e538d0d
TT
49142014-02-19 Tom Tromey <tromey@redhat.com>
4915
4916 * target-delegates.c: Rebuild.
4917 * target.c (target_core_of_thread): Unconditionally delegate.
4918 * target.h (struct target_ops) <to_core_of_thread>: Use
4919 TARGET_DEFAULT_RETURN.
4920
f6fb2925
TT
49212014-02-19 Tom Tromey <tromey@redhat.com>
4922
4923 * target-delegates.c: Rebuild.
4924 * target.c (target_flash_done): Unconditionally delegate.
4925 * target.h (struct target_ops) <to_flash_done>: Use
4926 TARGET_DEFAULT_NORETURN.
4927
e8a6c6ac
TT
49282014-02-19 Tom Tromey <tromey@redhat.com>
4929
4930 * target-delegates.c: Rebuild.
4931 * target.c (target_flash_erase): Unconditionally delegate.
4932 * target.h (struct target_ops) <to_flash_erase>: Use
4933 TARGET_DEFAULT_NORETURN.
4934
7e35c012
TT
49352014-02-19 Tom Tromey <tromey@redhat.com>
4936
4937 * target-delegates.c: Rebuild.
4938 * target.c (target_get_section_table): Unconditionally delegate.
4939 * target.h (struct target_ops) <to_get_section_table>: Use
4940 TARGET_DEFAULT_RETURN.
4941
770234d3
TT
49422014-02-19 Tom Tromey <tromey@redhat.com>
4943
4944 * target-delegates.c: Rebuild.
4945 * target.c (target_pid_to_str): Unconditionally delegate.
4946 (init_dummy_target): Don't initialize to_pid_to_str.
4947 (default_pid_to_str): Rename from dummy_pid_to_str.
4948 * target.h (struct target_ops) <to_pid_to_str>: Use
4949 TARGET_DEFAULT_FUNC.
4950
09b0dc2b
TT
49512014-02-19 Tom Tromey <tromey@redhat.com>
4952
4953 * target-delegates.c: Rebuild.
4954 * target.c (target_find_new_threads): Unconditionally delegate.
4955 * target.h (struct target_ops) <to_find_new_threads>: Use
4956 TARGET_DEFAULT_RETURN.
4957
7d4f8efa
TT
49582014-02-19 Tom Tromey <tromey@redhat.com>
4959
4960 * target-delegates.c: Rebuild.
4961 * target.c (target_program_signals): Unconditionally delegate.
4962 * target.h (struct target_ops) <to_program_signals>: Use
4963 TARGET_DEFAULT_IGNORE.
4964
035cad7f
TT
49652014-02-19 Tom Tromey <tromey@redhat.com>
4966
4967 * target-delegates.c: Rebuild.
4968 * target.c (target_pass_signals): Unconditionally delegate.
4969 * target.h (struct target_ops) <to_pass_signals>: Use
4970 TARGET_DEFAULT_IGNORE.
4971
8d657035
TT
49722014-02-19 Tom Tromey <tromey@redhat.com>
4973
4974 * target-delegates.c: Rebuild.
4975 * target.c (default_mourn_inferior): New function.
4976 (target_mourn_inferior): Unconditionally delegate.
4977 * target.h (struct target_ops) <to_mourn_inferior>: Use
4978 TARGET_DEFAULT_FUNC.
4979
098dba18
TT
49802014-02-19 Tom Tromey <tromey@redhat.com>
4981
4982 * target-delegates.c: Rebuild.
4983 * target.c (default_follow_fork): New function.
4984 (target_follow_fork): Unconditionally delegate.
4985 * target.h (struct target_ops) <to_follow_fork>: Use
4986 TARGET_DEFAULT_FUNC.
4987
423a4807
TT
49882014-02-19 Tom Tromey <tromey@redhat.com>
4989
4990 * target-delegates.c: Rebuild.
4991 * target.c (target_kill): Unconditionally delegate.
4992 * target.h (struct target_ops) <to_kill>: Use
4993 TARGET_DEFAULT_NORETURN.
4994
6c7e5e5c
TT
49952014-02-19 Tom Tromey <tromey@redhat.com>
4996
4997 * target-delegates.c: Rebuild.
4998 * target.c (target_masked_watch_num_registers): Unconditionally
4999 delegate.
5000 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5001 Use TARGET_DEFAULT_RETURN.
5002
8b1c364c
TT
50032014-02-19 Tom Tromey <tromey@redhat.com>
5004
5005 * target-delegates.c: Rebuild.
5006 * target.c (target_remove_mask_watchpoint): Unconditionally
5007 delegate.
5008 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5009 TARGET_DEFAULT_RETURN.
5010
cd4ae029
TT
50112014-02-19 Tom Tromey <tromey@redhat.com>
5012
5013 * target-delegates.c: Rebuild.
5014 * target.c (target_insert_mask_watchpoint): Unconditionally
5015 delegate.
5016 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5017 TARGET_DEFAULT_RETURN.
5018
a134316b
TT
50192014-02-19 Tom Tromey <tromey@redhat.com>
5020
5021 * target-delegates.c: Rebuild.
5022 * target.c (target_ranged_break_num_registers): Unconditionally
5023 delegate.
5024 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5025 Use TARGET_DEFAULT_RETURN.
5026
ad5989bd
TT
50272014-02-19 Tom Tromey <tromey@redhat.com>
5028
5029 * target-delegates.c: Rebuild.
5030 * target.c (target_fetch_registers): Unconditionally delegate.
5031 * target.h (struct target_ops) <to_fetch_registers>: Use
5032 TARGET_DEFAULT_NORETURN.
5033
46ee7e8d
TT
50342014-02-19 Tom Tromey <tromey@redhat.com>
5035
5036 * target-delegates.c: Rebuild.
5037 * target.c (update_current_target): Don't inherit or default
5038 to_stop.
5039 * target.h (struct target_ops) <to_stop>: Use
5040 TARGET_DEFAULT_IGNORE.
5041
843f59ed
TT
50422014-02-19 Tom Tromey <tromey@redhat.com>
5043
5044 * target-delegates.c: Rebuild.
5045 * target.c (update_current_target): Don't inherit or default
5046 to_can_run_breakpoint_commands.
5047 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5048 Use TARGET_DEFAULT_RETURN.
5049
ccfde2a0
TT
50502014-02-19 Tom Tromey <tromey@redhat.com>
5051
5052 * target-delegates.c: Rebuild.
5053 * target.c (update_current_target): Don't inherit or default
5054 to_supports_evaluation_of_breakpoint_conditions.
5055 * target.h (struct target_ops)
5056 <to_supports_evaluation_of_breakpoint_conditions>: Use
5057 TARGET_DEFAULT_RETURN.
5058
0de91722
TT
50592014-02-19 Tom Tromey <tromey@redhat.com>
5060
5061 * target-delegates.c: Rebuild.
5062 * target.c (update_current_target): Don't inherit or default
5063 to_augmented_libraries_svr4_read.
5064 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5065 Use TARGET_DEFAULT_RETURN.
5066
9a7d8b48
TT
50672014-02-19 Tom Tromey <tromey@redhat.com>
5068
5069 * target-delegates.c: Rebuild.
5070 * target.c (update_current_target): Don't inherit or default
5071 to_can_use_agent.
5072 * target.h (struct target_ops) <to_can_use_agent>: Use
5073 TARGET_DEFAULT_RETURN.
5074
d9db5b21
TT
50752014-02-19 Tom Tromey <tromey@redhat.com>
5076
5077 * target-delegates.c: Rebuild.
5078 * target.c (update_current_target): Don't inherit or default
5079 to_use_agent.
5080 * target.h (struct target_ops) <to_use_agent>: Use
5081 TARGET_DEFAULT_NORETURN.
5082
92155eeb
TT
50832014-02-19 Tom Tromey <tromey@redhat.com>
5084
5085 * target-delegates.c: Rebuild.
5086 * target.c (update_current_target): Don't inherit or default
5087 to_traceframe_info.
5088 (return_null): Remove.
5089 * target.h (struct target_ops) <to_traceframe_info>: Use
5090 TARGET_DEFAULT_RETURN.
5091
d6522a22
TT
50922014-02-19 Tom Tromey <tromey@redhat.com>
5093
5094 * target-delegates.c: Rebuild.
5095 * target.c (update_current_target): Don't inherit or default
5096 to_static_tracepoint_markers_by_strid.
5097 * target.h (struct target_ops)
5098 <to_static_tracepoint_markers_by_strid>: Use
5099 TARGET_DEFAULT_NORETURN.
5100
4c3e4425
TT
51012014-02-19 Tom Tromey <tromey@redhat.com>
5102
5103 * target-delegates.c: Rebuild.
5104 * target.c (update_current_target): Don't inherit or default
5105 to_static_tracepoint_marker_at.
5106 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5107 Use TARGET_DEFAULT_RETURN.
5108
dcd6917f
TT
51092014-02-19 Tom Tromey <tromey@redhat.com>
5110
5111 * target-delegates.c: Rebuild.
5112 * target.c (update_current_target): Don't inherit or default
5113 to_set_permissions.
5114 * target.h (struct target_ops) <to_set_permissions>: Use
5115 TARGET_DEFAULT_IGNORE.
5116
22bcceee
TT
51172014-02-19 Tom Tromey <tromey@redhat.com>
5118
5119 * target-delegates.c: Rebuild.
5120 * target.c (update_current_target): Don't inherit or default
5121 to_get_tib_address.
5122 * target.h (struct target_ops) <to_get_tib_address>: Use
5123 TARGET_DEFAULT_NORETURN.
5124
8586ccaa
TT
51252014-02-19 Tom Tromey <tromey@redhat.com>
5126
5127 * target-delegates.c: Rebuild.
5128 * target.c (update_current_target): Don't inherit or default
5129 to_set_trace_notes.
5130 * target.h (struct target_ops) <to_set_trace_notes>: Use
5131 TARGET_DEFAULT_RETURN.
5132
91df8d1d
TT
51332014-02-19 Tom Tromey <tromey@redhat.com>
5134
5135 * target-delegates.c: Rebuild.
5136 * target.c (update_current_target): Don't initialize
5137 to_set_trace_buffer_size.
5138 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5139 TARGET_DEFAULT_IGNORE.
5140
8d526939
TT
51412014-02-19 Tom Tromey <tromey@redhat.com>
5142
5143 * target-delegates.c: Rebuild.
5144 * target.c (update_current_target): Don't inherit or default
5145 to_set_circular_trace_buffer.
5146 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5147 TARGET_DEFAULT_IGNORE.
5148
0bcfeddf
TT
51492014-02-19 Tom Tromey <tromey@redhat.com>
5150
5151 * target-delegates.c: Rebuild.
5152 * target.c (update_current_target): Don't inherit or default
5153 to_set_disconnected_tracing.
5154 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5155 TARGET_DEFAULT_IGNORE.
5156
9249843f
TT
51572014-02-19 Tom Tromey <tromey@redhat.com>
5158
5159 * target-delegates.c: Rebuild.
5160 * target.c (update_current_target): Don't inherit or default
5161 to_get_min_fast_tracepoint_insn_len.
5162 (return_minus_one): Remove.
5163 * target.h (struct target_ops)
5164 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5165
ace92e7d
TT
51662014-02-19 Tom Tromey <tromey@redhat.com>
5167
5168 * target-delegates.c: Rebuild.
5169 * target.c (update_current_target): Don't inherit or default
5170 to_get_raw_trace_data.
5171 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5172 TARGET_DEFAULT_NORETURN.
5173
08120467
TT
51742014-02-19 Tom Tromey <tromey@redhat.com>
5175
5176 * target-delegates.c: Rebuild.
5177 * target.c (update_current_target): Don't inherit or default
5178 to_upload_trace_state_variables.
5179 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5180 Use TARGET_DEFAULT_RETURN.
5181
1e949b00
TT
51822014-02-19 Tom Tromey <tromey@redhat.com>
5183
5184 * target-delegates.c: Rebuild.
5185 * target.c (update_current_target): Don't inherit or default
5186 to_upload_tracepoints.
5187 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5188 TARGET_DEFAULT_RETURN.
5189
a2e6c147
TT
51902014-02-19 Tom Tromey <tromey@redhat.com>
5191
5192 * target-delegates.c: Rebuild.
5193 * target.c (update_current_target): Don't inherit or default
5194 to_save_trace_data.
5195 * target.h (struct target_ops) <to_save_trace_data>: Use
5196 TARGET_DEFAULT_NORETURN.
5197
959bcd0b
TT
51982014-02-19 Tom Tromey <tromey@redhat.com>
5199
5200 * target-delegates.c: Rebuild.
5201 * target.c (update_current_target): Don't inherit or default
5202 to_get_trace_state_variable_value.
5203 * target.h (struct target_ops)
5204 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5205
afc94e66
TT
52062014-02-19 Tom Tromey <tromey@redhat.com>
5207
5208 * target-delegates.c: Rebuild.
5209 * target.c (update_current_target): Don't inherit or default
5210 to_trace_find.
5211 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5212
e51c07ea
TT
52132014-02-19 Tom Tromey <tromey@redhat.com>
5214
5215 * target-delegates.c: Rebuild.
5216 * target.c (update_current_target): Don't inherit or default
5217 to_trace_stop.
5218 * target.h (struct target_ops) <to_trace_stop>: Use
5219 TARGET_DEFAULT_NORETURN.
5220
6fea14cd
TT
52212014-02-19 Tom Tromey <tromey@redhat.com>
5222
5223 * target-delegates.c: Rebuild.
5224 * target.c (update_current_target): Don't inherit or default
5225 to_get_tracepoint_status.
5226 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5227 TARGET_DEFAULT_NORETURN.
5228
4072d4ff
TT
52292014-02-19 Tom Tromey <tromey@redhat.com>
5230
5231 * target-delegates.c: Rebuild.
5232 * target.c (update_current_target): Don't inherit or default
5233 to_get_trace_status.
5234 * target.h (struct target_ops) <to_get_trace_status>: Use
5235 TARGET_DEFAULT_RETURN.
5236
25da2e80
TT
52372014-02-19 Tom Tromey <tromey@redhat.com>
5238
5239 * target-delegates.c: Rebuild.
5240 * target.c (update_current_target): Don't inherit or default
5241 to_trace_start.
5242 * target.h (struct target_ops) <to_trace_start>: Use
5243 TARGET_DEFAULT_NORETURN.
5244
86dd181d
TT
52452014-02-19 Tom Tromey <tromey@redhat.com>
5246
5247 * target-delegates.c: Rebuild.
5248 * target.c (update_current_target): Don't inherit or default
5249 to_trace_set_readonly_regions.
5250 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5251 Use TARGET_DEFAULT_NORETURN.
5252
05c41993
TT
52532014-02-19 Tom Tromey <tromey@redhat.com>
5254
5255 * target-delegates.c: Rebuild.
5256 * target.c (update_current_target): Don't inherit or default
5257 to_disable_tracepoint.
5258 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5259 TARGET_DEFAULT_NORETURN.
5260
151f70f1
TT
52612014-02-19 Tom Tromey <tromey@redhat.com>
5262
5263 * target-delegates.c: Rebuild.
5264 * target.c (update_current_target): Don't inherit or default
5265 to_enable_tracepoint.
5266 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5267 TARGET_DEFAULT_NORETURN.
5268
94eb98b9
TT
52692014-02-19 Tom Tromey <tromey@redhat.com>
5270
5271 * target-delegates.c: Rebuild.
5272 * target.c (update_current_target): Don't inherit or default
5273 to_download_trace_state_variable.
5274 * target.h (struct target_ops) <to_download_trace_state_variable>:
5275 Use TARGET_DEFAULT_NORETURN.
5276
719acc4a
TT
52772014-02-19 Tom Tromey <tromey@redhat.com>
5278
5279 * target-delegates.c: Rebuild.
5280 * target.c (update_current_target): Don't inherit or default
5281 to_can_download_tracepoint.
5282 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5283 TARGET_DEFAULT_RETURN.
5284
9a980a22
TT
52852014-02-19 Tom Tromey <tromey@redhat.com>
5286
5287 * target-delegates.c: Rebuild.
5288 * target.c (update_current_target): Don't inherit or default
5289 to_download_tracepoint.
5290 * target.h (struct target_ops) <to_download_tracepoint>: Use
5291 TARGET_DEFAULT_NORETURN.
5292
5536135b
TT
52932014-02-19 Tom Tromey <tromey@redhat.com>
5294
5295 * target-delegates.c: Rebuild.
5296 * target.c (update_current_target): Don't inherit or default
5297 to_trace_init.
5298 * target.h (struct target_ops) <to_trace_init>: Use
5299 TARGET_DEFAULT_RETURN.
5300
9409d39e
TT
53012014-02-19 Tom Tromey <tromey@redhat.com>
5302
5303 * target-delegates.c: Rebuild.
5304 * target.c (update_current_target): Don't inherit or default
5305 to_supports_string_tracing.
5306 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5307 TARGET_DEFAULT_RETURN.
5308
aab1b22d
TT
53092014-02-19 Tom Tromey <tromey@redhat.com>
5310
5311 * target-delegates.c: Rebuild.
5312 * target.c (update_current_target): Don't inherit or default
5313 to_supports_enable_disable_tracepoint.
5314 * target.h (struct target_ops)
5315 <to_supports_enable_disable_tracepoint>: Use
5316 TARGET_DEFAULT_RETURN.
5317
a7304748
TT
53182014-02-19 Tom Tromey <tromey@redhat.com>
5319
5320 * target-delegates.c: Rebuild.
5321 * target.c (update_current_target): Don't inherit or default
5322 to_supports_multi_process.
5323 * target.h (struct target_ops) <to_supports_multi_process>: Use
5324 TARGET_DEFAULT_RETURN.
5325
4229b31d
TT
53262014-02-19 Tom Tromey <tromey@redhat.com>
5327
5328 * target-delegates.c: Rebuild.
5329 * target.c (update_current_target): Don't inherit or default
5330 to_get_ada_task_ptid.
5331 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5332 TARGET_DEFAULT_FUNC.
5333
43eba180
TT
53342014-02-19 Tom Tromey <tromey@redhat.com>
5335
5336 * target-delegates.c: Rebuild.
5337 * target.c (update_current_target): Don't inherit or default
5338 to_thread_architecture.
5339 * target.h (struct target_ops) <to_thread_architecture>: Use
5340 TARGET_DEFAULT_FUNC.
5341
fe31bf5b
TT
53422014-02-19 Tom Tromey <tromey@redhat.com>
5343
5344 * target-delegates.c: Rebuild.
5345 * target.c (update_current_target): Don't inherit or default
5346 to_execution_direction.
5347 * target.h (struct target_ops) <to_execution_direction>: Use
5348 TARGET_DEFAULT_FUNC.
5349
53e1cfc7
TT
53502014-02-19 Tom Tromey <tromey@redhat.com>
5351
5352 * target-delegates.c: Rebuild.
5353 * target.c (update_current_target): Don't inherit or default
5354 to_can_execute_reverse.
5355 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5356 TARGET_DEFAULT_RETURN.
5357 (target_can_execute_reverse): Unconditionally delegate.
5358
9bb9d61d
TT
53592014-02-19 Tom Tromey <tromey@redhat.com>
5360
5361 * target-delegates.c: Rebuild.
5362 * target.c (update_current_target): Don't inherit or default
5363 to_goto_bookmark.
5364 (dummy_goto_bookmark): Remove.
5365 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5366 * target.h (struct target_ops) <to_goto_bookmark>: Use
5367 TARGET_DEFAULT_NORETURN.
5368
3dbafbbb
TT
53692014-02-19 Tom Tromey <tromey@redhat.com>
5370
5371 * target-delegates.c: Rebuild.
5372 * target.c (update_current_target): Don't inherit or default
5373 to_get_bookmark.
5374 (dummy_get_bookmark): Remove.
5375 (init_dummy_target): Don't inherit or default to_get_bookmark.
5376 * target.h (struct target_ops) <to_get_bookmark>: Use
5377 TARGET_DEFAULT_NORETURN
5378
16f796b1
TT
53792014-02-19 Tom Tromey <tromey@redhat.com>
5380
5381 * target-delegates.c: Rebuild.
5382 * target.c (update_current_target): Don't inherit or default
5383 to_make_corefile_notes.
5384 (init_dummy_target): Don't initialize to_make_corefile_notes.
5385 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5386 TARGET_DEFAULT_FUNC.
5387
0b5a2719
TT
53882014-02-19 Tom Tromey <tromey@redhat.com>
5389
5390 * target-delegates.c: Rebuild.
5391 * target.c (update_current_target): Don't inherit or default
5392 to_find_memory_regions.
5393 (init_dummy_target): Don't initialize to_find_memory_regions.
5394 * target.h (struct target_ops) <to_find_memory_regions>: Use
5395 TARGET_DEFAULT_FUNC.
5396
d9cb0195
TT
53972014-02-19 Tom Tromey <tromey@redhat.com>
5398
5399 * target-delegates.c: Rebuild.
5400 * target.c (update_current_target): Don't inherit or default
5401 to_log_command.
5402 * target.h (struct target_ops) <to_log_command>: Use
5403 TARGET_DEFAULT_IGNORE.
5404 (target_log_command): Unconditionally delegate.
5405
830ca330
TT
54062014-02-19 Tom Tromey <tromey@redhat.com>
5407
5408 * target-delegates.c: Rebuild.
5409 * target.c (update_current_target): Don't inherit or default
5410 to_pid_to_exec_file.
5411 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5412 TARGET_DEFAULT_RETURN.
5413
825828fc
TT
54142014-02-19 Tom Tromey <tromey@redhat.com>
5415
5416 * target-delegates.c: Rebuild.
5417 * target.c (update_current_target): Don't inherit or default
5418 to_thread_name.
5419 (target_thread_name): Unconditionally delegate.
5420 * target.h (struct target_ops) <to_thread_name>: Use
5421 TARGET_DEFAULT_RETURN.
5422
4a7e6dda
TT
54232014-02-19 Tom Tromey <tromey@redhat.com>
5424
5425 * target-delegates.c: Rebuild.
5426 * target.c (update_current_target): Don't inherit or default
5427 to_extra_thread_info.
5428 * target.h (struct target_ops) <to_extra_thread_info>: Use
5429 TARGET_DEFAULT_RETURN.
5430
0db88c1d
TT
54312014-02-19 Tom Tromey <tromey@redhat.com>
5432
5433 * target-delegates.c: Rebuild.
5434 * target.c (update_current_target): Don't inherit or default
5435 to_has_exited.
5436 * target.h (struct target_ops) <to_has_exited>: Use
5437 TARGET_DEFAULT_RETURN..
5438
6a9fa051
TT
54392014-02-19 Tom Tromey <tromey@redhat.com>
5440
5441 * target-delegates.c: Rebuild.
5442 * target.c (update_current_target): Don't inherit or default
5443 to_set_syscall_catchpoint.
5444 (return_one): Remove.
5445 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5446 TARGET_DEFAULT_RETURN.
5447
62f64d7a
TT
54482014-02-19 Tom Tromey <tromey@redhat.com>
5449
5450 * target-delegates.c: Rebuild.
5451 * target.c (update_current_target): Don't inherit or default
5452 to_insert_exec_catchpoint.
5453 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5454 TARGET_DEFAULT_RETURN.
5455
cda0f38c
TT
54562014-01-08 Tom Tromey <tromey@redhat.com>
5457
5458 * target-delegates.c: Rebuild.
5459 * target.c (update_current_target): Don't inherit or default
5460 to_insert_exec_catchpoint.
5461 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5462 TARGET_DEFAULT_RETURN.
5463
95c3375e
TT
54642014-02-19 Tom Tromey <tromey@redhat.com>
5465
5466 * target-delegates.c: Rebuild.
5467 * target.c (update_current_target): Don't inherit or default
5468 to_remove_vfork_catchpoint.
5469 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5470 TARGET_DEFAULT_RETURN.
5471
7e18a8dc
TT
54722014-02-19 Tom Tromey <tromey@redhat.com>
5473
5474 * target-delegates.c: Rebuild.
5475 * target.c (update_current_target): Don't inherit or default
5476 to_insert_vfork_catchpoint.
5477 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5478 TARGET_DEFAULT_RETURN.
5479
e1a21fb7
TT
54802014-02-19 Tom Tromey <tromey@redhat.com>
5481
5482 * target-delegates.c: Rebuild.
5483 * target.c (update_current_target): Don't inherit or default
5484 to_remove_fork_catchpoint.
5485 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5486 TARGET_DEFAULT_RETURN.
5487
5958ebeb
TT
54882014-02-19 Tom Tromey <tromey@redhat.com>
5489
5490 * target-delegates.c: Rebuild.
5491 * target.c (update_current_target): Don't inherit or default
5492 to_insert_fork_catchpoint.
5493 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5494 TARGET_DEFAULT_RETURN.
5495
340ba4bf
TT
54962014-02-19 Tom Tromey <tromey@redhat.com>
5497
5498 * target-delegates.c: Rebuild.
5499 * target.c (update_current_target): Don't inherit or default
5500 to_post_startup_inferior.
5501 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5502 TARGET_DEFAULT_IGNORE.
5503
7634da87
TT
55042014-02-19 Tom Tromey <tromey@redhat.com>
5505
5506 * target-delegates.c: Rebuild.
5507 * target.c (update_current_target): Don't inherit or default
5508 to_load.
5509 * target.h (struct target_ops) <to_load>: Use
5510 TARGET_DEFAULT_NORETURN.
5511
e19e919f
TT
55122014-02-19 Tom Tromey <tromey@redhat.com>
5513
5514 * target-delegates.c: Rebuild.
5515 * target.c (update_current_target): Don't inherit or default
5516 to_terminal_info.
5517 * target.h (struct target_ops) <to_terminal_info>: Use
5518 TARGET_DEFAULT_FUNC.
5519
c6ea8f79
TT
55202014-02-19 Tom Tromey <tromey@redhat.com>
5521
5522 * target-delegates.c: Rebuild.
5523 * target.c (update_current_target): Don't inherit or default
5524 to_terminal_save_ours.
5525 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5526 TARGET_DEFAULT_IGNORE.
5527
e4a733f1
TT
55282014-02-19 Tom Tromey <tromey@redhat.com>
5529
5530 * target-delegates.c: Rebuild.
5531 * target.c (update_current_target): Don't inherit or default
5532 to_terminal_ours.
5533 * target.h (struct target_ops) <to_terminal_ours>: Use
5534 TARGET_DEFAULT_IGNORE.
5535
74fcbef9
TT
55362014-02-19 Tom Tromey <tromey@redhat.com>
5537
5538 * target-delegates.c: Rebuild.
5539 * target.c (update_current_target): Don't inherit or default
5540 to_terminal_ours_for_output.
5541 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5542 TARGET_DEFAULT_IGNORE.
5543
ddeaacc9
TT
55442014-02-19 Tom Tromey <tromey@redhat.com>
5545
5546 * target-delegates.c: Rebuild.
5547 * target.c (update_current_target): Don't inherit or default
5548 to_terminal_inferior.
5549 * target.h (struct target_ops) <to_terminal_inferior>: Use
5550 TARGET_DEFAULT_IGNORE.
5551
0343661d
TT
55522014-02-19 Tom Tromey <tromey@redhat.com>
5553
5554 * target-delegates.c: Rebuild.
5555 * target.c (update_current_target): Don't inherit or default
5556 to_terminal_init.
5557 * target.h (struct target_ops) <to_terminal_init>: Use
5558 TARGET_DEFAULT_IGNORE.
5559
77cdffe9
TT
55602014-02-19 Tom Tromey <tromey@redhat.com>
5561
5562 * target-delegates.c: Rebuild.
5563 * target.c (update_current_target): Don't inherit or default
5564 to_can_accel_watchpoint_condition.
5565 * target.h (struct target_ops)
5566 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5567
d03655e4
TT
55682014-02-19 Tom Tromey <tromey@redhat.com>
5569
5570 * target-delegates.c: Rebuild.
5571 * target.c (update_current_target): Don't inherit or default
5572 to_region_ok_for_hw_watchpoint.
5573 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5574 Use TARGET_DEFAULT_FUNC.
5575
65f160a9
TT
55762014-02-19 Tom Tromey <tromey@redhat.com>
5577
5578 * target-delegates.c: Rebuild.
5579 * target.c (update_current_target): Don't inherit or default
5580 to_watchpoint_addr_within_range.
5581 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5582 Use TARGET_DEFAULT_FUNC.
5583
61dd109f
TT
55842014-02-19 Tom Tromey <tromey@redhat.com>
5585
5586 * target-delegates.c: Rebuild.
5587 * target.c (update_current_target): Don't inherit or default
5588 to_remove_watchpoint.
5589 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5590 TARGET_DEFAULT_NORETURN.
5591
016facd4
TT
55922014-02-19 Tom Tromey <tromey@redhat.com>
5593
5594 * target-delegates.c: Rebuild.
5595 * target.c (update_current_target): Don't inherit or default
5596 to_insert_watchpoint.
5597 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5598 TARGET_DEFAULT_RETURN.
5599
418dabac
TT
56002014-02-19 Tom Tromey <tromey@redhat.com>
5601
5602 * target-delegates.c: Rebuild.
5603 * target.c (update_current_target): Don't inherit or default
5604 to_remove_hw_breakpoint.
5605 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5606 TARGET_DEFAULT_RETURN.
5607
61b371f9
TT
56082014-02-19 Tom Tromey <tromey@redhat.com>
5609
5610 * target-delegates.c: Rebuild.
5611 * target.c (update_current_target): Don't inherit or default
5612 to_insert_hw_breakpoint.
5613 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5614 TARGET_DEFAULT_RETURN.
5615
52b51d06
TT
56162014-02-19 Tom Tromey <tromey@redhat.com>
5617
5618 * target-delegates.c: Rebuild.
5619 * target.c (update_current_target): Don't inherit or default
5620 to_can_use_hw_breakpoint.
5621 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5622 TARGET_DEFAULT_RETURN.
5623
f86e59b2
TT
56242014-02-19 Tom Tromey <tromey@redhat.com>
5625
5626 * target-delegates.c: Rebuild.
5627 * target.c (update_current_target): Don't inherit or default
5628 to_files_info.
5629 * target.h (struct target_ops) <to_files_info>: Use
5630 TARGET_DEFAULT_IGNORE.
5631
6c628163
TT
56322014-02-19 Tom Tromey <tromey@redhat.com>
5633
5634 * target-delegates.c: Rebuild.
5635 * target.c (update_current_target): Don't inherit or default
5636 to_store.
5637 * target.h (struct target_ops) <to_store>: Use
5638 TARGET_DEFAULT_NORETURN.
5639
bebd3233
TT
56402014-02-19 Tom Tromey <tromey@redhat.com>
5641
5642 * target-delegates.c: Rebuild.
5643 * target.c (update_current_target): Don't inherit or default
5644 to_post_attach.
5645 * target.h (struct target_ops) <to_post_attach>: Use
5646 TARGET_DEFAULT_IGNORE.
5647
a53f3625
TT
56482014-02-19 Tom Tromey <tromey@redhat.com>
5649
5650 * target-delegates.c: Rebuild.
5651 * target.c (update_current_target): Don't inherit or default
5652 to_rcmd.
5653 (default_rcmd): New function.
5654 (do_monitor_command): Unconditionally delegate.
5655 * target.h (struct target_ops) <to_rmcd>: Use
5656 TARGET_DEFAULT_FUNC.
5657
e9a29200
TT
56582014-02-19 Tom Tromey <tromey@redhat.com>
5659
5660 * target-delegates.c: Rebuild.
5661 * target.c (init_dummy_target): Don't initialize to_attach.
5662 (target_attach): Unconditionally delegate.
5663 * target.h (struct target_ops) <to_attach>: Use
5664 TARGET_DEFAULT_FUNC.
5665
09da0d0a
TT
56662014-02-19 Tom Tromey <tromey@redhat.com>
5667
5668 * target-delegates.c: Rebuild.
5669 * target.c (target_detach): Unconditionally delegate.
5670 (init_dummy_target): Don't initialize to_detach.
5671 * target.h (struct target_ops) <to_detach>: Use
5672 TARGET_DEFAULT_IGNORE.
5673
5436ff03
TT
56742014-02-19 Tom Tromey <tromey@redhat.com>
5675
5676 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5677 Add argument.
5678 (target_augmented_libraries_svr4_read): Add argument.
5679 * target.c (update_current_target): Update.
5680 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5681 argument.
5682
f0d960ea
TT
56832014-02-19 Tom Tromey <tromey@redhat.com>
5684
5685 * target.h (struct target_ops) <to_call_history_range>: Add
5686 argument.
5687 * target.c (target_call_history_range): Add argument.
5688 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5689 argument.
5690 (record_btrace_call_history_from): Update.
5691
ec0aea04
TT
56922014-02-19 Tom Tromey <tromey@redhat.com>
5693
5694 * target.h (struct target_ops) <to_call_history_from>: Add
5695 argument.
5696 * target.c (target_call_history_from): Add argument.
5697 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5698 argument.
5699
5df2fcba
TT
57002014-02-19 Tom Tromey <tromey@redhat.com>
5701
5702 * target.h (struct target_ops) <to_call_history>: Add argument.
5703 * target.c (target_call_history): Add argument.
5704 * record-btrace.c (record_btrace_call_history): Add 'self'
5705 argument.
5706
4e99c6b7
TT
57072014-02-19 Tom Tromey <tromey@redhat.com>
5708
5709 * target.h (struct target_ops) <to_insn_history_range>: Add
5710 argument.
5711 * target.c (target_insn_history_range): Add argument.
5712 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5713 argument.
5714 (record_btrace_insn_history_from): Update.
5715
9abc3ff3
TT
57162014-02-19 Tom Tromey <tromey@redhat.com>
5717
5718 * target.h (struct target_ops) <to_insn_history_from>: Add
5719 argument.
5720 * target.c (target_insn_history_from): Add argument.
5721 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5722 argument.
5723
7a6c5609
TT
57242014-02-19 Tom Tromey <tromey@redhat.com>
5725
5726 * target.h (struct target_ops) <to_insn_history>: Add argument.
5727 * target.c (target_insn_history): Add argument.
5728 * record-btrace.c (record_btrace_insn_history): Add 'self'
5729 argument.
5730
606183ac
TT
57312014-02-19 Tom Tromey <tromey@redhat.com>
5732
5733 * target.h (struct target_ops) <to_goto_record>: Add argument.
5734 * target.c (target_goto_record): Add argument.
5735 * record-full.c (record_full_goto): Add 'self' argument.
5736 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5737
307a1b91
TT
57382014-02-19 Tom Tromey <tromey@redhat.com>
5739
5740 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5741 * target.c (target_goto_record_end): Add argument.
5742 * record-full.c (record_full_goto_end): Add 'self' argument.
5743 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5744
08475817
TT
57452014-02-19 Tom Tromey <tromey@redhat.com>
5746
5747 * target.h (struct target_ops) <to_goto_record_begin>: Add
5748 argument.
5749 * target.c (target_goto_record_begin): Add argument.
5750 * record-full.c (record_full_goto_begin): Add 'self' argument.
5751 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5752 argument.
5753
1c63c994
TT
57542014-02-19 Tom Tromey <tromey@redhat.com>
5755
5756 * target.h (struct target_ops) <to_record_is_replaying>: Add
5757 argument.
5758 * target.c (target_record_is_replaying): Add argument.
5759 * record-full.c (record_full_is_replaying): Add 'self' argument.
5760 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5761 argument.
5762 (record_btrace_xfer_partial, record_btrace_store_registers)
5763 (record_btrace_prepare_to_store, record_btrace_resume)
5764 (record_btrace_wait, record_btrace_decr_pc_after_break)
5765 (record_btrace_find_new_threads, record_btrace_thread_alive):
5766 Update.
5767
d1b55219
TT
57682014-02-19 Tom Tromey <tromey@redhat.com>
5769
5770 * target.h (struct target_ops) <to_delete_record>: Add argument.
5771 * target.c (target_delete_record): Add argument.
5772 * record-full.c (record_full_delete): Add 'self' argument.
5773
1390f529
TT
57742014-02-19 Tom Tromey <tromey@redhat.com>
5775
5776 * target.h (struct target_ops) <to_save_record>: Add argument.
5777 * target.c (target_save_record): Add argument.
5778 * record-full.c (record_full_save): Add 'self' argument.
5779 (record_full_save): Add 'self' argument.
5780
630d6a4a
TT
57812014-02-19 Tom Tromey <tromey@redhat.com>
5782
5783 * target.h (struct target_ops) <to_info_record>: Add argument.
5784 * target.c (target_info_record): Add argument.
5785 * record.c (info_record_command): Add argument.
5786 * record-full.c (record_full_info): Add 'self' argument.
5787 * record-btrace.c (record_btrace_info): Add 'self' argument.
5788
c6cd7c02
TT
57892014-02-19 Tom Tromey <tromey@redhat.com>
5790
5791 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5792 * target.c (target_stop_recording): Add argument.
5793 * record.c (record_stop): Add argument.
5794 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5795 argument.
5796
39c49f83
TT
57972014-02-19 Tom Tromey <tromey@redhat.com>
5798
5799 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5800 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5801 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5802 argument.
5803 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5804 (_initialize_amd64_linux_nat): Use it.
5805 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5806 (_initialize_i386_linux_nat): Use it.
5807
1777056d
TT
58082014-02-19 Tom Tromey <tromey@redhat.com>
5809
5810 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5811 * target.c (target_teardown_btrace): Add argument.
5812 * remote.c (remote_teardown_btrace): Add 'self' argument.
5813 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5814 argument.
5815 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5816 argument.
5817
25e95349
TT
58182014-02-19 Tom Tromey <tromey@redhat.com>
5819
5820 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5821 * target.c (target_disable_btrace): Add argument.
5822 * remote.c (remote_disable_btrace): Add 'self' argument.
5823 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5824 argument.
5825 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5826 argument.
5827
e3c49f88
TT
58282014-02-19 Tom Tromey <tromey@redhat.com>
5829
5830 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5831 * target.c (target_enable_btrace): Add argument.
5832 * remote.c (remote_enable_btrace): Add 'self' argument.
5833 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5834 argument.
5835 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5836 argument.
5837
fe38f897
TT
58382014-02-19 Tom Tromey <tromey@redhat.com>
5839
5840 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5841 (target_can_use_agent): Add argument.
5842 * target.c (update_current_target): Update.
5843 * remote.c (remote_can_use_agent): Add 'self' argument.
5844 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5845
2c152180
TT
58462014-02-19 Tom Tromey <tromey@redhat.com>
5847
5848 * target.h (struct target_ops) <to_use_agent>: Add argument.
5849 (target_use_agent): Add argument.
5850 * target.c (update_current_target): Update.
5851 * remote.c (remote_use_agent): Add 'self' argument.
5852 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5853
a893e81f
TT
58542014-02-19 Tom Tromey <tromey@redhat.com>
5855
5856 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5857 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5858 (target_traceframe_info): Add argument.
5859 * target.c (update_current_target): Update.
5860 * remote.c (remote_traceframe_info): Add 'self' argument.
5861 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5862
c686c57f
TT
58632014-02-19 Tom Tromey <tromey@redhat.com>
5864
5865 * target.h (target_static_tracepoint_markers_by_strid): Add
5866 argument.
5867 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5868 'self' argument.
5869 * target.c (update_current_target): Update.
5870 * remote.c (struct target_ops)
5871 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5872 * linux-nat.c (struct target_ops)
5873 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5874
61fc905d
TT
58752014-02-19 Tom Tromey <tromey@redhat.com>
5876
5877 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5878 Add argument.
5879 (target_static_tracepoint_marker_at): Add argument.
5880 * target.c (update_current_target): Update.
5881 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5882 argument.
5883
c378d69d
TT
58842014-02-19 Tom Tromey <tromey@redhat.com>
5885
5886 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5887 (target_set_permissions): Add argument.
5888 * target.c (update_current_target): Update.
5889 * remote.c (remote_set_permissions): Add 'self' argument.
5890 (remote_start_remote): Update.
5891
bd7ae0f5
TT
58922014-02-19 Tom Tromey <tromey@redhat.com>
5893
5894 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5895 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5896 (target_get_tib_address): Add argument.
5897 * target.c (update_current_target): Update.
5898 * remote.c (remote_get_tib_address): Add 'self' argument.
5899
d9e68a2c
TT
59002014-02-19 Tom Tromey <tromey@redhat.com>
5901
5902 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5903 (target_set_trace_notes): Add argument.
5904 * target.c (update_current_target): Update.
5905 * remote.c (remote_set_trace_notes): Add 'self' argument.
5906
4da384be
TT
59072014-02-19 Tom Tromey <tromey@redhat.com>
5908
5909 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5910 argument.
5911 (target_set_trace_buffer_size): Add argument.
5912 * target.c (update_current_target): Update.
5913 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5914
736d5b1f
TT
59152014-02-19 Tom Tromey <tromey@redhat.com>
5916
5917 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5918 argument.
5919 (target_set_circular_trace_buffer): Add argument.
5920 * target.c (update_current_target): Update.
5921 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5922 argument.
5923
37b25738
TT
59242014-02-19 Tom Tromey <tromey@redhat.com>
5925
5926 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5927 argument.
5928 (target_set_disconnected_tracing): Add argument.
5929 * target.c (update_current_target): Update.
5930 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5931
0e67620a
TT
59322014-02-19 Tom Tromey <tromey@redhat.com>
5933
5934 * target.h (struct target_ops)
5935 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5936 (target_get_min_fast_tracepoint_insn_len): Add argument.
5937 * target.c (update_current_target): Update.
5938 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5939 argument.
5940
88ee6f45
TT
59412014-02-19 Tom Tromey <tromey@redhat.com>
5942
5943 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5944 argument.
5945 (target_get_raw_trace_data): Add argument.
5946 * target.c (update_current_target): Update.
5947 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5948
181e3713
TT
59492014-02-19 Tom Tromey <tromey@redhat.com>
5950
5951 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5952 Add argument.
5953 (target_upload_trace_state_variables): Add argument.
5954 * target.c (update_current_target): Update.
5955 * remote.c (remote_upload_trace_state_variables): Add 'self'
5956 argument.
5957 (remote_start_remote): Update.
5958
ab6617cc
TT
59592014-02-19 Tom Tromey <tromey@redhat.com>
5960
5961 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5962 argument.
5963 (target_upload_tracepoints): Add argument.
5964 * target.c (update_current_target): Update.
5965 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5966 (remote_start_remote): Update.
5967
dc3decaf
TT
59682014-02-19 Tom Tromey <tromey@redhat.com>
5969
5970 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5971 (target_save_trace_data): Add argument.
5972 * target.c (update_current_target): Update.
5973 * remote.c (remote_save_trace_data): Add 'self' argument.
5974
4011015b
TT
59752014-02-19 Tom Tromey <tromey@redhat.com>
5976
5977 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5978 argument.
5979 * target.h (struct target_ops)
5980 <to_get_trace_state_variable_value>: Add argument.
5981 (target_get_trace_state_variable_value): Add argument.
5982 * target.c (update_current_target): Update.
5983 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5984 argument.
5985 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5986
bd4c6793
TT
59872014-02-19 Tom Tromey <tromey@redhat.com>
5988
5989 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5990 * target.h (struct target_ops) <to_trace_find>: Add argument.
5991 (target_trace_find): Add argument.
5992 * target.c (update_current_target): Update.
5993 * remote.c (remote_trace_find): Add 'self' argument.
5994 * ctf.c (ctf_trace_find): Add 'self' argument.
5995
74499f1b
TT
59962014-02-19 Tom Tromey <tromey@redhat.com>
5997
5998 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5999 (target_trace_stop): Add argument.
6000 * target.c (update_current_target): Update.
6001 * remote.c (remote_trace_stop): Add 'self' argument.
6002
db90e85c
TT
60032014-02-19 Tom Tromey <tromey@redhat.com>
6004
6005 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6006 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6007 argument.
6008 (target_get_tracepoint_status): Add argument.
6009 * target.c (update_current_target): Update.
6010 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6011
8bd200f1
TT
60122014-02-19 Tom Tromey <tromey@redhat.com>
6013
6014 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6015 * target.h (struct target_ops) <to_get_trace_status>: Add
6016 argument.
6017 (target_get_trace_status): Add argument.
6018 * target.c (update_current_target): Update.
6019 * remote.c (remote_get_trace_status): Add 'self' argument.
6020 (remote_start_remote, remote_can_download_tracepoint): Update.
6021 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6022
e2d1aae3
TT
60232014-02-19 Tom Tromey <tromey@redhat.com>
6024
6025 * target.h (struct target_ops) <to_trace_start>: Add argument.
6026 (target_trace_start): Add argument.
6027 * target.c (update_current_target): Update.
6028 * remote.c (remote_trace_start): Add 'self' argument.
6029
583f9a86
TT
60302014-02-19 Tom Tromey <tromey@redhat.com>
6031
6032 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6033 Add argument.
6034 (target_trace_set_readonly_regions): Add argument.
6035 * target.c (update_current_target): Update.
6036 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6037 argument.
6038
780b049c
TT
60392014-02-19 Tom Tromey <tromey@redhat.com>
6040
6041 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6042 argument.
6043 (target_disable_tracepoint): Add argument.
6044 * target.c (update_current_target): Update.
6045 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6046
46670d57
TT
60472014-02-19 Tom Tromey <tromey@redhat.com>
6048
6049 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6050 argument.
6051 (target_enable_tracepoint): Add argument.
6052 * target.c (update_current_target): Update.
6053 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6054
559d2b81
TT
60552014-02-19 Tom Tromey <tromey@redhat.com>
6056
6057 * target.h (struct target_ops) <to_download_trace_state_variable>:
6058 Add argument.
6059 (target_download_trace_state_variable): Add argument.
6060 * target.c (update_current_target): Update.
6061 * remote.c (remote_download_trace_state_variable): Add 'self'
6062 argument.
6063
a52a8357
TT
60642014-02-19 Tom Tromey <tromey@redhat.com>
6065
6066 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6067 argument.
6068 (target_can_download_tracepoint): Add argument.
6069 * target.c (update_current_target): Update.
6070 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6071
548f7808
TT
60722014-02-19 Tom Tromey <tromey@redhat.com>
6073
6074 * target.h (struct target_ops) <to_download_tracepoint>: Add
6075 argument.
6076 (target_download_tracepoint): Add argument.
6077 * target.c (update_current_target): Update.
6078 * remote.c (remote_download_tracepoint): Add 'self' argument.
6079
ecae04e1
TT
60802014-02-19 Tom Tromey <tromey@redhat.com>
6081
6082 * target.h (struct target_ops) <to_trace_init>: Add argument.
6083 (target_trace_init): Add argument.
6084 * target.c (update_current_target): Update.
6085 * remote.c (remote_trace_init): Add 'self' argument.
6086
fab5aa7c
TT
60872014-02-19 Tom Tromey <tromey@redhat.com>
6088
6089 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6090 * target.c (target_fileio_readlink): Add argument.
6091 * remote.c (remote_hostio_readlink): Add 'self' argument.
6092 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6093
dbbca37d
TT
60942014-02-19 Tom Tromey <tromey@redhat.com>
6095
6096 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6097 * target.c (target_fileio_unlink): Add argument.
6098 * remote.c (remote_hostio_unlink): Add 'self' argument.
6099 (remote_file_delete): Update.
6100 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6101
df39ea25
TT
61022014-02-19 Tom Tromey <tromey@redhat.com>
6103
6104 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6105 * target.c (target_fileio_close): Add argument.
6106 * remote.c (remote_hostio_close): Add 'self' argument.
6107 (remote_hostio_close_cleanup): Update.
6108 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6109 Update.
6110 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6111
a3be983c
TT
61122014-02-19 Tom Tromey <tromey@redhat.com>
6113
6114 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6115 * target.c (target_fileio_pread): Add argument.
6116 * remote.c (remote_hostio_pread): Add 'self' argument.
6117 (remote_bfd_iovec_pread, remote_file_get): Update.
6118 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6119
0d866f62
TT
61202014-02-19 Tom Tromey <tromey@redhat.com>
6121
6122 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6123 * target.c (target_fileio_pwrite): Add argument.
6124 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6125 (remote_file_put): Update.
6126 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6127
cd897586
TT
61282014-02-19 Tom Tromey <tromey@redhat.com>
6129
6130 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6131 * target.c (target_fileio_open): Add argument.
6132 * remote.c (remote_hostio_open): Add 'self' argument.
6133 (remote_bfd_iovec_open): Add 'self' argument.
6134 (remote_file_put): Add 'self' argument.
6135 (remote_file_get): Add 'self' argument.
6136 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6137
78eff0ec
TT
61382014-02-19 Tom Tromey <tromey@redhat.com>
6139
6140 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6141 Add argument.
6142 (target_can_run_breakpoint_commands): Add argument.
6143 * target.c (update_current_target): Update.
6144 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6145 argument.
6146 (remote_insert_breakpoint): Add 'self' argument.
6147 (remote_insert_hw_breakpoint): Add 'self' argument.
6148 (remote_can_run_breakpoint_commands): Add 'self' argument.
6149
efcc2da7
TT
61502014-02-19 Tom Tromey <tromey@redhat.com>
6151
6152 * target.h (struct target_ops)
6153 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6154 (target_supports_evaluation_of_breakpoint_conditions): Add
6155 argument.
6156 * target.c (update_current_target): Update.
6157 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6158 argument.
6159 (remote_insert_breakpoint): Add 'self' argument.
6160 (remote_insert_hw_breakpoint): Add 'self' argument.
6161 (remote_supports_cond_breakpoints): Add 'self' argument.
6162
6de37a3a
TT
61632014-02-19 Tom Tromey <tromey@redhat.com>
6164
6165 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6166 argument.
6167 (target_supports_string_tracing): Add argument.
6168 * target.c (update_current_target): Update.
6169 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6170
2bfc0540
TT
61712014-02-19 Tom Tromey <tromey@redhat.com>
6172
6173 * target.h (struct target_ops)
6174 <to_supports_disable_randomization>: Add argument.
6175 * target.c (find_default_supports_disable_randomization): Add
6176 argument.
6177 (target_supports_disable_randomization): Add argument.
6178 (find_default_supports_disable_randomization): Add 'self'
6179 argument.
6180 * remote.c (extended_remote_supports_disable_randomization): Add
6181 'self' argument.
6182 (remote_supports_disable_randomization): Add 'self' argument.
6183 (extended_remote_create_inferior): Update.
6184 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6185 'self' argument.
6186
7d178d6a
TT
61872014-02-19 Tom Tromey <tromey@redhat.com>
6188
6189 * target.h (struct target_ops)
6190 <to_supports_enable_disable_tracepoint>: Add argument.
6191 (target_supports_enable_disable_tracepoint): Add argument.
6192 * target.c (update_current_target): Update.
6193 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6194 argument.
6195
86ce2668
TT
61962014-02-19 Tom Tromey <tromey@redhat.com>
6197
6198 * target.h (struct target_ops) <to_supports_multi_process>: Add
6199 argument.
6200 (target_supports_multi_process): Add argument.
6201 * target.c (update_current_target): Update.
6202 * remote.c (remote_supports_multi_process): Add 'self' argument.
6203 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6204 argument.
6205 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6206 argument.
6207
4c612759
TT
62082014-02-19 Tom Tromey <tromey@redhat.com>
6209
6210 * target.h (struct target_ops) <to_execution_direction>: Add
6211 argument.
6212 (target_execution_direction): Add argument.
6213 * target.c (default_execution_direction): Add 'self' argument.
6214 * record-full.c (record_full_execution_direction): Add 'self'
6215 argument.
6216
19db3e69
TT
62172014-02-19 Tom Tromey <tromey@redhat.com>
6218
6219 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6220 argument.
6221 (target_can_execute_reverse): Add argument.
6222 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6223 * record-full.c (record_full_can_execute_reverse): Add 'self'
6224 argument.
6225 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6226 argument.
6227
1e6b91a4
TT
62282014-02-19 Tom Tromey <tromey@redhat.com>
6229
6230 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6231 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6232 argument.
6233 (target_get_ada_task_ptid): Add argument.
6234 * target.c (update_current_target): Update.
6235 (default_get_ada_task_ptid): Add 'self' argument.
6236 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6237 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6238 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6239 argument.
6240 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6241 argument.
6242 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6243 argument.
6244 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6245 argument.
6246 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6247 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6248 argument.
6249
3c80fb48
TT
62502014-02-19 Tom Tromey <tromey@redhat.com>
6251
6252 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6253 (target_goto_bookmark): Add argument.
6254 * target.c (dummy_goto_bookmark): Add 'self' argument.
6255 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6256
dd0e2830
TT
62572014-02-19 Tom Tromey <tromey@redhat.com>
6258
6259 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6260 (target_get_bookmark): Add argument.
6261 * target.c (dummy_get_bookmark): Add 'self' argument.
6262 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6263
fc6691b2
TT
62642014-02-19 Tom Tromey <tromey@redhat.com>
6265
6266 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6267 argument.
6268 (target_make_corefile_notes): Add argument.
6269 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6270 * procfs.c (procfs_make_note_section): Add 'self' argument.
6271 (procfs_make_note_section): Add 'self' argument.
6272 (procfs_make_note_section): Add 'self' argument.
6273 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6274 argument.
6275 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6276 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6277 * exec.c (exec_make_note_section): Add 'self' argument.
6278 (exec_make_note_section): Add 'self' argument.
6279
2e73927c
TT
62802014-02-19 Tom Tromey <tromey@redhat.com>
6281
6282 * target.h (struct target_ops) <to_find_memory_regions>: Add
6283 argument.
6284 (target_find_memory_regions): Add argument.
6285 * target.c (dummy_find_memory_regions): Add 'self' argument.
6286 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6287 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6288 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6289 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6290 * exec. (exec_do_find_memory_regions): New global.
6291 (exec_set_find_memory_regions): Rewrite.
6292 (exec_find_memory_regions): New function.
6293 (init_exec_ops): Use exec_find_memory_regions.
6294
2a9a2795
TT
62952014-02-19 Tom Tromey <tromey@redhat.com>
6296
6297 * target.h (struct target_ops) <to_supports_non_stop>: Add
6298 argument.
6299 * target.c (find_default_supports_non_stop): Add argument.
6300 (target_supports_non_stop): Add argument.
6301 (find_default_supports_non_stop): Add 'self' argument.
6302 * remote.c (remote_supports_non_stop): Add 'self' argument.
6303 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6304
4ab76ea3
TT
63052014-02-19 Tom Tromey <tromey@redhat.com>
6306
6307 * target.h (struct target_ops) <to_log_command>: Add argument.
6308 (target_log_command): Add argument.
6309 * serial.h (serial_log_command): Add 'self' argument.
6310 * serial.c (serial_log_command): Add 'self' argument.
6311
8dd27370
TT
63122014-02-19 Tom Tromey <tromey@redhat.com>
6313
6314 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6315 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6316 argument.
6317 (target_pid_to_exec_file): Add argument.
6318 * target.c (debug_to_pid_to_exec_file): Add argument.
6319 (update_current_target): Update.
6320 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6321 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6322 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6323 (linux_handle_extended_wait): Update.
6324 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6325 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6326 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6327 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6328
1aac633b
TT
63292014-02-19 Tom Tromey <tromey@redhat.com>
6330
6331 * target.h (struct target_ops) <to_rcmd>: Add argument.
6332 (target_rcmd): Add argument.
6333 * target.c (debug_to_rcmd): Add argument.
6334 (update_current_target, do_monitor_command): Update.
6335 * remote.c (remote_rcmd): Add 'self' argument.
6336 * monitor.c (monitor_rcmd): Add 'self' argument.
6337
1eab8a48
TT
63382014-02-19 Tom Tromey <tromey@redhat.com>
6339
6340 * windows-nat.c (windows_stop): Add 'self' argument.
6341 * target.h (struct target_ops) <to_stop>: Add argument.
6342 * target.c (target_stop): Add argument.
6343 (debug_to_stop): Add argument.
6344 (update_current_target): Update.
6345 * remote.c (remote_stop): Add 'self' argument.
6346 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6347 (gdbsim_cntrl_c): Update.
6348 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6349 * procfs.c (procfs_stop): Add 'self' argument.
6350 * nto-procfs.c (procfs_stop): Add 'self' argument.
6351 * monitor.c (monitor_stop): Add 'self' argument.
6352 (monitor_open): Update.
6353 * linux-nat.c (linux_nat_stop): Add argument.
6354 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6355 * gnu-nat.c (gnu_stop): Add 'self' argument.
6356 * darwin-nat.c (darwin_stop): Add 'self' argument.
6357
503a628d
TT
63582014-02-19 Tom Tromey <tromey@redhat.com>
6359
6360 * target.h (struct target_ops) <to_thread_name>: Add argument.
6361 * target.c (target_thread_name): Add argument.
6362 (update_current_target): Update.
6363 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6364
c15906d8
TT
63652014-02-19 Tom Tromey <tromey@redhat.com>
6366
6367 * target.h (struct target_ops) <to_extra_thread_info>: Add
6368 argument.
6369 (target_extra_thread_info): Add argument.
6370 * target.c (update_current_target): Update.
6371 * remote.c (remote_threads_extra_info): Add 'self' argument.
6372 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6373 argument.
6374 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6375 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6376 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6377 argument.
6378 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6379 argument.
6380 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6381 argument.
6382 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6383 argument.
6384
daf5e9b6
TT
63852014-02-19 Tom Tromey <tromey@redhat.com>
6386
6387 * target.h (struct target_ops) <to_program_signals>: Add argument.
6388 * target.c (target_program_signals): Add argument.
6389 * remote.c (remote_program_signals): Add 'self' argument.
6390
94bedb42
TT
63912014-02-19 Tom Tromey <tromey@redhat.com>
6392
6393 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6394 * target.c (target_pass_signals): Add argument.
6395 * remote.c (remote_pass_signals): Add 'self' argument.
6396 (remote_start_remote): Update.
6397 * procfs.c (procfs_pass_signals): Add 'self' argument.
6398 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6399 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6400 (linux_nat_create_inferior, linux_nat_attach): Update.
6401
da82bd6b
TT
64022014-02-19 Tom Tromey <tromey@redhat.com>
6403
6404 * windows-nat.c (windows_can_run): Add 'self' argument.
6405 * target.h (struct target_ops) <to_can_run>: Add argument.
6406 (target_can_run): Add argument.
6407 * target.c (debug_to_can_run): Add argument.
6408 (update_current_target): Update.
6409 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6410 * inf-child.c (inf_child_can_run): Add 'self' argument.
6411 * go32-nat.c (go32_can_run): Add 'self' argument.
6412
d796e1d6
TT
64132014-02-19 Tom Tromey <tromey@redhat.com>
6414
6415 * target.h (struct target_ops) <to_has_exited>: Add argument.
6416 (target_has_exited): Add argument.
6417 * target.c (debug_to_has_exited): Add argument.
6418 (update_current_target): Update.
6419
ff214e67
TT
64202014-02-19 Tom Tromey <tromey@redhat.com>
6421
6422 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6423 argument.
6424 (target_set_syscall_catchpoint): Add argument.
6425 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6426 argument.
6427 * target.c (update_current_target): Update.
6428
758e29d2
TT
64292014-02-19 Tom Tromey <tromey@redhat.com>
6430
6431 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6432 argument.
6433 (target_remove_exec_catchpoint): Add argument.
6434 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6435 (update_current_target): Update.
6436 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6437 argument.
6438
ba025e51
TT
64392014-02-19 Tom Tromey <tromey@redhat.com>
6440
6441 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6442 argument.
6443 (target_insert_exec_catchpoint): Add argument.
6444 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6445 (update_current_target): Update.
6446 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6447 argument.
6448
e98cf0cd
TT
64492014-02-19 Tom Tromey <tromey@redhat.com>
6450
6451 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6452 argument.
6453 (target_remove_vfork_catchpoint): Add argument.
6454 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6455 (update_current_target): Update.
6456 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6457 argument.
6458
3ecc7da0
TT
64592014-02-19 Tom Tromey <tromey@redhat.com>
6460
6461 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6462 argument.
6463 (target_insert_vfork_catchpoint): Add argument.
6464 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6465 (update_current_target): Update.
6466 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6467 argument.
6468
973fc227
TT
64692014-02-19 Tom Tromey <tromey@redhat.com>
6470
6471 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6472 argument.
6473 (target_remove_fork_catchpoint): Add argument.
6474 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6475 (update_current_target): Update.
6476 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6477 argument.
6478
a863b201
TT
64792014-02-19 Tom Tromey <tromey@redhat.com>
6480
6481 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6482 argument.
6483 (target_insert_fork_catchpoint): Add argument.
6484 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6485 (update_current_target): Update.
6486 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6487 argument.
6488
2e97a79e
TT
64892014-02-19 Tom Tromey <tromey@redhat.com>
6490
6491 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6492 argument.
6493 (target_post_startup_inferior): Add argument.
6494 * target.c (debug_to_post_startup_inferior): Add argument.
6495 (update_current_target): Update.
6496 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6497 argument.
6498 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6499 argument.
6500 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6501 argument.
6502 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6503 argument.
6504 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6505 'self' argument.
6506 (super_post_startup_inferior): Likewise.
6507 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6508 'self' argument.
6509 (super_post_startup_inferior): Likewise.
6510 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6511 Add 'self' argument.
6512 (super_post_startup_inferior): Likewise.
6513
71a9f134
TT
65142014-02-19 Tom Tromey <tromey@redhat.com>
6515
6516 * target.h (struct target_ops) <to_load>: Add argument.
6517 * target.c (target_load): Add argument.
6518 (debug_to_load): Add argument.
6519 (update_current_target): Update.
6520 * remote.c (remote_load): Add 'self' argument.
6521 * remote-sim.c (gdbsim_load): Add 'self' argument.
6522 * remote-mips.c (mips_load): Add 'self' argument.
6523 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6524 * monitor.c (monitor_load): Add 'self' argument.
6525 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6526
0a4f40a2
TT
65272014-02-19 Tom Tromey <tromey@redhat.com>
6528
6529 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6530 (target_terminal_info): Add argument.
6531 * target.c (debug_to_terminal_info): Add argument.
6532 (default_terminal_info): Likewise.
6533 * inflow.c (child_terminal_info): Add 'self' argument.
6534 * inferior.h (child_terminal_info): Add 'self' argument.
6535 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6536
ae3bd431
TT
65372014-02-19 Tom Tromey <tromey@redhat.com>
6538
6539 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6540 argument.
6541 (target_terminal_save_ours): Add argument.
6542 * target.c (debug_to_terminal_save_ours): Add argument.
6543 (update_current_target): Update.
6544 * inflow.c (terminal_save_ours): Add 'self' argument.
6545 * inferior.h (terminal_save_ours): Add 'self' argument.
6546
e3594fd1
TT
65472014-02-19 Tom Tromey <tromey@redhat.com>
6548
6549 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6550 (target_terminal_ours): Add argument.
6551 * target.c (debug_to_terminal_ours): Add argument.
6552 (update_current_target): Update.
6553 * remote.c (remote_terminal_ours): Add 'self' argument.
6554 (remote_close): Update.
6555 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6556 * inflow.c (terminal_ours): Add 'self' argument.
6557 * inferior.h (terminal_ours): Add 'self' argument.
6558 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6559
2e1e1a19
TT
65602014-02-19 Pedro Alves <palves@redhat.com>
6561 Tom Tromey <tromey@redhat.com>
6562
6563 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6564 argument.
6565 (target_terminal_ours_for_output): Add argument.
6566 * target.c (debug_to_terminal_ours_for_output): Add argument.
6567 (update_current_target): Update.
6568 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6569 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6570 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6571
d2f640d4
TT
65722014-02-19 Tom Tromey <tromey@redhat.com>
6573
6574 * target.h (struct target_ops) <to_terminal_inferior>: Add
6575 argument.
6576 * target.c (target_terminal_inferior): Add argument.
6577 (update_current_target): Update.
6578 * remote.c (remote_terminal_inferior): Add 'self' argument.
6579 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6580 * inflow.c (terminal_inferior): Add 'self' argument.
6581 * inferior.h (terminal_inferior): Add 'self' argument.
6582 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6583 (go32_terminal_inferior): Add 'self' argument.
6584
c42bf286
TT
65852014-02-19 Tom Tromey <tromey@redhat.com>
6586
6587 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6588 (target_terminal_init): Add argument.
6589 * target.c (debug_to_terminal_init): Add argument.
6590 (update_current_target): Update.
6591 * inflow.c (terminal_init_inferior): Add 'self' argument.
6592 * inferior.h (terminal_init_inferior): Add 'self' argument.
6593 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6594 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6595
c3a5ff89
TT
65962014-02-19 Tom Tromey <tromey@redhat.com>
6597
6598 * target.h (struct target_ops)
6599 <to_can_accel_watchpoint_condition>: Add argument.
6600 (target_can_accel_watchpoint_condition): Add argument.
6601 * target.c (debug_to_can_accel_watchpoint_condition): Add
6602 argument.
6603 (update_current_target): Update.
6604 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6605 'self' argument.
6606
31568a15
TT
66072014-02-19 Tom Tromey <tromey@redhat.com>
6608
6609 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6610 Add argument.
6611 (target_region_ok_for_hw_watchpoint): Add argument.
6612 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6613 (default_region_ok_for_hw_watchpoint): Add argument.
6614 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6615 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6616 argument.
6617 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6618 argument.
6619 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6620 argument.
6621 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6622 'self' argument.
6623 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6624 'self' argument.
6625 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6626 'self' argument.
6627 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6628 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6629 'self' argument.
6630 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6631 Add 'self' argument.
6632
7bb99c53
TT
66332014-02-19 Tom Tromey <tromey@redhat.com>
6634
6635 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6636 argument.
6637 (target_insert_watchpoint): Add argument.
6638 * target.c (debug_to_insert_watchpoint): Add argument.
6639 (update_current_target): Update.
6640 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6641 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6642 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6643 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6644 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6645 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6646 argument.
6647 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6648 (procfs_insert_hw_watchpoint): Add 'self' argument.
6649 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6650 argument.
6651 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6652 argument.
6653 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6654 argument.
6655 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6656 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6657 argument.
6658 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6659 'self' argument.
6660
11b5219a
TT
66612014-02-19 Tom Tromey <tromey@redhat.com>
6662
6663 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6664 argument.
6665 (target_remove_watchpoint): Add argument.
6666 * target.c (debug_to_remove_watchpoint): Add argument.
6667 (update_current_target): Update.
6668 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6669 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6670 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6671 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6672 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6673 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6674 argument.
6675 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6676 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6677 argument.
6678 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6679 argument.
6680 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6681 argument.
6682 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6683 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6684 argument.
6685 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6686 'self' argument.
6687
a64dc96c
TT
66882014-02-19 Tom Tromey <tromey@redhat.com>
6689
6690 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6691 argument.
6692 (target_remove_hw_breakpoint): Add argument.
6693 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6694 (update_current_target): Update.
6695 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6696 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6697 argument.
6698 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6699 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6700 argument.
6701 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6702 'self' argument.
6703
23a26771
TT
67042014-02-19 Tom Tromey <tromey@redhat.com>
6705
6706 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6707 argument.
6708 (target_insert_hw_breakpoint): Add argument.
6709 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6710 (update_current_target): Update.
6711 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6712 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6713 argument.
6714 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6715 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6716 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6717 argument.
6718 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6719 'self' argument.
6720
5461485a
TT
67212014-02-19 Tom Tromey <tromey@redhat.com>
6722
6723 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6724 argument.
6725 (target_can_use_hardware_watchpoint): Add argument.
6726 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6727 (update_current_target): Update.
6728 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6729 argument.
6730 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6731 argument.
6732 * remote.c (remote_check_watch_resources): Add 'self' argument.
6733 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6734 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6735 argument.
6736 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6737 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6738 argument.
6739 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6740 argument.
6741 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6742 argument.
6743 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6744 argument.
6745 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6746 argument.
6747 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6748 argument.
6749 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6750 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6751 argument.
6752 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6753 'self' argument.
6754
f045800c
TT
67552014-02-19 Tom Tromey <tromey@redhat.com>
6756
6757 * target.h (struct target_ops) <to_post_attach>: Add argument.
6758 (target_post_attach): Add argument.
6759 * target.c (debug_to_post_attach): Add argument.
6760 (update_current_target): Update.
6761 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6762 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6763 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6764 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6765 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6766
de90e03d
TT
67672014-02-19 Tom Tromey <tromey@redhat.com>
6768
6769 * windows-nat.c (windows_close): Add 'self' argument.
6770 * tracepoint.c (tfile_close): Add 'self' argument.
6771 * target.h (struct target_ops) <to_close>: Add argument.
6772 * target.c (target_close): Add argument.
6773 (update_current_target): Update.
6774 * remote.c (remote_close): Add 'self' argument.
6775 * remote-sim.c (gdbsim_close): Add 'self' argument.
6776 * remote-mips.c (mips_close): Add 'self' argument.
6777 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6778 * record-full.c (record_full_close): Add 'self' argument.
6779 * record-btrace.c (record_btrace_close): Add 'self' argument.
6780 * monitor.h (monitor_close): Add 'self' argument.
6781 * monitor.c (monitor_close): Add 'self' argument.
6782 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6783 * linux-nat.c (linux_nat_close): Add argument.
6784 * go32-nat.c (go32_close): Add 'self' argument.
6785 * exec.c (exec_close_1): Add 'self' argument.
6786 * ctf.c (ctf_close): Add 'self' argument.
6787 * corelow.c (core_close): Add 'self' argument.
6788 (core_close_cleanup): Update.
6789 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6790 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6791
9dd130a0
TT
67922014-02-19 Tom Tromey <tromey@redhat.com>
6793
6794 * remote.c (remote_load): New function.
6795 (init_remote_ops): Use it.
6796
46917d26
TT
67972014-02-19 Tom Tromey <tromey@redhat.com>
6798
6799 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6800 argument.
6801 * common/linux-btrace.h (linux_supports_btrace): Update.
6802 * remote.c (remote_supports_btrace): Add "self" argument.
6803 * target-delegates.c: Rebuild.
6804 * target.c (target_supports_btrace): Remove.
6805 * target.h (struct target_ops) <to_supports_btrace>: Add
6806 target_ops argument.
6807 (target_supports_btrace): New define.
6808
6b84065d
TT
68092014-02-19 Tom Tromey <tromey@redhat.com>
6810
6811 * record-full.c (record_full_beneath_to_resume_ops)
6812 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6813 (record_full_beneath_to_wait)
6814 (record_full_beneath_to_store_registers_ops)
6815 (record_full_beneath_to_store_registers)
6816 (record_full_beneath_to_xfer_partial_ops)
6817 (record_full_beneath_to_xfer_partial)
6818 (record_full_beneath_to_insert_breakpoint_ops)
6819 (record_full_beneath_to_insert_breakpoint)
6820 (record_full_beneath_to_remove_breakpoint_ops)
6821 (record_full_beneath_to_remove_breakpoint)
6822 (record_full_beneath_to_stopped_by_watchpoint)
6823 (record_full_beneath_to_stopped_data_address)
6824 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6825 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6826 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6827 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6828 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6829 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6830 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6831 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6832 (record_full_resume, record_full_wait_1)
6833 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6834 (record_full_store_registers, record_full_xfer_partial)
6835 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6836 (record_full_async, record_full_core_xfer_partial): Use target
6837 delegation.
6838 * target-delegates.c: Rebuild.
6839 * target.c (current_xfer_partial): Remove.
6840 (update_current_target): Do not INHERIT or de_fault
6841 to_insert_breakpoint, to_remove_breakpoint,
6842 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6843 to_is_async_p, to_async. Do not set to_xfer_partial field.
6844 (default_xfer_partial): Simplify.
6845 (current_xfer_partial): Remove.
6846 (target_wait, target_resume): Simplify.
6847 (find_default_can_async_p, find_default_is_async_p): Update.
6848 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6849 to_xfer_partial, to_stopped_by_watchpoint,
6850 to_stopped_data_address.
6851 (target_store_registers): Simplify.
6852 (forward_target_remove_breakpoint)
6853 (forward_target_insert_breakpoint): Remove.
6854 (target_remove_breakpoint, target_insert_breakpoint)
6855 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6856 * target.h (struct target_ops) <to_resume, to_wait,
6857 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6858 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6859 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6860 markup.
6861 (forward_target_remove_breakpoint)
6862 (forward_target_insert_breakpoint): Remove.
6863 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6864 directly.
6865 (record_btrace_insert_breakpoint): Delegate directly.
6866
1101cb7b
TT
68672014-02-19 Tom Tromey <tromey@redhat.com>
6868
6869 PR build/7701:
6870 * target-delegates.c: New file.
6871 * target.c: Include target-delegates.c.
6872 (init_dummy_target): Call install_dummy_methods.
6873 (complete_target_initialization): Call install_delegators.
6874 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6875 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6876 * make-target-delegates: New file.
6877
8b06beed
TT
68782014-02-19 Tom Tromey <tromey@redhat.com>
6879
6880 * record.c (find_record_target): Use find_target_at.
6881 * target.c (find_target_at): New function.
6882 * target.h (find_target_at): Declare.
6883
6a109b6b
TT
68842014-02-19 Tom Tromey <tromey@redhat.com>
6885
6886 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6887 Add 'ops' argument.
6888 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6889 'ops' argument.
6890 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6891 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6892 'ops' argument.
6893 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6894 argument.
6895 * linux-nat.c (save_sigtrap): Update.
6896 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6897 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6898 (linux_nat_close): Update.
6899 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6900 argument.
6901 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6902 argument.
6903 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6904 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6905 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6906 (tmp_to_async): Add 'ops' argument.
6907 (record_full_stopped_by_watchpoint, record_full_async)
6908 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6909 argument.
6910 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6911 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6912 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6913 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6914 (remote_is_async_p, remote_async): Add 'ops' argument.
6915 (remote_stopped_data_address): Update.
6916 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6917 * target.c (update_current_target)
6918 (find_default_can_async_p, find_default_is_async_p): Update.
6919 (init_dummy_target): Update.
6920 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6921 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6922 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6923 (target_can_async_p, target_is_async_p, target_async)
6924 (target_stopped_by_watchpoint): Update.
6925
e095146b
YQ
69262014-02-19 Yao Qi <yao@codesourcery.com>
6927
6928 PR gdb/16220
6929 * gdbarch.sh: Remove startup_gdbarch.
6930 * gdbarch.c: Regenerated.
6931 * gdbarch.h: Likewise.
6932
bc3c6b36
KB
69332014-02-17 Kevin Buettner <kevinb@redhat.com>
6934
6935 * rl78-tdep.c (rl78_g10_register_name): New function.
6936 (rl78_return_value): Add g10 support.
6937 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6938 g10.
6939
98dc0167 69402014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
6941
6942 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6943 (SUBDIR_GUILE_SRCS): Ditto.
6944 (scm-gsmob.o): Ditto.
6945
842c05cd
YQ
69462014-02-17 Yao Qi <yao@codesourcery.com>
6947
6948 * gnu-nat.c (ILL_RPC): Declare defined function.
6949
25c0bd04
YQ
69502014-02-17 Yao Qi <yao@codesourcery.com>
6951
6952 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6953 mach_msg_type_number_t.
6954 (gnu_write_inferior): Likewise.
6955
a9a758e3
YQ
69562014-02-17 Yao Qi <yao@codesourcery.com>
6957
6958 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6959 in format string.
6960 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6961 (inf_validate_procs, inf_signal): Likewise.
6962 (S_exception_raise_request): Likewise.
6963 (do_mach_notify_dead_name): Likewise.
6964 (steal_exc_port): Likewise.
6965 (gnu_read_inferior): Change 'copy_count''s type to
6966 mach_msg_type_number_t.
6967 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6968 format string.
6969
bae8023e
TS
69702014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6971
c82f56d9
TS
6972 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6973 flag. Adjust all users; in particular...
6974 (gnu_wait): ..., don't decrement its value in here...
6975 (gnu_create_inferior): ..., and instead set the flag in here,
6976 around the startup_inferior call, and call that one with
6977 START_INFERIOR_TRAPS_EXPECTED.
6978
3398af6a
TS
6979 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6980 (ILL_RPC): ... new macro.
6981 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6982 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6983 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6984 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6985 functions with ILL_RPC macro.
6986 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6987 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6988 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6989 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6990 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6991 (S_proc_getlogin_reply, S_proc_getsid_reply)
6992 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6993 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6994 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6995 (S_proc_getnports_reply, S_proc_is_important_reply)
6996 (S_proc_get_code_reply): New stub functions, generated with
6997 ILL_RPC macro.
6998
d47642c9
TS
6999 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7000 collected the type check structures.
7001
bae8023e
TS
7002 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7003
8a55ffb0
DE
70042014-02-14 Doug Evans <dje@google.com>
7005
7006 * target.c (target_write_partial): Fix result type.
7007
c2853f3d
JM
70082014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7009
7010 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7011 the proper offsets to access fpregset_t.
7012
ac61d2db
SA
70132014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7014
7015 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7016 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7017 * h8300-tdep.c (setmachinelist): Remove global.
7018 * hppa-tdep.c (hppa_sigtramp): Remove global.
7019 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7020 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7021 * ravenscar-thread.c (update_target_observer): Remove global.
7022 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7023
9d2d0b8b
TT
70242014-02-12 Tom Tromey <tromey@redhat.com>
7025
7026 * common/rsp-low.c: Update comments.
7027 * common/rsp-low.h: Update comments.
7028
a7191e8b
TT
70292014-02-12 Tom Tromey <tromey@redhat.com>
7030
7031 * common/rsp-low.c (convert_ascii_to_int): Remove.
7032 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7033
ff0e980e
TT
70342014-02-12 Tom Tromey <tromey@redhat.com>
7035
7036 * common/rsp-low.h (unhexify): Don't declare.
7037 * common/rsp-low.c (unhexify): Remove.
7038
e9371aff
TT
70392014-02-12 Tom Tromey <tromey@redhat.com>
7040
7041 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7042 * common/rsp-low.c (convert_int_to_ascii): Remove.
7043
971dc0b8
TT
70442014-02-12 Tom Tromey <tromey@redhat.com>
7045
7046 * common/rsp-low.h (hexify): Don't declare.
7047 * common/rsp-low.c (hexify): Remove.
7048
0a822afb
TT
70492014-02-12 Tom Tromey <tromey@redhat.com>
7050
7051 * common/rsp-low.c (hexify): Never take strlen of argument.
7052
9f1b45b0
TT
70532014-02-12 Tom Tromey <tromey@redhat.com>
7054
7055 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7056 * remote.c (extended_remote_run, remote_rcmd)
7057 (remote_download_trace_state_variable, remote_save_trace_data)
7058 (remote_set_trace_notes): Update.
7059 * tracepoint.c (encode_source_string, tfile_write_status)
7060 (tfile_write_uploaded_tsv): Update.
7061
9c3d6531
TT
70622014-02-12 Tom Tromey <tromey@redhat.com>
7063
7064 * tracepoint.c: Include rsp-low.h.
7065 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7066 * remote.c: Include rsp-low.h.
7067 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7068 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7069 (remote_unescape_input): Move to common/rsp-low.c.
7070 * common/rsp-low.h: New file.
7071 * common/rsp-low.c: New file.
7072 * Makefile.in (SFILES): Add common/rsp-low.c.
7073 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7074 (COMMON_OBS): Add rsp-low.o.
7075 (rsp-low.o): New target.
7076
01fd3ea5
TT
70772014-02-12 Tom Tromey <tromey@redhat.com>
7078
7079 * utils.h: Include print-utils.h.
7080 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7081 (int_string, core_addr_to_string, core_addr_to_string_nz)
7082 (hex_string, hex_string_custom): Don't declare.
7083 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7084 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7085 (hex_string_custom, int_string, core_addr_to_string)
7086 (core_addr_to_string_nz, host_address_to_string): Move to
7087 common/print-utils.c.
7088 * common/print-utils.h: New file.
7089 * common/print-utils.c: New file
7090 * Makefile.in (SFILES): Add common/print-utils.c.
7091 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7092 (COMMON_OBS): Add print-utils.o.
7093 (print-utils.o): New target.
7094
9fb50108
TT
70952014-02-12 Tom Tromey <tromey@redhat.com>
7096
7097 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7098
0548b5db
MK
70992014-02-12 Mark Kettenis <kettenis@gnu.org>
7100
7101 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7102
493443a4
MK
71032014-02-12 Mark Kettenis <kettenis@gnu.org>
7104
7105 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7106 if a PT_IO ptrace request returns sucessfully but indicates that 0
7107 bytes were transferred.
7108
706d0883
PA
71092014-02-12 Pedro Alves <palves@redhat.com>
7110 Kevin Buettner <kevinb@redhat.com>
7111
7112 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7113 TYPE_INSTANCE_FLAG_CODE_SPACE.
7114
5caa2f0b
PA
71152014-02-12 Pedro Alves <palves@redhat.com>
7116
7117 * h8300-tdep.c (pseudo_from_raw_register)
7118 (raw_from_pseudo_register): New functions.
7119 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7120 them.
7121
76fd5f74
PA
71222014-02-12 Pedro Alves <palves@redhat.com>
7123
7124 * h8300-tdep.c (h8300_register_sim_regno): New function.
7125 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7126 gdbarch_register_sim_regno hook.
7127
8f008406
SA
71282014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7129
7130 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7131
195abc10
SA
71322014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7133
7134 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7135
93ffa5b9
MK
71362014-02-12 Mark Kettenis <kettenis@gnu.org>
7137
7138 * obsd-tdep.h (obsd_init_abi): New prototype.
7139 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7140 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7141 (obsd_init_abi): New functions.
7142 * i386obsd-tdep.c: Include "obsd-tdep.h".
7143 (i386obsd_init_abi): Call obsd_init_abi.
7144 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7145 (amd64obsd_init_abi): Call obsd_init_abi.
7146 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7147 obsd-tdep.c to gdb_target_obs.
7148
49caec94
JM
71492014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7150
7151 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7152 double float arguments to 16-byte in the argument slots.
7153
e1402065
DE
71542014-02-11 Doug Evans <xdje42@gmail.com>
7155
7156 * configure.ac: Don't crash if pkg-config is not found and guile
7157 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7158 in guile checks.
7159 * configure: Regenerate.
7160
edcc890f
YQ
71612014-02-11 Yao Qi <yao@codesourcery.com>
7162
7163 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7164 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7165 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7166 * gnu-nat.c (gnu_xfer_memory): Likewise.
7167 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7168 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7169 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7170 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7171
9b409511
YQ
71722014-02-11 Yao Qi <yao@codesourcery.com>
7173
7174 * target.h (enum target_xfer_error): Rename to ...
7175 (enum target_xfer_status): ... it. New. All users updated.
7176 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7177 New.
7178 (TARGET_XFER_STATUS_ERROR_P): New macro.
7179 (target_xfer_error_to_string): Remove declaration.
7180 (target_xfer_status_to_string): Declare.
7181 (target_xfer_partial_ftype): Adjust it.
7182 (struct target_ops) <to_xfer_partial>: Return
7183 target_xfer_status. Add argument xfered_len. Update
7184 comments.
7185 * target.c (target_xfer_error_to_string): Rename to ...
7186 (target_xfer_status_to_string): ... it. New. All callers
7187 updated.
7188 (target_read_live_memory): Likewise. Call target_xfer_partial
7189 instead of target_read.
7190 (memory_xfer_live_readonly_partial): Return
7191 target_xfer_status. Add argument xfered_len.
7192 (raw_memory_xfer_partial): Likewise.
7193 (memory_xfer_partial_1): Likewise.
7194 (memory_xfer_partial): Likewise.
7195 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7196 properly. Update debug message.
7197 (default_xfer_partial, current_xfer_partial): Likewise.
7198 (target_write_partial): Likewise.
7199 (target_read_partial): Likewise. All callers updated.
7200 (read_whatever_is_readable): Likewise.
7201 (target_write_with_progress): Likewise.
7202 (target_read_alloc_1): Likewise.
7203
7204 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7205 * auxv.c (procfs_xfer_auxv): Likewise.
7206 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7207 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7208 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7209 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7210 * corefile.c (read_memory): Adjust.
7211 * corelow.c (core_xfer_partial): Likewise.
7212 * ctf.c (ctf_xfer_partial): Likewise.
7213 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7214 updated.
7215 (darwin_xfer_partial): Likewise.
7216 * exec.c (section_table_xfer_memory_partial): Likewise. All
7217 callers updated.
7218 (exec_xfer_partial): Likewise.
7219 * exec.h (section_table_xfer_memory_partial): Update
7220 declaration.
7221 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7222 negative.
7223 (gnu_xfer_partial): Likewise.
7224 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7225 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7226 (ia64_hpux_xfer_solib_got): Likewise.
7227 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7228 type of 'partial_len' to ULONGEST.
7229 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7230 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7231 (linux_nat_xfer_partial): Likewise.
7232 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7233 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7234 * monitor.c (monitor_xfer_memory): Likewise.
7235 (monitor_xfer_partial): Likewise.
7236 * procfs.c (procfs_xfer_partial): Likewise.
7237 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7238 * record-full.c (record_full_xfer_partial): Likewise.
7239 (record_full_core_xfer_partial): Likewise.
7240 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7241 (gdbsim_xfer_partial): Likewise.
7242 * remote.c (remote_write_bytes_aux): Likewise. All callers
7243 updated.
7244 (remote_write_bytes, remote_read_bytes): Likewise. All
7245 callers updated.
7246 (remote_flash_erase): Likewise. All callers updated.
7247 (remote_write_qxfer): Likewise. All callers updated.
7248 (remote_read_qxfer): Likewise. All callers updated.
7249 (remote_xfer_partial): Likewise.
7250 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7251 (rs6000_xfer_shared_libraries): Likewise.
7252 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7253 (sol_thread_xfer_partial): Likewise.
7254 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7255 (sparc_xfer_partial): Likewise.
7256 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7257 updated.
7258 (spu_xfer_partial): Likewise.
7259 * spu-multiarch.c (spu_xfer_partial): Likewise.
7260 * tracepoint.c (tfile_xfer_partial): Likewise.
7261 * windows-nat.c (windows_xfer_memory): Likewise.
7262 (windows_xfer_shared_libraries): Likewise.
7263 (windows_xfer_partial): Likewise.
7264 * valprint.c: Replace 'target_xfer_error' with
7265 'target_xfer_status' in comments.
7266
a8e63083
JB
72672014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7268
7269 Checked in by Joel Brobecker <brobecker@adacore.com>.
7270 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7271
e86b67d3
JB
72722014-02-11 Joel Brobecker <brobecker@adacore.com>
7273
7274 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7275 function parameters.
7276
4b7d1f7f
WN
72772014-02-10 Will Newton <will.newton@linaro.org>
7278
7279 * elfread.c (elf_rel_plt_read): Look for a .got section if
7280 looking up .got.plt fails.
7281 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7282 on address passed to elf_gnu_ifunc_record_cache.
7283 (elf_gnu_ifunc_resolve_addr): Likewise.
7284 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7285
961842b2
JM
72862014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7287
7288 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7289 (X_RETTURN): New macro.
7290 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7291
7292 * sparc64-tdep.c (sparc64_init_abi): Hook
7293 sparc_in_function_epilogue_p.
7294
3f03e7b1
GB
72952014-02-10 Gary Benson <gbenson@redhat.com>
7296
7297 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7298 Rename name_matcher to symbol_matcher.
7299
96f861ef
GB
73002014-02-10 Gary Benson <gbenson@redhat.com>
7301
7302 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7303 Use expand_symtabs_file_matcher_ftype and
7304 expand_symtabs_symbol_matcher_ftype.
7305
ee01b665
JB
73062014-02-10 Joel Brobecker <brobecker@adacore.com>
7307
7308 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7309 (struct ada_symbol_cache): New.
7310 (ada_free_symbol_cache): Forward declare.
7311 (struct ada_pspace_data): New.
7312 (ada_pspace_data_handle): New static global.
7313 (get_ada_pspace_data, ada_pspace_data_cleanup)
7314 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7315 (cache_space, cache): Delete, now folded inside struct
7316 ada_pspace_data.
7317 (ada_get_symbol_cache): New function.
7318 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7319 implementation.
7320 (_initialize_ada_language): Remove initialization of cache_space.
7321 Move call to observer_attach_inferior_exit up, grouping it
7322 with the other observer registrations inside this function.
7323 Rename command to be more general. Add call to
7324 register_program_space_data_with_cleanup.
7325
143adbbf
JB
73262014-02-10 Joel Brobecker <brobecker@adacore.com>
7327
7328 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7329 ada_new_objfile_observer.
7330 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7331 (_initialize_tasks): Update uses of ada_new_objfile_observer
7332 and ada_tasks_normal_stop_observer.
7333
aa4fb036
JB
73342014-02-10 Joel Brobecker <brobecker@adacore.com>
7335
7336 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7337 returned by the 'Length attribute to integer.
7338
9dee8cc6
JB
73392014-02-10 Joel Brobecker <brobecker@adacore.com>
7340
7341 * ada-lang.c (_initialize_ada_language): Initialize
7342 cache_space obstack.
7343
3d9434b5
JB
73442014-02-10 Joel Brobecker <brobecker@adacore.com>
7345
7346 * ada-lang.c (HASH_SIZE): New macro.
7347 (struct cache_entry): New type.
7348 (cache_space, cache): New static globals.
7349 (ada_clear_symbol_cache, find_entry): New functions.
7350 (lookup_cached_symbol, cache_symbol): Implement.
7351 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7352 (_initialize_ada_language): Attach ada_new_objfile_observer
7353 and ada_free_objfile_observer.
7354
f0c5f9b2
JB
73552014-02-10 Joel Brobecker <brobecker@adacore.com>
7356
7357 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7358 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7359 struct block * parameter.
7360 (ada_lookup_symbol_list_worker): Constify local variable "block".
7361 Remove cast which is no longer necessary.
7362
ed3ef339
DE
73632014-02-10 Doug Evans <xdje42@gmail.com>
7364
7365 Add Guile as an extension language.
7366 * NEWS: Mention Guile scripting.
7367 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7368 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7369 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7370 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7371 (CLIBS): Add GUILE_LIBS.
7372 (install-guile): New rule.
7373 (guile.o): New rule.
7374 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7375 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7376 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7377 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7378 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7379 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7380 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7381 * configure.ac: New option --with-guile.
7382 * configure: Regenerate.
7383 * config.in: Regenerate.
7384 * auto-load.c: Remove #include "python/python.h". Add #include
7385 "gdb/section-scripts.h".
7386 (source_section_scripts): Handle Guile scripts.
7387 (_initialize_auto_load): Add name of Guile objfile script to
7388 scripts-directory help text.
7389 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7390 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7391 (struct breakpoint): New member scm_bp_object.
7392 * defs.h (enum command_control_type): New value guile_control.
7393 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7394 "extension.h".
7395 (show_user): Update comment.
7396 (_initialize_cli_cmds): Update help text for "show user". Update help
7397 text for max-user-call-depth.
7398 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7399 "extension.h".
7400 (multi_line_command_p): Add guile_control.
7401 (print_command_lines): Handle guile_control.
7402 (execute_control_command, recurse_read_control_structure): Ditto.
7403 (process_next_line): Recognize "guile" commands.
7404 * disasm.c (gdb_disassemble_info): Make non-static.
7405 * disasm.h: #include "dis-asm.h".
7406 (struct gdbarch): Add forward decl.
7407 (gdb_disassemble_info): Declare.
7408 * extension.c: #include "guile/guile.h".
7409 (extension_languages): Add guile.
7410 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7411 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7412 * gdbtypes.c (get_unsigned_type_max): New function.
7413 (get_signed_type_minmax): New function.
7414 * gdbtypes.h (get_unsigned_type_max): Declare.
7415 (get_signed_type_minmax): Declare.
7416 * guile/README: New file.
7417 * guile/guile-internal.h: New file.
7418 * guile/guile.c: New file.
7419 * guile/guile.h: New file.
7420 * guile/scm-arch.c: New file.
7421 * guile/scm-auto-load.c: New file.
7422 * guile/scm-block.c: New file.
7423 * guile/scm-breakpoint.c: New file.
7424 * guile/scm-disasm.c: New file.
7425 * guile/scm-exception.c: New file.
7426 * guile/scm-frame.c: New file.
7427 * guile/scm-gsmob.c: New file.
7428 * guile/scm-iterator.c: New file.
7429 * guile/scm-lazy-string.c: New file.
7430 * guile/scm-math.c: New file.
7431 * guile/scm-objfile.c: New file.
7432 * guile/scm-ports.c: New file.
7433 * guile/scm-pretty-print.c: New file.
7434 * guile/scm-safe-call.c: New file.
7435 * guile/scm-string.c: New file.
7436 * guile/scm-symbol.c: New file.
7437 * guile/scm-symtab.c: New file.
7438 * guile/scm-type.c: New file.
7439 * guile/scm-utils.c: New file.
7440 * guile/scm-value.c: New file.
7441 * guile/lib/gdb.scm: New file.
7442 * guile/lib/gdb/boot.scm: New file.
7443 * guile/lib/gdb/experimental.scm: New file.
7444 * guile/lib/gdb/init.scm: New file.
7445 * guile/lib/gdb/iterator.scm: New file.
7446 * guile/lib/gdb/printing.scm: New file.
7447 * guile/lib/gdb/types.scm: New file.
7448 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7449 (VPATH): Add $(GUILE_SRCDIR).
7450 (GUILE_DIR): New variable.
7451 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7452 (all): Add stamp-guile dependency.
7453 (stamp-guile): New rule.
7454 (clean-guile, install-guile, uninstall-guile): New rules.
7455 (install-only): Add install-guile dependency.
7456 (uninstall): Add uninstall-guile dependency.
7457 (clean): Add clean-guile dependency.
7458
ac020ec5
DE
74592014-02-09 Doug Evans <xdje42@gmail.com>
7460
7461 Revert this patch (which I approved, mea culpa).
7462
7463 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7464
7465 * Makefile.in (all-lib): Remove.
7466 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7467
2a081c59
JK
74682014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7469
7470 Fix Python stack corruption.
7471 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7472 gdb_py_longest.
7473
0a6bd22d
MK
74742014-02-08 Mark Kettenis <kettenis@gnu.org>
7475
7476 * Makefile.in (all-lib): Remove.
7477 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7478
1a860409
DE
74792014-02-07 Doug Evans <dje@google.com>
7480
7481 * extension-priv.h (extension_language_script_ops): Add comment.
7482 (extension_language_ops): Add comment.
caf5a491 7483 (active_ext_lang_state): Fix typo in comment.
1a860409 7484
d137e6dc
PA
74852014-02-07 Pedro Alves <palves@redhat.com>
7486
0dcb32c3 7487 PR breakpoints/16292
d137e6dc
PA
7488 * infrun.c (handle_signal_stop) <signal arrives while stepping
7489 over a breakpoint>: Switch back to the stepping thread.
7490
ce6d0892
YQ
74912014-02-07 Yao Qi <yao@codesourcery.com>
7492
7493 * target.c (target_xfer_partial): Return zero if LEN is zero.
7494
2ed4b548
YQ
74952014-02-07 Yao Qi <yao@codesourcery.com>
7496
7497 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7498 (ld_so_xfer_auxv): Likewise.
7499 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7500 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7501 * corelow.c (core_xfer_partial): Likewise.
7502 * ctf.c (ctf_xfer_partial): Likewise.
7503 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7504 (darwin_xfer_partial): Likewise.
7505 * exec.c (exec_xfer_partial): Likewise.
7506 * gnu-nat.c (gnu_xfer_partial): Likewise.
7507 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7508 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7509 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7510 * linux-nat.c (linux_xfer_siginfo): Likewise.
7511 (linux_proc_xfer_spu): Likewise.
7512 * procfs.c (procfs_xfer_partial): Likewise.
7513 * record-full.c (record_full_xfer_partial): Likewise.
7514 (record_full_core_xfer_partial): Likewise.
7515 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7516 * remote.c (remote_write_qxfer): Likewise.
7517 (remote_write_qxfer, remote_read_qxfer): Likewise.
7518 (remote_xfer_partial): Likewise.
7519 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7520 (rs6000_xfer_shared_libraries): Likewise.
7521 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7522 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7523 (spu_xfer_partial): Likewise.
7524 * target.c (memory_xfer_partial_1): Likewise.
7525 * tracepoint.c (tfile_xfer_partial): Likewise.
7526 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7527 (windows_xfer_partial): Likewise.
7528
c09f20e4
YQ
75292014-02-07 Yao Qi <yao@codesourcery.com>
7530
7531 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7532 comments.
7533 (core_xfer_shared_libraries_aix): Likewise.
7534 * gdbarch.c, gdbarch.h: Regenerated.
7535 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7536 ULONGEST. Change 'len_avail' type to ULONGEST.
7537 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7538 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7539 declaration.
7540 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7541
8635b3bf
YQ
75422014-02-07 Yao Qi <yao@codesourcery.com>
7543
7544 * corefile.c (memory_error): Get 'exception' from ERR and pass
7545 'exception' to throw_error.
7546
6dddc817
DE
75472014-02-06 Doug Evans <xdje42@gmail.com>
7548
7549 * configure.ac (libpython checking): Remove all but python.o from
7550 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7551 * configure: Regenerate.
7552
7553 * Makefile.in (SFILES): Add extension.c.
7554 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7555 (COMMON_OBS): Add extension.o.
7556 * extension.h: New file.
7557 * extension-priv.h: New file.
7558 * extension.c: New file.
7559
7560 * python/python-internal.h: #include "extension.h".
7561 (gdbpy_auto_load_enabled): Declare.
7562 (gdbpy_apply_val_pretty_printer): Declare.
7563 (gdbpy_apply_frame_filter): Declare.
7564 (gdbpy_preserve_values): Declare.
7565 (gdbpy_breakpoint_cond_says_stop): Declare.
7566 (gdbpy_breakpoint_has_cond): Declare.
7567 (void source_python_script_for_objfile): Delete.
7568 * python/python.c: #include "extension-priv.h".
7569 Delete inclusion of "observer.h".
7570 (extension_language_python): Moved here and renamed from
7571 script_language_python in py-auto-load.c.
7572 Redefined to be of type extension_language_defn.
7573 (python_extension_script_ops): New global.
7574 (python_extension_ops): New global.
7575 (struct python_env): New member previous_active.
7576 (restore_python_env): Call restore_active_ext_lang.
7577 (ensure_python_env): Call set_active_ext_lang.
7578 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7579 New arg extlang.
7580 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7581 New arg extlang.
7582 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7583 New arg extlang.
7584 (gdbpy_eval_from_control_command): Renamed from
7585 eval_python_from_control_command, made static. New arg extlang.
7586 (gdbpy_source_script) Renamed from source_python_script, made static.
7587 New arg extlang.
7588 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7589 result to int. New arg extlang.
7590 (gdbpy_source_objfile_script): Renamed from
7591 source_python_script_for_objfile, made static. New arg extlang.
7592 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7593 static. New args extlang, extlang_printers. Change result type to
7594 "void".
7595 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7596 static. New arg extlang. Rename arg printers to extlang_printers
7597 and change type to ext_lang_type_printers *.
7598 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7599 static. Replace argument arg with extlang, extlang_printers.
7600 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7601 (!HAVE_PYTHON, source_python_script): Delete.
7602 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7603 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7604 (!HAVE_PYTHON, start_type_printers): Delete.
7605 (!HAVE_PYTHON, apply_type_printers): Delete.
7606 (!HAVE_PYTHON, free_type_printers): Delete.
7607 (_initialize_python): Delete call to observer_attach_before_prompt.
7608 (finalize_python): Set/restore active extension language.
7609 (gdbpy_finish_initialization) Renamed from
7610 finish_python_initialization, made static. New arg extlang.
7611 (gdbpy_initialized): New function.
7612 * python/python.h: #include "extension.h". Delete #include
7613 "value.h", "mi/mi-cmds.h".
7614 (extension_language_python): Declare.
7615 (GDBPY_AUTO_FILE_NAME): Delete.
7616 (enum py_bt_status): Moved to extension.h and renamed to
7617 ext_lang_bt_status.
7618 (enum frame_filter_flags): Moved to extension.h.
7619 (enum py_frame_args): Moved to extension.h and renamed to
7620 ext_lang_frame_args.
7621 (finish_python_initialization): Delete.
7622 (eval_python_from_control_command): Delete.
7623 (source_python_script): Delete.
7624 (apply_val_pretty_printer): Delete.
7625 (apply_frame_filter): Delete.
7626 (preserve_python_values): Delete.
7627 (gdbpy_script_language_defn): Delete.
7628 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7629 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7630
7631 * auto-load.c: #include "extension.h".
7632 (GDB_AUTO_FILE_NAME): Delete.
7633 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7634 (script_language_gdb): Delete, moved to extension.c and renamed to
7635 extension_language_gdb.
7636 (source_gdb_script_for_objfile): Delete.
7637 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7638 (loaded_script): Change type of language member to
7639 struct extension_language_defn *.
7640 (init_loaded_scripts_info): Initialize
7641 unsupported_script_warning_printed.
7642 (maybe_add_script): Make static. Change type of language arg to
7643 struct extension_language_defn *.
7644 (clear_section_scripts): Reset unsupported_script_warning_printed.
7645 (auto_load_objfile_script_1): Rewrite to use extension language API.
7646 (auto_load_objfile_script): Make public. Remove support-compiled-in
7647 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7648 (source_section_scripts): Rewrite to use extension language API.
7649 (load_auto_scripts_for_objfile): Rewrite to use
7650 auto_load_scripts_for_objfile.
7651 (collect_matching_scripts_data): Change type of language member to
7652 struct extension_language_defn *.
7653 (auto_load_info_scripts): Change type of language arg to
7654 struct extension_language_defn *.
7655 (unsupported_script_warning_print): New function.
7656 (script_not_found_warning_print): Make static.
7657 (_initialize_auto_load): Rewrite construction of scripts-directory
7658 help.
7659 * auto-load.h (struct objfile): Add forward decl.
7660 (struct script_language): Delete.
7661 (struct auto_load_pspace_info): Add forward decl.
7662 (struct extension_language_defn): Add forward decl.
7663 (maybe_add_script): Delete.
7664 (auto_load_objfile_script): Declare.
7665 (script_not_found_warning_print): Delete.
7666 (auto_load_info_scripts): Update prototype.
7667 (auto_load_gdb_scripts_enabled): Declare.
7668 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7669 auto_load_python_scripts_enabled and made public.
7670 (script_language_python): Delete, moved to python.c.
7671 (gdbpy_script_language_defn): Delete.
7672 (info_auto_load_python_scripts): Update to use
7673 extension_language_python.
7674
7675 * breakpoint.c (condition_command): Replace call to
7676 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7677 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7678 with call to breakpoint_ext_lang_cond_says_stop.
7679 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7680 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7681 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7682 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7683 New arg slang.
7684 (local_setattro): Print name of extension language with existing
7685 stop condition.
7686
7687 * valprint.c (val_print, value_print): Update to call
7688 apply_ext_lang_val_pretty_printer.
7689 * cp-valprint.c (cp_print_value): Update call to
7690 apply_ext_lang_val_pretty_printer.
7691 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7692 (gdbpy_apply_val_pretty_printer): Renamed from
7693 apply_val_pretty_printer. New arg extlang.
7694 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7695
7696 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7697 extension language API.
7698 * cli/cli-script.c (execute_control_command): Update to call
7699 eval_ext_lang_from_control_command.
7700
7701 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7702 enum ext_lang_bt_status values. Update call to
7703 apply_ext_lang_frame_filter.
7704 (mi_cmd_stack_list_locals): Ditto.
7705 (mi_cmd_stack_list_args): Ditto.
7706 (mi_cmd_stack_list_variables): Ditto.
7707 * mi/mi-main.c: Delete #include "python/python-internal.h".
7708 Add #include "extension.h".
7709 (mi_cmd_list_features): Replace reference to python internal variable
7710 gdb_python_initialized with call to ext_lang_initialized_p.
7711
7712 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7713 Update to use enum ext_lang_frame_args. Update to call
7714 apply_ext_lang_frame_filter.
7715 * python/py-framefilter.c (extract_sym): Update to use enum
7716 ext_lang_bt_status.
7717 (extract_value, py_print_type, py_print_value): Ditto.
7718 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7719 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7720 (py_print_frame): Ditto.
7721 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7722 New arg extlang. Update to use enum ext_lang_bt_status.
7723
7724 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7725 finish_python_initialization. Replace with call to
7726 finish_ext_lang_initialization.
7727
7728 * typeprint.c (do_free_global_table): Update to call
7729 free_ext_lang_type_printers.
7730 (create_global_typedef_table): Update to call
7731 start_ext_lang_type_printers.
7732 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7733 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7734 (type_print_options): Change type of global_printers from "void *"
7735 to "struct ext_lang_type_printers *".
7736
7737 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7738 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7739 (gdbpy_preserve_values): Renamed from preserve_python_values.
7740 New arg extlang.
7741 (!HAVE_PYTHON, preserve_python_values): Delete.
7742
7743 * utils.c (quit_flag): Delete, moved to extension.c.
7744 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7745 extension.c.
7746
7747 * eval.c: Delete #include "python/python.h".
7748 * main.c: Delete #include "python/python.h".
7749
7750 * defs.h: Update comment.
7751
6af79985
JB
77522014-02-06 Joel Brobecker <brobecker@adacore.com>
7753
7754 GDB 7.7 released.
7755
12c5175d
MK
77562014-02-05 Mark Kettenis <kettenis@gnu.org>
7757
7758 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7759 defined.
7760
8dc5b319
YQ
77612014-02-05 Yao Qi <yao@codesourcery.com>
7762
7763 * remote.c (remote_pass_signals): Remove local 'buf' and use
7764 rs->buf.
7765 (remote_program_signals): Likewise.
7766
de7b2893
YQ
77672014-02-05 Yao Qi <yao@codesourcery.com>
7768
7769 * ctf.c: Include "inferior.h" and "gdbthread.h".
7770 (CTF_PID): A new macro.
7771 (ctf_open): Call inferior_appeared and add_thread_silent.
7772 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7773 (ctf_thread_alive): New function.
7774 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7775
66d032ac
YQ
77762014-02-05 Yao Qi <yao@codesourcery.com>
7777
7778 Revert this patch:
7779
7780 2013-05-24 Yao Qi <yao@codesourcery.com>
7781
7782 * tracepoint.c (TFILE_PID): Remove.
7783 (tfile_open): Don't add thread and inferior.
7784 (tfile_close): Don't set 'inferior_ptid'. Don't call
7785 exit_inferior_silent.
7786 (tfile_thread_alive): Remove.
7787 (init_tfile_ops): Don't set field 'to_thread_alive' of
7788 tfile_ops.
7789
f4ccffad
CE
77902014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7791
7792 * remote.c (remote_start_remote): Call remote_check_symbols even
7793 if only symbol-file (not file) has been given.
7794
591a12a1
UW
77952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7796
7797 * gdbarch.sh (skip_entrypoint): New callback.
7798 * gdbarch.c, gdbarch.h: Regenerate.
7799 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7800 * infrun.c (fill_in_stop_func): Likewise.
7801 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7802 (ppc_elfv2_elf_make_msymbol_special): New function.
7803 (ppc_elfv2_skip_entrypoint): Likewise.
7804 (ppc_linux_init_abi): Install them for ELFv2.
7805
cc0e89c5
UW
78062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7807
7808 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7809 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7810 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7811 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7812 structures returned in GPRs.
7813
52f548e4
UW
78142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7815
7816 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7817 offset to the stack parameter list for the ELFv2 ABI.
7818
d4094b6a
UW
78192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7820
7821 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7822 set_gdbarch_convert_from_func_ptr_addr and
7823 set_gdbarch_elf_make_msymbol_special for ELFv1.
7824 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7825 function descriptors on ELFv1.
7826 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7827 set up r12 at function entry.
7828
cd453cd0
UW
78292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7830
7831 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7832 (struct gdbarch_tdep): New member elf_abi.
7833
7834 * rs6000-tdep.c: Include "elf/ppc64.h".
7835 (rs6000_gdbarch_init): Detect ELF ABI version.
7836
0ff3e01f
UW
78372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7838
7839 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7840 within a register pair holding a DFP 128-bit value on little-endian.
7841 (ppc64_sysv_abi_return_value_base): Likewise.
7842 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7843 (dfp_pseudo_register_write): Likewise.
7844
5b757e5d
UW
78452014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7846
7847 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7848 offset on little-endian when passing _Decimal32.
7849 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7850
084ee545
UW
78512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7852
7853 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7854 of the overlapped FP register within the VSX register on little-
7855 endian platforms.
7856 (efpr_pseudo_register_write): Likewise.
7857
d63167af
UW
78582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7859
7860 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7861 offset on little-endian when passing small structures.
7862
e765b44c
UW
78632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7864
7865 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7866 (struct ppc64_sysv_argpos): New data structure.
7867 (ppc64_sysv_abi_push_float): Remove.
7868 (ppc64_sysv_abi_push_val): New function.
7869 (ppc64_sysv_abi_push_integer): Likewise.
7870 (ppc64_sysv_abi_push_freg): Likewise.
7871 (ppc64_sysv_abi_push_vreg): Likewise.
7872 (ppc64_sysv_abi_push_param): Likewise.
7873 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7874 (ppc64_sysv_abi_return_value_base): New function.
7875 (ppc64_sysv_abi_return_value): Refactor to use it.
7876
36c24d95
UW
78772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
7878
7879 * NEWS: Document new target powerpc64le-*-linux*.
7880
26fd9228
MK
78812014-02-04 Mark Kettenis <kettenis@gnu.org>
7882
7883 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7884 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7885 core dumps.
7886 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7887 register set used in ELF core dumps. Add floating-point register set.
7888
c5bb7362
KB
78892014-02-03 Kevin Buettner <kevinb@redhat.com>
7890
7891 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7892 dwarf2_to_gdb[] table using symbolic constants. Adjust
7893 penultimate entry from number representing the PC register
7894 to symbolic constant representing the MDR register. Add
7895 constant for the PC register to the end of the table.
7896
af09351e
MK
78972014-02-03 Mark Kettenis <kettenis@gnu.org>
7898
7899 * bsd-kvm.c: Include <sys/param.h>
7900
8507e05d
MK
79012014-02-03 Mark Kettenis <kettenis@gnu.org>
7902
7903 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7904
ae56bfb8
JB
79052014-01-31 Joel Brobecker <brobecker@adacore.com>
7906
7907 * ada-lang.h (clear_ada_sym_cache): Delete.
7908
718ee4dc
UW
79092014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
7910
7911 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7912
401e27fd
JM
79132014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7914
7915 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7916 the sigreturn register save area only if the syscall is
7917 sigreturn.
7918
a7c88acd
JB
79192014-01-29 Joel Brobecker <brobecker@adacore.com>
7920
7921 * valops.c (value_slice): Minor reformatting.
7922
fa0079ea
UW
79232014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
7924
7925 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7926
c6044dd1
JB
79272014-01-28 Joel Brobecker <brobecker@adacore.com>
7928
7929 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7930 New static globals.
7931 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7932 (ada_ignore_descriptive_types_p): New static global.
7933 (find_parallel_type_by_descriptive_type): Return immediately
7934 if ada_ignore_descriptive_types_p is set.
7935 (_initialize_ada_language): Register new commands "maintenance
7936 set ada", "maintenance show ada", "maintenance set ada
7937 ignore-descriptive-types" and "maintenance show ada
7938 ignore-descriptive-types".
7939 * NEWS: Add entry for new "maint ada set/show
7940 ignore-descriptive-types" commands.
7941
568e808b
MM
79422014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7943
7944 * record-btrace.c (record_btrace_close): Call btrace_teardown
7945 for all threads.
7946
467d141b
JB
79472014-01-27 Joel Brobecker <brobecker@adacore.com>
7948
7949 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7950 "ui-out.h".
7951
fb151210
JB
79522014-01-27 Joel Brobecker <brobecker@adacore.com>
7953
7954 * ada-typeprint (type_is_full_subrange_of_target_type):
7955 New function.
7956 (print_range): Add parameter bounds_prefered_p. If not set,
7957 try printing range types using the name of their base type.
7958 (print_range_type): Add parameter bounds_prefered_p.
7959 Use it in call to print_range.
7960 (print_array_type, ada_print_type): Update calls to print_range
7961 and print_range_type.
7962
aba02109
JB
79632014-01-27 Joel Brobecker <brobecker@adacore.com>
7964
7965 * ada-typeprint.c (print_array_type, print_choices, print_range)
7966 (print_range_bound, print_dynamic_range_bound, print_range_type):
7967 Remove declaration.
7968
e62e21fd
JB
79692014-01-27 Joel Brobecker <brobecker@adacore.com>
7970
7971 * ada-typeprint.c (print_range): Add missing empty line
7972 after local declaration.
7973
859cf5d1
JB
79742014-01-27 Joel Brobecker <brobecker@adacore.com>
7975
7976 * ada-valprint.c (print_optional_low_bound): Get index_type's
7977 target type for as long as it is a TYPE_CODE_RANGE.
7978
25790f6f
JB
79792014-01-27 Joel Brobecker <brobecker@adacore.com>
7980
7981 * procfs.c (procfs_make_note_section): Remove assertion and
7982 associated comment.
7983
6b6aa828
YQ
79842014-01-24 Yao Qi <yao@codesourcery.com>
7985
7986 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7987 * corelow.c (get_core_siginfo): Likewise.
7988
5d6df423
YQ
79892014-01-24 Yao Qi <yao@codesourcery.com>
7990
7991 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7992 ULONGEST. Don't check 'len' is negative.
7993 (remote_write_bytes): Change type of 'len' to ULONGEST.
7994
83b645b8
TT
79952014-01-23 Tom Tromey <tromey@redhat.com>
7996
7997 PR python/16485:
7998 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7999 Handle exception from frame.block.
8000 (FrameVars.fetch_frame_locals): Likewise.
8001
0740f8d8
TT
80022014-01-23 Tom Tromey <tromey@redhat.com>
8003
8004 PR python/16487:
8005 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8006 on a NULL pointer. Move "goto error" to correct place.
8007
21909fa1
TT
80082014-01-23 Tom Tromey <tromey@redhat.com>
8009
8010 PR python/16491:
8011 * python/py-framefilter.c (apply_frame_filter): Call
8012 ensure_python_env after computing gdbarch.
8013
17fde6d0
YQ
80142014-01-23 Yao Qi <yao@codesourcery.com>
8015
8016 * target.c (raw_memory_xfer_partial): Change argument type
8017 from void * to gdb_byte *.
8018 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8019
87ce2a04
DE
80202014-01-22 Doug Evans <dje@google.com>
8021
8022 New gdbserver option --debug-format=timestamp.
8023 * NEWS: Mention it.
8024
237b092b
AA
80252014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8026
8027 * syscalls/s390x-linux.xml: New file.
8028 * syscalls/s390-linux.xml: New file.
8029 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8030 (XML_SYSCALL_FILENAME_S390X): Likewise.
8031 (op_svc): New enum value for SVC opcode.
8032 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8033 (s390_linux_get_syscall_number): New function.
8034 (s390_gdbarch_init): Register '*get_syscall_number' and the
8035 syscall xml file name.
8036 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8037 "s390-linux.xml" and "s390x-linux.xml".
8038 * NEWS: Announce new feature.
8039
54bff650
BS
80402014-01-22 Baruch Siach <baruch@tkos.co.il>
8041
8042 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8043
14e361d7
PA
80442014-01-22 Pedro Alves <palves@redhat.com>
8045
8046 * xtensa-config.c: Include defs.h.
8047
46bbb3ed
JB
80482014-01-22 Joel Brobecker <brobecker@adacore.com>
8049
8050 * common/common-utils.h: Add "ARI:" comment beside __func__
8051 reference.
8052
3a80edfc
JB
80532014-01-22 Joel Brobecker <brobecker@adacore.com>
8054
8055 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8056 documentation a bit.
8057
4869db5e
RM
80582014-01-21 Roland McGrath <mcgrathr@google.com>
8059
8060 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8061 * configure: Regenerate.
8062 * aclocal.m4: Regenerate.
8063 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8064 New substituted variables.
8065 (install-strip): New target.
8066 (INSTALL_SCRIPT): New substituted variable.
8067 (FLAGS_TO_PASS): Add it.
8068 (install-only): Use $(INSTALL_SCRIPT) rather than
8069 $(INSTALL_PROGRAM) for gcore.
8070
9ea4267d
TT
80712014-01-20 Tom Tromey <tromey@redhat.com>
8072
8073 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8074 together.
8075
1f2bdf09
TT
80762014-01-20 Tom Tromey <tromey@redhat.com>
8077
8078 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8079 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8080 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8081 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8082 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8083 (struct cmd_list_element) <flags>: Remove.
8084 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8085 doc_allocated>: New fields.
8086 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8087 bitfields.
8088 * maint.c (maintenance_do_deprecate): Update.
8089 * top.c (execute_command): Update.
8090
e671835b
BS
80912014-01-20 Baruch Siach <baruch@tkos.co.il>
8092
8093 * xtensa-linux-nat.c: Include asm/ptrace.h.
8094
50367cd2
IB
80952014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8096
8097 * Makefile.in (SFILES): Add d-support.c.
8098 (COMMON_OBS): Add d-support.o.
8099 * d-lang.h (d_parse_symbol): Add comment, now defined in
8100 d-support.c.
8101 * d-lang.c (parse_call_convention)
8102 (parse_attributes, parse_function_types)
8103 (parse_function_args, parse_type, parse_identifier)
8104 (call_convention_p, d_parse_symbol): Move functions to ...
8105 * d-support.c: ... New file.
8106
ec9f644a
IB
81072014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8108
8109 * d-lang.h (d_parse_symbol): Add declaration.
8110 * d-lang.c (extract_identifiers)
8111 (extract_type_info): Remove functions.
8112 (parse_call_convention, parse_attributes)
8113 (parse_function_types, parse_function_args)
8114 (parse_type, parse_identifier, call_convention_p)
8115 (d_parse_symbol): New functions.
8116 (d_demangle): Use d_parse_symbol to demangle D symbols.
8117
94b1b47e
IB
81182014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8119
8120 * d-lang.h (struct builtin_d_type): New data type.
8121 (builtin_d_type): Add declaration.
8122 * d-lang.c (d_language_arch_info, build_d_types)
8123 (builtin_d_type): New functions.
8124 (enum d_primitive_types): New data type.
8125 (d_language_defn): Change c_language_arch_info to
8126 d_language_arch_info.
8127 (d_type_data): New static variable.
8128 (_initialize_d_language): Initialize d_type_data.
8129
63778547
IB
81302014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8131
8132 * d-lang.h (d_main_name): Add declaration.
8133 * d-lang.c (d_main_name): New function.
8134 * symtab.c (find_main_name): Add call to d_main_name.
8135
3271ba66
IB
81362014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8137
8138 * d-lang.c (d_language_defn): Change macro_expansion_c to
8139 macro_expansion_no.
8140
d36b3012
IB
81412014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8142
8143 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8144
c90a6fb7
SDJ
81452014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8146
8147 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8148 gdb_exception" declaration.
8149 * remote.c (getpkt_or_notif_sane): Likewise.
8150
749234e5
DE
81512014-01-17 Doug Evans <dje@google.com>
8152
8153 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8154 function, contents of dirnames_to_char_ptr_vec_append moved here.
8155 (delim_string_to_char_ptr_vec): New function.
8156 (dirnames_to_char_ptr_vec_append): Rewrite.
8157 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8158
df049a58
DE
81592014-01-17 Doug Evans <dje@google.com>
8160
8161 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8162 and moved here ...
8163 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8164 #include "common-utils.h".
8165 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8166 * common/vec.h (VEC_ASSERT_PASS): Update.
8167 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8168 (MACH_CHECK_ERROR): Update.
8169
69f97648
SM
81702014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8171
8172 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8173 comments.
8174 * gdbarch.h: Regenerate.
8175
98b1cfdc
TT
81762014-01-16 Tom Tromey <tromey@redhat.com>
8177
8178 * value.c (struct value) <regnum>: Move earlier.
8179
77a19445
TT
81802014-01-16 Tom Tromey <tromey@redhat.com>
8181
8182 * remote.c (extended_remote_create_inferior): Rename from
8183 extended_remote_create_inferior_1. Add "ops" argument. Remove
8184 old implementation.
8185
62261490
PA
81862014-01-16 Pedro Alves <palves@redhat.com>
8187
8188 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8189 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8190 the backchain.
8191
4d65956b
DE
81922014-01-16 Doug Evans <dje@google.com>
8193
8194 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8195
52834460
MM
81962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8197
8198 * btrace.h (btrace_thread_flag): New.
8199 (struct btrace_thread_info) <flags>: New.
8200 * record-btrace.c (record_btrace_resume_thread)
8201 (record_btrace_find_thread_to_move, btrace_step_no_history)
8202 (btrace_step_stopped, record_btrace_start_replaying)
8203 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8204 (record_btrace_find_resume_thread): New.
8205 (record_btrace_resume, record_btrace_wait): Extend.
8206 (record_btrace_can_execute_reverse): New.
8207 (record_btrace_open): Fail in non-stop mode.
8208 (record_btrace_set_replay): Split into this, ...
8209 (record_btrace_stop_replaying): ... this, ...
8210 (record_btrace_clear_histories): ... and this.
8211 (init_record_btrace_ops): Init to_can_execute_reverse.
8212 * NEWS: Announce it.
8213
118e6252
MM
82142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8215
8216 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8217 (forward_target_decr_pc_after_break)
8218 (target_decr_pc_after_break): New.
8219 * target.c (forward_target_decr_pc_after_break)
8220 (target_decr_pc_after_break): New.
8221 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8222 instead of gdbarch_decr_pc_after_break.
8223 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8224 instead of gdbarch_decr_pc_after_break.
8225 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8226 instead of gdbarch_decr_pc_after_break.
8227 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8228 instead of gdbarch_decr_pc_after_break.
8229 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8230 instead of gdbarch_decr_pc_after_break.
8231 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8232 instead of gdbarch_decr_pc_after_break.
8233
6e07b1d2
MM
82342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8235
8236 * btrace.c: Include regcache.h.
8237 (btrace_add_pc): New.
8238 (btrace_enable): Call btrace_add_pc.
8239 (btrace_is_empty): New.
8240 * btrace.h (btrace_is_empty): New.
8241 * record-btrace.c (require_btrace, record_btrace_info): Call
8242 btrace_is_empty.
8243
969c39fb
MM
82442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8245
8246 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8247 Support delta reads.
8248 (linux_disable_btrace): Change return type.
8249 * common/linux-btrace.h (linux_read_btrace): Change parameters
8250 and return type to allow error reporting. Update users.
8251 (linux_disable_btrace): Change return type. Update users.
8252 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8253 New.
8254 (btrace_error): New.
8255 (btrace_block) <begin>: Comment on BEGIN == 0.
8256 * btrace.c (btrace_compute_ftrace): Start from the end of
8257 the current trace.
8258 (btrace_stitch_trace, btrace_clear_history): New.
8259 (btrace_fetch): Read delta trace, return if replaying.
8260 (btrace_clear): Move clear history code to btrace_clear_history.
8261 (parse_xml_btrace): Throw an error if parsing failed.
8262 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8263 and return type to allow error reporting.
8264 (target_read_btrace): Change parameters and return type to allow
8265 error reporting.
8266 * target.c (target_read_btrace): Update.
8267 * remote.c (remote_read_btrace): Support delta reads. Pass
8268 errors on.
8269 * NEWS: Announce it.
8270
0b722aec
MM
82712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8272
8273 * record.h (record_btrace_frame_unwind)
8274 (record_btrace_tailcall_frame_unwind): New declarations.
8275 * dwarf2-frame: Include record.h
8276 (dwarf2_frame_cfa): Throw an error for btrace frames.
8277 * record-btrace.c: Include hashtab.h.
8278 (btrace_get_bfun_name): New.
8279 (btrace_call_history): Call btrace_get_bfun_name.
8280 (struct btrace_frame_cache): New.
8281 (bfcache): New.
8282 (bfcache_hash, bfcache_eq, bfcache_new): New.
8283 (btrace_get_frame_function): New.
8284 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8285 (record_btrace_frame_this_id): Compute own id.
8286 (record_btrace_frame_prev_register): Provide PC, throw_error
8287 for all other registers.
8288 (record_btrace_frame_sniffer): Detect btrace frames.
8289 (record_btrace_tailcall_frame_sniffer): New.
8290 (record_btrace_frame_dealloc_cache): New.
8291 (record_btrace_frame_unwind): Add new functions.
8292 (record_btrace_tailcall_frame_unwind): New.
8293 (_initialize_record_btrace): Allocate cache.
8294 * btrace.c (btrace_clear): Call reinit_frame_cache.
8295 * NEWS: Announce it.
8296
066ce621
MM
82972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8298
8299 * record-btrace.c (record_btrace_set_replay)
8300 (record_btrace_goto_begin, record_btrace_goto_end)
8301 (record_btrace_goto): New.
8302 (init_record_btrace_ops): Initialize them.
8303 * NEWS: Announce it.
8304
e2887aa3
MM
83052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8306
8307 * record-btrace.c (record_btrace_find_new_threads)
8308 (record_btrace_thread_alive): New.
8309 (init_record_btrace_ops): Initialize to_find_new_threads and
8310 to_thread_alive.
8311
b2f4cfde
MM
83122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8313
8314 * record-btrace.c (record_btrace_resume): New.
8315 (record_btrace_wait): New.
8316 (init_record_btrace_ops): Initialize to_wait and to_resume.
8317
633785ff
MM
83182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8319
8320 * record-btrace.c (record_btrace_xfer_partial)
8321 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8322 (record_btrace_allow_memory_access): New.
8323 (init_record_btrace_ops): Initialize new methods.
8324 * target.c (raw_memory_xfer_partial): Bail out if target reports
8325 that this memory is not available.
8326
3db08215
MM
83272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8328
8329 * target.h (target_ops) <to_insert_breakpoint>
8330 <to_remove_breakpoint>: Add target_ops parameter.
8331 (forward_target_insert_breakpoint): New.
8332 (forward_target_remove_breakpoint): New.
8333 (memory_remove_breakpoint, memory_insert_breakpoint):
8334 Add target_ops parameter.
8335 * target.c (target_insert_breakpoint): Split into this and ...
8336 (forward_target_insert_breakpoint): ... this.
8337 (target_remove_breakpoint): Split into this and ...
8338 (forward_target_remove_breakpoint): ... this.
8339 (debug_to_insert_breakpoint): Add target_ops parameter.
8340 Call forward_target_insert_breakpoint.
8341 (debug_to_remove_breakpoint): Add target_ops parameter.
8342 Call forward_target_remove_breakpoint.
8343 (update_current_target): Do not inherit or default to_insert_breakpoint
8344 and to_remove_breakpoint.
8345 * corelow.c (ignore): Add target_ops parameter.
8346 * exec.c (ignore): Add target_ops parameter.
8347 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8348 Add target_ops parameter.
8349 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8350 Add target_ops parameter.
8351 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8352 Add target_ops parameter.
8353 * record-full.c (record_full_beneath_to_insert_breakpoint)
8354 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8355 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8356 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8357 (record_full_core_remove_breakpoint): Add target_ops parameter.
8358 Update users.
8359 (record_full_beneath_to_insert_breakpoint_ops)
8360 (record_full_beneath_to_remove_breakpoint_ops)
8361 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8362 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8363 tmp_to_remove_breakpoint_ops,
8364 record_full_beneath_to_insert_breakpoint_ops, and
8365 record_full_beneath_to_remove_breakpoint_ops.
8366 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8367 (m32r_remove_breakpoint): Add target_ops parameter.
8368 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8369 Add target_ops parameter.
8370 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8371 Add target_ops parameter.
8372
cecac1ab
MM
83732014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8374 Markus Metzger <markus.t.metzger@intel.com>
8375
8376 * record-btrace.c: Include frame-unwind.h.
8377 (record_btrace_frame_unwind_stop_reason)
8378 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8379 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8380 New.
8381 (init_record_btrace_ops): Install it.
8382
824344ca
MM
83832014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8384
8385 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8386 get_prev_frame_1.
8387
32261e52
MM
83882014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8389
8390 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8391 earlier.
8392
ea001bdc
MM
83932014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8394
8395 * frame-unwind.c: Include target.h.
8396 (frame_unwind_try_unwinder): New function with code from ...
8397 (frame_unwind_find_by_frame): ... here. New variable
8398 unwinder_from_target, call also target_get_unwinder)
8399 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8400 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8401 * target.h (struct target_ops): New fields to_get_unwinder and
8402 to_get_tailcall_unwinder.
8403 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8404
1f3ef581
MM
84052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8406
8407 * record-btrace.c (record_btrace_fetch_registers)
8408 (record_btrace_store_registers)
8409 (record_btrace_to_prepare_to_store): New.
8410 (init_record_btrace_ops): Add the above.
8411
f32dbf8c
MM
84122014-01-16 Tom Tromey <tromey@redhat.com>
8413
8414 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8415 * target.h (struct target_ops) <to_prepare_to_store>: Add
8416 argument.
8417 (target_prepare_to_store): Add argument.
8418 * target.c (debug_to_prepare_to_store): Add argument.
8419 (update_current_target): Update.
8420 * remote.c (remote_prepare_to_store): Add 'self' argument.
8421 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8422 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8423 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8424 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8425 argument.
8426 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8427 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8428 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8429 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8430 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8431
07bbe694
MM
84322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8433
8434 * btrace.h (replay) <replay>: New.
8435 (btrace_is_replaying): New.
8436 * btrace.c (btrace_clear): Free replay iterator.
8437 (btrace_is_replaying): New.
8438 * record-btrace.c (record_btrace_is_replaying): New.
8439 (record_btrace_info): Print insn number if replaying.
8440 (record_btrace_insn_history): Start at replay position.
8441 (record_btrace_call_history): Start at replay position.
8442 (init_record_btrace_ops): Init to_record_is_replaying.
8443
0688d04e
MM
84442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8445
8446 * record-btrace.c (record_btrace_insn_history_range): Include
8447 end.
8448 (record_btrace_insn_history_from): Adjust range.
8449 (record_btrace_call_history_range): Include
8450 end.
8451 (record_btrace_call_history_from): Adjust range.
8452 * NEWS: Announce changes.
8453
8710b709
MM
84542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8455
8456 * record.h (enum record_print_flag)
8457 <record_print_indent_calls>: New.
8458 * record.c (get_call_history_modifiers): Recognize /c modifier.
8459 (_initialize_record): Document /c modifier.
8460 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8461 Reorder fields. Optionally indent the function name. Update
8462 all users.
8463 * NEWS: Announce changes.
8464
d0fa7535
MM
84652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8466
8467 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8468
5de9129b
MM
84692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8470
8471 * btrace.c (ftrace_new_function): Start counting at one.
8472 * record-btrace.c (record_btrace_info): Adjust number of calls
8473 and insns.
8474 * NEWS: Announce it.
8475
7acbe133
MM
84762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8477
8478 * record-btrace.c (btrace_call_history_insn_range): Print
8479 insn range as [begin, end].
8480
23a7fe75
MM
84812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8482
8483 * btrace.h (struct btrace_func_link): New.
8484 (enum btrace_function_flag): New.
8485 (struct btrace_inst): Rename to ...
8486 (struct btrace_insn): ...this. Update all users.
8487 (struct btrace_func) <ibegin, iend>: Remove.
8488 (struct btrace_func_link): New.
8489 (struct btrace_func): Rename to ...
8490 (struct btrace_function): ...this. Update all users.
8491 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8492 (number, level, flags>: New.
8493 (struct btrace_insn_iterator): Rename to ...
8494 (struct btrace_insn_history): ...this.
8495 Update all users.
8496 (struct btrace_insn_iterator, btrace_call_iterator): New.
8497 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8498 (struct btrace_target_info) <begin, end, level>
8499 <insn_history, call_history>: New.
8500 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8501 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8502 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8503 (btrace_call_number, btrace_call_begin, btrace_call_end)
8504 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8505 (btrace_find_function_by_number, btrace_set_insn_history)
8506 (btrace_set_call_history): New.
8507 * btrace.c (btrace_init_insn_iterator)
8508 (btrace_init_func_iterator, compute_itrace): Remove.
8509 (ftrace_print_function_name, ftrace_print_filename)
8510 (ftrace_skip_file): Change
8511 parameter to const.
8512 (ftrace_init_func): Remove.
8513 (ftrace_debug): Use new btrace_function fields.
8514 (ftrace_function_switched): Also consider gaining and
8515 losing symbol information).
8516 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8517 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8518 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8519 New.
8520 (ftrace_new_function): Move. Remove debug print.
8521 (ftrace_update_lines, ftrace_update_insns): New.
8522 (ftrace_update_function): Check for call, ret, and jump.
8523 (compute_ftrace): Renamed to ...
8524 (btrace_compute_ftrace): ...this. Rewritten to compute call
8525 stack.
8526 (btrace_fetch, btrace_clear): Updated.
8527 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8528 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8529 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8530 (btrace_call_number, btrace_call_begin, btrace_call_end)
8531 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8532 (btrace_find_function_by_number, btrace_set_insn_history)
8533 (btrace_set_call_history): New.
8534 * record-btrace.c (require_btrace): Use new btrace thread
8535 info fields.
8536 (record_btrace_info, btrace_insn_history)
8537 (record_btrace_insn_history, record_btrace_insn_history_range):
8538 Use new btrace thread info fields and new iterator.
8539 (btrace_func_history_src_line): Rename to ...
8540 (btrace_call_history_src_line): ...this. Use new btrace
8541 thread info fields.
8542 (btrace_func_history): Rename to ...
8543 (btrace_call_history): ...this. Use new btrace thread info
8544 fields and new iterator.
8545 (record_btrace_call_history, record_btrace_call_history_range):
8546 Use new btrace thread info fields and new iterator.
8547
8372a7cb
MM
85482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8549
8550 * frame.h (frame_id_build_unavailable_stack_special): New.
8551 * frame.c (frame_id_build_unavailable_stack_special): New.
8552
c2170eef
MM
85532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8554
8555 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8556 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8557 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8558 to gdbarch.
8559 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8560 (i386_insn_is_jump, i386_jmp_p): New.
8561 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8562 insn_is_jump to gdbarch.
8563 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8564 * gdbarch.h: Regenerated.
8565 * gdbarch.c: Regenerated.
8566 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8567 (default_insn_is_jump): New.
8568 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8569 (default_insn_is_jump): New.
8570
864089d2
MM
85712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8572
8573 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8574 Change to ...
8575 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8576 (btrace_read_type) <btrace_read_new>: Change to ...
8577 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8578
ed9edfb5
MM
85792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8580
8581 * common/linux-btrace.c (linux_read_btrace): Free trace from
8582 previous iteration.
8583
fbcbc3fd
DE
85842014-01-15 Doug Evans <dje@google.com>
8585
8586 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8587 uint32_t.
8588
3d548a53
TT
85892014-01-15 Tom Tromey <tromey@redhat.com>
8590
8591 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8592 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8593 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8594 (set_objfile_main_name): New function.
8595 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8596 language_of_main>: New fields.
8597 (set_objfile_main_name): Declare.
8598 * symtab.c (find_main_name): Loop over objfiles to find the main
8599 name and language.
8600 (set_main_name): Now static.
8601 (get_main_info): Add comment.
8602 * symtab.h (set_main_name): Don't declare.
8603
32ac0d11
TT
86042014-01-15 Tom Tromey <tromey@redhat.com>
8605
8606 * symtab.c (main_progspace_key): New global.
8607 (struct main_info): New.
8608 (name_of_main, language_of_main): Remove.
8609 (get_main_info, main_info_cleanup): New function.
8610 (set_main_name, main_name, main_language): Use get_main_info.
8611 (_initialize_symtab): Initialize main_progspace_key.
8612
9e6c82ad
TT
86132014-01-15 Tom Tromey <tromey@redhat.com>
8614
8615 * dbxread.c (process_one_symbol): Update.
8616 * dwarf2read.c (read_partial_die): Update.
8617 * symfile.c (set_initial_language): Call main_language.
8618 * symtab.c (language_of_main): Now static.
8619 (set_main_name): Add 'lang' parameter.
8620 (find_main_name): Update.
8621 (main_language): New function.
8622 (symtab_observer_executable_changed): Update.
8623 * symtab.h (set_main_name): Update.
8624 (language_of_main): Remove.
8625 (main_language): Declare.
8626
6ef55de7
TT
86272014-01-15 Tom Tromey <tromey@redhat.com>
8628
8629 * symfile.c (init_entry_point_info): Use new "initialized" field.
8630 Update.
8631 * objfiles.h (struct entry_point) <initialized>: New field.
8632 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8633 (struct objfile) <ei>: ...here. Remove.
8634 * objfiles.c (entry_point_address_query): Update.
8635
53eddfa6
TT
86362014-01-15 Tom Tromey <tromey@redhat.com>
8637
8638 * objfiles.c (entry_point_address_query): Relocate entry point
8639 address.
8640 (objfile_relocate1): Do not relocate entry point address.
8641 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8642 <the_bfd_section_index>: New field.
8643 * symfile.c (init_entry_point_info): Find the entry point's
8644 section.
8645
d56e56aa
TT
86462014-01-15 Tom Tromey <tromey@redhat.com>
8647
8648 * solib-frv.c (enable_break): Use entry_point_address_query.
8649
33a97bbe
OJ
86502014-01-15 Omair Javaid <omair.javaid@linaro.org>
8651
8652 * NEWS: Add note on improved process record-replay on
8653 arm*-linux* targets.
8654
c6ec2b30
OJ
86552014-01-15 Omair Javaid <omair.javaid@linaro.org>
8656
8657 * arm-tdep.c (enum arm_record_result): New enum.
8658 (arm_record_unsupported_insn): New function.
8659 (arm_record_coproc_data_proc): Removed.
8660 (thumb2_record_ld_st_multiple): New function.
8661 (thumb2_record_ld_st_dual_ex_tbb): New function.
8662 (thumb2_record_data_proc_sreg_mimm): New function.
8663 (thumb2_record_ps_dest_generic): New function.
8664 (thumb2_record_branch_misc_cntrl): New function.
8665 (thumb2_record_str_single_data): New function.
8666 (thumb2_record_ld_mem_hints): New function.
8667 (thumb2_record_ld_word): New function.
8668 (thumb2_record_lmul_lmla_div): New function.
8669 (thumb2_record_decode_insn_handler): New function.
8670 (decode_insn): Add thumb32 instruction handlers.
8671
97dfe206
OJ
86722014-01-15 Omair Javaid <omair.javaid@linaro.org>
8673
8674 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8675 (struct arm_linux_record_tdep): Declare.
8676 (arm_canonicalize_syscall): New function.
8677 (arm_all_but_pc_registers_record): New function.
8678 (arm_linux_syscall_record): New function.
8679 (arm_linux_init_abi): Add syscall recording constructs.
8680 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8681 decoding. (arm_record_coproc_data_proc): Update arm syscall
8682 decoding.
8683 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8684 <arm_syscall_record>: New field.
8685 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8686 gdb_target_obs.
8687
9904a494
OJ
86882014-01-15 Omair Javaid <omair.javaid@linaro.org>
8689
8690 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8691 register for push instruction recording.
8692
f969241e
OJ
86932014-01-15 Omair Javaid <omair.javaid@linaro.org>
8694
8695 * arm-tdep.c (thumb_record_misc): Update to correct logical
8696 error while recording ldm, ldmia and pop instructions.
8697
bfbbec00
OJ
86982014-01-15 Omair Javaid <omair.javaid@linaro.org>
8699
8700 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8701
e40adcc9
PA
87022014-01-15 Pedro Alves <palves@redhat.com>
8703
8704 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8705 (go32_resume, go32_fetch_registers, store_register)
8706 (go32_store_registers, go32_prepare_to_store)
8707 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8708 (go32_create_inferior, go32_can_run, go32_terminal_init)
8709 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8710 declarations.
8711
b0a16e66
TT
87122014-01-15 Tom Tromey <tromey@redhat.com>
8713
8714 * target.h (async_callback_ftype): New typedef.
8715 (struct target_ops) <to_async>: Use it.
8716
bf7105a4
JB
87172014-01-15 Joel Brobecker <brobecker@adacore.com>
8718
8719 * python/py-value.c (get_field_type): Remove unnecessary curly
8720 braces for single-statement if block.
8721
a8f35c2e
JB
87222014-01-15 Joel Brobecker <brobecker@adacore.com>
8723
8724 * python/py-type.c (convert_field): Add missing empty line
8725 after declarations.
8726
bb4142cf
DE
87272014-01-14 Doug Evans <dje@google.com>
8728
8729 * symfile.h (expand_symtabs_matching): Renamed from
8730 expand_partial_symbol_names. Update prototype.
8731 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8732 * symfile.c (expand_symtabs_matching): Renamed from
8733 expand_partial_symbol_names. New args file_matcher, kind.
8734 Rename arg fun to symbol_matcher.
8735 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8736 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8737 ada_expand_partial_symbol_name.
8738 (ada_make_symbol_completion_list): Update to call
8739 expand_symtabs_matching.
8740 (ada_add_global_exceptions): Call expand_symtabs_matching.
8741 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8742 call map_symbol_filenames.
8743 * symtab.c (sources_info): Update to call map_symbol_filenames.
8744 (search_symbols): Call expand_symtabs_matching.
8745 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8746 (default_make_symbol_completion_list_break_on): Update to call
8747 expand_symtabs_matching.
8748 (make_source_files_completion_list): Update to call
8749 map_symbol_filenames.
8750
206f2a57
DE
87512014-01-14 Doug Evans <dje@google.com>
8752
8753 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8754 (expand_symtabs_symbol_matcher_ftype): New typedef.
8755 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8756 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8757 * symfile.c (expand_partial_symbol_names): Update to use
8758 expand_symtabs_symbol_matcher_ftype.
8759 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8760 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8761 Arg name_matcher renamed to symbol_matcher.
8762 * psymtab.c (recursively_search_psymtabs): Update to use
8763 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8764 sym_matcher.
8765 (expand_symtabs_matching_via_partial): Update to use
8766 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8767 Arg name_matcher renamed to symbol_matcher.
8768
540c2971
DE
87692014-01-14 Doug Evans <dje@google.com>
8770
8771 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8772 (map_partial_symbol_filenames): Ditto.
8773 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8774 (map_partial_symbol_filenames): Ditto.
8775 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8776 (map_partial_symbol_filenames): Ditto.
8777 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8778 (map_partial_symbol_filenames): Ditto.
8779 * symtab.c: Delete #include "psymtab.h".
8780
8213266a
PA
87812014-01-14 Pedro Alves <palves@redhat.com>
8782 Tom Tromey <tromey@redhat.com>
8783
8784 * infrun.c (use_displaced_stepping): Use find_record_target
8785 instead of RECORD_IS_USED.
8786 (adjust_pc_after_break): Use record_full_is_used instead of
8787 RECORD_IS_USED.
8788 * record-btrace.c (record_btrace_open): Call record_preopen
8789 instead of checking RECORD_IS_USED.
8790 * record-full.c (record_full_shortname)
8791 (record_full_core_shortname): New globals.
8792 (record_full_is_used): New function.
8793 (find_full_open): Call record_preopen instead of checking
8794 RECORD_IS_USED.
8795 (init_record_full_ops): Set the target's shortname to
8796 record_full_shortname.
8797 (init_record_full_core_ops): Set the target's shortname to
8798 record_full_core_shortname.
8799 * record-full.h (record_full_is_used): Declare.
8800 * record.c (find_record_target): Make extern.
8801 (record_preopen): New function.
8802 * record.h (RECORD_IS_USED): Delete macro.
8803 (find_record_target, record_preopen): Declare functions.
8804
7ec1862d
YQ
88052014-01-14 Yao Qi <yao@codesourcery.com>
8806
8807 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8808 'len''s type to ULONGEST.
8809 (core_xfer_shared_libraries_aix): Likewise.
8810 * gdbarch.c, gdbarch.h: Regenerated.
8811 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8812 Change type of 'len' to ULONGEST.
8813 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8814 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8815
dea80a27
YQ
88162014-01-14 Yao Qi <yao@codesourcery.com>
8817
8818 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8819 type of 'len' to ULONGEST.
8820 (linux_xfer_osdata_processgroups): Likewise.
8821 (linux_xfer_osdata_threads): Likewise.
8822 (linux_xfer_osdata_fds): Likewise.
8823 (linux_xfer_osdata_isockets): Likewise.
8824 (linux_xfer_osdata_shm): Likewise.
8825 (linux_xfer_osdata_sem): Likewise.
8826 (linux_xfer_osdata_msg): Likewise.
8827 (linux_common_xfer_osdata): Likewise.
8828 (struct osdata_type) <getter>: Likewise.
8829 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8830 the declaration.
8831
b55e14c7
YQ
88322014-01-14 Yao Qi <yao@codesourcery.com>
8833
8834 * target.h (target_xfer_partial_ftype): Update.
8835 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8836 ULONGEST.
8837 * aix-thread.c (aix_thread_xfer_partial): Change type of
8838 argument 'len' to ULONGEST.
8839 * auxv.c (procfs_xfer_auxv): Likewise.
8840 (ld_so_xfer_auxv): Likewise.
8841 (memory_xfer_auxv): Likewise.
8842 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8843 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8844 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8845 * corelow.c (core_xfer_partial): Likewise.
8846 * ctf.c (ctf_xfer_partial): Likewise.
8847 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8848 '%u'.
8849 (darwin_read_dyld_info): Likewise.
8850 (darwin_xfer_partial): Likewise.
8851 * exec.c (section_table_xfer_memory_partial): Likewise.
8852 (exec_xfer_partial): Likewise.
8853 * exec.h (section_table_xfer_memory_partial): Update
8854 declaration.
8855 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8856 instead of plongest.
8857 (gnu_xfer_partial): Likewise.
8858 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8859 (ia64_hpux_xfer_solib_got): Likewise.
8860 (ia64_hpux_xfer_partial): Likewise.
8861 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8862 * inf-ptrace.c (inf_ptrace_xfer_partial):
8863 * inf-ttrace.c (inf_ttrace_xfer_partial):
8864 * linux-nat.c (linux_xfer_siginfo): Likewise.
8865 (linux_nat_xfer_partial): Likewise.
8866 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8867 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8868 * monitor.c (monitor_xfer_memory): Likewise.
8869 (monitor_xfer_partial): Likewise.
8870 * procfs.c (procfs_xfer_partial): Likewise.
8871 * record-full.c (record_full_xfer_partial): Likewise.
8872 (record_full_core_xfer_partial): Likewise.
8873 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8874 instead of plongest.
8875 (gdbsim_xfer_partial): Likewise.
8876 * remote.c (remote_xfer_partial): Likewise.
8877 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8878 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8879 declaration.
8880 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8881 (rs6000_xfer_shared_libraries): Likewise.
8882 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8883 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8884 (sparc_xfer_partial): Likewise.
8885 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8886 (spu_xfer_partial): Likewise.
8887 * spu-multiarch.c (spu_xfer_partial): Likewise.
8888 * target.c (target_read_live_memory): Likewise.
8889 (memory_xfer_live_readonly_partial): Likewise.
8890 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8891 (target_xfer_partial, default_xfer_partial): Likewise.
8892 (current_xfer_partial): Likewise.
8893 * tracepoint.c (tfile_xfer_partial): Likewise.
8894 * windows-nat.c (windows_xfer_memory): Likewise. Call
8895 pulongest instead of plongest.
8896 (windows_xfer_partial): Likewise.
8897 (windows_xfer_shared_libraries): Likewise.
8898
05804640
YQ
88992014-01-14 Yao Qi <yao@codesourcery.com>
8900
8901 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8902 target_xfer_partial_ftype.
8903
b5b08fb4
SC
89042014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8905
8906 PR python/15464
8907 PR python/16113
8908 * valops.c (value_struct_elt_bitpos): New function
8909 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8910 object to 'None' if the field name is an empty string ("").
8911 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8912 attribute to look for a field when 'name' is 'None'.
8913 (get_field_type): New function
8914
13aaf454
DE
89152014-01-13 Doug Evans <dje@google.com>
8916
8917 PR symtab/16426
8918 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8919 (try_open_dwop_file): Ditto.
8920 * gdb_bfd.c: #include "vec.h".
8921 (bfdp): New typedef.
8922 (struct gdb_bfd_data): New member included_bfds.
8923 (gdb_bfd_unref): Unref all included bfds.
8924 (gdb_bfd_record_inclusion): New function.
8925 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8926
c2cec97c
TT
89272014-01-13 Tom Tromey <tromey@redhat.com>
8928
8929 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8930
78e5999d
TT
89312014-01-13 Tom Tromey <tromey@redhat.com>
8932
8933 * defs.h (use_windows): Remove.
8934 * gdb.c (main): Update.
8935 * main.c (captured_main, gdb_main): Update.
8936 * main.h (struct captured_main_args) <use_windows>: Remove.
8937 * top.c (use_windows): Remove.
8938
f2052bbe
TT
89392014-01-13 Tom Tromey <tromey@redhat.com>
8940
8941 * defs.h (deprecated_flush_hook): Remove.
8942
fde4f8ed
JK
89432014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8944
8945 PR threads/16216
8946 * linux-thread-db.c (try_thread_db_load): Add parameter
8947 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8948 (try_thread_db_load_from_pdir_1): Move it there from here.
8949 (try_thread_db_load_from_sdir): Update caller.
8950 (try_thread_db_load_from_dir): Move it there from here.
8951
bdf61915
PP
89522014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8953
8954 * regformats/regdat.sh: Always rewrite the register file.
8955
f71e1a8d
PA
89562014-01-13 Pedro Alves <palves@redhat.com>
8957
8958 * Makefile.in (CHECK_HEADERS): New variable.
8959 (check-headers:): New rule.
8960
42c85435
TT
89612014-01-13 Tom Tromey <tromey@redhat.com>
8962
8963 * cli/cli-setshow.c (do_set_command): Update.
8964 * defs.h (deprecated_set_hook): Remove.
8965 * top.c (deprecated_set_hook): Remove.
8966
f8de5129
PA
89672014-01-13 Pedro Alves <palves@redhat.com>
8968
8969 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8970 the tracepoint if the PC is a pseudo-register.
8971
fc270c35
TT
89722014-01-13 Tom Tromey <tromey@redhat.com>
8973
8974 * defs.h (XCALLOC): Remove.
8975 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8976 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8977 * dwarf2loc.c (allocate_piece_closure): Likewise.
8978 * elfread.c (elf_symfile_segments): Likewise.
8979 (elf_symfile_segments): Likewise.
8980 * gdbtypes.c (copy_type_recursive): Likewise.
8981 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8982 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8983 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8984 XCALLOC.
8985 * mt-tdep.c (mt_gdbarch_init): Likewise.
8986 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8987 XCALLOC.
8988 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8989 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8990 * registry.c (registry_alloc_data): Likewise.
8991 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8992 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8993 * serial.c (serial_fdopen_ops): Likewise.
8994 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8995 XCALLOC.
8996 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8997 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8998 not XCALLOC.
8999
70ba0933
TT
90002014-01-13 Tom Tromey <tromey@redhat.com>
9001
9002 * defs.h (XMALLOC): Remove.
9003 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9004 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9005 * cli-out.c (struct ui_out *): Likewise.
9006 * cli/cli-dump.c (add_dump_command): Likewise.
9007 (add_dump_command): Likewise.
9008 * complaints.c (get_complaints): Likewise.
9009 (find_complaint): Likewise.
9010 * dwarf2-frame.c (execute_cfa_program): Likewise.
9011 * dwarf2read.c (abbrev_table_read_table): Likewise.
9012 * gdbarch.sh: Likewise.
9013 * gdbarch.c: Rebuild.
9014 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9015 * interps.c (interp_new): Likewise.
9016 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9017 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9018 * mi/mi-console.c (mi_console_file_new): Likewise.
9019 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9020 * mi/mi-out.c (mi_out_new): Likewise.
9021 * mi/mi-parse.c (mi_parse): Likewise.
9022 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9023 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9024 * observer.c (xalloc_observer_list_node): Likewise.
9025 * regcache.c (regcache_xmalloc_1): Likewise.
9026 * reggroups.c (reggroup_new): Likewise.
9027 (_initialize_reggroup): Likewise.
9028 * registry.c (register_data_with_cleanup): Likewise.
9029 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9030 * ser-base.c (serial_ttystate): Likewise.
9031 * ser-mingw.c (make_pipe_state): Likewise.
9032 * ser-pipe.c (pipe_open): Likewise.
9033 * serial.c (serial_open): Likewise.
9034 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9035 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9036 (tui_alloc_win_info): Likewise.
9037 (tui_add_content_elements): Likewise.
9038 * tui/tui-file.c (tui_file_new): Likewise.
9039 * tui/tui-out.c (tui_out_new): Likewise.
9040 * ui-file.c (mem_file_new): Likewise.
9041 * ui-out.c (push_level): Likewise.
9042 (make_cleanup_ui_out_end): Likewise.
9043 (append_header_to_list): Likewise.
9044 (ui_out_new): Likewise.
9045 * user-regs.c (user_reg_add_builtin): Likewise.
9046
41bf6aca
TT
90472014-01-13 Tom Tromey <tromey@redhat.com>
9048
9049 * defs.h (XZALLOC): Remove.
9050 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9051 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9052 (get_ada_tasks_inferior_data): Likewise.
9053 * auto-load.c (get_auto_load_pspace_data): Likewise.
9054 * auxv.c (get_auxv_inferior_data): Likewise.
9055 * bfd-target.c (target_bfd_reopen): Likewise.
9056 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9057 (deprecated_insert_raw_breakpoint): Likewise.
9058 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9059 * corelow.c (core_open): Likewise.
9060 * darwin-nat.c (darwin_check_new_threads): Likewise.
9061 (darwin_attach_pid): Likewise.
9062 * dummy-frame.c (dummy_frame_push): Likewise.
9063 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9064 * dwarf2loc.c (allocate_piece_closure): Likewise.
9065 * elfread.c (elf_symfile_segments): Likewise.
9066 * eval.c (ptrmath_type_p): Likewise.
9067 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9068 * gdbtypes.c (alloc_type_arch): Likewise.
9069 (alloc_type_instance): Likewise.
9070 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9071 * inf-child.c (inf_child_can_use_agent): Likewise.
9072 * inflow.c (get_inflow_inferior_data): Likewise.
9073 * infrun.c (save_infcall_suspend_state): Likewise.
9074 * jit.c (jit_reader_load): Likewise.
9075 (get_jit_objfile_data): Likewise.
9076 (get_jit_program_space_data): Likewise.
9077 (jit_object_open_impl): Likewise.
9078 (jit_symtab_open_impl): Likewise.
9079 (jit_block_open_impl): Likewise.
9080 (jit_frame_sniffer): Likewise.
9081 * linux-fork.c (add_fork): Likewise.
9082 * maint.c (make_command_stats_cleanup): Likewise.
9083 * objfiles.c (get_objfile_pspace_data): Likewise.
9084 * opencl-lang.c (struct lval_closure): Likewise.
9085 * osdata.c (osdata_start_osdata): Likewise.
9086 * progspace.c (new_address_space): Likewise.
9087 (add_program_space): Likewise.
9088 * remote-sim.c (get_sim_inferior_data): Likewise.
9089 * sh-tdep.c (sh_gdbarch_init): Likewise.
9090 * skip.c (Ignore): Likewise.
9091 (skip_delete_command): Likewise.
9092 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9093 (library_list_start_library): Likewise.
9094 (solib_aix_current_sos): Likewise.
9095 * solib-darwin.c (get_darwin_info): Likewise.
9096 (darwin_current_sos): Likewise.
9097 * solib-dsbt.c (get_dsbt_info): Likewise.
9098 * solib-ia64-hpux.c (new_so_list): Likewise.
9099 (ia64_hpux_get_solib_linkage_addr): Likewise.
9100 * solib-spu.c (append_ocl_sos): Likewise.
9101 (spu_current_sos): Likewise.
9102 * solib-svr4.c (get_svr4_info): Likewise.
9103 (svr4_keep_data_in_core): Likewise.
9104 (library_list_start_library): Likewise.
9105 (svr4_default_sos): Likewise.
9106 (svr4_read_so_list): Likewise.
9107 * solib-target.c (library_list_start_library): Likewise.
9108 (solib_target_current_sos): Likewise.
9109 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9110 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9111 * symfile.c (default_symfile_segments): Likewise.
9112 * target-descriptions.c (tdesc_data_init): Likewise.
9113 (tdesc_create_reg): Likewise.
9114 (struct tdesc_type *): Likewise.
9115 (tdesc_create_vector): Likewise.
9116 (tdesc_set_struct_size): Likewise.
9117 (struct tdesc_type *): Likewise.
9118 (tdesc_free_feature): Likewise.
9119 (tdesc_create_feature): Likewise.
9120 * windows-nat.c (windows_add_thread): Likewise.
9121 (windows_make_so): Likewise.
9122 * xml-support.c (gdb_xml_body_text): Likewise.
9123 (gdb_xml_create_parser_and_cleanup): Likewise.
9124 (xml_process_xincludes): Likewise.
9125 * xml-syscall.c (allocate_syscalls_info): Likewise.
9126 (syscall_create_syscall_desc): Likewise.
9127
5acfdbae
SDJ
91282014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9129
9130 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9131 function, with code from i386_stap_parse_special_token.
9132 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9133 (i386_stap_parse_special_token): Move code to the two functions
9134 above; simplify it.
9135
0000e5cc
PA
91362014-01-09 Pedro Alves <palves@redhat.com>
9137 Hui Zhu <hui@codesourcery.com>
9138
9139 PR gdb/16101
9140 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9141 bp_err_string. Don't mark the location shlib_disabled if the
9142 error thrown wasn't a generic or memory error. Catch errors
9143 thrown while inserting breakpoints in overlayed code. Output
9144 error message of software breakpoints.
9145 * remote.c (remote_insert_breakpoint): If this breakpoint has
9146 target-side commands but this stub doesn't support Z0 packets,
9147 throw NOT_SUPPORTED_ERROR error.
9148 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9149 * target.h (target_insert_breakpoint): Extend comment.
9150 (target_insert_hw_breakpoint): Add comment.
9151
b7ea362b
PA
91522014-01-08 Pedro Alves <palves@redhat.com>
9153
9154 * remote.c (remote_add_thread): Add threads silently if starting
9155 up.
9156 (remote_notice_new_inferior): If in all-stop, and starting up,
9157 don't call notice_new_inferior.
9158 (get_current_thread): New function, factored out from ...
9159 (add_current_inferior_and_thread): ... this. Adjust.
9160 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9161 found any thread, then select the remote's current thread as GDB's
9162 current thread too.
9163
b7bba001
JB
91642014-01-08 Joel Brobecker <brobecker@adacore.com>
9165
9166 * NEWS: Create a new section for the next release branch.
9167 Rename the section of the current branch, now that it has
9168 been cut.
9169
16dfbded
JB
91702014-01-08 Joel Brobecker <brobecker@adacore.com>
9171
9172 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9173 * version.in: Bump version to 7.7.50.DATE-cvs.
9174
22c90ac1
YQ
91752014-01-08 Yao Qi <yao@codesourcery.com>
9176
9177 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9178 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9179 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9180
d64ad97c
YQ
91812014-01-08 Yao Qi <yao@codesourcery.com>
9182
9183 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9184 return value of bfd_get_filename to symbol_file_add_from_bfd.
9185
f93ba80c
PM
91862014-01-08 Pierre Muller <muller@sourceware.org>
9187
9188 Fix PR16201.
9189 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9190 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9191 to prim_record_mininal_symbol_and_info.
9192 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9193 in call to prim_record_minimal_symbol_and_info.
9194 (read_pe_exported_syms): Set index field of section_data.
9195
a4d9ba85
AP
91962014-01-07 Andrew Pinski <apinski@cavium.com>
9197
9198 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9199 * features/aarch64.c: Regenerate.
9200
1b67eb02
AS
92012014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9202
9203 * target.c (return_null): Define.
9204 (update_current_target): Use it instead of return_zero for
9205 functions that return a pointer.
9206
5e3f4fab
EBM
92072014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9208
9209 * source.c (add_path): Fix check for duplicated paths in the previously
9210 included paths.
9211
e2616788
HK
92122014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9213
9214 * ada-lang.c: Remove duplicated include statements.
9215 * alphabsd-nat.c: Ditto.
9216 * amd64-darwin-tdep.c: Ditto.
9217 * amd64fbsd-nat.c: Ditto.
9218 * auto-load.c: Ditto.
9219 * ax-gdb.c: Ditto.
9220 * breakpoint.c: Ditto.
9221 * dbxread.c: Ditto.
9222 * fork-child.c: Ditto.
9223 * gdb_usleep.c: Ditto.
9224 * i386-darwin-tdep.c: Ditto.
9225 * i386fbsd-nat.c: Ditto.
9226 * infcmd.c: Ditto.
9227 * inferior.c: Ditto.
9228 * jv-lang.c: Ditto.
9229 * linux-nat.c: Ditto.
9230 * linux-tdep.c: Ditto.
9231 * m68kbsd-nat.c: Ditto.
9232 * m68klinux-nat.c: Ditto.
9233 * microblaze-tdep.c: Ditto.
9234 * mips-linux-tdep.c: Ditto.
9235 * mn10300-tdep.c: Ditto.
9236 * nto-tdep.c: Ditto.
9237 * opencl-lang.c: Ditto.
9238 * osdata.c: Ditto.
9239 * printcmd.c: Ditto.
9240 * regcache.c: Ditto.
9241 * remote-m32r-sdi.c: Ditto.
9242 * remote.c: Ditto.
9243 * symfile.c: Ditto.
9244 * symtab.c: Ditto.
9245 * tilegx-linux-nat.c: Ditto.
9246 * tilegx-tdep.c: Ditto.
9247 * tracepoint.c: Ditto.
9248 * valops.c: Ditto.
9249 * vaxbsd-nat.c: Ditto.
9250 * windows-nat.c: Ditto.
9251 * xtensa-tdep.c: Ditto.
9252
bd1f7788
YQ
92532014-01-07 Yao Qi <yao@codesourcery.com>
9254
9255 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9256
79301218
JB
92572014-01-07 Yao Qi <yao@codesourcery.com>
9258 Joel Brobecker <brobecker@adacore.com>
9259
9260 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9261 (pdc_write_regs): Likewise.
9262 (fetch_regs_kernel_thread): Likewise.
9263 (store_regs_kernel_thread): Likewise.
9264
92652014-01-07 Joel Brobecker <brobecker@adacore.com>
9266
9267 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9268 tagged type objects to their actual type.
9269
8e355c5d
JB
92702014-01-07 Joel Brobecker <brobecker@adacore.com>
9271
9272 * ada-valprint.c (print_field_values): Add "language" parameter.
9273 Update calls to print_field_values and print_variant_part.
9274 Pass new parameter "language" in call to val_print instead
9275 of "current_language". Replace call to ada_val_print by call
9276 to val_print.
9277 (print_variant_part): Add "language" parameter.
9278 (ada_val_print_struct_union): Update call to print_field_values.
9279
4fbf5aa5
JB
92802014-01-07 Joel Brobecker <brobecker@adacore.com>
9281
9282 * ada-valprint.c (ui_memcpy): Delete.
9283 (ada_print_floating): Update documentation. Add empty line
9284 between between function documentation and implementation.
9285 Delete variable "buffer". Use ui_file_xstrdup in place of
9286 ui_file_put. Minor adjustments following this change.
9287
71855601
JB
92882014-01-07 Joel Brobecker <brobecker@adacore.com>
9289
9290 * ada-valprint.c (ada_val_print_string): New function,
9291 extracted from ada_val_print_array.
9292 (ada_val_print_array): Replace extracted code by call
9293 to ada_val_print_string followed by a return. Move
9294 "else" branch to the function's top block.
9295
4eb27a30
JB
92962014-01-07 Joel Brobecker <brobecker@adacore.com>
9297
9298 * ada-valprint.c (ada_val_print_array): Move implementation
9299 down. Rename parameter "offset" and "val" into "offset_aligned"
9300 and "original_value" respectively. Add parameter "offset".
9301
34b27950
JB
93022014-01-07 Joel Brobecker <brobecker@adacore.com>
9303
9304 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9305 re-organizing the code. Change the "???" message printed
9306 when target type is a TYPE_CODE_UNDEF into
9307 "<ref to undefined type>".
9308
079e4591
JB
93092014-01-07 Joel Brobecker <brobecker@adacore.com>
9310
9311 * ada-valprint.c (print_record): Delete, implementation inlined...
9312 (ada_val_print_struct_union): ... here. Remove call to
9313 ada_check_typedef in inlined implementation.
9314
8004dfd1
JB
93152014-01-07 Joel Brobecker <brobecker@adacore.com>
9316
9317 * ada-valprint.c (ada_val_print_gnat_array): New function,
9318 extracted from ada_val_print_1;
9319 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9320 (ada_val_print_flt, ada_val_print_struct_union)
9321 (ada_val_print_ref): Likewise.
9322 (ada_val_print_1): Delete variables i and elttype.
9323 Replace extracted-out code by call to corresponding
9324 new functions.
9325
760a2db0
JB
93262014-01-07 Joel Brobecker <brobecker@adacore.com>
9327
9328 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9329
3a92c861
JB
93302014-01-07 Joel Brobecker <brobecker@adacore.com>
9331
9332 * ada-valprint.c (ada_val_print_1): Replace calls to
9333 ada_val_print_1 by calls to val_print.
9334
cd1630f9
JB
93352014-01-07 Joel Brobecker <brobecker@adacore.com>
9336
9337 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9338 Update calls to self accordingly. Replace calls to c_val_print
9339 by calls to val_print.
9340
bdf779a0
JB
93412014-01-07 Joel Brobecker <brobecker@adacore.com>
9342
9343 * ada-valprint.c (print_record): Delete declaration.
9344 (adjust_type_signedness, ada_val_print_1): Likewise.
9345 (ada_val_print): Move function implementation down.
9346 (print_variant_part, print_field_values, print_record):
9347 Move function implementation up.
9348
c0d48811
JB
93492014-01-07 Joel Brobecker <brobecker@adacore.com>
9350
9351 * python/py-type.c (typy_get_name): New function.
9352 (type_object_getset): Add entry for attribute "name".
9353 * NEWS: Add entry mentioning this new attribute.
9354
c26e9cbb
YQ
93552014-01-07 Yao Qi <yao@codesourcery.com>
9356
9357 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9358 statement.
9359
0cc6f43d
YQ
93602014-01-07 Yao Qi <yao@codesourcery.com>
9361
9362 * gnu-nat.c (info_port_rights): Add qualifier const to
9363 argument args.
9364
eec03155
YQ
93652014-01-07 Yao Qi <yao@codesourcery.com>
9366
9367 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9368
f04a82ef
YQ
93692014-01-07 Yao Qi <yao@codesourcery.com>
9370
9371 * gnu-nat.c (make_inf) Update declaration.
9372 (make_inf): Make it static.
9373 (inf_set_traced): Likewise.
9374 (inf_port_to_thread, inf_task_died_status): Likewise.
9375
d57dda0a
YQ
93762014-01-07 Yao Qi <yao@codesourcery.com>
9377
9378 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9379
3aa8c969
YQ
93802014-01-07 Yao Qi <yao@codesourcery.com>
9381
9382 * gnu-nat.c (_initialize_gnu_nat): Declare.
9383
94123b4f
YQ
93842014-01-07 Yao Qi <yao@codesourcery.com>
9385
9386 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9387 'enum bfd_endian'.
9388 (struct gdbarch_info) <byte_order>: Change type to
9389 'enum bfd_endian'.
9390 <byte_order_for_code>: Likewise.
9391 * gdbarch.c, gdbarch.h: Regenerated.
9392
dc81d70a
TT
93932014-01-06 Sasha Smundak <asmundak@google.com>
9394
9395 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9396
cc2f3c35
TT
93972014-01-06 Tom Tromey <tromey@redhat.com>
9398
9399 * doublest.c (convert_doublest_to_floatformat): Use const, not
9400 CONST.
9401 * somread.c (som_symtab_read): Likewise.
9402
adcf2eed
HZ
94032014-01-07 Hui Zhu <hui@codesourcery.com>
9404
9405 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9406 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9407 (gdb_bfd_fopen): Ditto.
9408 (gdb_bfd_openr): Ditto.
9409 (gdb_bfd_openw): Ditto.
9410 (gdb_bfd_openr_iovec): Ditto.
9411 (gdb_bfd_fdopenr): Ditto.
9412 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9413 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9414 with xstrdup.
9415 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9416 with xstrdup.
9417 * symfile-mem.c (symbol_file_add_from_memory): Removed
9418 gdb_bfd_stash_filename.
9419
50722198
DE
94202014-01-03 Doug Evans <dje@google.com>
9421
9422 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9423 output.
9424
2fa4b862
JB
94252014-01-01 Joel Brobecker <brobecker@adacore.com>
9426
9427 Update year range in copyright notice of all files.
9428
28498c42
JB
94292014-01-01 Joel Brobecker <brobecker@adacore.com>
9430
9431 * top.c (print_gdb_version): Set copyright year to 2014.
9432
7b6e1046
JB
94332014-01-01 Joel Brobecker <brobecker@adacore.com>
9434
9435 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9436
df96af55 9437For older changes see ChangeLog-2013.
c906108c
SS
9438\f
9439Local Variables:
9440mode: change-log
9441left-margin: 8
9442fill-column: 74
9443version-control: never
57da7796 9444coding: utf-8
c906108c 9445End:
This page took 1.970665 seconds and 4 git commands to generate.