binutils-gdb/gdb/python
Tom Tromey a8e1e2aaf8 Set __file__ when source'ing a Python script
This patch arranges to set __file__ when source'ing a Python script.
This fixes a problem that was introduced by the "source" rewrite, and
then pointed out by Lancelot Six.

Reviewed-by: Lancelot Six <lancelot.six@amd.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
2024-03-18 07:20:14 -06:00
..
lib/gdb Add return value to DAP scope 2024-03-08 10:50:13 -07:00
py-all-events.def
py-arch.c
py-auto-load.c
py-block.c
py-bpevent.c
py-breakpoint.c Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
py-cmd.c
py-connection.c
py-continueevent.c
py-dap.c Fix gdb.interrupt race 2024-02-28 09:08:16 -07:00
py-disasm.c
py-event-types.def
py-event.c
py-event.h
py-events.h
py-evtregistry.c
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c
py-frame.c
py-framefilter.c
py-function.c
py-gdb-readline.c
py-inferior.c Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
py-infevents.c
py-infthread.c Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
py-instruction.c
py-instruction.h
py-lazy-string.c
py-linetable.c
py-membuf.c
py-mi.c
py-micmd.c
py-newobjfileevent.c
py-objfile.c
py-param.c
py-prettyprint.c
py-progspace.c
py-record-btrace.c
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c
py-record.h
py-ref.h
py-registers.c
py-signalevent.c
py-stopevent.c Export "finish" return value to Python 2024-03-08 10:50:12 -07:00
py-stopevent.h
py-symbol.c
py-symtab.c
py-threadevent.c
py-tui.c
py-type.c
py-uiout.h
py-unwind.c
py-utils.c [gdb/python] Use gdbpy_err_fetch::{type,value} as getters 2024-03-09 16:13:10 +01:00
py-value.c Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
py-varobj.c
py-xmethods.c
python-config.py
python-internal.h Remove 'if' from GDB_PY_HANDLE_EXCEPTION 2024-03-14 08:57:00 -06:00
python.c Set __file__ when source'ing a Python script 2024-03-18 07:20:14 -06:00
python.h