All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] [RFC] Shell func backtracing
@ 2020-08-02 14:35 Chris Laplante
  2020-08-02 14:35 ` [PATCH v2 1/4] data: emit filename/lineno information for shell functions Chris Laplante
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Chris Laplante @ 2020-08-02 14:35 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Chris Laplante

This patch series replaces the one I sent Friday. It implements two
backtraces when a Bash shell function fails:

1) A backtrace within the .run file that BB generated.
2) A computed backtrace of the actual metadata locations (e.g. bb or
    bbclass) where each shell function is defined.

At one point I had both backtraces implemented entirely in the shell
traps. I moved (2) to build.py because it is easier to implement in
Python. One nice thing about leaving it in the shell trap would be that
it would still work even if a user was running a .run script directly,
but it seems like not many people do that. Still, if it's something
we're interested in, know that it's possible.

P.S. Sorry for all the v2, v3's I've been sending.

Chris Laplante (4):
  data: emit filename/lineno information for shell functions
  build: print a backtrace when a Bash shell function fails
  build: print a backtrace with the original metadata locations of Bash
    shell funcs
  build: add back the Bash EXIT trap to handle cases that ERR doesn't

 lib/bb/build.py   | 116 +++++++++++++++++++++++++++++++++++++++++-----
 lib/bb/data.py    |   6 +++
 lib/bb/process.py |   3 +-
 3 files changed, 113 insertions(+), 12 deletions(-)

--
2.17.1


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

end of thread, other threads:[~2020-08-17 14:10 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-02 14:35 [PATCH v2 0/4] [RFC] Shell func backtracing Chris Laplante
2020-08-02 14:35 ` [PATCH v2 1/4] data: emit filename/lineno information for shell functions Chris Laplante
2020-08-02 14:35 ` [PATCH v2 2/4] build: print a backtrace when a Bash shell function fails Chris Laplante
2020-08-02 14:35 ` [PATCH v2 3/4] build: print a backtrace with the original metadata locations of Bash shell funcs Chris Laplante
2020-08-02 14:35 ` [PATCH v2 4/4] build: add back the Bash EXIT trap to handle cases that ERR doesn't Chris Laplante
2020-08-07 12:18 ` [bitbake-devel] [PATCH v2 0/4] [RFC] Shell func backtracing Richard Purdie
2020-08-07 12:31   ` Chris Laplante
2020-08-07 14:11     ` Richard Purdie
2020-08-07 14:30       ` Chris Laplante
2020-08-07 14:46         ` Richard Purdie
2020-08-17 14:10           ` Chris Laplante
2020-08-07 20:47 ` Richard Purdie
2020-08-07 21:24   ` Chris Laplante
2020-08-07 21:25     ` Richard Purdie
2020-08-08  0:19       ` Chris Laplante
2020-08-08  6:49         ` Richard Purdie
2020-08-08 18:40           ` Chris Laplante
2020-08-09 12:32             ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.