Skip to content

Commit

Permalink
update gcc 13.1 gdb scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Jul 14, 2023
1 parent 2c999dd commit 73abcdb
Show file tree
Hide file tree
Showing 6 changed files with 3,604 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RedPandaIDE/translations/RedPandaIDE_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../settingsdialog/debuggeneralwidget.ui" line="87"/>
<source>Max characters of a string displayed</source>
<translation type="unfinished"></translation>
<translation>字符串最多显示多少字符</translation>
</message>
<message>
<location filename="../settingsdialog/debuggeneralwidget.ui" line="171"/>
Expand Down
4 changes: 2 additions & 2 deletions packages/msys/build-x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ echo "Making installer..."
pushd .
cd "${PACKAGE_DIR}"
cp -a "${MINGW}" .
rm -rf "${MINGW_NAME}/share/gcc-11.2.0"
cp -a "${SOURCE_DIR}/tools/gdb-scripts/gcc-11.2.0" "${MINGW_NAME}/share"
#rm -rf "${MINGW_NAME}/share/gcc-11.2.0"
#cp -a "${SOURCE_DIR}/tools/gdb-scripts/gcc-11.2.0" "${MINGW_NAME}/share"

cp "${SOURCE_DIR}/platform/windows/installer-scripts/lang.nsh" .
cp "${SOURCE_DIR}/platform/windows/installer-scripts/redpanda-x64.nsi" .
Expand Down
1 change: 1 addition & 0 deletions tools/gdb-scripts/gcc-13.1.0/python/libstdcxx/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

33 changes: 33 additions & 0 deletions tools/gdb-scripts/gcc-13.1.0/python/libstdcxx/v6/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (C) 2014-2023 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import gdb

# Load the xmethods if GDB supports them.
def gdb_has_xmethods():
try:
import gdb.xmethod
return True
except ImportError:
return False

def register_libstdcxx_printers(obj):
# Load the pretty-printers.
from .printers import register_libstdcxx_printers
register_libstdcxx_printers(obj)

if gdb_has_xmethods():
from .xmethods import register_libstdcxx_xmethods
register_libstdcxx_xmethods(obj)
Loading

0 comments on commit 73abcdb

Please sign in to comment.