This is the mail archive of the gdb-patches@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: [patch] gdb_unload - account for another termination message


On Tuesday 15 March 2011 12:50:58, Phil Muldoon wrote:
> +       -re "A program is being debugged already.*Are you sure you want to change the file?.*y or n. $" {
> +           send_gdb "y\n"
>             exp_continue
>         }

'?' in a regex has special meaning.  You want to escape it, replace
it with '.' (xxx file. .y or n.),  or just remove it, as the .* will
eat it.

Otherwise okay, thanks.

-- 
Pedro Alves


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