From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by sourceware.org (Postfix) with ESMTPS id CFD5C396E42B for ; Wed, 28 Oct 2020 13:45:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CFD5C396E42B Received: by mail-il1-x132.google.com with SMTP id v18so4720256ilg.1 for ; Wed, 28 Oct 2020 06:45:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kkvuUEEg19ThQ9ulADDfc42D5I2n4xKQjdrPj3qRo2M=; b=WSG6zkS1KY3zUrf0cXa3JUqjQKqbhLFOKihj56RHp4gWeYS3tfuC20S6JjeBmr08dl 4eWpomOCuezFAbjGLx87fkKPib8T0v4kXN04m1MJCGUZcCXBl34guV+r4l5+Lw79FquY hFAivbM7qADUqx8D1omU4vaSSmjfWgcY+9v3oCM8sA2/xo9aBcpYJLjCFeEAVfuubTOx dc7Jzei2bF0/M/5fHGCKdge1MpF5re2NSGIuYNR5CndxHhyx2TT1cmD/Ct/nnr2qlu4N ibmSIg3tZuy4qNyvgBkcP/aTord2bOFsYBEwECZXJQIPq/KgPUMGrkopsOm22fJZIaGJ ZP6g== X-Gm-Message-State: AOAM5312hIY95OtPO2j3n7DogkG5eORVvMz8nmCEnV8+8oQiYGrq/qOx I7Qc/kt9SVFxdSxZtMFdKEH5gb4OQuKeo5i2yzusQnWW X-Google-Smtp-Source: ABdhPJxD7FnCu9hHO0uwFI0q5FEEzaGbGBCxaF5pedmr8vH4FI4i4TiUsMGNwe7SL5kPTTyCYWIQsguQm3WaAqKaUx8= X-Received: by 2002:a92:7a0c:: with SMTP id v12mr5025631ilc.37.1603892725930; Wed, 28 Oct 2020 06:45:25 -0700 (PDT) MIME-Version: 1.0 From: Srinath Avadhanula Date: Wed, 28 Oct 2020 09:45:15 -0400 Message-ID: Subject: Python events.new_objfile with "set auto-solib-add off" To: gdb@sourceware.org X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2020 13:45:28 -0000 Hi, We have an application which (unfortunately) loads a ton of shared libraries. Typically, we are only interested in debugging a small subset of these libraries. We use a combination of "set auto-solib-add off" and "sharedlibrary" commands to only load a selected set of symbols. However, the "sharedlibrary" command can only be issued after the executable actually loads the shared library. This is a bit of an annoyance. I was hoping that I could therefore use the Python events.new_objfile listener to issue a sharedlibrary command if we detect that a library of interest is loaded. However, it looks like this particular event just does not fire if "set auto-solib-add off" is set. Is there a Python API which I can use to get notified that a new shared library is loaded by the inferior (even if no symbols have been loaded for that shared library)? Regards, Srinath