From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8Gy8Iu/SS2S0qTgAWB0awg (envelope-from ) for ; Fri, 28 Apr 2023 10:06:39 -0400 Received: by simark.ca (Postfix, from userid 112) id 8C16A1E221; Fri, 28 Apr 2023 10:06:39 -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=W9oWnfdE; 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=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RDNS_DYNAMIC,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 41D6C1E0D3 for ; Fri, 28 Apr 2023 10:06:39 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D22D13858436 for ; Fri, 28 Apr 2023 14:06:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D22D13858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682690798; bh=lsPdoYtBypyNFL+jCwm3JtZbUHs60M1jRr3NzZ6+sDo=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=W9oWnfdECN6w/c60FFD9tzJD6F9aycM+24TdLK/NIe4IXBg3fSHcHoEe2dXfIm9hx hhVowra/GBLUTJ34bOaY7jmF4BDQi2y58Yy60ys3MeEFNzdIvz6mg6sHw0aPKw8ZUC YlxDjFc5YDlvsKTxrQ0YY5NbkxsGC26ywhM3fGdY= Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id EE752385771A for ; Fri, 28 Apr 2023 14:06:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE752385771A Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1a6ebc66ca4so72627685ad.3 for ; Fri, 28 Apr 2023 07:06:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682690762; x=1685282762; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lsPdoYtBypyNFL+jCwm3JtZbUHs60M1jRr3NzZ6+sDo=; b=Q4JSF5grbSE3+ArmY4SEnqwq7wACo6qwakmGSMFEcVaDdoDt167b/Edhff6BQuALI4 VI/PKcXqRzOJTrDLNZv7XVWcevyYat7hVdcXHim5kJd4JoKgfg5ztDvSHFx/ljsGHRPq dZee8q3SsKYlz2vPmpkiHlqHS11wDcik3yz6Jx/t9CGkLqGfbb7+YO1ZAgfoydVeF/cR urupWjlVH7QNqdISN+szPohzni6g5viUaWdu7wtL7YL+T1YCj0/fTeO9n8KauHojb4XR V4QWBtygFjNfP5KxsKKIas2Oebcy+xhXYKgZmdGYm25FDW1LK967qn6R72qxPtyfLA/9 aK1A== X-Gm-Message-State: AC+VfDyyDbG4Ln9xuQ0sEOz9zKxYAJRZB0eEWNOsPMbEFOn7Xw1MPfLE a3sCJ+RACvMg7THjaSt0ob61 X-Google-Smtp-Source: ACHHUZ4Dw/losNo24ys4s6XLUdREgvr9GAzl0Fy4/E39hTqAF1syjLWna9ebDZlTuzPWbC4uvufKLQ== X-Received: by 2002:a17:902:c948:b0:1a6:abac:9cc with SMTP id i8-20020a170902c94800b001a6abac09ccmr6724933pla.66.1682690761668; Fri, 28 Apr 2023 07:06:01 -0700 (PDT) Received: from takamaka.gnat.com ([184.69.131.86]) by smtp.gmail.com with ESMTPSA id h9-20020a170902f7c900b001a640f9ebb9sm13331680plw.21.2023.04.28.07.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 07:05:57 -0700 (PDT) Received: by takamaka.gnat.com (Postfix, from userid 1000) id 1EA4D819F1; Fri, 28 Apr 2023 07:05:52 -0700 (PDT) Date: Fri, 28 Apr 2023 07:05:52 -0700 To: Luis Machado via Gdb Cc: Chris Packham , Joel Brobecker Subject: Re: Problems interrupting remote target on powerpc Message-ID: References: <00c24cea-f256-3149-dcc7-1bad08e8bef8@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Joel Brobecker via Gdb Reply-To: Joel Brobecker Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" FWIW, the way I remember things on how it's supposed to work is the following: - The Ctrl-c sequence triggers a SIGINT - GDB has a handler and the remote layer sends a single interrupt character to GDBserver - The interrupt character arriving on the GDBserver side of the connection triggers a SIGINT in GDBserver - GDBserver has a handler that sends a SIGINT to the inferior. - The inferior receives the SIGINT, and thus stops, and the kernel informs GDBserver, and GDBserver then sends a stop packet back to GDB, who then tells the user the inferior has stopped on a SIGINT. One typically workaround when the above doesn't work is to log onto the remote machine, and send the inferior process a SIGINT signal by hand, by using the "kill -INT " command. -- Joel