X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fpython%2Fpython.c;h=f4b8fcf534ca540fff46ac04c93cac9cdd6f28ff;hb=003ea5a89ab7e9eaa65cb158a953d63dac2612c6;hp=369a2497809b7b1e82fee6d916a419ef259f293a;hpb=a0eaec95753c0f093f5cb80080ef423030d35edd;p=platform%2Fupstream%2Fgdb.git diff --git a/gdb/python/python.c b/gdb/python/python.c index 369a249..f4b8fcf 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1,6 +1,6 @@ /* General python/gdb code - Copyright (C) 2008-2014 Free Software Foundation, Inc. + Copyright (C) 2008-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -27,7 +27,6 @@ #include "objfiles.h" #include "value.h" #include "language.h" -#include "exceptions.h" #include "event-loop.h" #include "serial.h" #include "readline/tilde.h" @@ -86,7 +85,6 @@ const struct extension_language_defn extension_language_python = #ifdef HAVE_PYTHON -#include "libiberty.h" #include "cli/cli-decode.h" #include "charset.h" #include "top.h" @@ -1755,9 +1753,14 @@ message == an error message without a stack will be printed."), || gdbpy_initialize_signal_event () < 0 || gdbpy_initialize_breakpoint_event () < 0 || gdbpy_initialize_continue_event () < 0 + || gdbpy_initialize_inferior_call_pre_event () < 0 + || gdbpy_initialize_inferior_call_post_event () < 0 + || gdbpy_initialize_register_changed_event () < 0 + || gdbpy_initialize_memory_changed_event () < 0 || gdbpy_initialize_exited_event () < 0 || gdbpy_initialize_thread_event () < 0 || gdbpy_initialize_new_objfile_event () < 0 + || gdbpy_initialize_clear_objfiles_event () < 0 || gdbpy_initialize_arch () < 0 || gdbpy_initialize_xmethods () < 0) goto fail; @@ -1953,6 +1956,14 @@ a boolean indicating if name is a field of the current implied argument\n\ METH_VARARGS | METH_KEYWORDS, "lookup_global_symbol (name [, domain]) -> symbol\n\ Return the symbol corresponding to the given name (or None)." }, + + { "lookup_objfile", (PyCFunction) gdbpy_lookup_objfile, + METH_VARARGS | METH_KEYWORDS, + "lookup_objfile (name, [by_build_id]) -> objfile\n\ +Look up the specified objfile.\n\ +If by_build_id is True, the objfile is looked up by using name\n\ +as its build id." }, + { "block_for_pc", gdbpy_block_for_pc, METH_VARARGS, "Return the block containing the given pc value, or None." }, { "solib_name", gdbpy_solib_name, METH_VARARGS,