This is the mail archive of the gdb-prs@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]

[Bug python/19288] New: need a way to see if an address is covered by some existing object


https://sourceware.org/bugzilla/show_bug.cgi?id=19288

            Bug ID: 19288
           Summary: need a way to see if an address is covered by some
                    existing object
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

I'm writing an unwinder in Python.

>From the docs it seems that Python unwinders are run first.
But, I don't want that -- I only want my unwinder to be considered
when a PC is not covered by some existing objfile.

So, I tried to implement an early exit.  This turns out to be
hard to do.

solib_name does not work for things in the main executable.
(Maybe fixing this one is the way to go.)

block_for_pc does not work for libraries without debuginfo.

find_pc_line doesn't differentiate between not-covered and no-debuginfo.

Even the desperation try fails:

    return not gdb.execute('info symbol 0x%x' % pc, to_string =
True).startswith('No symbol matches')

...causing a crash in value_of_register_lazy.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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