This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
forked from llvm-mirror/lldb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
42 changed files
with
3,284 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,7 @@ D: Test suite | |
N: Pavel Labath | ||
E: labath@google.com | ||
D: Linux, Android | ||
|
||
N: Nat! | ||
E: nat@codeon.de | ||
D: MulleObjC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6.0.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[![Codeon Gmbh](CodeonLogo.png)](//www.codeon.de) | ||
|
||
# mulle-lldb | ||
|
||
This is a debugger for [mulle-objc](//www.mulle-kybernetik.com/weblog/2015/mulle_objc_a_new_objective_c_.html) | ||
runtime. | ||
|
||
> See [README.txt](README.txt) for more information about lldb | ||
The debugger is built together with the [mulle-clang](https://github.com/Codeon-GmbH/mulle-clang) compiler. See the compiler for more details. | ||
|
||
|
||
## Author | ||
|
||
[Nat!](//www.mulle-kybernetik.com/weblog) for | ||
[Codeon GmbH](//www.codeon.de) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
#!/usr/bin/env bash | ||
|
||
[ "${TRACE}" = "YES" ] && set -x && : "$0" "$@" | ||
|
||
OLD_LLVM_BRANCH="release_70" | ||
OLD_MULLE_DEV_BRANCH="mulle_lldb_70" | ||
NEW_LLVM_BRANCH="release_80" | ||
NEW_MULLE_DEV_BRANCH="mulle_lldb_80" | ||
|
||
LLVM_REMOTE="llvm" | ||
|
||
BEFOREFILE=.before-tags.txt | ||
AFTERFILE=.after-tags.txt | ||
SOURCEDIRS="include/ source/" | ||
|
||
|
||
# | ||
# this function should be identical in mulle-clang/mulle-lldb | ||
# If you edit them edit the corresponding file too | ||
# | ||
|
||
####### >-> DONT EDIT >-> | ||
|
||
migrate() | ||
{ | ||
[ ! -e "MULLE_LLDB_VERSION" ] && echo "cd to the root of mulle-lldb" >&2 && exit 1 | ||
|
||
if ! git rev-parse --verify "${OLD_MULLE_DEV_BRANCH}" > /dev/null 2>&1 | ||
then | ||
echo "Branch ${OLD_MULLE_DEV_BRANCH} must exist" >&2 && exit 1 | ||
fi | ||
|
||
|
||
if git rev-parse --verify "${NEW_MULLE_DEV_BRANCH}" > /dev/null 2>&1 | ||
then | ||
echo "Branch ${NEW_MULLE_DEV_BRANCH} must not exist yet" >&2 && exit 1 | ||
fi | ||
|
||
# | ||
# remove garbage tmp if present | ||
# | ||
if git rev-parse --verify "tmp_${NEW_MULLE_DEV_BRANCH}" > /dev/null 2>&1 | ||
then | ||
git branch -D "tmp_${NEW_MULLE_DEV_BRANCH}" || exit 1 | ||
fi | ||
|
||
# | ||
# remove garbage tag if present | ||
# | ||
if git rev-parse --verify "squashed_${OLD_MULLE_DEV_BRANCH}" > /dev/null 2>&1 | ||
then | ||
git tag -d "squashed_${OLD_MULLE_DEV_BRANCH}" || exit 1 | ||
fi | ||
|
||
# | ||
# get new version from LLVM (github) | ||
# | ||
if ! git ls-remote --exit-code llvm > /dev/null | ||
then | ||
git remote add "${LLVM_REMOTE}" https://github.com/llvm-mirror/lldb.git 2> /dev/null | ||
fi | ||
git fetch "${LLVM_REMOTE}" || exit 1 | ||
|
||
if ! git rev-parse --verify "${LLVM_REMOTE}/${OLD_LLVM_BRANCH}" > /dev/null 2>&1 | ||
then | ||
echo "Branch ${LLVM_REMOTE}/${OLD_LLVM_BRANCH} must exist" >&2 && exit 1 | ||
fi | ||
|
||
|
||
# find the place we forked from last time | ||
ancestor="`git merge-base "${LLVM_REMOTE}/${OLD_LLVM_BRANCH}" "${OLD_MULLE_DEV_BRANCH}"`" | ||
[ -z "${ancestor}" ] && echo "No common ancestor found" >&2 && exit 1 | ||
|
||
# create a new temporary branch to contain squashed patchset | ||
echo "### 1: Checkout" >&2 && | ||
|
||
git checkout -b "tmp_${NEW_MULLE_DEV_BRANCH}" "${ancestor}" || exit 1 | ||
|
||
# | ||
# squash everything into new branch | ||
# this helps weed out re-edits and commits that weren't useful | ||
# easing the conflict resolution | ||
# | ||
# ???? git merge --squash "tmp_${OLD_MULLE_DEV_BRANCH}" | ||
echo "### 2: Squash Merge" >&2 | ||
|
||
git merge --squash "${OLD_MULLE_DEV_BRANCH}" || exit 1 | ||
|
||
|
||
# commit stuff | ||
echo "### 3: Commit" >&2 | ||
|
||
git commit -m "${OLD_MULLE_DEV_BRANCH} squashed" || exit 1 | ||
|
||
# remember until where did we squash the old branch (in case of | ||
# future edits) | ||
echo "### 4: Tag" >&2 | ||
|
||
git tag "squashed_${OLD_MULLE_DEV_BRANCH}" "${OLD_MULLE_DEV_BRANCH}" || exit 1 | ||
|
||
# count our change marker texts | ||
grep -R '@mulle-' ${SOURCEDIRS} > "${BEFOREFILE}" || exit 1 | ||
|
||
# | ||
# Now get the new stuff | ||
# | ||
echo "### 5: Checkout" >&2 | ||
|
||
git checkout -b "${NEW_MULLE_DEV_BRANCH}" "${LLVM_REMOTE}/${NEW_LLVM_BRANCH}" || exit 1 | ||
|
||
echo "### 6: Cherry pick" >&2 | ||
|
||
if ! git cherry-pick "tmp_${NEW_MULLE_DEV_BRANCH}" | ||
then | ||
git status -s | ||
exit 1 | ||
fi | ||
} | ||
|
||
|
||
cleanup() | ||
{ | ||
# count our change marker texts again | ||
grep -R '@mulle-' ${SOURCEDIRS} > "${AFTERFILE}" || exit 1 | ||
|
||
local before | ||
local after | ||
|
||
before="`cat "${BEFOREFILE}" `" | ||
after="`cat "${AFTERFILE}" `" | ||
|
||
if [ "${before}" != "${after}" ] | ||
then | ||
echo "Some @mulle- tags got lost in the merge" >&2 | ||
echo "before : ${BEFOREFILE}" >&2 | ||
echo "after : ${AFTERFILE}" >&2 | ||
diff "${BEFOREFILE}" "${AFTERFILE}" >&2 | ||
exit 1 | ||
fi | ||
|
||
# | ||
# resolve conflicts manually. | ||
# Check with grep '@mulle-objc' ... | wc -l, that all changes are present | ||
# | ||
echo "### 7: Tmp branch delete" >&2 | ||
|
||
git branch -D "tmp_${NEW_MULLE_DEV_BRANCH}" || exit 1 | ||
rm "${AFTERFILE}" "${BEFOREFILE}" | ||
} | ||
|
||
|
||
####### <-< DONT EDIT <-< | ||
|
||
|
||
# | ||
# since an old version of this script gets checked out over the new one | ||
# try to have bash parsed everything already | ||
# | ||
# | ||
# since an old version of this script gets checked out over the new one | ||
# try to have bash parsed everything already | ||
# | ||
[ ! -e "MULLE_LLDB_VERSION" ] && echo "cd to the root of mulle-lldb" >&2 && exit 1 | ||
|
||
|
||
case "$1" in | ||
'continue'|'cleanup') | ||
cleanup | ||
;; | ||
|
||
*) | ||
if [ ! -f "${AFTERFILE}" ] | ||
then | ||
migrate | ||
fi | ||
cleanup | ||
;; | ||
esac | ||
|
||
|
||
migrate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.