summaryrefslogtreecommitdiff
path: root/gdb/main.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-09-26 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2002-09-261-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.
* Fix from Paul Breed:Jim Blandy2002-09-251-0/+1
| | | | * main.c (captured_main): Add a `break' after the case for 'b'.
* * main.c: Marked all strings with _().Tom Tromey2002-06-251-35/+35
|
* * gdb_locale.h: New file.Tom Tromey2002-06-211-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,
* Remove else clause to #if UI_OUT.Andrew Cagney2002-01-171-6/+0
|
* 2002-01-10 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-101-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.
* Fix for PR gdb/209, PR gdb/156:Tom Tromey2001-11-221-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.
* * main.c (enable_external_editor): Don't declare.Tom Tromey2001-10-041-16/+2
| | | | (captured_main): Don't set enable_external_editor.
* * utils.c (query): Remove tui hacks; tui must use the query_hook.Stephane Carrez2001-07-141-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.
* * gnu-regex.c: Eliminate obsolete check for _MSC_VER.Christopher Faylor2001-06-101-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.
* Zap some bogus #ifndef _WIN32 - hangover from WinGDBAndrew Cagney2001-05-071-8/+0
|
* * main.c: Remove windows.h use.Christopher Faylor2001-04-051-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-04 Martin M. Hunt <hunt@redhat.com>Martin Hunt2001-04-051-5/+3
| | | | | * main.c (captured_main): For GDBtk, don't use tui_fileopen(). Handle all stream setup in gdbtk_init
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+2
|
* 2001-01-26 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-01-271-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.
* Replace free() with xfree().Kevin Buettner2000-12-151-2/+2
|
* Corrected spelling errors in commentsDavid Anderson2000-10-231-1/+1
|
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-1/+1
|
* Add mi/ and testsuite/gdb.mi/ subdirectories.Andrew Cagney2000-02-231-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.
* import insight-2000-02-04 snapshot (2nd try)Jason Molenda2000-02-071-0/+39
|
* import gdb-2000-02-02 snapshotJason Molenda2000-02-031-0/+8
|
* import gdb-2000-02-01 snapshotJason Molenda2000-02-021-10/+8
|
* import gdb-2000-01-31 snapshotJason Molenda2000-02-011-7/+14
|
* import gdb-1999-12-13 snapshotJason Molenda1999-12-141-1/+1
|
* import gdb-1999-11-08 snapshotJason Molenda1999-11-091-46/+96
|
* import gdb-1999-10-11 snapshotJason Molenda1999-10-121-1/+1
|
* import gdb-1999-10-04 snapshotJason Molenda1999-10-051-0/+7
|
* import gdb-1999-09-28 snapshotJason Molenda1999-09-281-3/+3
|
* import gdb-1999-09-08 snapshotStan Shebs1999-09-091-2/+0
|
* import gdb-1999-08-30 snapshotJason Molenda1999-08-311-84/+0
|
* import gdb-1999-08-09 snapshotJason Molenda1999-08-091-1/+3
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-153/+167
|
* import gdb-1999-07-05 snapshotJason Molenda1999-07-051-0/+3
|
* import gdb-1999-06-28 snapshotJason Molenda1999-06-281-6/+2
|
* import gdb-1999-06-21 snapshotJason Molenda1999-06-211-1/+1
|
* import gdb-1999-06-14 snapshotJason Molenda1999-06-141-11/+15
|
* import gdb-1999-06-01 snapshotJason Molenda1999-06-011-24/+23
|
* import gdb-1999-05-25 snapshotJason Molenda1999-05-251-13/+2
|
* import gdb-1999-05-10Stan Shebs1999-05-111-14/+18
|
* import gdb-19990504 snapshotStan Shebs1999-05-051-0/+5
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-1/+3
|
* Initial revisionStan Shebs1999-04-161-0/+780