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