public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/6523] New: fhpd: no source listings with some c++ programs
@ 2008-05-15 13:02 hunt at redhat dot com
  0 siblings, 0 replies; only message in thread
From: hunt at redhat dot com @ 2008-05-15 13:02 UTC (permalink / raw)
  To: frysk-bugzilla

> cat map.cc
#include <string.h>
#include <iostream>
#include <map>
#include <utility>

using namespace std;

int main()
{
   map<int, string> Employees;

   // 1) Assignment using array index notation
   Employees[5234] = "Mike C.";
   Employees[3374] = "Charlie M.";
   Employees[1923] = "David D.";
   Employees[7582] = "John A.";
   Employees[5328] = "Peter Q.";

   cout << "Employees[3374]=" << Employees[3374] << endl << endl;

   cout << "Map size: " << Employees.size() << endl;

   for( map<int,string>::iterator ii=Employees.begin(); ii!=Employees.end(); ++ii)
   {
       cout << (*ii).first << ": " << (*ii).second << endl;
   }
}

> g++ -g -o map map.cc

> fhpd map
[0.0] Loaded executable file: /home/hunt/test/map
(fhpd) b main
breakpoint 0 deferred
(fhpd) run
running with this commmand:  /home/hunt/test/map
Attached to process 3873
Running process 3873
(fhpd) Breakpoint 0 main 0x400e90

(fhpd) list
[0.0]
(fhpd) n
Task stopped at line 10 in file /home/hunt/test/map.cc
(fhpd) list
[0.0]
(fhpd)

-- 
           Summary: fhpd: no source listings with some c++ programs
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P1
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: hunt at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=6523

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-15 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-15 13:02 [Bug general/6523] New: fhpd: no source listings with some c++ programs hunt at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).