This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I have problem in gdb-stub. pleas help me~


> > > First of all, we'd recommend that you use RedBoot instead of the simple
> > > GDB stubs, as this will give you more capabilities on your board.
> > > 
> > > Try connecting a terminal emulator, such as minicom or hyperterm, to the
> > > board at 38400/8N1.  When you turn it on, does it print "$T...."?  Until
> > > it does this much, the GDB stubs aren't running.
> > 
> >     I saw the "$T...." on hyperterm. If I see "$T...." , can I assum that my gdb-stub operate correctly?
> 
> Yes.  Now what you should do is download the code and then
> use GDB to single step through until you find out why your
> code isn't working.
> 
> One thing you might try is to disable CYGSEM_HAL_USE_ROM_MONITOR
> 
> BTW, how did you build (or where did you obtain) the GDB stubs?

 I think my board is similiar MBX-board. but my board communicates throught SMC2  and memory-map of my board
is different from that of MBX. so I modified memory-map and created the quicc-smc2.* refering MBX-board package.
so I created gdb-stub and I saw the "$T...." 

 Would you examin my build option? 


#ifndef CYGONCE_PKGCONF_HAL_H
#define CYGONCE_PKGCONF_HAL_H
/*
 * File <pkgconf/hal.h>
 *
 * This file is generated automatically by the configuration
 * system. It should not be edited. Any changes to this file
 * may be overwritten.
 */

/***** proc output start *****/
#include <pkgconf/system.h>
#include CYGBLD_HAL_TARGET_H
#include CYGBLD_HAL_PLATFORM_H
/****** proc output end ******/
#define CYGPKG_HAL_COMMON 1
#define CYGPKG_HAL_EXCEPTIONS 1
#define CYGSEM_HAL_INSTALL_MMU_TABLES 1
#define CYGPKG_HAL_COMMON_INTERRUPTS 1
#define CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK 1
#define CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE 4096
#define CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE_4096
#define CYGPKG_HAL_COMMON_CONTEXT 1
#define CYGPKG_HAL_DEBUG 1
#define CYGINT_HAL_DEBUG_GDB_STUBS 1
#define CYGINT_HAL_DEBUG_GDB_STUBS_1
#define CYGINT_HAL_DEBUG_GDB_STUBS_BREAK 1
#define CYGINT_HAL_DEBUG_GDB_STUBS_BREAK_1
#define CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT 1

#endif

#ifndef CYGONCE_PKGCONF_HAL_POWERPC_H
#define CYGONCE_PKGCONF_HAL_POWERPC_H
/*
 * File <pkgconf/hal_powerpc.h>
 *
 * This file is generated automatically by the configuration
 * system. It should not be edited. Any changes to this file
 * may be overwritten.
 */

#define CYGINT_HAL_POWERPC_VARIANT 1
#define CYGINT_HAL_POWERPC_VARIANT_1
#define CYGPKG_HAL_POWERPC_OPTIONS 1

#endif

#ifndef CYGONCE_PKGCONF_HAL_POWERPC_MPC8XX_H
#define CYGONCE_PKGCONF_HAL_POWERPC_MPC8XX_H
/*
 * File <pkgconf/hal_powerpc_mpc8xx.h>
 *
 * This file is generated automatically by the configuration
 * system. It should not be edited. Any changes to this file
 * may be overwritten.
 */

#include <pkgconf/hal_powerpc.h>
#define CYGINT_HAL_USE_ROM_MONITOR_UNSUPPORTED 0
#define CYGINT_HAL_USE_ROM_MONITOR_UNSUPPORTED_0
#define CYGSEM_HAL_USE_ROM_MONITOR 1
#define CYGPKG_HAL_POWERPC_MPC850 1

#endif

#ifndef CYGONCE_PKGCONF_HAL_POWERPC_MYTARGET_H
#define CYGONCE_PKGCONF_HAL_POWERPC_MYTARGET_H
/*
 * File <pkgconf/hal_powerpc_mytarget.h>
 *
 * This file is generated automatically by the configuration
 * system. It should not be edited. Any changes to this file
 * may be overwritten.
 */

