From 37a6b272f89291fddbc3fc47399ecc6fbc4483e2 Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Fri, 8 Nov 2024 19:52:55 +0000 Subject: [PATCH] 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 --- gdb/breakpoint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.3