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]

[RFA 0/9] Explicit locations v2 - Introduction


Hi,

I would like to resurrect this project from last year.

This patch series introduces "explicit" locations, which allow users to explicitly specify location attributes when setting breakpoints. This feature can be especially handy, for example, when an application defines multiple functions of the same name:

(gdb) break -source file1.c -function multiple_symbols_with_this_name

In this case, gdb will only attempt to set a breakpoint in the given source file. If the given symbol is not defined in the file, gdb will do the usual pending breakpoint query.

This revision is largely the same as the one I posted last year with one notable change: I have implemented probe locations.

Consequently, this API change now supports the following "event locations": linespec, address (formerly "*EXPR"), explicit, and probe.

I have attempted to break up the patch to assist review. The intent is to apply all patches approved. Nonetheless, each patch may be applied sequentially and should not cause any build failures or introduce any test suite regressions.

I have tested each patch on both x86_64 native and native-gdbserver.

Keith


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