This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Extend gdb.Breakpoint to allow setting a breakpoint at the current execution address


>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:

Siva> I didn't want to use $pc explicitly as the manual only says "on most
Siva> machines" with regard to its meaning.  I do not know of any machine
Siva> where PC does not mean the program counter though.

Yeah.

Siva> What are the other ways to get the value of the PC?

gdb.Frame.pc is the simplest.  You can pick any frame, but for commands
the selected frame is the one that users expect.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]