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