svn commit: r557028 - in head/devel/gdb: . files files/kgdb,Re: svn commit: r557028 - in head/devel/gdb: . files files/kgdb

Yasuhiro KIMURA yasu at utahime.org
Sun Dec 6 00:42:34 UTC 2020


From: Charlie Li <ml+freebsd at vishwin.info>
Subject: Re: svn commit: r557028 - in head/devel/gdb: . files files/kgdb,Re: svn commit: r557028 - in head/devel/gdb: . files files/kgdb
Date: Sat, 5 Dec 2020 18:28:19 -0500

> This file fails to build.
> 
> /wrkdirs/usr/ports/devel/gdb/work/gdb-10.1/gdb/fbsd-kvm.c:342:10: error:
> typedef 'section_offsets' cannot be referenced with a struct specifier
>                 struct section_offsets *new_offsets;
>                        ^
> /wrkdirs/usr/ports/devel/gdb/work/gdb-10.1/gdb/symtab.h:1351:32: note:
> declared here
> typedef std::vector<CORE_ADDR> section_offsets;
>                                ^
> /wrkdirs/usr/ports/devel/gdb/work/gdb-10.1/gdb/fbsd-kvm.c:349:22: error:
> no member named 'num_sections' in 'objfile'; did you mean 'sections'?
>                                 symfile_objfile->num_sections);
>                                                  ^~~~~~~~~~~~
>                                                  sections
> /wrkdirs/usr/ports/devel/gdb/work/gdb-10.1/gdb/../include/libiberty.h:365:55:
> note: expanded from macro 'XALLOCAVEC'
> #define XALLOCAVEC(T, N)        ((T *) alloca (sizeof (T) * (N)))
>                                                              ^
> /wrkdirs/usr/ports/devel/gdb/work/gdb-10.1/gdb/../include/libiberty.h:738:37:
> note: expanded from macro 'alloca'
> # define alloca(x) __builtin_alloca(x)
>                                     ^
> /wrkdirs/usr/ports/devel/gdb/work/gdb-10.1/gdb/objfiles.h:653:23: note:
> 'sections' declared here
>   struct obj_section *sections = nullptr;
>                       ^
> /wrkdirs/usr/ports/devel/gdb/work/gdb-10.1/gdb/fbsd-kvm.c:351:37: error:
> no member named 'num_sections' in 'objfile'
>                         for (i = 0; i < symfile_objfile->num_sections; i++)
>                                         ~~~~~~~~~~~~~~~  ^
> 3 errors generated.
> gmake[3]: *** [Makefile:1625: fbsd-kvm.o] Error 1

Same here with 13-CURRENT amd64 r368331.

---
Yasuhiro KIMURA


More information about the svn-ports-all mailing list