Re: [ptxdist] Remote debugging (2017.05.0)

2018-01-16 Thread Bastian Stender

On 01/16/2018 02:33 PM, Fritz Emboli wrote:

I tried the debugger from the toolchain.
But it dies, because it cannot find libncurses.so.5.

It is OSELAS.Toolchain-2013.12.2. I don't know where
it comes from (inherited, not self compiled).

I have to investigate...

Do i have to use 2013.12.2 for ptxdist-2017.05.0?
Is there a download for Ubuntu 16.04 (64-bit)?


Add our Debian repository to your sources.list:

  http://debian.pengutronix.de/

Regards,
Bastian

--
Pengutronix e.K.
Industrial Linux Solutions
http://www.pengutronix.de/
Peiner Str. 6-8, 31137 Hildesheim, Germany
Amtsgericht Hildesheim, HRA 2686

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Remote debugging (2017.05.0)

2018-01-16 Thread Alexander Dahl
Hei hei,

On Tue, Jan 16, 2018 at 02:33:29PM +0100, Fritz Emboli wrote:
> I tried the debugger from the toolchain.
> But it dies, because it cannot find libncurses.so.5.

What about installing this lib?

> It is OSELAS.Toolchain-2013.12.2. I don't know where
> it comes from (inherited, not self compiled).

This toolchain is quite old already. Anyway, the symbolic link
selected_toolchain in your BSP subfolder platform-dev should guide you
where the toolchain is on your local system.

> Do i have to use 2013.12.2 for ptxdist-2017.05.0?

No, you probably want a newer toolchain like
OSELAS.Toolchain-2016.06.1 for example.

> Is there a download for Ubuntu 16.04 (64-bit)?

I'm not sure, I did build those toolchains by myself from Git. O:-)

But if you feed your search engine with "oselas toolchain" you may
find some precompiled ones.

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured, 
the first thought forbidden, the first freedom denied, chains us all 
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: C28E E6B9 0263 95CF 8FAF  08FA 34AD CD00 7221 5CC6 ***


signature.asc
Description: PGP signature
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Remote debugging (2017.05.0)

2018-01-16 Thread Fritz Emboli
I tried the debugger from the toolchain.
But it dies, because it cannot find libncurses.so.5.

It is OSELAS.Toolchain-2013.12.2. I don't know where
it comes from (inherited, not self compiled).

I have to investigate...

Do i have to use 2013.12.2 for ptxdist-2017.05.0?
Is there a download for Ubuntu 16.04 (64-bit)?

Thanks


2018-01-16 13:54 GMT+01:00 Alexander Dahl :

> Hei hei,
>
> On Tue, Jan 16, 2018 at 12:54:05PM +0100, Fritz Emboli wrote:
> > i'm trying to remote debug an application.
> > Host is Ubuntu 16.04 with gdb-multiarch (7.11.1)
> > Client is an embedded ARM device running gdbserver (7.6.1 from ptxdist).
>
> Did you try the gdb coming with your toolchain? You can easily access
> it from your BSP, e.g.:
>
>   ./platform-foo/selected_toolchain/arm-v5te-linux-gnueabi-gdb
>
> > I do a "set sysroot .../ptxdist/platform-dev/root".
>
> Do you have ./platform-dev/root-debug as a folder? Probably not, that
> was dropped in an older version of ptxdist IIRC. Then you may have to
> set symbol-file like this:
>
>   symbol-file /home/adahl/…/platform-foo/root/usr/bin/.debug/.bar.dbg
>
> (Adapt path, the file part should match with the binary you want to
> debug.)
>
> Greets
> Alex
>
> --
> »With the first link, the chain is forged. The first speech censured,
> the first thought forbidden, the first freedom denied, chains us all
> irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
> *** GnuPG-FP: C28E E6B9 0263 95CF 8FAF  08FA 34AD CD00 7221 5CC6 ***
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
>
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Remote debugging (2017.05.0)

2018-01-16 Thread Juergen Borleis
On Tuesday 16 January 2018 13:54:11 Alexander Dahl wrote:
> > i'm trying to remote debug an application.
> > Host is Ubuntu 16.04 with gdb-multiarch (7.11.1)
> > Client is an embedded ARM device running gdbserver (7.6.1 from
> > ptxdist).
>
> Did you try the gdb coming with your toolchain? You can easily access
> it from your BSP, e.g.:
>
>   ./platform-foo/selected_toolchain/arm-v5te-linux-gnueabi-gdb
>
> > I do a "set sysroot .../ptxdist/platform-dev/root".
>
> Do you have ./platform-dev/root-debug as a folder? Probably not, that
> was dropped in an older version of ptxdist IIRC. Then you may have to
> set symbol-file like this:
>
>   symbol-file /home/adahl/…/platform-foo/root/usr/bin/.debug/.bar.dbg
>
> (Adapt path, the file part should match with the binary you want to
> debug.)

Hmm, gdb searches for ".debug" subfolders by its own. And 
the "./platform-dev/root" has these subfolders when the folder contains 
code files.

Cheers,
Juergen

-- 
Pengutronix e.K.                             | Juergen Borleis             |
Industrial Linux Solutions                   | http://www.pengutronix.de/  |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Remote debugging (2017.05.0)

2018-01-16 Thread Alexander Dahl
Hei hei,

On Tue, Jan 16, 2018 at 12:54:05PM +0100, Fritz Emboli wrote:
> i'm trying to remote debug an application.
> Host is Ubuntu 16.04 with gdb-multiarch (7.11.1)
> Client is an embedded ARM device running gdbserver (7.6.1 from ptxdist).

Did you try the gdb coming with your toolchain? You can easily access
it from your BSP, e.g.:

  ./platform-foo/selected_toolchain/arm-v5te-linux-gnueabi-gdb

> I do a "set sysroot .../ptxdist/platform-dev/root".

Do you have ./platform-dev/root-debug as a folder? Probably not, that
was dropped in an older version of ptxdist IIRC. Then you may have to
set symbol-file like this:

  symbol-file /home/adahl/…/platform-foo/root/usr/bin/.debug/.bar.dbg

(Adapt path, the file part should match with the binary you want to
debug.)

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured, 
the first thought forbidden, the first freedom denied, chains us all 
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: C28E E6B9 0263 95CF 8FAF  08FA 34AD CD00 7221 5CC6 ***


signature.asc
Description: PGP signature
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Remote debugging (2017.05.0)

2018-01-16 Thread Juergen Borleis
Moin, moin,

On Tuesday 16 January 2018 12:54:05 Fritz Emboli wrote:
> i'm trying to remote debug an application.
> Host is Ubuntu 16.04 with gdb-multiarch (7.11.1)
> Client is an embedded ARM device running gdbserver (7.6.1 from ptxdist).
>
> I do a "set sysroot .../ptxdist/platform-dev/root".
>
> When i run gdb on the host, i can attach to the app on
> the client and set breakpoints. But when i try to list
> the source or to single step, it does not work.
>
> Source list always shows:
> 1dl-debug.c: Datei oder Verzeichnis nicht gefunden.
>
> And single step complains about missing line number information.
>
> What am i doing wrong?

You should use the gdb from the toolchain, *not* the one from your 
host-system.

Cheers,
Juergen

-- 
Pengutronix e.K.                             | Juergen Borleis             |
Industrial Linux Solutions                   | http://www.pengutronix.de/  |

___
ptxdist mailing list
ptxdist@pengutronix.de