LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2009, 04:21 PM   #1
prima8
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
gdb doesn't show correct string data


I am in Linux using gdb on an .exe file and trying to get it to print out the value of a string.
I used p /x nameofregister to get the address, then x /s address to get the string, but what I get comes out like: "\204 (followed by a bunch of strange symbols)"
This happens even to data that I know is a string with just regular text. Is there a command to convert this into something useful? Or maybe a different command I can use?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
any gdb script to parse string? jackandking Linux - Software 3 12-07-2008 11:19 PM
Oracle toald can't show me the data wanghao Linux - Server 1 05-27-2008 09:01 AM
put_user doesn't pass the correct data rojak Linux - General 0 08-15-2006 04:03 AM
tcpdump wont show the correct amount of traffic in single port scan? positrox Linux - Networking 0 08-05-2006 09:04 AM
why dont seach results show search string? Fascistchicken LQ Suggestions & Feedback 6 04-25-2004 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration