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