import gdb-1999-05-10

This commit is contained in:
Stan Shebs 1999-05-11 13:35:55 +00:00
parent e9868447b4
commit cd0fc7c3eb
61 changed files with 6422 additions and 3878 deletions

View File

@ -1,3 +1,132 @@
1999-05-10 Martin Hunt <hunt@cygnus.com>
* debugify.c, debugify.h: Removed because they are no
longer used.
1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
* infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
SIGIO --- pass them through to the inferior silently.
* target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
Solaris's SIGCANCEL.
* target.c (target_signal_from_host, target_signal_to_host): Add
mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
(signals): Add entry for SIGCANCEL.
1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
After years of talking about it, finally break up the
wait_for_inferior loop.
* infrun.c (struct execution_control_state): New struct,
holds what used to be local vars governing wfi behavior.
(init_execution_control_state): New function, was code in
wfi that set up execution control state.
(handle_inferior_event): New function, was body of main
wfi loop. Rewrite all local var references to go through
the ecs structure passed into this function.
(wait_for_inferior): Rewrite to set up and use execution control
state, and to call the new functions.
(currently_stepping): New function, was the macro
CURRENTLY_STEPPING.
(enum infwait_states): Rename from wfi_states.
(infwait_normal_state, etc): Similarly.
Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
* coffread.c (coff_symtab_read): Call `record_line' with the line
number of the ".bf" symbol only for one-line functions.
1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
* Makefile.in: thread.o depends on target.h.
1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* event-top.c (change_line_handler): Use POLLIN instead of
POLLRDNORM, for compatibility with Linux.
(setup_event_loop): Ditto.
1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
* mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
message about hitting the "heuristic fence post" with something
that actually gives the user a fighting chance of figuring out
why GDB is unhappy.
1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* top.c: Include event-loop.h.
(init_main): Add async version of 'set prompt' command.
If in async mode define the editing and annotate set
commands in a different way.
Initialize new variable asyn_command_editing_p to 1.
Initialize the gdb prompt for async mode.
(quit_cover): Make not static, for use by the event loop.
(gdb_init): Call async_init_signals for the asynchronous case.
(source_line_number, source_file_name, source_error,
source_pre_error, history_expansion_p): Make non-static, so
event-top.c can use them.
(command_loop_marker): Make non-static, for use in event-top.c.
Include event-loop.h.
* top.h: Add prototype for async_init_signals.
(SET_TOP_LEVEL): Move here from main.c.
Add setup_event_loop to exported functions.
* defs.h: Add async_hook to exported variables.
* main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
event-loop.c. Add new global variable async to determine whether
we are running in async mode or not.
(main): Add support for --async switch. Use async_hook to call
setup_event_loop, when running in async mode.
* event-top.c: New file. Gdb input line handler and command line
handler for the event loop. Initialization of signal handlers.
All the handled signals have handlers called handle_<signalname>.
Set up all the appropriate tokens for asynchronous signal
handling.
* event-loop.h: New file. Data structures and definitions for the
event loop.
* event-loop.c: New file. Functions for the event loop
implementation.
* config.in: Regenerate with autoheader.
* configure.in (AC_CHECK_FUNCS): Add poll to list of functions
to be checked for.
* configure: Regenerate.
* Makefile.in (SFILES): Add new source files.
(eventloop_h): Define.
(COMMON_OBS): Add new object files.
(event-loop.o): Add rule for target object.
(event-top.o): Ditto.
1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
* infrun.c (wait_for_inferior): Transform breaks and continues
into gotos, move the target_wait to the very top of the loop.
1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
* configure.in: Ensure that GDB links with libuser32.a under
cygwin because libreadline requires it.
* Makefile.in (WIN32LIBS): Substitute in result from configure
* configure: regenerate
1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
Fix from John Rigby. Richard Henderson says it seems okay.
* alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
of (proc)->pdr, we ought to at least abuse one large enough to
hold the value we're trying to store in it. iopt is only 32 bits
wide; cbLineOffset is a bfd_vma.
1999-05-04 DJ Delorie <dj@cygnus.com>
DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>

View File

@ -148,6 +148,8 @@ OPCODES_CFLAGS = -I$(OP_INCLUDE)
# should set this to list all the .o or .a files to be linked in.
SIM =
WIN32LIBS = @WIN32LIBS@
ENABLE_CFLAGS= @ENABLE_CFLAGS@
@ -217,7 +219,7 @@ CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
VERSION = 19990504
VERSION = 19990510
DIST=gdb
LINT=/usr/5bin/lint
@ -368,6 +370,7 @@ SFILES = ax-general.c ax-gdb.c bcache.c blockframe.c breakpoint.c \
ch-exp.c ch-lang.c ch-typeprint.c ch-valprint.c coffread.c \
command.c complaints.c corefile.c cp-valprint.c dbxread.c \
demangle.c dwarfread.c dwarf2read.c elfread.c environ.c eval.c \
event-loop.c event-top.c \
expprint.c f-exp.y f-lang.c f-typeprint.c f-valprint.c \
findvar.c gdbarch.c gdbtypes.c infcmd.c inflow.c infrun.c language.c \
jv-exp.y jv-lang.c jv-valprint.c jv-typeprint.c \
@ -436,6 +439,7 @@ defs_h = defs.h xm.h tm.h nm.h config.status config.h gdbarch.h
inferior_h = inferior.h $(breakpoint_h)
tracepoint_h = tracepoint.h
ax_h = ax.h
event_loop_h = event-loop.h
# Header files that need to have srcdir added. Note that in the cases
# where we use a macro like $(gdbcmd_h), things are carefully arranged
@ -491,7 +495,9 @@ TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \
symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \
expprint.o environ.o gdbarch.o gdbtypes.o copying.o $(DEPFILES) \
expprint.o environ.o \
event-loop.o event-top.o \
gdbarch.o gdbtypes.o copying.o $(DEPFILES) \
mem-break.o target.o parse.o language.o $(YYOBJ) buildsym.o \
exec.o bcache.o objfiles.o minsyms.o maint.o demangle.o \
dbxread.o coffread.o elfread.o \
@ -1101,6 +1107,11 @@ eval.o: eval.c $(bfd_h) $(defs_h) $(expression_h) $(frame_h) \
$(gdbtypes_h) language.h $(symtab_h) target.h $(value_h) \
gdb_string.h
event-loop.o: event-loop.c $(event_loop_h)
event-top.o: event-top.c top.h $(readline_headers) \
$(defs_h) $(inferior_h) $(event_loop_h)
exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
target.h language.h gdb_string.h
@ -1545,11 +1556,11 @@ tic80-tdep.o: tic80-tdep.c $(defs_h)
target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
objfiles.h symfile.h target.h gdb_string.h
thread.o: thread.c $(defs_h) gdbthread.h $(gdbcmd_h)
thread.o: thread.c $(defs_h) gdbthread.h $(gdbcmd_h) target.h
top.o: top.c top.h $(bfd_h) $(getopt_h) $(readline_headers) call-cmds.h \
$(defs_h) $(gdbcmd_h) $(inferior_h) language.h signals.h \
$(remote_utils_h) gdb_string.h
$(remote_utils_h) gdb_string.h $(event_loop_h)
typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
$(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \

View File

@ -764,6 +764,7 @@ coff_symtab_read (symtab_offset, nsyms, section_offsets, objfile)
char *filestring = "";
int depth = 0;
int fcn_first_line = 0;
CORE_ADDR fcn_first_line_addr;
int fcn_last_line = 0;
int fcn_start_addr = 0;
long fcn_line_ptr = 0;
@ -1020,6 +1021,7 @@ coff_symtab_read (symtab_offset, nsyms, section_offsets, objfile)
if (cs->c_naux != 1)
complain (&bf_no_aux_complaint, cs->c_symnum);
fcn_first_line = main_aux.x_sym.x_misc.x_lnsz.x_lnno;
fcn_first_line_addr = cs->c_value;
/* Might want to check that locals are 0 and
context_stack_depth is zero, and complain if not. */
@ -1030,7 +1032,6 @@ coff_symtab_read (symtab_offset, nsyms, section_offsets, objfile)
new->name =
process_coff_symbol (&fcn_cs_saved, &fcn_aux_saved,
section_offsets, objfile);
record_line (current_subfile, fcn_first_line, cs->c_value);
}
else if (STREQ (cs->c_name, ".ef"))
{
@ -1063,8 +1064,18 @@ coff_symtab_read (symtab_offset, nsyms, section_offsets, objfile)
{
fcn_last_line = main_aux.x_sym.x_misc.x_lnsz.x_lnno;
}
enter_linenos (fcn_line_ptr, fcn_first_line, fcn_last_line,
section_offsets);
/* fcn_first_line is the line number of the opening '{'.
Do not record it - because it would affect gdb's idea
of the line number of the first statement of the function -
except for one-line functions, for which it is also the line
number of all the statements and of the closing '}', and
for which we do not have any other statement-line-number. */
if (fcn_last_line == 1)
record_line (current_subfile, fcn_first_line,
fcn_first_line_addr);
else
enter_linenos (fcn_line_ptr, fcn_first_line, fcn_last_line,
section_offsets);
finish_block (new->name, &local_symbols, new->old_blocks,
new->start_addr,

View File

@ -135,6 +135,9 @@
/* Define if you have the bzero function. */
#undef HAVE_BZERO
/* Define if you have the poll function. */
#undef HAVE_POLL
/* Define if you have the dcgettext function. */
#undef HAVE_DCGETTEXT

37
gdb/configure vendored
View File

@ -3371,7 +3371,7 @@ EOF
fi
for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc
for ac_func in setpgid sbrk sigaction isascii bzero bcopy btowc poll
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3378: checking for $ac_func" >&5
@ -5372,6 +5372,11 @@ fi
fi
# libreadline needs libuser32.a in a cygwin environment
WIN32LIBS=
if test x$gdb_cv_os_cygwin = xyes; then
WIN32LIBS="-luser32"
fi
@ -5380,7 +5385,7 @@ fi
# Uses ac_ vars as temps to allow command line to override cache and checks.
# --without-x overrides everything else, but does not touch the cache.
echo $ac_n "checking for X""... $ac_c" 1>&6
echo "configure:6593: checking for X" >&5
echo "configure:6597: checking for X" >&5
# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
@ -5442,12 +5447,12 @@ if test "$ac_x_includes" = NO; then
# First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
#line 6655 "configure"
#line 6659 "configure"
#include "confdefs.h"
#include <$x_direct_test_include>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:6664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@ -5516,14 +5521,14 @@ if test "$ac_x_libraries" = NO; then
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6729 "configure"
#line 6733 "configure"
#include "confdefs.h"
int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
@ -5796,12 +5801,12 @@ fi
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo "configure:7080: checking for Cygwin environment" >&5
echo "configure:7084: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 7085 "configure"
#line 7089 "configure"
#include "confdefs.h"
int main() {
@ -5812,7 +5817,7 @@ int main() {
return __CYGWIN__;
; return 0; }
EOF
if { (eval echo configure:7096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:7100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_cygwin=yes
else
@ -5829,19 +5834,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo "configure:7113: checking for mingw32 environment" >&5
echo "configure:7117: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 7118 "configure"
#line 7122 "configure"
#include "confdefs.h"
int main() {
return __MINGW32__;
; return 0; }
EOF
if { (eval echo configure:7125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:7129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_mingw32=yes
else
@ -5860,7 +5865,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo "configure:7144: checking for executable suffix" >&5
echo "configure:7148: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -5870,10 +5875,10 @@ else
rm -f conftest*
echo 'int main () { return 0; }' > conftest.$ac_ext
ac_cv_exeext=
if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
for file in conftest.*; do
case $file in
*.c | *.o | *.obj | *.ilk | *.pdb) ;;
*.c | *.o | *.obj) ;;
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
esac
done
@ -6082,6 +6087,7 @@ s%@MACHINE_OBS@%$MACHINE_OBS%g
s%@DLLTOOL@%$DLLTOOL%g
s%@WINDRES@%$WINDRES%g
s%@TERM_LIB@%$TERM_LIB%g
s%@WIN32LIBS@%$WIN32LIBS%g
s%@ENABLE_IDE@%$ENABLE_IDE%g
s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
s%@LIBGUI@%$LIBGUI%g
@ -6091,7 +6097,6 @@ s%@IDE_X@%$IDE_X%g
s%@LIBIDETCL@%$LIBIDETCL%g
s%@LIBIDE@%$LIBIDE%g
s%@IDE_DEPS@%$IDE_DEPS%g
s%@WIN32LIBS@%$WIN32LIBS%g
s%@WIN32LDAPP@%$WIN32LDAPP%g
s%@TCL_VERSION@%$TCL_VERSION%g
s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g

View File

@ -75,7 +75,7 @@ AC_HEADER_STAT
AC_C_CONST
AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc)
AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc poll)
AC_FUNC_ALLOCA
BFD_NEED_DECLARATION(malloc)
@ -447,7 +447,12 @@ fi
fi
AC_SUBST(TERM_LIB)
# libreadline needs libuser32.a in a cygwin environment
WIN32LIBS=
if test x$gdb_cv_os_cygwin = xyes; then
WIN32LIBS="-luser32"
fi
AC_SUBST(WIN32LIBS)
AC_PATH_X

View File

@ -1012,7 +1012,7 @@ extern void store_floating PARAMS ((void *, int, DOUBLEST));
I'm not sure it's used in all contexts. It exists to deal with there
being a few stray bits in the PC which would mislead us, not as some sort
of generic thing to handle alignment or segmentation (it's possible it
should be in TARGET_READ_PC instead). */
should be in TARGET_READ_PC instead). */
#if !defined (ADDR_BITS_REMOVE)
#define ADDR_BITS_REMOVE(addr) (addr)
#endif /* No ADDR_BITS_REMOVE. */
@ -1032,6 +1032,7 @@ struct target_waitstatus;
struct cmd_list_element;
#endif
extern void (*async_hook) PARAMS ((void));
extern void (*init_ui_hook) PARAMS ((char *argv0));
extern void (*command_loop_hook) PARAMS ((void));
extern void (*fputs_unfiltered_hook) PARAMS ((const char *linebuffer,

File diff suppressed because it is too large Load Diff

View File

@ -35,19 +35,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "gdb_string.h"
/* Temporary variable for SET_TOP_LEVEL. */
static int top_level_val;
/* Do a setjmp on error_return and quit_return. catch_errors is
generally a cleaner way to do this, but main() would look pretty
ugly if it had to use catch_errors each time. */
#define SET_TOP_LEVEL() \
(((top_level_val = SIGSETJMP (error_return)) \
? (PTR) 0 : (PTR) memcpy (quit_return, error_return, sizeof (SIGJMP_BUF))) \
, top_level_val)
/* If nonzero, display time usage both at startup and for each command. */
int display_time;
@ -56,6 +43,12 @@ int display_time;
int display_space;
/* Whether this is the async version or not. The async version is
invoked on the command line with the -nw --async options. In this
version, the usual command_loop is substituted by and event loop which
processes UI events asynchronously. */
int async = 0;
/* Whether this is the command line version or not */
int tui_version = 0;
@ -185,7 +178,8 @@ main (argc, argv)
short option (or arbitrary numbers starting at 10 for those
with no equivalent). */
static struct option long_options[] =
{
{
{"async", no_argument, &async, 1},
#if defined(TUI)
{"tui", no_argument, &tui_version, 1},
#endif
@ -397,6 +391,10 @@ main (argc, argv)
quiet = 1;
}
/* Get ready to invoke the event loop instead of the
command_loop. See event-loop.h for more details.*/
if (async)
async_hook = setup_event_loop;
#if defined(TUI)
if (tui_version)
init_ui_hook = tuiInit;
@ -624,6 +622,12 @@ main (argc, argv)
#endif
}
/* Call the event loop, if gdb was invoked with the --async
option. Control will never get back to this file, if the event
loop is invoked. See the files event-*.[ch] for details. */
if (async_hook)
async_hook();
/* The default command loop.
The WIN32 Gui calls this main to set up gdb's state, and
has its own command loop. */

View File

@ -1153,21 +1153,29 @@ heuristic_proc_start (pc)
{
static int blurb_printed = 0;
if (fence == VM_MIN_ADDRESS)
warning("Hit beginning of text section without finding");
else
warning("Hit heuristic-fence-post without finding");
warning ("Warning: GDB can't find the start of the function at 0x%s.",
paddr_nz (pc));
warning("enclosing function for address 0x%s", paddr_nz (pc));
if (!blurb_printed)
{
printf_filtered ("\
This warning occurs if you are debugging a function without any symbols\n\
(for example, in a stripped executable). In that case, you may wish to\n\
increase the size of the search with the `set heuristic-fence-post' command.\n\
\n\
Otherwise, you told GDB there was a function where there isn't one, or\n\
(more likely) you have encountered a bug in GDB.\n");
/* This actually happens frequently in embedded
development, when you first connect to a board
and your stack pointer and pc are nowhere in
particular. This message needs to give people
in that situation enough information to
determine that it's no big deal. */
printf_filtered ("\n\
GDB is unable to find the start of the function at 0x%s\n\
and thus can't determine the size of that function's stack frame.\n\
This means that GDB may be unable to access that stack frame, or\n\
the frames below it.\n\
This problem is most likely caused by an invalid program counter or\n\
stack pointer.\n\
However, if you think GDB should simply search farther back\n\
from 0x%s for code which looks like the beginning of a\n\
function, you can increase the range of the search using the `set\n\
heuristic-fence-post' command.\n",
paddr_nz (pc), paddr_nz (pc));
blurb_printed = 1;
}
}

