Skip to content

Commit eafb2b5

Browse files
feat: update binutils to 2.45.50.20260119-1
1 parent 4e73a0b commit eafb2b5

10,437 files changed

Lines changed: 1052980 additions & 787246 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# Copyright 2025 Free Software Foundation, Inc.
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation; either version 3 of the License, or
6+
# (at your option) any later version.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
16+
# This file helps editors auto-configure whitespace settings.
17+
#
18+
# See here for more information about the format and editor support:
19+
#
20+
# https://editorconfig.org/
21+
22+
# This file is common to the GCC and GDB/Binutils projects. If you
23+
# update one, please sync it with the other.
24+
25+
# top-most EditorConfig file
26+
root = true
27+
28+
[*]
29+
end_of_line = lf
30+
insert_final_newline = true
31+
tab_width = 8
32+
33+
# EditorConfig files
34+
[.editorconfig]
35+
charset = utf-8
36+
trim_trailing_whitespace = true
37+
38+
# Makefile
39+
[{Makefile,*.mk,*.am}*]
40+
indent_style = tab
41+
indent_size = 8
42+
trim_trailing_whitespace = true
43+
44+
# ChangeLogs
45+
[ChangeLog*]
46+
indent_style = tab
47+
indent_size = 8
48+
trim_trailing_whitespace = true
49+
charset = utf-8
50+
51+
# C/C++
52+
[*.{c,h,cc}]
53+
charset = utf-8
54+
indent_style = tab
55+
indent_size = 2
56+
trim_trailing_whitespace = true
57+
58+
# GCC .def files. These are generally C fragments that get included
59+
# one or more times
60+
[gcc/**.def]
61+
charset = utf-8
62+
indent_style = tab
63+
indent_size = 2
64+
trim_trailing_whitespace = true
65+
66+
# Texinfo files
67+
[*.texi]
68+
charset = utf-8
69+
indent_size = 2
70+
trim_trailing_whitespace = true
71+
72+
# Expect / TCL
73+
[*.{exp,tcl}]
74+
indent_style = tab
75+
indent_size = 4
76+
trim_trailing_whitespace = true
77+
78+
# Python
79+
[*.py]
80+
indent_style = space
81+
indent_size = 4
82+
trim_trailing_whitespace = true
83+
84+
# Assembler
85+
[*.{s,S,asm}]
86+
indent_style = tab
87+
indent_size = 8
88+
trim_trailing_whitespace = true
89+
90+
# GCC Machine description files
91+
[gcc/config/**.md]
92+
indent_style = tab
93+
indent_size = 2
94+
trim_trailing_whitespace = true
95+
96+
# Awk
97+
[*.awk]
98+
indent_style = tab
99+
indent_size = 2
100+
trim_trailing_whitespace = true
101+
102+
# Autoconf
103+
[*.{ac,m4}]
104+
indent_style = tab
105+
indent_size = 2
106+
trim_trailing_whitespace = true
107+
108+
# Shell scripts
109+
[*.sh]
110+
indent_style = tab
111+
indent_size = 4
112+
trim_trailing_whitespace = true
113+
114+
# Ada
115+
[*.ad[bs]]
116+
indent_style = space
117+
indent_size = 3
118+
trim_trailing_whitespace = true
119+
120+
# D
121+
[*.d]
122+
indent_style = space
123+
indent_size = 4
124+
trim_trailing_whitespace = true
125+
126+
# Go
127+
[*.go]
128+
indent_style = tab
129+
indent_size = 8
130+
trim_trailing_whitespace = true
131+
132+
# Fortran
133+
[*.[Ff]90]
134+
indent_style = space
135+
indent_size = 2
136+
trim_trailing_whitespace = true
137+
138+
# Cobol
139+
[*.cbl]
140+
indent_style = space
141+
indent_size = 2
142+
trim_trailing_whitespace = true

.pre-commit-config.yaml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# Git has the notion of hooks, which are custom scripts that are run on
2+
# specific events. One of these hooks is the pre-commit hook (located at
3+
# .git/hooks/pre-commit), which is run when committing, before specifying a
4+
# message.
5+
#
6+
# To ease management of the pre-commit hook, the pre-commit framework
7+
# ( https://pre-commit.com ) was developed. This is the configuration file
8+
# for that framework. It contains a list of hooks, with information on where
9+
# to find them and on which files to run them.
10+
#
11+
# See here ( https://pre-commit.com/#install ) on how to install the
12+
# pre-commit framework.
13+
#
14+
# To run all the hooks specified in this file manually, you can do:
15+
# $ pre-commit run
16+
#
17+
# To run some hooks and skip others, you can use environment variable SKIP:
18+
# $ SKIP=flake8,isort pre-commit run
19+
#
20+
# To install the pre-commit framework in the repository in order to run the
21+
# hooks on every commit, do:
22+
# $ pre-commit install
23+
#
24+
# After installing the pre-commit framework, you can skip running all
25+
# pre-commit hooks using --no-verify, or some using SKIP.
26+
# $ git commit --no-verify ...
27+
# $ SKIP=flake8,isort git commit ...
28+
#
29+
# In case some of these hooks don't work for you, you can make the SKIP
30+
# setting permanent by:
31+
# - setting SKIP in your environment
32+
# (this will affect all repositories where it is set)
33+
# - setting SKIP in .git/hooks/pre-commit by adding "export SKIP=..."
34+
# (this will affect only this repository, but it may have to be re-added
35+
# if .git/hooks/pre-commit is regenerated)
36+
#
37+
# See https://pre-commit.com for more information
38+
# See https://pre-commit.com/hooks.html for more hooks
39+
40+
minimum_pre_commit_version: 3.2.0
41+
default_install_hook_types: [pre-commit, commit-msg]
42+
default_stages: [pre-commit]
43+
repos:
44+
- repo: https://github.com/psf/black-pre-commit-mirror
45+
rev: 25.11.0
46+
hooks:
47+
- id: black
48+
types_or: [file]
49+
files: '^gdb/.*\.py(\.in)?$'
50+
- repo: https://github.com/pycqa/flake8
51+
rev: 7.3.0
52+
hooks:
53+
- id: flake8
54+
types_or: [file]
55+
# Run this for (in glob notation):
56+
#
57+
# - gdb/gdb-gdb.py.in
58+
# - gdb/*.py
59+
# - gdb/python/**/*.py
60+
# - gdb/testsuite/*.py
61+
#
62+
files: '^gdb/.*\.py(\.in)?$'
63+
args: [--config, gdb/setup.cfg]
64+
- repo: https://github.com/pycqa/isort
65+
rev: 7.0.0
66+
hooks:
67+
- id: isort
68+
types_or: [file]
69+
files: '^gdb/.*\.py(\.in)?$'
70+
- repo: https://github.com/codespell-project/codespell
71+
rev: v2.4.1
72+
hooks:
73+
- id: codespell
74+
files: '^(gdbsupport|gdbserver|gdb/(dwarf2|tui|target|data-directory|po|system-gdbinit|mi|syscalls|arch|regformats|compile|python|guile|config|unittests|cli|testsuite/gdb.(ctf|dap|debuginfod|gdb|go|guile|mi|modula2|objc|opencl|opt|pascal|perf|replay|reverse|rocm|server|stabs|testsuite|tui|xml)))/'
75+
args: [--config, gdb/contrib/setup.cfg]
76+
- id: codespell
77+
name: codespell-log
78+
entry: gdb/contrib/codespell-log.sh
79+
args: [--config, gdb/contrib/setup.cfg]
80+
always_run: true
81+
verbose: true
82+
stages: [commit-msg]
83+
- repo: local
84+
hooks:
85+
- id: check-include-guards
86+
name: check-include-guards
87+
language: python
88+
entry: gdb/check-include-guards.py
89+
# All gdb header files, but not headers in the test suite.
90+
files: '^(gdb(support|server)?)/.*\.h$'
91+
exclude: '.*/testsuite/.*'
92+
- id: check-gnu-style
93+
name: check-gnu-style
94+
language: python
95+
additional_dependencies: ['termcolor', 'unidiff']
96+
entry: gdb/contrib/check-gnu-style-pre-commit.sh
97+
files: '^(gdb(support|server)?)/.*\.(c|h|cc)$'
98+
exclude: '.*/testsuite/.*'
99+
verbose: true
100+
stages: [pre-commit]
101+
- id: check-whitespace
102+
name: check-whitespace
103+
language: script
104+
entry: gdb/contrib/check-whitespace-pre-commit.py
105+
files: '^(gdb(support|server)?)/.*$'
106+
pass_filenames: true
107+
stages: [pre-commit]
108+
- id: pre-commit-setup
109+
name: pre-commit-setup
110+
language: python
111+
entry: gdb/contrib/pre-commit-setup.py
112+
additional_dependencies: ["pyyaml"]
113+
always_run: true
114+
require_serial: true
115+
- repo: https://github.com/nmoroze/tclint
116+
rev: v0.7.0
117+
hooks:
118+
- id: tclint
119+
args: [--commands, gdb/testsuite/tclint-plugin.py]
120+
types_or: [file]
121+
files: '^gdb/testsuite/.*\.(exp|tcl)$'

0 commit comments

Comments
 (0)