If eppic.so loaded successfully, "eppic" will be created as the alias of "edit -r" to run eppic programs, this makes more easily to run a eppic programs with a main():
crash> eppic my_file.c Signed-off-by: Tao Liu <l...@redhat.com> --- main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.c b/main.c index 7279156..b4f55b2 100644 --- a/main.c +++ b/main.c @@ -825,6 +825,16 @@ main_loop(void) else preload_extensions("eppic.so"); #endif + for (struct extension_table *curext = extension_table; + curext; + curext = curext->next) { + if (strstr(curext->filename, "eppic.so")) { + sprintf(pc->command_line, "alias eppic edit -r\n"); + argcnt = parse_line(pc->command_line, args); + cmd_alias(); + break; + } + } /* * Return here if a non-recoverable error occurs -- 2.47.0 -- Crash-utility mailing list -- devel@lists.crash-utility.osci.io To unsubscribe send an email to devel-le...@lists.crash-utility.osci.io https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/ Contribution Guidelines: https://github.com/crash-utility/crash/wiki