* tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on

the directory name

        * Merge (lots) with foundry-971118-build

        * Makefile.in (install-only): install the new gdbtk, not the old

        * top.h: add declaration of get_prompt

        * top.c (get_prompt): new function

        * gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
        commands
        (gdbtk_init): add new commands "gdb_get_locals", "gdb_get_args",
        "gdb_get_function", "gdb_get_line", "gdb_get_file",
        "gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
        and "gdb_prompt"
        (gdb_get_vars_command): new function
        (gdb_get_line_command): new function
        (gdb_get_file_command): new function
        (gdb_get_function_command): new function
        (gdb_get_tracepoint_info): new function
        (gdbtk_create_tracepoint): new function
        (gdbtk_delete_tracepoint): new function
        (tracepoint_notify): new function
        (tracepoint_exists): new function
        (gdb_actions_command): new function
        (gdb_tracepoint_exists_command): new function
        (gdb_prompt_command): new function

        * main.tcl: initialize gdbtk_state(readline)

        * console.tcl (invoke): get realine working
        (activate): add prompt argument for readline
        (setprompt): add prompt argument for readline

        * interface.tcl (gdbtk_tcl_readline): hack to get readline working

        * lots: Merge with foundry-971118-build

        * console.tcl (setprompt): get prompt from gdb

        * prefs.tcl (pref_set_defaults): add tracepoint defaults

        * interface.tcl (gdbtk_tcl_tracepoint): new function

        * src.tcl (constructor): set default behavior of left click, make
        a tracepoint dot, too
        (fill_files): "new" function: ripped out of "location"
        (location): use fill_files instead
        (do_bp): add support for tracepoints
        (bp_line): add support for tracepoints
        (set_tracepoint): new function
        (config_win): add "Set tracepoint here" to right-click menu

        * actiondlg.tcl: new file to help with tracepoint data collection actions

        * tracedlg.tcl: new file to help with tracepoints
This commit is contained in:
Keith Seitz
1997-11-26 22:38:10 +00:00
parent 0fa555ea62
commit 018d76dddb
9 changed files with 1666 additions and 300 deletions

View File

