This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Use -qualified flag when setting temporary breakpoint in start command
- From: Tom Tromey <tom at tromey dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>
- Cc: gdb-patches at sourceware dot org, Simon Marchi <simon dot marchi at efficios dot com>
- Date: Thu, 25 Apr 2019 08:10:32 -0600
- Subject: Re: [PATCH] Use -qualified flag when setting temporary breakpoint in start command
- References: <20190409025557.28846-1-simon.marchi@polymtl.ca>
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> When using the "start" command, GDB puts a temporary breakpoint on the
Simon> "main" symbol (we literally invoke the tbreak command).
[...]
Simon> The dummiest, most straightforward solution is to add -qualified when
Simon> invoking tbreak. With this patch, "start" creates a single-location
Simon> breakpoint, as expected.
This seems like a good idea to me, with the possible caveat that it
should be tested for Rust and Ada main programs as well. (Though
probably there are already test cases covering this...?)
thanks,
Tom