This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove global traceframe_fun and traceframe_sal
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Thu, 24 Oct 2013 11:19:45 -0600
- Subject: Re: [PATCH] Remove global traceframe_fun and traceframe_sal
- Authentication-results: sourceware.org; auth=none
- References: <1382623173-17782-1-git-send-email-yao at codesourcery dot com>
>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:
Yao> I happen to see traceframe_fun and traceframe_sal are static
Yao> variables, which are not necessary to me. They are only used in
Yao> set_traceframe_context, and they are not stateful. This patch is
Yao> to remove them.
Yao> 2013-10-24 Yao Qi <yao@codesourcery.com>
Yao> * tracepoint.c (traceframe_fun): Remove.
Yao> (traceframe_sal): Remove.
Yao> (set_traceframe_context): Add local variables.
This is ok.
Tom