[PATCH] [PR gdb/23105] Core file error 'Cannot access memory at address' on FreeBSD

Rajendra SY rajendra.sy@gmail.com
Tue Sep 4 06:56:00 GMT 2018


John,

Thanks for the response.
Please let me know the PR which will fix "NT_PROCSTAT_AUXV" notes. I
will add myself to notify list.

Thanks
Rajendra

On Thu, Aug 23, 2018 at 4:16 PM, John Baldwin <jhb@freebsd.org> wrote:
> On 8/1/18 4:13 PM, Rajendra SY wrote:
>> Problem:
>> No auxiliary vector info populated in the note section of FreeBSD core.
>>
>> Cause:
>> FreeBSD target is missing auxiliary vector info.
>>
>> Tests:
>> FAIL: gdb.base/gcore-relro-pie.exp: x/i $pc
>> FAIL: gdb.base/gcore-relro-pie.exp: unstripped + core ok
>>
>> gdb/ChangeLog:
>> 2018-08-01  Rajendra S Y  <rajendra.sy@gmail.com>
>>
>> PR gdb/23105
>> * fbsd-tdep.c (fbsd_make_corefile_notes):
>
> Sorry for the delay, Simon Ser has an existing patch that adds
> NT_PROCSTAT_AUXV and NT_PROCSTAT_VMMAP notes that match the native
> format used by FreeBSD's kernel.  Once that is committed we can
> see if that fixes this test.  In general we try to have 'gcore'
> in gdb on FreeBSD generate the same notes FreeBSD's kernel does
> (I still have some work to do there so that the register set
> notes consistently use "FreeBSD" as the note description instead
> of "CORE".)
>
> --
> John Baldwin



More information about the Gdb-patches mailing list