@ -1,3 +1,35 @@
Wed Nov 26 11:33:09 1997 Keith Seitz <keiths@onions.cygnus.com>
* tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on
the directory name
* Merge (lots) with foundry-971118-build
* Makefile.in (install-only): install the new gdbtk, not the old
* top.h: add declaration of get_prompt
* top.c (get_prompt): new function
* gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
commands
(gdbtk_init): add new commands "gdb_get_locals", "gdb_get_args",
"gdb_get_function", "gdb_get_line", "gdb_get_file",
"gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
and "gdb_prompt"
(gdb_get_vars_command): new function
(gdb_get_line_command): new function
(gdb_get_file_command): new function
(gdb_get_function_command): new function
(gdb_get_tracepoint_info): new function
(gdbtk_create_tracepoint): new function
(gdbtk_delete_tracepoint): new function
(tracepoint_notify): new function
(tracepoint_exists): new function
(gdb_actions_command): new function
(gdb_tracepoint_exists_command): new function
(gdb_prompt_command): new function
Wed Nov 26 09:59:47 1997 Andrew Cagney <cagney@b1.cygnus.com> Wed Nov 26 09:59:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
* dwarf2read.c (struct comp_unit_head): Change length and * dwarf2read.c (struct comp_unit_head): Change length and
@ -96,6 +128,15 @@ Fri Nov 14 13:04:34 1997 Jeffrey A Law (law@cygnus.com)
* jv-exp.y (copy_exp, insert_exp): Avoid ANSI prototypes. * jv-exp.y (copy_exp, insert_exp): Avoid ANSI prototypes.
Thu Nov 13 18:15:54 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c: Move include of gdbcore.h to top of file.
(close_bfds): New static function if _WIN32.
(gdbtk_readline): Call close_bfds.
(call_wrapper, tk_command_loop): Likewise.
(gdb_clear_file): New static function.
(gdbtk_init): Create gdb_clear_file Tcl command.
Thu Nov 13 09:47:35 1997 Michael Meissner <meissner@cygnus.com> Thu Nov 13 09:47:35 1997 Michael Meissner <meissner@cygnus.com>
* d30v-tdep.c (d30v_print_flags): Function to print the d30v flags * d30v-tdep.c (d30v_print_flags): Function to print the d30v flags
@ -109,11 +150,36 @@ Thu Nov 13 09:47:35 1997 Michael Meissner <meissner@cygnus.com>
* config/d30v/tm-d30v.h (PSW_*): Add macros for each of the PSW * config/d30v/tm-d30v.h (PSW_*): Add macros for each of the PSW
bits that are defined. bits that are defined.
Wed Nov 12 14:58:39 1997 Jeff Holcomb <jeffh@cygnus.com>
* gdbtk.c: gdbtk_load_hash and ui_load_progress_hook return an
int result.
(gdbtk_load_hash): download hash routine returns an int result.
* symfile.c (generic_load): Handle cancel from the
ui_load_progress_hook routine.
* dsrec.c (load_srec): Handle cancel from the
ui_load_progress_hook routine.
Mon Nov 10 15:13:13 1997 Ian Lance Taylor <ian@cygnus.com> Mon Nov 10 15:13:13 1997 Ian Lance Taylor <ian@cygnus.com>
* valprint.c (print_longest): The b, h, w, and g format specifiers * valprint.c (print_longest): The b, h, w, and g format specifiers
print unsigned values. print unsigned values.
Mon Nov 10 15:11:51 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdbtk_init): Call ide_create_shell_execute_command if
__CYGWIN32__.
* configure.in: Add -lshell32 to WIN32LIBS on cygwin32.
* configure: Rebuild.
Mon Nov 10 02:02:49 1997 Martin M. Hunt <hunt@cygnus.com>
* top.c (quit_confirm): Change exit message.
Sun Nov 9 16:25:34 1997 Tom Tromey <tromey@cygnus.com>
* gdbtk.c (gdbtk_init): Run ide_create_help_command.
Tue Nov 4 16:52:50 1997 Geoffrey Noer <noer@cygnus.com> Tue Nov 4 16:52:50 1997 Geoffrey Noer <noer@cygnus.com>
* config/i386/cygwin32.mh: because cygwin.dll calls malloc/realloc * config/i386/cygwin32.mh: because cygwin.dll calls malloc/realloc
@ -144,6 +210,15 @@ Wed Oct 29 15:53:24 1997 David Taylor <taylor@texas.cygnus.com>
* solib.c (solib_break_names): add entry for Solaris 2.6 run * solib.c (solib_break_names): add entry for Solaris 2.6 run
time linker. From Casper Dik via Peter Schauer. time linker. From Casper Dik via Peter Schauer.
Tue Oct 28 17:31:47 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_init): Call ide_create_winprint_command.
* configure.in (configdir): Add -lcomdlg32 and -ladvapi32
to WIN32LIBS.
* configure: Rebuild
Fri Oct 24 16:48:21 1997 David Taylor <taylor@texas.cygnus.com> Fri Oct 24 16:48:21 1997 David Taylor <taylor@texas.cygnus.com>
* sol-thread.c (sol_find_new_threads_callback, * sol-thread.c (sol_find_new_threads_callback,
@ -162,6 +237,16 @@ Thu Oct 23 16:16:04 1997 Jeff Law (law@fast.cs.utah.edu)
found. All callers changed appropriately. found. All callers changed appropriately.
(define_symbol): Don't perform assignment inside conditionals. (define_symbol): Don't perform assignment inside conditionals.
Thu Oct 23 15:53:37 1997 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Add -lgdi32 to WIN32LIBS when linking gdbtk on
cygwin32.
* configure: Rebuild.
Wed Oct 22 21:32:54 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_init): Create sizebox command on Windows.
Wed Oct 22 13:04:52 1997 Jeffrey A Law (law@cygnus.com) Wed Oct 22 13:04:52 1997 Jeffrey A Law (law@cygnus.com)
* mdebugread.c (psymtab_to_symtab_1): Handle new live range stabs * mdebugread.c (psymtab_to_symtab_1): Handle new live range stabs
@ -224,6 +309,12 @@ Tue Oct 14 22:13:27 1997 Dawn Perchik <dawn@cygnus.com>
* stabsread.c: Make ref_map entries dynamically allocated. * stabsread.c: Make ref_map entries dynamically allocated.
Thu Oct 9 14:33:21 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdbtk_init): Remove assertion argument from call to
ide_create_window_register_command.
* gdbtcl2/main.tcl: Call ide_window_register restorer.
Thu Oct 9 12:37:57 1997 Frank Ch. Eigler <fche@cygnus.com> Thu Oct 9 12:37:57 1997 Frank Ch. Eigler <fche@cygnus.com>
* printcmd.c (print_address_symbolic, address_info): Mask * printcmd.c (print_address_symbolic, address_info): Mask
@ -267,6 +358,11 @@ start-sanitize-r5900
to disable use of FP registers for function arguments. to disable use of FP registers for function arguments.
end-sanitize-r5900 end-sanitize-r5900
Wed Oct 1 11:09:52 1997 Tom Tromey <tromey@cygnus.com>
* gdbtk.c (gdbtk_init): Pass name of restore interface to
ide_create_window_register_command.
Mon Sep 29 23:03:03 1997 Mark Alexander <marka@cygnus.com> Mon Sep 29 23:03:03 1997 Mark Alexander <marka@cygnus.com>
* mips-tdep.c (set_reg_offset): New function. * mips-tdep.c (set_reg_offset): New function.
@ -293,6 +389,16 @@ end-sanitize-r5900
* config/mips/tm-mips.h (NUM_REGS): Define conditionally. * config/mips/tm-mips.h (NUM_REGS): Define conditionally.
(REGISTER_NAMES): Ditto. (REGISTER_NAMES): Ditto.
Fri Sep 26 21:08:22 1997 Keith Seitz <keiths@pizza.cygnus.com>
* gdbtk.c (gdbtk_init): initialize ui_load_progress_hook
* dsrec.c (load_srec): add ui_load_progress_hook to
display some feedback to user
* symfile.c (generic_load): add ui_load_progress_hook to
display some feedback to user
Fri Sep 26 17:32:22 1997 Jason Molenda (crash@pern.cygnus.com) Fri Sep 26 17:32:22 1997 Jason Molenda (crash@pern.cygnus.com)
* command.c (add_cmd, add_show_from_set): Insert new commands in * command.c (add_cmd, add_show_from_set): Insert new commands in
@ -329,6 +435,13 @@ Fri Sep 26 10:33:54 1997 Felix Lee <flee@cygnus.com>
* configure.tgt (v850-*-*): necmsg.lib instead of v850.lib. * configure.tgt (v850-*-*): necmsg.lib instead of v850.lib.
Thu Sep 25 03:05:00 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_load_info): New function. Returns a list
of section names and sizes for an executable.
(gdbtk_load_hash): Stub function to call tcl function
download_hash.
Wed Sep 24 14:02:09 1997 Andrew Cagney <cagney@b1.cygnus.com> Wed Sep 24 14:02:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
* config/v850/tm-v850.h (BREAKPOINT): Use 1 word DIVH insn with * config/v850/tm-v850.h (BREAKPOINT): Use 1 word DIVH insn with
@ -363,6 +476,10 @@ Tue Sep 23 11:24:13 1997 Stan Shebs <shebs@andros.cygnus.com>
* Makefile.in (ALLCONFIG): Remove, inaccurate and never used. * Makefile.in (ALLCONFIG): Remove, inaccurate and never used.
Tue Sep 23 01:29:00 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_get_mem): Fix compiler warning.
Tue Sep 23 00:08:18 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) Tue Sep 23 00:08:18 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* mips-tdep.c (mips_push_arguments): Tweak alignment of register * mips-tdep.c (mips_push_arguments): Tweak alignment of register
@ -377,6 +494,10 @@ Mon Sep 22 15:32:06 1997 Dawn Perchik <dawn@cygnus.com>
* stabsread.h, symtab.h, dbxread.c, symtab.c, stabsread.c: * stabsread.h, symtab.h, dbxread.c, symtab.c, stabsread.c:
Fix prototypes. Remove function scoped function declarations. Fix prototypes. Remove function scoped function declarations.
Sun Sep 21 00:15:00 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_get_mem): Fix problem with ASCII dump.
Fri Sep 19 18:51:26 1997 Felix Lee <flee@cygnus.com> Fri Sep 19 18:51:26 1997 Felix Lee <flee@cygnus.com>
* config/i386/windows.mh (XDEPFILES): need to list some files * config/i386/windows.mh (XDEPFILES): need to list some files
@ -414,6 +535,11 @@ Tue Sep 16 19:56:23 1997 Per Bothner <bothner@cygnus.com>
on a new 'run' command. on a new 'run' command.
(symbol_add_stub): First look for existing objfile with same name. (symbol_add_stub): First look for existing objfile with same name.
Tue Sep 16 18:07:17 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_get_mem): New function. Returns
a formatted memory dump with optional ASCII dump.
Tue Sep 16 16:00:01 1997 Stan Shebs <shebs@andros.cygnus.com> Tue Sep 16 16:00:01 1997 Stan Shebs <shebs@andros.cygnus.com>
* remote-sds.c (sds_load): New function. * remote-sds.c (sds_load): New function.
@ -480,6 +606,22 @@ Mon Sep 8 16:45:51 1997 Stu Grossman <grossman@cygnus.com>
mechanism. Remove prototypes for dos_async_* functions. They don't mechanism. Remove prototypes for dos_async_* functions. They don't
exist anymore. exist anymore.
Mon Sep 8 12:48:50 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c: Include ilutk.h if IDE.
(gdb_confirm_quit, gdb_force_quit): New static functions.
(gdbtk_init): Add Tcl commands gdb_confirm_quit and
gdb_force_quit.
* top.c (quit_confirm, quit_force): New functions, broken out of
quit_command.
(quit_command): Just call quit_confirm and quit_force.
* top.h (quit_confirm, quit_force): Declare.
Mon Sep 8 03:05:33 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_get_breakpoint_info): Now returns the
function a breakpoint is in.
Sun Sep 7 17:26:30 1997 Dawn Perchik <dawn@cygnus.com> Sun Sep 7 17:26:30 1997 Dawn Perchik <dawn@cygnus.com>
* dbxread.c, buildsym.c, symtab.c, stabsread.c: Add support for * dbxread.c, buildsym.c, symtab.c, stabsread.c: Add support for
@ -487,6 +629,23 @@ Sun Sep 7 17:26:30 1997 Dawn Perchik <dawn@cygnus.com>
* stabsread.h, partial-stab.h: Add prototypes for new functions. * stabsread.h, partial-stab.h: Add prototypes for new functions.
* symtab.h: Add structure for storing live range information. * symtab.h: Add structure for storing live range information.
Fri Sep 5 20:23:58 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdbtk_init): Call ide_create_exit_command.
Wed Sep 3 19:39:15 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c: Include guitcl.h.
(gdbtk_init): Always call ide_initialize_paths. Set the Tcl
variable IDE to 1 when using the IDE. Always try using auto path
to find main.tcl.
* Makefile.in (IDE_CFLAGS_X): Always include libide.
(LIBIDE): New variable.
(IDE_X): Omit -lide.
(IDE_DEPS): Omit libide.
* configure.in: Add LIBIDE to TCL_LIBS and CONFIG_DEPS.
* configure: Rebuild.
Wed Sep 3 16:39:39 1997 Andrew Cagney <cagney@b1.cygnus.com> Wed Sep 3 16:39:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
* top.c (set_arch): New function, update target_architecture. * top.c (set_arch): New function, update target_architecture.
@ -570,11 +729,70 @@ Mon Aug 25 12:21:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
* remote-sim.c (gdbsim_open): Pass exec_bfd to sim_open call. * remote-sim.c (gdbsim_open): Pass exec_bfd to sim_open call.
Mon Aug 25 02:28:55 1997 Keith Seitz <keiths@pizza.cygnus.com>
* gdbtk.c: (gdb_target_has_inferior) check if inferior_pid is non-zero
before assuming that the inferior is running.
Mon Aug 25 01:06:48 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdbtk_start_timer): Pass third argument to setitimer.
(gdbtk_stop_timer): Likewise.
Mon Aug 25 00:23:08 1997 Keith Seitz <keiths@pizza.cygnus.com>
* gdbtk.c: (gdbtk_init) create new command "gdb_target_has_execution"
(gdb_target_has_execution_command) new function
Sun Aug 24 21:16:59 1997 Geoffrey Noer <noer@cygnus.com> Sun Aug 24 21:16:59 1997 Geoffrey Noer <noer@cygnus.com>
* ocd.c: comment out sections that create and flush wigglers.log * ocd.c: comment out sections that create and flush wigglers.log
log file when using the wiggler. log file when using the wiggler.
Sun Aug 24 20:27:22 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (gdb_loc): If there are no symbols, just bail
immediately.
(tk_command_loop): Print errors encountered while running
gdbtk_tcl_preloop.
start-sanitize-gdbtk
Sun Aug 24 13:44:03 1997 Tom Tromey <tromey@cygnus.com>
* gdbtk.c (gdbtk_init): Run ide_create_build_command.
end-sanitize-gdbtk
Sat Aug 23 21:53:39 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c: If CYGWIN32, include <sys/time.h>.
(x_fd): Don't define if WINNT.
(gdbtk_start_timer, gdbtk_stop_timer): New static functions if
CYGWIN32.
(gdbtk_wait): Don't set up signal handling if WINNT. If CYGWIN32,
call gdbtk_start_timer and gdbtk_stop_timer.
(gdbtk_init): Don't set up signal handling or make x_fd
asynchronous if CYGWIN32.
Fri Aug 22 15:23:15 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c (error_string_ptr): New static variable.
(gdbtk_fputs): If result_ptr is NULL, and error_string_ptr is not
NULL, and we're outputting to stderr, append string to
error_string_ptr rather than calling gdbtk_tcl_fputs.
(call_wrapper): Set up error_string_ptr. Put both error string
and normal string in Tcl result.
* gdbtk.c (gdbtk_init): Don't call ide_run_server_init until after
gdb has initialized.
Thu Aug 21 19:14:38 1997 Ian Lance Taylor <ian@cygnus.com>
* gdbtk.c: If _WIN32, include winuser.h.
(gdbtk_init): If _WIN32, use MessageBox to display an error
evaluating main.tcl.
Thu Aug 21 16:18:08 1997 Geoffrey Noer <noer@cygnus.com> Thu Aug 21 16:18:08 1997 Geoffrey Noer <noer@cygnus.com>
* config/powerpc/ppc-eabi.mt: * config/powerpc/ppc-eabi.mt:
@ -595,6 +813,35 @@ Thu Aug 21 14:56:04 1997 Geoffrey Noer <noer@cygnus.com>
* ser-ocd.c (ocd_readchar): error if we attempt to read past * ser-ocd.c (ocd_readchar): error if we attempt to read past
the end of the from_wiggler_buffer. the end of the from_wiggler_buffer.
start-sanitize-gdbtk
Thu Aug 21 00:48:00 1997 Martin M. Hunt <hunt@pern.cygnus.com>
* gdbtk.c (gdbtk_init): Add call to ide_run_server_init().
(gdb_cmd): For the load command, don't buffer the I/O.
end-sanitize-gdbtk
Wed Aug 20 14:08:39 1997 Stan Shebs <shebs@andros.cygnus.com>
* dink32-rom.c: Don't use "mf" command to fill, is too picky
about alignment.
start-sanitize-gdbtk
Wed Aug 20 11:41:22 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_query): Chaneg free() call to Tcl_Free().
Tue Aug 19 17:09:19 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (TCL_DEPS, TK_DEPS): New variables.
(ITCL_DEPS, TIX_DEPS): New variables.
(IDE_DEPS): New variable.
(CDEPS): Include @CONFIG_DEPS@.
* configure.in: Set and substitute CONFIG_DEPS and TIX_DEPS.
* configure: Rebuild.
end-sanitize-gdbtk
Tue Aug 19 08:41:36 1997 Fred Fish <fnf@cygnus.com> Tue Aug 19 08:41:36 1997 Fred Fish <fnf@cygnus.com>
* objfiles.c (objfile_relocate): Add call to breakpoint_re_set * objfiles.c (objfile_relocate): Add call to breakpoint_re_set
@ -645,6 +892,11 @@ Sun Aug 17 00:42:11 1997 Martin M. Hunt <hunt@cygnus.com>
a list of all the functions in a source file. a list of all the functions in a source file.
end-sanitize-gdbtk end-sanitize-gdbtk
Fri Aug 15 20:53:13 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (init.c): Don't use xargs.
Fri Aug 15 13:59:37 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) Fri Aug 15 13:59:37 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* infrun.c (wait_for_inferior): Add the symbols for any * infrun.c (wait_for_inferior): Add the symbols for any