#define CYGHWR_HAL_POWERPC_BOARD_SPEED 50
#define CYGHWR_HAL_POWERPC_BOARD_SPEED_50
#define CYGNUM_HAL_RTC_CONSTANTS 1
#define CYGNUM_HAL_RTC_NUMERATOR 1000000000
#define CYGNUM_HAL_RTC_NUMERATOR_1000000000
#define CYGNUM_HAL_RTC_DENOMINATOR 100
#define CYGNUM_HAL_RTC_DENOMINATOR_100
#define CYGNUM_HAL_RTC_PERIOD 31250
#define CYGNUM_HAL_RTC_PERIOD_31250
#define CYGBLD_GLOBAL_OPTIONS 1
#define CYGPKG_HAL_POWERPC_MYTARGET_OPTIONS 1

#endif

#ifndef CYGONCE_PKGCONF_HAL_POWERPC_QUICC_H
#define CYGONCE_PKGCONF_HAL_POWERPC_QUICC_H
/*
 * File <pkgconf/hal_powerpc_quicc.h>
 *
 * This file is generated automatically by the configuration
 * system. It should not be edited. Any changes to this file
 * may be overwritten.
 */

#define CYGNUM_HAL_QUICC_DIAG_BAUD 57600
#define CYGNUM_HAL_QUICC_DIAG_BAUD_57600

#endif

#ifndef CYGONCE_PKGCONF_IO_SERIAL_H
#define CYGONCE_PKGCONF_IO_SERIAL_H
/*
 * File <pkgconf/io_serial.h>
 *
 * This file is generated automatically by the configuration
 * system. It should not be edited. Any changes to this file
 * may be overwritten.
 */

#define CYGPKG_IO_SERIAL_TTY 1
#define CYGPKG_IO_SERIAL_HALDIAG 1
#define CYGDAT_IO_SERIAL_TTY_CONSOLE "/dev/ttydiag"
#define CYGPKG_IO_SERIAL_TTY_TTYDIAG 1
#define CYGPKG_IO_SERIAL_OPTIONS 1

#endif

#ifndef CYGONCE_PKGCONF_KERNEL_H
#define CYGONCE_PKGCONF_KERNEL_H
/*
 * File <pkgconf/kernel.h>
 *
 * This file is generated automatically by the configuration
 * system. It should not be edited. Any changes to this file
 * may be overwritten.
 */

