Re: [Lldb-commits] [PATCH] D63540: Fix lookup of symbols at the same address with no size vs. size

2019-11-20 Thread Jan Kratochvil via lldb-commits
On Wed, 20 Nov 2019 11:57:46 +0100, Omair Javaid wrote:
> I am running Arm and AArch64 tests on docker containers running Ubuntu
> Xenial.

Could you run it outside of the docker if the problem still happens?

Could you suggests which variant should I try?  There are many:
http://cdimage.ubuntu.com/netboot/16.04/
HWE kernel or not?
generic or generic-lpae?
beagleboard or pandaboard or tegra or wandboard?


> Underlying hardware is Thunder X1 or D05 machines.

I have only Raspberry Pi 3B+, I hope it can run the images above from a flash
drive / MicroSD.


Jan

___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


Re: [Lldb-commits] [PATCH] D63540: Fix lookup of symbols at the same address with no size vs. size

2019-11-20 Thread Omair Javaid via lldb-commits
I am running Arm and AArch64 tests on docker containers running Ubuntu
Xenial.

Underlying hardware is Thunder X1 or D05 machines.

On Tue, 19 Nov 2019, 3:31 pm Jan Kratochvil via Phabricator, <
revi...@reviews.llvm.org> wrote:

> jankratochvil added a comment.
>
> @omjavaid I guess it depends on some system library - what OS
> vendor/release do you have the regression reproducible on?
> Still not reproducible for me.  Trying
> `bfbbf0aba81a84da8b53d4d159d080e77ad8ee70` with applied D70155 <
> https://reviews.llvm.org/D70155> and applied/unapplied this D63540 <
> https://reviews.llvm.org/D63540> on Fedora 30 armv7l and it has no
> difference in testsuite (except for the added/removed testcase of this
> D63540 ).
> In both cases I get these:
>
>   Unexpected Passing Tests (5):
>   lldb-api :: functionalities/archives/TestBSDArchives.py
>   lldb-api :: functionalities/inferior-assert/TestInferiorAssert.py
>   lldb-api ::
> functionalities/thread/concurrent_events/TestConcurrentTwoWatchpointsOneSignal.py
>   lldb-api :: linux/builtin_trap/TestBuiltinTrap.py
>   lldb-api ::
> linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py
>   Failing Tests (103):
>   lldb-api ::
> commands/expression/argument_passing_restrictions/TestArgumentPassingRestrictions.py
>   lldb-api ::
> commands/expression/call-function/TestCallStdStringFunction.py
>   lldb-api ::
> commands/expression/call-function/TestCallStopAndContinue.py
>   lldb-api ::
> commands/expression/call-function/TestCallUserDefinedFunction.py
>   lldb-api ::
> commands/expression/call-overridden-method/TestCallOverriddenMethod.py
>   lldb-api :: commands/expression/call-restarts/TestCallThatRestarts.py
>   lldb-api :: commands/expression/char/TestExprsChar.py
>   lldb-api ::
> commands/expression/class_template_specialization_empty_pack/TestClassTemplateSpecializationParametersHandling.py
>   lldb-api :: commands/expression/context-object/TestContextObject.py
>   lldb-api :: commands/expression/dont_allow_jit/TestAllowJIT.py
>   lldb-api :: commands/expression/entry-bp/TestExprEntryBP.py
>   lldb-api ::
> commands/expression/expr-in-syscall/TestExpressionInSyscall.py
>   lldb-api :: commands/expression/formatters/TestFormatters.py
>   lldb-api ::
> commands/expression/inline-namespace/TestInlineNamespace.py
>   lldb-api :: commands/expression/no-deadlock/TestExprDoesntBlock.py
>   lldb-api ::
> commands/expression/persistent_types/TestNestedPersistentTypes.py
>   lldb-api ::
> commands/expression/persistent_types/TestPersistentTypes.py
>   lldb-api :: commands/expression/pr35310/TestExprsBug35310.py
>   lldb-api :: commands/expression/radar_9531204/TestPrintfAfterUp.py
>   lldb-api :: commands/expression/radar_9673664/TestExprHelpExamples.py
>   lldb-api :: commands/expression/rdar44436068/Test128BitsInteger.py
>   lldb-api ::
> commands/expression/static-initializers/TestStaticInitializers.py
>   lldb-api :: commands/expression/test/TestExprs.py
>   lldb-api :: commands/expression/timeout/TestCallWithTimeout.py
>   lldb-api ::
> commands/expression/unwind_expression/TestUnwindExpression.py
>   lldb-api :: commands/expression/xvalue/TestXValuePrinting.py
>   lldb-api ::
> commands/register/register/register_command/TestRegisters.py
>   lldb-api ::
> commands/watchpoints/hello_watchlocation/TestWatchLocation.py
>   lldb-api ::
> commands/watchpoints/multi_watchpoint_slots/TestWatchpointMultipleSlots.py
>   lldb-api ::
> commands/watchpoints/watchpoint_size/TestWatchpointSizes.py
>   lldb-api ::
> functionalities/breakpoint/require_hw_breakpoints/TestRequireHWBreakpoints.py
>   lldb-api ::
> functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
>   lldb-api ::
> functionalities/data-formatter/data-formatter-synthval/TestDataFormatterSynthVal.py
>   lldb-api :: functionalities/load_unload/TestLoadUnload.py
>   lldb-api :: functionalities/load_using_paths/TestLoadUsingPaths.py
>   lldb-api :: functionalities/memory/find/TestMemoryFind.py
>   lldb-api :: functionalities/process_group/TestChangeProcessGroup.py
>   lldb-api :: functionalities/return-value/TestReturnValue.py
>   lldb-api :: functionalities/show_location/TestShowLocationDwarf5.py
>   lldb-api :: functionalities/thread/num_threads/TestNumThreads.py
>   lldb-api :: lang/c/bitfields/TestBitfields.py
>   lldb-api :: lang/c/function_types/TestFunctionTypes.py
>   lldb-api :: lang/c/shared_lib/TestSharedLib.py
>   lldb-api :: lang/c/strings/TestCStrings.py
>   lldb-api :: lang/c/struct_types/TestStructTypes.py
>   lldb-api :: lang/cpp/auto/TestCPPAuto.py
>   lldb-api :: lang/cpp/call-function/TestCallCPPFunction.py
>   lldb-api :: lang/cpp/chained-calls/TestCppChainedCalls.py
>   lldb-api ::
> 

