Allow access to segment information.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4796 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -101,6 +101,19 @@ struct cc65_filelist {
|
||||
|
||||
|
||||
|
||||
/* A list of segments with some information */
|
||||
typedef struct cc65_segmentlist cc65_segmentlist;
|
||||
struct cc65_segmentlist {
|
||||
unsigned count; /* Number of data sets that follow */
|
||||
struct {
|
||||
const char* name; /* Name of the file */
|
||||
cc65_addr start; /* Start address of segment */
|
||||
cc65_addr end; /* End address of segment */
|
||||
} data[1];
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
@@ -138,6 +151,12 @@ cc65_filelist* cc65_get_filelist (cc65_dbginfo handle);
|
||||
void cc65_free_filelist (cc65_dbginfo handle, cc65_filelist* list);
|
||||
/* free a file list returned by cc65_get_filelist() */
|
||||
|
||||
cc65_segmentlist* cc65_get_segmentlist (cc65_dbginfo handle);
|
||||
/* Return a list of all segments referenced in the debug information */
|
||||
|
||||
void cc65_free_segmentlist (cc65_dbginfo handle, cc65_segmentlist* list);
|
||||
/* Free a file list returned by cc65_get_filelist() */
|
||||
|
||||
|
||||
|
||||
/* End of dbginfo.h */
|
||||
|
||||
Reference in New Issue
Block a user