From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59542 invoked by alias); 5 Jan 2018 06:48:43 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 50330 invoked by uid 89); 5 Jan 2018 06:48:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*r:sk:gdb@sou, H*c:alternative X-HELO: mail-oi0-f45.google.com Received: from mail-oi0-f45.google.com (HELO mail-oi0-f45.google.com) (209.85.218.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 Jan 2018 06:48:35 +0000 Received: by mail-oi0-f45.google.com with SMTP id x20so2557848oix.12 for ; Thu, 04 Jan 2018 22:48:35 -0800 (PST) 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=Lq2khRtTFFYKP0J9O04Npx6jSqbwKDlCC2/dE7zIwac=; b=bK98g1TLRFjtNXye6P3ghYCvLQyTInl3eGlg5HZ8bRGu08+rdQxvjPvNlZSUJf8LF6 HFoX5awfzjW/jvgJEevNq0b3S5y2WxGO8TILTUziEpEoaMvsz3or5T3XSOiXt3rB+GRI HKeYAC0RkMWXxtDWc1/q+5hKmcLPqiQ+eBRf63m+ZfQzKbjyGZ4cGnwCkt9ZFvNH0xXf xttlmSFOShO1ge4aejQy0cDenQc1iwxe9oAzwT8rzy+LqwvyVXEZuE8iYS2OM+MIjIbr 6dAydksf5lT51TKssjHSnBqW4GuB+00okW7WaojvcJToRCi6B6XuwzaCczGwLBrEv6SN qC8w== X-Gm-Message-State: AKGB3mLB0Uq4QzfRWYDQJ1r+zPa8wEftX2MZpTuQ1D9sFHCvJr03+cPD yFoYCiRhEow7OY5FSqywsCa+GmwnCmu5hfKb4YwfAC87 X-Google-Smtp-Source: ACJfBou5YWmyZzrBrW3cX529kvoHOwjxQ5VibfuizyKweWOvikek0FzJ0GkcBqmHa7NbtFBzFTs8F5d5e5fX0aplkyI= X-Received: by 10.202.218.10 with SMTP id r10mr1198695oig.268.1515134913561; Thu, 04 Jan 2018 22:48:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.168.71.206 with HTTP; Thu, 4 Jan 2018 22:48:13 -0800 (PST) From: shravan Date: Fri, 05 Jan 2018 06:48:00 -0000 Message-ID: Subject: How does GDB load source line information during dlopen calls To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-01/txt/msg00005.txt.bz2 Hi all, First time poster to this list - so please bear with me :) I am currently working on a project that has a custom dynamic loader for shared libraries in the ELF format - it does NOT use dlopen. When debugging this dynamically loaded library, I am hoping to be able to single step through the C source code of functions in the library in tui mode. If I had use dlopen this would work fine, but this does not work using the custom dynamic loader. I am able to get the libraries symbols loaded with "add-symbol-file". However the src line information is still not working. For example "list someFunctionInLibrary" prints nothing and "layout src" shows a blank screen I am hoping for any information or suggestions. Is there some way to hint to gdb to load the source line information from a particular file at a particular address? (Also please let me know if there is a better venue for the question). Thanks! Shravan