how to breakin gdb on overflow error

Discussion in 'C Programming' started by bkhote, Jan 10, 2006.

  1. bkhote

    bkhote Guest

    Hi,
    I need to find places in the code where a short int ( 2 bytes) is
    assigned value bigger
    than 65K. I remember this will cause overflow flag in cpu control word
    to set.
    How do I see this and break in gdb? .. some kind of trappings.
    Thanks
    B K.
     
    bkhote, Jan 10, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nick Leeson

    Help Interpreting a GDB error msg

    Nick Leeson, Jul 2, 2003, in forum: C Programming
    Replies:
    0
    Views:
    739
    Nick Leeson
    Jul 2, 2003
  2. Codas obfuscatus

    NAN error and debugging with GDB

    Codas obfuscatus, Jan 6, 2004, in forum: C Programming
    Replies:
    10
    Views:
    1,567
    Peter Nilsson
    Jan 8, 2004
  3. Surendra
    Replies:
    0
    Views:
    728
    Surendra
    Mar 23, 2006
  4. bkhote
    Replies:
    6
    Views:
    399
    Mark McIntyre
    Jan 10, 2006
  5. Replies:
    1
    Views:
    2,625
    Gianni Mariani
    Dec 6, 2006
  6. william

    Segmentation Fault Error reported by GDB

    william, Mar 12, 2007, in forum: C Programming
    Replies:
    4
    Views:
    475
    CBFalconer
    Mar 12, 2007
  7. seba
    Replies:
    1
    Views:
    1,855
    mlimber
    Mar 22, 2007
  8. Timothy Madden
    Replies:
    1
    Views:
    2,154
    Timothy Madden
    Sep 17, 2009
Loading...