From: Lancelot SIX Date: Fri, 8 Nov 2024 19:52:55 +0000 (+0000) Subject: gdb/breakpoint.c: fix style issues in get_sal_arch X-Git-Tag: binutils-2_46~612 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37a6b272f89291fddbc3fc47399ecc6fbc4483e2;p=thirdparty%2Fbinutils-gdb.git gdb/breakpoint.c: fix style issues in get_sal_arch Fix coding standard related issues in get_sal_arch. Approved-By: Simon Marchi Change-Id: I62b059e0bf060f368c9895c97d8b162d73ff61ce --- diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 61ff3ba6666..8d35e00be99 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -7768,12 +7768,12 @@ set_breakpoint_location_function (struct bp_location *loc) struct gdbarch * get_sal_arch (struct symtab_and_line sal) { - if (sal.section) + if (sal.section != nullptr) return sal.section->objfile->arch (); - if (sal.symtab) + if (sal.symtab != nullptr) return sal.symtab->compunit ()->objfile ()->arch (); - return NULL; + return nullptr; } /* Call this routine when stepping and nexting to enable a breakpoint