Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send symbol address #837

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/BugsnagUnity/Payload/StackTraceLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ internal static StackTraceLine FromStackFrame(StackFrame stackFrame)
var file = stackFrame.GetFileName();
var lineNumber = stackFrame.GetFileLineNumber();
var methodName = new Method(method).DisplayName();

return new StackTraceLine(file, lineNumber, methodName);
}

Expand All @@ -131,6 +130,7 @@ internal StackTraceLine(string file, int? lineNumber, string methodName)
this.AddToPayload("lineNumber", lineNumber.Value);
}
this.AddToPayload("method", methodName);
this.AddToPayload("symbolAddress", "MY-SYMBOL-ADDRESS");
}
internal StackTraceLine(Dictionary<string, object> data)
{
Expand Down Expand Up @@ -176,14 +176,25 @@ public string Method
}
}

public string SymbolAddress
{
get
{
return this.Get("symbolAddress") as string;
}
set
{
this.AddToPayload("symbolAddress", value);
}
}
public string FrameAddress { get; set; }
public bool? IsLr { get; set; }
public bool? IsPc { get; set; }
public string MachoFile { get; set; }
public string MachoLoadAddress { get; set; }
public string MachoUuid { get; set; }
public string MachoVmAddress { get; set; }
public string SymbolAddress { get; set; }

public bool? InProject { get; set; }
}
}