Changes between Version 6 and Version 7 of Tools/Gdb Server
- Timestamp:
- Oct 21, 2008, 11:24:28 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tools/Gdb Server
v6 v7 33 33 }}} 34 34 35 Do not forget to update the platform description file: 35 Then define the cpu as frozen directly at the boot: 36 {{{ 37 soclib::common::GdbServer<soclib::common::MipsElIss>::start_frozen(); 38 }}} 39 40 Finally do not forget to update the platform description file: 36 41 37 42 {{{ 38 43 Uses('iss_wrapper', iss_t = 'common:gdb_iss', gdb_iss_t = 'common:mipsel'), 44 }}} 45 46 ==== Iss2 and XCacheWrapper example ==== 47 For using the !GdbServer with the new Iss2 and XCacheWrapper models, the platform description file should contain: 48 {{{ 49 Uses('vci_xcache_wrapper', iss_t = 'common:ississ2', iss2_t = 'common:gdb_iss', gdb_iss_t = 'common:mipsel'), 50 }}} 51 52 The topcell description (top.cpp) should contain: 53 {{{ 54 soclib::caba::VciXcacheWrapper<vci_param, soclib::common::IssIss2<soclib::common::GdbServer<soclib::common::MipsElIss> > > cache0("cache0", 0, maptab, IntTab(0), 1,8,4, 1,8,4); 39 55 }}} 40 56 … … 48 64 49 65 Its easy to connect to the simulation with a suitable gdb client: 50 66 * First launch the gdb client 51 67 {{{ 52 68 $ mipsel-unknown-elf-gdb mutekh/kernel-soclib-mips.out 53 69 GNU gdb 6.7 54 70 Copyright (C) 2007 Free Software Foundation, Inc. 71 }}} 72 * Then enter this first command at the prompt 73 {{{ 55 74 (gdb) target remote localhost:2346 56 75 Remote debugging using localhost:2346