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