https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117300

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-10-26
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sam James from comment #4)
> I think (not 100% sure) we have to clobber it unconditionally if gdb was
> built with a configure option for some default debuginfod server, but I have
> not checked on fedora if they just export that var in their default profiles
> instead.

Unless they have modified gdb sources gdb just does:
```
static bool
debuginfod_is_enabled ()
{
  const char *urls = skip_spaces (getenv (DEBUGINFOD_URLS_ENV_VAR));

  if (debuginfod_enabled == debuginfod_off
      || urls == nullptr
      || *urls == '\0')
    return false;

  if (debuginfod_enabled == debuginfod_ask)
    {

```

Reply via email to