* [PATCH] Fix for gdb.base/stap-probe.c
@ 2022-06-14 23:54 Carl Love
2022-06-22 15:11 ` [PING] " Carl Love
2022-07-12 10:35 ` Ulrich Weigand
0 siblings, 2 replies; 6+ messages in thread
From: Carl Love @ 2022-06-14 23:54 UTC (permalink / raw)
To: gdb-patches, will schmidt, cel, Ulrich Weigand
GDB maintainers:
The gdb.base/stap-probe.exp test fails on Power 10 with a compile error
due to a missing include file. The include file provides the
definition for ATTRIBUTE_NOCLONE. The following patch add the missing
include file.
The test now runs on Power 10 with 98 expected passes and 4 unsupported
tests.
Please let me know if this patch is acceptable for mainline.
Carl Love
---------------------------------------------------------------------
Fix for gdb.base/stap-probe.c
On PowePC, the test fails on a compile error:
/../binutils-gdb-current/gdb/testsuite/gdb.base/stap-probe.c:107:1: error: expected '=', ',', ';',
'asm' or 'attribute' before 'use_xmm_reg'
107 | use_xmm_reg (int val)
| ^~~~~~~~~~~
Where the source code for stap-probe.c is:
...
static const char * __attribute__((noinline)) ATTRIBUTE_NOCLONE
use_xmm_reg (int val) <-- line 107
{
...
The issue is the ATTRIBUTE_NOCLONE is not defined as an attribute as
expected. The #define for ATTRIBUTE_NOCLONE can be found in
../lib/attributes.h.
This patch adds the missing include statement for the definition of
ATTRIBUTE_NOCLONE.
The patch has been tested and verified on a Power10 system.
---
gdb/testsuite/gdb.base/stap-probe.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/testsuite/gdb.base/stap-probe.c b/gdb/testsuite/gdb.base/stap-probe.c
index d1482c35caf..527f7e187eb 100644
--- a/gdb/testsuite/gdb.base/stap-probe.c
+++ b/gdb/testsuite/gdb.base/stap-probe.c
@@ -15,6 +15,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "../lib/attributes.h"
+
#if USE_SEMAPHORES
#define _SDT_HAS_SEMAPHORES
--
2.31.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PING] [PATCH] Fix for gdb.base/stap-probe.c
2022-06-14 23:54 [PATCH] Fix for gdb.base/stap-probe.c Carl Love
@ 2022-06-22 15:11 ` Carl Love
2022-06-30 15:14 ` [PING 2] " Carl Love
2022-07-11 15:14 ` [PING 2] " Carl Love
2022-07-12 10:35 ` Ulrich Weigand
1 sibling, 2 replies; 6+ messages in thread
From: Carl Love @ 2022-06-22 15:11 UTC (permalink / raw)
To: gdb-patches, will schmidt, Ulrich Weigand
Ping?
On Tue, 2022-06-14 at 16:54 -0700, Carl Love wrote:
> GDB maintainers:
>
> The gdb.base/stap-probe.exp test fails on Power 10 with a compile
> error
> due to a missing include file. The include file provides the
> definition for ATTRIBUTE_NOCLONE. The following patch add the
> missing
> include file.
>
> The test now runs on Power 10 with 98 expected passes and 4
> unsupported
> tests.
>
> Please let me know if this patch is acceptable for mainline.
>
> Carl Love
>
> ---------------------------------------------------------------------
> Fix for gdb.base/stap-probe.c
>
> On PowePC, the test fails on a compile error:
>
> /../binutils-gdb-current/gdb/testsuite/gdb.base/stap-probe.c:107:1:
> error: expected '=', ',', ';',
> 'asm' or 'attribute' before 'use_xmm_reg'
> 107 | use_xmm_reg (int val)
> | ^~~~~~~~~~~
>
> Where the source code for stap-probe.c is:
>
> ...
> static const char * __attribute__((noinline)) ATTRIBUTE_NOCLONE
> use_xmm_reg (int val) <-- line 107
> {
> ...
>
> The issue is the ATTRIBUTE_NOCLONE is not defined as an attribute as
> expected. The #define for ATTRIBUTE_NOCLONE can be found in
> ../lib/attributes.h.
>
> This patch adds the missing include statement for the definition of
> ATTRIBUTE_NOCLONE.
>
> The patch has been tested and verified on a Power10 system.
> ---
> gdb/testsuite/gdb.base/stap-probe.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/gdb/testsuite/gdb.base/stap-probe.c
> b/gdb/testsuite/gdb.base/stap-probe.c
> index d1482c35caf..527f7e187eb 100644
> --- a/gdb/testsuite/gdb.base/stap-probe.c
> +++ b/gdb/testsuite/gdb.base/stap-probe.c
> @@ -15,6 +15,8 @@
> You should have received a copy of the GNU General Public License
> along with this program. If not, see <
> http://www.gnu.org/licenses/>. */
>
> +#include "../lib/attributes.h"
> +
> #if USE_SEMAPHORES
>
> #define _SDT_HAS_SEMAPHORES
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PING 2] [PATCH] Fix for gdb.base/stap-probe.c
2022-06-22 15:11 ` [PING] " Carl Love
@ 2022-06-30 15:14 ` Carl Love
2022-07-11 15:11 ` [PING 3] " Carl Love
2022-07-11 15:14 ` [PING 2] " Carl Love
1 sibling, 1 reply; 6+ messages in thread
From: Carl Love @ 2022-06-30 15:14 UTC (permalink / raw)
To: gdb-patches, will schmidt, Ulrich Weigand
On Wed, 2022-06-22 at 08:11 -0700, Carl Love wrote:
> Ping?
>
> On Tue, 2022-06-14 at 16:54 -0700, Carl Love wrote:
> > GDB maintainers:
> >
> > The gdb.base/stap-probe.exp test fails on Power 10 with a compile
> > error
> > due to a missing include file. The include file provides the
> > definition for ATTRIBUTE_NOCLONE. The following patch add the
> > missing
> > include file.
> >
> > The test now runs on Power 10 with 98 expected passes and 4
> > unsupported
> > tests.
> >
> > Please let me know if this patch is acceptable for mainline.
> >
> > Carl Love
> >
> > -----------------------------------------------------------------
> > ----
> > Fix for gdb.base/stap-probe.c
> >
> > On PowePC, the test fails on a compile error:
> >
> > /../binutils-gdb-current/gdb/testsuite/gdb.base/stap-
> > probe.c:107:1:
> > error: expected '=', ',', ';',
> > 'asm' or 'attribute' before 'use_xmm_reg'
> > 107 | use_xmm_reg (int val)
> > | ^~~~~~~~~~~
> >
> > Where the source code for stap-probe.c is:
> >
> > ...
> > static const char * __attribute__((noinline)) ATTRIBUTE_NOCLONE
> > use_xmm_reg (int val) <-- line 107
> > {
> > ...
> >
> > The issue is the ATTRIBUTE_NOCLONE is not defined as an attribute
> > as
> > expected. The #define for ATTRIBUTE_NOCLONE can be found in
> > ../lib/attributes.h.
> >
> > This patch adds the missing include statement for the definition of
> > ATTRIBUTE_NOCLONE.
> >
> > The patch has been tested and verified on a Power10 system.
> > ---
> > gdb/testsuite/gdb.base/stap-probe.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/gdb/testsuite/gdb.base/stap-probe.c
> > b/gdb/testsuite/gdb.base/stap-probe.c
> > index d1482c35caf..527f7e187eb 100644
> > --- a/gdb/testsuite/gdb.base/stap-probe.c
> > +++ b/gdb/testsuite/gdb.base/stap-probe.c
> > @@ -15,6 +15,8 @@
> > You should have received a copy of the GNU General Public
> > License
> > along with this program. If not, see <
> > http://www.gnu.org/licenses/>. */
> >
> > +#include "../lib/attributes.h"
> > +
> > #if USE_SEMAPHORES
> >
> > #define _SDT_HAS_SEMAPHORES
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PING 3] [PATCH] Fix for gdb.base/stap-probe.c
2022-06-30 15:14 ` [PING 2] " Carl Love
@ 2022-07-11 15:11 ` Carl Love
0 siblings, 0 replies; 6+ messages in thread
From: Carl Love @ 2022-07-11 15:11 UTC (permalink / raw)
To: gdb-patches, will schmidt, Ulrich Weigand, cel
On Thu, 2022-06-30 at 08:14 -0700, Carl Love wrote:
> On Wed, 2022-06-22 at 08:11 -0700, Carl Love wrote:
> > Ping?
> >
> > On Tue, 2022-06-14 at 16:54 -0700, Carl Love wrote:
> > > GDB maintainers:
> > >
> > > The gdb.base/stap-probe.exp test fails on Power 10 with a compile
> > > error
> > > due to a missing include file. The include file provides the
> > > definition for ATTRIBUTE_NOCLONE. The following patch add the
> > > missing
> > > include file.
> > >
> > > The test now runs on Power 10 with 98 expected passes and 4
> > > unsupported
> > > tests.
> > >
> > > Please let me know if this patch is acceptable for mainline.
> > >
> > > Carl Love
> > >
> > > -----------------------------------------------------------------
> > > ----
> > > Fix for gdb.base/stap-probe.c
> > >
> > > On PowePC, the test fails on a compile error:
> > >
> > > /../binutils-gdb-current/gdb/testsuite/gdb.base/stap-
> > > probe.c:107:1:
> > > error: expected '=', ',', ';',
> > > 'asm' or 'attribute' before 'use_xmm_reg'
> > > 107 | use_xmm_reg (int val)
> > > | ^~~~~~~~~~~
> > >
> > > Where the source code for stap-probe.c is:
> > >
> > > ...
> > > static const char * __attribute__((noinline)) ATTRIBUTE_NOCLONE
> > > use_xmm_reg (int val) <-- line 107
> > > {
> > > ...
> > >
> > > The issue is the ATTRIBUTE_NOCLONE is not defined as an attribute
> > > as
> > > expected. The #define for ATTRIBUTE_NOCLONE can be found in
> > > ../lib/attributes.h.
> > >
> > > This patch adds the missing include statement for the definition
> > > of
> > > ATTRIBUTE_NOCLONE.
> > >
> > > The patch has been tested and verified on a Power10 system.
> > > ---
> > > gdb/testsuite/gdb.base/stap-probe.c | 2 ++
> > > 1 file changed, 2 insertions(+)
> > >
> > > diff --git a/gdb/testsuite/gdb.base/stap-probe.c
> > > b/gdb/testsuite/gdb.base/stap-probe.c
> > > index d1482c35caf..527f7e187eb 100644
> > > --- a/gdb/testsuite/gdb.base/stap-probe.c
> > > +++ b/gdb/testsuite/gdb.base/stap-probe.c
> > > @@ -15,6 +15,8 @@
> > > You should have received a copy of the GNU General Public
> > > License
> > > along with this program. If not, see <
> > > http://www.gnu.org/licenses/>. */
> > >
> > > +#include "../lib/attributes.h"
> > > +
> > > #if USE_SEMAPHORES
> > >
> > > #define _SDT_HAS_SEMAPHORES
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PING 2] [PATCH] Fix for gdb.base/stap-probe.c
2022-06-22 15:11 ` [PING] " Carl Love
2022-06-30 15:14 ` [PING 2] " Carl Love
@ 2022-07-11 15:14 ` Carl Love
1 sibling, 0 replies; 6+ messages in thread
From: Carl Love @ 2022-07-11 15:14 UTC (permalink / raw)
To: gdb-patches, will schmidt, Ulrich Weigand, cel
On Wed, 2022-06-22 at 08:11 -0700, Carl Love via Gdb-patches wrote:
> Ping?
>
> On Tue, 2022-06-14 at 16:54 -0700, Carl Love wrote:
> > GDB maintainers:
> >
> > The gdb.base/stap-probe.exp test fails on Power 10 with a compile
> > error
> > due to a missing include file. The include file provides the
> > definition for ATTRIBUTE_NOCLONE. The following patch add the
> > missing
> > include file.
> >
> > The test now runs on Power 10 with 98 expected passes and 4
> > unsupported
> > tests.
> >
> > Please let me know if this patch is acceptable for mainline.
> >
> > Carl Love
> >
> > -----------------------------------------------------------------
> > ----
> > Fix for gdb.base/stap-probe.c
> >
> > On PowePC, the test fails on a compile error:
> >
> > /../binutils-gdb-current/gdb/testsuite/gdb.base/stap-
> > probe.c:107:1:
> > error: expected '=', ',', ';',
> > 'asm' or 'attribute' before 'use_xmm_reg'
> > 107 | use_xmm_reg (int val)
> > | ^~~~~~~~~~~
> >
> > Where the source code for stap-probe.c is:
> >
> > ...
> > static const char * __attribute__((noinline)) ATTRIBUTE_NOCLONE
> > use_xmm_reg (int val) <-- line 107
> > {
> > ...
> >
> > The issue is the ATTRIBUTE_NOCLONE is not defined as an attribute
> > as
> > expected. The #define for ATTRIBUTE_NOCLONE can be found in
> > ../lib/attributes.h.
> >
> > This patch adds the missing include statement for the definition of
> > ATTRIBUTE_NOCLONE.
> >
> > The patch has been tested and verified on a Power10 system.
> > ---
> > gdb/testsuite/gdb.base/stap-probe.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/gdb/testsuite/gdb.base/stap-probe.c
> > b/gdb/testsuite/gdb.base/stap-probe.c
> > index d1482c35caf..527f7e187eb 100644
> > --- a/gdb/testsuite/gdb.base/stap-probe.c
> > +++ b/gdb/testsuite/gdb.base/stap-probe.c
> > @@ -15,6 +15,8 @@
> > You should have received a copy of the GNU General Public
> > License
> > along with this program. If not, see <
> > http://www.gnu.org/licenses/
> > >. */
> >
> > +#include "../lib/attributes.h"
> > +
> > #if USE_SEMAPHORES
> >
> > #define _SDT_HAS_SEMAPHORES
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix for gdb.base/stap-probe.c
2022-06-14 23:54 [PATCH] Fix for gdb.base/stap-probe.c Carl Love
2022-06-22 15:11 ` [PING] " Carl Love
@ 2022-07-12 10:35 ` Ulrich Weigand
1 sibling, 0 replies; 6+ messages in thread
From: Ulrich Weigand @ 2022-07-12 10:35 UTC (permalink / raw)
To: gdb-patches, will_schmidt, cel
Carl Love <cel@us.ibm.com> wrote:
>Fix for gdb.base/stap-probe.c
This is OK.
Thanks,
Ulrich
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-07-12 10:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 23:54 [PATCH] Fix for gdb.base/stap-probe.c Carl Love
2022-06-22 15:11 ` [PING] " Carl Love
2022-06-30 15:14 ` [PING 2] " Carl Love
2022-07-11 15:11 ` [PING 3] " Carl Love
2022-07-11 15:14 ` [PING 2] " Carl Love
2022-07-12 10:35 ` Ulrich Weigand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).