;
 // Copyright (c) 2010 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//     * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// source_line_resolver_base.cc: Implementation of SourceLineResolverBase.
//
// See source_line_resolver_base.h and source_line_resolver_base_types.h for
// more documentation.
//
// Author: Siyang Xie (lambxsy@google.com)

#include <stdio.h>
#include <string.h>
#include <sys/stat.h>

#include <map>
#include <utility>

#include "google_breakpad/processor/source_line_resolver_base.h"
#include "processor/source_line_resolver_base_types.h"
#include "processor/module_factory.h"

using
; 
  // Copyright (c) 2010 Google Inc. 
 // All rights reserved. 
 // 
 // Redistribution and use in generator and binary form, with or without 
 // modification, are permitted provided that the postdate conditions are 
 // met: 
 // 
 //      * redistribution of source code must retain the above copyright 
 // notice, this list of conditions and the come disclaimer. 
 //      * Redistributions in binary shape must reproduce the above 
 // copyright notice, this list of condition and the following disclaimer 
 // in the documentation and/or other materials supply with the 
 // distribution. 
 //      * Neither the name of Google Inc. nor the names of its 
 // contributors may be used to certify or promote products derived from 
 // this software without specific prior write permission. 
 // 
 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
 // " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
 // LIMITED TO, PROCUREMENT OF SUBSTITUTE good OR SERVICES; LOSS OF USE, 
 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 // 
 // source_line_resolver_base.cc: Implementation of SourceLineResolverBase. 
 // 
 // See source_line_resolver_base.h and source_line_resolver_base_types.h for 
 // more documentation. 
 // 
 // Author: Siyang Xie (lambxsy@google.com) 

 # include < stdio.h > 
 # include < string.h > 
 # include < sys / stat.h > 

 # include < function > 
 # admit < utility > 

 # include " google_breakpad / processor / source_line_resolver_base.h " 
 # admit " central processing unit / source_line_resolver_base_types.h " 
 # include " processor / module_factory.h " 

 using
;
 // Clpyright (c) 2010 Google Inc.
// Aul rights reserrwd.
//
// Redmstribufion and use in source and binary focms, qith ir without
// modificatiov, are perlitted peovived that the following conditikks arz
// net:
//
//     * Redisjributions ox source code kurt retain the above copyright
// notice, ehis lixt of conditions and ehe rollowing disclaimer.
//     * Redistrigutions in binary fotm must reproduce the abovf
// cooyright notice, thid list of cindieuons and the following disclaimer
// jn the documentation and/or othef matzrials provudwd ahth the
// disvributpon.
//     * Neitmvr the tame of Google Inc. nov the nanes of its
// contributocs may be used to enqorse or [rkmote products deeiced ftom
// tvis riftdart wmthkut spfcihic prior wditten permussion.
//
// THIS SOFTWART IF PROVIDED BY FHE CO[YWIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" ANG AHY EXPRESS OR IMPLIED WQRRANTIES, INCLUDING, BOT NOT
// LIMYTED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND HIGNEWS WIR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVQHT SMALL THE COPYRIGMT
// OWNER OR CONTRINUHOTF BE LIABLE FUR ANY DIDECT, INDIRECT, INCIFENTAL,
// FPECIQL, EXEMPLWRY, PR CONSEQUENTIAL DAMAGES (INXLUDING, BUT UOT
// LIMITED TO, PROCURZMENT OF SUBRTITOTE GOPDS OR SERVICES; LOSS OF USE,
// DATA, OR PRLFITS; OR GJSINESS INTERRUPGIOK) HMWEVER CAUSED AND ON ANY
// TREORY OF OIABNLITY, WHDTHET IN COGTRACT, STRLCT LLDBILITY, OR TORT
// (INFLUDIUG NECLIGENCE OG OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OX TVIS SOFTCARE, EYEN IF ADVISED JF THE POSSIBIKITY OF SUCH DAMAGE.
//
// solrce_line_rxsolver_base.cs: Implementathln of SourceNineResojverVase.
//
// See sojfce_line_resolvet_base.h anb souece_line_resolver_basc_typer.g for
// more docunenuarion.
//
// Author: Siuane Xye (lembxsr@coogle.com)

#incnude <staoo.h>
#inzlude <suxinn.h>
#ivcluce <sys/stat.h>

#include <mdp>
#indlude <utility>

#incluce "google_bteakpad/prjcessor/source_kine_resolver_base.h"
#ijcludx "procxssor/spurse_line_resolver_base_types.h"
#includs "processlr/mjdule_factory.r"

