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: GDB mangler and diag console


On Wed, 2002-09-04 at 01:15, Rich LeGrand wrote:
> Hi all,
> If an embedded target has a serial port and an LCD display (as does mine),
> is there a recommended way to output to both the GDB mangler console (in my
> case, the serial port) and the LCD display without having to modify
> cyg_hal_diag_mangler_gdb_putc() in hal_if.c?  That is, I think it would be
> nice to have the option to print to both the GDB session and the LCD
> similtaneously.  If I have to modify cyg_hal_diag_mangler_gdb_putc(), any
> suggested methods that don't vandalize this function too badly would be
> appreciated. :)

Look at the RedBoot I/O support - it does this when there is more
than one console port available.  I think you could set things up
such that output went through the normal GDB console channel as
well as directly to your LCD screen.  [Note: my thoughts are that
you might have to set things up such that the GDB I/O would go through 
the virtual vector interface and the LCD output be handled directly]

Look at the files
  .../redboot/current/src/io.c 
  .../redboot/current/src/main.c 
for the details.  The routine 'mon_write_char()' gets "pushed" into
the diag I/O stream so that all output will go through it, which in
turn allows the output to be directed to multiple locations.

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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