[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: errno in gdb
From: |
Bruno Haible |
Subject: |
Re: errno in gdb |
Date: |
Sat, 3 Nov 2007 05:25:46 +0100 |
User-agent: |
KMail/1.5.4 |
Jim Meyering wrote:
> I did not set errno, which would normally happen for a real failure.
> I tried, but __errno_location() returns an invalid address.
> Anyone know how to set errno via gdb?
I normally use
(gdb) print errno = 22
since in a single-threaded situation __errno_location() == &errno.
Bruno