X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgnu-nat.c;h=cf42af43673a5b39825e558f9a687caf9dce114b;hb=d9fa87f4f6e732f5feb41f2fa7dc6faddb1fb627;hp=9229f72a0960ac2055932baa626462a7922048e5;hpb=268a13a5a3f7c6b9b6ffc5ac2d1b24eb41f3fbdc;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 9229f72a09..cf42af4367 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -93,7 +93,7 @@ int proc_wait_pid = 0; /* The number of wait requests we've sent, and expect replies from. */ int proc_waits_pending = 0; -int gnu_debug_flag = 0; +bool gnu_debug_flag = false; /* Forward decls */ @@ -1731,7 +1731,7 @@ S_exception_raise_request (mach_port_t port, mach_port_t reply_port, } } else - /* A supppressed exception, which ignore. */ + /* A suppressed exception, which ignore. */ { inf->wait.suppress = 1; mach_port_deallocate (mach_task_self (), reply_port); @@ -2195,7 +2195,6 @@ void gnu_nat_target::attach (const char *args, int from_tty) { int pid; - char *exec_file; struct inf *inf = cur_inf (); struct inferior *inferior; @@ -2206,7 +2205,7 @@ gnu_nat_target::attach (const char *args, int from_tty) if (from_tty) { - exec_file = (char *) get_exec_file (0); + const char *exec_file = get_exec_file (0); if (exec_file) printf_unfiltered ("Attaching to program `%s', pid %d\n", @@ -2260,7 +2259,7 @@ gnu_nat_target::detach (inferior *inf, int from_tty) if (from_tty) { - char *exec_file = get_exec_file (0); + const char *exec_file = get_exec_file (0); if (exec_file) printf_unfiltered ("Detaching from program `%s' pid %d\n", @@ -3312,15 +3311,15 @@ This is the same as setting `task pause', `exceptions', and\n\ /* Commands to show information about the task's ports. */ add_info ("send-rights", info_send_rights_cmd, - _("Show information about the task's send rights")); + _("Show information about the task's send rights.")); add_info ("receive-rights", info_recv_rights_cmd, - _("Show information about the task's receive rights")); + _("Show information about the task's receive rights.")); add_info ("port-rights", info_port_rights_cmd, - _("Show information about the task's port rights")); + _("Show information about the task's port rights.")); add_info ("port-sets", info_port_sets_cmd, - _("Show information about the task's port sets")); + _("Show information about the task's port sets.")); add_info ("dead-names", info_dead_names_cmd, - _("Show information about the task's dead names")); + _("Show information about the task's dead names.")); add_info_alias ("ports", "port-rights", 1); add_info_alias ("port", "port-rights", 1); add_info_alias ("psets", "port-sets", 1);