Commit Graph

2750 Commits

Author SHA1 Message Date
Bryce Denney
14a35053a0 - include stdlib.h so that exit is defined. 2002-10-16 04:40:21 +00:00
Bryce Denney
06253913ec - first draft test script that runs "uselib" in every directory,
compares the exit code against the magic value of 77, and compares
  the stdout output against the expected output.
2002-10-16 04:12:15 +00:00
Bryce Denney
a93c64a683 - move makefile code that is common to all subdirs into common-make-defs.txt 2002-10-16 04:11:22 +00:00
Bryce Denney
3086ca7059 - test program output and the reference output goes through this filter before
they are compared.  It replaces VARIES{anything*@#$} with VARIES{xxx}
  so that host-dependent outputs that are marked as such will match up.
2002-10-16 04:11:00 +00:00
Bryce Denney
1ee55d9edb - move some makefile stuff that is common to all subdirs into
common-make-defs.txt
2002-10-16 04:09:24 +00:00
Bryce Denney
7fc1a8b2cf - check in expected output from each program 2002-10-16 04:08:24 +00:00
Bryce Denney
837d985b19 - call exit(77) for success. 77 was chosen arbitrarily; it is unlikely that a
malfunctional program could return this code by accident.
2002-10-16 04:07:58 +00:00
Bryce Denney
7f38378f97 - select between libtool and win32 specific makefile targets 2002-10-16 02:55:52 +00:00
Bryce Denney
d528a0f020 - add win32 DLL section to the makefile. Use entirely different
target names so that both sets of rules can coexist in the same file.
  The configure script selects which one to use.
- use patterns to build plugins.
- remove Makefile, which was specific to win32.
2002-10-16 02:55:16 +00:00
Bryce Denney
e972168d39 - clean up the libtool section of the makefile
- remove the unsuccessful experiment with libmain.la
- now the executable uses -export-dynamic and the modules use -module,
  as it should be
2002-10-16 02:36:45 +00:00
Bryce Denney
21df25a043 - add error when you try to compile this for nonwindows platform 2002-10-16 02:21:38 +00:00
Bryce Denney
8fcfa44ea0 - disable debug messages in the checked in version 2002-10-16 02:19:46 +00:00
Bryce Denney
be5316b66e - commit my notes from test6. Some day soon I will have to clean this
up and then send about 6 patches to the libtool developers.
2002-10-16 02:16:43 +00:00
Bryce Denney
f49ec8c71c Fix serveral ltdl bugs related to searching for libraries, and what
to do if they cannot be found.

- in try_dlopen, after find_handle() is called and returns 0 over
  and over, it was ignoring the return value of tryall_dlopen.  As
  a result, sometimes the dlopen would fail and return 1 or more
  errors but nobody would notice.  The handle would be returned as
  if the open had succeed, then any use of the handle would segfault
  because handle->loader was NULL.  I have solved this problem by
  capturing the return value in errors, and then checking if errors>0
  in the next if statement.
- fix faulty boolean logic in lt_dlopenext that caused it to only
  search for libraries ending with .la.  Now it says: if try_dlopen
  created a nonzero handle, return it.  Otherwise, if there were
  any errors OTHER THAN file-not-found, return the NULL handle.  If
  the only errors were file-not-found, continue to search.
- just before loading the module in tryall_dlopen, do one final
  call to access() to check for existence of the file.  Without
  this check, you sometimes get the "can't load module" error
  when in fact the problem is "file not found".
2002-10-16 02:08:02 +00:00
Bryce Denney
5d29f481bd - just add some comments 2002-10-16 01:54:46 +00:00
Bryce Denney
bb1a834cc5 - Sometimes lt_dlopen and lt_dlopenext return a valid handle when no
library was actually found.  Add asserts to look for occurrences of this
  "valid handle but NULL loader" problem.
2002-10-16 01:52:39 +00:00
Bryce Denney
9429cb8d62 - add a bunch of debug messages using a macro LTDEBUG_PRINTF(). 2002-10-16 01:45:46 +00:00
Bryce Denney
ebf553f014 - add notes about what works and what doesn't 2002-10-16 01:37:42 +00:00
Bryce Denney
82c91fd104 - let each Makefile.in decide where and when to include INCLTDL and LIBLTDL 2002-10-16 01:37:11 +00:00
Bryce Denney
3f57e5f278 - add reference to a variable, like in test7 2002-10-16 01:32:52 +00:00
Bryce Denney
19a62a4798 - temporarily check in this Makefile that works for cygwin/mingw. Then
I will go back to a unix system and hack Makefile.in and configure.in so
  that we get these exact make commands for cygwin only.
2002-10-16 01:32:27 +00:00
Bryce Denney
5b555711f2 - minor changes to make this work in win32: define LT_SCOPE to be extern
before including <ltdl.h>.  Otherwise it tries to export some symbols
  from main.cc, which then conflict with the real ltdl when it gets linked.
- on win32 I am not using libtool to build the libraries, so I need to
  use a different format string for module names.  On win32 use "%s.dll".
- call lt_dlopenext() instead of lt_dlopen() because it searches for
  filenames using various extensions including the libtool extension .la
  and also the system's native library name (.so or whatever).
2002-10-16 01:28:41 +00:00
Bryce Denney
42e89cc4c7 - fix major bug in LTDL that makes it only look in the first component of
a pathname list.
2002-10-15 20:56:27 +00:00
Bryce Denney
f05b2649f4 - on WIN32 platforms, ask user to press a key before it exits. Otherwise,
if you run it by double-clicking, the window will disappear before
  you have a chance to read it.
2002-10-15 20:47:43 +00:00
Bryce Denney
0afccdd6a2 - this is in cvs now 2002-10-15 17:41:40 +00:00
Bryce Denney
37a3d48c0a - In second rev of this patch, I fixed Carbon compile problems that I
created in the first rev.  When you're talking to Carbon libraries,
  of course you should use Boolean instead of bx_bool.  My global
  search and replace missed such subtleties.
2002-10-15 17:24:05 +00:00
Volker Ruppert
5e2cbe04bf - implementation of the keyboard mapping feature for wxbochs (wxGTK version)
- German keymap table for wxbochs (wxGTK version)
2002-10-15 16:48:10 +00:00
Bryce Denney
383f2a5700 - add patch that replaces all Booleans with Bochs specific type bx_bool.
This avoids naming conflicts, since no other library is likely to
  use bx_bool.
- I will apply this before release 2.0, but not until the feature freeze
  has begun, because it will break almost every patch.
2002-10-15 05:50:41 +00:00
Bryce Denney
2271ef7779 - update info for Bernd Korz 2002-10-15 05:17:19 +00:00
Bryce Denney
9f90c8d0fa - try to make VPATH work 2002-10-14 21:10:54 +00:00
Bryce Denney
16638b28c9 - mention test6,7 and add a good reference about win32 dlls 2002-10-14 21:08:14 +00:00
Bryce Denney
38c16cb4ab - this makefile was made from scratch by Psyon, and then Bryce made it
somewhat configure-ized and checked it in.
2002-10-14 21:07:23 +00:00
Bryce Denney
d0b169eaba - update for test7-win32dll 2002-10-14 21:06:47 +00:00
Bryce Denney
c0f2cfe189 - add a real implementation of assert() if none is found in headers
- add NULL check in tryall_dlopen_module
- add some debug printfs
2002-10-14 21:05:06 +00:00
Bryce Denney
7bb4b2be20 - add header test for <assert.h> 2002-10-14 21:03:27 +00:00
Bryce Denney
f691060833 - mention backtrace of an ltdl error msg 2002-10-14 21:02:53 +00:00
Bryce Denney
921524de92 - last rev was buggy and failed to produce makefile in test7 dir 2002-10-14 21:02:24 +00:00
Bryce Denney
502eb04660 - do distclean in libltdl directory 2002-10-14 21:01:39 +00:00
Bryce Denney
6a281a02fb - add new subdir, test7-win32dll
- modified: Makefile.in configure.in configure
2002-10-14 20:45:15 +00:00
Bryce Denney
f4c507d4ac - add makefile for VC++ 2002-10-14 20:44:02 +00:00
Bryce Denney
afe8489945 - change main.cc to use LoadLibrary/GetProcAddress instead of ltdl library
- change MAINAPI macro to make code more readable
2002-10-14 20:43:33 +00:00
Bryce Denney
fec82f3ee8 - add reference to version_string so that we test exports of variables too 2002-10-14 20:42:46 +00:00
Bryce Denney
d52e44afdb - test7-win32dll began life as an exact copy of test6-ltdlopen. This
revision is exactly the same as the present versin from test6-ltdlopen.
- added: Makefile.in README main.cc main.h module1.cc module2.cc
2002-10-14 20:34:13 +00:00
Bryce Denney
d1196d1996 - clean up the command line argument parsing. Before, we had two slightly
different versions of the code for wxWindows and non-wxWindows and the GDB
  stub did not accept any command line options at all.
- IMPORTANT CHANGE: the quick start option used to cause two things:
  1) read the bochsrc immediately, 2) start simulation immediately without
  going into the config interface.  This has changed in a subtle way.
  Now, we always try to read the bochsrc immediately.  Then if the quick
  start option is on, we start the simulation immediately.
