Hanhwi Jang has uploaded this change for review. (
https://gem5-review.googlesource.com/7681
Change subject: scons: Resolve backtrace implementation existence testing
failure
......................................................................
scons: Resolve backtrace implementation existence testing failure
Change backtrace implementation testing code not to have NULL pointer.
SCons fails to find backtrace implementation even if it exists.
The implementation testing code contains NULL pointers as a backtrace
buffer argument. Some compilers check the buffer is NULL pointed
or not, and generate a compilation error.
Change-Id: Icc5bc9a887b7a6bbc804b5b8a5a35a935c78a922
---
M SConstruct
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/SConstruct b/SConstruct
index 09c3476..521b444 100755
--- a/SConstruct
+++ b/SConstruct
@@ -815,10 +815,10 @@
backtrace_impls = [ "none" ]
if conf.CheckLibWithHeader(None, 'execinfo.h', 'C',
- 'backtrace_symbols_fd((void*)0, 0, 0);'):
+ 'backtrace_symbols_fd((void*)0xdeadbeaf, 0,
0);'):
backtrace_impls.append("glibc")
elif conf.CheckLibWithHeader('execinfo', 'execinfo.h', 'C',
- 'backtrace_symbols_fd((void*)0, 0, 0);'):
+ 'backtrace_symbols_fd((void*)0xdeadbeaf, 0,
0);'):
# NetBSD and FreeBSD need libexecinfo.
backtrace_impls.append("glibc")
main.Append(LIBS=['execinfo'])
--
To view, visit https://gem5-review.googlesource.com/7681
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc5bc9a887b7a6bbc804b5b8a5a35a935c78a922
Gerrit-Change-Number: 7681
Gerrit-PatchSet: 1
Gerrit-Owner: Hanhwi Jang <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev