Thomas (boggyb) wrote,

  • Mood:

More gdb fail

This set of commands, run in a fresh gdb instance and intended to set a conditional watchpoint, results in gdb segfaulting leaving an orphaned debuggee running:

(gdb) watch function::variable if function::variable == 0xff
(gdb) run

This set of commands, again in a fresh gdb instance, works:

(gdb) info address variable
(gdb) info address function::variable
(gdb) whatis variable
(gdb) whatis function::variable
(gdb) watch function::variable if function::variable == 0xff
(gdb) run

Tags: linux, programming

  • Pancakes!

    Since people have been prodding me for an update, here's a pancake-themed one (as everyone's blogging about pancakes today!). Unlike in the linked…

  • More upgrades!

    For about a year and a half now I've been planning an upgrade to my desktop, Nyx. It currently runs a Core 2 Quad Q6600 so an upgrade is a little…

  • Snap, crackle, pop (again)

    [Adam Savage voice] "Well there's your problem!" So while cooking supper the other day the oven went snap, crackle, and pop, and the magic smoke…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.