aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
AgeCommit message (Collapse)AuthorFilesLines
2002-09-262002-09-26 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-11/+5
From Grace Sainsbury <graces@redhat.com>: * Makefile.in (gdbtk-main.o): New target. (gdb.o): New target. (main_h): Define. (main.o): Update dependencies. (gdb$(EXEEXT)): Add gdb.o. (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c. (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set. (SUBDIR_GDBTK_CLEAN): Set. (install-gdbtk): Install the insight binary. (uninstall-gdbtk): New target. (all-gdbtk, clean-gdbtk): New rule. * top.c (use_windows): Default to zero. * main.c: Include "main.h". (main): Delete. (struct captured_main_args): Delete. (gdb_main): New function. * main.h: New file. * gdb.c: New File. 2002-09-26 Andrew Cagney <ac131313@redhat.com> From Grace Sainsbury <graces@redhat.com>: * generic/gdbtk-main.c: New file.
2002-09-25Fix from Paul Breed:Jim Blandy1-0/+1
* main.c (captured_main): Add a `break' after the case for 'b'.
2002-06-25 * main.c: Marked all strings with _().Tom Tromey1-35/+35
2002-06-21 * gdb_locale.h: New file.Tom Tromey1-0/+9
* Makefile.in (GDB_CFLAGS): Define LOCALEDIR. (defs_h): Added gdb_locale.h. * configure, config.in: Rebuilt. * configure.in (PACKAGE): Define. * defs.h: Include gdb_locale.h. * main.c (captured_main): Call setlocale, bindtextdomain,
2002-01-17Remove else clause to #if UI_OUT.Andrew Cagney1-6/+0
2002-01-102002-01-10 Michael Snyder <msnyder@redhat.com>Michael Snyder1-7/+23
* main.c (captured_main): Add new command line option "--pid". If the second command line argument (following the symbol-file) begins with a digit, try to attach to it before trying to open it as a corefile. (print_gdb_help): Document the "--pid" argument.
2001-11-22 Fix for PR gdb/209, PR gdb/156:Tom Tromey1-21/+48
* gdbarch.c, gdbarch.h: Rebuilt. * gdbarch.sh: Added `construct_inferior_arguments'. * cli/cli-decode.h (cmd_list_element): Added pre_show_hook. Typo fix. * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook. * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command. (inferior_argc, inferior_argv): New globals. (notice_args_set): New function. (set_inferior_args): Clear inferior_argc and inferior_argv. (set_inferior_args_vector): New function. (get_inferior_args): Handle inferior argument vector. (run_command): Use get_inferior_args(). (notice_args_read): New function. (_initialize_infcmd): Don't call set_inferior_args. * command.h: Typo fix. (cmd_list_element): Added pre_show_hook. * main.c (captured_main): Added --args option. (print_gdb_help): Document --args. * inferior.h (construct_inferior_arguments): Declare. (set_inferior_args_vector): Likewise. * fork-child.c (construct_inferior_arguments): New function.
2001-10-04 * main.c (enable_external_editor): Don't declare.Tom Tromey1-16/+2
(captured_main): Don't set enable_external_editor.
2001-07-14 * utils.c (query): Remove tui hacks; tui must use the query_hook.Stephane Carrez1-19/+0
* top.c (command_loop): Remove tui insert_mode hacks; don't call tuiCleanUp because this must be made with atexit by tui. * symfile.c (symbol_file_command): Remove call to TUIDO * stack.c (show_and_print_stack_frame_stub): Remove tui check; not necessary when using the selected frame hooks. (print_stack_frame_stub): Likewise. (print_frame_info_base): Likewise. (print_frame_info): Likewise. (up_silently_command): Likewise. (down_silently_command): Likewise. (show_stack_frame): Likewise for TUIDO. (select_frame): Likewise. (select_and_print_frame): Likewise. (stack_publish_stopped_with_no_frame): Remove. (select_and_maybe_print_frame): Remove. * main.c (captured_main): Remove tui_fileopen and tuiInit; tui must use the initialize ui hook. * infrun.c (normal_stop): Remove call to TUIDO; tui must use the selected frame hooks. * event-top.c (command_handler): Remove tui insert_mode hack. * defs.h: Remove TUIDO; Only include tui.h. * breakpoint.c (mention): Remove calls to TUIDO. (delete_breakpoint): Remove tui hacks; tui must install the breakpoint hooks.
2001-06-10* gnu-regex.c: Eliminate obsolete check for _MSC_VER.Christopher Faylor1-18/+0
* utils.c (notice_quit): Remove dummy function only used for _MSC_VER. * values.c (unpack_double): Remove obsolete check for _MSC_VER. * defs.h: Ditto. * m32r-rom.c: Ditto. * p-exp.y: Ditto. * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for faster compilation. (get_ds_base): Remove _MSC_VER version of this function. * nindy-share/ttyflush.c: Ditto. X * rdi-share/host.h: Ditto. X * ser-go32.c (dos_readchar): Remove call to obsolete function. * remote-sim.c (gdb_os_poll_quit): Ditto. * remote-e7000.c (expect): Remove obsolete #if 0'ed code. * main.c (captured_main): Eliminate special Cygwin checks. * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
2001-05-07Zap some bogus #ifndef _WIN32 - hangover from WinGDBAndrew Cagney1-8/+0
2001-04-05* main.c: Remove windows.h use.Christopher Faylor1-3/+2
(gdbtk_test): Use PATH_MAX for home var calculation. * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as Win32 in test. * ser-tcp.c: Use modern __CYGWIN__ conditional. * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test. (openp): Ditto. * symfile.c (symfile_bfd_open): Ditto. * gdbtk/generic/gdbtk.c: Ditto.
2001-04-052001-04-04 Martin M. Hunt <hunt@redhat.com>Martin Hunt1-5/+3
* main.c (captured_main): For GDBtk, don't use tui_fileopen(). Handle all stream setup in gdbtk_init
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-01-272001-01-26 Fernando Nasser <fnasser@redhat.com>Fernando Nasser1-5/+7
Fix double parsing of filenames passed as command line arguments to GDB (causes weird handling of escape characters). Also, remove dependencies on the CLI from libgdb. * call-cmds.h: Remove declaration of exec_file_command(). * gdbcore.h: Remove declaration of exec_file_command(). Add declarations for exec_open() and exec_file_clear(). * symfile.h: Add declarations for symbol_file_add_main() and symbol_file_clear(). * exec.c (exec_open): New function. Implements to_open for exec targets. (exec_file_clear): New function. Makes GDB forget about a previously specified executable file. (exec_file_attach): Move parsing of arguments from here ... (exec_file_command): ... to here. (init_exec_ops): Use exec_open(), not exec_file_command() to implement to_open for exec targets. * symfile.c (symbol_file_add_main): New function. Call symbol_file_add() with default values. Used when the file name has already been parsed. (symbol_file_clear): New function. Makes GDB forget about previously read symbols. (symbol_file_command): Call the above function instead of inline code. * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated "call-cmds.h". (captured_main): Call exec_file_attach() and symbol_file_add_main() instead of exec_file_command() and symbol_file_command(). (captured_main): Add comment. * corefile.c: Include "symfile.h". (core_file_command): Call symbol_file_add_main() instead of symbol_file_command(). (reopen_exec_file): Call exec_open() instead of exec_file_command(). * infcmd.c: Include "symfile.h". (attach_command): Call symbol_file_add_main() instead of symbol_file_command(). * infrun.c: Remove comment about the inclusion of "symfile.h", not any longer appropriate. (follow_exec): Call symbol_file_add_main() instead of symbol_file_command(). * remote-es.c: Include "symfile.h". (es1800_load): Call symbol_file_add_main() instead of symbol_file_command(). * remote-vx.c: Remove comment about the inclusion of "symfile.h", not any longer appropriate. (vx-wait): Call symbol_file_add_main() instead of symbol_file_command(). * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main() instead of symbol_file_command(). * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and symbol_file_add_main() instead of exec_file_command() and symbol_file_command(). * Makefile.in: Update dependencies.
2000-12-15Replace free() with xfree().Kevin Buettner1-2/+2
2000-10-23Corrected spelling errors in commentsDavid Anderson1-1/+1
2000-05-28PARAMS removal.Kevin Buettner1-1/+1
2000-02-23Add mi/ and testsuite/gdb.mi/ subdirectories.Andrew Cagney1-0/+12
Add --enable-gdbmi option to configury. Add mi rules to Makefile.in Add mi conditional output to event-top.c infrun.c main.c top.c. Add -i=mi option.
2000-02-07import insight-2000-02-04 snapshot (2nd try)Jason Molenda1-0/+39
2000-02-03import gdb-2000-02-02 snapshotJason Molenda1-0/+8
2000-02-02import gdb-2000-02-01 snapshotJason Molenda1-10/+8
2000-02-01import gdb-2000-01-31 snapshotJason Molenda1-7/+14
1999-12-14import gdb-1999-12-13 snapshotJason Molenda1-1/+1
1999-11-09import gdb-1999-11-08 snapshotJason Molenda1-46/+96
1999-10-12import gdb-1999-10-11 snapshotJason Molenda1-1/+1
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-0/+7
1999-09-28import gdb-1999-09-28 snapshotJason Molenda1-3/+3
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-2/+0
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-84/+0
1999-08-09import gdb-1999-08-09 snapshotJason Molenda1-1/+3
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-153/+167
1999-07-05import gdb-1999-07-05 snapshotJason Molenda1-0/+3
1999-06-28import gdb-1999-06-28 snapshotJason Molenda1-6/+2
1999-06-21import gdb-1999-06-21 snapshotJason Molenda1-1/+1
1999-06-14import gdb-1999-06-14 snapshotJason Molenda1-11/+15
1999-06-01import gdb-1999-06-01 snapshotJason Molenda1-24/+23
1999-05-25import gdb-1999-05-25 snapshotJason Molenda1-13/+2
1999-05-11import gdb-1999-05-10Stan Shebs1-14/+18
1999-05-05import gdb-19990504 snapshotStan Shebs1-0/+5
1999-04-26import gdb-19990422 snapshotStan Shebs1-1/+3
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+780
1999-04-16Initial creation of sourceware repositoryStan Shebs1-787/+0
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-6/+106
1998-12-28hp merge changes -- too numerous to mention here; see ChangeLog andDavid Taylor1-2/+8
ChangeLog-gdbtk for details.
1998-11-13Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-13/+10
Changes to account for name change from cygwin32 to cygwin and clean up Win32-related ifdefs. * configure.tgt: check for cygwin* instead of cygwin32. New cygwin gdb_target variable loses the "32". * configure.host: check for cygwin* instead of cygwin32. New cygwin gdb_host variable loses the "32". * configure.in: test __CYGWIN__ instead of __CYGWIN32__, rename gdb_cv_os_cygwin32 variable to drop the "32". Call AM_EXEEXT instead of AC_EXEEXT since that isn't in a released autoconf yet. * configure: regenerate. * main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h where cygwin path conv protos live, instead of adding a proto here for them here. * {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__ instead of __CYGWIN32__. * source.c: thoughout, check _WIN32 instead of WIN32. * config/i386/cygwin32.mh: delete. * config/i386/cygwin.mh: new file, was cygwin32.mh. * config/i386/cygwin32.mt: delete. * config/i386/cygwin.mt: new file, was cygwin32.mt. * config/i386/tm-cygwin32.h: delete. * config/i386/tm-cygwin.h: new file, was tm-cygwin32.h. * config/i386/xm-cygwin32.h: delete. * config/i386/xm-cygwin.h: new file, was xm-cygwin32.h. * config/i386/xm-windows.h: #include xm-cygwin.h now. * config/powerpc/cygwin32.mh: delete. * config/powerpc/cygwin.mh: new file, was cygwin32.mh. * config/powerpc/cygwin32.mt: delete. * config/powerpc/cygwin.mt: new file, was cygwin32.mt. * config/powerpc/tm-cygwin32.h: delete. * config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h. * config/powerpc/xm-cygwin32.h: delete. * config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h. * rdi-share/aclocal.m4: regenerate with aclocal. * rdi-share/configure: regenerate with autoconf. * rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c, * serpardr.c, unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
1998-06-27 * symtab.h (enum namespace): Add new namespaces FUNCTIONS_NAMESPACE,Keith Seitz1-0/+23
TYPES_NAMESPACE, METHODS_NAMESPACE, and VARIABLES_NAMESPACE used by new search_symbols. Add prototype for search_symbols and free_search_symbols. * symtab.c (list_symbols): Rewrite to use new search_symbols. (file_matches): New helper function for search_symbols. (free_search_symbols): New function which frees data returned from search_symbols. (print_symbol_info): New helper function which prints info about a matched symbol to stdout. Extracted from old list_symbols. (print_msymbol_info): New helper function which prints info about a matched msymbol to stdout. Extracted from old list_symbols. (symtab_symbol_info): Extracted from old list_symbols. (variables_info): Use symtab_symbol_info. (functions_info): Use symtab_symbol_info. (types_info): Use symtab_symbol_info. (rbreak_command): Rewrite to use new search_symbols. * gdbtk.c: Change all references to static global "interp" to "gdbtk_interp" and export this global. (gdbtk_init): If gdbtk_source_filename is not NULL, source this file into the interpreter when it goes idle. Add new command "gdb_search". (gdb_search): New function which searches the symbol table. (gdbtk_test): New function called by main when the --tclcommand option is used. * main.c (main): Add a new option "--tclcommand" which is used by the testsuite to source a file into the interpreter when it goes idle.
1998-05-29 * main.c (main): Check for NULL from getenv on CYGWIN32.Keith Seitz1-67/+92
* gdbtk.c (_initialize_gdbtk): Get rid of the console. Patch from Chris Faylor (cgf@cygnus.com). * configure.in: Link cygwin32 with subsystem console. * configure: Regenerated
1996-08-08 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.cStu Grossman1-11/+3
mdebugread.c os9kread.c source.c top.c utils.c: Don't include param.h or sys/file.h (or unistd.h in some cases). * defs.h exec.c inflow.c remote-array.c remote-e7000.c sparcl-tdep.c terminal.h utils.c: Replace all occurances of __WIN32__, WINGDB, WIN32, etc... with _WIN32. * main.c: Remove #ifndef WINGDB around option processing. Fix bug with passing argc==0 and argv==NULL to getopt. * (main) Remove calls to access() before source_command. Let soure_command handle access errors. * maint.c (maintenance_dump_me): #ifdef out for _WIN32. * symtab.c (operator_chars): Make this global for wingdb. * top.c (disconnect): #ifdef out for _WIN32. * (source_command): If got an error and from_tty, then call print error, else just return quietly. * utils.c (fatal_dump_core): Can't kill ourselves under windows. Just exit. * (pollquit notice_quit): #ifdef out stuff that doesn't exist under windows.
1996-06-28 * main.c (main): Add option "l" for setting remote_timeout.Dawn Perchik1-0/+19