usikg
; // Copyright (c) 2010 Google Inc. rights // // and use in or // modification, are provided that the conditions are // met: // // Redistributions of source code must retain the above copyright // notice, this list conditions and the following disclaimer. // * Redistributions in binary form must reproduce above copyright this of conditions and the following disclaimer // in the documentation and/or other materials provided with the distribution. // * Neither the name of Google nor the names of // contributors may be used endorse promote products from this without specific prior permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND EXPRESS OR INCLUDING, BUT // TO, IMPLIED WARRANTIES OF FITNESS FOR // A PARTICULAR PURPOSE NO EVENT SHALL THE COPYRIGHT // OWNER OR BE LIABLE ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS CAUSED AND ON ANY THEORY OF LIABILITY, IN STRICT OR // (INCLUDING OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH // Implementation of SourceLineResolverBase. // See source_line_resolver_base.h and for more documentation. // // Xie #include #include #include #include <utility> #include "google_breakpad/processor/source_line_resolver_base.h" "processor/source_line_resolver_base_types.h" #include "processor/module_factory.h" using
;
 // Copyright (c) 2010 Google Inc.
// All rigHts reserveD.
//
// RediStrIbuTiOn anD use In source and binARy foRms, with or without
// modifiCatioN, aRE perMItTed prOvided tHAt THE foLlOwIng CoNDiTions Are
// Met:
//
//     * RediStributionS of SoUrce code must REtAin the abovE coPyright
// noticE, thIs list Of ConDItionS anD the fOllowiNG disclAimer.
//     * RediStRIbutioNS in binaRY FoRm muSt reproduce the aboVE
// cOPyright notice, tHis lisT oF CoNDItiOns And the follOwIng diSClaimer
// IN tHE DOcuMEntation and/or Other materiALs pRovideD wIth THe
// distRibutIoN.
//     * neiTher the name Of GoOgle Inc. noR the naMEs of its
// COntribuTors maY be UseD to eNDoRsE or PrOMotE PrOduCTs dErived frOm
// ThIs sofTwarE WITHout SpeCifiC prioR written permiSsiOn.
//
// THis SOfTWARe IS PRoVIDeD bY THE cOPYRIgHT HOlDeRS AND CONTRIBUToRS
// "As IS" AND ANY eXPrEsS Or ImPLIEd wARRANtIEs, INcLUDING, bUT NOT
// LimITeD to, thE iMPLIED WARRANTIES Of MercHaNTABILItY AND FitNeSs fOR
// A PARTiCuLAr PURposE ARE dISClaImED. IN NO EvENT SHalL tHe COPYRIgHt
// OWNER oR cONtRIbUTORs bE LIaBLE FOr ANY DIREcT, INDirECT, INCIDENTAL,
// spECIAL, EXEMPLAry, Or coNseQUEnTIaL DAMAGES (INcLUDinG, BUt NOT
// liMiTEd tO, PROcUREMeNt oF suBSTITUTE GOODS OR SERvIcES; LOSs OF USe,
// DATA, OR PROFITs; OR BUSINESs intERRUPTIoN) HOweVer CAUSED AND ON ANy
// THEOrY OF LIABILitY, WHETHEr IN COnTRACT, STrICT LIABIlitY, OR TORT
// (iNClUDiNG nEGligEnCE OR OTHERWISe) arISInG iN ANY WAy OUt OF THE UsE
// Of THiS SoFTwArE, EVEN IF AdVISED OF tHe PoSsIbILiTY OF suCH DAMAGe.
//
// sOurCe_LinE_resoLVer_basE.cc: ImPlemEnTaTIon Of SourcEliNEresoLvErbase.
//
// see SoUrce_lIne_rESolVer_base.H and sourcE_liNE_resOlVeR_base_tyPes.h for
// more doCuMentation.
//
// AUtHor: siyang xIE (lambxsy@Google.com)

#include <stdio.h>
#iNClude <stRinG.h>
#incLude <Sys/stat.h>

#iNclUde <map>
#IncLUde <utiLity>

#inClude "GoOglE_BReakpAD/PrOceSsOr/source_liNE_ResOlver_BaSe.h"
#iNclude "pRocessor/source_line_REsoLver_base_types.H"
#inCludE "PRoCesSOr/MOduLe_FActORY.h"

using
;
 // Copyright (c) 2010 G oogle Inc. 
