473,474 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to view Visual Studio *.pdb?

16 New Member
hi all,
i know that the file *.pdb for my project contains all information about global variables address.
i wana to know and view those information for some purposes.
Oct 11 '11 #1
11 4016
johny10151981
1,059 Top Contributor
pdb file get created during compilation time. may I ask why you want to do that??
Oct 12 '11 #2
sedefy
16 New Member
i need to know the relative addresses of my global variables,so that while my programm running i can change the value of those addresses and control the running of my programm.
because my program is a beta for an embeded control software that will be loadded to the chip after completing the testing,so i need to extract all debugging information and i know that is stored in the pdb file by the visual studio,so i wana a viwer for this file?thanks
Oct 12 '11 #3
johny10151981
1,059 Top Contributor
It does not make sense..
If you want to control your memory address then look for the relative way, the way you are looking for is not convenient.

The address you want to change will be chosen in runtime. you have nothing to do with that.

I dont know your embedded device or the operating system of that device, but If you want to set(Not change) a address as global address then you will have to do it programmatically. May be defining a pointer type variable and then set the address directly.

But If you want to access memory address of other software then Follow the link you might find a way out.
Oct 12 '11 #4
sedefy
16 New Member
ok i will tell you the whole story
i want to make an operating system,dispatcher and application programmes,loaded into a microcontroller,this micro controller will be conected to rs232,via this serial port i will send command,those commands can be handeled bymy RTOS,thos command will be in format
set memory address to a certain valuethis memory address will be global variable
that is all,so to set the global variable x,to control my program flow after running in the microprocessor,i need to know the absolute address of this variable to write directly to the memory
any way
anyone knows how to view this pdb file?
Oct 12 '11 #5
johny10151981
1,059 Top Contributor
Just let me know this..
Are you sure that your visual studio is the right tools for your embedded device??

What Micro-controller are you using?
Oct 13 '11 #6
sedefy
16 New Member
ok how to know the realtive address for all my global variables
whow to view the pdb file

i know that the vs2010 is not suitable but i will use it because it is easy,at the end i will but my code in an emulator,then burn it to my controller,so simply plz stop asking more questions and just give answer,many thanks
Oct 13 '11 #7
Banfa
9,065 Recognized Expert Moderator Expert
You would do well to listen to johny10151981 since he is trying to understand your problem and find a workable solution in response to your somewhat strange question.

All of his questions are relevant to the answer to your question and the reason he is asking them is because at first glance it appears there is no reason to do what you are asking.

Knowing the relative memory address of a variable in a Windows process is pointless because on Windows that would be the address in the processes virtual memory space and you just don't have access to that.

Knowing the address of a variable in the memory space of a microprocessor so that you can examine/make changes to it does make sense. However knowing how to decode a pdb file will get you no closer to be able to do this which is why johny10151981 is asking about the tools you are using. pdb files are Microsoft specific, as far as I am aware, decoding one will give you no information about how the memory of your micro-controller is laid out (and as I have already stated is fairly useless on Windows too).

You need to get whatever tools you would use to compile your code for the micro-controller. What you are likely to find is that the linker for the micro-controller tool-set will have an option to output a MAP file. This may well contain the information you need since the map file tends to list the location of items in memory including functions/objects and memory.

On most of the platforms I have used the map file is human readable (i.e. text)
Oct 14 '11 #8
sedefy
16 New Member
hi all
you Banfa and MrMrjohny10151981 are absolutely right,i know that
i am now in the developing phase
i finished my dispatcher and know developing command interaction module
this module will interact with the running program in the micro controller and change some global variables,which will control the flow of programmes and dispatcher in the microcontroller
but befroe downloading my code to microcontroller i need to test my algorithm first
and i test it under windows without the microcontroller at all
so i need to view it just to use it in the testing phase
i am so appriciated to all of you,trying helping me.
also if you have any advice in my way of coding please tellme
Oct 14 '11 #9
johny10151981
1,059 Top Contributor
For your testing help we need to know what micro-controller you are using. I worked with PIC series micro-controller. It provides a software not just to compile but also to develop.

