From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id E6C99396D836 for ; Thu, 7 Jan 2021 07:41:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E6C99396D836 Received: by mail-ej1-x636.google.com with SMTP id qw4so8332013ejb.12 for ; Wed, 06 Jan 2021 23:41:07 -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=N2Uzmlz1ZCGuKsfH3QOpoopPhnXw5vezLUNIH99GU3c=; b=P5fU+lES2/VqQUfMlg/Uug8pC8UjhfJtEr7Je8G3vEFdkicWjw5T5ribjujmn4WZr9 VvhQnWXdwQ8YYWHhpGUrtwyhyiyPBaU1Lmo42kTzb3kwyRnQvcmg6DSl78c+TWnde5If TtZ3MGaJjEvfGqxQvvZz78cn3BEPHAo16K24so4SvjjuROGvH2ssAAs/zfgNjGIFANX7 w55p63ulQ6geYScO8raowRgnYiIR5vLPjDS2lNHnKNAAYnTBdBKzjD4kg7KfYIMR4cfo qyx7DslxPGPwWaw875oRa6OHMI2KvUoTp0C/mU2XZlq2Lq3s/z1gJc66zZ8x7vOuyvNj /bfg== X-Gm-Message-State: AOAM531qEFatdzunpnjLoQSWZeIgiVZ3lPQQFdtqg4YIP+jE7oBzo0uQ 6bcD74iKX2pGmcWqN7Jel7j3Jsiv3ubzi7Gl2TXETbBiMni3RA== X-Google-Smtp-Source: ABdhPJxHOr/ggxc+fixkolItvd7mKGxk94HYST6YLeVVBAf65is15Z/WRinIp/yz39H+3MKl7wdVBlhJY6BpSCtl7v8= X-Received: by 2002:a17:906:ec9:: with SMTP id u9mr5588336eji.400.1610005266516; Wed, 06 Jan 2021 23:41:06 -0800 (PST) MIME-Version: 1.0 From: Nagmat Nazarov Date: Thu, 7 Jan 2021 16:40:54 +0900 Message-ID: Subject: Need real life synthetic use cases for debugging To: Reuben Thomas via Gdb X-Spam-Status: No, score=-0.4 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, T_KAM_HTML_FONT_INVALID 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: Thu, 07 Jan 2021 07:41:09 -0000 We have *implemented PrC(program context) register* which adds program counter value of instruction where we have* jump (JAL or JALR) instruction* on RISC-V architecture. By using *PrC* we can* set breakpoints on exact order of function calls*. We example below you can see PrC values of function call graph where f1,f2 and f3 are functions: PATH PrC f1 9c6 f1->f2 1246 f1->f2->f3 19be f1->f3 12ac f1->f3->f2 18c0 f2 a04 f2->f1 111c f2->f1->f3 1a02 f2->f3 117c f2->f3->f1 1742 f3 a42 f3->f1 1008 f3->f1->f2 1888 f3->f2 1056 f3->f2->f1 176e As you see all PrC values are different from each other. By using PrC I can set breakpoints on consecutive chain of function calls. Now I need real life synthetic cases where I can use this method. Any help is appreciated. Kind regards, Nagmat nagmat@gmail.com