X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fnto-tdep.h;h=f176b70df27dca8998ccec31f6337b99321546a0;hb=c44885db3b56c83a12e88a176c03f2a2268428b8;hp=f63f13ccda10ca93c8f1eb177dd2f409b3305c97;hpb=7aabaf9d4ad52a1df1f551908fbd8cafc5e7597a;p=binutils-gdb.git
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h
index f63f13ccda1..f176b70df27 100644
--- a/gdb/nto-tdep.h
+++ b/gdb/nto-tdep.h
@@ -1,6 +1,6 @@
/* nto-tdep.h - QNX Neutrino target header.
- Copyright (C) 2003-2017 Free Software Foundation, Inc.
+ Copyright (C) 2003-2022 Free Software Foundation, Inc.
Contributed by QNX Software Systems Ltd.
@@ -19,8 +19,8 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see . */
-#ifndef _NTO_TDEP_H
-#define _NTO_TDEP_H
+#ifndef NTO_TDEP_H
+#define NTO_TDEP_H
#include "solist.h"
#include "osabi.h"
@@ -152,10 +152,10 @@ get_nto_thread_info (thread_info *thread)
struct nto_inferior_data
{
/* Last stopped flags result from wait function */
- unsigned int stopped_flags;
+ unsigned int stopped_flags = 0;
/* Last known stopped PC */
- CORE_ADDR stopped_pc;
+ CORE_ADDR stopped_pc = 0;
};
/* Generic functions in nto-tdep.c. */
@@ -170,7 +170,8 @@ void nto_relocate_section_addresses (struct so_list *,
int nto_map_arch_to_cputype (const char *);
-int nto_find_and_open_solib (const char *, unsigned, char **);
+int nto_find_and_open_solib (const char *, unsigned,
+ gdb::unique_xmalloc_ptr *);
enum gdb_osabi nto_elf_osabi_sniffer (bfd *abfd);
@@ -190,4 +191,4 @@ LONGEST nto_read_auxv_from_initial_stack (CORE_ADDR inital_stack,
struct nto_inferior_data *nto_inferior_data (struct inferior *inf);
-#endif
+#endif /* NTO_TDEP_H */