]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: fix 32 bit build
authorGuinevere Larsen <guinevere@redhat.com>
Thu, 24 Apr 2025 11:42:12 +0000 (08:42 -0300)
committerGuinevere Larsen <guinevere@redhat.com>
Fri, 25 Apr 2025 11:43:13 +0000 (08:43 -0300)
commita1537331abaf66fddd3553dd827381a01bcda46c
treed89df55bc6847b374ee63eff964844da49e83160
parent4868f287d036a12b09541757a046ce4f8f6aac44
gdb: fix 32 bit build

The recent commit dbbb9cfd3708a5b09b449c6cbc4d74dfec13904d added a
message using %ld to print an std::vector::size, which is of size_t
type. on 64 bit machines, size_t will be an unsigned long int, making
%ld work just fine, but on 32 bit ones, size_t will be unsigned int,
which causes the build to fail.

This commit fixes that by using %zu instead.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32901
Tested-By: Luis Machado <luis.machado@arm.com>
Approved-By: Luis Machado <luis.machado@arm.com>
gdb/solib.c