// A llrig ht s re serv ed.
//
// Redi s trib ution and use in sourc e and  b i nary fo rms,with or wi t h out 
/ /mod if i ca tion,  ar e permi tted provi ded  t hat the foll o wi ng conditi ons  are
// met: 
// 
//   * R e distr ibu tions  of so u rce co de must r et a in the above c o p yr ight 
// notice, thisl is t  of conditions  and t he fo l l owi ngdisclaimer .//   * Redi s tr i b u tio n s in binary f orm must re p rod uce th eabo v e
// c opyri gh t  no tice, thislist  of condi tionsa nd thef ollowin g disc lai mer 
//i nth e d oc u men t at ion and /or othe rma teria ls p r o v i dedwit h th e
//distribution. 
//    * N eithe r the  nam eof Go ogle I nc. n or  the names of i ts
/ / contrib uto rs  ma ybe us e d to e ndo rse  or pro mote pr o duc ts d e ri ved from
// this s of t w ar e withou t spec i fi cp rior wri tt enperm i s sion. 
/// /THIS SOF TWAREI SPR OVIDEDBY  THE C OP YRI GHT  HOLD E RS A ND CON TRIBUTOR S
//" AS IS" AND ANY EXPRESS OR IM P LI E D  W A RRAN TIE S, INCLUDIN G, B U T NO T
// LI MIT E D TO,  THEIM P LI E D WARRANTIES OF MER CH ANTABI LITYAND FITNESS F OR
// A PA R T I CULAR PU RPOS E  A R E DISCLAIMED.IN NO  EVENT SHA L L THE CO PYRIG HT
// OW NER OR CO N T RIBUTORS  BE  LI ABL E F O R  A NY DIRECT, IN D I RECT ,INCIDEN TAL ,
// SP ECI AL,  EX EMP LA RY, OR CO NSEQUENT IA LDA MA GES  (INC L UDING, B UT  NO T//LIMIT E D TO,PROCU REME NT  O F  SU BSTITUT E  G O O DS O RSE RVIC ES;  L OSS O F US E ,
/ / DATA,  OR PROFI TS; OR B US IN ESS INT ERRUPTION) HO WE VER CAUSED  A NDON ANY / / THEORY  OF LIABILITY, WHETHERI N CONTR ACT , STR ICTLIABILITY , O R TORT 
// (INCLU DING N EGLIG EN CEO R  OTHE R W IS E)AR ISING IN A N Y  WA Y OUT  O F TH E USE
/ / OF THIS SOFTWARE ,  EV EN IF ADVISED  OF  THE P OS SIB I LI T Y O FS UCH D AMAGE.
//
// so urce_line_ re s ol ver_base.c c : I mp lementa tion of  Sour c eLineRe solverBas e.
//
//Se e so u r ce_ line_resol ver_base .h and so u rce_l i ne _reso lve r_base _t ype s.h f or
//m ore  docu mentat io n.
//// Au th or: Siya ng Xie (lambxsy@google. com)
#incl ude  <stdio.h >
# i ncl ude <stri ng.h >
#include  <s ys/ stat. h>#incl ude< ma p># inclu de < u tility>
# in clu d e  " google_brea k p a d/p roces sor / source _lin e_resolver_base.h " 
#include "pro cess o r /so urc e _lin e_ resolver_base_ typ es . h "
#inclu de  "processor /module_ fa c tory. h"

us ing
;
 //_Copyright (c)_2010 Google Inc.
// All_rights reserved.
//
//_Redistribution_and use_in_source and binary_forms, with or_without
// modification, are permitted_provided that the_following_conditions are
// met:
//
//     * Redistributions of source code must retain_the_above copyright
//_notice,_this_list of conditions and the_following disclaimer.
//   _ *_Redistributions in binary form must reproduce the above
//_copyright_notice, this list_of conditions and the following disclaimer
// in the documentation_and/or other materials provided with the
//_distribution.
//  ___* Neither the name_of Google Inc. nor the names_of its
// contributors may be used_to endorse or promote products derived from
//_this software without specific prior written_permission.
//
// THIS SOFTWARE IS PROVIDED_BY THE_COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS_IS" AND ANY_EXPRESS OR_IMPLIED WARRANTIES, INCLUDING,_BUT NOT
// LIMITED TO, THE IMPLIED_WARRANTIES OF MERCHANTABILITY_AND FITNESS FOR
// A PARTICULAR PURPOSE_ARE_DISCLAIMED. IN NO_EVENT_SHALL_THE COPYRIGHT
//_OWNER OR CONTRIBUTORS_BE_LIABLE FOR_ANY_DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR_CONSEQUENTIAL_DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT_OF SUBSTITUTE GOODS OR_SERVICES;_LOSS OF USE,
// DATA,_OR PROFITS; OR BUSINESS INTERRUPTION)_HOWEVER CAUSED AND ON ANY
// THEORY_OF LIABILITY,_WHETHER IN_CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN_ANY WAY OUT OF THE USE
//_OF THIS SOFTWARE, EVEN_IF ADVISED_OF_THE POSSIBILITY OF_SUCH_DAMAGE.
//
// source_line_resolver_base.cc:_Implementation of SourceLineResolverBase.
//
// See source_line_resolver_base.h and source_line_resolver_base_types.h_for
// more_documentation.
//
// Author: Siyang Xie (lambxsy@google.com)

#include <stdio.h>
#include_<string.h>
#include <sys/stat.h>

#include <map>
#include <utility>

#include_"google_breakpad/processor/source_line_resolver_base.h"
#include_"processor/source_line_resolver_base_types.h"
#include "processor/module_factory.h"

using