View File

@ -1258,6 +1258,7 @@ static struct {
{"SIG61", "Real-time event 61"},
{"SIG62", "Real-time event 62"},
{"SIG63", "Real-time event 63"},
{"SIGCANCEL", "LWP internal signal"},
#if defined(MACH) || defined(__MACH__)
/* Mach exceptions */
@ -1446,6 +1447,9 @@ target_signal_from_host (hostsig)
#if defined (SIGWAITING)
if (hostsig == SIGWAITING) return TARGET_SIGNAL_WAITING;
#endif
#if defined (SIGCANCEL)
if (hostsig == SIGCANCEL) return TARGET_SIGNAL_CANCEL;
#endif
#if defined (SIGLWP)
if (hostsig == SIGLWP) return TARGET_SIGNAL_LWP;
#endif
@ -1624,6 +1628,9 @@ target_signal_to_host (oursig)
#if defined (SIGWAITING)
case TARGET_SIGNAL_WAITING: return SIGWAITING;
#endif
#if defined (SIGCANCEL)
case TARGET_SIGNAL_CANCEL: return SIGCANCEL;
#endif
#if defined (SIGLWP)
case TARGET_SIGNAL_LWP: return SIGLWP;
#endif

View File

@ -106,9 +106,14 @@ enum target_waitkind {
signals (insofar as various unices use the same numbers, anyway).
It is also the numbering of the GDB remote protocol. Other remote
protocols, if they use a different numbering, should make sure to
translate appropriately. */
translate appropriately.
/* This is based strongly on Unix/POSIX signals for several reasons:
Since these numbers have actually made it out into other software
(stubs, etc.), you mustn't disturb the assigned numbering. If you
need to add new signals here, add them to the end of the explicitly
numbered signals.
This is based strongly on Unix/POSIX signals for several reasons:
(1) This set of signals represents a widely-accepted attempt to
represent events of this sort in a portable fashion, (2) we want a
signal to make it from wait to child_wait to the user intact, (3) many
@ -205,6 +210,10 @@ enum target_signal {
TARGET_SIGNAL_REALTIME_61 = 73,
TARGET_SIGNAL_REALTIME_62 = 74,
TARGET_SIGNAL_REALTIME_63 = 75,
/* Used internally by Solaris threads. See signal(5) on Solaris. */
TARGET_SIGNAL_CANCEL = 76,
#if defined(MACH) || defined(__MACH__)
/* Mach exceptions */
TARGET_EXC_BAD_ACCESS,

View File

@ -1,3 +1,19 @@
1999-05-06 Keith Seitz <keiths@cygnus.com>
* gdb.base/annota2.cc: Include stdio.h.
Wed May 5 17:44:31 1999 Stan Shebs <shebs@andros.cygnus.com>
* gdb.base/crossload.exp: Remove, this has been disabled ever
since BFD stopped including all targets, and cross-GDB gets
plenty of testing anyway.
* gdb.base/i486-elf.u, gdb.base/m68k-aout.u, gdb.base/m68k-elf.u,
gdb.base/sparc-aout.u, gdb.base/i860-elf.u, gdb.base/m68k-aout2.u,
gdb.base/mips-ecoff.u, gdb.base/sparc-elf.u: Remove.
* gdb.base/README: Remove, was doc for this.
* gdb.base/Makefile.in (CROSS_EXECUTABLES): Remove, no longer
needed.
1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.base/call-ar-st.exp: Fix one regular expression in test

View File

@ -14,10 +14,6 @@ EXECUTABLES = all-types bitfields break \
solib so-impl-ld so-indr-cl \
step-test structs structs2 twice-tmp varargs watchpoint whatis
# uuencoded format to avoid SCCS/RCS problems with binary files.
CROSS_EXECUTABLES = i486-elf i860-elf m68k-elf m68k-aout m68k-aout2 \
mips-ecoff sparc-aout sparc-elf
MISCELLANEOUS = coremmap.data shr1.sl shr2.sl solib1.sl solib2.sl
all:
@ -32,7 +28,7 @@ installcheck:
check:
clean mostlyclean:
-rm -f *~ *.o a.out xgdb *.x $(CROSS_EXECUTABLES) *.ci *.tmp
-rm -f *~ *.o a.out xgdb *.x *.ci *.tmp
-rm -f core core.coremaker coremaker.core corefile $(EXECUTABLES)
-rm -f $(MISCELLANEOUS) twice-tmp.c

View File

@ -1,3 +1,5 @@
#include <stdio.h>
class A {
public:
int x;

172
gdb/top.c
View File

@ -33,6 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "terminal.h" /* For job_control. */
#include "annotate.h"
#include "top.h"
#include "event-loop.h"
/* readline include files */
#include <readline/readline.h>
@ -70,7 +71,16 @@ static char * line_completion_function PARAMS ((char *, int, char *, int));
static char * readline_line_completion_function PARAMS ((char *, int));
static void command_loop_marker PARAMS ((int));
/* NOTE 4/29/99: this function will be static again, after we make the
event loop be the default command loop for gdb, and we merge
event-top.c into this file, top.c */
/* static */ void command_loop_marker PARAMS ((int));
extern void set_async_editing_command PARAMS ((char *, int, struct cmd_list_element *));
extern void set_async_annotation_level PARAMS ((char *, int, struct cmd_list_element *));
extern void set_async_prompt PARAMS ((char *, int, struct cmd_list_element *));
static void while_command PARAMS ((char *, int));
@ -139,7 +149,10 @@ static void complete_command PARAMS ((char *, int));
static void do_nothing PARAMS ((int));
#ifdef SIGHUP
static int quit_cover PARAMS ((PTR));
/* NOTE 4/29/99: This function will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ int quit_cover PARAMS ((PTR));
static void disconnect PARAMS ((int));
#endif
@ -586,7 +599,10 @@ int signo;
/* Just a little helper function for disconnect(). */
static int
/* NOTE 4/29/99: This function will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ int
quit_cover (s)
PTR s;
{
@ -598,19 +614,31 @@ quit_cover (s)
#endif /* defined SIGHUP */
/* Line number we are currently in in a file which is being sourced. */
static int source_line_number;
/* NOTE 4/29/99: This variable will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ int source_line_number;
/* Name of the file we are sourcing. */
static char *source_file_name;
/* NOTE 4/29/99: This variable will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ char *source_file_name;
/* Buffer containing the error_pre_print used by the source stuff.
Malloc'd. */
static char *source_error;
/* NOTE 4/29/99: This variable will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ char *source_error;
static int source_error_allocated;
/* Something to glom on to the start of error_pre_print if source_file_name
is set. */
static char *source_pre_error;
/* NOTE 4/29/99: This variable will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ char *source_pre_error;
/* Clean up on error during a "source" command (or execution of a
user-defined command). */
@ -657,7 +685,15 @@ gdb_init (argv0)
initialize_utils (); /* Make errors and warnings possible */
initialize_all_files ();
init_main (); /* But that omits this file! Do it now */
init_signals ();
/* The signal handling mechanism is different depending whether or
not the async version is run. NOTE: in the future we plan to make
the event loop be the default engine of gdb, and this difference
will disappear. */
if (async_hook)
async_init_signals ();
else
init_signals ();
init_proc ();
@ -1293,7 +1329,10 @@ execute_command (p, from_tty)
}
/* ARGSUSED */
static void
/* NOTE 4/29/99: This function will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ void
command_loop_marker (foo)
int foo;
{
@ -1479,7 +1518,10 @@ gdb_readline (prrompt)
substitution. These variables are given default values at the end
of this file. */
static int command_editing_p;
static int history_expansion_p;
/* NOTE 4/29/99: This variable will be static again, once we modify
gdb to use the event loop as the default command loop and we merge
event-top.c into this file, top.c */
/* static */ int history_expansion_p;
static int write_history_p;
static int history_size;
static char *history_filename;
@ -3448,14 +3490,44 @@ init_main ()
{
struct cmd_list_element *c;
/* from event-top.c */
extern int async_command_editing_p;
extern struct prompts the_prompts;
extern char *async_annotation_suffix;
extern char *new_async_prompt;
/* If we are running the asynchronous version,
we initialize the prompts differently. */
if (!async_hook)
{
#ifdef DEFAULT_PROMPT
prompt = savestring (DEFAULT_PROMPT, strlen(DEFAULT_PROMPT));
prompt = savestring (DEFAULT_PROMPT, strlen(DEFAULT_PROMPT));
#else
prompt = savestring ("(gdb) ", 6);
prompt = savestring ("(gdb) ", 6);
#endif
}
else
{
/* initialize the prompt stack to a simple "(gdb) " prompt or to
whatever the DEFULAT_PROMPT is. */
the_prompts.top = 0;
PREFIX(0) = "";
#ifdef DEFAULT_PROMPT
PROMPT(0) = savestring (DEFAULT_PROMPT, strlen(DEFAULT_PROMPT));
#else
PROMPT(0) = savestring ("(gdb) ", 6);
#endif
SUFFIX(0) = "";
/* Set things up for annotation_level > 1, if the user ever decides
to use it. */
async_annotation_suffix = "prompt";
/* Set the variable associated with the setshow prompt command. */
new_async_prompt = savestring (PROMPT (0), strlen (PROMPT (0)));
}
/* Set the important stuff up for command editing. */
command_editing_p = 1;
async_command_editing_p = 1;
history_expansion_p = 0;
write_history_p = 0;
@ -3503,11 +3575,27 @@ The change does not take effect for the program being debugged\n\
until the next time it is started.", &cmdlist);
c->completer = filename_completer;
add_show_from_set
(add_set_cmd ("prompt", class_support, var_string, (char *)&prompt,
"Set gdb's prompt",
&setlist),
&showlist);
/* The set prompt command is different depending whether or not the
async version is run. NOTE: this difference is going to
disappear as we make the event loop be the default engine of
gdb. */
if (!async_hook)
{
add_show_from_set
(add_set_cmd ("prompt", class_support, var_string, (char *)&prompt,
"Set gdb's prompt",
&setlist),
&showlist);
}
else
{
c = add_set_cmd ("prompt", class_support, var_string,
(char *)&new_async_prompt,
"Set gdb's prompt",
&setlist);
add_show_from_set (c, &showlist);
c->function.sfunc = set_async_prompt;
}
add_com ("echo", class_support, echo_command,
"Print a constant string. Give string as argument.\n\
@ -3558,13 +3646,30 @@ hitting return.");
c->function.sfunc = set_verbose;
set_verbose (NULL, 0, c);
add_show_from_set
(add_set_cmd ("editing", class_support, var_boolean, (char *)&command_editing_p,
"Set editing of command lines as they are typed.\n\
/* The set editing command is different depending whether or not the
async version is run. NOTE: this difference is going to disappear
as we make the event loop be the default engine of gdb. */
if (!async_hook)
{
add_show_from_set
(add_set_cmd ("editing", class_support, var_boolean, (char *)&command_editing_p,
"Set editing of command lines as they are typed.\n\
Use \"on\" to enable the editing, and \"off\" to disable it.\n\
Without an argument, command line editing is enabled. To edit, use\n\
EMACS-like or VI-like commands like control-P or ESC.", &setlist),
&showlist);
&showlist);
}
else
{
c = add_set_cmd ("editing", class_support, var_boolean, (char *)&async_command_editing_p,
"Set editing of command lines as they are typed.\n\
Use \"on\" to enable the editing, and \"off\" to disable it.\n\
Without an argument, command line editing is enabled. To edit, use\n\
EMACS-like or VI-like commands like control-P or ESC.", &setlist);
add_show_from_set (c, &showlist);
c->function.sfunc = set_async_editing_command;
}
add_prefix_cmd ("history", class_support, set_history,
"Generic command for setting command history parameters.",
@ -3664,10 +3769,27 @@ This value is used to set the time limit for gdb to wait for a response\n\
from the target.", &setlist),
&showlist);
c = add_set_cmd ("annotate", class_obscure, var_zinteger,
(char *)&annotation_level, "Set annotation_level.\n\
/* The set annotate command is different depending whether or not
the async version is run. NOTE: this difference is going to
disappear as we make the event loop be the default engine of
gdb. */
if (!async_hook)
{
c = add_set_cmd ("annotate", class_obscure, var_zinteger,
(char *)&annotation_level, "Set annotation_level.\n\
0 == normal; 1 == fullname (for use when running under emacs)\n\
2 == output annotated suitably for use by programs that control GDB.",
&setlist);
c = add_show_from_set (c, &showlist);
&setlist);
c = add_show_from_set (c, &showlist);
}
else
{
c = add_set_cmd ("annotate", class_obscure, var_zinteger,
(char *)&annotation_level, "Set annotation_level.\n\
0 == normal; 1 == fullname (for use when running under emacs)\n\
2 == output annotated suitably for use by programs that control GDB.",
&setlist);
add_show_from_set (c, &showlist);
c->function.sfunc = set_async_annotation_level;
}
}

View File

@ -41,6 +41,19 @@ extern char gdbinit[];
#define SIGLONGJMP(buf,val) longjmp(buf,val)
#endif
/* Temporary variable for SET_TOP_LEVEL. */
int top_level_val;
/* Do a setjmp on error_return and quit_return. catch_errors is
generally a cleaner way to do this, but main() would look pretty
ugly if it had to use catch_errors each time. */
#define SET_TOP_LEVEL() \
(((top_level_val = SIGSETJMP (error_return)) \
? (PTR) 0 : (PTR) memcpy (quit_return, error_return, sizeof (SIGJMP_BUF))) \
, top_level_val)
extern SIGJMP_BUF error_return;
extern SIGJMP_BUF quit_return;
@ -55,6 +68,9 @@ extern int quit_confirm PARAMS ((void));
extern void quit_force PARAMS ((char *, int));
extern void quit_command PARAMS ((char *, int));
extern void setup_event_loop PARAMS ((void));
extern void async_init_signals PARAMS ((void));
/* This function returns a pointer to the string that is used
by gdb for its command prompt. */
extern char *get_prompt PARAMS((void));

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-04-06 Keith Seitz <keiths@cygnus.com>
* wrapper.c (stop_simulator): New global.

476
sim/arm/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,9 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
AM_CYGWIN32 and AM_EXEEXT.
* configure: Regenerate.
Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
* sim-core.c (device_error,device_io_read_buffer,

47
sim/common/aclocal.m4 vendored
View File

@ -207,7 +207,7 @@ dnl Types used by common code
AC_TYPE_SIGNAL
dnl Detect exe extension
AM_EXEEXT
AC_EXEEXT
dnl These are available to append to as desired.
sim_link_files=
@ -1176,51 +1176,6 @@ AC_DEFUN(AM_LC_MESSAGES,
fi
fi])
# Check to see if we're running under Cygwin32, without using
# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
# Otherwise set it to "no".
dnl AM_CYGWIN32()
dnl You might think we can do this by checking for a cygwin32-specific
dnl cpp define.
AC_DEFUN(AM_CYGWIN32,
[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
[AC_TRY_COMPILE(,[int main () { return __CYGWIN32__; }],
am_cv_cygwin32=yes, am_cv_cygwin32=no)
rm -f conftest*])
CYGWIN32=
test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
# Check to see if we're running under Win32, without using
# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
# Otherwise set it to "".
dnl AM_EXEEXT()
dnl This knows we add .exe if we're building in the Cygwin32
dnl environment. But if we're not, then it compiles a test program
dnl to see if there is a suffix for executables.
AC_DEFUN(AM_EXEEXT,
dnl AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AM_CYGWIN32])
AC_MSG_CHECKING([for executable suffix])
[AC_CACHE_VAL(am_cv_exeext,
[if test "$CYGWIN32" = yes; then
am_cv_exeext=.exe
else
cat > am_c_test.c << 'EOF'
int main() {
/* Nothing needed here */
}
EOF
${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
rm -f am_c_test*])
test x"${am_cv_exeext}" = x && am_cv_exeext=no
fi
EXEEXT=""
test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
AC_MSG_RESULT(${am_cv_exeext})
AC_SUBST(EXEEXT)])
dnl --enable-cgen-maint support
AC_DEFUN(SIM_AC_OPTION_CGEN_MAINT,

442
sim/common/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -416,3 +416,27 @@
/* end v850 sys target macros */
#endif
#endif
#ifdef NL_TARGET_venus
#ifdef sys_defs
/* from syscall.h */
/* begin venus sys target macros */
{ "SYS_argv", 13 },
{ "SYS_argvlen", 12 },
{ "SYS_chdir", 14 },
{ "SYS_chmod", 16 },
{ "SYS_close", 3 },
{ "SYS_exit", 1 },
{ "SYS_fstat", 10 },
{ "SYS_getpid", 8 },
{ "SYS_kill", 9 },
{ "SYS_lseek", 6 },
{ "SYS_open", 2 },
{ "SYS_read", 4 },
{ "SYS_stat", 15 },
{ "SYS_time", 18 },
{ "SYS_unlink", 7 },
{ "SYS_utime", 17 },
{ "SYS_write", 5 },
/* end venus sys target macros */
#endif
#endif

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-04-02 Keith Seitz <keiths@cygnus.com>
* interp.c (ui_loop_hook_counter): New global (when NEED_UI_LOOP_HOOK

476
sim/d10v/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-03-16 Martin Hunt <hunt@cygnus.com>
From Frank Ch. Eigler <fche@cygnus.com>

495
sim/d30v/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-03-03 DJ Delorie <dj@cygnus.com>
* configure.in: add termcap and -luser32 for host=cygwin

410
sim/erc32/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Fri Apr 16 16:50:31 1999 Doug Evans <devans@charmed.cygnus.com>
* devices.c (device_io_read_buffer): New arg `sd'.

408
sim/fr30/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-04-02 Keith Seitz <keiths@cygnus.com>
* compile.c (POLL_QUIT_INTERVAL): Define. Used to tweak the

476
sim/h8300/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.

476
sim/h8500/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Fri Apr 16 16:50:31 1999 Doug Evans <devans@charmed.cygnus.com>
* devices.c (device_io_read_buffer): New arg `sd'.

408
sim/i960/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Fri Dec 4 15:14:09 1998 Andrew Cagney <cagney@b1.cygnus.com>
* igen.c (main): Fix -Pitable=.

133
sim/igen/configure vendored
View File

@ -119,21 +119,11 @@ sim_inline="-DDEFAULT_INLINE=0"
# Check to see if we're running under Cygwin32, without using
# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
# Otherwise set it to "no".
# Check to see if we're running under Win32, without using
# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
# Otherwise set it to "".
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12.2
# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
@ -162,6 +152,7 @@ program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
sitefile=
srcdir=
target=NONE
verbose=
@ -276,6 +267,7 @@ Configuration:
--help print this message
--no-create do not create output files
--quiet, --silent do not print \`checking...' messages
--site-file=FILE use FILE as the site file
--version print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
@ -446,6 +438,11 @@ EOF
-site=* | --site=* | --sit=*)
site="$ac_optarg" ;;
-site-file | --site-file | --site-fil | --site-fi | --site-f)
ac_prev=sitefile ;;
-site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
sitefile="$ac_optarg" ;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
@ -467,7 +464,7 @@ EOF
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
echo "configure generated by autoconf version 2.12.2"
echo "configure generated by autoconf version 2.13"
exit 0 ;;
-with-* | --with-*)
@ -611,12 +608,16 @@ fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
if test -z "$sitefile"; then
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi
fi
else
CONFIG_SITE="$sitefile"
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
@ -687,7 +688,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:691: checking for a BSD compatible install" >&5
echo "configure:692: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -735,12 +736,14 @@ echo "$ac_t""$INSTALL" 1>&6
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:744: checking for $ac_word" >&5
echo "configure:747: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -748,7 +751,8 @@ else
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
for ac_dir in $PATH; do
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CC="gcc"
@ -769,7 +773,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:773: checking for $ac_word" >&5
echo "configure:777: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -778,7 +782,8 @@ else
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_prog_rejected=no
for ac_dir in $PATH; do
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
@ -819,7 +824,7 @@ fi
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:823: checking for $ac_word" >&5
echo "configure:828: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -827,7 +832,8 @@ else
ac_cv_prog_CC="$CC" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
for ac_dir in $PATH; do
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CC="cl"
@ -850,7 +856,7 @@ fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:854: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@ -859,12 +865,14 @@ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <<EOF
#line 864 "configure"
cat > conftest.$ac_ext << EOF
#line 871 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
@ -878,18 +886,24 @@ else
ac_cv_prog_cc_works=no
fi
rm -fr conftest*
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:893: checking whether we are using GNU C" >&5
echo "configure:907: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -898,7 +912,7 @@ else
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@ -917,7 +931,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:921: checking whether ${CC-cc} accepts -g" >&5
echo "configure:935: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -1036,7 +1050,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:1040: checking host system type" >&5
echo "configure:1054: checking host system type" >&5
host_alias=$host
case "$host_alias" in
@ -1057,7 +1071,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6
echo $ac_n "checking target system type""... $ac_c" 1>&6
echo "configure:1061: checking target system type" >&5
echo "configure:1075: checking target system type" >&5
target_alias=$target
case "$target_alias" in
@ -1075,7 +1089,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$target" 1>&6
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:1079: checking build system type" >&5
echo "configure:1093: checking build system type" >&5
build_alias=$build
case "$build_alias" in
@ -1122,7 +1136,7 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x,"
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1126: checking how to run the C preprocessor" >&5
echo "configure:1140: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@ -1137,13 +1151,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1141 "configure"
#line 1155 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@ -1154,13 +1168,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1158 "configure"
#line 1172 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@ -1171,13 +1185,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 1175 "configure"
#line 1189 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@ -1205,17 +1219,17 @@ for ac_hdr in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1209: checking for $ac_hdr" >&5
echo "configure:1223: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1214 "configure"
#line 1228 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1246,12 +1260,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
echo "configure:1250: checking for $ac_hdr that defines DIR" >&5
echo "configure:1264: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1255 "configure"
#line 1269 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
@ -1259,7 +1273,7 @@ int main() {
DIR *dirp = 0;
; return 0; }
EOF
if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
@ -1284,7 +1298,7 @@ done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:1288: checking for opendir in -ldir" >&5
echo "configure:1302: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1292,7 +1306,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1296 "configure"
#line 1310 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1303,7 +1317,7 @@ int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1325,7 +1339,7 @@ fi
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:1329: checking for opendir in -lx" >&5
echo "configure:1343: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1333,7 +1347,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1337 "configure"
#line 1351 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1344,7 +1358,7 @@ int main() {
opendir()
; return 0; }
EOF
if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1379,7 +1393,7 @@ fi
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1383: checking for $ac_word" >&5
echo "configure:1397: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -1387,7 +1401,8 @@ else
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
for ac_dir in $PATH; do
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_RANLIB="ranlib"
@ -1429,7 +1444,7 @@ EOF
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set) 2>&1 | grep ac_space` in
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
@ -1496,7 +1511,7 @@ do
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
@ -1540,6 +1555,7 @@ s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
@ -1559,6 +1575,7 @@ s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@CC@%$CC%g
s%@host@%$host%g

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Fri Apr 16 16:47:43 1999 Doug Evans <devans@charmed.cygnus.com>
* devices.c (device_io_read_buffer): New arg `sd'.

452
sim/m32r/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,18 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-05-10 Nick Clifton <nickc@cygnus.com>
* interp.c (sim_resume): Record PC in case it is needed for error
messages and the original has been corrupted.
1999-05-07 Nick Clifton <nickc@cygnus.com>
* interp.c (sim_resume): Fix typo 'oze' -> 'doze'.
(util): Handle 0x50FF stubs properly.
1999-04-29 Nick Clifton <nickc@cygnus.com>
* interp.c (set_initial_gprs): Only display memory range if

476
sim/mcore/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -40,8 +40,6 @@ static unsigned long heap_ptr = 0;
host_callback * callback;
#define TARGET_BYTE_ORDER BIG_ENDIAN /* XXX */
unsigned long
mcore_extract_unsigned_integer (addr, len)
unsigned char * addr;
@ -59,8 +57,11 @@ mcore_extract_unsigned_integer (addr, len)
/* Start at the most significant end of the integer, and work towards
the least significant. */
retval = 0;
for (p = startaddr; p < endaddr; ++p)
retval = (retval << 8) | * p;
{
for (p = startaddr; p < endaddr;)
retval = (retval << 8) | * p ++;
}
return retval;
}
@ -74,24 +75,20 @@ mcore_store_unsigned_integer (addr, len, val)
unsigned char * p;
unsigned char * startaddr = (unsigned char *)addr;
unsigned char * endaddr = startaddr + len;
/* Start at the least significant end of the integer, and work towards
the most significant. */
for (p = endaddr - 1; p >= startaddr; --p)
{
* p = val & 0xff;
val >>= 8;
for (p = endaddr; p > startaddr;)
{
* -- p = val & 0xff;
val >>= 8;
}
}
}
/* The machine state.
This state is maintained in host byte order. The
fetch/store register functions must translate between host
byte order and the target processor byte order (for MCore this
is big-endian). Since we know that the MCore is always big-endian,
we cheat a bit and use the ntohl() and htonl() macros to
achieve this end.
byte order and the target processor byte order.
Keeping this data in target byte order simplifies the register
read/write functions. Keeping this data in native order improves
the performance of the simulator. Simulation speed is deemed more
@ -121,7 +118,7 @@ union
word asints [1]; /* but accessed larger... */
} cpu;
#define LAST_VALID_CREG 12 /* only 0..12 implemented */
#define LAST_VALID_CREG 12 /* only 0..12 implemented */
#define NUM_MCORE_REGS (16 + 16 + LAST_VALID_CREG)
int memcycles = 1;
@ -149,12 +146,12 @@ static int issue_messages = 0;
#define mem asregs.memory
/* maniuplate the carry bit */
#define C_ON() (cpu.sr & 1)
#define C_ON() (cpu.sr & 1)
#define C_VALUE() (cpu.sr & 1)
#define C_OFF() ((cpu.sr & 1) == 0)
#define SET_C() {cpu.sr |= 1;}
#define CLR_C() {cpu.sr &= 0xfffffffe;}
#define NEW_C(v){CLR_C(); cpu.sr |= ((v) & 1);}
#define C_OFF() ((cpu.sr & 1) == 0)
#define SET_C() {cpu.sr |= 1;}
#define CLR_C() {cpu.sr &= 0xfffffffe;}
#define NEW_C(v) {CLR_C(); cpu.sr |= ((v) & 1);}
#define SR_AF() ((cpu.sr >> 1) & 1)
@ -246,7 +243,8 @@ what (x, v)
if ((x & 1) != 0)
{
if (issue_messages)
fprintf (stderr, "short write to unaligned memory address: 0x%x\n", x);
fprintf (stderr, "short write to unaligned memory address: 0x%x\n",
x);
cpu.asregs.exception = SIGBUS;
}
@ -376,7 +374,8 @@ sim_size (power)
{
if (issue_messages)
fprintf (stderr,
"Not enough VM for simulation of %d bytes of RAM\n", cpu.asregs.msize);
"Not enough VM for simulation of %d bytes of RAM\n",
cpu.asregs.msize);
cpu.asregs.msize = 1;
cpu.mem = (unsigned char *) calloc (1, 1);
@ -481,7 +480,7 @@ handle_trap1 ()
{
unsigned long a[3];
switch ((unsigned long) (cpu.gr[TRAPCODE]))
switch ((unsigned long) (cpu.gr [TRAPCODE]))
{
case 3:
a[0] = (unsigned long) (cpu.gr[PARM1]);
@ -587,7 +586,8 @@ handle_trap1 ()
default:
if (issue_messages)
fprintf (stderr, "WARNING: sys call %d unimplemented\n", cpu.gr[TRAPCODE]);
fprintf (stderr, "WARNING: sys call %d unimplemented\n",
cpu.gr[TRAPCODE]);
break;
}
}
@ -600,6 +600,7 @@ process_stub (what)
switch (what)
{
case 3: /* _read */
case 4: /* _write */
case 5: /* _open */
case 6: /* _close */
case 10: /* _unlink */
@ -660,7 +661,7 @@ util (what)
break;
case 0xFF:
process_stub (what);
process_stub (cpu.gr[1]);
break;
default:
@ -733,7 +734,7 @@ sim_resume (sd, step, siggnal)
cpu.asregs.exception = step ? SIGTRAP: 0;
pc = cpu.asregs.pc;
/* fetch the initial instructions that we'll decode */
/* Fetch the initial instructions that we'll decode. */
ibuf = rlat (pc & 0xFFFFFFFC);
needfetch = 0;
@ -755,16 +756,18 @@ sim_resume (sd, step, siggnal)
do
{
word oldpc;
insts ++;
if (pc & 02)
{
inst = ibuf & 0xFFFF;
inst = ibuf & 0xFFFF;
needfetch = 1;
}
else
{
inst = ibuf >> 16;
inst = ibuf >> 16;
}
#ifdef WATCHFUNCTIONS
@ -798,7 +801,7 @@ sim_resume (sd, step, siggnal)
WLendpc = 0;
}
/* optimize with a hash to speed loop */
/* Optimize with a hash to speed loop. */
if (WLincyc == 0)
{
if ((WLhash == 0) || ((WLhash & pc) != 0))
@ -822,7 +825,9 @@ sim_resume (sd, step, siggnal)
if (tracing)
fprintf (stderr, "%.4x: inst = %.4x ", pc, inst);
oldpc = pc;
pc += 2;
switch (inst >> 8)
@ -845,7 +850,7 @@ sim_resume (sd, step, siggnal)
cpu.sr = cpu.esr;
needfetch = 1;
if (SR_AF())
if (SR_AF ())
cpu.asregs.active_gregs = & cpu.asregs.alt_gregs[0];
else
cpu.asregs.active_gregs = & cpu.asregs.gregs[0];
@ -874,7 +879,7 @@ sim_resume (sd, step, siggnal)
case 0x6: /* doze */
if (issue_messages)
fprintf (stderr, "WARNING: oze unimplemented\n");
fprintf (stderr, "WARNING: doze unimplemented\n");
break;
case 0x7:
@ -1611,14 +1616,14 @@ sim_resume (sd, step, siggnal)
if (tracing)
fprintf (stderr, "\n");
if (needfetch)
{
/* Do not let him fetch from a bad address! */
if (((uword)pc) >= cpu.asregs.msize)
{
if (issue_messages)
fprintf (stderr, "PC outside of available memory! (%x)\n", pc);
fprintf (stderr, "PC loaded at 0x%x is outside of available memory! (0x%x)\n", oldpc, pc);
cpu.asregs.exception = SIGSEGV;
}
@ -1686,11 +1691,10 @@ sim_store_register (sd, rn, memory, length)
{
if (length == 4)
{
/* ival is in 'target' order, which we know to be big-endian.
Let's convert it to natural order. */
long ival;
ival = mcore_extract_unsigned_integer (memory, 4);/* misalignment safe */
/* misalignment safe */
ival = mcore_extract_unsigned_integer (memory, 4);
cpu.asints[rn] = ival;
}
@ -1713,11 +1717,10 @@ sim_fetch_register (sd, rn, memory, length)
{
if (length == 4)
{
/* caller expects 'target order', which is big-endian. Convert
* the native order we used [to speed up simulation] to the
* byte order expected by the caller. */
long ival = cpu.asints[rn];
mcore_store_unsigned_integer (memory, 4, ival);/* misalignment-safe */
/* misalignment-safe */
mcore_store_unsigned_integer (memory, 4, ival);
}
return 4;
@ -1778,27 +1781,36 @@ sim_info (sd, verbose)
#endif
double virttime = cpu.asregs.cycles / 36.0e6;
callback->printf_filtered (callback, "\n\n# instructions executed %10d\n", cpu.asregs.insts);
callback->printf_filtered (callback, "# cycles %10d\n", cpu.asregs.cycles);
callback->printf_filtered (callback, "# pipeline stalls %10d\n", cpu.asregs.stalls);
callback->printf_filtered (callback, "# virtual time taken %10.4f\n", virttime);
callback->printf_filtered (callback, "\n\n# instructions executed %10d\n",
cpu.asregs.insts);
callback->printf_filtered (callback, "# cycles %10d\n",
cpu.asregs.cycles);
callback->printf_filtered (callback, "# pipeline stalls %10d\n",
cpu.asregs.stalls);
callback->printf_filtered (callback, "# virtual time taken %10.4f\n",
virttime);
#ifdef WATCHFUNCTIONS
callback->printf_filtered (callback, "\nNumber of watched functions: %d\n",ENDWL);
callback->printf_filtered (callback, "\nNumber of watched functions: %d\n",
ENDWL);
wcyc = 0;
for (w = 1; w <= ENDWL; w++)
{
callback->printf_filtered (callback, "WL = %s %8x\n",WLstr[w],WL[w]);
callback->printf_filtered (callback, " calls = %d, cycles = %d\n", WLcnts[w],WLcyc[w]);
callback->printf_filtered (callback, " calls = %d, cycles = %d\n",
WLcnts[w],WLcyc[w]);
if (WLcnts[w] != 0)
callback->printf_filtered (callback, " maxcpc = %d, mincpc = %d, avecpc = %d\n",WLmax[w],WLmin[w],WLcyc[w]/WLcnts[w]);
callback->printf_filtered (callback,
" maxcpc = %d, mincpc = %d, avecpc = %d\n",
WLmax[w],WLmin[w],WLcyc[w]/WLcnts[w]);
wcyc += WLcyc[w];
}
callback->printf_filtered (callback, "Total cycles for watched functions: %d\n",wcyc);
callback->printf_filtered (callback,
"Total cycles for watched functions: %d\n",wcyc);
#endif
}
@ -1886,7 +1898,7 @@ sim_load (sd, prog, abfd, from_tty)
printf ("``%s'' is not appropriate object file.\n", prog);
return SIM_RC_FAIL;
}
/* Look for that bss section. */
s_bss = bfd_get_section_by_name (handle, ".bss");
@ -1919,6 +1931,7 @@ sim_load (sd, prog, abfd, from_tty)
if (prog_bfd == NULL)
return SIM_RC_FAIL;
if (abfd == NULL)
bfd_close (prog_bfd);

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-04-21 Frank Ch. Eigler <fche@cygnus.com>
* mips.igen (bc0f): For the TX39 only, decode this as a no-op stub.

436
sim/mips/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-04-06 Keith Seitz <keiths@cygnus.com>
* interp.c (sim_stop): Set the sim's exception

476
sim/mn10200/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-04-16 Frank Ch. Eigler <fche@cygnus.com>
* interp.c (program_interrupt): Detect undesired recursion using

496
sim/mn10300/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,8 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure.in: Use AC_EXEEXT instead of AM_EXEEXT.
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-04-02 Keith Seitz <keiths@cygnus.com>
* sim_calls.c (POLL_QUIT_INTERVAL): Define. Used to tweak

549
sim/ppc/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -690,7 +690,7 @@ else
fi
dnl Check for exe extension
AM_EXEEXT
AC_EXEEXT
AC_SUBST(CC_FOR_BUILD)
AC_SUBST(CFLAGS)

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
1999-04-02 Keith Seitz <keiths@cygnus.com>
* interp.c (POLL_QUIT_INTERVAL): Define. Used to tweak the

476
sim/sh/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Tue Dec 1 17:25:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in (NL_TARGET): Define as -DNL_TARGET_v850.

496
sim/v850/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
* configure: Regenerated to track ../common/aclocal.m4 changes.

297
sim/w65/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,7 @@
1999-05-08 Felix Lee <flee@cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
Wed Nov 25 18:22:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
* support.c: Include <errno.h>

476
sim/z8k/configure vendored

File diff suppressed because it is too large Load Diff