* procfs.c (procfs_pid_to_str): Remove redundant and unused
authorMark Kettenis <kettenis@gnu.org>
Sun, 8 Aug 2004 01:00:55 +0000 (01:00 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 8 Aug 2004 01:00:55 +0000 (01:00 +0000)
variables.  Incapitalized "process".

gdb/ChangeLog
gdb/procfs.c

index c3aa1cd2b74b9e8dbc3e76404f311d18114f5906..b547b04307955a464a8668b6848107438b3d9c6a 100644 (file)
@@ -1,5 +1,8 @@
 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
 
+       * procfs.c (procfs_pid_to_str): Remove redundant and unused
+       variables.  Incapitalized "process".
+
        * configure.in: Add cursesX to the list of possible curses libs.
        Add cursesX.h to the list of possible curses headers. 
        * configure, config.in: Regenerate.     
index 672b5ac9ab0b659f523ecf29cedea7522c1f8e96..19d7ae3904c19ec3dd13e4ec88fddc9ad8fd8bd3 100644 (file)
@@ -5122,29 +5122,19 @@ procfs_thread_alive (ptid_t ptid)
   return 1;
 }
 
-/*
- * Function: target_pid_to_str
- *
- * Return a string to be used to identify the thread in
- * the "info threads" display.
- */
+/* Convert PTID to a string.  Returns the string in a static buffer.  */
 
 char *
 procfs_pid_to_str (ptid_t ptid)
 {
   static char buf[80];
-  int proc, thread;
-  procinfo *pi;
 
-  proc    = PIDGET (ptid);
-  thread  = TIDGET (ptid);
-  pi      = find_procinfo (proc, thread);
-
-  if (thread == 0)
-    sprintf (buf, "Process %d", proc);
+  if (TIDGET (ptid) == 0)
+    sprintf (buf, "process %d", PIDGET (ptid));
   else
-    sprintf (buf, "LWP %d", thread);
-  return &buf[0];
+    sprintf (buf, "LWP %d", TIDGET (ptid));
+
+  return buf;
 }
 
 /*
This page took 0.032453 seconds and 4 git commands to generate.