Bug 24489 - load command should auto-load GDB extension scripts
Summary: load command should auto-load GDB extension scripts
Status: RESOLVED WONTFIX
Alias: None
Product: gdb
Classification: Unclassified
Component: remote (show other bugs)
Version: unknown
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-26 14:30 UTC by Konrad Schwarz
Modified: 2022-12-21 18:24 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Schwarz 2019-04-26 14:30:56 UTC
The 'load' command plays much the same role for embedded debugging as the file command does in native debugging.

As such, it would be highly welcome if loading an image to a remote target triggers auto-loading of the auto-loading extensions.  This would allow automatic configuration of parameters not defined by the (ELF) image, such as initial stack pointer.  Since auto-loading extensions are supposed to be idempotent, this addition should not cause problems.

Alternatively, define a new class of auto-loading files which are automatically invoked on `load', e.g., OBJFILE-gdb_load.EXT.
Comment 1 Konrad Schwarz 2019-04-26 15:17:35 UTC
Please delete this bug report/enhancement request.

What I want to do can be done via GDB user-defined commands.

Sorry for the confusion.
Comment 2 Tom Tromey 2022-12-21 18:24:26 UTC
(In reply to Konrad Schwarz from comment #1)
> Please delete this bug report/enhancement request.
> 
> What I want to do can be done via GDB user-defined commands.
> 
> Sorry for the confusion.

No problem.  I'm going to close this.