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: [Core] [RFA/DWARF2] Handle nested subprograms in CU pc bound calculation



On 01 Oct 2008, at 18:39, Joel Brobecker wrote:


The answer to the question above lies in the Pascal parser. But when
there are homonyms, how do you specify in your program exactly which
one you mean?

unitname.functionname


And does GDB provide the same method for distinguishing
these homonyms?

I don't think so. The main problem is that there is no common way of mangling procedure/function names in Pascal. FPC and GPC mangle them in different ways, and as far as I know gdb has no support to demangle either (it definitely does not support demangling FPC names).


For this reason, I always use either symbol names or sourcefile:linenr to place breakpoints.


Jonas



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