Re: [Lldb-commits] [PATCH] D63540: Fix lookup of symbols at the same address with no size vs. size

2019-11-18 Thread Omair Javaid via lldb-commits
Hi Jan,

This is known problem and fix is posted here https://reviews.llvm.org/D70155

Please use cmake argument -DLLVM_HOST_TRIPLE=arm-linux-gnueabihf as a
workaround.

Thanks!

On Fri, 15 Nov 2019 at 21:27, Jan Kratochvil via Phabricator <
revi...@reviews.llvm.org> wrote:

> jankratochvil added a comment.
>
> @omjavaid In the end I built a native `armv7l-unknown-linux-gnueabihf`
> lldb using:
>
>   cmake ../llvm-monorepo/llvm/ -DCMAKE_BUILD_TYPE=Release
> -DLLVM_ENABLE_PROJECTS="lldb;clang;lld"  -DLLVM_ENABLE_ASSERTIONS=ON
> -DLLVM_BUILD_LLVM_DYLIB
>
> Built it from trunk: `16bdcc809c72c639a2888b6b859dca88453e3c28`
> But it does not stop even in a trivial breakpoint:
>
>   $ echo 'int main(){}'|gcc -x c - -g;./bin/lldb -o 'b main' -o r ./a.out
>   (lldb) target create "./a.out"
>   Current executable set to
> '/home/fedora/jankratochvil/jkratoch/redhat/llvm-monorepo-clangassertdyn/a.out'
> (arm).
>   (lldb) b main
>   Breakpoint 1: where = a.out`main + 12 at :1:1, address =
> 0x000103dc
>   (lldb) r
>   Process 12146 exited with status = 0 (0x)
>
>   Process 12146 launched:
> '/home/fedora/jankratochvil/jkratoch/redhat/llvm-monorepo-clangassertdyn/a.out'
> (arm)
>   (lldb) q
>
> Are there some off-trunk patches needed?
>
>   kernel-5.2.9-200.fc30.armv7hl
>
>
> Repository:
>   rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D63540/new/
>
> https://reviews.llvm.org/D63540
>
>
>
>

-- 
Omair Javaid
www.linaro.org
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


Re: [Lldb-commits] [PATCH] D63540: Fix lookup of symbols at the same address with no size vs. size

2019-11-14 Thread Omair Javaid via lldb-commits
On Thu, 14 Nov 2019 at 15:04, Jan Kratochvil via Phabricator <
revi...@reviews.llvm.org> wrote:

> jankratochvil added a comment.
>
> Getting `ld.lld: error: failed to open ../../../../bin/clang-10: Cannot
> allocate memory` when trying to build `lldb` natively on arm32 (the same
> error happens both for `clang` and for `lldb`).  Apparently memory is not a
> problem but the linker runs out of its 32-bit address space.
> I am aware of the cross-compiling `lldb` possibility but I haven't tried
> that yet. Do you have some simple instructions how to cross-compile `lldb`
> for arm32 on x86_64 host?
>

C_COMPILER=clang
CXX_COMPILER=clang++
LLVM_SOURCE_DIR="../../llvm-project/llvm"

BUILD_ENV_TRIPLE=`gcc -dumpmachine`

GCC_INC=/usr/$LLDB_HOST_TRIPLE/include
#GCC_V3=`gcc --version | grep ^gcc | sed 's/^.* //g'`
GCC_V3=`gcc -dumpversion`
TARGET_C_FLAGS="-target $LLDB_HOST_TRIPLE -I/$GCC_INC
-I/$GCC_INC/c++/$GCC_V3/$LLDB_HOST_TRIPLE"
TARGET_CXX_FLAGS="$TARGET_C_FLAGS"

cd ./build/$LLDB_HOST_TRIPLE

cmake -G Ninja \
-DCMAKE_CROSSCOMPILING=True \
-DCMAKE_C_COMPILER=$C_COMPILER \
-DCMAKE_CXX_COMPILER=$CXX_COMPILER \
-DCMAKE_C_FLAGS="$TARGET_C_FLAGS" \
-DCMAKE_CXX_FLAGS="$TARGET_CXX_FLAGS" \
-DLLDB_TEST_COMPILER=$LLDB_HOST_TRIPLE-gcc \
-DLLVM_USE_LINKER=gold \
-DLLVM_TABLEGEN=$PWD/../host/bin/llvm-tblgen \
-DCLANG_TABLEGEN=$PWD/../host/bin/clang-tblgen \
-DLLDB_TABLEGEN=$PWD/../host/bin/lldb-tblgen \
-DLLVM_HOST_TRIPLE=$LLDB_HOST_TRIPLE \
-DLLVM_ENABLE_PROJECTS="clang;lldb" \
-DLLVM_TARGETS_TO_BUILD=$TARGET_ARCH \
-DCMAKE_LIBRARY_ARCHITECTURE=$LLDB_HOST_TRIPLE \
-DCMAKE_IGNORE_PATH=/usr/lib/$BUILD_ENV_TRIPLE \
-DLLDB_DISABLE_PYTHON=1 \
-DLLDB_DISABLE_LIBEDIT=1 \
-DLLDB_DISABLE_CURSES=1 \
-DCMAKE_BUILD_TYPE=Release \
-DLLDB_EXPORT_ALL_SYMBOLS=1 \
-DLLVM_ENABLE_ASSERTIONS=On \
$LLVM_SOURCE_DIR

ninja lldb-server


>
>
> Repository:
>   rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D63540/new/
>
> https://reviews.llvm.org/D63540
>
>
>
>

-- 
Omair Javaid
www.linaro.org
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits