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