This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add fseek to ui-file


>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:

Pedro> I think that if we want to support error handling, then this should
Pedro> return the fseek result to the caller instead of throwing an exception.
Pedro> See e.g., the comment in stdio_file_write.

I wonder whether that comment is correct.

Hui> What about I change error to warning?
Hui> Then it don't need some handle and something.  And if really got some
Hui> issue with this syscall, user can find issue with this warning?

I think that would be a worse solution.
It would mean the writing would continue even after failing.
Better to do what Pedro asks.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]