Here's a patch to gdb-4.13 to add dyadic frames, as per J"org Wunsch.

Could somebody apply it?
Submitted by:	gj
This commit is contained in:
Jordan K. Hubbard 1995-01-17 13:52:39 +00:00
parent d25a46b215
commit 5238dbaecc
4 changed files with 44 additions and 2 deletions

View File

@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: freebsd-nat.c,v 1.2 1994/12/30 23:25:44 jkh Exp $ $Id: freebsd-nat.c,v 1.3 1994/12/31 17:00:09 bde Exp $
*/ */
#include <sys/types.h> #include <sys/types.h>
@ -297,6 +297,18 @@ i386_float_info ()
print_387_status (fpstatep->sv_ex_sw, (struct env387 *)fpstatep); print_387_status (fpstatep->sv_ex_sw, (struct env387 *)fpstatep);
} }
#ifdef SETUP_ARBITRARY_FRAME
FRAME
setup_arbitrary_frame (numargs, args)
int numargs;
unsigned int *args;
{
if (numargs > 2)
error ("Too many args in frame specification");
return create_new_frame ((CORE_ADDR)args[0], (CORE_ADDR)args[1]);
}
#endif
#ifdef KERNEL_DEBUG #ifdef KERNEL_DEBUG
#include <sys/proc.h> #include <sys/proc.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef _FREEBSD_TM_H_
#define _FREEBSD_TM_H_
/* Override number of expected traps from sysv. */ /* Override number of expected traps from sysv. */
#define START_INFERIOR_TRAPS_EXPECTED 2 #define START_INFERIOR_TRAPS_EXPECTED 2
@ -79,3 +81,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
? sigtramp_saved_pc (FRAME) \ ? sigtramp_saved_pc (FRAME) \
: read_memory_integer ((FRAME)->frame + 4, 4)) \ : read_memory_integer ((FRAME)->frame + 4, 4)) \
) )
#undef SETUP_ARBITRARY_FRAME
#include "frame.h"
extern FRAME setup_arbitrary_frame ();
#define SETUP_ARBITRARY_FRAME setup_arbitrary_frame
#endif /* _FREEBSD_TM_H_ */

View File

@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: freebsd-nat.c,v 1.2 1994/12/30 23:25:44 jkh Exp $ $Id: freebsd-nat.c,v 1.3 1994/12/31 17:00:09 bde Exp $
*/ */
#include <sys/types.h> #include <sys/types.h>
@ -297,6 +297,18 @@ i386_float_info ()
print_387_status (fpstatep->sv_ex_sw, (struct env387 *)fpstatep); print_387_status (fpstatep->sv_ex_sw, (struct env387 *)fpstatep);
} }
#ifdef SETUP_ARBITRARY_FRAME
FRAME
setup_arbitrary_frame (numargs, args)
int numargs;
unsigned int *args;
{
if (numargs > 2)
error ("Too many args in frame specification");
return create_new_frame ((CORE_ADDR)args[0], (CORE_ADDR)args[1]);
}
#endif
#ifdef KERNEL_DEBUG #ifdef KERNEL_DEBUG
#include <sys/proc.h> #include <sys/proc.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef _FREEBSD_TM_H_
#define _FREEBSD_TM_H_
/* Override number of expected traps from sysv. */ /* Override number of expected traps from sysv. */
#define START_INFERIOR_TRAPS_EXPECTED 2 #define START_INFERIOR_TRAPS_EXPECTED 2
@ -79,3 +81,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
? sigtramp_saved_pc (FRAME) \ ? sigtramp_saved_pc (FRAME) \
: read_memory_integer ((FRAME)->frame + 4, 4)) \ : read_memory_integer ((FRAME)->frame + 4, 4)) \
) )
#undef SETUP_ARBITRARY_FRAME
#include "frame.h"
extern FRAME setup_arbitrary_frame ();
#define SETUP_ARBITRARY_FRAME setup_arbitrary_frame
#endif /* _FREEBSD_TM_H_ */