]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/breakpoint.c: fix style issues in get_sal_arch
authorLancelot SIX <lancelot.six@amd.com>
Fri, 8 Nov 2024 19:52:55 +0000 (19:52 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 12 Dec 2025 19:55:41 +0000 (14:55 -0500)
Fix coding standard related issues in get_sal_arch.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I62b059e0bf060f368c9895c97d8b162d73ff61ce

gdb/breakpoint.c

index 61ff3ba6666e394be5ce03777c9515078cdbd1cf..8d35e00be99c72257dd785923d73e91d387000aa 100644 (file)
@@ -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