/***** proc output start *****/
#include <pkgconf/system.h>
#include <pkgconf/hal.h>
#include <pkgconf/infra.h>
#include CYGBLD_HAL_PLATFORM_H
#ifndef CYGNUM_HAL_RTC_NUMERATOR
# define CYGNUM_HAL_RTC_NUMERATOR     1000000000
# define CYGNUM_HAL_RTC_DENOMINATOR   100
# define CYGNUM_HAL_RTC_PERIOD        9999
#endif
/*****  proc output end  *****/
#define CYGPKG_KERNEL_INTERRUPTS 1
#define CYGIMP_KERNEL_INTERRUPTS_DSRS 1
#define CYGINT_KERNEL_INTERRUPTS_DSRS 1
#define CYGINT_KERNEL_INTERRUPTS_DSRS_1
#define CYGIMP_KERNEL_INTERRUPTS_DSRS_LIST 1
#define CYGPKG_KERNEL_EXCEPTIONS 1
#define CYGSEM_KERNEL_EXCEPTIONS_GLOBAL 1
#define CYGPKG_KERNEL_SCHED 1
#define CYGINT_KERNEL_SCHEDULER 1
#define CYGINT_KERNEL_SCHEDULER_1
#define CYGSEM_KERNEL_SCHED_MLQUEUE 1
#define CYGPRI_KERNEL_SCHED_IMPL_HXX <cyg/kernel/mlqueue.hxx>
#define CYGNUM_KERNEL_SCHED_PRIORITIES 32
#define CYGNUM_KERNEL_SCHED_PRIORITIES_32
#define CYGNUM_KERNEL_SCHED_BITMAP_SIZE CYGNUM_KERNEL_SCHED_PRIORITIES
#define CYGNUM_KERNEL_SCHED_BITMAP_SIZE_CYGNUM_KERNEL_SCHED_PRIORITIES
#define CYGPKG_KERNEL_COUNTERS 1
#define CYGVAR_KERNEL_COUNTERS_CLOCK 1
#define CYGINT_KERNEL_COUNTERS 1
#define CYGINT_KERNEL_COUNTERS_1
#define CYGIMP_KERNEL_COUNTERS_SINGLE_LIST 1
#define CYGNUM_KERNEL_COUNTERS_RTC_RESOLUTION {CYGNUM_HAL_RTC_NUMERATOR, CYGNUM_HAL_RTC_DENOMINATOR}
#define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD CYGNUM_HAL_RTC_PERIOD
#define CYGNUM_KERNEL_COUNTERS_RTC_PERIOD_CYGNUM_HAL_RTC_PERIOD
#define CYGPKG_KERNEL_THREADS 1
#define CYGVAR_KERNEL_THREADS_NAME 1
#define CYGVAR_KERNEL_THREADS_LIST 1
#define CYGFUN_KERNEL_THREADS_STACK_LIMIT 1
#define CYGVAR_KERNEL_THREADS_DATA 1
#define CYGNUM_KERNEL_THREADS_DATA_MAX 6
#define CYGNUM_KERNEL_THREADS_DATA_MAX_6
#define CYGNUM_KERNEL_THREADS_DATA_ALL 15
#define CYGNUM_KERNEL_THREADS_DATA_ALL_15
#define CYGNUM_KERNEL_THREADS_DATA_KERNEL 0
#define CYGNUM_KERNEL_THREADS_DATA_KERNEL_0
#define CYGNUM_KERNEL_THREADS_DATA_ITRON 1
#define CYGNUM_KERNEL_THREADS_DATA_ITRON_1
#define CYGNUM_KERNEL_THREADS_DATA_LIBC 2
#define CYGNUM_KERNEL_THREADS_DATA_LIBC_2
#define CYGNUM_KERNEL_THREADS_DATA_POSIX 3
#define CYGNUM_KERNEL_THREADS_DATA_POSIX_3
#define CYGNUM_KERNEL_THREADS_IDLE_STACK_SIZE 2048
#define CYGNUM_KERNEL_THREADS_IDLE_STACK_SIZE_2048
#define CYGNUM_KERNEL_MAX_SUSPEND_COUNT_ASSERT 500
#define CYGNUM_KERNEL_MAX_SUSPEND_COUNT_ASSERT_500
#define CYGNUM_KERNEL_MAX_COUNTED_WAKE_COUNT_ASSERT 500
#define CYGNUM_KERNEL_MAX_COUNTED_WAKE_COUNT_ASSERT_500
#define CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE 1
#define CYGPKG_KERNEL_SYNCH 1
#define CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE_SIMPLE 1
#define CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INHERITANCE_SIMPLE_RELAY 1
#define CYGMFN_KERNEL_SYNCH_MBOXT_PUT_CAN_WAIT 1
#define CYGNUM_KERNEL_SYNCH_MBOX_QUEUE_SIZE 10
#define CYGNUM_KERNEL_SYNCH_MBOX_QUEUE_SIZE_10
#define CYGPKG_KERNEL_MEMORY 1
#define CYGSEM_KERNEL_MEMORY_COALESCE 1
#define CYGPKG_KERNEL_DEBUG 1
#define CYGPKG_KERNEL_API 1
#define CYGFUN_KERNEL_API_C 1
#define CYGPKG_KERNEL_OPTIONS 1

#endif



thank you for your kindness.








Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]