- add "Restore Factory Default Configuration" in text config menu.  It was
  already there in wx.  Now the default choice is always "5. Begin simulation"
  and because the bochsrc is always read now, this works.
- When the user chooses "Read configuration file" from either text mode
  or wx interfaces, reset all bochs parameters first, then read in the
  new file.  This means that every time you read a configuration file
  you are starting from a consistent "blank slate".
- move much of the code from bx_do_text_config_interface into bx_init_main
  so that wxWindows and non-wxWindows code uses the same logic.  There was
  only a tiny bit left in bx_do_text_config_interface so I eliminated it.
- move the "help" message into a separate function print_usage()
- detect all flags (cmdline args that start with -) in a loop, instead of
  a big if/else.  This makes it easy to add others.
- fix problem with Carbon gui, so that -psn arg gets ignored
- print usage if you type -h, --help, or if flags are not recognized
- code that called io->set_log_action (that sets the log action for all
  devices) was only called if the configuration interface was on; I'm not
  sure why.  Now it is called all the time.
- the wxWindows equivalent of main() is called MyApp::OnInit.  Now OnInit
  and main() are very similar.  They both call bx_init_siminterface, then
  bx_init_main (and quit if it fails), then show the config interface if
  quickstart is off, and then simulate.
- modified: main.cc gui/control.cc gui/wxmain.cc
2002-10-14 13:37:20 +00:00
Bryce Denney
bb9fd8ae22 - strncpy not guaranteed to null terminate, so do it. 2002-10-14 13:31:25 +00:00
Bryce Denney
073aaae56a - post irc chat log on web site
- modified: index.html release2_0.html
- added: irc-20021013.html
2002-10-14 12:37:49 +00:00
Bryce Denney
c07f5836f3 - move definition of bx_address earlier, just after the Bit32u and Bit64u
types are defined.  This should ensure that bx_address is defined by
  the time it's needed.
2002-10-13 22:38:17 +00:00
Bryce Denney
d39ccd1003 - no longer needed now that wxWindows 2.3.3 is released 2002-10-13 22:08:42 +00:00
Christophe Bothamy
b0972a74a4 - deleted since it's been included in main code long ago 2002-10-13 21:59:34 +00:00
Christophe Bothamy
87337ac2a2 - delete patch as it's been included in main code long ago 2002-10-13 21:58:24 +00:00