diff options
author | Carl Love <cel@us.ibm.com> | 2022-05-05 16:45:18 -0500 |
---|---|---|
committer | Carl Love <cel@us.ibm.com> | 2022-05-06 23:08:39 +0000 |
commit | 29004660c947a78c348d250e2e0eccb5d8056e29 (patch) | |
tree | b3ff7980bac82661d10771b96a56bb45623c0dfc /gdb | |
parent | d11c7afad34bd2ff8cc5e0a38c32d3ec82a2664f (diff) | |
download | gdb-29004660c947a78c348d250e2e0eccb5d8056e29.zip gdb-29004660c947a78c348d250e2e0eccb5d8056e29.tar.gz gdb-29004660c947a78c348d250e2e0eccb5d8056e29.tar.bz2 |
PowerPC fix for gdb.server/sysroot.exp
On PowerPC, the stop in the printf function is of the form:
Breakpoint 2, 0x00007ffff7c6ab08 in printf@@GLIBC_2.17 () from /lib64/libc.so.6
On other architectures the output looks like:
Breakpoint 2, 0x0000007fb7ea29ac in printf () from /lib/aarch64-linux-gnu/libc.so.6
The following patch modifies the printf test by matchine any character
starting immediately after the printf. The test now works for PowerPC
output as well as the output from other architectures.
The test has been run on a Power 10 system and and Intel x86_64 system.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.server/sysroot.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.server/sysroot.exp b/gdb/testsuite/gdb.server/sysroot.exp index a319200..95679fc 100644 --- a/gdb/testsuite/gdb.server/sysroot.exp +++ b/gdb/testsuite/gdb.server/sysroot.exp @@ -78,7 +78,7 @@ foreach_with_prefix sysroot { "local" "remote" } { # Test that we can stop inside a library. gdb_breakpoint printf - gdb_test "continue" "Breakpoint $decimal.* (__)?printf .*" \ + gdb_test "continue" "Breakpoint $decimal.* (__)?printf.*" \ "continue to printf" } } |