Hi Gabe, I do not think adding exceptions will make things any less cluttered. It will simply move that complexity to any caller, will it not? I am not a fan of exceptions in general as it mucks with the control flow.
Andreas On 10/05/2017, 07:31, "gem5-dev on behalf of Gabe Black" <[email protected] on behalf of [email protected]> wrote: >Hi folks. I have a change to make the GDB stub in gem5 a bit less fragile: > >https://gem5-review.googlesource.com/#/c/3180/ > >Unfortunately that involved adding a lot of error code checking which >makes >things a bit cluttered and ugly. I think it would be a lot nicer to use >exceptions, but I remember those being a no-no. Are they currently against >the rules, or could I use them to make that code a bit nicer? > >Gabe >_______________________________________________ >gem5-dev mailing list >[email protected] >http://m5sim.org/mailman/listinfo/gem5-dev IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
