Changeset bec6379 in mainline


Ignore:
Timestamp:
2024-09-16T11:15:55Z (8 weeks ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
096c0786
Parents:
1e221ec
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-09-15 18:48:44)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-09-16 11:15:55)
Message:

Make it possible to set a breakpoint on ubsan_panic()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/ubsan.c

    r1e221ec rbec6379  
    1313
    1414#define PRINTF(...) printf(__VA_ARGS__)
    15 #define ubsan_panic() panic("... aborting ...")
    1615
    1716struct source_location {
     
    115114void __ubsan_handle_builtin_unreachable(struct unreachable_data *data);
    116115
     116/* A real function for potential breakpoint location. */
     117__attribute__((noinline))
     118    static void ubsan_panic(void)
     119{
     120        panic("... aborting ...");
     121}
     122
    117123static void print_loc(const char *func, struct source_location *loc)
    118124{
Note: See TracChangeset for help on using the changeset viewer.