]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/symtab: declare variables on first use in skip_prologue_sal
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 11 Oct 2025 04:02:44 +0000 (00:02 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 14 Oct 2025 17:46:29 +0000 (13:46 -0400)
commit71adb55542d61bc5776cb3b0921db9e8a97a3d00
tree82b3019043de8d075379138fcd7c07a672d6e348
parentd39a6e7c1b01792a2aa4021f6511a3f9173efe48
gdb/symtab: declare variables on first use in skip_prologue_sal

I'm currently looking at this function, and think it makes it easier to
process if the variables are declared when actually used.

I turned one while loop into a for, in order to be able to declare the
loop variable in the for loop.

Change-Id: I70258a94f39acb3d56e5b8e85cdfadc2f7687bc4
Approved-By: Tom Tromey <tom@tromey.com>
gdb/symtab.c