MCPcopy Create free account
hub / github.com/TASEmulators/fceux / addBookmark

Method addBookmark

src/drivers/Qt/ConsoleDebugger.cpp:6891–6914  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

6889}
6890//----------------------------------------------------------------------------
6891int debuggerBookmarkManager_t::addBookmark( int addr, const char *name )
6892{
6893 int retval = -1;
6894 debuggerBookmark_t *bm = NULL;
6895 std::map <int, debuggerBookmark_t*>::iterator it;
6896
6897 it = bmMap.find( addr );
6898
6899 if ( it == bmMap.end() )
6900 {
6901 bm = new debuggerBookmark_t();
6902 bm->addr = addr;
6903
6904 if ( name != NULL )
6905 {
6906 bm->name.assign( name );
6907 }
6908 bmMap[ addr ] = bm;
6909
6910 retval = 0;
6911 }
6912
6913 return retval;
6914}
6915//----------------------------------------------------------------------------
6916int debuggerBookmarkManager_t::editBookmark( int addr, const char *name )
6917{

Callers 3

add_BM_CBMethod · 0.80
asmViewCtxMenuAddBMMethod · 0.80
loadGameDebugBreakpointsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected