aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-04-19 23:56:14 +0000
committerAndrew Cagney <cagney@redhat.com>2001-04-19 23:56:14 +0000
commitd036b4d9cf02ad886f575ea71c9dc3f7c887b31d (patch)
tree169f586dd5c5339b23625d15b9043583a4d623e6 /gdb/source.c
parent6ec9f4a9be9ea349ba7614ea564052c30e5ce2e4 (diff)
downloadgdb-d036b4d9cf02ad886f575ea71c9dc3f7c887b31d.zip
gdb-d036b4d9cf02ad886f575ea71c9dc3f7c887b31d.tar.gz
gdb-d036b4d9cf02ad886f575ea71c9dc3f7c887b31d.tar.bz2
Obsolete MPW as host.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 9a6d60d..c96202a 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -609,22 +609,22 @@ done:
filename, NULL);
}
}
-#ifdef MPW
- /* This is a debugging hack that can go away when all combinations
- of Mac and Unix names are handled reasonably. */
- {
- extern int debug_openp;
-
- if (debug_openp)
- {
- printf ("openp on %s, path %s mode %d prot %d\n returned %d",
- string, path, mode, prot, fd);
- if (*filename_opened)
- printf (" (filename is %s)", *filename_opened);
- printf ("\n");
- }
- }
-#endif /* MPW */
+ /* OBSOLETE #ifdef MPW */
+ /* OBSOLETE This is a debugging hack that can go away when all combinations */
+ /* OBSOLETE of Mac and Unix names are handled reasonably. */
+ /* OBSOLETE { */
+ /* OBSOLETE extern int debug_openp; */
+ /* OBSOLETE */
+ /* OBSOLETE if (debug_openp) */
+ /* OBSOLETE { */
+ /* OBSOLETE printf ("openp on %s, path %s mode %d prot %d\n returned %d", */
+ /* OBSOLETE string, path, mode, prot, fd); */
+ /* OBSOLETE if (*filename_opened) */
+ /* OBSOLETE printf (" (filename is %s)", *filename_opened); */
+ /* OBSOLETE printf ("\n"); */
+ /* OBSOLETE } */
+ /* OBSOLETE } */
+ /* OBSOLETE #endif *//* MPW */
return fd;
}
@@ -710,22 +710,22 @@ open_source_file (struct symtab *s)
if (p != s->filename)
result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname);
}
-#ifdef MPW
- if (result < 0)
- {
- /* Didn't work. Try using just the MPW basename. */
- p = (char *) mpw_basename (s->filename);
- if (p != s->filename)
- result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname);
- }
- if (result < 0)
- {
- /* Didn't work. Try using the mixed Unix/MPW basename. */
- p = (char *) mpw_mixed_basename (s->filename);
- if (p != s->filename)
- result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname);
- }
-#endif /* MPW */
+ /* OBSOLETE #ifdef MPW */
+ /* OBSOLETE if (result < 0) */
+ /* OBSOLETE { */
+ /* OBSOLETE *//* Didn't work. Try using just the MPW basename. */
+ /* OBSOLETE p = (char *) mpw_basename (s->filename); */
+ /* OBSOLETE if (p != s->filename) */
+ /* OBSOLETE result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname); */
+ /* OBSOLETE } */
+ /* OBSOLETE if (result < 0) */
+ /* OBSOLETE { */
+ /* OBSOLETE *//* Didn't work. Try using the mixed Unix/MPW basename. */
+ /* OBSOLETE p = (char *) mpw_mixed_basename (s->filename); */
+ /* OBSOLETE if (p != s->filename) */
+ /* OBSOLETE result = openp (path, 0, p, OPEN_MODE, 0, &s->fullname); */
+ /* OBSOLETE } */
+ /* OBSOLETE #endif MPW */
if (result >= 0)
{