Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#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 02/02/12 at 18:15:18.
mdump C file
memory.t (14.6 KB) - added by Ric Claus on 02/02/12 at 18:20:26.
Updated memory documentation
main_mdump.diff (6.1 KB) - added by Ric Claus on 02/02/12 at 19:02:33.
Patchfile for main_mdump.c
memory.diff (6.3 KB) - added by Ric Claus on 02/02/12 at 19:03:38.
Patchfile for memory.t
shellconfig_h.diff (924 bytes) - added by Ric Claus on 02/02/12 at 19:04:22.
Patchfile for shellconfig.h
Makefile_am.diff (635 bytes) - added by Ric Claus on 02/02/12 at 19:18:23.
Patchfile for libmisc Makefile.am
ChangeLog_cpukit.diff (40.8 KB) - added by Ric Claus on 02/02/12 at 19:40:35.
cpukit ChangeLog? patchfile
ChangeLog_doc.diff (2.0 KB) - added by Ric Claus on 02/02/12 at 19:41:09.
doc ChangeLog? patchfile

Download all attachments as: .zip

Change History (14)

Changed on 02/02/12 at 18:15:18 by Ric Claus

Attachment: main_mdump.c added

mdump C file

Changed on 02/02/12 at 18:20:26 by Ric Claus

Attachment: memory.t added

Updated memory documentation

comment:1 Changed on 02/02/12 at 18:20:54 by Ric Claus

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

comment:2 Changed on 02/02/12 at 18:26:13 by Gedare Bloom

Cc: Gedare Bloom added

comment:3 Changed on 02/02/12 at 18:52:51 by Joel Sherrill

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

Changed on 02/02/12 at 19:02:33 by Ric Claus

Attachment: main_mdump.diff added

Patchfile for main_mdump.c

comment:4 Changed on 02/02/12 at 19:02:33 by Ric Claus

attachments.isobsolete: 01, 1

Changed on 02/02/12 at 19:03:38 by Ric Claus

Attachment: memory.diff added

Patchfile for memory.t

Changed on 02/02/12 at 19:04:22 by Ric Claus

Attachment: shellconfig_h.diff added

Patchfile for shellconfig.h

Changed on 02/02/12 at 19:18:23 by Ric Claus

Attachment: Makefile_am.diff added

Patchfile for libmisc Makefile.am

Changed on 02/02/12 at 19:40:35 by Ric Claus

Attachment: ChangeLog_cpukit.diff added

cpukit ChangeLog? patchfile

Changed on 02/02/12 at 19:41:09 by Ric Claus

Attachment: ChangeLog_doc.diff added

doc ChangeLog? patchfile

comment:5 Changed on 02/02/12 at 20:11:31 by Joel Sherrill

Resolution: fixed
Status: newclosed

comment:6 Changed on 02/08/12 at 22:53:49 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.