Changeset 7f1c620 in mainline for arch/amd64/src/debugger.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/debugger.c

    r991779c5 r7f1c620  
    4747
    4848typedef struct  {
    49         __address address;      /**< Breakpoint address */
     49        uintptr_t address;      /**< Breakpoint address */
    5050        int flags;              /**< Flags regarding breakpoint */
    5151        int counter;            /**< How many times the exception occured */
     
    123123static void setup_dr(int curidx)
    124124{
    125         __native dr7;
     125        unative_t dr7;
    126126        bpinfo_t *cur = &breakpoints[curidx];
    127127        int flags = breakpoints[curidx].flags;
     
    154154                } else {
    155155                        if (sizeof(int) == 4)
    156                                 dr7 |= ((__native) 0x3) << (18 + 4*curidx);
     156                                dr7 |= ((unative_t) 0x3) << (18 + 4*curidx);
    157157                        else /* 8 */
    158                                 dr7 |= ((__native) 0x2) << (18 + 4*curidx);
     158                                dr7 |= ((unative_t) 0x2) << (18 + 4*curidx);
    159159                       
    160160                        if ((flags & BKPOINT_WRITE))
    161                                 dr7 |= ((__native) 0x1) << (16 + 4*curidx);
     161                                dr7 |= ((unative_t) 0x1) << (16 + 4*curidx);
    162162                        else if ((flags & BKPOINT_READ_WRITE))
    163                                 dr7 |= ((__native) 0x3) << (16 + 4*curidx);
     163                                dr7 |= ((unative_t) 0x3) << (16 + 4*curidx);
    164164                }
    165165
     
    206206        cur = &breakpoints[curidx];
    207207
    208         cur->address = (__address) where;
     208        cur->address = (uintptr_t) where;
    209209        cur->flags = flags;
    210210        cur->counter = 0;
     
    236236        if (! (breakpoints[slot].flags & BKPOINT_INSTR)) {
    237237                if ((breakpoints[slot].flags & BKPOINT_CHECK_ZERO)) {
    238                         if (*((__native *) breakpoints[slot].address) != 0)
     238                        if (*((unative_t *) breakpoints[slot].address) != 0)
    239239                                return;
    240240                        printf("**** Found ZERO on address %p ****\n",
     
    242242                } else {
    243243                        printf("Data watchpoint - new data: %p\n",
    244                                *((__native *) breakpoints[slot].address));
     244                               *((unative_t *) breakpoints[slot].address));
    245245                }
    246246        }
     
    316316static void debug_exception(int n, istate_t *istate)
    317317{
    318         __native dr6;
     318        unative_t dr6;
    319319        int i;
    320320       
Note: See TracChangeset for help on using the changeset viewer.