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: RSP handling


Wenbo Yang <wenbo.yang@simplnano.com> writes:
>> but something is strange after the connection created. I set a
>> breakpoint in the main function (br main), but after the connection
>> created the gdb stop at the first instruction of crt0.S.
> Is there anything wrong? Your stub gave GDB where the PC pointed to,
> and GDB printed it out with source code accordingly. You didn't start
> debugging, you were just attaching to the target. The PC you got
> should be the saved PC value while enter exception handler(stub). It
> has little meaning, you can go ahead by "continue".

Right.  When you connect to a target via the remote protocol, GDB
treats that as connecting to a program that's already running; it's
showing you the location where it's currently stopped.


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