[Ada] Consistently use explicit Entity_Id type instead of alias
[gcc.git] / libbacktrace / nounwind.c
index fea3c53d271244310acf60f17fe6c2353c59116e..68078a70bc28bbfbdbeef68f1730786924e3a725 100644 (file)
@@ -1,5 +1,5 @@
 /* backtrace.c -- Entry point for stack backtrace library.
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright (C) 2012-2020 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Google.
 
 Redistribution and use in source and binary forms, with or without
@@ -7,13 +7,13 @@ modification, are permitted provided that the following conditions are
 met:
 
     (1) Redistributions of source code must retain the above copyright
-    notice, this list of conditions and the following disclaimer. 
+    notice, this list of conditions and the following disclaimer.
 
     (2) Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in
     the documentation and/or other materials provided with the
-    distribution.  
-    
+    distribution.
+
     (3) The name of the author may not be used to
     endorse or promote products derived from this software without
     specific prior written permission.
@@ -42,9 +42,10 @@ POSSIBILITY OF SUCH DAMAGE.  */
    available.  */
 
 int
-backtrace (int skip ATTRIBUTE_UNUSED,
-          backtrace_full_callback callback ATTRIBUTE_UNUSED,
-          backtrace_error_callback error_callback, void *data)
+backtrace_full (struct backtrace_state *state ATTRIBUTE_UNUSED,
+               int skip ATTRIBUTE_UNUSED,
+               backtrace_full_callback callback ATTRIBUTE_UNUSED,
+               backtrace_error_callback error_callback, void *data)
 {
   error_callback (data,
                  "no stack trace because unwind library not available",
@@ -53,7 +54,8 @@ backtrace (int skip ATTRIBUTE_UNUSED,
 }
 
 int
-backtrace_simple (int skip ATTRIBUTE_UNUSED,
+backtrace_simple (struct backtrace_state *state ATTRIBUTE_UNUSED,
+                 int skip ATTRIBUTE_UNUSED,
                  backtrace_simple_callback callback ATTRIBUTE_UNUSED,
                  backtrace_error_callback error_callback, void *data)
 {