One thing you must know, compiler vary from processor to processor.

If I give an example of x86 machine(compatible) and another example from PIC16F84 Machine then you might understand.

Expand|Select|Wrap|Line Numbers
  1. //x86 machine add instruction 
  2. //var a, var b, save in var c
  3. mov ax, a
  4. add ax, b
  5. mov c, ax
  6. // on the other hand pic series
  7. movf a
  8. addwf b,w //w is not operand here
  9. movwf c
  10. //pic
  11.  
Now what is the different between two processor one processor can take two operand other is only one. x86 processor is 32 bit wide instrction set, pic is 14 bit instruction set.

moreover your mic-controller may not have enough memory to load program,

so you can use VS to get the intellisense support but for compiling and debugging you must have to use the proper tools
Oct 14 '11 #10
sedefy
16 New Member
thanks johny10151981
you know hit the target
up till now i didnt choose thr microcontroller and i dont know how to choose,what to do
i need a micro controller that support my programm by
have an EPROM not less than 1M
has a WDT
has an RS232
also i dont know how to start my first microcontroller steps what to what to buy,what compiler
could you give me your advise please
Oct 15 '11 #11
johny10151981
1,059 Top Contributor
You need a micro-controller that support your purpose not your program.

you have a EPROM, WDT, RS232 and they are not the requirement of the project.
Create your purpose properly.

Now, If you ask what type of micro-controller you should use, in general it completely depends on your project. The thing is, I am familial with two micro-controller ATMEL and PIC. There is also other micro-controller. Even if you want you can develop your system using x86 processor.

as a matter of fact lots of issue is involved with choosing your right process,
such as several PIC micro-controller provide WDT, RS232, USB and so on, same thing is also available in ATMEL.

Lots of other issue also need to in consideration, like size of program

As Example pic16f84 has only 1024 words of program memory
68 bytes of Data RAM
I dont know how much data ram you need,
Also it has only 13 output port and its not typical computer port, its only output pic, that can used for both serial and parallel data I/O, so I simply cannot suggest you what micro-controller you should use. But If you want to learn micro-controller. this is not the right place. definitely the way you are doing is wrong.
Oct 17 '11 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dave Taylor | last post by:
I'm trying to create a simple Schema and associated document in Visual Studio that will store information regarding units and conversion (meters, feet, inches, degrees C, F, K, etc.) I create a...
8
by: Glenn Lerner | last post by:
When I used Visual Studio 6 I was able to cascade source code windows. This allowed me to view 2 separate source code files side by side and copy and paste between windows. How do I do this in...
4
by: Steve Richter | last post by:
using visual studio 2003 for my asp.net projects ... Once I undock the property window to get a better look at things, I cant dock it back where it came from. Can someone tell me how to redock...
4
by: Nathan Sokalski | last post by:
When editing an ASP Table, Visual Studio does not allow me to edit it in Design View. This makes it harder to add elements, because I must add every element either by using Design View to create...
4
by: Nadav Popplewell | last post by:
Hi everybody, I've install Visual studio Team Edition for Testers on my computers, And I can't seem to find how to show the toolbox. The documenation says there should be a 'Toolbox' menuitem...
0
by: Martin Eyles | last post by:
Hi, If I make an <objecttag in html view (and put in the location, settings etc. of the object), switch to design view and then switch back to html view, visual studio crashes. This happens...
11
by: Rolf Welskes | last post by:
Hello, the problem seems to be complex and is in all developments of web-controls which uses own TypeConverter. For this I have here a simple demo-program of the problem: The Control-code: A...
6
by: Nathan Sokalski | last post by:
When I am viewing a *.aspx file in Source view Visual Studio 2005 is not displaying the page's controls/elements properties in the properties window. If I switch to Design view, the properties are...
2
by: =?Utf-8?B?Um9iZXJ0IFNtaXRo?= | last post by:
Hi, I have just installed visual studio 2005 professional edition (evaluation version). However it will not allow me to view webforms in a website project in design view. I can just see the HTML...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.