| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Hi,
I try to use two-machine debug method.
However, according to GDB, my driver seems to crash on its call
to superclass(which belongs to IOUSBFamily).
Here are my settings:
1. target used a debug version of IOUSBFamily
kext.
2. I run "sudo kextload -ls /tmp GHub.kext", and I got a
few .sym including com.apple.iokit.IOUSBFamily.sym. Then I load all
.sym into GDB.
I can set breakpoints on IOUSBDevice etc. but I can't get
the source line number. All I got is its address like 0x0054893c.
If I run backtrace, I will get some token() and its
address.
Is this what it is supposed to do?
When it crashed, it was not crashed on my function but
its parent or some mac-defined functions.
So I can't decide what call went wrong.
The following is the backtrace detail when it crashed.
======================BackTrace
start====================
Program received signal SIGTRAP, Trace/breakpoint
trap.
0x003c6a8c in dtrace_lazy_dofs_add () <=====What's this??? (gdb) bt #0 0x003c6a8c in dtrace_lazy_dofs_add () #1 0x13edbd08 in ?? () #2 0x003c6ecb in dtrace_lazy_dofs_add () #3 0x00385794 in cantrace () #4 0x0053976a in tokens () #5 0x005391b5 in tokens () #6 0x0054b753 in tokens () #7 0x2a0af4b6 in com_kcodes_driver_ghub::start (this=0x2f5c000, provider=0x25efe00) at /Users/kcodeskcodes/Desktop/KCodes/GHub/GHub.cpp:109 #8 0x0038d522 in fill_pipeinfo () #9 0x0038eda1 in ttymodem () #10 0x0038e609 in ttycheckoutq () #11 0x0038fd4e in ttioctl () ======================BackTrace
end====================
To summarize,
What I want to do is to find out on what call
my driver crashed.
Therefore, can I debug IOUSBFamily using GDB? (at least,
GDB should be able to show which line of the source codes)
Thank you.
(If this is too much detail, just skip my
question.)
Pei-Yuan
@KCodes
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Usb mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/usb/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.