qemu-e2k/hw/core
Daniel P. Berrangé efba15959c qom: simplify object_find_property / object_class_find_property
When debugging QEMU it is often useful to put a breakpoint on the
error_setg_internal method impl.

Unfortunately the object_property_add / object_class_property_add
methods call object_property_find / object_class_property_find methods
to check if a property exists already before adding the new property.

As a result there are a huge number of calls to error_setg_internal
on startup of most QEMU commands, making it very painful to set a
breakpoint on this method.

Most callers of object_find_property and object_class_find_property,
however, pass in a NULL for the Error parameter. This simplifies the
methods to remove the Error parameter entirely, and then adds some
new wrapper methods that are able to raise an Error when needed.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200914135617.1493072-1-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2020-09-22 16:45:16 -04:00
..
bus.c
clock-vmstate.c
clock.c hw/clock: Let clock_set() return boolean value 2020-08-28 10:02:44 +01:00
cpu.c target/arm: Move setting of CPU halted state to generic code 2020-09-08 10:08:42 +10:00
fw-path-provider.c
generic-loader.c
hotplug.c
irq.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
Kconfig
loader-fit.c
loader.c
machine-hmp-cmds.c
machine-qmp-cmds.c qmp: Expose MachineClass::default_ram_id 2020-08-19 10:45:21 -04:00
machine.c vhost-user-blk-pci: default num_queues to -smp N 2020-08-27 08:29:13 -04:00
meson.build meson: convert hw/core 2020-08-21 06:30:25 -04:00
nmi.c
null-machine.c
numa.c numa: hmat: fix cache size check 2020-08-27 13:54:37 -04:00
or-irq.c
platform-bus.c
ptimer.c
qdev-clock.c hw/qdev-clock: Avoid calling qdev_connect_clock_in after DeviceRealize 2020-08-28 10:02:46 +01:00
qdev-fw.c
qdev-properties-system.c qom: simplify object_find_property / object_class_find_property 2020-09-22 16:45:16 -04:00
qdev-properties.c
qdev.c
register.c
reset.c
resettable.c
split-irq.c
stream.c
sysbus.c qom: simplify object_find_property / object_class_find_property 2020-09-22 16:45:16 -04:00
trace-events
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
uboot_image.h
vm-change-state-handler.c
vmstate-if.c