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 rust/22562] New: investigate linespec issues with rust


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

            Bug ID: 22562
           Summary: investigate linespec issues with rust
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: rust
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

Ted reported this behavior from gdb 8.0:

(gdb) info line webrender::resource_cache::ResourceCache::update_resources
Line 274 of
"/builds/worker/workspace/build/src/gfx/webrender/src/resource_cache.rs"
   starts at address 0x7fffe8c413e0
<webrender::resource_cache::ResourceCache::update_resources>
   and ends at 0x7fffe8c41413
<webrender::resource_cache::ResourceCache::update_resources+51>.
(gdb) disassemble /m webrender::resource_cache::ResourceCache::update_resources
No type "resource_cache" within class or namespace "webrender".


Quoting the symbol name made it work ok:

(gdb) disassemble /m
*'webrender::resource_cache::ResourceCache::update_resources'
Dump of assembler code for function
webrender::resource_cache::ResourceCache::update_resources:
99          fn remove(&mut self, key: ImageKey) -> Option<ImageResource> {
   0x00007fffe8c41da9 <+2505>:  mov    %r10,%r8
   0x00007fffe8c41dac <+2508>:  shr    $0x20,%r8



So perhaps some kind of linespec work is needed for Rust.

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