Commit 7ac87dc0 authored by Ell's avatar Ell

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.
parent 77746fd8
......@@ -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;
......
......@@ -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;
}
......
......@@ -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__ */
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment