Skip to content

Commit 8c3ba0a

Browse files
author
Git for Windows Build Agent
committed
Update 1 package
mingw-w64-i686-gdb (14.2-1 -> 15.1-1) Signed-off-by: Git for Windows Build Agent <[email protected]>
1 parent 2ad349a commit 8c3ba0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1910
-566
lines changed

mingw32/bin/gdb-add-index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Add a .gdb_index section to a file.
44

5-
# Copyright (C) 2010-2023 Free Software Foundation, Inc.
5+
# Copyright (C) 2010-2024 Free Software Foundation, Inc.
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
88
# the Free Software Foundation; either version 3 of the License, or

mingw32/bin/gdb.exe

-1.41 MB
Binary file not shown.

mingw32/bin/gdbserver.exe

-1.14 MB
Binary file not shown.

mingw32/include/gdb/jit-reader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* JIT declarations for GDB, the GNU Debugger.
22
3-
Copyright (C) 2011-2023 Free Software Foundation, Inc.
3+
Copyright (C) 2011-2024 Free Software Foundation, Inc.
44
55
This file is part of GDB.
66

mingw32/share/gdb/python/gdb/FrameDecorator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2013-2023 Free Software Foundation, Inc.
1+
# Copyright (C) 2013-2024 Free Software Foundation, Inc.
22

33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -251,7 +251,6 @@ def symbol(self):
251251

252252

253253
class FrameVars(object):
254-
255254
"""Utility class to fetch and store frame local variables, or
256255
frame arguments."""
257256

mingw32/share/gdb/python/gdb/FrameIterator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2013-2023 Free Software Foundation, Inc.
1+
# Copyright (C) 2013-2024 Free Software Foundation, Inc.
22

33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by

mingw32/share/gdb/python/gdb/__init__.py

Lines changed: 58 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2010-2023 Free Software Foundation, Inc.
1+
# Copyright (C) 2010-2024 Free Software Foundation, Inc.
22

33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -13,12 +13,11 @@
1313
# You should have received a copy of the GNU General Public License
1414
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1515

16+
import os
1617
import signal
18+
import sys
1719
import threading
1820
import traceback
19-
import os
20-
import sys
21-
import _gdb
2221
from contextlib import contextmanager
2322

2423
# Python 3 moved "reload"
@@ -27,7 +26,12 @@
2726
else:
2827
from imp import reload
2928

30-
from _gdb import *
29+
import _gdb
30+
31+
# Note that two indicators are needed here to silence flake8.
32+
from _gdb import * # noqa: F401,F403
33+
34+
# isort: split
3135

3236
# Historically, gdb.events was always available, so ensure it's
3337
# still available without an explicit import.
@@ -56,15 +60,14 @@ def writelines(self, iterable):
5660
self.write(line)
5761

5862
def flush(self):
59-
flush(stream=self.stream)
63+
_gdb.flush(stream=self.stream)
6064

6165
def write(self, s):
62-
write(s, stream=self.stream)
63-
66+
_gdb.write(s, stream=self.stream)
6467

65-
sys.stdout = _GdbFile(STDOUT)
6668

67-
sys.stderr = _GdbFile(STDERR)
69+
sys.stdout = _GdbFile(_gdb.STDOUT)
70+
sys.stderr = _GdbFile(_gdb.STDERR)
6871

6972
# Default prompt hook does nothing.
7073
prompt_hook = None
@@ -84,6 +87,8 @@ def write(self, s):
8487
frame_filters = {}
8588
# Initial frame unwinders.
8689
frame_unwinders = []
90+
# Initial missing debug handlers.
91+
missing_debug_handlers = []
8792

8893

8994
def _execute_unwinders(pending_frame):
@@ -125,33 +130,6 @@ def _execute_unwinders(pending_frame):
125130
return None
126131

127132

128-
def _execute_file(filepath):
129-
"""This function is used to replace Python 2's PyRun_SimpleFile.
130-
131-
Loads and executes the given file.
132-
133-
We could use the runpy module, but its documentation says:
134-
"Furthermore, any functions and classes defined by the executed code are
135-
not guaranteed to work correctly after a runpy function has returned."
136-
"""
137-
globals = sys.modules["__main__"].__dict__
138-
set_file = False
139-
# Set file (if not set) so that the imported file can use it (e.g. to
140-
# access file-relative paths). This matches what PyRun_SimpleFile does.
141-
if not hasattr(globals, "__file__"):
142-
globals["__file__"] = filepath
143-
set_file = True
144-
try:
145-
with open(filepath, "rb") as file:
146-
# We pass globals also as locals to match what Python does
147-
# in PyRun_SimpleFile.
148-
compiled = compile(file.read(), filepath, "exec")
149-
exec(compiled, globals, globals)
150-
finally:
151-
if set_file:
152-
del globals["__file__"]
153-
154-
155133
# Convenience variable to GDB's python directory
156134
PYTHONDIR = os.path.dirname(os.path.dirname(__file__))
157135

