Go to file
Arnaldo Carvalho de Melo 3c36b7488f [CLASSES]: Emit definitions for DW_TAG_subroutine_type
Now that we have its parameter list we must call cus__emit_ftype_definitions in
cus__emit_typedef_definitions when we find DW_TAG_subroutine tags.

This fixes this problem with ctracer:

[acme@newtoy ctracer_example]$ make
<SNIP>
  CC [M]  /home/acme/pahole/ctracer_example/ctracer.o
/home/acme/pahole/ctracer_example/ctracer.c:21: warning: 'struct pt_regs' declared inside parameter list
/home/acme/pahole/ctracer_example/ctracer.c:21: warning: its scope is only this definition or declaration, which is probably not what you want
/home/acme/pahole/ctracer_example/ctracer.c:21: warning: 'struct kprobe' declared inside parameter list
<SNIP>

I.e. the struct pt_regs and kprobe forward declarations are done earlier.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
2007-01-02 22:49:19 -02:00
cmake/modules [CMAKE]: Fix build on debian unstable 2006-12-20 10:16:45 -02:00
CMakeLists.txt [DTAGNAMES]: 6th dwarf 2006-12-28 14:03:42 -02:00
README [README]: Add information about packages required to build 2006-12-20 10:28:44 -02:00
README.ctracer [CTRACER]: New tool 2006-12-20 12:16:16 -02:00
classes.c [CLASSES]: Emit definitions for DW_TAG_subroutine_type 2007-01-02 22:49:19 -02:00
classes.h [CLASSES]: Use just one tags list in struct lexblock 2007-01-02 22:26:01 -02:00
codiff.c [CLASSES]: Pave the way to reuse DW_TAG_subprogram prototype code 2006-12-30 16:34:20 -02:00
ctracer.c [CLASSES]: Add missing ftype__has_parm_of_type prototype 2007-01-02 02:37:24 -02:00
dtagnames.c [CLASSES]: Become struct tag centric 2006-12-29 15:28:58 -02:00
list.h Repository creation. 2006-10-24 20:42:39 -03:00
pahole.c [CLASSES]: Become struct tag centric 2006-12-29 15:28:58 -02:00
pfunct.c [CLASSES]: Add missing ftype__has_parm_of_type prototype 2007-01-02 02:37:24 -02:00
prefcnt.c [CLASSES]: Use just one tags list in struct lexblock 2007-01-02 22:26:01 -02:00

README

Build instructions:

1. install cmake
2. mkdir build
3. cd build
4. cmake ..
5. make

Known to work scenarios:

Mandriva Cooker:

cmake 2.4.5-1mdv2007.1
libelfutils1-devel 0.123-1mdv2007.1

Debian Unstable:

cmake 2.4.5-1
libdw-dev 0.123-2