Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLPX-92903 gdb-python build fails on Ubuntu 24.04 because of deprecated python3-distutils dependency #4

Open
wants to merge 10,000 commits into
base: os-upgrade
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
13cd950
gdb/testsuite: fix list.exp test cases
T-J-Teru Feb 24, 2022
e8b4efc
Print MI prompt on interrupted command
tromey Jan 6, 2022
820ed8a
gdb: add operator+= and operator+ overload for std::string
T-J-Teru Feb 21, 2022
18694ad
gdb-add-index: disable debuginfod
aaronmerey Feb 12, 2022
cc1cf2a
Automatic date update in version.in
Feb 26, 2022
a63e5a3
Handle recursive internal problem in gdb_internal_error_resync
KevinBuettner Feb 26, 2022
b275570
Automatic date update in version.in
Feb 27, 2022
85acc25
Automatic date update in version.in
Feb 28, 2022
eda240c
Clarify the wording of the error message when an obsolete configurati…
nickclifton Feb 28, 2022
cb7da2a
Further correct the handling of long pathnames on Windows hosts.
Torbjorn-Svensson Feb 28, 2022
e008305
Fix gdb.fortran "failed to extract expected results" errors
shtiek Feb 28, 2022
ea76415
Error when gdb_is_target_1 is called without running gdb instance
shtiek Feb 28, 2022
659971c
gdb/python: Add gdb.InferiorThread.details attribute
T-J-Teru Feb 14, 2022
a7041de
Handle 'QWW' encoding case in Ada enums
tromey Jan 25, 2022
c9f66f0
Handle multi-byte bracket sequences in Ada lexer
tromey Jan 26, 2022
29928b8
Fix maybe-uninitialized warning in py-infthread.c
tromey Feb 28, 2022
972f7a4
Add more filename styling
tromey Feb 28, 2022
5a734ad
Fix "spawn id XYZ not open" errors in gdb.mi/mi-exec-run.exp
shtiek Feb 28, 2022
cb3a9d1
Automatic date update in version.in
Mar 1, 2022
d3827c8
gdb: add Tiezhu Yang as LoongArch maintainer
Mar 1, 2022
863cd1c
gdb: testsuite: print explicit test result in can_spawn_for_attach
Mar 1, 2022
1dbf271
gdb: testsuite: fix wrong expected result in attach-pie-noexec.exp
Mar 1, 2022
81c9e0f
Prevent an assertion from being triggered when linking an ARM object …
nickclifton Mar 1, 2022
95e96e0
Fix linker tests to compile with gcc-12.
nickclifton Mar 1, 2022
581c5ba
Revert "Check thin archive element file size against archive header"
amodra Mar 1, 2022
ba0eb22
Fix a typo in the previous delta to bfdio.c.
nickclifton Mar 1, 2022
17dccf1
Fix typo in the "alias" example
tromey Mar 1, 2022
c675db7
Some "distclean" fixes in gdb
tromey Feb 28, 2022
aca6e93
Automatic date update in version.in
Mar 2, 2022
a8ab094
Move copyright code from gdbarch.py to new file
tromey Feb 14, 2022
fb079cb
Rewrite make-target-delegates in Python
tromey Feb 14, 2022
c1dae0a
fbsd-tdep: Implement the vsyscall_range gdbarch hook.
bsdjhb Mar 2, 2022
63db53c
i386-fbsd-nat: Assume PT_GETXMMREGS is present.
bsdjhb Mar 2, 2022
72919b1
i386-bsd-nat: Assume PT_GETXMMREGS is present.
bsdjhb Mar 2, 2022
7432050
configure: Stop checking for PT_GETXMMREGS.
bsdjhb Mar 2, 2022
a8dc389
Automatic date update in version.in
Mar 3, 2022
0aac241
PowerPC64 DT_RELR relative reloc addresses
amodra Mar 2, 2022
e26ff4b
comment typo fix
amodra Mar 3, 2022
cb1a6dd
gdb: testsuite: fix failed testcases in gdb.base/gdb-caching-proc.exp
Mar 3, 2022
c2b167b
Update my e-mail address in the MAINTAINERS file
luis-machado-arm Mar 1, 2022
db120fb
Adjust ld ctf test for 32-bit targets
amodra Feb 25, 2022
8674f08
Avoid conflict with gnulib open/close macros.
frobtech Mar 2, 2022
26caf9a
Fix typo in last change.
frobtech Mar 3, 2022
98040b9
Automatic date update in version.in
Mar 4, 2022
6a778a2
x86: drop redundant x86-64-code16-2 test
jbeulich Mar 4, 2022
7919e56
RISC-V: make .insn actually work for 64-bit insns
jbeulich Mar 4, 2022
e8db803
gdb: Use a typedef's scoped type name to identify local typedefs
SchChristina Oct 25, 2021
84a9f19
binutils/readelf: fix indentation in process_dynamic_section
simark Mar 4, 2022
c836575
Mark vDSO as not a file
tromey Mar 4, 2022
7c28e74
Automatic date update in version.in
Mar 5, 2022
7a1550f
Automatic date update in version.in
Mar 6, 2022
7055fa9
gdb: remove internalvar_funcs::destroy
simark Jan 31, 2022
5f8ab46
gdb: constify parameter of value_copy
simark Jan 31, 2022
abed5aa
Simplify hppa-tdep.c use of objfile_key
tromey Mar 5, 2022
13835d8
Use function view when iterating over block symbols
tromey Mar 4, 2022
d17e797
MIPS/opcodes: Fix alias annotation for branch instructions
maciej-w-rozycki Mar 6, 2022
0daa5af
Automatic date update in version.in
Mar 7, 2022
a320f13
Simplify a regular expression in ada-lex.l
tromey Feb 3, 2022
36f5ca5
Don't pre-size result string in ada_decode
tromey Feb 3, 2022
c8b76e1
Let phex and phex_nz handle sizeof_l==1
tromey Feb 3, 2022
ee3d464
Define HOST_UTF32 in charset.h
tromey Feb 3, 2022
315e4eb
Handle non-ASCII identifiers in Ada
tromey Feb 3, 2022
47a39c6
Fix gdb.ada/arrayptr.exp results
tromey Feb 28, 2022
c9bfa27
Fix Ada integer literals with exponents
tromey Feb 16, 2022
63fc243
Implement real literal extension for Ada
tromey Feb 16, 2022
aacf24b
Fix bug in ada_print_floating
tromey Feb 16, 2022
3db1354
Remove unnecessary inferior lookup in infrun:handle_one
palves Mar 7, 2022
cfeab26
Deprecate dbx mode
tromey Mar 3, 2022
d43bd54
gdb/mi: fix regression in mi -add-inferior command
umairsair Feb 24, 2022
6fd9013
gdb/mi: add --no-connection to MI -add-inferior command
T-J-Teru Mar 2, 2022
ee6a3d9
gdb/python: add Type.is_scalar property
T-J-Teru Feb 25, 2022
551b380
gdb/python: add Type.is_signed property
T-J-Teru Nov 30, 2021
f99e1c6
gdb/testsuite: add new test for comparing char types in Python
T-J-Teru Feb 25, 2022
30732ea
Automatic date update in version.in
Mar 8, 2022
807310c
gdb: announce upcoming removal of Python 2 support from gdb
T-J-Teru Mar 8, 2022
a9c82bc
gdb/mi: preserve user selected thread and frame when invoking MI comm…
janvrany Mar 2, 2022
9ac37a9
PR gdb/27876 - debuginfod-downloaded source files don't pass proper f…
aaronmerey Nov 20, 2021
2c5e3cf
Automatic date update in version.in
Mar 9, 2022
2e79bbf
gdb: Try searching for auto-load script using .gnu_debuglink
aaronmerey Mar 8, 2022
4afc889
Reduce duplicated symbol_clone_if_forward_ref work
amodra Mar 8, 2022
fb0e49d
Constant fold view increment expressions
amodra Mar 8, 2022
ec0e51a
* gdb/doc/gdb.texinfo (Requirements): Fix a typo.
SchChristina Mar 9, 2022
19cf33a
GDB/testsuite: Remove a stray backslash from gdb.base/settings.exp
maciej-w-rozycki Mar 9, 2022
befb57e
GDB/testsuite: Fix a "displayed" typo in gdb.base/default.exp
maciej-w-rozycki Mar 9, 2022
7dc7323
toplevel: Makefile.def: Make configure-sim depend on all-readline
hpataxisdotcom Mar 9, 2022
399f9ba
Automatic date update in version.in
Mar 10, 2022
320fdef
ld: Add a before_plugin_all_symbols_read hook
hjl-tools Feb 2, 2022
d7c4482
Re: ld: Add a before_plugin_all_symbols_read hook
amodra Mar 10, 2022
bed566b
Add option to objdump/readelf to disable access to debuginfod servers.
nickclifton Mar 10, 2022
e48359e
Fix gdbserver/linux target_waitstatus logging assert
palves Feb 18, 2022
cdff184
Fix gdb.threads/clone-new-thread-event.exp race
palves Feb 23, 2022
b7b1008
Fix gdb.threads/current-lwp-dead.exp race
palves Feb 23, 2022
1abeb1e
gdb: Reorganize linux_nat_filter_event
palves Feb 21, 2022
5406bc3
gdbserver: Reorganize linux_process_target::filter_event
palves Feb 22, 2022
aa40a98
gdbserver: Reindent check_zombie_leaders
palves Feb 24, 2022
6cf20c4
Re-add zombie leader on exit, gdb/linux
palves Feb 21, 2022
8a841a3
Re-add zombie leader on exit, gdbserver/linux
palves Feb 22, 2022
c6479f8
Process exit status is leader exit status testcase
lancesix Feb 18, 2022
00e5d9e
gdb/gdbarch: fix typo in gdbarch-components.py
T-J-Teru Mar 10, 2022
fdda16e
Simplify the ui-out progress API
tromey Mar 4, 2022
56262a9
Change how "print/x" displays floating-point value
tromey Feb 17, 2022
e154544
gdb/auto-load: Remove repeating "auto-load" from debug message
aaronmerey Mar 10, 2022
a655f19
Automatic date update in version.in
Mar 11, 2022
bb368aa
gprofng: a new GNU profiler
Mar 11, 2022
8bdc7ff
gdb/testsuite: remove duplicates from gdb.base/stap-probe.exp
T-J-Teru Mar 10, 2022
c0e0d6b
Avoid crash with cross-linux core file
tromey Dec 13, 2021
9fb67c2
Automatic date update in version.in
Mar 12, 2022
4775334
Relax regexp in gdb.rust/unsized.exp
tromey Mar 12, 2022
4f4a30b
Automatic date update in version.in
Mar 13, 2022
b508e46
PR28959, obdump doesn't disassemble mftb instruction
amodra Mar 13, 2022
d4661bf
Automatic date update in version.in
Mar 14, 2022
bab22d0
[aarch64/arm] Properly extract the return value returned in memory
luis-machado-arm Jan 4, 2022
79a0742
Correctly print subrange types in generic_value_print
tromey Mar 10, 2022
fb85cec
Replace deprecated_target_wait_hook by observers
monnerat Mar 12, 2022
23bade9
gdb/gdbarch: remove the predicate function for gdbarch_register_type
T-J-Teru Mar 10, 2022
a5118a1
gdb/gdbarch: compare some fields against 0 verify_gdbarch
T-J-Teru Mar 10, 2022
740b42c
gdb/python/mi: create MI commands using python
T-J-Teru Jun 23, 2020
bf573a0
Automatic date update in version.in
Mar 15, 2022
e34f44e
gdb: LoongArch: fix failed testcases in gdb.base/align-c.exp
Mar 15, 2022
a4eb1b3
gprofng: Don't generate gprofng.info in source
hjl-tools Mar 15, 2022
4ec39c4
gprofng: Add a configure test for clock_gettime and a use of the test…
nickclifton Mar 15, 2022
af481f0
gdb/testsuite: rename a proc and fix a typo
T-J-Teru Mar 15, 2022
cda8dc9
Fix bug in dwarf-mode.el
tromey Mar 15, 2022
6aa03e9
gprofng: avoid using `fallthrough' attributes
jemarch Mar 15, 2022
8f50b4b
Do not capture updated 'pc' in add_local_symbols
tromey Mar 15, 2022
42952a9
PowerPC64 extended instructions in powerpc_macros
amodra Mar 15, 2022
f304c63
PowerPC32 extended instructions in powerpc_macros
amodra Mar 15, 2022
51ba92c
PowerPC VLE extended instructions in powerpc_macros
amodra Mar 15, 2022
8736318
PowerPC SPE/SPE2 aliases in powerpc_macros
amodra Mar 15, 2022
dc3ff92
Delete PowerPC macro insn support
amodra Mar 15, 2022
2254680
Automatic date update in version.in
Mar 16, 2022
9bde221
Make gdb.fortran/{array-slices,lbound-ubound} work against gdbserver
palves Mar 4, 2022
f4f95df
Updated Serbian (for binutils/) and Russian (for gprof/) translations
nickclifton Mar 16, 2022
978602e
bfd: add AMDGCN architecture
simark Mar 16, 2022
e316110
opcodes: handle bfd_amdgcn_arch in configure script
simark Mar 16, 2022
37870be
binutils/readelf: handle AMDGPU OS ABIs
simark Mar 16, 2022
c077c58
binutils/readelf: decode AMDGPU-specific e_flags
simark Mar 16, 2022
28cdbb1
binutils/readelf: handle NT_AMDGPU_METADATA note name
simark Mar 16, 2022
2952f10
binutils/readelf: build against msgpack, dump NT_AMDGPU_METADATA note…
simark Mar 16, 2022
0c857ef
binutils/readelf: handle AMDGPU relocation types
simark Mar 16, 2022
c5edd3b
gprofng: Define ATTRIBUTE_FALLTHROUGH
hjl-tools Mar 15, 2022
a8b3470
gprofng: Don't hardcode -Wno-nonnull-compare
hjl-tools Mar 15, 2022
61a1f2e
gprofng: Don't hardcode -Wno-format-truncation/-Wno-switch
hjl-tools Mar 15, 2022
f4be268
gprofng: Use symver attribute if available
hjl-tools Mar 14, 2022
a2757c4
gdb/mi: consistently notify user when GDB/MI client uses -thread-select
janvrany Mar 16, 2022
d65c0dd
dlltool: Use the output name as basis for deterministic temp prefixes
mstorsjo Mar 16, 2022
879f2aa
Powerpc fix for gdb.base/ending-run.exp
carlelove Mar 16, 2022
16b6c36
Remove eval_op_string
tromey Mar 8, 2022
fc18a21
Ada support for wide strings
tromey Mar 8, 2022
a73c128
Remove eval_op_concat
tromey Mar 9, 2022
b1b9c41
Reimplement array concatenation for Ada and D
tromey Mar 9, 2022
260ecdc
objcopy --weaken-symbol: apply to STB_GNU_UNIQUE symbols
MaskRay Mar 16, 2022
a6b413d
gdb: work around prompt corruption caused by bracketed-paste-mode
T-J-Teru Mar 11, 2022
4417601
Automatic date update in version.in
Mar 17, 2022
648d04d
x86: assorted IAMCU CPU checking fixes
jbeulich Mar 17, 2022
c085ab0
x86: drop L1OM/K1OM support from gas
jbeulich Mar 17, 2022
b1f8a90
x86: add another IAMCU testcase
jbeulich Mar 17, 2022
ad9de92
x86: unify CPU flag on/off processing
jbeulich Mar 17, 2022
13ed231
x86: never set i386_cpu_flags' "unused" field
jbeulich Mar 17, 2022
ed971d9
x86: don't accept base architectures as extensions
jbeulich Mar 17, 2022
df57332
Re: bfd: add AMDGCN architecture
amodra Mar 17, 2022
0d1064f
asan: buffer overflows after calling ignore_rest_of_line
amodra Mar 17, 2022
c55f2b9
Re: asan: buffer overflow in peXXigen.c
amodra Mar 17, 2022
6109e90
gprofng configure target tests
amodra Mar 17, 2022
4c5f3d0
asan: use of uninitialized value in buffer_and_nest
amodra Mar 17, 2022
0c6a3cd
asan: Buffer overflow in som_set_reloc_info
amodra Mar 17, 2022
98c445c
asan: Buffer overflow in evax_bfd_print_dst
amodra Mar 17, 2022
c9178f2
ubsan: Null dereference in parse_module
amodra Mar 17, 2022
d32cbc0
Add another test for Ada Wide_Wide_String
tromey Mar 16, 2022
575b4c2
gdb: Remove support for S+core
palves Mar 16, 2022
0e30a3b
Remove fall throughs in core_target::xfer_partial.
bsdjhb Mar 17, 2022
cac97c4
gprofng: Skip jsynprog with a broken javac
hjl-tools Mar 14, 2022
9ef0cc6
Automatic date update in version.in
Mar 18, 2022
ecc263d
ubsan: logical_input_line signed integer overflow
amodra Mar 18, 2022
9e2c342
Tidy gas current_frame before exit
amodra Mar 18, 2022
5fac3f0
PR28977 tc-i386.c internal error in parse_register
amodra Mar 18, 2022
3b37430
RISC-V: Prefetch hint instructions and operand set
a4lg Jan 11, 2022
41d6ac5
RISC-V: Cache management instructions
a4lg Jan 11, 2022
22c3694
x86: fold certain AVX2 templates into their AVX counterparts
jbeulich Mar 18, 2022
a548407
x86: drop stray CheckRegSize from VEXTRACT{F,I}32X4
jbeulich Mar 18, 2022
c4d0963
x86: also fold remaining multi-vector-size shift insns
jbeulich Mar 18, 2022
a747a28
Fix ld-arm bug in encoding of blx calls jumping from thumb to arm ins…
preoteasa Mar 18, 2022
f0cf07f
gdb: run black to format some Python files
simark Mar 18, 2022
0a30596
Fix Build issues due to patch "gprofng: a new GNU profiler"
nickclifton Mar 18, 2022
da729c5
Implement gdbarch_stack_frame_destroyed_p for aarch64
tromey Mar 7, 2022
b7e0772
Fix crash with stepi, no debug info, and "set debug infrun 1"
palves Mar 18, 2022
03a5735
Automatic date update in version.in
Mar 19, 2022
6f3dfea
gdb/python: remove gdb._mi_commands dict
simark Mar 18, 2022
1ab7a69
Automatic date update in version.in
Mar 20, 2022
e36144c
ubsan: loongarch : signed integer shift overflow.
lzshhxx Nov 16, 2021
748594b
LoongArch: Use functions instead of magic numbers.
lzshhxx Feb 21, 2022
5fb13d7
gas:LoongArch: Fix segment error in compilation due to too long symbo…
lzshhxx Mar 20, 2022
1848a40
gas:LoongArch: Fix wrong line number in .debug_line
lzshhxx Mar 20, 2022
3b14682
LoongArch: Update ABI eflag in elf header.
lzshhxx Feb 21, 2022
d218dba
LoongArch: Fix LD check fails.
lzshhxx Feb 21, 2022
2a04204
ld: loongarch: Skip unsupport test cases.
lzshhxx Feb 19, 2022
96a671f
gas:LoongArch: Fix "make check" pr21884 fail in LoongArch32.
lzshhxx Mar 13, 2022
2be64de
ld:LoongArch: Add test cases to adapt to LoongArch32 and LoongArch64
lzshhxx Mar 13, 2022
5e8b7e7
Bump version to 12.0.90.DATE-git.
brobecke Mar 20, 2022
5dd959b
Set development mode to "off" by default.
brobecke Mar 20, 2022
fc8b2d4
Update gdb/NEWS to say "in GDB 12" instead of "since GDB 11"
brobecke Mar 20, 2022
9d7105d
Set GDB version number to 12.0.90.
brobecke Mar 20, 2022
eb3ec1b
Bump GDB's version number to 12.0.90.DATE-git.
brobecke Mar 20, 2022
7685884
Add Rust parser check for end of expression
tromey Mar 18, 2022
95c82cb
gdb/mi: fix use after free of frame_info causing spurious notifications
T-J-Teru Mar 23, 2022
09ab0d2
Fix procfs.c compilation
rorth Mar 31, 2022
b86dbc4
[gdb/testsuite] Fix KPASS in gdb.ada/arrayptr.exp
vries Apr 4, 2022
810db22
gdb/testsuite: fix intermittent failures in gdb.mi/mi-cmd-user-contex…
simark Apr 4, 2022
4393855
gdb: don't copy entirely optimized out values in value_copy
simark Apr 4, 2022
aba6eff
Handle TLS variable lookups when using separate debug files.
bsdjhb Apr 4, 2022
81f81fa
Remove "Ada Settings" node from the manual
tromey Mar 14, 2022
0349d33
Fix bug in Ada number lexing
tromey Apr 8, 2022
1ab8f39
gdb/testsuite: use nopie in gdb.dwarf2/dw2-inline-param.exp
simark Apr 13, 2022
4f538bc
[gdb/testsuite] Fix gdb.dwarf2/dw2-lines.exp for m32 pie
vries Apr 13, 2022
d4c9e8f
[gdb/testsuite] Detect 'No MPX support'
vries Apr 14, 2022
f48fc32
[gdb/testsuite] Fix gdb.base/stap-probe.exp with read1
vries Apr 14, 2022
013dbf1
[gdb/testsuite] Make gdb.base/annota1.exp more robust
vries Apr 14, 2022
74f8cb8
[gdb/testsuite] Fix gdb.base/annota1.exp with pie
vries Apr 14, 2022
7b5e70a
Fix regression on Windows with WOW64
tromey Mar 31, 2022
db71274
Silence -Wmaybe-uninitialized warning from target_waitstatus
tromey Apr 7, 2022
d063203
gdb/testsuite: Fix race in gdb.dwarf2/calling-convention.exp
lancesix Apr 14, 2022
04f521a
[gdb/testsuite] Fix gdb.go/methods.exp with check-readmore
vries Apr 15, 2022
f0072f7
[gdb/testsuite] Fix gdb.ada/float-bits.exp with -m32
vries Apr 15, 2022
3ab22db
gdb: fix 'remote show FOO-packet' aliases
T-J-Teru Apr 21, 2022
e312dfb
gdb: move setbuf calls out of gdb_readline_no_editing_callback
T-J-Teru Apr 24, 2022
4324e94
Import gnulib changes
tromey Apr 18, 2022
e53a8e8
Set GDB version number to 12.1.
brobecke May 1, 2022
ccae74f
check_types_equal: short circuit check if identical pointers are used
jeffmahoney Jan 12, 2016
94f31e2
python: use utf-8 encoding for gdb_write
jeffmahoney Apr 14, 2019
595de3d
gdb: exclude PROP_UNDEFINED ranges from bound_flag_evaluated check
jeffmahoney Mar 18, 2020
eafb663
symfile: delay new objfile event until after relocation
jeffmahoney Apr 14, 2019
dddfc17
py-symbol: use Py_RETURN_NONE instead of open coding it
jeffmahoney Jan 13, 2016
2dc2a55
py-symbol: Allow gdb_lookup_symbol to accept block=None
jeffmahoney Mar 18, 2020
abfd788
py-type: gdbpy_lookup_type accept None as NULL
jeffmahoney Apr 14, 2019
099b10d
py-minsymbol: Add interface to access minimal_symbols
jeffmahoney Mar 18, 2020
8f53295
pyblock: add dictionary browsing for symbols
alesax Sep 2, 2015
84c9b2f
py-registers: export register descriptor for use in other modules
jeffmahoney Nov 3, 2021
8f25d8a
py-target: add interface to target
jeffmahoney Apr 13, 2019
abab439
py-infthread: add dictionary to thread object
jeffmahoney Feb 9, 2016
afebf17
py-objfile: add has_symbols() method
jeffmahoney Apr 25, 2019
6fbdcb6
gdb-python: add gdb.NotAvailableError exception
jeffmahoney May 15, 2019
e94a44c
py-type: make tp_richcompare lighterweight
jeffmahoney Aug 10, 2022
f78dff4
bfd: add kdumpfile target
jeffmahoney Jul 15, 2022
f0c0cbe
py-lktarget: add small linux kernel target
jeffmahoney Jul 22, 2022
560bb2b
Add Ubuntu package definition
May 7, 2019
856c926
Fix "debsums -c" issue with "dir.gz" file
May 16, 2019
5f03e1c
Move installation to "/opt/gdb-python" directory
May 21, 2019
c7e4856
Add copyright to debian folder
sdimitro Jun 11, 2020
98170cd
TOOL-11726 gdb-python: add build-dependencies to control file and sto…
pzakha Jun 14, 2021
a0f6917
DLPX-92903 gdb-python build fails on Ubuntu 24.04 because of deprecat…
palash-gandhi Dec 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Import gnulib changes
This imports the gnulib patches that were mentioned by Eli.  I created
the patches from gnulib git, ran them through filterdiff, and then
applied them using update-gnulib.sh's patch-applying facility.

I think the patches are either obviously Windows-specific or harmless,
but I encourage you to look for yourself.

I tested by rebuilding on x86-64 Fedora 34, and also using the Fedora
mingw cross toolchain.
  • Loading branch information
tromey committed Apr 25, 2022
commit 4324e94471818eac36520c2fc0c7d108d5395d14
2 changes: 1 addition & 1 deletion gnulib/Makefile.in
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@

@SET_MAKE@

# Copyright (C) 2019-2021 Free Software Foundation, Inc.
# Copyright (C) 2019-2022 Free Software Foundation, Inc.

# This file is part of GDB.

2 changes: 1 addition & 1 deletion gnulib/doc/gendocs_template
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<!-- Parent-Version: 1.78 -->

<!--
Copyright (C) 2006-2022 Free Software Foundation, Inc.
Copyright (C) 2006-2021 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
2 changes: 1 addition & 1 deletion gnulib/doc/gendocs_template_min
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<!--
Copyright (C) 2007-2022 Free Software Foundation, Inc.
Copyright (C) 2007-2021 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
19 changes: 18 additions & 1 deletion gnulib/import/glob.c
Original file line number Diff line number Diff line change
@@ -743,6 +743,8 @@ __glob (const char *pattern, int flags, int (*errfunc) (const char *, int),
else
{
#ifndef WINDOWS32
/* Recognize ~user as a shorthand for the specified user's home
directory. */
char *end_name = strchr (dirname, '/');
char *user_name;
int malloc_user_name = 0;
@@ -881,7 +883,22 @@ __glob (const char *pattern, int flags, int (*errfunc) (const char *, int),
}
scratch_buffer_free (&pwtmpbuf);
}
#endif /* !WINDOWS32 */
#else /* WINDOWS32 */
/* On native Windows, access to a user's home directory
(via GetUserProfileDirectory) or to a user's environment
variables (via ExpandEnvironmentStringsForUser) requires
the credentials of the user. Therefore we cannot support
the ~user syntax on this platform.
Handling ~user specially (and treat it like plain ~) if
user is getenv ("USERNAME") would not be a good idea,
since it would make people think that ~user is supported
in general. */
if (flags & GLOB_TILDE_CHECK)
{
retval = GLOB_NOMATCH;
goto out;
}
#endif /* WINDOWS32 */
}
}

9 changes: 5 additions & 4 deletions gnulib/import/select.c
Original file line number Diff line number Diff line change
@@ -530,12 +530,13 @@ rpl_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds,
if (h != handle_array[nhandles])
{
/* Perform handle->descriptor mapping. */
WSAEventSelect ((SOCKET) h, NULL, 0);
if (FD_ISSET (h, &handle_rfds))
SOCKET s = (SOCKET) h;
WSAEventSelect (s, NULL, 0);
if (FD_ISSET (s, &handle_rfds))
FD_SET (i, rfds);
if (FD_ISSET (h, &handle_wfds))
if (FD_ISSET (s, &handle_wfds))
FD_SET (i, wfds);
if (FD_ISSET (h, &handle_xfds))
if (FD_ISSET (s, &handle_xfds))
FD_SET (i, xfds);
}
else
12 changes: 10 additions & 2 deletions gnulib/import/unistd.in.h
Original file line number Diff line number Diff line change
@@ -2033,9 +2033,17 @@ _GL_WARN_ON_USE (sleep, "sleep is unportable - "
# undef swab
# define swab _swab
# endif
_GL_CXXALIAS_MDA (swab, void, (char *from, char *to, int n));
# else
/* Need to cast, because in old mingw the arguments are
(const char *from, char *to, size_t n). */
_GL_CXXALIAS_MDA_CAST (swab, void, (char *from, char *to, int n));
# else
# if defined __hpux /* HP-UX */
_GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, int n));
# elif defined __sun && !defined _XPG4 /* Solaris */
_GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, ssize_t n));
# else
_GL_CXXALIAS_SYS (swab, void, (const void *from, void *to, ssize_t n));
# endif
# endif
_GL_CXXALIASWARN (swab);
#endif
49 changes: 49 additions & 0 deletions gnulib/patches/0002-glob-tilde-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
commit 38d0749a3077b03fda46567510b1217fb5e4e170
Author: Bruno Haible <[email protected]>
Date: Fri Apr 2 17:34:46 2021 +0200

glob: Reject ~user syntax, when flag GLOB_TILDE_CHECK is given.

Reported and patch suggested by Eli Zaretskii <[email protected]> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00136.html>.

* lib/glob.c (__glob) [WINDOWS32]: If flag GLOB_TILDE_CHECK is given, do
error handling like when ~user is allowed by the user is unknown.

diff --git a/gnulib/import/glob.c b/gnulib/import/glob.c
index 775911ef5b..e148f8d761 100644
--- a/gnulib/import/glob.c
+++ b/gnulib/import/glob.c
@@ -743,6 +743,8 @@ __glob (const char *pattern, int flags, int (*errfunc) (const char *, int),
else
{
#ifndef WINDOWS32
+ /* Recognize ~user as a shorthand for the specified user's home
+ directory. */
char *end_name = strchr (dirname, '/');
char *user_name;
int malloc_user_name = 0;
@@ -881,7 +883,22 @@ __glob (const char *pattern, int flags, int (*errfunc) (const char *, int),
}
scratch_buffer_free (&pwtmpbuf);
}
-#endif /* !WINDOWS32 */
+#else /* WINDOWS32 */
+ /* On native Windows, access to a user's home directory
+ (via GetUserProfileDirectory) or to a user's environment
+ variables (via ExpandEnvironmentStringsForUser) requires
+ the credentials of the user. Therefore we cannot support
+ the ~user syntax on this platform.
+ Handling ~user specially (and treat it like plain ~) if
+ user is getenv ("USERNAME") would not be a good idea,
+ since it would make people think that ~user is supported
+ in general. */
+ if (flags & GLOB_TILDE_CHECK)
+ {
+ retval = GLOB_NOMATCH;
+ goto out;
+ }
+#endif /* WINDOWS32 */
}
}

36 changes: 36 additions & 0 deletions gnulib/patches/0003-unistd-h-fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
commit c7b1e060d17023065c776757da406d728310cc38
Author: Bruno Haible <[email protected]>
Date: Sun Jun 20 17:18:26 2021 +0200

unistd: Avoid compilation error in C++ mode on Solaris, HP-UX, mingw.

Reported by Eli Zaretskii <[email protected]> in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00135.html>.

* lib/unistd.in.h (swab): Consider different declarations on Solaris,
HP-UX, and old mingw.

diff --git a/gnulib/import/unistd.in.h b/gnulib/import/unistd.in.h
index d4d4ba7743..73c882f97b 100644
--- a/gnulib/import/unistd.in.h
+++ b/gnulib/import/unistd.in.h
@@ -2034,9 +2034,17 @@ _GL_WARN_ON_USE (sleep, "sleep is unportable - "
# undef swab
# define swab _swab
# endif
-_GL_CXXALIAS_MDA (swab, void, (char *from, char *to, int n));
-# else
+/* Need to cast, because in old mingw the arguments are
+ (const char *from, char *to, size_t n). */
+_GL_CXXALIAS_MDA_CAST (swab, void, (char *from, char *to, int n));
+# else
+# if defined __hpux /* HP-UX */
+_GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, int n));
+# elif defined __sun && !defined _XPG4 /* Solaris */
+_GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, ssize_t n));
+# else
_GL_CXXALIAS_SYS (swab, void, (const void *from, void *to, ssize_t n));
+# endif
# endif
_GL_CXXALIASWARN (swab);
#endif
33 changes: 33 additions & 0 deletions gnulib/patches/0004-select-mingw
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
commit 21fccfa0451ba59fba479e439465da9c360353d3
Author: Paul Eggert <[email protected]>
Date: Thu Jul 8 10:00:30 2021 -0700

select: port better to MinGW

Problem reported by Eli Zaretskii in:
https://lists.gnu.org/r/bug-gnulib/2021-07/msg00017.html
* lib/select.c (rpl_select) [_WIN32 && !__CYGWIN__]:
Pass a SOCKET, not a HANDLE, to FD_ISSET.

diff --git a/gnulib/import/select.c b/gnulib/import/select.c
index 2fe6a18064..eddac4b61f 100644
--- a/gnulib/import/select.c
+++ b/gnulib/import/select.c
@@ -530,12 +530,13 @@ restart:
if (h != handle_array[nhandles])
{
/* Perform handle->descriptor mapping. */
- WSAEventSelect ((SOCKET) h, NULL, 0);
- if (FD_ISSET (h, &handle_rfds))
+ SOCKET s = (SOCKET) h;
+ WSAEventSelect (s, NULL, 0);
+ if (FD_ISSET (s, &handle_rfds))
FD_SET (i, rfds);
- if (FD_ISSET (h, &handle_wfds))
+ if (FD_ISSET (s, &handle_wfds))
FD_SET (i, wfds);
- if (FD_ISSET (h, &handle_xfds))
+ if (FD_ISSET (s, &handle_xfds))
FD_SET (i, xfds);
}
else
4 changes: 4 additions & 0 deletions gnulib/update-gnulib.sh
Original file line number Diff line number Diff line change
@@ -180,6 +180,7 @@ fi
# Apply our local patches.
apply_patches ()
{
echo "Applying $1..."
patch -p2 -f -i "$1"
if [ $? -ne 0 ]; then
echo "Failed to apply some patches. Aborting."
@@ -188,6 +189,9 @@ apply_patches ()
}

apply_patches "patches/0001-use-windows-stat"
apply_patches "patches/0002-glob-tilde-check"
apply_patches "patches/0003-unistd-h-fix"
apply_patches "patches/0004-select-mingw"

# Regenerate all necessary files...
aclocal &&