]> git.ipfire.org Git - thirdparty/squid.git/commit - src/servers/FtpServer.cc
SourceLayout: Move debugs()-related code into src/debug/ (#984)
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 22 Feb 2022 21:58:02 +0000 (21:58 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 23 Feb 2022 11:22:36 +0000 (11:22 +0000)
commit675b84088404c6cc03f848f6c7266ada57cf9b99
treec060411ca70afc8356c153cc2acb6874639383fe
parentc4e6b7c2a12fa218089fe839f769ffc8ae18dea4
SourceLayout: Move debugs()-related code into src/debug/ (#984)

The new library is needed to facilitate debugs() reuse and, perhaps more
importantly, reuse of other Squid code that already uses debugs() -- all
without build-breaking hacks of copying debug.cc source files and very
dangerous stub use in production running code.

The Raw class, asHex(), and other I/O manipulators are not specific to
debugs() streams. They are now in src/base/.

Also removed test-suite/debug, addressing an XXX. That test was
misplaced and not really doing anything useful -- the compiler already
tests what test-suite/debug was testing (and much more).

Also removed the no longer necessary xassert() stub from test-suite/.

TODO: Adjust the moved code to use Debug namespace. Those adjustments
are likely to trigger debug/Stream.h reorganization, simplifying exposed
debugging API. They deserve a dedicated PR.

TODO: Convert more helpers to use the new debugging library. This change
only adjusts pinger because that adjustment did not require other
significant changes.
196 files changed:
configure.ac
include/unitTestMain.h
src/AuthReg.cc
src/BandwidthBucket.cc
src/ConfigParser.cc
src/CpuAffinity.cc
src/CpuAffinityMap.cc
src/CpuAffinitySet.cc
src/DiskIO/AIO/AIODiskFile.cc
src/DiskIO/Blocking/BlockingFile.cc
src/DiskIO/Mmapped/MmappedFile.cc
src/Downloader.cc
src/EventLoop.cc
src/FadingCounter.cc
src/HttpHdrContRange.cc
src/HttpHeader.cc
src/Instance.cc
src/LoadableModules.cc
src/LogTags.cc
src/Makefile.am
src/Parsing.cc
src/PeerPoolMgr.cc
src/Pipeline.cc
src/SquidString.h
src/StoreIOState.cc
src/StoreMetaUnpacker.cc
src/WinSvc.cc
src/XactionInitiator.cc
src/acl/Acl.cc
src/acl/AdaptationServiceData.cc
src/acl/AnnotationData.cc
src/acl/Arp.cc
src/acl/AtStepData.cc
src/acl/BoolOps.cc
src/acl/CertificateData.cc
src/acl/Checklist.cc
src/acl/ConnMark.cc
src/acl/ConnectionsEncrypted.cc
src/acl/DomainData.cc
src/acl/Eui64.cc
src/acl/FilledChecklist.cc
src/acl/HttpHeaderData.cc
src/acl/HttpStatus.cc
src/acl/InnerNode.cc
src/acl/IntRange.cc
src/acl/Ip.cc
src/acl/MaxConnection.cc
src/acl/NoteData.cc
src/acl/Options.cc
src/acl/ProtocolData.cc
src/acl/Random.cc
src/acl/RegexData.cc
src/acl/SquidErrorData.cc
src/acl/StringData.cc
src/acl/TimeData.cc
src/acl/TransactionInitiator.cc
src/acl/UserData.cc
src/adaptation/AccessRule.cc
src/adaptation/Config.cc
src/adaptation/History.cc
src/adaptation/ServiceConfig.cc
src/adaptation/ServiceGroups.cc
src/adaptation/ecap/ServiceRep.cc
src/adaptation/icap/Client.cc
src/adaptation/icap/History.cc
src/adaptation/icap/ServiceRep.cc
src/anyp/Uri.cc
src/auth/AclMaxUserIp.cc
src/auth/CredentialsCache.cc
src/auth/SchemeConfig.cc
src/auth/basic/Scheme.cc
src/auth/basic/User.cc
src/auth/basic/UserRequest.cc
src/auth/digest/Scheme.cc
src/auth/digest/User.cc
src/auth/negotiate/Scheme.cc
src/auth/negotiate/User.cc
src/auth/ntlm/Scheme.cc
src/auth/ntlm/User.cc
src/base/AsyncCall.cc
src/base/AsyncCallQueue.cc
src/base/AsyncJobCalls.h
src/base/CbcPointer.h
src/base/CodeContext.cc
src/base/File.cc
src/base/IoManip.cc [new file with mode: 0644]
src/base/IoManip.h [new file with mode: 0644]
src/base/Makefile.am
src/base/Raw.cc [new file with mode: 0644]
src/base/Raw.h [new file with mode: 0644]
src/base/RegexPattern.cc
src/base/RunnersRegistry.cc
src/base/YesNoNone.h
src/base/forward.h
src/cache_cf.cc
src/cache_manager.cc
src/client_side.cc
src/clients/HttpTunneler.cc
src/comm/Read.cc
src/comm/Tcp.cc
src/debug/Makefile.am [new file with mode: 0644]
src/debug/Messages.h [moved from src/DebugMessages.h with 99% similarity]
src/debug/Stream.h [moved from src/Debug.h with 69% similarity]
src/debug/debug.cc [moved from src/debug.cc with 96% similarity]
src/dns_internal.cc
src/error/Error.cc
src/esi/Element.h
src/esi/Expression.cc
src/esi/Parser.cc
src/esi/Segment.cc
src/esi/Sequence.cc
src/eui/Eui48.cc
src/eui/Eui64.cc
src/fatal.cc
src/fd.cc
src/fde.cc
src/filemap.cc
src/format/Config.cc
src/fs/rock/RockHeaderUpdater.cc
src/fs/rock/RockRebuild.cc
src/fs/ufs/UFSSwapLogParser.cc
src/helper.cc
src/helper/ChildConfig.cc
src/helper/Reply.cc
src/htcp.cc
src/http.cc
src/http/ContentLengthInterpreter.cc
src/http/Message.cc
src/http/StatusCode.cc
src/http/StatusLine.cc
src/http/one/Parser.cc
src/http/one/RequestParser.cc
src/http/one/ResponseParser.cc
src/http/one/TeChunkedParser.cc
src/http/one/Tokenizer.cc
src/icmp/Icmp.cc
src/icmp/Icmp4.cc
src/icmp/Icmp6.cc
src/icmp/IcmpPinger.cc
src/icmp/Makefile.am
src/icmp/pinger.cc
src/ip/Address.cc
src/ip/NfMarkConfig.cc
src/ip/QosConfig.cc
src/ip/tools.cc
src/ipc/FdNotes.cc
src/ipc/MemMap.h
src/ipc/Queue.cc
src/ipc/Queue.h
src/ipc/RequestId.cc
src/ipc/StrandCoord.cc
src/ipc/mem/PageStack.cc
src/ipc/mem/Segment.cc
src/ipcache.cc
src/log/Config.cc
src/log/File.cc
src/log/FormattedLog.cc
src/log/ModSyslog.cc
src/main.cc
src/mgr/IntParam.cc
src/mime.cc
src/mime_header.cc
src/multicast.cc
src/neighbors.cc
src/parser/BinaryTokenizer.cc
src/parser/Tokenizer.cc
src/peer_proxy_negotiate_auth.cc
src/sbuf/MemBlob.cc
src/sbuf/SBuf.cc
src/sbuf/SBuf.h
src/security/CommunicationSecrets.cc
src/security/ErrorDetail.cc
src/security/Handshake.cc
src/security/Io.cc
src/security/PeerConnector.cc
src/security/PeerOptions.cc
src/security/Session.cc
src/servers/FtpServer.cc
src/servers/Server.cc
src/snmp/Var.cc
src/ssl/ErrorDetailManager.cc
src/ssl/bio.cc
src/store.cc
src/store/Disks.cc
src/store/LocalSearch.cc
src/store_digest.cc
src/store_log.cc
src/store_rebuild.cc
src/tests/stub_cache_manager.cc
src/tests/stub_debug.cc
src/tests/testHttp1Parser.cc
src/tests/testURL.cc
src/tunnel.cc
test-suite/Makefile.am
test-suite/debug.cc [deleted file]
test-suite/test_tools.cc