From: Jorge Gorbe Date: Tue, 20 Nov 2012 19:07:29 +0000 (+0100) Subject: moved things around X-Git-Url: http://slack.codemaniacs.com/git/?a=commitdiff_plain;h=a72021437f9ad3a422cc1ce053afea3d93a3d135;p=resacon2012.git moved things around --- diff --git a/slides/fascinating.png b/slides/fascinating.png new file mode 100644 index 0000000..ab778ef Binary files /dev/null and b/slides/fascinating.png differ diff --git a/slides/index.html b/slides/index.html index c504e9d..d576414 100644 --- a/slides/index.html +++ b/slides/index.html @@ -79,30 +79,23 @@
  • You can try crazy new ideas :D
  • -
    -

    Extension points

    - -
    - - - -
    -

    Poor man's tracepoints

    +
    +

    OLD extension points

    +
      +
    • Breakpoint actions
    • +
    • Canned sequences as commands
    • +
    • Hook pre and post execution of gdb commands
    • +
    • .gdbinit for autoloading
    • +
    +
    +

    Nothing impressive here

    + +
    +
    +
    +

    Breakpoint actions

    +

    Poor man's tracepoints

     break myfile.cpp:99
     Breakpoint 1 at 0x401193: file myfile.c, line 99.
    @@ -114,13 +107,13 @@ End with a line saying just "end".
     >cont
     >end
     
    -

    - That cont screws single-stepping (solvable with Python, see this blog post) -

    -
    +

    + That cont screws single-stepping (solvable with Python, see this blog post) +

    +
    -
    -

    Custom commands (1/3)

    +
    +

    Canned sequences (1/2)

     (gdb) define plist
     Type commands for definition of "plist".
    @@ -132,11 +125,11 @@ End with a line saying just "end".
      >end
     >end
     
    -
    +
    -
    -

    Custom commands (2/3)

    -

    A more complex example, from PpluX's SLB repo

    +
    +

    Canned sequences (2/2)

    +

    A more complex example, from PpluX's SLB repo

    define luastack
         set $top = lua_gettop($arg0)
    @@ -158,26 +151,55 @@ End with a line saying just "end".
             set $i = $i + 1
         end
     
    +
    -
    +
    +

    Command hooks

    +

    You can also create hooks which run just before or after any gdb command:

    +

    Enter Python

    +
    +

    NEW Extension points

    + +

    Python in GDB

    Hello World

    @@ -295,6 +317,13 @@ DoNothingCommand() # and instance it
    +

    The Python API

    +

    Pretty much every gdb concept is exposed to Python scripts via the API.

    +

    GDB Docs - Python API

    +
    + +
    +

    Demo

    @@ -319,6 +348,12 @@ DoNothingCommand() # and instance it
    +
    +

    Thanks!

    +

    Questions?

    + (Don't forget to check out the links in next slide if you are viewing this at home) +
    +

    Resources

    -
    -

    Thanks!

    -

    Questions?

    -
    - diff --git a/slides/mckayla.jpg b/slides/mckayla.jpg new file mode 100644 index 0000000..1b2fb43 Binary files /dev/null and b/slides/mckayla.jpg differ diff --git a/slides/reactionguys.jpg b/slides/reactionguys.jpg new file mode 100644 index 0000000..0c0816f Binary files /dev/null and b/slides/reactionguys.jpg differ