From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic306-20.consmr.mail.ir2.yahoo.com (sonic306-20.consmr.mail.ir2.yahoo.com [77.238.176.206]) by sourceware.org (Postfix) with ESMTPS id 29DCF383E83E for ; Sat, 16 May 2020 17:28:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 29DCF383E83E X-YMail-OSG: wtKzo8AVM1kUKCVQU42SDKpojAiwXHNVP6bWhHFrWoNG_pBWf1zjzc1U2K9FAyd AnSuaWQms.esdIdSvrAbFgi12KhiZ.pnpfwXlHpeNccVH_3t7sX.ms6tEEAdKYQMoH8lRMgI8uey IAj_B_A1zVFDQEGNW9d3i6J4gpynWTlP6jtwgas7CJZ_PgotYXt2lwjPwkknPBA_FZiqD8q60gZv XgnkYq03Mdg3wFFIsWneryX2zlFPPS1eEAWtdeSJBWeavyPcznBeBDafe82Dsc2kn2a61pVQBtyJ kOteJqnQ8FULtj3a64J0Jua_c3VbjMNIYPUQprUwbgz.gnFxqJk2B_D89v.ZR9eDRlb13_Ok.rfA fw9wPftXqHRYbv5DovTpbcTqhOfoaSD3MSN8Nv5YpOL_XZnNdym5stivibB9lph4_iUNzyFpl.hB WEynDyhiqBp6M3xMGyki08k2Y3Koym7eGofG8CRnExRF3fG72pj3RUML1nbCRhy4AaC2PwZRxgjM RNJiV6Um_jl.XovgWia8aedXtMyPQWpI1mmeJPNBy7NyWrUprj2.wF4lcZI8FDB_MI.jwpN_yvXg YNE12sw99y2Azo3Vu3vE9CIBV5b7BVXCjKigBC0gwVAIpNmNkfcG6HEhtPvvv_5dqrIE2UQ8m2KT IUGfCeP03tEK2ZqDFKxRWLgk2XLPLC7CVyKtt91wVy0RlzvsRoV3GjvCCnUBuJZJt5EG9lyp154s oktG48zPuif16crypfCo3HFMzcOn_FTwy7CJFoGfPWY2XWCFOnsRUQNokCj3Vxn9v3BTpm0UCN7U PP6Oz4EtJA51UcdU_XB4w4vT.yAWuMRlDBDS33PmRPO9hdYJZYjbIiWWavT_mNlWjXAegxdLZl7l oiNNj6ItjvxABT7Qg.buu7jnSVfVsDmN5sc3JpRv9gxBcrHUYVzsewUJGDu1BAo7u3.GifaRjtQe QzvzL7jzfwGsLRRa_tGA0OdRIkx7.kAgWeeYAh024OUnJgiDGjPlug6gnV9KfnBiNoGT7IttFAnp 74OZa7Qt3.xptTLTT1crulex2A8tArLlv8f42eZW1s6MdZna29lRtt.zOwxdf710cOhoz5oEv2bk o3kMhf2R6pRWomjmV_bT12iZxJTds1UVqvtTDQzuVueaJL9cAhxlXpim_9e209CIGZFNQ7GS1yR7 ueOubIvmbxxxQe4HD1fgpmGSJdd8Dw7PDb.B7jEhNXhQzdtL9o9HsuGow97dprHm5I7OQd7oXe.9 B5881Hko5DsJi02o_5Wmdag200.KebqADCElkOgbH_qvFsMDG1bH0bs9mV7PMr.wAB8TqqT2zOlc jtYdH0BVoFh1VUTkXTUzJJ3H6b3.vAj6lAbUwhTRW3QwktSZXeL5pAGU0urvF6N0ustLBtIV0QT8 G7SzJWn0re8hf9S3IAhOklLw7 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Sat, 16 May 2020 17:28:18 +0000 Received: by smtp418.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8142922a7a13f425a55b77cec3219a55; Sat, 16 May 2020 17:28:13 +0000 (UTC) From: Hannes Domani To: gdb-patches@sourceware.org Subject: [RFC][PATCH 0/6] Step program considering the source column information Date: Sat, 16 May 2020 19:26:27 +0200 Message-Id: <20200516172632.4803-1-ssbssa@yahoo.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Antivirus: Avast (VPS 200515-0, 05/15/2020), Outbound message X-Antivirus-Status: Clean References: <20200516172632.4803-1-ssbssa.ref@yahoo.de> X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 May 2020 17:28:20 -0000 Basically, this implements the new commands nextc (nc) and stepc (sc), which allow to step through the program until an instruction is reached, that belongs to another source column (according to the debug information). The current column location is visualized in the frame info, and in the TUI. Also, the column information is added to 'maint info line-table' and the python line table interface. Since the frame info output is different, this certainly breaks the testsuite, so this column indicator needs a parameter to disable, but I wasn't concerned about this yet. With the example code from PR25913, it looks like this: (gdb) start Temporary breakpoint 2 at 0x40162d: file gdb-25911.c, line 4. Starting program: C:\src\tests\gdb-25911.exe Temporary breakpoint 2, main () at gdb-25911.c:4 4 int a = 4; ^ (gdb) nc 6 a = 5; a = 6; a = 7; ^ (gdb) nc 6 a = 5; a = 6; a = 7; ^ (gdb) nc 6 a = 5; a = 6; a = 7; ^ (gdb) nc 8 return 0; What do you think of this so far? [PATCH 1/6] Add column information of dwarf to the symbol information [PATCH 2/6] Implement nextc and stepc commands (PR gdb/25913) [PATCH 3/6] Add column information to maint info line-table [PATCH 4/6] Add LineTableEntry.column to python line table interface [PATCH 5/6] Show column of current execution point in frame info (PR [PATCH 6/6] Show column of current execution point in TUI