• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révision1aa96702887a9c0f66b5d7cab034bf6718796708 (tree)
l'heure2016-05-03 20:16:55
AuteurPedro Alves <palves@redh...>
CommiterPedro Alves

Message de Log

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.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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+
16 2016-05-03 Pedro Alves <palves@redhat.com>
27
38 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1711,11 +1711,6 @@ message == an error message without a stack will be printed."),
17111711 oldloc = setlocale (LC_ALL, NULL);
17121712 setlocale (LC_ALL, "");
17131713 progsize = strlen (progname);
1714- if (progsize == (size_t) -1)
1715- {
1716- fprintf (stderr, "Could not convert python path to string\n");
1717- return;
1718- }
17191714 progname_copy = (wchar_t *) PyMem_Malloc ((progsize + 1) * sizeof (wchar_t));
17201715 if (!progname_copy)
17211716 {