Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2021 14:11:32 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f773a868350d - stable/12 - gdb: only return signal values for powerpc's gdb_cpu_signal()
Message-ID:  <202101251411.10PEBWL0062245@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=f773a868350de075ecd0aaa00af370a82ebebcd1

commit f773a868350de075ecd0aaa00af370a82ebebcd1
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2021-01-22 18:56:56 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2021-01-25 14:10:40 +0000

    gdb: only return signal values for powerpc's gdb_cpu_signal()
    
    Reviewed by:    alfredo
    
    (cherry picked from commit 57a543d8b85065f77e0b68162d09a03335970f90)
---
 sys/powerpc/powerpc/gdb_machdep.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sys/powerpc/powerpc/gdb_machdep.c b/sys/powerpc/powerpc/gdb_machdep.c
index 6248ce70e070..e5ce60c25d9c 100644
--- a/sys/powerpc/powerpc/gdb_machdep.c
+++ b/sys/powerpc/powerpc/gdb_machdep.c
@@ -94,8 +94,5 @@ gdb_cpu_signal(int vector, int dummy __unused)
 		return (SIGTRAP);
 #endif
 
-	if (vector <= 255)
-		return (vector);
-	else
-		return (SIGEMT);
+	return (SIGEMT);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101251411.10PEBWL0062245>