diff options
author | Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com> | 2021-03-19 10:37:58 +0530 |
---|---|---|
committer | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | 2021-03-19 10:44:56 +0530 |
commit | a088215ae37be0f44bce508ca0050fe9149beb39 (patch) | |
tree | 53cae304f279cb25e008a5892f211a5015d3108c /gdb/testsuite/gdb.linespec | |
parent | 3818d4ab066ee40b976513b247b5da5f20379b66 (diff) | |
download | gdb-a088215ae37be0f44bce508ca0050fe9149beb39.zip gdb-a088215ae37be0f44bce508ca0050fe9149beb39.tar.gz gdb-a088215ae37be0f44bce508ca0050fe9149beb39.tar.bz2 |
Enable macro test for clang compiler
`clang` uses `-fdebug-macro` switch to enable debug-info
for macros.
gdb/testsuite/ChangeLog:
2021-03-19 Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
* gdb.base/info-macros.exp: Append -fdebug-macro to
additional_flags for clang.
* gdb.base/macscp.exp: Likewise.
* gdb.base/style.exp: Likewise.
* gdb.linespec/macro-relative.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.linespec')
-rw-r--r-- | gdb/testsuite/gdb.linespec/macro-relative.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.linespec/macro-relative.exp b/gdb/testsuite/gdb.linespec/macro-relative.exp index 32375e5..c8e5b29 100644 --- a/gdb/testsuite/gdb.linespec/macro-relative.exp +++ b/gdb/testsuite/gdb.linespec/macro-relative.exp @@ -31,6 +31,8 @@ set opts {debug additional_flags=-I.} get_compiler_info if [test_compiler_info gcc*] { lappend opts additional_flags=-g3 +} elseif [test_compiler_info clang*] { + lappend opts additional_flags=-fdebug-macro } if { [file pathtype $objdir] == "relative" } { |