2011-11-15 Pedro Alves <pedro@codesourcery.com>
authorLuis Machado <luisgpm@br.ibm.com>
Tue, 15 Nov 2011 13:17:05 +0000 (13:17 +0000)
committerLuis Machado <luisgpm@br.ibm.com>
Tue, 15 Nov 2011 13:17:05 +0000 (13:17 +0000)
commit865ecab4b2b7d6efeaec3072ee843d2d830d2dae
tree2a17c5ab92a7196613bac62de02b19c000c30465
parent080f9e4f20da18de6c34ef23a9a015ba81c5d6e7
2011-11-15  Pedro Alves  <pedro@codesourcery.com>
    Luis Machado  <lgustavo@codesourcery.com>

* auxv.c: Include observer.h.
(auxv_inferior_data_cleanup): New.
(invalidate_auxv_cache_inf): New.
(invalidate_auxv_cache): New.
(get_auxv_inferior_data): New.
(auxv_inferior_data): New static global.
(auxv_info): New structure.
(target_auxv_search): Use get_auxv_inferior_data instead of
target_read_alloc and don't free cached buffers.
(fprint_target_auxv): Likewise
(_initialize_auxv): Register per-inferior auxv cache and register
observers to invalidate auxv cache when needed.
gdb/ChangeLog
gdb/auxv.c