#2012 closed defect (fixed)

mdump and wdump shell cmds handle length arg incorrectly; add ldump cmd

Reported by: Ric Claus Owned by: Chris Johns
Priority: normal Milestone: 4.11
Component: shell Version: 4.10
Severity: normal Keywords:
Cc: joel.sherrill@…, gedare@… Blocked By:
Blocking:

Description

In RTEMS version 4.10.2, neither "mdump" nor "wdump" handle their length arguments correctly.

Attached is a rework of main_mdump.c. This version makes main_mwdump.c obsolete. It also provides a new command, called "ldump", that dumps in units of longwords. Furthermore, it also provides an addition to the RTEMS API called rtems_mdump(void* addr, int max, int sz) to allow easy dumping from application code.

Attachments (8)

main_mdump.c (5.1 KB) - added by Ric Claus on Feb 2, 2012 at 6:15:18 PM.
mdump C file
memory.t (14.6 KB) - added by Ric Claus on Feb 2, 2012 at 6:20:26 PM.
Updated memory documentation
main_mdump.diff (6.1 KB) - added by Ric Claus on Feb 2, 2012 at 7:02:33 PM.
Patchfile for main_mdump.c
memory.diff (6.3 KB) - added by Ric Claus on Feb 2, 2012 at 7:03:38 PM.
Patchfile for memory.t
shellconfig_h.diff (924 bytes) - added by Ric Claus on Feb 2, 2012 at 7:04:22 PM.
Patchfile for shellconfig.h
Makefile_am.diff (635 bytes) - added by Ric Claus on Feb 2, 2012 at 7:18:23 PM.
Patchfile for libmisc Makefile.am
ChangeLog_cpukit.diff (40.8 KB) - added by Ric Claus on Feb 2, 2012 at 7:40:35 PM.
cpukit ChangeLog? patchfile
ChangeLog_doc.diff (2.0 KB) - added by Ric Claus on Feb 2, 2012 at 7:41:09 PM.
doc ChangeLog? patchfile

Download all attachments as: .zip

Change History (14)

Changed on Feb 2, 2012 at 6:15:18 PM by Ric Claus

Attachment: main_mdump.c added

mdump C file

Changed on Feb 2, 2012 at 6:20:26 PM by Ric Claus

Attachment: memory.t added

Updated memory documentation

comment:1 Changed on Feb 2, 2012 at 6:20:54 PM by Ric Claus

see_also: https://www.rtems.org/bugzilla/show_bug.cgi?id=2001

comment:2 Changed on Feb 2, 2012 at 6:26:13 PM by Gedare

Cc: Gedare added

comment:3 Changed on Feb 2, 2012 at 6:52:51 PM by Joel Sherrill

Summary: mdump and wdump shell commands have bugsmdump and wdump shell cmds handle length arg incorrectly; add ldump cmd

Changed on Feb 2, 2012 at 7:02:33 PM by Ric Claus

Attachment: main_mdump.diff added

Patchfile for main_mdump.c

comment:4 Changed on Feb 2, 2012 at 7:02:33 PM by Ric Claus

attachments.isobsolete: 01, 1

Changed on Feb 2, 2012 at 7:03:38 PM by Ric Claus

Attachment: memory.diff added

Patchfile for memory.t

Changed on Feb 2, 2012 at 7:04:22 PM by Ric Claus

Attachment: shellconfig_h.diff added

Patchfile for shellconfig.h

Changed on Feb 2, 2012 at 7:18:23 PM by Ric Claus

Attachment: Makefile_am.diff added

Patchfile for libmisc Makefile.am

Changed on Feb 2, 2012 at 7:40:35 PM by Ric Claus

Attachment: ChangeLog_cpukit.diff added

cpukit ChangeLog? patchfile

Changed on Feb 2, 2012 at 7:41:09 PM by Ric Claus

Attachment: ChangeLog_doc.diff added

doc ChangeLog? patchfile

comment:5 Changed on Feb 2, 2012 at 8:11:31 PM by Joel Sherrill

Resolution: fixed
Status: newclosed

comment:6 Changed on Feb 8, 2012 at 10:53:49 PM by Chris Johns

Replying to comment:17:

Chris is working on the server error.

Not me. Maybe Jeff was in the middle of the yum upgrade.

Note: See TracTickets for help on using tickets.