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