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