comparison m68k_core.c @ 2399:68eba54b60f7

Oops, wrong type in sizeof for m68k_add_watchpoint
author Michael Pavone <pavone@retrodev.com>
date Sat, 23 Dec 2023 22:11:43 -0800
parents bf4f1a8d1d48
children c97609fe8315
comparison
equal deleted inserted replaced
2398:8445e814d495 2399:68eba54b60f7
931 } 931 }
932 } 932 }
933 m68k_enable_watchpoints(context); 933 m68k_enable_watchpoints(context);
934 if (context->wp_storage == context->num_watchpoints) { 934 if (context->wp_storage == context->num_watchpoints) {
935 context->wp_storage = context->wp_storage ? context->wp_storage * 2 : 4; 935 context->wp_storage = context->wp_storage ? context->wp_storage * 2 : 4;
936 context->watchpoints = realloc(context->watchpoints, context->wp_storage * sizeof(m68k_breakpoint)); 936 context->watchpoints = realloc(context->watchpoints, context->wp_storage * sizeof(m68k_watchpoint));
937 } 937 }
938 const memmap_chunk *chunk = find_map_chunk(address, &context->options->gen, 0, NULL); 938 const memmap_chunk *chunk = find_map_chunk(address, &context->options->gen, 0, NULL);
939 context->watchpoints[context->num_watchpoints++] = (m68k_watchpoint){ 939 context->watchpoints[context->num_watchpoints++] = (m68k_watchpoint){
940 .start = address, 940 .start = address,
941 .end = end, 941 .end = end,