comment oiut some debug code

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24486 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-02-06 12:43:57 +00:00
parent b8b3077a8d
commit 6abab0a73f

View file

@ -283,7 +283,7 @@ GSPrivateBaseAddress(void *addr, void **base)
// 1st initialize the bfd // 1st initialize the bfd
if ([fileName length] == 0) if ([fileName length] == 0)
{ {
NSLog (@"GSBinaryFileInfo: No File"); //NSLog (@"GSBinaryFileInfo: No File");
[self release]; [self release];
return nil; return nil;
} }
@ -291,13 +291,13 @@ GSPrivateBaseAddress(void *addr, void **base)
_abfd = bfd_openr ([fileName cString], NULL); _abfd = bfd_openr ([fileName cString], NULL);
if (!_abfd) if (!_abfd)
{ {
NSLog (@"GSBinaryFileInfo: No Binary Info"); //NSLog (@"GSBinaryFileInfo: No Binary Info");
[self release]; [self release];
return nil; return nil;
} }
if (!bfd_check_format_matches (_abfd, bfd_object, NULL)) if (!bfd_check_format_matches (_abfd, bfd_object, NULL))
{ {
NSLog (@"GSBinaryFileInfo: BFD format object error"); //NSLog (@"GSBinaryFileInfo: BFD format object error");
[self release]; [self release];
return nil; return nil;
} }
@ -305,7 +305,7 @@ GSPrivateBaseAddress(void *addr, void **base)
// second read the symbols from it // second read the symbols from it
if (!(bfd_get_file_flags (_abfd) & HAS_SYMS)) if (!(bfd_get_file_flags (_abfd) & HAS_SYMS))
{ {
NSLog (@"GSBinaryFileInfo: BFD does not contain any symbols"); //NSLog (@"GSBinaryFileInfo: BFD does not contain any symbols");
[self release]; [self release];
return nil; return nil;
} }
@ -313,27 +313,27 @@ GSPrivateBaseAddress(void *addr, void **base)
neededSpace = bfd_get_symtab_upper_bound (_abfd); neededSpace = bfd_get_symtab_upper_bound (_abfd);
if (neededSpace < 0) if (neededSpace < 0)
{ {
NSLog (@"GSBinaryFileInfo: BFD error while deducing needed space"); //NSLog (@"GSBinaryFileInfo: BFD error while deducing needed space");
[self release]; [self release];
return nil; return nil;
} }
if (neededSpace == 0) if (neededSpace == 0)
{ {
NSLog (@"GSBinaryFileInfo: BFD no space for symbols needed"); //NSLog (@"GSBinaryFileInfo: BFD no space for symbols needed");
[self release]; [self release];
return nil; return nil;
} }
_symbols = objc_malloc (neededSpace); _symbols = objc_malloc (neededSpace);
if (!_symbols) if (!_symbols)
{ {
NSLog (@"GSBinaryFileInfo: Can't allocate buffer"); //NSLog (@"GSBinaryFileInfo: Can't allocate buffer");
[self release]; [self release];
return nil; return nil;
} }
_symbolCount = bfd_canonicalize_symtab (_abfd, _symbols); _symbolCount = bfd_canonicalize_symtab (_abfd, _symbols);
if (_symbolCount < 0) if (_symbolCount < 0)
{ {
NSLog (@"GSBinaryFileInfo: BFD error while reading symbols"); //NSLog (@"GSBinaryFileInfo: BFD error while reading symbols");
[self release]; [self release];
return nil; return nil;
} }
@ -587,7 +587,7 @@ GSListModules()
*/ */
aFrame = [bfi functionForAddress: address]; aFrame = [bfi functionForAddress: address];
} }
if (aFrame == nil) NSLog(@"BFI base for %@ (%p) is %p", modulePath, address, base); //if (aFrame == nil) NSLog(@"BFI base for %@ (%p) is %p", modulePath, address, base);
} }
else else
{ {
@ -595,7 +595,7 @@ if (aFrame == nil) NSLog(@"BFI base for %@ (%p) is %p", modulePath, address, bas
int j; int j;
int m; int m;
if (modulePath != nil) NSLog(@"BFI not found for %@ (%p)", modulePath, address); //if (modulePath != nil) NSLog(@"BFI not found for %@ (%p)", modulePath, address);
modules = GSListModules(); modules = GSListModules();
m = [modules count]; m = [modules count];