View File

@ -41,7 +41,7 @@ man9dir = $(mandir)/man9
infodir = @infodir@ infodir = @infodir@
includedir = @includedir@ includedir = @includedir@
SHELL = @SHELL@ SHELL = /bin/sh
EXEEXT = # @EXEEXT@ # This isn't getting substituted in correctly :-( EXEEXT = # @EXEEXT@ # This isn't getting substituted in correctly :-(
INSTALL = @INSTALL@ INSTALL = @INSTALL@
@ -136,18 +136,22 @@ LIB_INSTALL_DIR = $(libdir)
LIB_RUNTIME_DIR = $(libdir) LIB_RUNTIME_DIR = $(libdir)
TCL = @TCL_LD_SEARCH_FLAGS@ @TCL_BUILD_LIB_SPEC@ TCL = @TCL_LD_SEARCH_FLAGS@ @TCL_BUILD_LIB_SPEC@
TCL_CFLAGS = @TCLHDIR@ TCL_CFLAGS = @TCLHDIR@
TCL_DEPS =
# Where is the TK library? Typically in ../tk. # Where is the TK library? Typically in ../tk.
TK = @TK_BUILD_LIB_SPEC@ TK = @TK_BUILD_LIB_SPEC@
TK_CFLAGS = @TKHDIR@ @TK_BUILD_INCLUDES@ TK_CFLAGS = @TKHDIR@ @TK_BUILD_INCLUDES@
TK_DEPS =
# Where is Itcl? Typically in ../itcl. # Where is Itcl? Typically in ../itcl.
ITCL_CFLAGS = @ITCLHDIR@ ITCL_CFLAGS = @ITCLHDIR@
ITCL = @ITCLLIB@ ITCL = @ITCLLIB@
ITCL_DEPS = $(ITCL)
# Where is Tix? Typically in ../tix. # Where is Tix? Typically in ../tix.
TIX_CFLAGS = @TIXHDIR@ TIX_CFLAGS = @TIXHDIR@
TIX = @TIXLIB@ TIX = @TIXLIB@
TIX_DEPS = @TIX_DEPS@
X11_CFLAGS = @TK_XINCLUDES@ X11_CFLAGS = @TK_XINCLUDES@
X11_LDFLAGS = X11_LDFLAGS =
@ -159,16 +163,21 @@ WIN32LIBS = @WIN32LIBS@
ENABLE_GDBTK= @ENABLE_GDBTK@ ENABLE_GDBTK= @ENABLE_GDBTK@
ENABLE_IDE= @ENABLE_IDE@ ENABLE_IDE= @ENABLE_IDE@
IDE_CFLAGS_X = ` \ IDE_CFLAGS_X = -I$(srcdir)/../libide/src \
if [ x"$(ENABLE_IDE)" != x ] ; then \ `if [ x"$(ENABLE_IDE)" != x ] ; then \
echo -DIDE -I$(srcdir)/../libide/src -I$(srcdir)/../ilu/runtime/mainloop;\ echo -DIDE -I$(srcdir)/../ilu/runtime/mainloop;\
fi` fi`
LIBIDE = ../libide/src/libide.a
IDE_X = ` \ IDE_X = ` \
if [ x"$(ENABLE_IDE)" != x ] ; then \ if [ x"$(ENABLE_IDE)" != x ] ; then \
echo -L../libide/src -lide -L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu;\ echo -L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu;\
fi` fi`
IDE_DEPS = ../ilu/runtime/mainloop/libilu-Tk.a \
../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a
IDE=$(IDE_X) IDE=$(IDE_X)
IDE_CFLAGS=$(IDE_CFLAGS_X) IDE_CFLAGS=$(IDE_CFLAGS_X)
#end-sanitize-gdbtk #end-sanitize-gdbtk
@ -235,12 +244,12 @@ CLIBS = $(SIM) $(BFD) $(READLINE) $(OPCODES) $(LIBIBERTY) \
$(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) @LIBS@ \ $(TERMCAP) $(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) @LIBS@ \
$(MMALLOC) $(LIBIBERTY) $(WIN32LIBS) $(MMALLOC) $(LIBIBERTY) $(WIN32LIBS)
CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \ CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
$(OPCODES) $(MMALLOC) $(LIBIBERTY) $(OPCODES) $(MMALLOC) $(LIBIBERTY) @CONFIG_DEPS@
ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES) ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES) ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
VERSION = 4.16.1 VERSION=4.16-foundry-971110
DIST=gdb DIST=gdb
LINT=/usr/5bin/lint LINT=/usr/5bin/lint
@ -574,25 +583,17 @@ install-only:
fi ; \ fi ; \
$(INSTALL_PROGRAM) gdb$(EXEEXT) $(bindir)/$$transformed_name$(EXEEXT) ; \ $(INSTALL_PROGRAM) gdb$(EXEEXT) $(bindir)/$$transformed_name$(EXEEXT) ; \
$(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1 $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$transformed_name.1
# start-sanitize-gdbtk # start-sanitize-gdbtk
if [ x"$(ENABLE_GDBTK)" != x ] ; then \ if [ x"$(ENABLE_GDBTK)" != x ] ; then \
$(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl ; \ $(SHELL) $(srcdir)/../mkinstalldirs $(datadir)/gdbtcl ; \
if [ x"$(ENABLE_IDE)" = x ]; then \ $(SHELL) $(srcdir)/../mkinstalldirs \
cd $(srcdir)/gdbtcl ; \ $(datadir)/gdbtcl/images \
for i in asm.tcl break.xbm breakpoint.tcl command.tcl copyright.tcl expr.tcl file.tcl main.tcl register.tcl source.tcl stop2.gif tclIndex ; \ $(datadir)/gdbtcl/images2 ; \
do \ cd $(srcdir)/gdbtcl2 ; \
for i in *.tcl images/*.gif images2/*.gif tclIndex; \
do \
$(INSTALL_DATA) $$i $(datadir)/gdbtcl/$$i ; \ $(INSTALL_DATA) $$i $(datadir)/gdbtcl/$$i ; \
done ; \ done ; \
else \
$(SHELL) $(srcdir)/../mkinstalldirs \
$(datadir)/gdbtcl/images \
$(datadir)/gdbtcl/images2 ; \
cd $(srcdir)/gdbtcl2 ; \
for i in *.tcl images/*.gif images2/*.gif tclIndex; \
do \
$(INSTALL_DATA) $$i $(datadir)/gdbtcl/$$i ; \
done ; \
fi ; \
else \ else \
true ; \ true ; \
fi fi
@ -645,7 +646,7 @@ init.c: $(OBS) $(TSOBS)
-e '/[a-z0-9A-Z_]*-exp.tab.o/d' \ -e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
-e 's/\.o/.c/' \ -e 's/\.o/.c/' \
-e 's|\([^ ][^ ]*\)|$(srcdir)/\1|g' | \ -e 's|\([^ ][^ ]*\)|$(srcdir)/\1|g' | \
xargs grep '^_initialize_[a-z_0-9A-Z]* *(' | \ while read f; do grep '^_initialize_[a-z_0-9A-Z]* *(' $$f 2>/dev/null; done | \
sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/ {extern void \1 PARAMS ((void)); \1 ();}/' >>init.c-tmp sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/ {extern void \1 PARAMS ((void)); \1 ();}/' >>init.c-tmp
@echo '}' >>init.c-tmp @echo '}' >>init.c-tmp
@mv init.c-tmp init.c @mv init.c-tmp init.c

201
gdb/configure vendored
View File

@ -976,6 +976,7 @@ test "$host_alias" != "$target_alias" &&
CONFIG_OBS= CONFIG_OBS=
CONFIG_DEPS=
configdirs="doc testsuite" configdirs="doc testsuite"
@ -996,7 +997,7 @@ configdirs="doc testsuite"
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh. # ./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 $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:1000: checking for a BSD compatible install" >&5 echo "configure:1001: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
@ -1054,7 +1055,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2 set dummy ${ac_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1058: checking for $ac_word" >&5 echo "configure:1059: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1085,7 +1086,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1089: checking for $ac_word" >&5 echo "configure:1090: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1116,7 +1117,7 @@ if test -n "$ac_tool_prefix"; then
# Extract the first word of "ranlib", so it can be a program name with args. # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2 set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1120: checking for $ac_word" >&5 echo "configure:1121: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1152,7 +1153,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1156: checking for $ac_word" >&5 echo "configure:1157: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1186,7 +1187,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1190: checking for $ac_word" >&5 echo "configure:1191: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1236,12 +1237,12 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x,"
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:1240: checking return type of signal handlers" >&5 echo "configure:1241: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1245 "configure" #line 1246 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
@ -1258,7 +1259,7 @@ int main() {
int i; int i;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_type_signal=void ac_cv_type_signal=void
else else
@ -1278,12 +1279,12 @@ EOF
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1282: checking for ANSI C header files" >&5 echo "configure:1283: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1287 "configure" #line 1288 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
@ -1291,7 +1292,7 @@ else
#include <float.h> #include <float.h>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out` ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
@ -1308,7 +1309,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1312 "configure" #line 1313 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <string.h> #include <string.h>
EOF EOF
@ -1326,7 +1327,7 @@ fi
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1330 "configure" #line 1331 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
EOF EOF
@ -1347,7 +1348,7 @@ if test "$cross_compiling" = yes; then
: :
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1351 "configure" #line 1352 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <ctype.h> #include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@ -1358,7 +1359,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); } exit (0); }
EOF EOF
if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then then
: :
else else
@ -1385,17 +1386,17 @@ for ac_hdr in limits.h memory.h string.h strings.h unistd.h termios.h termio.h s
do do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1389: checking for $ac_hdr" >&5 echo "configure:1390: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1394 "configure" #line 1395 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_hdr> #include <$ac_hdr>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out` ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
@ -1422,12 +1423,12 @@ fi
done done
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
echo "configure:1426: checking whether stat file-mode macros are broken" >&5 echo "configure:1427: checking whether stat file-mode macros are broken" >&5
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1431 "configure" #line 1432 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
@ -1479,12 +1480,12 @@ fi
echo $ac_n "checking for working const""... $ac_c" 1>&6 echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1483: checking for working const" >&5 echo "configure:1484: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1488 "configure" #line 1489 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
@ -1533,7 +1534,7 @@ ccp = (char const *const *) p;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_c_const=yes ac_cv_c_const=yes
else else
@ -1557,12 +1558,12 @@ fi
for ac_func in setpgid sbrk select poll for ac_func in setpgid sbrk select poll
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1561: checking for $ac_func" >&5 echo "configure:1562: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1566 "configure" #line 1567 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
@ -1585,7 +1586,7 @@ $ac_func();
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
@ -1627,19 +1628,19 @@ EOF
fi fi
echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
echo "configure:1631: checking for gregset_t type" >&5 echo "configure:1632: checking for gregset_t type" >&5
if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1636 "configure" #line 1637 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/procfs.h> #include <sys/procfs.h>
int main() { int main() {
gregset_t *gregsetp = 0 gregset_t *gregsetp = 0
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest* rm -rf conftest*
gdb_cv_have_gregset_t=yes gdb_cv_have_gregset_t=yes
else else
@ -1660,19 +1661,19 @@ EOF
fi fi
echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
echo "configure:1664: checking for fpregset_t type" >&5 echo "configure:1665: checking for fpregset_t type" >&5
if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1669 "configure" #line 1670 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/procfs.h> #include <sys/procfs.h>
int main() { int main() {
fpregset_t *fpregsetp = 0 fpregset_t *fpregsetp = 0
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest* rm -rf conftest*
gdb_cv_have_fpregset_t=yes gdb_cv_have_fpregset_t=yes
else else
@ -1693,7 +1694,7 @@ EOF
fi fi
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
echo "configure:1697: checking for main in -lm" >&5 echo "configure:1698: checking for main in -lm" >&5
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
@ -1701,14 +1702,14 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS" LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1705 "configure" #line 1706 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
main() main()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -1738,12 +1739,12 @@ fi
echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
echo "configure:1742: checking for long long support in compiler" >&5 echo "configure:1743: checking for long long support in compiler" >&5
if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1747 "configure" #line 1748 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
@ -1753,7 +1754,7 @@ int main() {
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:1758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
gdb_cv_c_long_long=yes gdb_cv_c_long_long=yes
else else
@ -1775,7 +1776,7 @@ fi
echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
echo "configure:1779: checking for long long support in printf" >&5 echo "configure:1780: checking for long long support in printf" >&5
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1783,7 +1784,7 @@ else
gdb_cv_printf_has_long_long=no gdb_cv_printf_has_long_long=no
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1787 "configure" #line 1788 "configure"
#include "confdefs.h" #include "confdefs.h"
int main () { int main () {
@ -1797,7 +1798,7 @@ int main () {
return (strcmp ("0x0123456789abcdef", buf)); return (strcmp ("0x0123456789abcdef", buf));
} }
EOF EOF
if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then then
gdb_cv_printf_has_long_long=yes gdb_cv_printf_has_long_long=yes
else else
@ -1821,19 +1822,19 @@ echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
echo "configure:1825: checking for long double support in compiler" >&5 echo "configure:1826: checking for long double support in compiler" >&5
if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1830 "configure" #line 1831 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
long double foo; long double foo;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:1838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_c_long_double=yes ac_cv_c_long_double=yes
else else
@ -1855,7 +1856,7 @@ fi
echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
echo "configure:1859: checking for long double support in printf" >&5 echo "configure:1860: checking for long double support in printf" >&5
if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1863,7 +1864,7 @@ else
gdb_cv_printf_has_long_double=no gdb_cv_printf_has_long_double=no
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1867 "configure" #line 1868 "configure"
#include "confdefs.h" #include "confdefs.h"
int main () { int main () {
@ -1873,7 +1874,7 @@ int main () {
return (strncmp ("3.14159", buf, 7)); return (strncmp ("3.14159", buf, 7));
} }
EOF EOF
if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null if { (eval echo configure:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then then
gdb_cv_printf_has_long_double=yes gdb_cv_printf_has_long_double=yes
else else
@ -1897,7 +1898,7 @@ echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
echo "configure:1901: checking for long double support in scanf" >&5 echo "configure:1902: checking for long double support in scanf" >&5
if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1905,7 +1906,7 @@ else
gdb_cv_scanf_has_long_double=no gdb_cv_scanf_has_long_double=no
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1909 "configure" #line 1910 "configure"
#include "confdefs.h" #include "confdefs.h"
int main () { int main () {
@ -1915,7 +1916,7 @@ int main () {
return !(f > 3.14159 && f < 3.14160); return !(f > 3.14159 && f < 3.14160);
} }
EOF EOF
if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then then
gdb_cv_scanf_has_long_double=yes gdb_cv_scanf_has_long_double=yes
else else
@ -1941,17 +1942,17 @@ for ac_hdr in unistd.h
do do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1945: checking for $ac_hdr" >&5 echo "configure:1946: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1950 "configure" #line 1951 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_hdr> #include <$ac_hdr>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out` ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
@ -1980,12 +1981,12 @@ done
for ac_func in getpagesize for ac_func in getpagesize
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1984: checking for $ac_func" >&5 echo "configure:1985: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1989 "configure" #line 1990 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
@ -2008,7 +2009,7 @@ $ac_func();
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
@ -2033,7 +2034,7 @@ fi
done done
echo $ac_n "checking for working mmap""... $ac_c" 1>&6 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo "configure:2037: checking for working mmap" >&5 echo "configure:2038: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -2041,7 +2042,7 @@ else
ac_cv_func_mmap_fixed_mapped=no ac_cv_func_mmap_fixed_mapped=no
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2045 "configure" #line 2046 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Thanks to Mike Haertel and Jim Avera for this test. /* Thanks to Mike Haertel and Jim Avera for this test.
@ -2181,7 +2182,7 @@ main()
} }
EOF EOF
if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then then
ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_mmap_fixed_mapped=yes
else else
@ -2205,12 +2206,12 @@ fi
echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
echo "configure:2209: checking whether malloc must be declared" >&5 echo "configure:2210: checking whether malloc must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2214 "configure" #line 2215 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
@ -2231,7 +2232,7 @@ int main() {
char *(*pfn) = (char *(*)) malloc char *(*pfn) = (char *(*)) malloc
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:2236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
bfd_cv_decl_needed_malloc=no bfd_cv_decl_needed_malloc=no
else else
@ -2253,12 +2254,12 @@ EOF
fi fi
echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
echo "configure:2257: checking whether realloc must be declared" >&5 echo "configure:2258: checking whether realloc must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2262 "configure" #line 2263 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
@ -2279,7 +2280,7 @@ int main() {
char *(*pfn) = (char *(*)) realloc char *(*pfn) = (char *(*)) realloc
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
bfd_cv_decl_needed_realloc=no bfd_cv_decl_needed_realloc=no
else else
@ -2301,12 +2302,12 @@ EOF
fi fi
echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
echo "configure:2305: checking whether free must be declared" >&5 echo "configure:2306: checking whether free must be declared" >&5
if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2310 "configure" #line 2311 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
@ -2327,7 +2328,7 @@ int main() {
char *(*pfn) = (char *(*)) free char *(*pfn) = (char *(*)) free
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:2332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
bfd_cv_decl_needed_free=no bfd_cv_decl_needed_free=no
else else
@ -2355,7 +2356,7 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
case ${host_os} in case ${host_os} in
hpux*) hpux*)
echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
echo "configure:2359: checking for HPUX/OSF thread support" >&5 echo "configure:2360: checking for HPUX/OSF thread support" >&5
if test -f /usr/include/dce/cma_config.h ; then if test -f /usr/include/dce/cma_config.h ; then
if test "$GCC" = "yes" ; then if test "$GCC" = "yes" ; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
@ -2373,7 +2374,7 @@ EOF
;; ;;
solaris*) solaris*)
echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
echo "configure:2377: checking for Solaris thread debugging library" >&5 echo "configure:2378: checking for Solaris thread debugging library" >&5
if test -f /usr/lib/libthread_db.so.1 ; then if test -f /usr/lib/libthread_db.so.1 ; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
@ -2382,7 +2383,7 @@ EOF
CONFIG_OBS="${CONFIG_OBS} sol-thread.o" CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
echo "configure:2386: checking for dlopen in -ldl" >&5 echo "configure:2387: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
@ -2390,7 +2391,7 @@ else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS" LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2394 "configure" #line 2395 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
@ -2401,7 +2402,7 @@ int main() {
dlopen() dlopen()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -2509,12 +2510,12 @@ fi
# In the cygwin32 environment, we need some additional flags. # In the cygwin32 environment, we need some additional flags.
echo $ac_n "checking for cygwin32""... $ac_c" 1>&6 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
echo "configure:2513: checking for cygwin32" >&5 echo "configure:2514: checking for cygwin32" >&5
if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2518 "configure" #line 2519 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef __CYGWIN32__ #ifdef __CYGWIN32__
@ -2567,7 +2568,7 @@ if test "${with_tclconfig+set}" = set; then
fi fi
echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
echo "configure:2571: checking for Tcl configuration" >&5 echo "configure:2572: checking for Tcl configuration" >&5
if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -2675,7 +2676,7 @@ if test "${with_tkconfig+set}" = set; then
fi fi
echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
echo "configure:2679: checking for Tk configuration" >&5 echo "configure:2680: checking for Tk configuration" >&5
if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -2771,7 +2772,7 @@ fi
no_tcl=true no_tcl=true
echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
echo "configure:2775: checking for Tcl private headers. dir=${configdir}" >&5 echo "configure:2776: checking for Tcl private headers. dir=${configdir}" >&5
# Check whether --with-tclinclude or --without-tclinclude was given. # Check whether --with-tclinclude or --without-tclinclude was given.
if test "${with_tclinclude+set}" = set; then if test "${with_tclinclude+set}" = set; then
withval="$with_tclinclude" withval="$with_tclinclude"
@ -2837,17 +2838,17 @@ fi
if test x"${ac_cv_c_tclh}" = x ; then if test x"${ac_cv_c_tclh}" = x ; then
ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'` ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
echo "configure:2841: checking for tclInt.h" >&5 echo "configure:2842: checking for tclInt.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2846 "configure" #line 2847 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <tclInt.h> #include <tclInt.h>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:2852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out` ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
@ -2907,7 +2908,7 @@ fi
# #
no_tk=true no_tk=true
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
echo "configure:2911: checking for Tk private headers" >&5 echo "configure:2912: checking for Tk private headers" >&5
# Check whether --with-tkinclude or --without-tkinclude was given. # Check whether --with-tkinclude or --without-tkinclude was given.
if test "${with_tkinclude+set}" = set; then if test "${with_tkinclude+set}" = set; then
withval="$with_tkinclude" withval="$with_tkinclude"
@ -2973,17 +2974,17 @@ fi
if test x"${ac_cv_c_tkh}" = x ; then if test x"${ac_cv_c_tkh}" = x ; then
ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'` ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
echo "configure:2977: checking for tk.h" >&5 echo "configure:2978: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2982 "configure" #line 2983 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <tk.h> #include <tk.h>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out` ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
@ -3029,7 +3030,7 @@ fi
echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
echo "configure:3033: checking for Itcl private headers. srcdir=${srcdir}" >&5 echo "configure:3034: checking for Itcl private headers. srcdir=${srcdir}" >&5
if test x"${ac_cv_c_itclh}" = x ; then if test x"${ac_cv_c_itclh}" = x ; then
for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do
if test -f $i/src/itcl.h ; then if test -f $i/src/itcl.h ; then
@ -3052,7 +3053,7 @@ fi
echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
echo "configure:3056: checking for Tix private headers. srcdir=${srcdir}" >&5 echo "configure:3057: checking for Tix private headers. srcdir=${srcdir}" >&5
if test x"${ac_cv_c_tixh}" = x ; then if test x"${ac_cv_c_tixh}" = x ; then
for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
if test -f $i/generic/tix.h ; then if test -f $i/generic/tix.h ; then
@ -3084,17 +3085,21 @@ fi
esac esac
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
TIXLIB="-L${tixdir} -ltix${TIXVERSION}" TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
TIX_DEPS="${tixdir}/libtix${TIXVERSION}.a"
else else
TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`" TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`.a"
fi fi
ENABLE_GDBTK=1 ENABLE_GDBTK=1
# Include some libraries that Tcl and Tk want. # Include some libraries that Tcl and Tk want.
if test "${enable_ide}" = "yes"; then if test "${enable_ide}" = "yes"; then
TCL_LIBS='$(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' TCL_LIBS='$(LIBIDE) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
CONFIG_DEPS='$(LIBIDE) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
else else
TCL_LIBS='$(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' TCL_LIBS='$(LIBIDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
CONFIG_DEPS='$(LIBIDE) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
fi fi
# Yes, the ordering seems wrong here. But it isn't. # Yes, the ordering seems wrong here. But it isn't.
# TK_LIBS is the list of libraries that need to be linked # TK_LIBS is the list of libraries that need to be linked
@ -3103,7 +3108,7 @@ fi
CONFIG_OBS="${CONFIG_OBS} gdbtk.o" CONFIG_OBS="${CONFIG_OBS} gdbtk.o"
if test x$gdb_cv_os_cygwin32 = xyes; then if test x$gdb_cv_os_cygwin32 = xyes; then
WIN32LIBS="${WIN32LIBS} -luser32" WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
WIN32LDAPP="-Wl,--subsystem,windows" WIN32LDAPP="-Wl,--subsystem,windows"
fi fi
fi fi
@ -3115,12 +3120,14 @@ fi
# end-sanitize-gdbtk # end-sanitize-gdbtk
# Begin stuff to support --enable-shared # Begin stuff to support --enable-shared
# Check whether --enable-shared or --disable-shared was given. # Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then if test "${enable_shared+set}" = set; then
@ -3258,7 +3265,7 @@ links="${links} nm.h"
fi fi
# start-sanitize-gdbtk # start-sanitize-gdbtk
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:3262: checking whether ln -s works" >&5 echo "configure:3269: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -3293,19 +3300,19 @@ fi
echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
echo "configure:3297: checking for Cygwin32 environment" >&5 echo "configure:3304: checking for Cygwin32 environment" >&5
if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3302 "configure" #line 3309 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
int main () { return __CYGWIN32__; } int main () { return __CYGWIN32__; }
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
am_cv_cygwin32=yes am_cv_cygwin32=yes
else else
@ -3323,7 +3330,7 @@ CYGWIN32=
test "$am_cv_cygwin32" = yes && CYGWIN32=yes test "$am_cv_cygwin32" = yes && CYGWIN32=yes
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo "configure:3327: checking for executable suffix" >&5 echo "configure:3334: checking for executable suffix" >&5
if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -3542,8 +3549,10 @@ s%@X_CFLAGS@%$X_CFLAGS%g
s%@X_LDFLAGS@%$X_LDFLAGS%g s%@X_LDFLAGS@%$X_LDFLAGS%g
s%@X_LIBS@%$X_LIBS%g s%@X_LIBS@%$X_LIBS%g
s%@TIXLIB@%$TIXLIB%g s%@TIXLIB@%$TIXLIB%g
s%@TIX_DEPS@%$TIX_DEPS%g
s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
s%@CONFIG_OBS@%$CONFIG_OBS%g s%@CONFIG_OBS@%$CONFIG_OBS%g
s%@CONFIG_DEPS@%$CONFIG_DEPS%g
s%@HLDFLAGS@%$HLDFLAGS%g s%@HLDFLAGS@%$HLDFLAGS%g
s%@HLDENV@%$HLDENV%g s%@HLDENV@%$HLDENV%g
s%@target_subdir@%$target_subdir%g s%@target_subdir@%$target_subdir%g

View File

@ -37,6 +37,7 @@ AC_CANONICAL_SYSTEM
dnl List of object files added by configure. dnl List of object files added by configure.
CONFIG_OBS= CONFIG_OBS=
CONFIG_DEPS=
configdirs="doc testsuite" configdirs="doc testsuite"
@ -340,17 +341,21 @@ if test "${enable_gdbtk}" = "yes"; then
esac esac
if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
TIXLIB="-L${tixdir} -ltix${TIXVERSION}" TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
TIX_DEPS="${tixdir}/libtix${TIXVERSION}.a"
else else
TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`" TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`.a"
fi fi
ENABLE_GDBTK=1 ENABLE_GDBTK=1
# Include some libraries that Tcl and Tk want. # Include some libraries that Tcl and Tk want.
if test "${enable_ide}" = "yes"; then if test "${enable_ide}" = "yes"; then
TCL_LIBS='$(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' TCL_LIBS='$(LIBIDE) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
CONFIG_DEPS='$(LIBIDE) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
else else
TCL_LIBS='$(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' TCL_LIBS='$(LIBIDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
CONFIG_DEPS='$(LIBIDE) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
fi fi
# Yes, the ordering seems wrong here. But it isn't. # Yes, the ordering seems wrong here. But it isn't.
# TK_LIBS is the list of libraries that need to be linked # TK_LIBS is the list of libraries that need to be linked
@ -359,7 +364,7 @@ if test "${enable_gdbtk}" = "yes"; then
CONFIG_OBS="${CONFIG_OBS} gdbtk.o" CONFIG_OBS="${CONFIG_OBS} gdbtk.o"
if test x$gdb_cv_os_cygwin32 = xyes; then if test x$gdb_cv_os_cygwin32 = xyes; then
WIN32LIBS="${WIN32LIBS} -luser32" WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
WIN32LDAPP="-Wl,--subsystem,windows" WIN32LDAPP="-Wl,--subsystem,windows"
fi fi
fi fi
@ -371,11 +376,13 @@ AC_SUBST(X_CFLAGS)
AC_SUBST(X_LDFLAGS) AC_SUBST(X_LDFLAGS)
AC_SUBST(X_LIBS) AC_SUBST(X_LIBS)
AC_SUBST(TIXLIB) AC_SUBST(TIXLIB)
AC_SUBST(TIX_DEPS)
# end-sanitize-gdbtk # end-sanitize-gdbtk
AC_SUBST(ENABLE_CFLAGS) AC_SUBST(ENABLE_CFLAGS)
AC_SUBST(CONFIG_OBS) AC_SUBST(CONFIG_OBS)
AC_SUBST(CONFIG_DEPS)
# Begin stuff to support --enable-shared # Begin stuff to support --enable-shared
AC_ARG_ENABLE(shared, AC_ARG_ENABLE(shared,

View File

@ -1,48 +1,60 @@
/* Do not modify this file; it is created automatically /* ==> Do not modify this file!! It is created automatically
by copying.awk. */ by copying.awk. Modify copying.awk instead. <== */
#include "defs.h" #include "defs.h"
#include "command.h" #include "command.h"
#include "gdbcmd.h" #include "gdbcmd.h"
static void
show_copying_command PARAMS ((char *, int));
static void
show_warranty_command PARAMS ((char *, int));
extern int immediate_quit; extern int immediate_quit;
static void static void
show_copying () show_copying_command (ignore, from_tty)
char *ignore;
int from_tty;
{ {
immediate_quit++; immediate_quit++;
printf_filtered ("\n");
printf_filtered (" GNU GENERAL PUBLIC LICENSE\n"); printf_filtered (" GNU GENERAL PUBLIC LICENSE\n");
printf_filtered (" Version 1, February 1989\n"); printf_filtered (" Version 2, June 1991\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" Copyright (C) 1989 Free Software Foundation, Inc.\n"); printf_filtered (" Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n");
printf_filtered (" 675 Mass Ave, Cambridge, MA 02139, USA\n"); printf_filtered (" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n");
printf_filtered (" Everyone is permitted to copy and distribute verbatim copies\n"); printf_filtered (" Everyone is permitted to copy and distribute verbatim copies\n");
printf_filtered (" of this license document, but changing it is not allowed.\n"); printf_filtered (" of this license document, but changing it is not allowed.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" Preamble\n"); printf_filtered (" Preamble\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" The license agreements of most software companies try to keep users\n"); printf_filtered (" The licenses for most software are designed to take away your\n");
printf_filtered ("at the mercy of those companies. By contrast, our General Public\n"); printf_filtered ("freedom to share and change it. By contrast, the GNU General Public\n");
printf_filtered ("License is intended to guarantee your freedom to share and change free\n"); printf_filtered ("License is intended to guarantee your freedom to share and change free\n");
printf_filtered ("software--to make sure the software is free for all its users. The\n"); printf_filtered ("software--to make sure the software is free for all its users. This\n");
printf_filtered ("General Public License applies to the Free Software Foundation's\n"); printf_filtered ("General Public License applies to most of the Free Software\n");
printf_filtered ("software and to any other program whose authors commit to using it.\n"); printf_filtered ("Foundation's software and to any other program whose authors commit to\n");
printf_filtered ("You can use it for your programs, too.\n"); printf_filtered ("using it. (Some other Free Software Foundation software is covered by\n");
printf_filtered ("the GNU Library General Public License instead.) You can apply it to\n");
printf_filtered ("your programs, too.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" When we speak of free software, we are referring to freedom, not\n"); printf_filtered (" When we speak of free software, we are referring to freedom, not\n");
printf_filtered ("price. Specifically, the General Public License is designed to make\n"); printf_filtered ("price. Our General Public Licenses are designed to make sure that you\n");
printf_filtered ("sure that you have the freedom to give away or sell copies of free\n"); printf_filtered ("have the freedom to distribute copies of free software (and charge for\n");
printf_filtered ("software, that you receive source code or can get it if you want it,\n"); printf_filtered ("this service if you wish), that you receive source code or can get it\n");
printf_filtered ("that you can change the software or use pieces of it in new free\n"); printf_filtered ("if you want it, that you can change the software or use pieces of it\n");
printf_filtered ("programs; and that you know you can do these things.\n"); printf_filtered ("in new free programs; and that you know you can do these things.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" To protect your rights, we need to make restrictions that forbid\n"); printf_filtered (" To protect your rights, we need to make restrictions that forbid\n");
printf_filtered ("anyone to deny you these rights or to ask you to surrender the rights.\n"); printf_filtered ("anyone to deny you these rights or to ask you to surrender the rights.\n");
printf_filtered ("These restrictions translate to certain responsibilities for you if you\n"); printf_filtered ("These restrictions translate to certain responsibilities for you if you\n");
printf_filtered ("distribute copies of the software, or if you modify it.\n"); printf_filtered ("distribute copies of the software, or if you modify it.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" For example, if you distribute copies of a such a program, whether\n"); printf_filtered (" For example, if you distribute copies of such a program, whether\n");
printf_filtered ("gratis or for a fee, you must give the recipients all the rights that\n"); printf_filtered ("gratis or for a fee, you must give the recipients all the rights that\n");
printf_filtered ("you have. You must make sure that they, too, receive or can get the\n"); printf_filtered ("you have. You must make sure that they, too, receive or can get the\n");
printf_filtered ("source code. And you must tell them their rights.\n"); printf_filtered ("source code. And you must show them these terms so they know their\n");
printf_filtered ("rights.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" We protect your rights with two steps: (1) copyright the software, and\n"); printf_filtered (" We protect your rights with two steps: (1) copyright the software, and\n");
printf_filtered ("(2) offer you this license which gives you legal permission to copy,\n"); printf_filtered ("(2) offer you this license which gives you legal permission to copy,\n");
@ -55,120 +67,207 @@ show_copying ()
printf_filtered ("that any problems introduced by others will not reflect on the original\n"); printf_filtered ("that any problems introduced by others will not reflect on the original\n");
printf_filtered ("authors' reputations.\n"); printf_filtered ("authors' reputations.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" Finally, any free program is threatened constantly by software\n");
printf_filtered ("patents. We wish to avoid the danger that redistributors of a free\n");
printf_filtered ("program will individually obtain patent licenses, in effect making the\n");
printf_filtered ("program proprietary. To prevent this, we have made it clear that any\n");
printf_filtered ("patent must be licensed for everyone's free use or not licensed at all.\n");
printf_filtered ("\n");
printf_filtered (" The precise terms and conditions for copying, distribution and\n"); printf_filtered (" The precise terms and conditions for copying, distribution and\n");
printf_filtered ("modification follow.\n"); printf_filtered ("modification follow.\n");
printf_filtered (" \n"); printf_filtered ("\n");
printf_filtered (" GNU GENERAL PUBLIC LICENSE\n"); printf_filtered (" GNU GENERAL PUBLIC LICENSE\n");
printf_filtered (" TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n"); printf_filtered (" TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" 0. This License Agreement applies to any program or other work which\n"); printf_filtered (" 0. This License applies to any program or other work which contains\n");
printf_filtered ("contains a notice placed by the copyright holder saying it may be\n"); printf_filtered ("a notice placed by the copyright holder saying it may be distributed\n");
printf_filtered ("distributed under the terms of this General Public License. The\n"); printf_filtered ("under the terms of this General Public License. The \"Program\", below,\n");
printf_filtered ("\"Program\", below, refers to any such program or work, and a \"work based\n"); printf_filtered ("refers to any such program or work, and a \"work based on the Program\"\n");
printf_filtered ("on the Program\" means either the Program or any work containing the\n"); printf_filtered ("means either the Program or any derivative work under copyright law:\n");
printf_filtered ("Program or a portion of it, either verbatim or with modifications. Each\n"); printf_filtered ("that is to say, a work containing the Program or a portion of it,\n");
printf_filtered ("licensee is addressed as \"you\".\n"); printf_filtered ("either verbatim or with modifications and/or translated into another\n");
printf_filtered ("language. (Hereinafter, translation is included without limitation in\n");
printf_filtered ("the term \"modification\".) Each licensee is addressed as \"you\".\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" 1. You may copy and distribute verbatim copies of the Program's source\n"); printf_filtered ("Activities other than copying, distribution and modification are not\n");
printf_filtered ("code as you receive it, in any medium, provided that you conspicuously and\n"); printf_filtered ("covered by this License; they are outside its scope. The act of\n");
printf_filtered ("appropriately publish on each copy an appropriate copyright notice and\n"); printf_filtered ("running the Program is not restricted, and the output from the Program\n");
printf_filtered ("disclaimer of warranty; keep intact all the notices that refer to this\n"); printf_filtered ("is covered only if its contents constitute a work based on the\n");
printf_filtered ("General Public License and to the absence of any warranty; and give any\n"); printf_filtered ("Program (independent of having been made by running the Program).\n");
printf_filtered ("other recipients of the Program a copy of this General Public License\n"); printf_filtered ("Whether that is true depends on what the Program does.\n");
printf_filtered ("along with the Program. You may charge a fee for the physical act of\n");
printf_filtered ("transferring a copy.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" 2. You may modify your copy or copies of the Program or any portion of\n"); printf_filtered (" 1. You may copy and distribute verbatim copies of the Program's\n");
printf_filtered ("it, and copy and distribute such modifications under the terms of Paragraph\n"); printf_filtered ("source code as you receive it, in any medium, provided that you\n");
printf_filtered ("1 above, provided that you also do the following:\n"); printf_filtered ("conspicuously and appropriately publish on each copy an appropriate\n");
printf_filtered ("copyright notice and disclaimer of warranty; keep intact all the\n");
printf_filtered ("notices that refer to this License and to the absence of any warranty;\n");
printf_filtered ("and give any other recipients of the Program a copy of this License\n");
printf_filtered ("along with the Program.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" a) cause the modified files to carry prominent notices stating that\n"); printf_filtered ("You may charge a fee for the physical act of transferring a copy, and\n");
printf_filtered (" you changed the files and the date of any change; and\n"); printf_filtered ("you may at your option offer warranty protection in exchange for a fee.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" b) cause the whole of any work that you distribute or publish, that\n"); printf_filtered (" 2. You may modify your copy or copies of the Program or any portion\n");
printf_filtered (" in whole or in part contains the Program or any part thereof, either\n"); printf_filtered ("of it, thus forming a work based on the Program, and copy and\n");
printf_filtered (" with or without modifications, to be licensed at no charge to all\n"); printf_filtered ("distribute such modifications or work under the terms of Section 1\n");
printf_filtered (" third parties under the terms of this General Public License (except\n"); printf_filtered ("above, provided that you also meet all of these conditions:\n");
printf_filtered (" that you may choose to grant warranty protection to some or all\n");
printf_filtered (" third parties, at your option).\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" c) If the modified program normally reads commands interactively when\n"); printf_filtered (" a) You must cause the modified files to carry prominent notices\n");
printf_filtered (" run, you must cause it, when started running for such interactive use\n"); printf_filtered (" stating that you changed the files and the date of any change.\n");
printf_filtered (" in the simplest and most usual way, to print or display an\n");
printf_filtered (" announcement including an appropriate copyright notice and a notice\n");
printf_filtered (" that there is no warranty (or else, saying that you provide a\n");
printf_filtered (" warranty) and that users may redistribute the program under these\n");
printf_filtered (" conditions, and telling the user how to view a copy of this General\n");
printf_filtered (" Public License.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" d) You may charge a fee for the physical act of transferring a\n"); printf_filtered (" b) You must cause any work that you distribute or publish, that in\n");
printf_filtered (" copy, and you may at your option offer warranty protection in\n"); printf_filtered (" whole or in part contains or is derived from the Program or any\n");
printf_filtered (" exchange for a fee.\n"); printf_filtered (" part thereof, to be licensed as a whole at no charge to all third\n");
printf_filtered (" parties under the terms of this License.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered ("Mere aggregation of another independent work with the Program (or its\n"); printf_filtered (" c) If the modified program normally reads commands interactively\n");
printf_filtered ("derivative) on a volume of a storage or distribution medium does not bring\n"); printf_filtered (" when run, you must cause it, when started running for such\n");
printf_filtered ("the other work under the scope of these terms.\n"); printf_filtered (" interactive use in the most ordinary way, to print or display an\n");
printf_filtered (" \n"); printf_filtered (" announcement including an appropriate copyright notice and a\n");
printf_filtered (" 3. You may copy and distribute the Program (or a portion or derivative of\n"); printf_filtered (" notice that there is no warranty (or else, saying that you provide\n");
printf_filtered ("it, under Paragraph 2) in object code or executable form under the terms of\n"); printf_filtered (" a warranty) and that users may redistribute the program under\n");
printf_filtered ("Paragraphs 1 and 2 above provided that you also do one of the following:\n"); printf_filtered (" these conditions, and telling the user how to view a copy of this\n");
printf_filtered (" License. (Exception: if the Program itself is interactive but\n");
printf_filtered (" does not normally print such an announcement, your work based on\n");
printf_filtered (" the Program is not required to print an announcement.)\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" a) accompany it with the complete corresponding machine-readable\n"); printf_filtered ("These requirements apply to the modified work as a whole. If\n");
printf_filtered (" source code, which must be distributed under the terms of\n"); printf_filtered ("identifiable sections of that work are not derived from the Program,\n");
printf_filtered (" Paragraphs 1 and 2 above; or,\n"); printf_filtered ("and can be reasonably considered independent and separate works in\n");
printf_filtered ("themselves, then this License, and its terms, do not apply to those\n");
printf_filtered ("sections when you distribute them as separate works. But when you\n");
printf_filtered ("distribute the same sections as part of a whole which is a work based\n");
printf_filtered ("on the Program, the distribution of the whole must be on the terms of\n");
printf_filtered ("this License, whose permissions for other licensees extend to the\n");
printf_filtered ("entire whole, and thus to each and every part regardless of who wrote it.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" b) accompany it with a written offer, valid for at least three\n"); printf_filtered ("Thus, it is not the intent of this section to claim rights or contest\n");
printf_filtered (" years, to give any third party free (except for a nominal charge\n"); printf_filtered ("your rights to work written entirely by you; rather, the intent is to\n");
printf_filtered (" for the cost of distribution) a complete machine-readable copy of the\n"); printf_filtered ("exercise the right to control the distribution of derivative or\n");
printf_filtered (" corresponding source code, to be distributed under the terms of\n"); printf_filtered ("collective works based on the Program.\n");
printf_filtered (" Paragraphs 1 and 2 above; or,\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" c) accompany it with the information you received as to where the\n"); printf_filtered ("In addition, mere aggregation of another work not based on the Program\n");
printf_filtered (" corresponding source code may be obtained. (This alternative is\n"); printf_filtered ("with the Program (or with a work based on the Program) on a volume of\n");
printf_filtered ("a storage or distribution medium does not bring the other work under\n");
printf_filtered ("the scope of this License.\n");
printf_filtered ("\n");
printf_filtered (" 3. You may copy and distribute the Program (or a work based on it,\n");
printf_filtered ("under Section 2) in object code or executable form under the terms of\n");
printf_filtered ("Sections 1 and 2 above provided that you also do one of the following:\n");
printf_filtered ("\n");
printf_filtered (" a) Accompany it with the complete corresponding machine-readable\n");
printf_filtered (" source code, which must be distributed under the terms of Sections\n");
printf_filtered (" 1 and 2 above on a medium customarily used for software interchange; or,\n");
printf_filtered ("\n");
printf_filtered (" b) Accompany it with a written offer, valid for at least three\n");
printf_filtered (" years, to give any third party, for a charge no more than your\n");
printf_filtered (" cost of physically performing source distribution, a complete\n");
printf_filtered (" machine-readable copy of the corresponding source code, to be\n");
printf_filtered (" distributed under the terms of Sections 1 and 2 above on a medium\n");
printf_filtered (" customarily used for software interchange; or,\n");
printf_filtered ("\n");
printf_filtered (" c) Accompany it with the information you received as to the offer\n");
printf_filtered (" to distribute corresponding source code. (This alternative is\n");
printf_filtered (" allowed only for noncommercial distribution and only if you\n"); printf_filtered (" allowed only for noncommercial distribution and only if you\n");
printf_filtered (" received the program in object code or executable form alone.)\n"); printf_filtered (" received the program in object code or executable form with such\n");
printf_filtered (" an offer, in accord with Subsection b above.)\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered ("Source code for a work means the preferred form of the work for making\n"); printf_filtered ("The source code for a work means the preferred form of the work for\n");
printf_filtered ("modifications to it. For an executable file, complete source code means\n"); printf_filtered ("making modifications to it. For an executable work, complete source\n");
printf_filtered ("all the source code for all modules it contains; but, as a special\n"); printf_filtered ("code means all the source code for all modules it contains, plus any\n");
printf_filtered ("exception, it need not include source code for modules which are standard\n"); printf_filtered ("associated interface definition files, plus the scripts used to\n");
printf_filtered ("libraries that accompany the operating system on which the executable\n"); printf_filtered ("control compilation and installation of the executable. However, as a\n");
printf_filtered ("file runs, or for standard header files or definitions files that\n"); printf_filtered ("special exception, the source code distributed need not include\n");
printf_filtered ("accompany that operating system.\n"); printf_filtered ("anything that is normally distributed (in either source or binary\n");
printf_filtered ("form) with the major components (compiler, kernel, and so on) of the\n");
printf_filtered ("operating system on which the executable runs, unless that component\n");
printf_filtered ("itself accompanies the executable.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" 4. You may not copy, modify, sublicense, distribute or transfer the\n"); printf_filtered ("If distribution of executable or object code is made by offering\n");
printf_filtered ("Program except as expressly provided under this General Public License.\n"); printf_filtered ("access to copy from a designated place, then offering equivalent\n");
printf_filtered ("Any attempt otherwise to copy, modify, sublicense, distribute or transfer\n"); printf_filtered ("access to copy the source code from the same place counts as\n");
printf_filtered ("the Program is void, and will automatically terminate your rights to use\n"); printf_filtered ("distribution of the source code, even though third parties are not\n");
printf_filtered ("the Program under this License. However, parties who have received\n"); printf_filtered ("compelled to copy the source along with the object code.\n");
printf_filtered ("copies, or rights to use copies, from you under this General Public\n");
printf_filtered ("License will not have their licenses terminated so long as such parties\n");
printf_filtered ("remain in full compliance.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" 5. By copying, distributing or modifying the Program (or any work based\n"); printf_filtered (" 4. You may not copy, modify, sublicense, or distribute the Program\n");
printf_filtered ("on the Program) you indicate your acceptance of this license to do so,\n"); printf_filtered ("except as expressly provided under this License. Any attempt\n");
printf_filtered ("and all its terms and conditions.\n"); printf_filtered ("otherwise to copy, modify, sublicense or distribute the Program is\n");
printf_filtered ("void, and will automatically terminate your rights under this License.\n");
printf_filtered ("However, parties who have received copies, or rights, from you under\n");
printf_filtered ("this License will not have their licenses terminated so long as such\n");
printf_filtered ("parties remain in full compliance.\n");
printf_filtered ("\n");
printf_filtered (" 5. You are not required to accept this License, since you have not\n");
printf_filtered ("signed it. However, nothing else grants you permission to modify or\n");
printf_filtered ("distribute the Program or its derivative works. These actions are\n");
printf_filtered ("prohibited by law if you do not accept this License. Therefore, by\n");
printf_filtered ("modifying or distributing the Program (or any work based on the\n");
printf_filtered ("Program), you indicate your acceptance of this License to do so, and\n");
printf_filtered ("all its terms and conditions for copying, distributing or modifying\n");
printf_filtered ("the Program or works based on it.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" 6. Each time you redistribute the Program (or any work based on the\n"); printf_filtered (" 6. Each time you redistribute the Program (or any work based on the\n");
printf_filtered ("Program), the recipient automatically receives a license from the original\n"); printf_filtered ("Program), the recipient automatically receives a license from the\n");
printf_filtered ("licensor to copy, distribute or modify the Program subject to these\n"); printf_filtered ("original licensor to copy, distribute or modify the Program subject to\n");
printf_filtered ("terms and conditions. You may not impose any further restrictions on the\n"); printf_filtered ("these terms and conditions. You may not impose any further\n");
printf_filtered ("recipients' exercise of the rights granted herein.\n"); printf_filtered ("restrictions on the recipients' exercise of the rights granted herein.\n");
printf_filtered (" \n"); printf_filtered ("You are not responsible for enforcing compliance by third parties to\n");
printf_filtered (" 7. The Free Software Foundation may publish revised and/or new versions\n"); printf_filtered ("this License.\n");
printf_filtered ("\n");
printf_filtered (" 7. If, as a consequence of a court judgment or allegation of patent\n");
printf_filtered ("infringement or for any other reason (not limited to patent issues),\n");
printf_filtered ("conditions are imposed on you (whether by court order, agreement or\n");
printf_filtered ("otherwise) that contradict the conditions of this License, they do not\n");
printf_filtered ("excuse you from the conditions of this License. If you cannot\n");
printf_filtered ("distribute so as to satisfy simultaneously your obligations under this\n");
printf_filtered ("License and any other pertinent obligations, then as a consequence you\n");
printf_filtered ("may not distribute the Program at all. For example, if a patent\n");
printf_filtered ("license would not permit royalty-free redistribution of the Program by\n");
printf_filtered ("all those who receive copies directly or indirectly through you, then\n");
printf_filtered ("the only way you could satisfy both it and this License would be to\n");
printf_filtered ("refrain entirely from distribution of the Program.\n");
printf_filtered ("\n");
printf_filtered ("If any portion of this section is held invalid or unenforceable under\n");
printf_filtered ("any particular circumstance, the balance of the section is intended to\n");
printf_filtered ("apply and the section as a whole is intended to apply in other\n");
printf_filtered ("circumstances.\n");
printf_filtered ("\n");
printf_filtered ("It is not the purpose of this section to induce you to infringe any\n");
printf_filtered ("patents or other property right claims or to contest validity of any\n");
printf_filtered ("such claims; this section has the sole purpose of protecting the\n");
printf_filtered ("integrity of the free software distribution system, which is\n");
printf_filtered ("implemented by public license practices. Many people have made\n");
printf_filtered ("generous contributions to the wide range of software distributed\n");
printf_filtered ("through that system in reliance on consistent application of that\n");
printf_filtered ("system; it is up to the author/donor to decide if he or she is willing\n");
printf_filtered ("to distribute software through any other system and a licensee cannot\n");
printf_filtered ("impose that choice.\n");
printf_filtered ("\n");
printf_filtered ("This section is intended to make thoroughly clear what is believed to\n");
printf_filtered ("be a consequence of the rest of this License.\n");
printf_filtered ("\n");
printf_filtered (" 8. If the distribution and/or use of the Program is restricted in\n");
printf_filtered ("certain countries either by patents or by copyrighted interfaces, the\n");
printf_filtered ("original copyright holder who places the Program under this License\n");
printf_filtered ("may add an explicit geographical distribution limitation excluding\n");
printf_filtered ("those countries, so that distribution is permitted only in or among\n");
printf_filtered ("countries not thus excluded. In such case, this License incorporates\n");
printf_filtered ("the limitation as if written in the body of this License.\n");
printf_filtered ("\n");
printf_filtered (" 9. The Free Software Foundation may publish revised and/or new versions\n");
printf_filtered ("of the General Public License from time to time. Such new versions will\n"); printf_filtered ("of the General Public License from time to time. Such new versions will\n");
printf_filtered ("be similar in spirit to the present version, but may differ in detail to\n"); printf_filtered ("be similar in spirit to the present version, but may differ in detail to\n");
printf_filtered ("address new problems or concerns.\n"); printf_filtered ("address new problems or concerns.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered ("Each version is given a distinguishing version number. If the Program\n"); printf_filtered ("Each version is given a distinguishing version number. If the Program\n");
printf_filtered ("specifies a version number of the license which applies to it and \"any\n"); printf_filtered ("specifies a version number of this License which applies to it and \"any\n");
printf_filtered ("later version\", you have the option of following the terms and conditions\n"); printf_filtered ("later version\", you have the option of following the terms and conditions\n");
printf_filtered ("either of that version or of any later version published by the Free\n"); printf_filtered ("either of that version or of any later version published by the Free\n");
printf_filtered ("Software Foundation. If the Program does not specify a version number of\n"); printf_filtered ("Software Foundation. If the Program does not specify a version number of\n");
printf_filtered ("the license, you may choose any version ever published by the Free Software\n"); printf_filtered ("this License, you may choose any version ever published by the Free Software\n");
printf_filtered ("Foundation.\n"); printf_filtered ("Foundation.\n");
printf_filtered ("\n"); printf_filtered ("\n");
printf_filtered (" 8. If you wish to incorporate parts of the Program into other free\n"); printf_filtered (" 10. If you wish to incorporate parts of the Program into other free\n");
printf_filtered ("programs whose distribution conditions are different, write to the author\n"); printf_filtered ("programs whose distribution conditions are different, write to the author\n");
printf_filtered ("to ask for permission. For software which is copyrighted by the Free\n"); printf_filtered ("to ask for permission. For software which is copyrighted by the Free\n");
printf_filtered ("Software Foundation, write to the Free Software Foundation; we sometimes\n"); printf_filtered ("Software Foundation, write to the Free Software Foundation; we sometimes\n");
@ -179,42 +278,59 @@ show_copying ()
immediate_quit--; immediate_quit--;
} }
static void
show_warranty ()
{
immediate_quit++;
printf_filtered (" NO WARRANTY\n");
printf_filtered ("\n");
printf_filtered (" 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\n");
printf_filtered ("FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\n");
printf_filtered ("OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\n");
printf_filtered ("PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\n");
printf_filtered ("OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n");
printf_filtered ("MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\n");
printf_filtered ("TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\n");
printf_filtered ("PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\n");
printf_filtered ("REPAIR OR CORRECTION.\n");
printf_filtered ("\n");
printf_filtered (" 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\n");
printf_filtered ("WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\n");
printf_filtered ("REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\n");
printf_filtered ("INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\n");
printf_filtered ("OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\n");
printf_filtered ("TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\n");
printf_filtered ("YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\n");
printf_filtered ("PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\n");
printf_filtered ("POSSIBILITY OF SUCH DAMAGES.\n");
printf_filtered ("\n");
immediate_quit--;
}
void void
_initialize_copying () _initialize_copying ()
{ {
add_cmd ("copying", no_class, show_copying, add_cmd ("copying", no_class, show_copying_command,
"Conditions for redistributing copies of GDB.", "Conditions for redistributing copies of GDB.",
&showlist); &showlist);
add_cmd ("warranty", no_class, show_warranty, add_cmd ("warranty", no_class, show_warranty_command,
"Various kinds of warranty you do not have.", "Various kinds of warranty you do not have.",
&showlist); &showlist);
/* For old-timers, allow "info copying", etc. */
add_info ("copying", show_copying_command,
"Conditions for redistributing copies of GDB.");
add_info ("warranty", show_warranty_command,
"Various kinds of warranty you do not have.");
}
static void
show_warranty_command (ignore, from_tty)
char *ignore;
int from_tty;
{
immediate_quit++;
printf_filtered ("gdb is free software, covered by the GNU General Public\n");
printf_filtered ("License, and you are welcome to change it and/or distribute\n");
printf_filtered ("copies of it under certain conditions. This version of gdb\n");
printf_filtered ("is supported for customers of Cygnus Solutions.\n");
printf_filtered ("\n");
printf_filtered ("For non customers, gdb has NO WARRANTY.\n");
printf_filtered ("\n");
printf_filtered ("Because this software is licensed free of charge, there are no\n");
printf_filtered ("warranties for it, to the extent permitted by applicable law.\n");
printf_filtered ("Except when otherwise stated in writing, the copyright holders\n");
printf_filtered ("and/or other parties provide the software \"as is\" without\n");
printf_filtered ("warranty of any kind, either expressed or implied, including,\n");
printf_filtered ("but not limited to, the implied warranties of merchantability\n");
printf_filtered ("and fitness for a particular purpose. The entire risk as\n");
printf_filtered ("to the quality and performance of the software is with you.\n");
printf_filtered ("Should the software provide defective, you assume the cost of\n");
printf_filtered ("all necessary servicing, repair or correction.\n");
printf_filtered ("\n");
printf_filtered ("In no event, unless required by applicable law or agreed to\n");
printf_filtered ("in writing, will any copyright holder, or any other party who\n");
printf_filtered ("may modify and/or redistribute the program as permitted above,\n");
printf_filtered ("be liable to you for damages, including any general, special,\n");
printf_filtered ("incidental or consequential damages arising out of the use\n");
printf_filtered ("or inability to use the program (including but not limited\n");
printf_filtered ("to loss of data or data being rendered inaccurate or losses\n");
printf_filtered ("sustained by your or third parties or a failure of the program\n");
printf_filtered ("to operate with any other programs), even if such holder or\n");
printf_filtered ("other party has been advised of the possibility of such damages.\n");
printf_filtered ("\n");
immediate_quit--;
} }

File diff suppressed because it is too large Load Diff

View File

@ -2813,8 +2813,8 @@ print_gdb_version (stream)
fprintf_filtered (stream, "\ fprintf_filtered (stream, "\
GDB is free software, covered by the GNU General Public License, and you are\n\ GDB is free software, covered by the GNU General Public License, and you are\n\
welcome to change it and/or distribute copies of it under certain conditions.\n\ welcome to change it and/or distribute copies of it under certain conditions.\n\
Type \"show copying\" to see the conditions.\n\ Type \"show copying\" to see the conditions. This version of GDB is supported This version of GDB is supported\n\
There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"); for customers of Cygnus Solutions. Type \"show warranty\" for details.\n");
/* After the required info we print the configuration information. */ /* After the required info we print the configuration information. */
@ -2851,9 +2851,41 @@ print_prompt ()
printf_unfiltered ("%s", prompt); printf_unfiltered ("%s", prompt);
gdb_flush (gdb_stdout); gdb_flush (gdb_stdout);
} }
/* This replaces the above for the frontends: it returns a pointer
to the prompt. */
char *
get_prompt ()
{
return prompt;
}
/* If necessary, make the user confirm that we should quit. Return
non-zero if we should quit, zero if we shouldn't. */
int
quit_confirm ()
{
if (inferior_pid != 0 && target_has_execution)
{
char *s;
if (attach_flag)
s = "The program is running. Quit anyway (and detach it)? ";
else
s = "The program is running. Exit anyway? ";
if (! query (s))
return 0;
}
return 1;
}
/* Quit without asking for confirmation. */
void void
quit_command (args, from_tty) quit_force (args, from_tty)
char *args; char *args;
int from_tty; int from_tty;
{ {
@ -2871,20 +2903,11 @@ quit_command (args, from_tty)
if (inferior_pid != 0 && target_has_execution) if (inferior_pid != 0 && target_has_execution)
{ {
if (attach_flag) if (attach_flag)
{ target_detach (args, from_tty);
if (query ("The program is running. Quit anyway (and detach it)? "))
target_detach (args, from_tty);
else
error ("Not confirmed.");
}
else else
{ target_kill ();
if (query ("The program is running. Quit anyway (and kill it)? "))
target_kill ();
else
error ("Not confirmed.");
}
} }
/* UDI wants this, to kill the TIP. */ /* UDI wants this, to kill the TIP. */
target_close (1); target_close (1);
@ -2897,6 +2920,18 @@ quit_command (args, from_tty)
exit (exit_code); exit (exit_code);
} }
/* Handle the quit command. */
void
quit_command (args, from_tty)
char *args;
int from_tty;
{
if (! quit_confirm ())
error ("Not confirmed.");
quit_force (args, from_tty);
}
/* Returns whether GDB is running on a terminal and whether the user /* Returns whether GDB is running on a terminal and whether the user
desires that questions be asked of them on that terminal. */ desires that questions be asked of them on that terminal. */

View File

@ -39,7 +39,10 @@ extern void cd_command PARAMS ((char *, int));
extern void read_command_file PARAMS ((FILE *)); extern void read_command_file PARAMS ((FILE *));
extern void init_history PARAMS ((void)); extern void init_history PARAMS ((void));
extern void command_loop PARAMS ((void)); extern void command_loop PARAMS ((void));
extern int quit_confirm PARAMS ((void));
extern void quit_force PARAMS ((char *, int));
extern void quit_command PARAMS ((char *, int)); extern void quit_command PARAMS ((char *, int));
extern char *get_prompt PARAMS((void));
/* From random places. */ /* From random places. */
extern int mapped_symbol_files; extern int mapped_symbol_files;

View File

@ -292,10 +292,16 @@ set_raw_tracepoint (sal)
t->source_file = NULL; t->source_file = NULL;
else else
{ {
char *p;
t->source_file = (char *) xmalloc (strlen (sal.symtab->filename) + t->source_file = (char *) xmalloc (strlen (sal.symtab->filename) +
strlen (sal.symtab->dirname) + 1); strlen (sal.symtab->dirname) + 2);
strcpy (t->source_file, sal.symtab->dirname); strcpy (t->source_file, sal.symtab->dirname);
p = t->source_file;
while (*p++) ;
if (*p != '/') /* Will this work on Windows? */
strcat (t->source_file, "/");
strcat (t->source_file, sal.symtab->filename); strcat (t->source_file, sal.symtab->filename);
} }