Commit d459301d authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Make symt_fill_func_line_info() and symt_get_func_line_next() static…

dbghelp: Make symt_fill_func_line_info() and symt_get_func_line_next() static functions inside symbol.c. Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c825fc45
......@@ -772,10 +772,6 @@ extern struct symt_hierarchy_point*
enum SymTagEnum point,
const struct location* loc,
const char* name) DECLSPEC_HIDDEN;
extern BOOL symt_fill_func_line_info(const struct module* module,
const struct symt_function* func,
DWORD64 addr, IMAGEHLP_LINE64* line) DECLSPEC_HIDDEN;
extern BOOL symt_get_func_line_next(const struct module* module, PIMAGEHLP_LINE64 line) DECLSPEC_HIDDEN;
extern struct symt_thunk*
symt_new_thunk(struct module* module,
struct symt_compiland* parent,
......
......@@ -1193,14 +1193,16 @@ static void stabs_finalize_function(struct module* module, struct symt_function*
{
IMAGEHLP_LINE64 il;
struct location loc;
DWORD disp;
if (!func) return;
symt_normalize_function(module, func);
/* To define the debug-start of the function, we use the second line number.
* Not 100% bullet proof, but better than nothing
*/
if (symt_fill_func_line_info(module, func, func->address, &il) &&
symt_get_func_line_next(module, &il))
il.SizeOfStruct = sizeof(il);
if (SymGetLineFromAddr64(module->process->handle, func->address, &disp, &il) &&
SymGetLineNext64(module->process->handle, &il))
{
loc.kind = loc_absolute;
loc.offset = il.Address - func->address;
......
......@@ -1521,7 +1521,7 @@ BOOL WINAPI SymGetSymFromName(HANDLE hProcess, PCSTR Name, PIMAGEHLP_SYMBOL Symb
*
* fills information about a file
*/
BOOL symt_fill_func_line_info(const struct module* module, const struct symt_function* func,
static BOOL symt_fill_func_line_info(const struct module* module, const struct symt_function* func,
DWORD64 addr, IMAGEHLP_LINE64* line)
{
struct line_info* dli = NULL;
......@@ -1775,7 +1775,7 @@ BOOL WINAPI SymGetLinePrev(HANDLE hProcess, PIMAGEHLP_LINE Line)
return TRUE;
}
BOOL symt_get_func_line_next(const struct module* module, PIMAGEHLP_LINE64 line)
static BOOL symt_get_func_line_next(const struct module* module, PIMAGEHLP_LINE64 line)
{
struct line_info* li;
......
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