GNU Binutils with patches for OS216
Révision | 1aa96702887a9c0f66b5d7cab034bf6718796708 (tree) |
---|---|
l'heure | 2016-05-03 20:16:55 |
Auteur | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
Remove gdb/python/python.c code that handles strlen failing with -1
This makes no sense -- strlen doesn't really ever fail with -1.
gdb/ChangeLog:
2016-05-03 Pedro Alves <palves@redhat.com>
* python/python.c (_initialize_python) [IS_PY3K]: Remove dead
code.
@@ -1,3 +1,8 @@ | ||
1 | +2016-05-03 Pedro Alves <palves@redhat.com> | |
2 | + | |
3 | + * python/python.c (_initialize_python) [IS_PY3K]: Remove dead | |
4 | + code. | |
5 | + | |
1 | 6 | 2016-05-03 Pedro Alves <palves@redhat.com> |
2 | 7 | |
3 | 8 | * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic". |
@@ -1711,11 +1711,6 @@ message == an error message without a stack will be printed."), | ||
1711 | 1711 | oldloc = setlocale (LC_ALL, NULL); |
1712 | 1712 | setlocale (LC_ALL, ""); |
1713 | 1713 | progsize = strlen (progname); |
1714 | - if (progsize == (size_t) -1) | |
1715 | - { | |
1716 | - fprintf (stderr, "Could not convert python path to string\n"); | |
1717 | - return; | |
1718 | - } | |
1719 | 1714 | progname_copy = (wchar_t *) PyMem_Malloc ((progsize + 1) * sizeof (wchar_t)); |
1720 | 1715 | if (!progname_copy) |
1721 | 1716 | { |