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]

About PR gdb/20604 - fix "quit" when an invalid expression is used


hi guys.
I also had this problem. I should have checked this thread.

I also think this pr is really good.
but It can change the usage of quit.

I researched this problem also.
so I think it is because "undo_terminal_modifications_before_exit()" is called
before parse_and_eval()

so It doesn't recover. so after that terminal state is not normal.

so, I just moved undo_terminal_modifications_before_exit() after parse_and_eval

even though, parse_and_eval throw exceptions. it is safe.

Thank.


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