This is the mail archive of the gdb@sources.redhat.com 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: behavior of finish within command set in gdb5.0


> 1. In gdb4.17 (netbsd), it results in a behavior where gdb stops at the
> function, prints the return value, and contiues.
> 2. In gdb5.0 (netbsd), it stops at the function, prints the return value,
> and then stops at the gdb prompt, expecting input from the user.
> 
> What's the correct behavior of finish? (1) or (2)?

The correct behavior, that is the behavior documented in the GDB
documentation, is (2). The documentation also explains why they chose
(2).

-- 
Joel


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