Hello,
I was trying to debug my program with GDB, however after connecting to the binary, loading all the appropriate files, and running "continue", GDB just hangs and it does not produce any output.
Here are the exact steps I took:
1. Inserted wait_for_continue() in my code 2. make -C build/x86_64/ run/squid KERNEL=linux BOARD=linux & 3. ps -ef | grep squid 4. gdb -p <port number from previous command> 5. symbol-file build/x86_64/debug/squid 6. add-symbol-file build/x86_64/debug/ld-linux.lib.so 7. continue (GDB hangs, I have to CTRL-c it)
Did I perhaps miss a step?
Best, Rumen
Hi Rumen,
'wait_for_continue()' waits for terminal input, so after continuing with GDB you need to press the enter key in the terminal with the Genode log output. And it only works if the run script does not set a timeout, which means it should call 'run_genode_until forever'.
Christian
On 26.02.25 10:29, Rumen Mitov wrote:
Hello,
I was trying to debug my program with GDB, however after connecting to the binary, loading all the appropriate files, and running "continue", GDB just hangs and it does not produce any output.
Here are the exact steps I took:
- Inserted wait_for_continue() in my code
- make -C build/x86_64/ run/squid KERNEL=linux BOARD=linux &
- ps -ef | grep squid
- gdb -p <port number from previous command>
- symbol-file build/x86_64/debug/squid
- add-symbol-file build/x86_64/debug/ld-linux.lib.so
- continue (GDB hangs, I have to CTRL-c it)
Did I perhaps miss a step? Subject: GDB Hangs After Continue Thread-Topic: GDB Hangs After Continue Thread-Index: AQHbiC/wmU1+53wMh06HLby7BfYlag== Date: Wed, 26 Feb 2025 09:29:23 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=constructor.tech; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: GV0P278MB1346:EE_|GV0P278MB1719:EE_ x-ms-office365-filtering-correlation-id: 00c4e3e7-b515-426b-d8aa-08dd56480e8b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|41320700013|1800799024|376014|38070700018|8096899003;x-microsoft-antispam-message-info: =?iso-8859-1?Q?bX8O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8CwKVK+cSMdQGP4Zck82LMs6GTtuVz6aobuAgc9khouf+ijWfmlyvixm? =?iso-8859-1?Q?A0swRw/XOXZovXieHwoe2t386I5QJxNcgM6pawuSjPOaosuYbJVxQIa14G? =?iso-8859-1?Q?6sRSxmWs1yTQMY69MqTNU7+ZghUaAH0U4TausqO1wzIzDVYM3l3Mv6yy6Q? =?iso-8859-1?Q?2juarW9zQXfoiHB3i9GwWW546z/RYsGMb6dOWeZLthFybcFNtsjBgAH6ao? =?iso-8859-1?Q?BRP3EygB20MVL14qPaNLjr4Gh/pqJ/zd6Q3KQYg0YfdR6qvHcR7Zmf/4ak? =?iso-8859-1?Q?zDzbKYYe16jbHMagZUp4oaGCcaHGVaDw+9lT8yX7IR7homGqPKcxgQnMBh? =?iso-8859-1?Q?tw3gzPT//d8Znpl3SfUU4YCJK2SisKbpTqCIArruZ8Ds/Y3WgCzcTjeXwP? =?iso-8859-1?Q?RD/ckXO9iq1faDVyMZlSyFbVEuvhOEwEvXCsr/VlcHpbrQFRvpodIOi6Qo? =?iso-8859-1?Q?KQULwJOa7GxxkBdQsKMcuszd9Nq+bRZXpTSWRZmRfkCQbadLsOL8IvIGaC? =?iso-8859-1?Q?EL6DKWycVi9fNJPzSW7t/SPG3ajz8pSGrQWG5cyyBAXohrfbHd8K4e1GK1? =?iso-8859-1?Q?iX9F1g3/xpJOMFdyCnudPv?x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV0P278MB1346.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(41320700013)(1800799024)(376014)(38070700018)(8096899003);DIR:OUT;SFP:1102;x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?GB7rWS5FGNpg0LGODibooir3WE3zy3ZnskewGqE1IMm2LThfOoZcUM80Qd? =?iso-8859-1?Q?7Q8pfx1zb1jG22JUaxCxL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0HJrUKdsRI2n6JatLNdXGwoyX/Egizjv0d09z2G4nVkxfvhJKQk? =?iso-8859-1?Q?NKFLcj+Mzp6bshyWwpTWqv1siRYtrvAO9K5Ek0cifyIpJUhDtBxERi2jZR? =?iso-8859-1?Q?dBMgPYmweXDimxwWqNGFmfXbXj0ta1iAtoEobcvon2Q1f6VmCy4Hhqum5u? =?iso-8859-1?Q?IhTbt1cORYva7txVSm6Gyuico24vTHkT8Ob2dDQxB4Qfs/6YZuFGMwNwWJ? =?iso-8859-1?Q?VgEkl7ACDSKUv5Yc5YFSJY5nB7IxHwPwGD1BYp3e/3DZ1Z2q2zyfDOnMGs? =?iso-8859-1?Q?MmGVHu+EG/2AUlj59swDEhGXVF8Rko7XYB67NuLti5qbLk8QLsU6/ZzIQh? =?iso-8859-1?Q?cKD0uL8uKiifsS7SYvtc4NZWA7vTFwoVzg7F0ndP6zHLvU9Ms7EZ5FFrE6? =?iso-8859-1?Q?c85LT4Q0Civ1u4gsDfdP/3lcQ/uAelgMR4m3HyiiFg5WBE3eWCnO5JXn1N? =?iso-8859-1?Q?E11uy2KyBYvj8pOj+F49XOTwL2dhd4BaIk3+sxifUkPMJANOEooQm+WF1V? =?iso-8859-1?Q?AjwoGTPjXtOFDIjhHO/Dsxovf3BrPMjMJGOoCWDJAPIrO7Gwxpzo2GtCac? =?iso-8859-1?Q?RkxsM1EZYv7Eya0IKU2np0YHh5zf4d4MVOWzrGGI7E3vHZFUXihXNxTlTI? =?iso-8859-1?Q?g/vQJEGh4DE7NvusThcgZFHddBZWfgPH2PjEy9K+tGdFUz+m7TXvyc+g? =?iso-8859-1?Q?==?MIME-Version: 1.0 X-OriginatorOrg: constructor.tech X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: GV0P278MB1346.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 00c4e3e7-b515-426b-d8aa-08dd56480e8b X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2025 09:29:23.8005 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 63b4c45f-8b20-4e30-85aa-ddcfe51addbc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aNlN4BHVn6gy2ydNoVhizLLl2uiQQ0TrICCdaHF1mnILyBM3vL8ECFa92d4cz+M4lhYcHydHKgvLTLqcQFTQl8OI7Jnb983ZLgfDmTKMwacX-MS-Exchange-Transport-CrossTenantHeadersStamped: GV0P278MB1719 Message-ID-Hash: IT5MBXIVK4RTHQ4TXIF54T4E3ATZZPCY X-Message-ID-Hash: IT5MBXIVK4RTHQ4TXIF54T4E3ATZZPCY X-MailFrom: Rumen.Mitov@constructor.tech X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: Genode users mailing list List-Id: Genode users mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============7486400870954317403==" X-Spam_host: mail.genode-labs.com X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HTML_MESSAGE=0.001,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_BLOCKED=0.001,RCVD_IN_MSPIKE_H2=0.001,RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,URIBL_BLOCKED=0.001
Hello,
I was trying to debug my program with GDB, however after connecting to the binary, loading all the appropriate files, and running "continue", GDB just hangs and it does not produce any output.
Here are the exact steps I took:
- Inserted wait_for_continue() in my code
- make -C build/x86_64/ run/squid KERNEL=linux BOARD=linux &
- ps -ef | grep squid
- gdb -p <port number from previous command>
- symbol-file build/x86_64/debug/squid
- add-symbol-file build/x86_64/debug/ld-linux.lib.so
- continue (GDB hangs, I have to CTRL-c it)
Did I perhaps miss a step?
Best, Rumen
users mailing list -- users@lists.genode.org To unsubscribe send an email to users-leave@lists.genode.org Archived at https://lists.genode.org/mailman3/hyperkitty/list/users@lists.genode.org/mes...