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