Hi Dave,

2007/01/19 11:06:23 -0500, Dave Anderson <[EMAIL PROTECTED]> wrote:
>Ah, OK, so the "-x vmlinux" references above could be
>substituted with "-i config_file".
>
>I'm still curious whether:
>
>(1) the "de-flattening" step could be easily ported to the
>    crash utility so it could be made to read the flattened
>    format file.

Porting the re-arranging (de-flattening) step into the crash utility
is only for the crash utility, so gdb cannot read the flattened format
file. I want a solution for both gdb and the crash utility.

Instead of the crash utility reading the flattened format file,
I think that it is good to create a perl script for re-arranging
flattened format data to a readable dumpfile. Perl script does not
depend on architecture, and a lot of systems have perl command.
User transports the perl script, and he transports a dumpfile to a
remote host with running this script. After completing transportion,
The perl script of a remote host is deleted.

Commandline example:
  The filename of the script is "re-arrange.pl".
  1. Transport the script.
     # scp re-arrange.pl [EMAIL PROTECTED]:re-arrange.pl
  2. Transport a dumpfile. 
     # makedumpfile -F -cd31 -i config /proc/vmcore | ssh [EMAIL PROTECTED] 
"./re-arrange.pl dumpfile"
  3. Delete the script
     # ssh [EMAIL PROTECTED] "rm ./re-arrange.pl"

I created the perl script for re-arranging flattened format data,
and I attached the perl script and a new makedumpfile patch.
An old makedumpfile patch (sent on 2007/01/19) did not support
transporting of a dumpfile between different endian hosts, and I
created a new patch for it. But I have not tested the script
between different endian hosts, because I have only intel systems
(little endian).
If you find problems, please let me know them.


>(2) there can be another option to create an ELF vmcore file
>    from a compressed dumpfile, so that gdb can be used if
>    necessary.

I want to complete SSH transporting support first.
Let's have discussion about the above feature after SSH transporting support.


Thanks
Ken'ichi Ohmichi

Attachment: re-arrange.pl
Description: Binary data

Attachment: ssh_transport_20070126.patch
Description: Binary data

_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to