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