* [ptxdist] Remote debugging (2017.05.0)
@ 2018-01-16 11:54 Fritz Emboli
2018-01-16 12:46 ` Juergen Borleis
2018-01-16 12:54 ` Alexander Dahl
0 siblings, 2 replies; 7+ messages in thread
From: Fritz Emboli @ 2018-01-16 11:54 UTC (permalink / raw)
To: PTXdist Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 563 bytes --]
Hi,
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:
1 dl-debug.c: Datei oder Verzeichnis nicht gefunden.
And single step complains about missing line number information.
What am i doing wrong?
Thanks
[-- Attachment #1.2: Type: text/html, Size: 897 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] Remote debugging (2017.05.0)
2018-01-16 11:54 [ptxdist] Remote debugging (2017.05.0) Fritz Emboli
@ 2018-01-16 12:46 ` Juergen Borleis
2018-01-16 12:54 ` Alexander Dahl
1 sibling, 0 replies; 7+ messages in thread
From: Juergen Borleis @ 2018-01-16 12:46 UTC (permalink / raw)
To: ptxdist; +Cc: Fritz Emboli
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:
> 1 dl-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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] Remote debugging (2017.05.0)
2018-01-16 11:54 [ptxdist] Remote debugging (2017.05.0) Fritz Emboli
2018-01-16 12:46 ` Juergen Borleis
@ 2018-01-16 12:54 ` Alexander Dahl
2018-01-16 13:00 ` Juergen Borleis
2018-01-16 13:33 ` Fritz Emboli
1 sibling, 2 replies; 7+ messages in thread
From: Alexander Dahl @ 2018-01-16 12:54 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 1095 bytes --]
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 ***
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] Remote debugging (2017.05.0)
2018-01-16 12:54 ` Alexander Dahl
@ 2018-01-16 13:00 ` Juergen Borleis
2018-01-16 13:33 ` Fritz Emboli
1 sibling, 0 replies; 7+ messages in thread
From: Juergen Borleis @ 2018-01-16 13:00 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Dahl
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] Remote debugging (2017.05.0)
2018-01-16 12:54 ` Alexander Dahl
2018-01-16 13:00 ` Juergen Borleis
@ 2018-01-16 13:33 ` Fritz Emboli
2018-01-16 14:12 ` Alexander Dahl
2018-01-16 14:18 ` Bastian Stender
1 sibling, 2 replies; 7+ messages in thread
From: Fritz Emboli @ 2018-01-16 13:33 UTC (permalink / raw)
To: PTXdist Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 1659 bytes --]
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 <post@lespocky.de>:
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 2371 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] Remote debugging (2017.05.0)
2018-01-16 13:33 ` Fritz Emboli
@ 2018-01-16 14:12 ` Alexander Dahl
2018-01-16 14:18 ` Bastian Stender
1 sibling, 0 replies; 7+ messages in thread
From: Alexander Dahl @ 2018-01-16 14:12 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 1163 bytes --]
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 ***
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] Remote debugging (2017.05.0)
2018-01-16 13:33 ` Fritz Emboli
2018-01-16 14:12 ` Alexander Dahl
@ 2018-01-16 14:18 ` Bastian Stender
1 sibling, 0 replies; 7+ messages in thread
From: Bastian Stender @ 2018-01-16 14:18 UTC (permalink / raw)
To: ptxdist, Fritz Emboli
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-01-16 14:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16 11:54 [ptxdist] Remote debugging (2017.05.0) Fritz Emboli
2018-01-16 12:46 ` Juergen Borleis
2018-01-16 12:54 ` Alexander Dahl
2018-01-16 13:00 ` Juergen Borleis
2018-01-16 13:33 ` Fritz Emboli
2018-01-16 14:12 ` Alexander Dahl
2018-01-16 14:18 ` Bastian Stender
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox