taskThe GNU Hurd - Tasks: task #6537, Implement ddb/db_elf.c

 
 

task #6537: Implement ddb/db_elf.c

Submitter:  Samuel Thibault <sthibaul>
Submitted:  Tue 20 Feb 2007 12:52:33 AM UTC
   
 
Category:  GNU Mach Should Start On:  Mon 19 Feb 2007 11:00:00 PM UTC
Should be Finished on:  Mon 19 Feb 2007 11:00:00 PM UTC Priority:  * 1 - Later
Status:  None Privacy:  Public
Assigned to:  None Percent Complete:  0%
Open/Closed:  Open Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 29 Jul 2008 09:45:59 PM UTC, comment #6: 

Mmm, it is better indeed, it shows some numbers which are not the
beginning of the functions, but they are still wrong. For instance,
when interrupting execution of dd < /dev/zero > /dev/null, I got

...
ipc_mqueue_receive(104bbf38,0,2000,0,0)+1f1 [ipc_mqueue.c:659]
mach_msg_receive(126bc70,803,2000,10,0)+10a [mach_msg.c:257]

if I resolve the mach_msg_receive point by addr2line (mach_msg_receive
+ 0x10a), I get mach_msg.c:212 instead, which is indeed a place where
ipc_mqueue_receive is called.

Samuel Thibault <sthibaul>
Group administrator
Fri 25 Jul 2008 06:27:59 PM UTC, comment #5: 

Fixed the db_error issue and the line number bug.
Same changelog.

(file #16184)

Andrei Barbu <abarbu>
Group Member
Fri 18 Jul 2008 05:50:41 PM UTC, comment #4: 

2008-07-18 Andrei Barbu   <andrei@0xab.com>

  • ddb/db_elf.c: New file
  • ddb/db_sym.c: ELF prototypes and switch entries
  • ddb/db_sym.h: ELF symbol table type as the default
  • ddb/dwarf2.h: New file
  • ddb/elf32.h: New file
  • ddb/elf64.h: New file
  • elf_common.h: New file
  • elf_generic.h: New file
  • ddb/elf.h: New file
  • i386/i386/elf.h: New file
  • i386/i386at/model_dep.c: Start up the elf backend
  • Makefrag.am: Add ddb/db_elf.c


Andrei Barbu <abarbu>
Group Member
Fri 18 Jul 2008 05:28:59 PM UTC, comment #3: 

This is a rewrite of the elf backend to use dwarf instead of the elf symbols. It adds many features, the two most obvious ones are that it's a lot slower and that line numbers and files work in ddb. This is also a requirement for probe support.

(file #16148)

Andrei Barbu <abarbu>
Group Member
Tue 27 May 2008 06:52:36 PM UTC, comment #2: 

Updated the reflect the discussion on bug-hurd.

(file #15746)

Andrei Barbu <abarbu>
Group Member
Fri 09 May 2008 03:38:24 PM UTC, comment #1: 

Two patches that add this. The first extends symbol_values to take the symbol table as an argument, this is required for ELF. The second adds db_elf.c as well as a whole bunch of support files, enables ELF and adds it to model_dep. It also sets ELF as the default type, I don't think anyone still builds Mach as an a.out.

line_at_pc is not implemented at the moment. The above patch doesn't do any DWARF2 lookups, just symtab. All the other features should be fine.

The ELF headers are from FreeBSD, they have a nice way of dealing with 32/64bit versions so we're 64bit compatible.

(file #15645, file #15646)

Andrei Barbu <abarbu>
Group Member
Tue 20 Feb 2007 12:52:33 AM UTC, original submission:  

For getting useful information from ddb's trace command, ELF symbol lookup should be implemented in ddb/db_elf.c

Samuel Thibault <sthibaul>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #16184:  elf-patch added by abarbu (112KiB - application/octet-stream)
file #16148:  elf-patch added by abarbu (109KiB - application/octet-stream)
file #15747:  changelog-elf-1.patch added by abarbu (1KiB - application/octet-stream)
file #15746:  elf-1.patch added by abarbu (71KiB - application/octet-stream)
file #15645:  symbol_values.patch added by abarbu (1KiB - application/octet-stream)
file #15646:  elf.patch added by abarbu (71KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by abarbu (Updated the item)
  • -email is unavailable- added by sthibaul (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-07-25 abarbu Attached File- Added elf-patch, #16184
    2008-07-18 abarbu Attached File- Added elf-patch, #16148
    2008-05-27 abarbu Attached File- Added changelog-elf-1.patch, #15747
    2008-05-27 abarbu Attached File- Added elf-1.patch, #15746
    2008-05-09 abarbu Attached File- Added symbol_values.patch, #15645
        Attached File- Added elf.patch, #15646

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code