Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 199875 Details for
Bug 277774
dev-util/kdbg: fails to build with glibc-2.10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixes compile with glibc-2.10.1
kdbg.patch (text/plain), 1.97 KB, created by
Evan Teran
on 2009-08-02 02:17:37 UTC
(
hide
)
Description:
fixes compile with glibc-2.10.1
Filename:
MIME Type:
Creator:
Evan Teran
Created:
2009-08-02 02:17:37 UTC
Size:
1.97 KB
patch
obsolete
>diff -rupN kdbg-2.1.1.old/kdbg/gdbdriver.cpp kdbg-2.1.1.new/kdbg/gdbdriver.cpp >--- kdbg-2.1.1.old/kdbg/gdbdriver.cpp 2008-11-17 17:17:55.000000000 -0500 >+++ kdbg-2.1.1.new/kdbg/gdbdriver.cpp 2009-08-01 22:08:53.000000000 -0400 >@@ -133,7 +133,7 @@ GdbDriver::GdbDriver() : > > #ifndef NDEBUG > // check command info array >- char* perc; >+ const char* perc; > for (int i = 0; i < NUM_CMDS; i++) { > // must be indexable by DbgCommand values, i.e. sorted by DbgCommand values > assert(i == cmds[i].cmd); >@@ -669,7 +669,7 @@ static bool parseErrorMessage(const char > // skip warnings > while (strncmp(output, "warning:", 8) == 0) > { >- char* end = strchr(output+8, '\n'); >+ const char* end = strchr(output+8, '\n'); > if (end == 0) > output += strlen(output); > else >@@ -1880,8 +1880,10 @@ bool GdbDriver::parseThreadList(const ch > p++; > // there follows only whitespace > } >- char* end; >- id = strtol(p, &end, 10); >+ const char* end; >+ char *end_p; /* we need a non-const version to pass to strtol */ >+ id = strtol(p, &end_p, 10); >+ end = end_p; > if (p == end) { > // syntax error: no number found; bail out > return true; >diff -rupN kdbg-2.1.1.old/kdbg/xsldbgdriver.cpp kdbg-2.1.1.new/kdbg/xsldbgdriver.cpp >--- kdbg-2.1.1.old/kdbg/xsldbgdriver.cpp 2008-12-18 16:01:58.000000000 -0500 >+++ kdbg-2.1.1.new/kdbg/xsldbgdriver.cpp 2009-08-01 22:09:19.000000000 -0400 >@@ -114,7 +114,7 @@ DebuggerDriver(), m_gdbMajor(2), m_gdbMi > > #ifndef NDEBUG > // check command info array >- char *perc; >+ const char *perc; > > for (int i = 0; i < NUM_CMDS; i++) { > // must be indexable by DbgCommand values, i.e. sorted by DbgCommand values >@@ -768,7 +768,7 @@ parseVar(const char *&s) > } else if (strncmp(p, "= ", 2) == 0) { > /* we're processing the result of a "print command" */ > /* find next line */ >- char *nextLine = strchr(p, '\n'); >+ const char *nextLine = strchr(p, '\n'); > > TRACE("Found print expr"); > if (nextLine) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277774
:
197887
| 199875