Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
2d713a28
Commit
2d713a28
authored
11 years ago
by
Graham Madarasz (Graham Linden)
Browse files
Options
Downloads
Patches
Plain Diff
Google Breakpad Fix. Code reviewed by DaveP
parent
14f02e48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
autobuild.xml
+7
-7
7 additions, 7 deletions
autobuild.xml
indra/cmake/GoogleBreakpad.cmake
+3
-0
3 additions, 0 deletions
indra/cmake/GoogleBreakpad.cmake
indra/llcommon/llapp.cpp
+37
-0
37 additions, 0 deletions
indra/llcommon/llapp.cpp
with
47 additions
and
7 deletions
autobuild.xml
+
7
−
7
View file @
2d713a28
...
@@ -762,9 +762,9 @@
...
@@ -762,9 +762,9 @@
<key>
archive
</key>
<key>
archive
</key>
<map>
<map>
<key>
hash
</key>
<key>
hash
</key>
<string>
79976b2f93ec5716709b752483ffa
04
a
</string>
<string>
aff5566e04003de0383941981198e
04
e
</string>
<key>
url
</key>
<key>
url
</key>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-google-breakpad/rev/2730
21
/arch/Darwin/installer/google_breakpad-0.0.0-rev1099-darwin-2013032
8
.tar.bz2
</string>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-google-breakpad/rev/2730
73
/arch/Darwin/installer/google_breakpad-0.0.0-rev1099-darwin-2013032
9
.tar.bz2
</string>
</map>
</map>
<key>
name
</key>
<key>
name
</key>
<string>
darwin
</string>
<string>
darwin
</string>
...
@@ -774,9 +774,9 @@
...
@@ -774,9 +774,9 @@
<key>
archive
</key>
<key>
archive
</key>
<map>
<map>
<key>
hash
</key>
<key>
hash
</key>
<string>
1df1bb19a43a2d1a684ce9d4da9dc7bc
</string>
<string>
52257e5eb166a0b69c9c0c38f6e1920e
</string>
<key>
url
</key>
<key>
url
</key>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-google-breakpad/rev/2730
21
/arch/Linux/installer/google_breakpad-0.0.0-rev1099-linux-2013032
8
.tar.bz2
</string>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-google-breakpad/rev/2730
79
/arch/Linux/installer/google_breakpad-0.0.0-rev1099-linux-2013032
9
.tar.bz2
</string>
</map>
</map>
<key>
name
</key>
<key>
name
</key>
<string>
linux
</string>
<string>
linux
</string>
...
@@ -786,9 +786,9 @@
...
@@ -786,9 +786,9 @@
<key>
archive
</key>
<key>
archive
</key>
<map>
<map>
<key>
hash
</key>
<key>
hash
</key>
<string>
cfd02d75dbd55327de71db81dc8a3f41
</string>
<string>
d812a6dfcabe6528198a3191068dac09
</string>
<key>
url
</key>
<key>
url
</key>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-google-breakpad/rev/2730
21
/arch/CYGWIN/installer/google_breakpad-0.0.0-rev1099-windows-2013032
8
.tar.bz2
</string>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-google-breakpad/rev/2730
73
/arch/CYGWIN/installer/google_breakpad-0.0.0-rev1099-windows-2013032
9
.tar.bz2
</string>
</map>
</map>
<key>
name
</key>
<key>
name
</key>
<string>
windows
</string>
<string>
windows
</string>
...
@@ -836,7 +836,7 @@
...
@@ -836,7 +836,7 @@
<key>
hash
</key>
<key>
hash
</key>
<string>
98994d5b0b4b3d43be22aa6a5c36e6fa
</string>
<string>
98994d5b0b4b3d43be22aa6a5c36e6fa
</string>
<key>
url
</key>
<key>
url
</key>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-google-mock-graham/rev/272961/arch/CYGWIN/installer/gmock-1.6.0-windows-20130327.tar.bz2
</string>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-google-mock-graham/rev/272961/arch/CYGWIN/installer/gmock-1.6.0-windows-20130327.tar.bz2
</string>
</map>
</map>
<key>
name
</key>
<key>
name
</key>
<string>
windows
</string>
<string>
windows
</string>
...
...
This diff is collapsed.
Click to expand it.
indra/cmake/GoogleBreakpad.cmake
+
3
−
0
View file @
2d713a28
...
@@ -18,5 +18,8 @@ else (STANDALONE)
...
@@ -18,5 +18,8 @@ else (STANDALONE)
# yes, this does look dumb, no, it's not incorrect
# yes, this does look dumb, no, it's not incorrect
#
#
set
(
BREAKPAD_INCLUDE_DIRECTORIES
"
${
LIBS_PREBUILT_DIR
}
/include/google_breakpad"
"
${
LIBS_PREBUILT_DIR
}
/include/google_breakpad/google_breakpad"
)
set
(
BREAKPAD_INCLUDE_DIRECTORIES
"
${
LIBS_PREBUILT_DIR
}
/include/google_breakpad"
"
${
LIBS_PREBUILT_DIR
}
/include/google_breakpad/google_breakpad"
)
# yes, this does look dumb, no, it's not incorrect
#
set
(
BREAKPAD_INCLUDE_DIRECTORIES
"
${
LIBS_PREBUILT_DIR
}
/include/google_breakpad"
"
${
LIBS_PREBUILT_DIR
}
/include/google_breakpad/google_breakpad"
)
endif
(
STANDALONE
)
endif
(
STANDALONE
)
This diff is collapsed.
Click to expand it.
indra/llcommon/llapp.cpp
+
37
−
0
View file @
2d713a28
...
@@ -910,6 +910,43 @@ bool unix_minidump_callback(const google_breakpad::MinidumpDescriptor& minidump_
...
@@ -910,6 +910,43 @@ bool unix_minidump_callback(const google_breakpad::MinidumpDescriptor& minidump_
#endif
#endif
#if LL_LINUX
bool
unix_minidump_callback
(
const
google_breakpad
::
MinidumpDescriptor
&
minidump_desc
,
void
*
context
,
bool
succeeded
)
{
// Copy minidump file path into fixed buffer in the app instance to avoid
// heap allocations in a crash handler.
// path format: <dump_dir>/<minidump_id>.dmp
int
dirPathLength
=
strlen
(
minidump_desc
.
path
());
// The path must not be truncated.
llassert
((
dirPathLength
+
5
)
<=
LLApp
::
MAX_MINDUMP_PATH_LENGTH
);
char
*
path
=
LLApp
::
instance
()
->
getMiniDumpFilename
();
S32
remaining
=
LLApp
::
MAX_MINDUMP_PATH_LENGTH
;
strncpy
(
path
,
minidump_desc
.
path
(),
remaining
);
remaining
-=
dirPathLength
;
path
+=
dirPathLength
;
if
(
remaining
>
0
&&
dirPathLength
>
0
&&
path
[
-
1
]
!=
'/'
)
{
*
path
++
=
'/'
;
--
remaining
;
}
llinfos
<<
"generated minidump: "
<<
LLApp
::
instance
()
->
getMiniDumpFilename
()
<<
llendl
;
LLApp
::
runErrorHandler
();
#ifndef LL_RELEASE_FOR_DOWNLOAD
clear_signals
();
return
false
;
#else
return
true
;
#endif
}
#endif
bool
unix_post_minidump_callback
(
const
char
*
dump_dir
,
bool
unix_post_minidump_callback
(
const
char
*
dump_dir
,
const
char
*
minidump_id
,
const
char
*
minidump_id
,
void
*
context
,
bool
succeeded
)
void
*
context
,
bool
succeeded
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment