Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Aktemur, Tankut Baris" <tankut.baris.aktemur@intel.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: RE: [PATCH 14/31] gdbserver/linux-low: turn 'breakpoint_at' into a method
Date: Sat, 16 May 2020 08:49:16 +0000	[thread overview]
Message-ID: <SN6PR11MB289370D353920CE6641793D6C4BA0@SN6PR11MB2893.namprd11.prod.outlook.com> (raw)
In-Reply-To: <87o8qouwu3.fsf@linux-m68k.org>

On Saturday, May 16, 2020 10:08 AM, Andreas Schwab wrote:
> ../../gdbserver/linux-ia64-low.cc: In member function ‘virtual bool ia64_target::low_breakpoint_at(CORE_ADDR)’:
> ../../gdbserver/linux-ia64-low.cc:64:33: error: ‘gdb_assert_no_reached’ was not declared in this scope
>      "implemented by this target");
>                                  ^
> ../../gdbserver/linux-ia64-low.cc:65:1: warning: no return statement in function returning non-void [-Wreturn-type]
>  }
>  ^

Oops.  That's the risk of applying a refactoring that applies to a wide
range of targets.  I pushed the patch below.  Thanks for the notification.

-Baris


From 8bbf03947dd594262e672c1fbc3462a81c811b6f Mon Sep 17 00:00:00 2001
From: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Date: Sat, 16 May 2020 10:24:24 +0200
Subject: [PATCH] gdbserver/linux-ia64-low: fix a build-breaking typo

During the gdbserver c++'ification refactoring, I apparently made a
typo that broke build in ia64 targets.

gdbserver/ChangeLog:
2020-05-16  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

	* linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
	Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
	(ia64_target::low_breakpoint_at): Ditto.
---
 gdbserver/ChangeLog         | 6 ++++++
 gdbserver/linux-ia64-low.cc | 8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog
index d2b2444d09b..3a27705f8df 100644
--- a/gdbserver/ChangeLog
+++ b/gdbserver/ChangeLog
@@ -1,3 +1,9 @@
+2020-05-16  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+	* linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
+	Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
+	(ia64_target::low_breakpoint_at): Ditto.
+
 2020-05-15  Hannes Domani  <ssbssa@yahoo.de>
 
 	* win32-i386-low.cc (i386_supports_z_point_type): Handle
diff --git a/gdbserver/linux-ia64-low.cc b/gdbserver/linux-ia64-low.cc
index 83a180871dc..ee255418b0f 100644
--- a/gdbserver/linux-ia64-low.cc
+++ b/gdbserver/linux-ia64-low.cc
@@ -53,15 +53,15 @@ static ia64_target the_ia64_target;
 const gdb_byte *
 ia64_target::sw_breakpoint_from_kind (int kind, int *size)
 {
-  gdb_assert_no_reached ("target op sw_breakpoint_from_kind is not "
-			 "implemented by this target");
+  gdb_assert_not_reached ("target op sw_breakpoint_from_kind is not "
+			  "implemented by this target");
 }
 
 bool
 ia64_target::low_breakpoint_at (CORE_ADDR pc)
 {
-  gdb_assert_no_reached ("linux target op low_breakpoint_at is not "
-			 "implemented by this target");
+  gdb_assert_not_reached ("linux target op low_breakpoint_at is not "
+			  "implemented by this target");
 }
 
 /* Defined in auto-generated file reg-ia64.c.  */
-- 
2.17.1

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

  reply	other threads:[~2020-05-16  8:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1583529166.git.tankut.baris.aktemur@intel.com>
2020-03-19 20:13 ` [PING][PATCH 00/31] Turn gdbserver's linux low targets into classes Tankut Baris Aktemur
     [not found] ` <2f5f8156b5f3ceeff985dbd1af983e1212f9027e.1583529166.git.tankut.baris.aktemur@intel.com>
2020-04-01 19:15   ` [PATCH 10/31] gdbserver/linux-low: turn 'breakpoint_kind_from_{pc, current_state}' into methods Pedro Alves
2020-04-01 19:39     ` Aktemur, Tankut Baris
     [not found] ` <348df510a72e111a2ce21892a50dc7ec506e2834.1583529167.git.tankut.baris.aktemur@intel.com>
2020-04-01 21:13   ` [PATCH 13/31] gdbserver/linux-low: move 'decr_pc_after_break' into linux_process_target Pedro Alves
2020-04-01 21:16 ` [PATCH 00/31] Turn gdbserver's linux low targets into classes Pedro Alves
2020-04-02  7:33   ` Aktemur, Tankut Baris
     [not found] ` <57c78a1670f509b6167fe2065fa64dff37dd22c5.1583529167.git.tankut.baris.aktemur@intel.com>
2020-05-16  8:07   ` [PATCH 14/31] gdbserver/linux-low: turn 'breakpoint_at' into a method Andreas Schwab
2020-05-16  8:49     ` Aktemur, Tankut Baris [this message]
     [not found] ` <9d3e8912ac039651e2e3eec2a3db2bf2bee92a4c.1583529167.git.tankut.baris.aktemur@intel.com>
2020-05-16  8:08   ` [PATCH 11/31] gdbserver/linux-low: turn 'sw_breakpoint_from_kind' " Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SN6PR11MB289370D353920CE6641793D6C4BA0@SN6PR11MB2893.namprd11.prod.outlook.com \
    --to=tankut.baris.aktemur@intel.com \
    --cc=gdb-patches@sourceware.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox