mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 09:10:32 -04:00
New features in GDB 8.3 include support for DWARF index caches and styling (colors) in the CLI and TUI. Source code styling is also available via the new SOURCE_HIGHLIGHT option (enabled by default). GDB 8.3 also adds support for FreeBSD/riscv64. In addition, kgdb has been updated for changes in 8.3 along with support for FreeBSD/riscv64 kernels. The libc++ helpers have been updated to a newer version which adds support for std::list<> and std::forward_list<>. The helpers now also support Python 3. Finally, a few post-8.3 patches have been backported which add suport for TLS (Thread Local Storage) variables on FreeBSD amd64, i386, powerpc, and riscv architectures. Note that amd64 and i386 do not support examining TLS variables in core dumps currently. This support along with support for additional architectures require kernel changes and will be added in the future once the kernel has been updated. Reviewed by: pizzamig (maintainer) Differential Revision: https://reviews.freebsd.org/D20403
60 lines
2.1 KiB
Text
60 lines
2.1 KiB
Text
commit 36c53a0262f84ad11d738471789dadfa9c4eb320
|
|
Author: John Baldwin <jhb@FreeBSD.org>
|
|
Date: Tue Mar 12 13:39:02 2019 -0700
|
|
|
|
Remove code disabled since at least 1999 from lookup_struct_elt_type.
|
|
|
|
Update the comment above the function to reflect the code removal and
|
|
document the existing behavior.
|
|
|
|
gdb/ChangeLog:
|
|
|
|
* gdbtypes.c (lookup_struct_elt_type): Update comment and
|
|
remove disabled code block.
|
|
|
|
diff --git gdb/gdbtypes.c gdb/gdbtypes.c
|
|
index 09284ef259..5924b15520 100644
|
|
--- gdb/gdbtypes.c
|
|
+++ gdb/gdbtypes.c
|
|
@@ -1644,8 +1644,7 @@ lookup_template_type (char *name, struct type *type,
|
|
return (SYMBOL_TYPE (sym));
|
|
}
|
|
|
|
-/* Given a type TYPE, lookup the type of the component of type named
|
|
- NAME.
|
|
+/* Given a type TYPE, lookup the type of the component named NAME.
|
|
|
|
TYPE can be either a struct or union, or a pointer or reference to
|
|
a struct or union. If it is a pointer or reference, its target
|
|
@@ -1653,8 +1652,8 @@ lookup_template_type (char *name, struct type *type,
|
|
as specified for the definitions of the expression element types
|
|
STRUCTOP_STRUCT and STRUCTOP_PTR.
|
|
|
|
- If NOERR is nonzero, return zero if NAME is not suitably defined.
|
|
- If NAME is the name of a baseclass type, return that type. */
|
|
+ If NOERR is nonzero, return NULL if there is no component named
|
|
+ NAME. */
|
|
|
|
struct type *
|
|
lookup_struct_elt_type (struct type *type, const char *name, int noerr)
|
|
@@ -1678,20 +1677,6 @@ lookup_struct_elt_type (struct type *type, const char *name, int noerr)
|
|
type_name.c_str ());
|
|
}
|
|
|
|
-#if 0
|
|
- /* FIXME: This change put in by Michael seems incorrect for the case
|
|
- where the structure tag name is the same as the member name.
|
|
- I.e. when doing "ptype bell->bar" for "struct foo { int bar; int
|
|
- foo; } bell;" Disabled by fnf. */
|
|
- {
|
|
- char *type_name;
|
|
-
|
|
- type_name = TYPE_NAME (type);
|
|
- if (type_name != NULL && strcmp (type_name, name) == 0)
|
|
- return type;
|
|
- }
|
|
-#endif
|
|
-
|
|
for (i = TYPE_NFIELDS (type) - 1; i >= TYPE_N_BASECLASSES (type); i--)
|
|
{
|
|
const char *t_field_name = TYPE_FIELD_NAME (type, i);
|