From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1a6ebc66ca4so72627685ad.3 for ; Fri, 28 Apr 2023 07:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1682690762; x=1685282762; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lsPdoYtBypyNFL+jCwm3JtZbUHs60M1jRr3NzZ6+sDo=; b=TKHFiI9hIea3bYSjT0oNa1lMv0LUNlmYZwI8H72eUmkw5zoiyf+MmgbJy02PiN9V/c AzHENs4/aC70XtLv8JEOEynIWA6HJJr/Cl6nePIDnGK1XMlRQDxP1xFj60Mif4P7sSeT 75Xjdh55pi/NEg8+nzrO8O3jqEKQh4GL573MtnjQVOtiX6MMjb+tT4SXxiDrXcpeefny STX10otF0t+xy4lk87SJ0m7JpPg7FJeCntaZ12pq3AuN0rR3tfZITkM0uO+sI8R5TwSE ZOWIubd4C+vh9CTMGy8BR7XHEIOZBFbkeAy9VoF4SChuFZGnsgc5AFHBpGFjBS1S+ufE JGBQ== 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 From: Joel Brobecker 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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