[gimp] app: rename gimp_backtrace_get_symbol_info() to ..._get_address_info()



commit 7ac87dc01e880e7f657182fe909b8ccd23eccfc9
Author: Ell <ell_se yahoo com>
Date:   Sun Sep 2 13:22:27 2018 -0400

    app: rename gimp_backtrace_get_symbol_info() to ..._get_address_info()
    
    This function returns information about the given address, which
    is currently mostly limited to the corresponding symbol
    information, but we might want to add address-specific information
    in the future, such as a line number.

 app/core/gimpbacktrace-linux.c |  4 ++--
 app/core/gimpbacktrace-none.c  |  4 ++--
 app/core/gimpbacktrace.h       | 38 +++++++++++++++++++-------------------
 app/widgets/gimpdashboard.c    | 20 ++++++++++----------
 4 files changed, 33 insertions(+), 33 deletions(-)
---
diff --git a/app/core/gimpbacktrace-linux.c b/app/core/gimpbacktrace-linux.c
index d6a24cc664..344a9853c2 100644
--- a/app/core/gimpbacktrace-linux.c
+++ b/app/core/gimpbacktrace-linux.c
@@ -517,8 +517,8 @@ gimp_backtrace_get_frame_address (GimpBacktrace *backtrace,
 }
 
 gboolean
-gimp_backtrace_get_symbol_info (guintptr                 address,
-                                GimpBacktraceSymbolInfo *info)
+gimp_backtrace_get_address_info (guintptr                  address,
+                                 GimpBacktraceAddressInfo *info)
 {
   Dl_info dl_info;
 
diff --git a/app/core/gimpbacktrace-none.c b/app/core/gimpbacktrace-none.c
index 6739fbdd97..c2c9d758ee 100644
--- a/app/core/gimpbacktrace-none.c
+++ b/app/core/gimpbacktrace-none.c
@@ -106,8 +106,8 @@ gimp_backtrace_get_frame_address (GimpBacktrace *backtrace,
 }
 
 gboolean
-gimp_backtrace_get_symbol_info (guintptr                 address,
-                                GimpBacktraceSymbolInfo *info)
+gimp_backtrace_get_address_info (guintptr                  address,
+                                 GimpBacktraceAddressInfo *info)
 {
   return FALSE;
 }
diff --git a/app/core/gimpbacktrace.h b/app/core/gimpbacktrace.h
index d2ecde59ea..64c7bc3519 100644
--- a/app/core/gimpbacktrace.h
+++ b/app/core/gimpbacktrace.h
@@ -22,10 +22,10 @@
 #define __GIMP_BACKTRACE_H__
 
 
-typedef struct _GimpBacktraceSymbolInfo GimpBacktraceSymbolInfo;
+typedef struct _GimpBacktraceAddressInfo GimpBacktraceAddressInfo;
 
 
-struct _GimpBacktraceSymbolInfo
+struct _GimpBacktraceAddressInfo
 {
   gchar    object_name[256];
   gchar    symbol_name[256];
@@ -36,27 +36,27 @@ struct _GimpBacktraceSymbolInfo
 gboolean        gimp_backtrace_init              (void);
 void            gimp_backtrace_shutdown          (void);
 
-GimpBacktrace * gimp_backtrace_new               (gboolean                include_current_thread);
-void            gimp_backtrace_free              (GimpBacktrace          *backtrace);
+GimpBacktrace * gimp_backtrace_new               (gboolean                 include_current_thread);
+void            gimp_backtrace_free              (GimpBacktrace           *backtrace);
 
-gint            gimp_backtrace_get_n_threads     (GimpBacktrace          *backtrace);
-guintptr        gimp_backtrace_get_thread_id     (GimpBacktrace          *backtrace,
-                                                  gint                    thread);
-const gchar   * gimp_backtrace_get_thread_name   (GimpBacktrace          *backtrace,
-                                                  gint                    thread);
+gint            gimp_backtrace_get_n_threads     (GimpBacktrace           *backtrace);
+guintptr        gimp_backtrace_get_thread_id     (GimpBacktrace           *backtrace,
+                                                  gint                     thread);
+const gchar   * gimp_backtrace_get_thread_name   (GimpBacktrace           *backtrace,
+                                                  gint                     thread);
 
-gint            gimp_backtrace_find_thread_by_id (GimpBacktrace          *backtrace,
-                                                  guintptr                thread_id,
-                                                  gint                    thread_hint);
+gint            gimp_backtrace_find_thread_by_id (GimpBacktrace           *backtrace,
+                                                  guintptr                 thread_id,
+                                                  gint                     thread_hint);
 
-gint            gimp_backtrace_get_n_frames      (GimpBacktrace          *backtrace,
-                                                  gint                    thread);
-guintptr        gimp_backtrace_get_frame_address (GimpBacktrace          *backtrace,
-                                                  gint                    thread,
-                                                  gint                    frame);
+gint            gimp_backtrace_get_n_frames      (GimpBacktrace           *backtrace,
+                                                  gint                     thread);
+guintptr        gimp_backtrace_get_frame_address (GimpBacktrace           *backtrace,
+                                                  gint                     thread,
+                                                  gint                     frame);
 
-gboolean        gimp_backtrace_get_symbol_info   (guintptr                 address,
-                                                  GimpBacktraceSymbolInfo *info);
+gboolean        gimp_backtrace_get_address_info  (guintptr                  address,
+                                                  GimpBacktraceAddressInfo *info);
 
 
 #endif  /*  __GIMP_BACKTRACE_H__  */
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index c979f68db3..d100d797a8 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -3776,13 +3776,13 @@ static void
 gimp_dashboard_log_write_address_map (GimpAsync     *async,
                                       GimpDashboard *dashboard)
 {
-  GimpDashboardPrivate    *priv = dashboard->priv;
-  GimpBacktraceSymbolInfo  infos[2];
-  guintptr                *addresses;
-  gint                     n_addresses;
-  GList                   *iter;
-  gint                     i;
-  gint                     n;
+  GimpDashboardPrivate     *priv = dashboard->priv;
+  GimpBacktraceAddressInfo  infos[2];
+  guintptr                 *addresses;
+  gint                      n_addresses;
+  GList                    *iter;
+  gint                      i;
+  gint                      n;
 
   n_addresses = g_hash_table_size (priv->log_addresses);
 
@@ -3813,13 +3813,13 @@ gimp_dashboard_log_write_address_map (GimpAsync     *async,
 
   for (i = 0; i < n_addresses; i++)
     {
-      GimpBacktraceSymbolInfo       *info      = &infos[n       % 2];
-      const GimpBacktraceSymbolInfo *prev_info = &infos[(n + 1) % 2];
+      GimpBacktraceAddressInfo       *info      = &infos[n       % 2];
+      const GimpBacktraceAddressInfo *prev_info = &infos[(n + 1) % 2];
 
       if (gimp_async_is_canceled (async))
         break;
 
-      if (gimp_backtrace_get_symbol_info (addresses[i], info))
+      if (gimp_backtrace_get_address_info (addresses[i], info))
         {
           gboolean empty = TRUE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]