Commit 445bdbc2d612d9ef4088d4d14239f6b7b1a501e2
1 parent
1f340e3b
Exists in
master
and in
3 other branches
Tentando identificar segfault em win64
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
screen.c
| @@ -105,7 +105,6 @@ static void addch(H3270 *session, int baddr, unsigned char c, unsigned short att | @@ -105,7 +105,6 @@ static void addch(H3270 *session, int baddr, unsigned char c, unsigned short att | ||
| 105 | session->text[baddr].attr = attr; | 105 | session->text[baddr].attr = attr; |
| 106 | 106 | ||
| 107 | session->update(session,baddr,c,attr,baddr == session->cursor_addr); | 107 | session->update(session,baddr,c,attr,baddr == session->cursor_addr); |
| 108 | - | ||
| 109 | } | 108 | } |
| 110 | 109 | ||
| 111 | LIB3270_EXPORT int lib3270_get_element(H3270 *h, int baddr, unsigned char *c, unsigned short *attr) | 110 | LIB3270_EXPORT int lib3270_get_element(H3270 *h, int baddr, unsigned char *c, unsigned short *attr) |
| @@ -303,7 +302,9 @@ void screen_update(H3270 *session, int bstart, int bend) | @@ -303,7 +302,9 @@ void screen_update(H3270 *session, int bstart, int bend) | ||
| 303 | a = color_from_fa(fa); | 302 | a = color_from_fa(fa); |
| 304 | fa_addr = find_field_attribute(session,bstart); // may be -1, that's okay | 303 | fa_addr = find_field_attribute(session,bstart); // may be -1, that's okay |
| 305 | 304 | ||
| 305 | +#ifdef WIN32 | ||
| 306 | trace("%s start=%d end=%d",__FUNCTION__,bstart,bend); | 306 | trace("%s start=%d end=%d",__FUNCTION__,bstart,bend); |
| 307 | +#endif // WIN32 | ||
| 307 | 308 | ||
| 308 | for(baddr = bstart; baddr < bend; baddr++) | 309 | for(baddr = bstart; baddr < bend; baddr++) |
| 309 | { | 310 | { |
| @@ -350,6 +351,10 @@ void screen_update(H3270 *session, int bstart, int bend) | @@ -350,6 +351,10 @@ void screen_update(H3270 *session, int bstart, int bend) | ||
| 350 | } | 351 | } |
| 351 | } | 352 | } |
| 352 | 353 | ||
| 354 | +#ifdef WIN32 | ||
| 355 | + trace("%s first=%d last=%d",__FUNCTION__,first,last); | ||
| 356 | +#endif // WIN32 | ||
| 357 | + | ||
| 353 | if(first >= 0) | 358 | if(first >= 0) |
| 354 | { | 359 | { |
| 355 | int len = (last - first)+1; | 360 | int len = (last - first)+1; |
| @@ -361,6 +366,9 @@ void screen_update(H3270 *session, int bstart, int bend) | @@ -361,6 +366,9 @@ void screen_update(H3270 *session, int bstart, int bend) | ||
| 361 | len++; | 366 | len++; |
| 362 | } | 367 | } |
| 363 | 368 | ||
| 369 | +#ifdef WIN32 | ||
| 370 | + trace("%s first=%d last=%d len=%d changed=%p",__FUNCTION__,first,last,len,session->changed); | ||
| 371 | +#endif // WIN32 | ||
| 364 | session->changed(session,first,len); | 372 | session->changed(session,first,len); |
| 365 | } | 373 | } |
| 366 | 374 |