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 344B13857C5E for ; Sat, 31 Oct 2020 23:26:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 344B13857C5E Received: by mail-il1-x132.google.com with SMTP id z2so9681661ilh.11 for ; Sat, 31 Oct 2020 16:26: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=hDW26FzuSpNWpQW8ez2OIxBH7O2txYa9ytofVqdZmOE=; b=eBsQjaSps5VqI1wrRXIuuMRMgfB9xM5VZ24/qkfOa05B5u1OnR+z33ikisVriIHm/f n7PIVHPxNgccWBX3020m0vwPTrxx9mPw+6JK0YHdic/VpDaEAeSXx3N8fwdU7ua6aZW1 OAmHGmzwPxuFQFZKTzrehSUMbHxkk44Jf2K6d0G2Cy4vd3UbvWvFfY+PsmVBtIcUw9J6 wxh00ek3+V+4cL7q8VvsJJeyiSAOJHG70pXu0YTSPVfbHgAWSL+llXpt/0akqfaxvAtS GszW4SQ+jVmZB+8hViNdzX7iE6mhj5dGjUiFWWXYOJNg9I1+DFB193C4rN+K+vs86EEl dGfQ== X-Gm-Message-State: AOAM5327jzHWYgHCB2NFzMeoo+B2/Gwy2Hkzqfzx9C0TlXIXjgwwxJ7z L2Gkb9CuOuVT/MlAydyUiw2XngY/Kih4pzNwIph/xkQJLKBgxg== X-Google-Smtp-Source: ABdhPJzYPOvuYz55xsaUpKxvqWKBDYFT3tnLH9ht+4raJAYqoUCWqIohdUFzb3MeBm1ARGaLRMrqtUMJ5oEUMOkWLf8= X-Received: by 2002:a92:96c3:: with SMTP id g186mr6178061ilh.10.1604186785634; Sat, 31 Oct 2020 16:26:25 -0700 (PDT) MIME-Version: 1.0 From: William Adair Date: Sat, 31 Oct 2020 19:26:14 -0400 Message-ID: Subject: GDB Incorrectly Reads & Resolves Shared Library Symbols [MinGW-w64] To: gdb@sourceware.org X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, 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: Sat, 31 Oct 2020 23:26:27 -0000 Can anyone recommend a way to start debugging GDB? I've found that when I compile a 32-bit shared library that GDB is unable to correctly resolve the symbols in the image and set breakpoints. Even when I reach a segfault and print the backtrace, the symbols are incorrect or flat out missing. I already verified that the image has .debug_* sections as would be required for DWARF debugging, so I'm perplexed as to why GDB cannot correctly resolve it and am looking for guidance. Thank you.