Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/8] Error handling cleanups
@ 2014-08-06 10:12 Gary Benson
  2014-08-06 10:12 ` [PATCH 3/8] Make warning usable earlier Gary Benson
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Gary Benson @ 2014-08-06 10:12 UTC (permalink / raw)
  To: gdb-patches

Hi all,

GDB's various error handling functions do not work until a certain
amount of setup has been performed.  For regular warnings and errors
this is an annoyance: error handling needs to be hardwired with
fprintf and/or exit until error and warning may be called.  For
internal warnings and errors this is a real problem: internal errors
can occur from almost the first line of captured_main, but they don't
actually work until much later.

This series modifies internal_vproblem to always work, and modifies
warning and error to work much earlier.  It then replaces all the
hardwired early warning/error code with standard calls to warning and
error.

While looking at this I found several other hardwired error handlers
that do not seem to be necessary.  I've replaced those in separate
patches.

While switching to warning/error I've fixed some inconsistencies that
have crept in over time: some messages wern't wrapped with _(), for
example, and some but not all warning messages were prefixed with
argv[0].  For the latter case I've made it so that all warnings
emitted prior to and during option processing--before print_gdb_version
basically--are prefixed by argv[0] and all other warnings are not.

Built and regtested on RHEL6.5 x86_64.

Ok to commit?

Thanks,
Gary


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-08-29  9:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-06 10:12 [PATCH 0/8] Error handling cleanups Gary Benson
2014-08-06 10:12 ` [PATCH 3/8] Make warning usable earlier Gary Benson
2014-08-06 10:12 ` [PATCH 4/8] Replace hardwired error handlers in tui_initialize_io Gary Benson
2014-08-06 10:12 ` [PATCH 8/8] Unify startup and option-parsing warnings Gary Benson
2014-08-06 10:12 ` [PATCH 2/8] Make error usable earlier Gary Benson
2014-08-06 10:25 ` [PATCH 7/8] Replace all usage errors with calls to error Gary Benson
2014-08-06 10:25 ` [PATCH 5/8] Replace hardwired error handler in captured_main Gary Benson
2014-08-06 10:34 ` [PATCH 1/8] Make internal_vproblem always work Gary Benson
2014-08-06 10:52 ` [PATCH 6/8] Replace hardwired error handler in go32_create_inferior Gary Benson
2014-08-06 16:59   ` Eli Zaretskii
2014-08-08 11:38     ` Gary Benson
2014-08-28 14:09 ` [PATCH 0/8] Error handling cleanups Pedro Alves
2014-08-29  9:19   ` [COMMITTED PATCH " Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox