Re: drkonqi's many debuggers

2023-09-04 Thread Albert Astals Cid
El dijous, 31 d’agost de 2023, a les 12:42:59 (CEST), Halla Rempt va escriure:
> On dinsdag 29 augustus 2023 05:22:56 CEST Thiago Macieira wrote:
> > True, but the majority of our user base is still Linux, so if we had to
> > choose only one, it would have to be gdb.
> 
> Um, no? The majority is on Windows.

Do you have actual numbers for this?

Albert

> 
> Halla






Re: drkonqi's many debuggers

2023-08-31 Thread Thiago Macieira
On Thursday, 31 August 2023 03:42:59 PDT Halla Rempt wrote:
> On dinsdag 29 augustus 2023 05:22:56 CEST Thiago Macieira wrote:
> > True, but the majority of our user base is still Linux, so if we had to
> > choose only one, it would have to be gdb.
> 
> Um, no? The majority is on Windows.

Yes, we have certain hero apps (like Krita) that would skew the statistics. So 
maybe you're right.

But that doesn't change the conclusion because the vast majority of Windows 
users won't have a debugger installed. Those few that do won't have the 
debugger in the standard $PATH because it's just not the way things are done 
on Windows.

So rephrasing what I meant to say, "the vast majority of users who have any 
debugger installed are Linux users with gdb".

But I maintain that we should support both GDB and LLDB.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering





Re: drkonqi's many debuggers

2023-08-31 Thread Halla Rempt
On dinsdag 29 augustus 2023 05:22:56 CEST Thiago Macieira wrote:
> True, but the majority of our user base is still Linux, so if we had to 
> choose 
> only one, it would have to be gdb.

Um, no? The majority is on Windows.

Halla




Re: drkonqi's many debuggers

2023-08-29 Thread Ben Cooksley
On Tue, Aug 29, 2023 at 4:25 PM Thiago Macieira  wrote:

> On Monday, 28 August 2023 20:30:36 PDT Harald Sitter wrote:
> > I am not quite following. We can depend on any debugger we want,
> > surely? I mean, there are practical implications to consider for sure,
> > but gdb being the dominant debugger on Linux doesn't prevent us from
> > depending on lldb instead.
>
> It does because it might be missing in the system far more often than gdb.
> We'd get more backtraces and therefore more data if we focused on gdb
>
> Another point is that Linux distributions have been shipping gdb with
> debuginfod support for a year or two. lldb support for it is still pending:
> https://github.com/llvm/llvm-project/issues/52732
>
> Therefore, I repeat: if there's room for only one, it's gdb.
>
> If we do support both, then on Linux gdb must be used in preference.
>

As an additional note here, my preference would also be for gdb to be used,
if only because it is more reliable and dependable.

Currently we have special code in the CI tooling to ensure that stray lldb
processes left behind by unit tests on our FreeBSD CI workers are all
killed off.
Otherwise they sit there eating up an entire CPU core at 100% utilisation
until an admin logs in and kills them off.

Cheers,
Ben


> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>Software Architect - Intel DCAI Cloud Engineering
> .
>
>
>


Re: drkonqi's many debuggers

2023-08-28 Thread Thiago Macieira
On Monday, 28 August 2023 21:33:25 PDT Nate Graham wrote:
> On 8/28/23 22:25, Thiago Macieira wrote:
> > It does because it might be missing in the system far more often than gdb.
> > We'd get more backtraces and therefore more data if we focused on gdb
> > 
> > Another point is that Linux distributions have been shipping gdb with
> > debuginfod support for a year or two. lldb support for it is still
> > pending:
> > https://github.com/llvm/llvm-project/issues/52732
> > 
> > Therefore, I repeat: if there's room for only one, it's gdb.
> > 
> > If we do support both, then on Linux gdb must be used in preference.
> 
> DrKonqi itself could declare a required build dependency on lldb, and
> then we would know it's present on the system. Distros that don't
> package it would then have to omit DrKonqi, or start packaging it.

Build dependencies don't necessarily translate to runtime dependencies. What 
you're asking for is package management, something we don't control. Yes, we 
could convince all packagers to add it, but

a) that's not a sure-fire guarantee
b) do we even want to? Do we want to make it so every user who installs Plasma 
Workspace must have a debugger?

No, debuggers are optional.

Then there's my argument about libdebuginfo integration.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering





Re: drkonqi's many debuggers

2023-08-28 Thread Nate Graham

On 8/28/23 22:25, Thiago Macieira wrote:

It does because it might be missing in the system far more often than gdb.
We'd get more backtraces and therefore more data if we focused on gdb