@@ -183,7 +161,7 @@ def _auto_load_packages():
183161
reload(__import__(modname))
184162
else:
185163
__import__(modname)
186-
except:
164+
except Exception:
187165
sys.stderr.write(traceback.format_exc() + "\n")
188166

189167

@@ -210,7 +188,7 @@ def GdbSetPythonDirectory(dir):
210188

211189
def current_progspace():
212190
"Return the current Progspace."
213-
return selected_inferior().progspace
191+
return _gdb.selected_inferior().progspace
214192

215193

216194
def objfiles():
@@ -247,14 +225,14 @@ def set_parameter(name, value):
247225
value = "on"
248226
else:
249227
value = "off"
250-
execute("set " + name + " " + str(value), to_string=True)
228+
_gdb.execute("set " + name + " " + str(value), to_string=True)
251229

252230

253231
@contextmanager
254232
def with_parameter(name, value):
255233
"""Temporarily set the GDB parameter NAME to VALUE.
256234
Note that this is a context manager."""
257-
old_value = parameter(name)
235+
old_value = _gdb.parameter(name)
258236
set_parameter(name, value)
259237
try:
260238
# Nothing that useful to return.
@@ -291,3 +269,42 @@ def start(self):
291269
# threads.
292270
with blocked_signals():
293271
super().start()
272+
273+
274+
def _handle_missing_debuginfo(objfile):
275+
"""Internal function called from GDB to execute missing debug
276+
handlers.
277+
278+
Run each of the currently registered, and enabled missing debug
279+
handler objects for the current program space and then from the
280+
global list. Stop after the first handler that returns a result
281+
other than None.
282+
283+
Arguments:
284+
objfile: A gdb.Objfile for which GDB could not find any debug
285+
information.
286+
287+
Returns:
288+
None: No debug information could be found for objfile.
289+
False: A handler has done all it can with objfile, but no
290+
debug information could be found.
291+
True: Debug information might have been installed by a
292+
handler, GDB should check again.
293+
A string: This is the filename of a file containing the
294+
required debug information.
295+
"""
296+
pspace = objfile.progspace
297+
298+
for handler in pspace.missing_debug_handlers:
299+
if handler.enabled:
300+
result = handler(objfile)
301+
if result is not None:
302+
return result
303+
304+
for handler in missing_debug_handlers:
305+
if handler.enabled:
306+
result = handler(objfile)
307+
if result is not None:
308+
return result
309+
310+
return None

mingw32/share/gdb/python/gdb/command/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2010-2023 Free Software Foundation, Inc.
1+
# Copyright (C) 2010-2024 Free Software Foundation, Inc.
22

33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by

mingw32/share/gdb/python/gdb/command/explore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# GDB 'explore' command.
2-
# Copyright (C) 2012-2023 Free Software Foundation, Inc.
2+
# Copyright (C) 2012-2024 Free Software Foundation, Inc.
33

44
# This program is free software; you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by

mingw32/share/gdb/python/gdb/command/frame_filters.py

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Frame-filter commands.
2-
# Copyright (C) 2013-2023 Free Software Foundation, Inc.
2+
# Copyright (C) 2013-2024 Free Software Foundation, Inc.
33

44
# This program is free software; you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by
@@ -17,6 +17,7 @@
1717
"""GDB commands for working with frame-filters."""
1818

1919
import sys
20+
2021
import gdb
2122
import gdb.frames
2223

@@ -445,7 +446,7 @@ def complete(self, text, word):
445446
if text.count(" ") == 0:
446447
return _complete_frame_filter_list(text, word, False)
447448
else:
448-
printer_list = frame._return_list(text.split()[0].rstrip())
449+
printer_list = gdb.frames.return_list(text.split()[0].rstrip())
449450
return _complete_frame_filter_name(word, printer_list)
450451

451452
def invoke(self, arg, from_tty):
@@ -454,20 +455,15 @@ def invoke(self, arg, from_tty):
454455
return
455456
filter_name = command_tuple[1]
456457
list_name = command_tuple[0]
457-
try:
458-
priority = self.get_filter_priority(list_name, filter_name)
459-
except Exception:
460-
e = sys.exc_info()[1]
461-
print("Error printing filter priority for '" + name + "':" + str(e))
462-
else:
463-
print(
464-
"Priority of filter '"
465-
+ filter_name
466-
+ "' in list '"
467-
+ list_name
468-
+ "' is: "
469-
+ str(priority)
470-
)
458+
priority = self.get_filter_priority(list_name, filter_name)
459+
print(
460+
"Priority of filter '"
461+
+ filter_name
462+
+ "' in list '"
463+
+ list_name
464+
+ "' is: "
465+
+ str(priority)
466+
)
471467

472468

473469
# Register commands

0 commit comments

Comments
 (0)