gdb patches : coffread/C_LABEL and delta68/KERNEL_U_SIZE
Philippe De Muyter
phdm@macqel.be
Mon Aug 24 06:22:00 GMT 1998
Mon Aug 24 15:03:46 1998 Philippe De Muyter <phdm@macqel.be>
* config/m68k/nm-delta68.h (KERNEL_U_SIZE): New macro.
* delta68-nat.c (kernel_u_size): New function.
* coffread.c (coff_symtab_read): Discard C_LABEL's that are not
function entry points.
--- ./config/m68k/nm-delta68.h Mon Aug 24 15:13:30 1998
+++ ./config/m68k/nm-delta68.h Mon Aug 24 14:57:55 1998
@@ -1,5 +1,5 @@
/* Macro definitions for a Delta.
- Copyright (C) 1993 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1998 Free Software Foundation, Inc.
This file is part of GDB.
@@ -19,4 +19,5 @@
/* Motorola Delta Series sysV68 R3V7.1. */
-#define NO_PTRACE_H
+#define NO_PTRACE_H
+#define KERNEL_U_SIZE kernel_u_size()
--- ./coffread.c Mon Aug 24 15:19:06 1998
+++ ./coffread.c Mon Aug 24 15:18:47 1998
@@ -1,6 +1,5 @@
/* Read coff symbol tables and convert to internal format, for GDB.
- Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997
- Free Software Foundation, Inc.
+ Copyright 1987-98, Free Software Foundation, Inc.
Contributed by David D. Johnson, Brown University (ddj@cs.brown.edu).
This file is part of GDB.
@@ -934,6 +933,8 @@ coff_symtab_read (symtab_offset, nsyms,
it here allows gdb to see static functions when no debug
info is available. */
case C_LABEL:
+ if (within_function)
+ break;
case C_STAT:
if (cs->c_name[0] == '.')
{
--- ./delta68-nat.c Mon Aug 24 15:13:35 1998
+++ ./delta68-nat.c Mon Aug 24 15:03:21 1998
@@ -1,5 +1,5 @@
/* Functions specific to running gdb native on a Motorola Delta Series sysV68.
- Copyright (C) 1993, Free Software Foundation, Inc.
+ Copyright (C) 1993, 1996, 1998, Free Software Foundation, Inc.
This file is part of GDB.
@@ -83,4 +83,9 @@ clear_insn_cache ()
#ifdef MCT_TEXT /* in sys/signal.h on sysV68 R3V7.1 */
memctl(0, 4096, MCT_TEXT);
#endif
+}
+
+kernel_u_size ()
+{
+ return sizeof (struct user);
}
More information about the Gdb-patches
mailing list