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]

behavior of finish within command set in gdb5.0


I am trying to specify command set for a breakpoint, like this:

break funtion_name
commands
 finish
continue
end

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)?

Thanks
Smita






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