gdb: make some breakpoint methods use `this`
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 8 May 2023 19:54:52 +0000 (15:54 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 25 May 2023 12:46:23 +0000 (08:46 -0400)
commitdbaa3bf64062798c3e3009ab18af432dc5e7f4f5
tree368f5bc694f5ae2429a3dd0fba7a59e9b55033fd
parent26a69f095f1a2f534dcd347f28a9282dff0fde1f
gdb: make some breakpoint methods use `this`

Some implementations of breakpoint::check_status and
breakpoint::print_it do this:

    struct breakpoint *b = bs->breakpoint_at;

bs->breakpoint_at is always the same as `this` (we can get convinced by
looking at the call sites of check_status and print_it), so it would
just be clearer to access fields through `this` instead.

Change-Id: Ic542a64fcd88e31ae2aad6feff1da278c7086891
Reviewed-By: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
gdb/break-catch-load.c
gdb/break-catch-syscall.c
gdb/break-catch-throw.c
gdb/breakpoint.c