44445 Commits

Author SHA1 Message Date
John Scipione
5ddf877be6 More style fixes, return true or false directly hrev44969 2012-12-06 19:38:15 -05:00
John Scipione
72bf9c4e48 Make Default color scheme match default settings...
So that it gets selected, well, by default. Before Custom was
being selected initially.
2012-12-06 19:34:12 -05:00
John Scipione
715c56d454 Style fixes only, no functional changes intended
including converting a while loop into a for loop.
hrev44968
2012-12-06 19:16:04 -05:00
Dariusz Knociński
690a7f3d47 BStringList: Fix compare_private_data[ignore_case]()
Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
hrev44967
2012-12-07 00:24:57 +01:00
Rene Gollent
0c8935498e Fix one more case of deleting instead of reference releasing. hrev44966 2012-12-06 17:59:49 -05:00
Rene Gollent
a34020ba21 A bit more fine-tuning to BReferenceable debugging.
- Rework quick stack range check as suggested by Ingo.
- If the ref count is > 1 we invoke the debugger unconditionally.
- If equal to 1, we first perform a quick heuristic check to see if the
  var might be on the stack. If we can't conclusively determine that is,
  we make certain by comparing to the thread's actual stack range.
2012-12-06 17:57:14 -05:00
Alexander von Gluck IV
cb44a2a6ef swpipe: Fix memory pointer scope issue
* Store stVisual in each context
hrev44965
2012-12-06 03:59:38 +00:00
Rene Gollent
969609f0ef Fix double free. hrev44964 2012-12-05 20:09:59 -05:00
Rene Gollent
95b3c61c4b DebugReportGenerator shouldn't inherit from BReferenceable. 2012-12-05 20:09:58 -05:00
Rene Gollent
8326ad45bb Destroy created file via reference release if necessary. 2012-12-05 20:07:02 -05:00
Rene Gollent
4a5bcf0f7a Rework debugging check in BReferenceable.
- If a BReferenceable object is deleted with a non-zero reference count,
  we now test to see if the object was allocated on the stack. If so,
  we don't flag a warning if the reference count is currently 1.
2012-12-05 20:07:01 -05:00
Tyler Dixon
36b210830f Modify intel partition mapper to fail if it detects a GPT disk
Slightly amended patch from Tyler Dixon. This fixes #8434.
Tested on my new GPT-disk with:
	jam run ":<build>makebootable" --dry-run /dev/sda4

Signed-off-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
hrev44963
2012-12-05 22:40:22 +01:00
Alexander von Gluck IV
2574bdfcc7 swpipe: Add Framebuffer management
* It's painfully obvious to me now that we will
  need to manage our own framebuffers still in
  the latest gallium code.
* GalliumFramebuffer works pretty cleanly as a
  class.. we have to remember to lock and unlock
  the Framebuffer object however when we access
  fBuffer directly. (which needs to occur by design)
* I'm really starting to have problems with the
  amount of downcasting Gallium3D does now.
hrev44962
2012-12-05 15:37:43 +00:00
Alexander von Gluck IV
d6137548a0 swpipe: Handle post processing
* Introduce textures into local gl context
2012-12-05 14:09:29 +00:00
Rene Gollent
b060c28e65 Fix crash when debug information wasn't available. hrev44961 2012-12-04 21:22:11 -05:00
Rene Gollent
860c710c4b Add some additional BReferenceable debugging.
- When libbe is built in debug mode, BReferenceable now issues a
  debugger call if it's destroyed without all references having been
  released.
hrev44960
2012-12-04 21:17:30 -05:00
Rene Gollent
e402c5e0be Show total capacity on BList/BObjectList nodes.
- Since we currently limit the maximum number of child elements we'll
  show, it's helpful information to know the actual capacity of the list
  in case it contains more, especially when we later support requesting
  additional elements to be retrieved.
2012-12-04 21:17:29 -05:00
Rene Gollent
6d3ea79f69 Fix memory corruption issue.
- Since BasicTargetInterface is a BReferenceable, we must not create it
  on the stack, else it will be destroyed while others still have
  references to it. Fixes various random crashes, though most frequently
  observable when typecasting with more complex types.
2012-12-04 21:17:29 -05:00
John Scipione
cfd9c96db5 Style fix: compare to 0 in strcmp() explicitly. hrev44959 2012-12-04 19:29:29 -05:00
John Scipione
2005db27ff Change schema in Terminal to color scheme.
Love this feature, but, color schema is not a thing, it is a color
scheme. Change both the display text and the variable names.

