lkml.org 
[lkml]   [2005]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Use enum to declare errno values

--- Nikita Danilov <nikita@clusterfs.com> a écrit :

>
> (gdb) p (enum side)$1
> $2 = LEFT
>
> (This works when debugging information about enum was stored in ELF
> object.)
>

not really convenient. For example:

int foo(void)
{
int tmp;

tmp = bar();
[...]
return tmp;
}

How do you know if tmp store an errno value ? You have to look into bar and so
on...By using "enum errnoval", gdb can directly tell you that a variable stores
an errno value.

Thanks






___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-23 17:44    [W:0.070 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site