From patchwork Wed Oct 28 16:20:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 9423 Received: (qmail 38539 invoked by alias); 28 Oct 2015 16:20:43 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 38517 invoked by uid 89); 28 Oct 2015 16:20:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-qk0-f180.google.com Received: from mail-qk0-f180.google.com (HELO mail-qk0-f180.google.com) (209.85.220.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 28 Oct 2015 16:20:41 +0000 Received: by qkgc186 with SMTP id c186so2136636qkg.0 for ; Wed, 28 Oct 2015 09:20:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mYBGTFbLp6XDJUvKjngLXMnFTdiKJgJsXypsbicoOEs=; b=SEMDvDfZafy5cxKkMKFAXggtT+2kjXdTOh7gs/pPa4W1NsWsZtnEC8gPO8BdoKJr3i nyLVl6vyp8VmOvoMmFRpsCdl+IXN4zCUjPbMcw5MGvq4949R1r1aOzhYcznPTD7GG+c2 foXPtnnQ218hZmatGqyOMVZF+Yl/JP1HJzzKYpmpgKZVwa/WUnLw2dJ/uoHlMTSq5cI4 i1XJhP3i9UxDHjN0wlB6LsdrrKzT3PQ4dyE13jlg6Jx8oswRfDC0hdQrm+y4ZyQJa+k5 Ta1iOZQDvKI3kQWr44UDgrVMTxmqWjVSGvEFtDXooZY1smEaU6TKwuxc/P+sC1KVugKj iDwg== X-Gm-Message-State: ALoCoQnvxqDHYQtHw2gs21I9aq8+Q1xFv+5L5wl27zFhgXyUmoMzwGlaqdm1SOrRwe+TjMj1guqq X-Received: by 10.55.75.21 with SMTP id y21mr29289279qka.2.1446049239174; Wed, 28 Oct 2015 09:20:39 -0700 (PDT) Received: from localhost.localdomain (ool-4353a8be.dyn.optonline.net. [67.83.168.190]) by smtp.gmail.com with ESMTPSA id 86sm1744826qky.24.2015.10.28.09.20.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Oct 2015 09:20:38 -0700 (PDT) From: Patrick Palka To: gdb-patches@sourceware.org Cc: Patrick Palka Subject: [PATCH] Add missing leading space to some queries Date: Wed, 28 Oct 2015 12:20:32 -0400 Message-Id: <1446049232-2318-1-git-send-email-patrick@parcs.ath.cx> Query strings should have a leading space so that there is some kind of separator between the actual query and the "(y or n)" suffix that is appended to the query. gdb/ChangeLog: * linux-record.c (record_linux_system_call): Add a leading space to each query string. * record-full.c (record_full_check_insn_num): Likewise. (record_full_store_registers): Likewise. (record_full_xfer_partial): Likewise. --- gdb/linux-record.c | 8 ++++---- gdb/record-full.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gdb/linux-record.c b/gdb/linux-record.c index cffd4f7..78a8fb1 100644 --- a/gdb/linux-record.c +++ b/gdb/linux-record.c @@ -246,7 +246,7 @@ record_linux_system_call (enum gdb_syscall syscall, target_terminal_ours (); q = yquery (_("The next instruction is syscall exit. " "It will make the program exit. " - "Do you want to stop the program?")); + "Do you want to stop the program? ")); target_terminal_inferior (); if (q) return 1; @@ -679,7 +679,7 @@ record_linux_system_call (enum gdb_syscall syscall, target_terminal_ours (); q = yquery (_("The next instruction is syscall reboot. " "It will restart the computer. " - "Do you want to stop the program?")); + "Do you want to stop the program? ")); target_terminal_inferior (); if (q) return 1; @@ -712,7 +712,7 @@ record_linux_system_call (enum gdb_syscall syscall, The next instruction is syscall munmap.\n\ It will free the memory addr = 0x%s len = %u.\n\ It will make record target cannot record some memory change.\n\ -Do you want to stop the program?"), +Do you want to stop the program? "), OUTPUT_REG (tmpulongest, tdep->arg1), (int) len); target_terminal_inferior (); if (q) @@ -1932,7 +1932,7 @@ Do you want to stop the program?"), target_terminal_ours (); q = yquery (_("The next instruction is syscall exit_group. " "It will make the program exit. " - "Do you want to stop the program?")); + "Do you want to stop the program? ")); target_terminal_inferior (); if (q) return 1; diff --git a/gdb/record-full.c b/gdb/record-full.c index 595e357..fcba371 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -548,7 +548,7 @@ record_full_check_insn_num (int set_terminal) target_terminal_ours (); q = yquery (_("Do you want to auto delete previous execution " "log entries when record/replay buffer becomes " - "full (record full stop-at-limit)?")); + "full (record full stop-at-limit)? ")); if (set_terminal) target_terminal_inferior (); if (q) @@ -1477,12 +1477,12 @@ record_full_store_registers (struct target_ops *ops, query (_("Because GDB is in replay mode, changing the " "value of a register will make the execution " "log unusable from this point onward. " - "Change all registers?")); + "Change all registers? ")); else n = query (_("Because GDB is in replay mode, changing the value " "of a register will make the execution log unusable " - "from this point onward. Change register %s?"), + "from this point onward. Change register %s? "), gdbarch_register_name (get_regcache_arch (regcache), regno)); @@ -1534,7 +1534,7 @@ record_full_xfer_partial (struct target_ops *ops, enum target_object object, /* Let user choose if he wants to write memory or not. */ if (!query (_("Because GDB is in replay mode, writing to memory " "will make the execution log unusable from this " - "point onward. Write memory at address %s?"), + "point onward. Write memory at address %s? "), paddress (target_gdbarch (), offset))) error (_("Process record canceled the operation."));