public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix for gdb.base/solib-search.exp test.
@ 2022-03-22 21:49 Carl Love
  2022-03-28 15:21 ` [PING] " Carl Love
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Carl Love @ 2022-03-22 21:49 UTC (permalink / raw)
  To: dje, gdb-patches; +Cc: cel, Will Schmidt, Rogerio Alves


GDB maintainers:

The following patch fixes the setting of the variable right_lib_flags
in the solib-search.exp test.  With the fix the test now run correctly
on Powerpc.

The patch has been tested on a Power 10 system.

Please let me know if the patch is acceptable for mainline gdb. 
Thanks.

                      Carl Love

---------------------------------------------------
Fix for gdb.base/solib-search.exp test.

The variable right_lib_flags is not being set correctly to define RIGHT.
The value RIGHT is needed to force the address of the library functions
lib1_func3 and lib2_func4 to occur at different address in the wrong and
right libraries.

With RIGHT defined correctly, functions lib1_func3 and lib2_func4 occur
at different addresses the test runs correctly on Powerpc.
---
 gdb/testsuite/gdb.base/solib-search.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/solib-search.exp b/gdb/testsuite/gdb.base/solib-search.exp
index eaabe508bf0..202e79d85de 100644
--- a/gdb/testsuite/gdb.base/solib-search.exp
+++ b/gdb/testsuite/gdb.base/solib-search.exp
@@ -54,7 +54,7 @@ set binfile2_lib [standard_output_file ${libname2}.so]
 
 set lib_flags [list debug ldflags=-Wl,-Bsymbolic]
 set wrong_lib_flags "$lib_flags additional_flags=-DARRAY_SIZE=1"
-set right_lib_flags "$lib_flags additional_flags=-DARRAY_SIZE=8192 -DRIGHT"
+set right_lib_flags "$lib_flags additional_flags=-DARRAY_SIZE=8192 additional_flags=-DRIGHT"
 
 # Binary file.
 standard_testfile .c
-- 
2.31.1



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-02 14:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 21:49 [PATCH] Fix for gdb.base/solib-search.exp test Carl Love
2022-03-28 15:21 ` [PING] " Carl Love
2022-04-07 15:13   ` [PING 2] " Carl Love
2022-04-21  1:49     ` [PING 3] " Carl Love
2022-04-21 13:39 ` Simon Marchi
2022-04-21 18:21   ` Carl Love
2022-04-21 19:04     ` Simon Marchi
2022-04-21 19:16       ` Carl Love
2022-04-21 15:05 ` will schmidt
2022-05-02 14:16 ` 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).