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