Also changed "Retro Terminal" color scheme to just "Retro". Terminal
is redundant.
hrev44958
2012-12-04 19:09:50 -05:00
Michael Lotz
760de9b200 Tiny code style cleanup. hrev44957 2012-12-04 23:38:11 +01:00
Michael Lotz
85db228177 Style cleanup only. 2012-12-04 23:38:10 +01:00
Michael Lotz
1ed5f66cd4 Add missing function end macro. 2012-12-04 23:38:09 +01:00
Michael Lotz
2b5d52a174 Whitespace cleanup only. 2012-12-04 23:38:09 +01:00
Michael Lotz
f0422c6f9f Only set the physical address if the entry is mapped.
Otherwise, even when the address was 0, we would possibly set the
physical address to != 0 as we always applied the page offset.
2012-12-04 23:38:08 +01:00
Michael Lotz
926d1024d0 Fix wrong address mask (page directory vs. page table). 2012-12-04 23:38:07 +01:00
Michael Lotz
fd6e3a11e2 Use the existing ARM MMU definitions and remove duplicates. 2012-12-04 23:38:06 +01:00
Michael Lotz
7c45cf7155 Remove tracking of sMaxVirtualAddress as it's not used.
The value computed isn't actually used anywhere. It just ensured that
a panic would be triggered if we "skipped" to virtual addresses further
along. This shouldn't be problematic however.
2012-12-04 23:38:06 +01:00
Michael Lotz
83f7c22537 Reuse get_or_create_page_table() and remove similar add_page().
The former also does the initialization, simplifying the code and
reducing redundancy with the page directory init path.
2012-12-04 23:38:05 +01:00
Michael Lotz
a438da7c8b Clear the page tables on creation, use macros for counts.
This makes it less likely that uninitialized entries cause troubles.
Also panic if we encounter an unknown entry type instead of defaulting
to 4K pages.
2012-12-04 23:38:04 +01:00
Michael Lotz
89564c0a10 Simplify the page directory init loops.
Also check and possibly reuse an existing page directory entry. This
makes the possible memory maps a little more flexible.
2012-12-04 23:38:04 +01:00
Michael Lotz
50c463f4f1 Header cleanup, rename macros for more consistency. 2012-12-04 23:38:03 +01:00
Michael Lotz
3d4175bfe1 Map the page directory before turning on the MMU.
And actually use the virtual address for it later on. This wasn't
problematic as the virtual and physical addresses are identity mapped,
but it seems more correct to do it in this order.
2012-12-04 23:37:18 +01:00
Michael Lotz
0deac574bd Simplify, don't do the calculation twice. 2012-12-04 23:36:09 +01:00
Michael Lotz
05893479e3 Style cleanup only. 2012-12-04 23:36:09 +01:00
Michael Lotz
eca34ad168 Print page and cache using initial commands in panic message. 2012-12-04 23:36:09 +01:00
Michael Lotz
d50875de46 Use format macros in debug output. 2012-12-04 23:36:08 +01:00
Michael Lotz
333883485c Rephrase the debug output, it is not that early anymore. 2012-12-04 23:36:08 +01:00
Michael Lotz
2dcc1cfeb9 Remove test pattern that is no longer needed. 2012-12-04 23:36:08 +01:00
Michael Lotz
67d9fcc3ba Whitespace cleanup, no functional change. 2012-12-04 23:35:40 +01:00
Alexander von Gluck IV
7271621fbe Terminal: Spice up terminal color scheme selection hrev44956 2012-12-04 17:07:35 +00:00
Alexander von Gluck IV
a2b5d15aef Terminal: Ensure changing color schema modifies cursor
* Really fixes #8256
hrev44955
2012-12-04 16:21:40 +00:00
Rene Gollent
ede21af844 Implement special handling for BObjectList.
- BListValueNode now also handles BObjectLists. In the latter's case
  however, it uses the template type parameters to map the array
  elements to their actual type. As before, this requires a debug
  libbe to function.
hrev44954
2012-12-03 22:00:54 -05:00
Rene Gollent
ada60b4e3d Rework handling of template parameters.
- Keep a unified list in DIEClassBaseType so that the order
  of template parameters is preserved in cases when type and
  value parameters are mixed. Thanks Ingo for the hint.

- Introduce new base Type TemplateParameter, which represents either
  a template type or template value parameter, a list of which is
  attached to CompoundType.

- Add DwarfTemplateParameter implementing subclass of TemplateParameter
  and adjust DwarfTypeFactory accordingly for the above changes.
2012-12-03 20:58:09 -05:00
Rene Gollent
ce6b908edb Extend CompoundType to handle template parameters.
- Adjust CompoundType to add accessors for template type and value
  parameters.
- Add DwarfCompoundType/DwarfTypeFactory handling for template
  template type parameters.
hrev44953
2012-12-02 22:09:24 -05:00
Rene Gollent
07eedfea60 Store template parameters for DIEClassBaseType. 2012-12-02 22:08:38 -05:00
Rene Gollent
05b08d47fd GCC2 build fix. hrev44952 2012-12-02 15:32:46 -05:00
Rene Gollent
fad00fb02a Add type handler and corresponding value node for BList.
- When a debugging libbe is present, and a BList is encountered,
  we now read its internal structure and expose it as if it were an
  array of pointers. Combined with typecasting, this means one can
  now easily inspect the content of such a list.
hrev44951
2012-12-02 15:26:19 -05:00
Rene Gollent
5ad3b800d5 Fix incorrect matching logic.
- Would lead to the wrong type potentially being matched since name
  comparison would be skipped.
2012-12-02 15:26:19 -05:00
Axel Dörfler
eb8a124325 bfs_tools: recover is now using a set to reduce memory.
* The hashtable stored complete Inode objects (albeit without the actual block).
* Now we only store the block_run which should reduce the memory footprint
  considerably; before "recover" could easily run out of memory. In any case,
  a 64 bit version would still make sense to have :-)
* Saved an extra hash table traversal by counting the node types directly.
* This isn't that well tested yet, though.
hrev44950
2012-12-02 21:03:44 +01:00