From b3f2b09263a193b90204661bfdbc4958deea75a9 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 | 100 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 92 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 13559f4..445f5e2 100644 --- a/package.json +++ b/package.json @@ -306,23 +306,65 @@ "properties": { "symbolFileName": { "type": "string", - "description": "If specified, a symbol file to load at the given (optional) offset", + "description": "Deprecated, use symbolFilesAndOffset instead. 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", + "description": "Deprecated, use symbolFilesAndOffset instead. 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", + "description": "Deprecated, use imageFilesAndOffset instead. If specified, an image file to load at the given (optional) offset", "default": "" }, "imageOffset": { "type": "string", - "description": "If imageFileName is specified, the offset used to load", + "description": "Deprecated, use imageFilesAndOffset instead. If imageFileName is specified, the offset used to load", "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": [] + }, + "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": [] } } }, @@ -547,23 +589,65 @@ "properties": { "symbolFileName": { "type": "string", - "description": "If specified, a symbol file to load at the given (optional) offset", + "description": "Deprecated, use symbolFilesAndOffset instead. 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", + "description": "Deprecated, use symbolFilesAndOffset instead. 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", + "description": "Deprecated, use imageFilesAndOffset instead. If specified, an image file to load at the given (optional) offset", "default": "" }, "imageOffset": { "type": "string", - "description": "If imageFileName is specified, the offset used to load", + "description": "Deprecated, use imageFilesAndOffset instead. If imageFileName is specified, the offset used to load", "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": [] + }, + "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": [] } } },