diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-11-05 13:42:57 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-11-25 16:45:25 +0000 |
commit | df63932c96a393a1211cb2bcec19349db84a9c18 (patch) | |
tree | 10ed0d591c64b2d622a34870d45897ff5624060f /gdb/python/python-internal.h | |
parent | 2778a124e30439c1801d3d19a47d8233935051af (diff) | |
download | binutils-df63932c96a393a1211cb2bcec19349db84a9c18.zip binutils-df63932c96a393a1211cb2bcec19349db84a9c18.tar.gz binutils-df63932c96a393a1211cb2bcec19349db84a9c18.tar.bz2 |
gdb: remove an unnecessary scope block in update_breakpoint_locations
In update_breakpoint_locations there's a scope block which I don't
think adds any value. There is one local defined within the scope,
the local is currently an 'int' but should be a 'bool', either way
there's no destructor being triggered when we exit the scope.
This commit changes the local to a 'bool', removes the unnecessary
scope, and re-indents the code.
Within the (now removed) scope was a `for' loop. Inside the loop I
have converted this:
for (....)
{
if (CONDITION)
{
/* Body */
}
}
to this:
for (....)
{
if (!CONDITION)
continue;
/* Body */
}
which means that the body doesn't need to be indented as much, making
things easier to read.
There should be no functional change after this commit.
Reviewed-By: Klaus Gerlicher <klaus.gerlicher@intel.com>
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions