From 82d8e972e56eabd3b5f1f95c9097c4ba0a65e016 Mon Sep 17 00:00:00 2001 From: Florent Vion Date: Tue, 5 Dec 2023 09:17:25 +0100 Subject: [PATCH] Enhancing ImageAndSymbols to load several binaries Signed-off-by: Florent Vion --- package.json | 116 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 80 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index 13559f4..adcaf6e 100644 --- a/package.json +++ b/package.json @@ -304,25 +304,47 @@ "type": "object", "default": {}, "properties": { - "symbolFileName": { - "type": "string", - "description": "If specified, a symbol file to load at the given (optional) offset", - "default": "" - }, - "symbolOffset": { - "type": "string", - "description": "If symbolFileName is specified, the offset used to load", - "default": "" - }, - "imageFileName": { - "type": "string", - "description": "If specified, an image file to load at the given (optional) offset", - "default": "" + "symbolFilesAndOffset": { + "type": "array", + "description": "If specified, list of symbol files to load at the given (optional) offset", + "items": { + "type": "object", + "properties": { + "file": { + "type": "string", + "description": "If specified, a symbol file to load at the given (optional) offset", + "default": "" + }, + "offset": { + "type": "string", + "description": "If symbol file is specified, the offset used to load (optional)", + "default": "" + } + }, + "default": {} + }, + "default": [] }, - "imageOffset": { - "type": "string", - "description": "If imageFileName is specified, the offset used to load", - "default": "" + "imageFilesAndOffset": { + "type": "array", + "description": "If specified, list of image files to load at the given (optional) offset", + "items": { + "type": "object", + "properties": { + "file": { + "type": "string", + "description": "If specified, an image file to load at the given (optional) offset", + "default": "" + }, + "offset": { + "type": "string", + "description": "If image file is specified, the offset used to load (optional)", + "default": "" + } + }, + "default": {} + }, + "default": [] } } }, @@ -545,25 +567,47 @@ "type": "object", "default": {}, "properties": { - "symbolFileName": { - "type": "string", - "description": "If specified, a symbol file to load at the given (optional) offset", - "default": "" - }, - "symbolOffset": { - "type": "string", - "description": "If symbolFileName is specified, the offset used to load", - "default": "" - }, - "imageFileName": { - "type": "string", - "description": "If specified, an image file to load at the given (optional) offset", - "default": "" + "symbolFilesAndOffset": { + "type": "array", + "description": "If specified, list of symbol files to load at the given (optional) offset", + "items": { + "type": "object", + "properties": { + "file": { + "type": "string", + "description": "If specified, a symbol file to load at the given (optional) offset", + "default": "" + }, + "offset": { + "type": "string", + "description": "If symbol file is specified, the offset used to load (optional)", + "default": "" + } + }, + "default": {} + }, + "default": [] }, - "imageOffset": { - "type": "string", - "description": "If imageFileName is specified, the offset used to load", - "default": "" + "imageFilesAndOffset": { + "type": "array", + "description": "If specified, list of image files to load at the given (optional) offset", + "items": { + "type": "object", + "properties": { + "file": { + "type": "string", + "description": "If specified, an image file to load at the given (optional) offset", + "default": "" + }, + "offset": { + "type": "string", + "description": "If image file is specified, the offset used to load (optional)", + "default": "" + } + }, + "default": {} + }, + "default": [] } } },