ia64/xen-unstable

changeset 2747:ce225d7c7410

bitkeeper revision 1.1159.1.285 (417f69709zfqpQ8rVK-CnP4rYLY9Sg)

Kill dead pdb code.
author kaf24@freefall.cl.cam.ac.uk
date Wed Oct 27 09:25:04 2004 +0000 (2004-10-27)
parents 23eb17be7a14
children e9473b885613
files xen/arch/x86/pdb-stub.c xen/include/asm-x86/pdb.h
line diff
     1.1 --- a/xen/arch/x86/pdb-stub.c	Tue Oct 26 17:08:38 2004 +0000
     1.2 +++ b/xen/arch/x86/pdb-stub.c	Wed Oct 27 09:25:04 2004 +0000
     1.3 @@ -668,76 +668,6 @@ exit:
     1.4  
     1.5  int pdb_debug_state = 0;                /* small parser state machine */
     1.6  
     1.7 -int pdb_serial_input(u_char c, struct pt_regs *regs)
     1.8 -{
     1.9 -    int out = 1;
    1.10 -    int loop, count;
    1.11 -    unsigned long cr3;
    1.12 -
    1.13 -    __asm__ __volatile__ ("movl %%cr3,%0" : "=r" (cr3) : );
    1.14 -
    1.15 -    switch (pdb_debug_state)
    1.16 -    {
    1.17 -    case 0:                         /* not currently processing debug string */
    1.18 -        if ( c == '$' )                                      /* start token */
    1.19 -	{
    1.20 -	    pdb_debug_state = 1;
    1.21 -	    pdb_in_buffer_ptr = 0;
    1.22 -	    pdb_in_checksum = 0;
    1.23 -	    pdb_xmit_checksum = 0;
    1.24 -	}
    1.25 -	else 
    1.26 -	{
    1.27 -	    out = 0;
    1.28 -	}
    1.29 -	break;
    1.30 -    case 1:                                                       /* saw '$' */
    1.31 -        if ( c == '#' )                                    /* checksum token */
    1.32 -	{
    1.33 -	    pdb_debug_state = 2;
    1.34 -	    pdb_in_buffer[pdb_in_buffer_ptr] = 0;
    1.35 -	}
    1.36 -	else
    1.37 -	{
    1.38 -	    pdb_in_checksum += c;
    1.39 -	    pdb_in_buffer[pdb_in_buffer_ptr++] = c;
    1.40 -	}
    1.41 -	break;
    1.42 -    case 2:                                            /* 1st checksum digit */
    1.43 -        pdb_xmit_checksum = hex(c) << 4;
    1.44 -	pdb_debug_state = 3;
    1.45 -	break;
    1.46 -    case 3:                                            /* 2nd checksum digit */
    1.47 -        pdb_xmit_checksum += hex(c);
    1.48 -	if (pdb_in_checksum != pdb_xmit_checksum) 
    1.49 -	{
    1.50 -	    pdb_put_char('-');                           /* checksum failure */
    1.51 -	    printk ("checksum failure [%s.%02x.%02x]\n", pdb_in_buffer,
    1.52 -		    pdb_in_checksum, pdb_xmit_checksum);
    1.53 -	}
    1.54 -	else 
    1.55 -	{
    1.56 -	    pdb_put_char('+');                              /* checksum okay */
    1.57 -	    if ( pdb_in_buffer_ptr > 1 && pdb_in_buffer[2] == ':' ) 
    1.58 -	    {
    1.59 -	        pdb_put_char(pdb_in_buffer[0]);
    1.60 -		pdb_put_char(pdb_in_buffer[1]);
    1.61 -		/* remove sequence chars from buffer */
    1.62 -		count = strlen(pdb_in_buffer);
    1.63 -		for (loop = 3; loop < count; loop++)
    1.64 -		    pdb_in_buffer[loop - 3] = pdb_in_buffer[loop];
    1.65 -	    }
    1.66 -
    1.67 -	    pdb_process_command (pdb_in_buffer, regs, cr3,
    1.68 -				 PDB_LIVE_EXCEPTION);
    1.69 -	}
    1.70 -	pdb_debug_state = 0;
    1.71 -	break;
    1.72 -    }
    1.73 -
    1.74 -    return out;
    1.75 -}
    1.76 -
    1.77  int hex(char ch)
    1.78  {
    1.79      if ((ch >= 'a') && (ch <= 'f')) return (ch-'a'+10);
     2.1 --- a/xen/include/asm-x86/pdb.h	Tue Oct 26 17:08:38 2004 +0000
     2.2 +++ b/xen/include/asm-x86/pdb.h	Wed Oct 27 09:25:04 2004 +0000
     2.3 @@ -35,7 +35,6 @@ extern int pdb_get_values(u_char *buffer
     2.4  /* External entry points. */
     2.5  extern int pdb_handle_exception(int exceptionVector,
     2.6  				struct pt_regs *xen_regs);
     2.7 -extern int pdb_serial_input(u_char c, struct pt_regs *regs);
     2.8  extern void pdb_do_debug(dom0_op_t *op);
     2.9  
    2.10  /* PDB Context. */