From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73640 invoked by alias); 28 Feb 2018 15:19:22 -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 73605 invoked by uid 89); 28 Feb 2018 15:19:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:alternative X-Spam-User: qpsmtpd, 3 recipients X-HELO: mail-ua0-f171.google.com Received: from mail-ua0-f171.google.com (HELO mail-ua0-f171.google.com) (209.85.217.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 28 Feb 2018 15:19:20 +0000 Received: by mail-ua0-f171.google.com with SMTP id m43so1760227uah.1; Wed, 28 Feb 2018 07:19:19 -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=oP0IsPe9S1rDEAQQh5RIY1fqXk9IzDklZmMqDJWHbj0=; b=XqWFPfCiS4MeoVHOHLohI6RLbRniwW60ox/yMoEc5Q+yjRq+zYCE/1bcVyLB/IVG6s O/+VOZD9E/OuOJ6ugPfoLuIGw3p+Mu2Sehhvzi2Hddbea4UfEguvcWeDB4ukJ/qnvIEz sVthefO57gEs/GFCTEHXi6LLSs37DRG3z4x5wH/D3b/sTx4YlyLBSlUMSdsrvZNwDM90 gaFXyjTpchc5ndzpWjsbVeNM+rOk/VbQ4xNF1HQPjPQwcX7wbA6yqh12romatoCe3AKX s8OeesW+06iKN4ROOpg70KYQDREDf1T8yvJhW3xEgZuvpgRTibFrwcFLCmi2O67oGFJh Tm7w== X-Gm-Message-State: APf1xPAW0Yj4pJwEo1QQr134R5EUNOEQ/jf39u02FhA7ZM3jB4HKtyiz zcq41GUOIEual8rjL1mVnWyP4zvVYXn+zeJQqKht1g== X-Google-Smtp-Source: AG47ELsO4UjX1ji/SQI/xk/7vGs7ZqrEkNqraASdreo/fE1yFpNyXQRPgZpL4cFQJDJALrUzEpMXffwmtdZA416smxs= X-Received: by 10.176.27.133 with SMTP id k5mr13871313uai.2.1519831157985; Wed, 28 Feb 2018 07:19:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.14.26 with HTTP; Wed, 28 Feb 2018 07:19:17 -0800 (PST) From: Satya Prakash Prasad Date: Wed, 28 Feb 2018 15:19:00 -0000 Message-ID: Subject: GDB Trace functions calls when executing a program To: gdb-info@sourceware.org, gdb-faq@sourceware.org, gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00110.txt.bz2 Please let me know if in GDB there is a way to print function names when program is executing - this is to just track / trace the code flow. Generally in projects which has thousands of lines of code - it is very difficult to trace a flow. The first is to decide where to put a breakpoint for analysis. But to know the place to put breakpoint we need to know where to enable it - I mean it should be within a function of a flow. So can we just enable some command and let the program when running using gdb - gdb can simply print functions name as it executes them. Is the same possible? Regards, Prakash