File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -691,8 +691,7 @@ bool fromJSON(const llvm::json::Value &value,
691691 llvm::json::ObjectMapper o (value, path);
692692 return o && o.map (" name" , section.name ) && o.map (" type" , section.type ) &&
693693 o.map (" address" , section.address ) && o.map (" size" , section.size ) &&
694- o.map (" read" , section.read ) &&
695- o.map (" write" , section.write ) &&
694+ o.map (" read" , section.read ) && o.map (" write" , section.write ) &&
696695 o.map (" execute" , section.execute ) &&
697696 o.mapOptional (" subsections" , section.subsections );
698697}
Original file line number Diff line number Diff line change @@ -182,15 +182,17 @@ void ObjectFileJSON::CreateSections(SectionList &unified_section_list) {
182182 lldb::user_id_t id = 1 ;
183183 for (const auto &json_section : m_sections) {
184184 auto make_section = [this , &id](const JSONSection §ion,
185- SectionSP parent_section_sp = nullptr ) -> SectionSP {
185+ SectionSP parent_section_sp =
186+ nullptr ) -> SectionSP {
186187 SectionSP section_sp;
187188 if (parent_section_sp) {
188189 section_sp = std::make_shared<Section>(
189190 parent_section_sp, GetModule (), this ,
190191 /* sect_id=*/ id++,
191192 /* name=*/ ConstString (section.name ),
192193 /* sect_type=*/ section.type .value_or (eSectionTypeCode),
193- /* file_vm_addr=*/ section.address .value_or (0 ) - parent_section_sp->GetFileAddress (),
194+ /* file_vm_addr=*/ section.address .value_or (0 ) -
195+ parent_section_sp->GetFileAddress (),
194196 /* vm_size=*/ section.size .value_or (0 ),
195197 /* file_offset=*/ 0 ,
196198 /* file_size=*/ 0 ,
You can’t perform that action at this time.
0 commit comments