Another point is that Linux distributions have been shipping gdb with
debuginfod support for a year or two. lldb support for it is still pending:
https://github.com/llvm/llvm-project/issues/52732

Therefore, I repeat: if there's room for only one, it's gdb.

If we do support both, then on Linux gdb must be used in preference.



DrKonqi itself could declare a required build dependency on lldb, and 
then we would know it's present on the system. Distros that don't 
package it would then have to omit DrKonqi, or start packaging it.


Nate


Re: drkonqi's many debuggers

2023-08-28 Thread Thiago Macieira
On Monday, 28 August 2023 20:30:36 PDT Harald Sitter wrote:
> I am not quite following. We can depend on any debugger we want,
> surely? I mean, there are practical implications to consider for sure,
> but gdb being the dominant debugger on Linux doesn't prevent us from
> depending on lldb instead.

It does because it might be missing in the system far more often than gdb. 
We'd get more backtraces and therefore more data if we focused on gdb

Another point is that Linux distributions have been shipping gdb with 
debuginfod support for a year or two. lldb support for it is still pending:
https://github.com/llvm/llvm-project/issues/52732

Therefore, I repeat: if there's room for only one, it's gdb.

If we do support both, then on Linux gdb must be used in preference.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering
.




Re: drkonqi's many debuggers

2023-08-28 Thread Harald Sitter
On Tue, Aug 29, 2023 at 5:23 AM Thiago Macieira  wrote:
>
> On Monday, 28 August 2023 12:59:01 PDT Adriaan de Groot wrote:
> > (puts on FreeBSD hat) On the non-GNU side of the world, lldb is the thing
> > that is "installed anyway" and gdb takes extra effort. Though I don't know
> > if the lldb integration works -- I have both installed, and I don't know if
> > I ever bother to interact with DrKonqi (sorry).
>
> True, but the majority of our user base is still Linux, so if we had to choose
> only one, it would have to be gdb.

I am not quite following. We can depend on any debugger we want,
surely? I mean, there are practical implications to consider for sure,
but gdb being the dominant debugger on Linux doesn't prevent us from
depending on lldb instead.

HS


Re: drkonqi's many debuggers

2023-08-28 Thread Thiago Macieira
On Monday, 28 August 2023 12:59:01 PDT Adriaan de Groot wrote:
> (puts on FreeBSD hat) On the non-GNU side of the world, lldb is the thing
> that is "installed anyway" and gdb takes extra effort. Though I don't know
> if the lldb integration works -- I have both installed, and I don't know if
> I ever bother to interact with DrKonqi (sorry).

True, but the majority of our user base is still Linux, so if we had to choose 
only one, it would have to be gdb.

That's probably why we need to have both gdb and lldb supported.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering





Re: drkonqi's many debuggers

2023-08-28 Thread Adriaan de Groot
On Monday, 28 August 2023 17:23:00 CEST Harald Sitter wrote:
> I am wondering: does anyone actually use anything besides the default
> gdb debugger? We have a lot of code just for supporting multiple
> debuggers and I am wondering if we couldn't just focus on one debugger
> and get less code with a better experience (both in writing and
> reading it).

(puts on FreeBSD hat) On the non-GNU side of the world, lldb is the thing that 
is "installed anyway" and gdb takes extra effort. Though I don't know if the 
lldb integration works -- I have both installed, and I don't know if I ever 
bother to interact with DrKonqi (sorry).

[ade]

signature.asc
Description: This is a digitally signed message part.


Re: drkonqi's many debuggers

2023-08-28 Thread Thiago Macieira
On Monday, 28 August 2023 08:23:00 PDT Harald Sitter wrote:
> On a related note: does anyone have opinions on using lldb instead of
> gdb?

This contradicts your earlier point of:

> I am wondering if we couldn't just focus on one debugger
> and get less code with a better experience (both in writing and
> reading it).

If you want *one* debugger, then it has to be GDB on Linux, because it's the 
one that most people will have installed.

$ lldb --version
zsh: command not found: lldb

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering





drkonqi's many debuggers

2023-08-28 Thread Harald Sitter
I am wondering: does anyone actually use anything besides the default
gdb debugger? We have a lot of code just for supporting multiple
debuggers and I am wondering if we couldn't just focus on one debugger
and get less code with a better experience (both in writing and
reading it).

On a related note: does anyone have opinions on using lldb instead of
gdb? It seems much faster to me and should be just as scriptable as
gdb from a quick glance. The trace format would change though, so
that's a challenge. OTOH texty traces are a thing of the past with
sentry anyway.

HS