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 24700]


On Thu, Mar 01, 2007 at 06:56:40PM -0300, Thiago Jung Bauermann wrote:
> In the testcase mentioned here, GDB wants to allocate memory in the
> inferior so that it can set the string's value. It's GDB that's calling
> malloc and not the inferior, so the inferior's PC is not anywhere near
> malloc (unless we're lucky), as far as I know...

That doesn't have anything to do with my question :-)  find_pc_section
does the PC -> section mapping pretty much the way the new code you've
duplicated does it.

-- 
Daniel Jacobowitz
CodeSourcery


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