From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id JltONRXES2TCoTgAWB0awg (envelope-from ) for ; Fri, 28 Apr 2023 09:03:17 -0400 Received: by simark.ca (Postfix, from userid 112) id CCF771E221; Fri, 28 Apr 2023 09:03:17 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=nO9hzcbc; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 604F61E0D3 for ; Fri, 28 Apr 2023 09:03:17 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0A0003858431 for ; Fri, 28 Apr 2023 13:03:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A0003858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682686996; bh=tQo/rKVNAMF6+bOzigZlAYrsnKkwAImBsd5hOCtcqeo=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=nO9hzcbc7UgpkHo4XEHF3U+srwhoRc++WpGjdjr6l3GO5oreq1gLquLT8niOAdP9k uwXqS4Pf+BV+8UAfypQMhTafu+mtuOZ8ade52GdAAkdB8v/wfPcJPO5ag7ZdZYED9o IGG83VKcd08+ViBvQeoI1nOiX+H+oSdi67pFmQY4= Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2084.outbound.protection.outlook.com [40.107.13.84]) by sourceware.org (Postfix) with ESMTPS id DA45B3858D37 for ; Fri, 28 Apr 2023 13:02:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA45B3858D37 Received: from DB6PR0202CA0006.eurprd02.prod.outlook.com (2603:10a6:4:29::16) by AS8PR08MB6247.eurprd08.prod.outlook.com (2603:10a6:20b:29c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.24; Fri, 28 Apr 2023 13:02:36 +0000 Received: from DBAEUR03FT049.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:29:cafe::72) by DB6PR0202CA0006.outlook.office365.com (2603:10a6:4:29::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.34 via Frontend Transport; Fri, 28 Apr 2023 13:02:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT049.mail.protection.outlook.com (100.127.142.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.11 via Frontend Transport; Fri, 28 Apr 2023 13:02:36 +0000 Received: ("Tessian outbound 99a3040377ca:v136"); Fri, 28 Apr 2023 13:02:36 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: cfde61aaa62e3732 X-CR-MTA-TID: 64aa7808 Received: from 7215653963a3.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C0D378E8-7095-49D6-821B-5C31CDB09A16.1; Fri, 28 Apr 2023 13:02:29 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7215653963a3.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 28 Apr 2023 13:02:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nVcyKTtQV50nP76NMM8sBEPbTCPgoUKFYlMItrjLKG4PzyLlyYqAWavD7vvYzc1JaOq0eWC55x7VtK+QG2VMhZZsuW3jZmLwVyNW88Y7PBhWPjBtUc1hbZuGEVvqURkb3n7bAt2oqPGJNPuzYNfpWU4n4GWuFYmrp9Oa6me9sBY5LsuHq4WFizzDu5+C3Gif0vuiK+ual9AiG/PDYl8uiqoAO5b8Znx/bG43abTp7fUJzPfG9WA3fleSw+1q15sFqkaiuBGln4RGBhDcM9oNpeytuWr5FJ7Y4b1Lj3z1Y1j3/PZZQgXG8KSJA9ko3RPq9oSzeOWlEFJirdZ+oD147Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tQo/rKVNAMF6+bOzigZlAYrsnKkwAImBsd5hOCtcqeo=; b=bPRQn9Y72qV/2yAEKYpNX7SVNKQP4ZqlDVve0ry0KN+CjqKxZQ95uksLAYdwU/rKzHp/enDm2necXk94BVY/eexVFxPbEAFT6QUL8eDcSNnSKlSSEY7LbprAjDKqPMIvib86J3vlnWcDSrleVOL4cLSZMChSNhBXZurxyWyKAHJgYEdAmObFTk+ypRd2gZzpW64ZQsb1Ee6RTb/ZeDtJb3n53tpsoHb7T6tkEEYYAD7ZDuHxLIUUdBQjwL1iKDcYIKqOV9VGDVff9YNUBj+QK2UljkA01qZ89x/pta49sZfNoswTy200b5TYWc4ATm2HXJz12ZwQKy2auKeakJViag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by DU2PR08MB7326.eurprd08.prod.outlook.com (2603:10a6:10:2e5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.23; Fri, 28 Apr 2023 13:02:27 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::61f2:6a3c:f256:8616]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::61f2:6a3c:f256:8616%7]) with mapi id 15.20.6340.022; Fri, 28 Apr 2023 13:02:27 +0000 Message-ID: Date: Fri, 28 Apr 2023 14:02:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Problems interrupting remote target on powerpc Content-Language: en-US To: Chris Packham Cc: GDB Mailing list References: <00c24cea-f256-3149-dcc7-1bad08e8bef8@arm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0481.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a8::18) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|DU2PR08MB7326:EE_|DBAEUR03FT049:EE_|AS8PR08MB6247:EE_ X-MS-Office365-Filtering-Correlation-Id: dbb6075e-0e12-4747-d9fb-08db47e8d6a3 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: nYakwYbk44UHs9W9pH6MdAgWkSv6+MSfbXUnu3zfu48Degcag9nCqrTgwmv0AzvZSoHLCl/iJ3ux0pTTXumXSl0weCJ7x3KpuRjJgkVu/kakEdWcIL01kBDWXj6AIzkmqxMvWtqs97bF+hJx0XWs+dJLiStj7W8youY6TxHmhCuhVlpNaiiJ+4c2kNv/kQ1qFCczfzjav1aP99glJZRVfjb7ynDgcJWWo4vFpl886EAtZYwGVhq2f/qS3+OHNlxRxv2SGg3PxISZuEAoxkUc1QdNW276NCyO5RH8SJV4h7o0oIqXgRbEeoaGxJ1L9qBqsniS3od8adY0UVBNk7MPxf4ows7zrGf0CnnB3cb/7lYe1cnEB3t7RiXX5ToyScqhvenQo6cxHOKjjyF/2P5OmmnUgvpOll2rkaBJGb6pTo4EeVSXrOq6I+iNqsQR8rjYCpCFAQydhouCa9qAmx/crR1sf2Y+zLZRhRHzPCFF6nA8iT2DtRXWJpuCSkrrFpzC+3VMgsR1lR8luUz7dLMP3FAfFry/iJDYzNc3hYwHlphp9I+eHtnAtVsRF+7vnLTS9GlWYWTKd1KaW2CUgchRh56aJABew63d+TCpn7xcVb0lbQUm4APt8D7nrz35aysf3ZZV0py0jSuCLkWdcSgZqA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(346002)(396003)(136003)(366004)(39850400004)(376002)(451199021)(44832011)(8936002)(8676002)(5660300002)(83380400001)(66946007)(316002)(66476007)(66556008)(4326008)(41300700001)(38100700002)(31686004)(2616005)(2906002)(6916009)(478600001)(86362001)(53546011)(186003)(31696002)(26005)(6512007)(6486002)(6506007)(36756003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7326 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 5354ccbb-1dd6-4ae9-e7bd-08db47e8d101 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GknJC73HNx8mFlVDDtkriig+7J4n4Z6PleONsF1Na+rWq/8TEI/B6iy0YLVI4/qY1seBym92uwOj8Cn0Z/53Mj39epEmL8c4kNTokVO9GPg6wlyRXcsQY7myalKNBczHRuVJ0rcJJ7m3XFm5iX45qa+wQRUAkahTOBh3z7F/+5/W08lZYfHfu5DsvNV+tn6BXz+Q05U6Va+WiHnDltE/k2dOCo4ZVr7C8gsm2JBflPX86vDQmWvA3c6B65ls4/vLNpT2WGNt/K6fVI5QMpBcKXsKcmkP/DBBGs5ETdK4zCHblKyvSeSAv8hZ5abRp8bX6THtI6whYdUu+X7AC6XkRfvzBhIkcRJtJxfS10V2mxZR78rIC/82uQYeFYrRkAxuqGMsyoptT9H2LjAST1F0/xsY47+j6z4EqUW7ofRTTAZgvG1Hwl64W0CqFU798XwRUZvS1q/zPnpfIDfUlWM7yojgOuKutawtIHEQ42+ZxSVl2aT1bKf97VQrPJ/xMB565n6uvslR4HoOigm5s8/J9vSTgadVXxqTVZYt9GPTxiAaZxhmhwuUMlpDkWLtGKySEnAMwtpsS+NofzLW3bKq5Wg6i4LH2H2GwdxjgdvzJhFrj6UhsQRiEQPvAcfgL1y7UY4uZ7S0W8yBS+pRt7+IAAM2I/Bkhm594PQOVjrw+X108ZpYHR6/hcCz8cQoqw2Q5+r31CiOJtgZeOP18MbgUST3QpYrmGDmmXB5AXIIwnLcJPRPkZT6P5CIlTi/3dLdUAYwQTT3eefzSw+be+nFvQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230028)(4636009)(136003)(396003)(346002)(39860400002)(376002)(451199021)(46966006)(36840700001)(40470700004)(2616005)(31686004)(83380400001)(47076005)(336012)(36860700001)(40460700003)(186003)(40480700001)(356005)(4326008)(41300700001)(8676002)(2906002)(8936002)(44832011)(70206006)(70586007)(6862004)(5660300002)(6512007)(6506007)(53546011)(81166007)(316002)(82740400003)(26005)(31696002)(86362001)(34020700004)(478600001)(82310400005)(36756003)(6486002)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2023 13:02:36.1948 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dbb6075e-0e12-4747-d9fb-08db47e8d6a3 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT049.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6247 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: , From: Luis Machado via Gdb Reply-To: Luis Machado Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 4/28/23 12:25, Chris Packham wrote: > > > On Fri, 28 Apr 2023, 9:41 PM Luis Machado, > wrote: > > On 4/28/23 10:38, Chris Packham wrote: > > > > > > On Fri, 28 Apr 2023, 9:19 PM Luis Machado, >> wrote: > > > >     On 4/28/23 10:14, Chris Packham via Gdb wrote: > >      > On Thu, 27 Apr 2023, 4:55 PM Chris Packham, >> wrote: > >      > > >      >> Hi GDB, > >      >> > >      >> I've had a few users report to me issues with interrupting a running > >      >> process after continuing when attached to a remote gdbserver running > >      >> on a powerpc target. Everything seems to work properly on arm and > >      >> aarch64 so there might be some powerpc or big-endian specific issue > >      >> lurking. > >      >> > >      >> The gdbserver version we're currently using is from gdb-11.2 built > >      >> from source and most users have gdb-multiarch 12.1 from ubuntu 22.04 > >      >> (some might still be using gdb-multiarch 10.2 from a PPA). > >      >> > >      >> Does this ring any bells for anyone? I'm going to try and get hold of > >      >> a powerpc target to test with to see if I can reproduce it for myself. > >      >> > >      >> Thanks, > >      >> Chris > >      >> > >      > > >      > Did some digging of my own I can report that indeed things aren't working > >      > well for powerpc. I tried updating gdbserver to 12.1 and 13.1. 12.1 was > >      > much the same as 11.2. 13.1 reported that it was unable to send sigkill > >      > when processing the interrupt command. 13.1 also seems not to be able to > >      > respond to the 'info os processes' command from the gdb client > >      > > >      >> > > > >     What sort of behavior/output do you see? > > > > > > I'll capture some proper output when I'm back in the office but basically once I 'continue' I can't get the gdb prompt back with Ctrl+C. > > > > Is it a tight loop by any change? Or is gdb trapped in a long sequence of instruction-steps? > > > It's a daemon using a g_main_loop() not sure if that counts as a tight loop. GDB shouldn't be doing any stepping. I'll also give a process that runs and finishes when I get a chance to see if there are issues with that. > Got it. It would be useful to see some of the output with "set debug remote 1" and "set debug remote-packet-max-chars -1". It may indicate what's going on.